1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libquicktime: /home/pix/Software/gmerlin-dependencies/libquicktime/libquicktime/include/quicktime/quicktime.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div class="nav">
<a class="el" href="dir_ac6d6cfc5ba22cfe0e9bc6c52513f95c.html">include</a> » <a class="el" href="dir_53292056a2aca918f7f93eaa35ab24bb.html">quicktime</a></div>
<h1>quicktime.h</h1><a href="quicktime_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*******************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> quicktime.h</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment"> libquicktime - A library for reading and writing quicktime/avi/mp4 files.</span>
<a name="l00005"></a>00005 <span class="comment"> http://libquicktime.sourceforge.net</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment"> Copyright (C) 2002 Heroine Virtual Ltd.</span>
<a name="l00008"></a>00008 <span class="comment"> Copyright (C) 2002-2007 Members of the libquicktime project.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment"> This library is free software; you can redistribute it and/or modify it under</span>
<a name="l00011"></a>00011 <span class="comment"> the terms of the GNU Lesser General Public License as published by the Free</span>
<a name="l00012"></a>00012 <span class="comment"> Software Foundation; either version 2.1 of the License, or (at your option)</span>
<a name="l00013"></a>00013 <span class="comment"> any later version.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment"> This library is distributed in the hope that it will be useful, but WITHOUT</span>
<a name="l00016"></a>00016 <span class="comment"> ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
<a name="l00017"></a>00017 <span class="comment"> FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more</span>
<a name="l00018"></a>00018 <span class="comment"> details.</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment"> You should have received a copy of the GNU Lesser General Public License along</span>
<a name="l00021"></a>00021 <span class="comment"> with this library; if not, write to the Free Software Foundation, Inc., 51</span>
<a name="l00022"></a>00022 <span class="comment"> Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00023"></a>00023 <span class="comment">*******************************************************************************/</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef QUICKTIME_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define QUICKTIME_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#include <inttypes.h></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include <stddef.h></span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="comment">/* Some public enums needed by most subsequent headers */</span>
<a name="l00036"></a>00036
<a name="l00119"></a><a class="code" href="group__log.html#gd8d4f1a6d33c3dfe2c3d9f58da779d09">00119</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00120"></a>00120 {
<a name="l00121"></a>00121 LQT_LOG_ERROR = (1<<0),
<a name="l00122"></a>00122 LQT_LOG_WARNING = (1<<1),
<a name="l00123"></a>00123 LQT_LOG_INFO = (1<<2),
<a name="l00124"></a>00124 LQT_LOG_DEBUG = (1<<3),
<a name="l00125"></a>00125 } <a class="code" href="group__log.html#gd8d4f1a6d33c3dfe2c3d9f58da779d09" title="Log level.">lqt_log_level_t</a>;
<a name="l00126"></a>00126
<a name="l00135"></a><a class="code" href="group__log.html#g45a6876f0e9d7a843830551ea7aa7817">00135</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__log.html#g45a6876f0e9d7a843830551ea7aa7817" title="Log callback.">lqt_log_callback_t</a>)(<a class="code" href="group__log.html#gd8d4f1a6d33c3dfe2c3d9f58da779d09" title="Log level.">lqt_log_level_t</a> level,
<a name="l00136"></a>00136 <span class="keyword">const</span> <span class="keywordtype">char</span> * domain,
<a name="l00137"></a>00137 <span class="keyword">const</span> <span class="keywordtype">char</span> * message,
<a name="l00138"></a>00138 <span class="keywordtype">void</span> * data);
<a name="l00139"></a>00139
<a name="l00140"></a>00140
<a name="l00147"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752">00147</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00148"></a>00148 {
<a name="l00149"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752d07c006800f2c7a656eb5b409d5eebeb">00149</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752d07c006800f2c7a656eb5b409d5eebeb">LQT_FILE_NONE</a> = 0,
<a name="l00150"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b33075210490938b1492a5f3471dfe4115edfff">00150</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b33075210490938b1492a5f3471dfe4115edfff">LQT_FILE_QT_OLD</a> = (1<<0),
<a name="l00151"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752f95f83b72b3fe5483cc6bdd46d0fe45f">00151</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752f95f83b72b3fe5483cc6bdd46d0fe45f">LQT_FILE_QT</a> = (1<<1),
<a name="l00152"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752d174fe439ba987e5d2584eea181b3d19">00152</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752d174fe439ba987e5d2584eea181b3d19">LQT_FILE_AVI</a> = (1<<2),
<a name="l00153"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752b8c9f4787f315a0bbf4a9df92f9767ba">00153</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752b8c9f4787f315a0bbf4a9df92f9767ba">LQT_FILE_AVI_ODML</a> = (1<<3),
<a name="l00154"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b33075211da4f530c2b7346df92dd164fb81bff">00154</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b33075211da4f530c2b7346df92dd164fb81bff">LQT_FILE_MP4</a> = (1<<4),
<a name="l00155"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b3307528b6879e6cc8b1bc20bdb0a2331ddddf3">00155</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b3307528b6879e6cc8b1bc20bdb0a2331ddddf3">LQT_FILE_M4A</a> = (1<<5),
<a name="l00156"></a><a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b3307525f135713b6c38762ab063f43ea928902">00156</a> <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b3307525f135713b6c38762ab063f43ea928902">LQT_FILE_3GP</a> = (1<<6),
<a name="l00157"></a>00157 } <a class="code" href="quicktime_8h.html#bfbd1730b4658f81715331125b330752" title="File types.">lqt_file_type_t</a>;
<a name="l00158"></a>00158
<a name="l00159"></a>00159
<a name="l00170"></a><a class="code" href="group__multichannel.html#g9a573cd78e1f9ca0f2c5008ffc149ee2">00170</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00171"></a>00171 {
<a name="l00172"></a>00172 LQT_CHANNEL_UNKNOWN,
<a name="l00173"></a>00173 LQT_CHANNEL_FRONT_LEFT,
<a name="l00174"></a>00174 LQT_CHANNEL_FRONT_RIGHT,
<a name="l00175"></a>00175 LQT_CHANNEL_FRONT_CENTER,
<a name="l00176"></a>00176 LQT_CHANNEL_FRONT_CENTER_LEFT,
<a name="l00177"></a>00177 LQT_CHANNEL_FRONT_CENTER_RIGHT,
<a name="l00178"></a>00178 LQT_CHANNEL_BACK_CENTER,
<a name="l00179"></a>00179 LQT_CHANNEL_BACK_LEFT,
<a name="l00180"></a>00180 LQT_CHANNEL_BACK_RIGHT,
<a name="l00181"></a>00181 LQT_CHANNEL_SIDE_LEFT,
<a name="l00182"></a>00182 LQT_CHANNEL_SIDE_RIGHT,
<a name="l00183"></a>00183 LQT_CHANNEL_LFE,
<a name="l00184"></a>00184 } <a class="code" href="group__multichannel.html#g9a573cd78e1f9ca0f2c5008ffc149ee2" title="Channel definitions.">lqt_channel_t</a>;
<a name="l00185"></a>00185
<a name="l00186"></a>00186
<a name="l00250"></a><a class="code" href="group__video.html#g58950c90660f8709fa724f19afe83c7b">00250</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00251"></a>00251 {
<a name="l00252"></a><a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7bcb07470be4c1d9e75f43793cd435410e">00252</a> <a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7bcb07470be4c1d9e75f43793cd435410e">LQT_INTERLACE_NONE</a> = 0,
<a name="l00253"></a><a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7b9d808f083652c8e6315f65ace4f8cf58">00253</a> <a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7b9d808f083652c8e6315f65ace4f8cf58">LQT_INTERLACE_TOP_FIRST</a>,
<a name="l00254"></a><a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7be623d0817d9164618ad8a2018c39983a">00254</a> <a class="code" href="group__video.html#gg58950c90660f8709fa724f19afe83c7be623d0817d9164618ad8a2018c39983a">LQT_INTERLACE_BOTTOM_FIRST</a>
<a name="l00255"></a>00255 } <a class="code" href="group__video.html#g58950c90660f8709fa724f19afe83c7b" title="interlace modes">lqt_interlace_mode_t</a>;
<a name="l00256"></a>00256
<a name="l00266"></a><a class="code" href="group__video.html#g29e261e843838c4509b4223e7a825516">00266</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00267"></a>00267 {
<a name="l00268"></a><a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a8255161dde2930c75c1a7cc3863c052bc389cb">00268</a> <a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a8255161dde2930c75c1a7cc3863c052bc389cb">LQT_CHROMA_PLACEMENT_DEFAULT</a> = 0,
<a name="l00269"></a><a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a825516ef405c345a902ae3cc3e20e24381ecae">00269</a> <a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a825516ef405c345a902ae3cc3e20e24381ecae">LQT_CHROMA_PLACEMENT_MPEG2</a>,
<a name="l00270"></a><a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a8255161af8a6f7e0f074ba22e8625d0f3d0696">00270</a> <a class="code" href="group__video.html#gg29e261e843838c4509b4223e7a8255161af8a6f7e0f074ba22e8625d0f3d0696">LQT_CHROMA_PLACEMENT_DVPAL</a>,
<a name="l00271"></a>00271 } <a class="code" href="group__video.html#g29e261e843838c4509b4223e7a825516" title="Chroma placement.">lqt_chroma_placement_t</a>;
<a name="l00272"></a>00272
<a name="l00282"></a><a class="code" href="group__audio.html#g1bc8892b20c04e8d9dbbed7666e85dd8">00282</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00283"></a>00283 {
<a name="l00284"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8cc93dc9b43e854a63f09177cc9a887b9">00284</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8cc93dc9b43e854a63f09177cc9a887b9">LQT_SAMPLE_UNDEFINED</a> = 0,
<a name="l00285"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8118658720ae0b9750c33a28f15954a38">00285</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8118658720ae0b9750c33a28f15954a38">LQT_SAMPLE_INT8</a>,
<a name="l00286"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8f1350eabe516c4bb1c7f27f12046415a">00286</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8f1350eabe516c4bb1c7f27f12046415a">LQT_SAMPLE_UINT8</a>,
<a name="l00287"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd860d6a8c3a788b1b75f6e7aded988b2a6">00287</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd860d6a8c3a788b1b75f6e7aded988b2a6">LQT_SAMPLE_INT16</a>,
<a name="l00288"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8898817c17919e3fce7aec54ffd646a6b">00288</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8898817c17919e3fce7aec54ffd646a6b">LQT_SAMPLE_INT32</a>,
<a name="l00289"></a><a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8bc7fa82547e45f59a8fc557b8570f347">00289</a> <a class="code" href="group__audio.html#gg1bc8892b20c04e8d9dbbed7666e85dd8bc7fa82547e45f59a8fc557b8570f347">LQT_SAMPLE_FLOAT</a>
<a name="l00290"></a>00290 } <a class="code" href="group__audio.html#g1bc8892b20c04e8d9dbbed7666e85dd8" title="Sample format definitions for audio.">lqt_sample_format_t</a>;
<a name="l00291"></a>00291
<a name="l00300"></a><a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4">00300</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>quicktime_s <a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a>;
<a name="l00301"></a>00301
<a name="l00302"></a>00302 <span class="comment">/* This is the reference for all your library entry points. */</span>
<a name="l00303"></a>00303
<a name="l00304"></a>00304 <span class="comment">/* ===== compression formats for which codecs exist ====== */</span>
<a name="l00305"></a>00305
<a name="l00325"></a><a class="code" href="group__video__codecs.html#gbb52e18a3782d726ade644406f3a4787">00325</a> <span class="preprocessor">#define QUICKTIME_DIVX "DIVX"</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>
<a name="l00333"></a><a class="code" href="group__video__codecs.html#g1adad8a00666371db06781095e45f738">00333</a> <span class="preprocessor">#define QUICKTIME_DIV3 "DIV3"</span>
<a name="l00334"></a>00334 <span class="preprocessor"></span>
<a name="l00341"></a><a class="code" href="group__video__codecs.html#g8f80f7eb20728e3ab5576c237c17cd67">00341</a> <span class="preprocessor">#define QUICKTIME_DV "dvc "</span>
<a name="l00342"></a>00342 <span class="preprocessor"></span><span class="comment">/* AVID DV codec can be processed with libdv as well */</span>
<a name="l00343"></a>00343
<a name="l00350"></a><a class="code" href="group__video__codecs.html#gdb77f090a91acb8d59b8c8a274ba92b1">00350</a> <span class="preprocessor">#define QUICKTIME_DV_AVID "AVdv"</span>
<a name="l00351"></a>00351 <span class="preprocessor"></span>
<a name="l00358"></a><a class="code" href="group__video__codecs.html#g4aede138ab1dcef1af8fd16708c48be1">00358</a> <span class="preprocessor">#define QUICKTIME_DV_AVID_A "dvcp"</span>
<a name="l00359"></a>00359 <span class="preprocessor"></span>
<a name="l00367"></a>00367 <span class="comment">/* RGB uncompressed. Allows alpha */</span>
<a name="l00368"></a><a class="code" href="group__video__codecs.html#ge12a61cb68a30d0942e67108e15b6879">00368</a> <span class="preprocessor">#define QUICKTIME_RAW "raw "</span>
<a name="l00369"></a>00369 <span class="preprocessor"></span>
<a name="l00376"></a>00376 <span class="comment">/* Jpeg Photo */</span>
<a name="l00377"></a><a class="code" href="group__video__codecs.html#gfe09036ce465ab13989c8aa1a9dfc8c3">00377</a> <span class="preprocessor">#define QUICKTIME_JPEG "jpeg"</span>
<a name="l00378"></a>00378 <span class="preprocessor"></span>
<a name="l00379"></a>00379 <span class="comment">/* Concatenated png images. Allows alpha */</span>
<a name="l00380"></a>00380
<a name="l00388"></a><a class="code" href="group__video__codecs.html#g9afab4491839026c1027fc0162b51232">00388</a> <span class="preprocessor">#define QUICKTIME_PNG "png "</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span>
<a name="l00397"></a><a class="code" href="group__video__codecs.html#g2280c2d39d6c4e8347b2d584ba8f7961">00397</a> <span class="preprocessor">#define QUICKTIME_MJPA "mjpa"</span>
<a name="l00398"></a>00398 <span class="preprocessor"></span>
<a name="l00405"></a><a class="code" href="group__video__codecs.html#g2426419b0d50595b13294cebdd9a9358">00405</a> <span class="preprocessor">#define QUICKTIME_YUV2 "yuv2"</span>
<a name="l00406"></a>00406 <span class="preprocessor"></span>
<a name="l00413"></a><a class="code" href="group__video__codecs.html#ge705ce96cbb74369f7684abd9497bd54">00413</a> <span class="preprocessor">#define QUICKTIME_YUV4 "yuv4"</span>
<a name="l00414"></a>00414 <span class="preprocessor"></span>
<a name="l00422"></a><a class="code" href="group__video__codecs.html#gdadffa3b5c4f787cf3dcc892c66f168b">00422</a> <span class="preprocessor">#define QUICKTIME_YUV420 "yv12"</span>
<a name="l00423"></a>00423 <span class="preprocessor"></span>
<a name="l00430"></a><a class="code" href="group__video__codecs.html#g60b6e0607d047f3336b80d439e6a0527">00430</a> <span class="preprocessor">#define QUICKTIME_2VUY "2vuy"</span>
<a name="l00431"></a>00431 <span class="preprocessor"></span>
<a name="l00438"></a><a class="code" href="group__video__codecs.html#gace13c5b352983d09046f75e526b1c7b">00438</a> <span class="preprocessor">#define QUICKTIME_V308 "v308"</span>
<a name="l00439"></a>00439 <span class="preprocessor"></span>
<a name="l00446"></a><a class="code" href="group__video__codecs.html#g208349bf943c12aaaf534926a834c86f">00446</a> <span class="preprocessor">#define QUICKTIME_V408 "v408"</span>
<a name="l00447"></a>00447 <span class="preprocessor"></span>
<a name="l00454"></a><a class="code" href="group__video__codecs.html#g2027e8f771639ea54a81a43945291b8a">00454</a> <span class="preprocessor">#define QUICKTIME_V210 "v210"</span>
<a name="l00455"></a>00455 <span class="preprocessor"></span>
<a name="l00462"></a><a class="code" href="group__video__codecs.html#g97b3d51dfe51d7626b8ef8f9a7d59f31">00462</a> <span class="preprocessor">#define QUICKTIME_V410 "v410"</span>
<a name="l00463"></a>00463 <span class="preprocessor"></span>
<a name="l00464"></a>00464 <span class="comment">/* =================== Audio formats ======================= */</span>
<a name="l00465"></a>00465
<a name="l00485"></a><a class="code" href="group__audio__codecs.html#gefd8d3427104093ec690c03caff191c2">00485</a> <span class="preprocessor">#define QUICKTIME_RAWAUDIO "raw "</span>
<a name="l00486"></a>00486 <span class="preprocessor"></span>
<a name="l00493"></a><a class="code" href="group__audio__codecs.html#g4f732b7bf28d98579d836617503b6adc">00493</a> <span class="preprocessor">#define QUICKTIME_IMA4 "ima4"</span>
<a name="l00494"></a>00494 <span class="preprocessor"></span>
<a name="l00501"></a><a class="code" href="group__audio__codecs.html#g83f9701d576bc8cb29debba0b4f0b087">00501</a> <span class="preprocessor">#define QUICKTIME_TWOS "twos"</span>
<a name="l00502"></a>00502 <span class="preprocessor"></span>
<a name="l00509"></a><a class="code" href="group__audio__codecs.html#g32888261a21059e9a5cda13b5f7a097e">00509</a> <span class="preprocessor">#define QUICKTIME_ULAW "ulaw"</span>
<a name="l00510"></a>00510 <span class="preprocessor"></span>
<a name="l00519"></a><a class="code" href="group__audio__codecs.html#g2a0eed32344ed528e853259fade7d24d">00519</a> <span class="preprocessor">#define QUICKTIME_VORBIS "OggS"</span>
<a name="l00520"></a>00520 <span class="preprocessor"></span>
<a name="l00528"></a><a class="code" href="group__audio__codecs.html#ga5a1ac1df5c44c10c7e1bd3591e493f6">00528</a> <span class="preprocessor">#define QUICKTIME_MP3 ".mp3"</span>
<a name="l00529"></a>00529 <span class="preprocessor"></span>
<a name="l00530"></a>00530 <span class="comment">/* =========================== public interface ========================= // */</span>
<a name="l00531"></a>00531
<a name="l00540"></a>00540 <span class="comment">/* Get version information */</span>
<a name="l00541"></a>00541 <span class="keywordtype">int</span> <a class="code" href="group__general.html#g83666649d6a4aa5cd325125d0c1ad9ba" title="Get the quicktime4linux major version.">quicktime_major</a>();
<a name="l00542"></a>00542
<a name="l00550"></a>00550 <span class="keywordtype">int</span> <a class="code" href="group__general.html#g097a160f49f380c60927614f087ce915" title="Get the quicktime4linux minor version.">quicktime_minor</a>();
<a name="l00551"></a>00551
<a name="l00560"></a>00560 <span class="keywordtype">int</span> <a class="code" href="group__general.html#g06b7a9c0bdb2547ffce08494061d23b9" title="Get the quicktime4linux release number.">quicktime_release</a>();
<a name="l00561"></a>00561
<a name="l00573"></a>00573 <span class="keywordtype">int</span> <a class="code" href="group__general.html#g963cf40be668905f6739dd0f26b374ae" title="Test file compatibility.">quicktime_check_sig</a>(<span class="keywordtype">char</span> *path);
<a name="l00574"></a>00574
<a name="l00585"></a>00585 <a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a>* <a class="code" href="group__general.html#g5030efd6bb6fb69b4f502845f0518333" title="Open a file.">quicktime_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">int</span> rd, <span class="keywordtype">int</span> wr);
<a name="l00586"></a>00586
<a name="l00599"></a>00599 <span class="keywordtype">int</span> <a class="code" href="group__general.html#ge40019e89d2b0d0b482a10ec507934cb" title="Make a file streamable.">quicktime_make_streamable</a>(<span class="keywordtype">char</span> *in_path, <span class="keywordtype">char</span> *out_path);
<a name="l00600"></a>00600
<a name="l00614"></a>00614 <span class="keywordtype">void</span> <a class="code" href="group__metadata.html#g05a3443f6b010915505ab5a84f4af742" title="Set the copyright info for the file.">quicktime_set_copyright</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">char</span> *<span class="keywordtype">string</span>);
<a name="l00615"></a>00615
<a name="l00622"></a>00622 <span class="keywordtype">void</span> <a class="code" href="group__metadata.html#g2bd2b1799cd2d5297af2da29df0cfc5b" title="Set the name for the file.">quicktime_set_name</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">char</span> *<span class="keywordtype">string</span>);
<a name="l00623"></a>00623
<a name="l00630"></a>00630 <span class="keywordtype">void</span> <a class="code" href="group__metadata.html#g54104cd9eb1418f1c6f586f170624e36" title="Set info for the file.">quicktime_set_info</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">char</span> *<span class="keywordtype">string</span>);
<a name="l00631"></a>00631
<a name="l00639"></a>00639 <span class="keywordtype">char</span>* <a class="code" href="group__metadata.html#g1aff102e7e6c830a26aa302aed2b69ce" title="Get the copyright info from the file.">quicktime_get_copyright</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00640"></a>00640
<a name="l00648"></a>00648 <span class="keywordtype">char</span>* <a class="code" href="group__metadata.html#g8977dc168f9651b3f8ba2f8cc29a9dec" title="Get the name from the file.">quicktime_get_name</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00649"></a>00649
<a name="l00656"></a>00656 <span class="keywordtype">char</span>* <a class="code" href="group__metadata.html#g6fb5d6957dc46c6be421b30a1e26ebb7" title="Get the info string from the file.">quicktime_get_info</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00657"></a>00657
<a name="l00658"></a>00658
<a name="l00674"></a>00674 <span class="keywordtype">int</span> <a class="code" href="group__audio__encode.html#g6e01657d8c9473793b92464fd85fbb3a" title="Set up tracks in a new file after opening and before writing.">quicktime_set_audio</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l00675"></a>00675 <span class="keywordtype">int</span> channels,
<a name="l00676"></a>00676 <span class="keywordtype">long</span> sample_rate,
<a name="l00677"></a>00677 <span class="keywordtype">int</span> bits,
<a name="l00678"></a>00678 <span class="keywordtype">char</span> *compressor);
<a name="l00679"></a>00679
<a name="l00690"></a>00690 <span class="keywordtype">void</span> <a class="code" href="group__video__encode.html#g5fcd6798e3cb48f68df0b3209c9c5fc8" title="Set the framerate for encoding.">quicktime_set_framerate</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">double</span> framerate);
<a name="l00691"></a>00691
<a name="l00707"></a>00707 <span class="keywordtype">int</span> <a class="code" href="group__video__encode.html#gc966ea427e815bd69939c9aed6d5bb9b" title="Set up video tracks for encoding.">quicktime_set_video</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l00708"></a>00708 <span class="keywordtype">int</span> tracks,
<a name="l00709"></a>00709 <span class="keywordtype">int</span> frame_w,
<a name="l00710"></a>00710 <span class="keywordtype">int</span> frame_h,
<a name="l00711"></a>00711 <span class="keywordtype">double</span> frame_rate,
<a name="l00712"></a>00712 <span class="keywordtype">char</span> *compressor);
<a name="l00713"></a>00713
<a name="l00727"></a>00727 <span class="keywordtype">void</span> <a class="code" href="group__video__encode.html#gfa3865194b41bb5272bac9e728792017" title="Set jpeg encoding quality.">quicktime_set_jpeg</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> quality, <span class="keywordtype">int</span> use_float);
<a name="l00728"></a>00728
<a name="l00743"></a>00743 <span class="keywordtype">void</span> <a class="code" href="group__video__encode.html#g5ed4b88578d7d510b49e1c0595b38b34" title="Set a codec parameter.">quicktime_set_parameter</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">char</span> *key, <span class="keywordtype">void</span> *value);
<a name="l00744"></a>00744
<a name="l00755"></a>00755 <span class="keywordtype">void</span> <a class="code" href="group__video__encode.html#g052604d9a1276535d4565cf4a87e3a69" title="Set the depth of a video track.">quicktime_set_depth</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l00756"></a>00756 <span class="keywordtype">int</span> depth,
<a name="l00757"></a>00757 <span class="keywordtype">int</span> track);
<a name="l00758"></a>00758
<a name="l00768"></a>00768 <span class="keywordtype">void</span> <a class="code" href="group__video.html#gf44128ec17fe3c167c36ac6491be6dff" title="Set the colormodel for en-/decoding.">quicktime_set_cmodel</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> colormodel);
<a name="l00769"></a>00769
<a name="l00780"></a>00780 <span class="keywordtype">void</span> <a class="code" href="group__video.html#g57604576bcdf178afb9023bc194dc12f" title="Set the row_span for en-/decoding.">quicktime_set_row_span</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> row_span);
<a name="l00781"></a>00781
<a name="l00787"></a>00787 <span class="keywordtype">int</span> <a class="code" href="group__general.html#ge5502f2093ab88e5ff79036a3a836b27" title="Close a quicktime handle and free all associated memory.">quicktime_close</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00788"></a>00788
<a name="l00789"></a>00789 <span class="comment">/* get length information */</span>
<a name="l00790"></a>00790 <span class="comment">/* channel numbers start on 1 for audio and video */</span>
<a name="l00791"></a>00791
<a name="l00800"></a>00800 <span class="keywordtype">long</span> <a class="code" href="group__audio__decode.html#g73add06ff6dcf50a806596c6e39fed14" title="Get the audio length.">quicktime_audio_length</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00801"></a>00801
<a name="l00813"></a>00813 <span class="keywordtype">long</span> <a class="code" href="group__video__decode.html#g603db00dacc8a69464613ccda7404ff4" title="Get the video length.">quicktime_video_length</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00814"></a>00814
<a name="l00822"></a>00822 <span class="comment">/* get position information */</span>
<a name="l00823"></a>00823 <span class="keywordtype">long</span> <a class="code" href="group__audio__decode.html#gf81ed5f7a3801c1387e389ec2f08ea34" title="Get the audio position.">quicktime_audio_position</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00824"></a>00824
<a name="l00834"></a>00834 <span class="keywordtype">long</span> <a class="code" href="group__video__decode.html#g7e1b8a1d2906fb16e4bdb0eb241570fe" title="Get the video position.">quicktime_video_position</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00835"></a>00835
<a name="l00842"></a>00842 <span class="comment">/* get file information */</span>
<a name="l00843"></a>00843 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#g32bd58652430328eb00d272a96af9b37" title="Get the number of video tracks.">quicktime_video_tracks</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00844"></a>00844
<a name="l00851"></a>00851 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g5e42c53037d62306e27886aa5bd7215f" title="Get the number of audio tracks.">quicktime_audio_tracks</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00852"></a>00852
<a name="l00859"></a>00859 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#gd8fab2c601a024a65ce814fbf0d75fe5" title="Check if a file has at least one audio track.">quicktime_has_audio</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00860"></a>00860
<a name="l00868"></a>00868 <span class="keywordtype">long</span> <a class="code" href="group__audio__decode.html#g3842e80013742ccf947ccdc622b7fc39" title="Get the samplerate of an audio track.">quicktime_sample_rate</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00869"></a>00869
<a name="l00884"></a>00884 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g2f87633dd353e14528542fcbdb91e49c" title="Get the bits per sample of an audio track.">quicktime_audio_bits</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00885"></a>00885
<a name="l00893"></a>00893 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g4a144a36a8c030a95b286b13e0000065" title="Get the number of channels of an audio track.">quicktime_track_channels</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00894"></a>00894
<a name="l00907"></a>00907 <span class="keywordtype">char</span>* <a class="code" href="group__audio__decode.html#gcaa38f0a3b49b86703a98055bd8f14e4" title="Get the four character code of an audio track.">quicktime_audio_compressor</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00908"></a>00908
<a name="l00915"></a>00915 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#g8fef1c88e0a13e776ca481ba1ed1ed5d" title="Check if a file has at least one video track.">quicktime_has_video</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l00916"></a>00916
<a name="l00924"></a>00924 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#g6cd570a21d6760fd2d58a92f782ec47a" title="Get the width of a video track.">quicktime_video_width</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00925"></a>00925
<a name="l00933"></a>00933 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#gd2b205cb2043d1fb006b2c13da620c5e" title="Get the height of a video track.">quicktime_video_height</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00934"></a>00934
<a name="l00949"></a>00949 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#g695cae3dc4c850f8be205d04805b1fac" title="Get the depth of a video track.">quicktime_video_depth</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00950"></a>00950
<a name="l00965"></a>00965 <span class="keywordtype">double</span> <a class="code" href="group__video__decode.html#g1ea4677e85c6d4b654bc12b71eafd86d" title="Get the framerate of a video track.">quicktime_frame_rate</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00966"></a>00966
<a name="l00977"></a>00977 <span class="keywordtype">char</span>* <a class="code" href="group__video__decode.html#g01bcc92490df2d4e773c8e8a6fa54cf9" title="Get the four character code of a video track.">quicktime_video_compressor</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l00978"></a>00978
<a name="l00979"></a>00979 <span class="comment">/* number of bytes of raw data in this frame */</span>
<a name="l00980"></a>00980
<a name="l00992"></a>00992 <span class="keywordtype">long</span> <a class="code" href="group__video__decode.html#g285ddd869be1e08ece4ba3e9fe3efff8" title="Get the compressed size of frame in a video track.">quicktime_frame_size</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">long</span> frame, <span class="keywordtype">int</span> track);
<a name="l00993"></a>00993
<a name="l01003"></a>01003 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g1b81bfad233e5147c7072c85b677822b">quicktime_channel_location</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> *quicktime_track, <span class="keywordtype">int</span> *quicktime_channel, <span class="keywordtype">int</span> channel);
<a name="l01004"></a>01004
<a name="l01005"></a>01005 <span class="comment">/* file positioning */</span>
<a name="l01006"></a>01006 <span class="comment">/* Remove these and see what happens :) */</span>
<a name="l01007"></a>01007
<a name="l01008"></a>01008 <span class="comment">// int quicktime_seek_end(quicktime_t *file);</span>
<a name="l01009"></a>01009
<a name="l01018"></a>01018 <span class="keywordtype">int</span> <a class="code" href="quicktime_8h.html#dff45d3854609dcc1986a7d28115c067" title="Reposition all tracks to the very beginning.">quicktime_seek_start</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l01019"></a>01019
<a name="l01020"></a>01020 <span class="comment">/* set position of file descriptor relative to a track */</span>
<a name="l01021"></a>01021
<a name="l01030"></a>01030 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g53a8478f9f132f5c9531e0e9d3a748bb" title="Seek to a specific audio position.">quicktime_set_audio_position</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, int64_t sample, <span class="keywordtype">int</span> track);
<a name="l01031"></a>01031
<a name="l01042"></a>01042 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#ge8888a92cc4a27c42d8d323c43a58d62" title="Seek to a specific video frame.">quicktime_set_video_position</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, int64_t frame, <span class="keywordtype">int</span> track);
<a name="l01043"></a>01043
<a name="l01044"></a>01044 <span class="comment">/* ========================== Access to raw data follows. */</span>
<a name="l01045"></a>01045 <span class="comment">/* write data for one quicktime track */</span>
<a name="l01046"></a>01046 <span class="comment">/* the user must handle conversion to the channels in this track */</span>
<a name="l01047"></a>01047 <span class="keywordtype">int</span> quicktime_write_audio(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, uint8_t *audio_buffer, <span class="keywordtype">long</span> samples, <span class="keywordtype">int</span> track);
<a name="l01048"></a>01048
<a name="l01063"></a>01063 <span class="keywordtype">int</span> <a class="code" href="group__video__encode.html#gae812955dccd1fe331a8de99de858421" title="Write a compressed video frame.">quicktime_write_frame</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, uint8_t *video_buffer, int64_t bytes, <span class="keywordtype">int</span> track);
<a name="l01064"></a>01064
<a name="l01077"></a>01077 <span class="keywordtype">long</span> <a class="code" href="group__video__decode.html#gf8cfb27467c42f8debb2b7d6e0a5f0ab" title="Read a compressed video frame.">quicktime_read_frame</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *video_buffer, <span class="keywordtype">int</span> track);
<a name="l01078"></a>01078
<a name="l01079"></a>01079 <span class="comment">/* for reading frame using a library that needs a file descriptor */</span>
<a name="l01080"></a>01080 <span class="comment">/* Frame caching doesn't work here. */</span>
<a name="l01081"></a>01081 <span class="keywordtype">int</span> quicktime_read_frame_init(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l01082"></a>01082 <span class="keywordtype">int</span> quicktime_read_frame_end(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l01083"></a>01083
<a name="l01084"></a>01084 <span class="comment">/* One keyframe table for each track */</span>
<a name="l01085"></a>01085 <span class="keywordtype">long</span> quicktime_get_keyframe_before(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">long</span> frame, <span class="keywordtype">int</span> track);
<a name="l01086"></a>01086 <span class="keywordtype">void</span> quicktime_insert_keyframe(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">long</span> frame, <span class="keywordtype">int</span> track);
<a name="l01087"></a>01087 <span class="comment">/* Track has keyframes */</span>
<a name="l01088"></a>01088 <span class="keywordtype">int</span> quicktime_has_keyframes(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l01089"></a>01089
<a name="l01090"></a>01090 <span class="comment">/* ===================== Access to built in codecs follows. */</span>
<a name="l01091"></a>01091
<a name="l01092"></a>01092 <span class="comment">/* If the codec for this track is supported in the library return 1. */</span>
<a name="l01093"></a>01093
<a name="l01101"></a>01101 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#gd8646255de8a70c780e5267027a0d83e" title="Check if a video track is supported by libquicktime.">quicktime_supported_video</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l01102"></a>01102
<a name="l01110"></a>01110 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g4682b20d2bc8526ee10c30967dcff255" title="Check if an audio track is supported by libquicktime.">quicktime_supported_audio</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> track);
<a name="l01111"></a>01111
<a name="l01123"></a>01123 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#gde9f2accad2e073101f2eaac4e34a499" title="Check if a colormodel is supported for decoding.">quicktime_reads_cmodel</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l01124"></a>01124 <span class="keywordtype">int</span> colormodel,
<a name="l01125"></a>01125 <span class="keywordtype">int</span> track);
<a name="l01126"></a>01126
<a name="l01138"></a>01138 <span class="keywordtype">int</span> <a class="code" href="group__video__encode.html#g1819c497a934a07c6dc18abfd91b0a91" title="Check if a colormodel is supported for encoding.">quicktime_writes_cmodel</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l01139"></a>01139 <span class="keywordtype">int</span> colormodel,
<a name="l01140"></a>01140 <span class="keywordtype">int</span> track);
<a name="l01141"></a>01141
<a name="l01142"></a>01142
<a name="l01143"></a>01143 <span class="comment">/* Hacks for temporal codec */</span>
<a name="l01144"></a>01144 <span class="keywordtype">int</span> quicktime_divx_is_key(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data, <span class="keywordtype">long</span> size);
<a name="l01145"></a>01145 <span class="keywordtype">int</span> quicktime_divx_write_vol(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data_start,
<a name="l01146"></a>01146 <span class="keywordtype">int</span> vol_width,
<a name="l01147"></a>01147 <span class="keywordtype">int</span> vol_height,
<a name="l01148"></a>01148 <span class="keywordtype">int</span> time_increment_resolution,
<a name="l01149"></a>01149 <span class="keywordtype">double</span> frame_rate);
<a name="l01150"></a>01150 <span class="keywordtype">int</span> quicktime_divx_has_vol(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data);
<a name="l01151"></a>01151
<a name="l01152"></a>01152 <span class="keywordtype">int</span> quicktime_div3_is_key(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data, <span class="keywordtype">long</span> size);
<a name="l01153"></a>01153
<a name="l01164"></a>01164 <span class="keywordtype">int</span> <a class="code" href="group__video__encode.html#g8b8200cfc5a091faf3711b19748f5ce0" title="Encode a video frame.">quicktime_encode_video</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l01165"></a>01165 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **row_pointers,
<a name="l01166"></a>01166 <span class="keywordtype">int</span> track);
<a name="l01167"></a>01167
<a name="l01178"></a>01178 <span class="keywordtype">int</span> <a class="code" href="group__video__decode.html#g36ea9ac47d3972bcae70cf66de7c0ab5" title="Decode a video frame in BC_RGB888.">quicktime_decode_video</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l01179"></a>01179 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **row_pointers,
<a name="l01180"></a>01180 <span class="keywordtype">int</span> track);
<a name="l01181"></a>01181
<a name="l01202"></a>01202 <span class="keywordtype">long</span> <a class="code" href="group__video__decode.html#g2c115cef94e66be513d1dddde2ad9f52" title="Decode aand optionally scale a video frame.">quicktime_decode_scaled</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file,
<a name="l01203"></a>01203 <span class="keywordtype">int</span> in_x, <span class="comment">/* Location of input frame to take picture */</span>
<a name="l01204"></a>01204 <span class="keywordtype">int</span> in_y,
<a name="l01205"></a>01205 <span class="keywordtype">int</span> in_w,
<a name="l01206"></a>01206 <span class="keywordtype">int</span> in_h,
<a name="l01207"></a>01207 <span class="keywordtype">int</span> out_w, <span class="comment">/* Dimensions of output frame */</span>
<a name="l01208"></a>01208 <span class="keywordtype">int</span> out_h,
<a name="l01209"></a>01209 <span class="keywordtype">int</span> color_model, <span class="comment">/* One of the color models defined above */</span>
<a name="l01210"></a>01210 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> **row_pointers,
<a name="l01211"></a>01211 <span class="keywordtype">int</span> track);
<a name="l01212"></a>01212
<a name="l01213"></a>01213 <span class="comment">/* Decode or encode audio for a single channel into the buffer. */</span>
<a name="l01214"></a>01214 <span class="comment">/* Pass a buffer for the _i or the _f argument if you want int16 or float data. */</span>
<a name="l01215"></a>01215 <span class="comment">/* Notice that encoding requires an array of pointers to each channel. */</span>
<a name="l01216"></a>01216
<a name="l01234"></a>01234 <span class="keywordtype">int</span> <a class="code" href="group__audio__decode.html#g9c930df50ed2c2f037a4c1423a2eb61a" title="Decode a number of audio samples of a single channel.">quicktime_decode_audio</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, int16_t *output_i, <span class="keywordtype">float</span> *output_f, <span class="keywordtype">long</span> samples, <span class="keywordtype">int</span> channel);
<a name="l01235"></a>01235
<a name="l01248"></a>01248 <span class="keywordtype">int</span> <a class="code" href="group__audio__encode.html#g2981e8327f2cd3ee0d33d6d255f05f70" title="Encode a number of audio samples for the first track.">quicktime_encode_audio</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, int16_t **input_i, <span class="keywordtype">float</span> **input_f, <span class="keywordtype">long</span> samples);
<a name="l01249"></a>01249
<a name="l01257"></a>01257 <span class="keywordtype">int</span> <a class="code" href="group__general.html#gb197b96b346c8b7ebe83049d18e63bf0" title="Dump the file structures to stdout.">quicktime_dump</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l01258"></a>01258
<a name="l01259"></a>01259 <span class="comment">/* Specify the number of cpus to utilize. */</span>
<a name="l01260"></a>01260
<a name="l01271"></a>01271 <span class="keywordtype">int</span> <a class="code" href="group__general.html#g6063639c5e5e102b8c0a0790b5a6855b" title="Set the number of CPUs.">quicktime_set_cpus</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> cpus);
<a name="l01272"></a>01272
<a name="l01273"></a>01273 <span class="comment">/* Specify whether to read contiguously or not. */</span>
<a name="l01274"></a>01274 <span class="comment">/* preload is the number of bytes to read ahead. */</span>
<a name="l01275"></a>01275 <span class="comment">/* This is no longer functional to the end user but is used to accelerate */</span>
<a name="l01276"></a>01276 <span class="comment">/* reading the header internally. */</span>
<a name="l01277"></a>01277 <span class="keywordtype">void</span> quicktime_set_preload(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, int64_t preload);
<a name="l01278"></a>01278
<a name="l01279"></a>01279 int64_t quicktime_byte_position(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file);
<a name="l01280"></a>01280
<a name="l01289"></a>01289 <span class="keywordtype">void</span> <a class="code" href="group__general.html#g8a7f1ad91b5eefc2f42a60cf5bba3c9b" title="Write an AVI file instead of quicktime.">quicktime_set_avi</a>(<a class="code" href="group__general.html#gef65e7300455a3b25eafc7485ec2efa4" title="Quicktime handle.">quicktime_t</a> *file, <span class="keywordtype">int</span> value);
<a name="l01290"></a>01290
<a name="l01291"></a>01291
<a name="l01292"></a>01292
<a name="l01293"></a>01293 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l01294"></a>01294 <span class="preprocessor"></span>}
<a name="l01295"></a>01295 <span class="preprocessor">#endif</span>
<a name="l01296"></a>01296 <span class="preprocessor"></span>
<a name="l01297"></a>01297 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 8 23:01:07 2008 for libquicktime by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
|