lqt_atoms.h
/*******************************************************************************
lqt_atoms.h
libquicktime - A library for reading and writing quicktime/avi/mp4 files.
http://libquicktime.sourceforge.net
Copyright (C) 2002 Heroine Virtual Ltd.
Copyright (C) 2002-2011 Members of the libquicktime project.
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License along
with this library; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*******************************************************************************/
#ifndef _LQT_ATOMS_H_
#define _LQT_ATOMS_H_
#pragma GCC visibility push(default)
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define LQT_COLR_NCLC 0x6E636C63
#define LQT_COLR_PROF 0x70726F66
/* Fine tuning of quicktime atoms. Use with caution */
int lqt_set_fiel(quicktime_t *file, int track, int nfields, int dominance);
int lqt_get_fiel(quicktime_t *file, int track, int *nfields, int *dominance);
/* pasp atom */
typedef struct
{
int32_t hSpacing;
int32_t vSpacing;
} quicktime_pasp_t;
int lqt_set_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp);
int lqt_get_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp);
typedef struct
{
int32_t cleanApertureWidthN;
int32_t cleanApertureWidthD;
int32_t cleanApertureHeightN;
int32_t cleanApertureHeightD;
int32_t horizOffN;
int32_t horizOffD;
int32_t vertOffN;
int32_t vertOffD;
} quicktime_clap_t;
int lqt_set_clap(quicktime_t *file, int track, quicktime_clap_t *clap);
int lqt_get_clap(quicktime_t *file, int track, quicktime_clap_t *clap);
typedef struct
{
int32_t colorParamType;
int16_t primaries;
int16_t transferFunction;
int16_t matrix;
} quicktime_colr_t;
int lqt_set_colr(quicktime_t *file, int track, quicktime_colr_t *colr);
int lqt_get_colr(quicktime_t *file, int track, quicktime_colr_t *colr);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#pragma GCC visibility pop
#endif /* _LQT_ATOMS_H_ */
lqt_get_fiel
int lqt_get_fiel(quicktime_t *file, int track, int *nfields, int *dominance)
Get the field attributes of a video track.
lqt_set_pasp
int lqt_set_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp)
Set the pixel aspect atom of a video track.
lqt_set_colr
int lqt_set_colr(quicktime_t *file, int track, quicktime_colr_t *colr)
Set the 'colr' ImageDescription Extension of a video track.
lqt_get_colr
int lqt_get_colr(quicktime_t *file, int track, quicktime_colr_t *colr)
Get the 'colr' ImageDescription Extension of a video track.
lqt_set_clap
int lqt_set_clap(quicktime_t *file, int track, quicktime_clap_t *clap)
Set the clean aperture attributes of a video track.
lqt_set_fiel
int lqt_set_fiel(quicktime_t *file, int track, int nfields, int dominance)
Set the field attributes of a video track.
lqt_get_clap
int lqt_get_clap(quicktime_t *file, int track, quicktime_clap_t *clap)
Get the clean aperture attributes of a video track.
lqt_get_pasp
int lqt_get_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp)
Get the pixel aspect atom of a video track.
quicktime_t
struct quicktime_s quicktime_t
Quicktime handle.
Definition quicktime.h:306
quicktime_clap_t
Clean Aperture atom structure.
Definition lqt_atoms.h:122
quicktime_clap_t::cleanApertureWidthD
int32_t cleanApertureWidthD
Definition lqt_atoms.h:126
quicktime_clap_t::cleanApertureHeightD
int32_t cleanApertureHeightD
Definition lqt_atoms.h:130
quicktime_clap_t::horizOffN
int32_t horizOffN
Definition lqt_atoms.h:132
quicktime_clap_t::vertOffD
int32_t vertOffD
Definition lqt_atoms.h:138
quicktime_clap_t::cleanApertureHeightN
int32_t cleanApertureHeightN
Definition lqt_atoms.h:128
quicktime_clap_t::horizOffD
int32_t horizOffD
Definition lqt_atoms.h:134
quicktime_clap_t::cleanApertureWidthN
int32_t cleanApertureWidthN
Definition lqt_atoms.h:124
quicktime_clap_t::vertOffN
int32_t vertOffN
Definition lqt_atoms.h:136
quicktime_colr_t
'colr' ImageDescription Extension structure
Definition lqt_atoms.h:176
quicktime_colr_t::matrix
int16_t matrix
Definition lqt_atoms.h:184
quicktime_colr_t::colorParamType
int32_t colorParamType
Definition lqt_atoms.h:178
quicktime_colr_t::transferFunction
int16_t transferFunction
Definition lqt_atoms.h:182
quicktime_colr_t::primaries
int16_t primaries
Definition lqt_atoms.h:180
quicktime_pasp_t
Pixel Aspect atom structure.
Definition lqt_atoms.h:93
quicktime_pasp_t::vSpacing
int32_t vSpacing
Definition lqt_atoms.h:97
quicktime_pasp_t::hSpacing
int32_t hSpacing
Definition lqt_atoms.h:95