libquicktime

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

lqt_atoms.h
1 /*******************************************************************************
2 lqt_atoms.h
3
4 libquicktime - A library for reading and writing quicktime/avi/mp4 files.
5 http://libquicktime.sourceforge.net
6
7 Copyright (C) 2002 Heroine Virtual Ltd.
8 Copyright (C) 2002-2011 Members of the libquicktime project.
9
10 This library is free software; you can redistribute it and/or modify it under
11 the terms of the GNU Lesser General Public License as published by the Free
12 Software Foundation; either version 2.1 of the License, or (at your option)
13 any later version.
14
15 This library is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
18 details.
19
20 You should have received a copy of the GNU Lesser General Public License along
21 with this library; if not, write to the Free Software Foundation, Inc., 51
22 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 *******************************************************************************/
24
25 #ifndef _LQT_ATOMS_H_
26 #define _LQT_ATOMS_H_
27
28
29
30 #pragma GCC visibility push(default)
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36 #define LQT_COLR_NCLC 0x6E636C63
37 #define LQT_COLR_PROF 0x70726F66
38
39 /* Fine tuning of quicktime atoms. Use with caution */
40
68 int lqt_set_fiel(quicktime_t *file, int track, int nfields, int dominance);
69
85 int lqt_get_fiel(quicktime_t *file, int track, int *nfields, int *dominance);
86
87 /* pasp atom */
88
92 typedef struct
93 {
95 int32_t hSpacing;
97 int32_t vSpacing;
98 } quicktime_pasp_t;
99
107 int lqt_set_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp);
108
116 int lqt_get_pasp(quicktime_t *file, int track, quicktime_pasp_t *pasp);
117
121 typedef struct
122 {
124 int32_t cleanApertureWidthN;
126 int32_t cleanApertureWidthD;
128 int32_t cleanApertureHeightN;
130 int32_t cleanApertureHeightD;
132 int32_t horizOffN;
134 int32_t horizOffD;
136 int32_t vertOffN;
138 int32_t vertOffD;
139 } quicktime_clap_t;
140
154 int lqt_set_clap(quicktime_t *file, int track, quicktime_clap_t *clap);
155
170 int lqt_get_clap(quicktime_t *file, int track, quicktime_clap_t *clap);
171
175 typedef struct
176 {
178 int32_t colorParamType;
180 int16_t primaries;
182 int16_t transferFunction;
184 int16_t matrix;
185 } quicktime_colr_t;
186
200 int lqt_set_colr(quicktime_t *file, int track, quicktime_colr_t *colr);
201
215 int lqt_get_colr(quicktime_t *file, int track, quicktime_colr_t *colr);
216
217 #ifdef __cplusplus
218 }
219 #endif /* __cplusplus */
220
221 #pragma GCC visibility pop
222
223 #endif /* _LQT_ATOMS_H_ */
lqt_set_colr
int lqt_set_colr(quicktime_t *file, int track, quicktime_colr_t *colr)
Set the &#39;colr&#39; ImageDescription Extension of a video track.
quicktime_clap_t::cleanApertureHeightD
int32_t cleanApertureHeightD
Definition: lqt_atoms.h:130
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_clap_t::cleanApertureWidthD
int32_t cleanApertureWidthD
Definition: lqt_atoms.h:126
quicktime_colr_t::transferFunction
int16_t transferFunction
Definition: lqt_atoms.h:182
quicktime_clap_t::horizOffD
int32_t horizOffD
Definition: lqt_atoms.h:134
quicktime_clap_t::vertOffD
int32_t vertOffD
Definition: lqt_atoms.h:138
quicktime_pasp_t::hSpacing
int32_t hSpacing
Definition: lqt_atoms.h:95
quicktime_colr_t
&#39;colr&#39; ImageDescription Extension structure
Definition: lqt_atoms.h:175
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.
quicktime_pasp_t
Pixel Aspect atom structure.
Definition: lqt_atoms.h:92
quicktime_clap_t::cleanApertureHeightN
int32_t cleanApertureHeightN
Definition: lqt_atoms.h:128
quicktime_pasp_t::vSpacing
int32_t vSpacing
Definition: lqt_atoms.h:97
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_colr
int lqt_get_colr(quicktime_t *file, int track, quicktime_colr_t *colr)
Get the &#39;colr&#39; ImageDescription Extension of a video track.
quicktime_colr_t::primaries
int16_t primaries
Definition: lqt_atoms.h:180
quicktime_clap_t::cleanApertureWidthN
int32_t cleanApertureWidthN
Definition: lqt_atoms.h:124
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.
quicktime_clap_t::vertOffN
int32_t vertOffN
Definition: lqt_atoms.h:136
quicktime_colr_t::colorParamType
int32_t colorParamType
Definition: lqt_atoms.h:178
quicktime_t
struct quicktime_s quicktime_t
Quicktime handle.
Definition: quicktime.h:306
quicktime_colr_t::matrix
int16_t matrix
Definition: lqt_atoms.h:184
quicktime_clap_t
Clean Aperture atom structure.
Definition: lqt_atoms.h:121
quicktime_clap_t::horizOffN
int32_t horizOffN
Definition: lqt_atoms.h:132
lqt_get_fiel
int lqt_get_fiel(quicktime_t *file, int track, int *nfields, int *dominance)
Get the field attributes of a video track.