/usr/share/doc/libquicktime-doc/apiref/group__video__decode.html is in libquicktime-doc 2:1.2.3-4build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>libquicktime: Video decoding</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">libquicktime
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<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><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Video decoding</div> </div>
<div class="ingroups"><a class="el" href="group__video.html">Video</a></div></div><!--header-->
<div class="contents">
<p>Video related definitions and functions (reading)
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga603db00dacc8a69464613ccda7404ff4">quicktime_video_length</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the video length. <a href="#ga603db00dacc8a69464613ccda7404ff4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga7e1b8a1d2906fb16e4bdb0eb241570fe">quicktime_video_position</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the video position. <a href="#ga7e1b8a1d2906fb16e4bdb0eb241570fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga32bd58652430328eb00d272a96af9b37">quicktime_video_tracks</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of video tracks. <a href="#ga32bd58652430328eb00d272a96af9b37"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga8fef1c88e0a13e776ca481ba1ed1ed5d">quicktime_has_video</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if a file has at least one video track. <a href="#ga8fef1c88e0a13e776ca481ba1ed1ed5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga6cd570a21d6760fd2d58a92f782ec47a">quicktime_video_width</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the width of a video track. <a href="#ga6cd570a21d6760fd2d58a92f782ec47a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gad2b205cb2043d1fb006b2c13da620c5e">quicktime_video_height</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the height of a video track. <a href="#gad2b205cb2043d1fb006b2c13da620c5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga695cae3dc4c850f8be205d04805b1fac">quicktime_video_depth</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the depth of a video track. <a href="#ga695cae3dc4c850f8be205d04805b1fac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga1ea4677e85c6d4b654bc12b71eafd86d">quicktime_frame_rate</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the framerate of a video track. <a href="#ga1ea4677e85c6d4b654bc12b71eafd86d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga01bcc92490df2d4e773c8e8a6fa54cf9">quicktime_video_compressor</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the four character code of a video track. <a href="#ga01bcc92490df2d4e773c8e8a6fa54cf9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga285ddd869be1e08ece4ba3e9fe3efff8">quicktime_frame_size</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, long frame, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the compressed size of frame in a video track. <a href="#ga285ddd869be1e08ece4ba3e9fe3efff8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gae8888a92cc4a27c42d8d323c43a58d62">quicktime_set_video_position</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int64_t frame, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Seek to a specific video frame. <a href="#gae8888a92cc4a27c42d8d323c43a58d62"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gaf8cfb27467c42f8debb2b7d6e0a5f0ab">quicktime_read_frame</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, unsigned char *video_buffer, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a compressed video frame. <a href="#gaf8cfb27467c42f8debb2b7d6e0a5f0ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gad8646255de8a70c780e5267027a0d83e">quicktime_supported_video</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if a video track is supported by libquicktime. <a href="#gad8646255de8a70c780e5267027a0d83e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gade9f2accad2e073101f2eaac4e34a499">quicktime_reads_cmodel</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int colormodel, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if a colormodel is supported for decoding. <a href="#gade9f2accad2e073101f2eaac4e34a499"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga36ea9ac47d3972bcae70cf66de7c0ab5">quicktime_decode_video</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, unsigned char **row_pointers, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decode a video frame in <a class="el" href="group__color.html#gaaec2dd466403410fc4daa417ec2ab6c6">BC_RGB888</a>. <a href="#ga36ea9ac47d3972bcae70cf66de7c0ab5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga2c115cef94e66be513d1dddde2ad9f52">quicktime_decode_scaled</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int in_x, int in_y, int in_w, int in_h, int out_w, int out_h, int color_model, unsigned char **row_pointers, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decode aand optionally scale a video frame. <a href="#ga2c115cef94e66be513d1dddde2ad9f52"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga2bff1434eb4dfff3c5c3cf7b4d05775c">lqt_get_pixel_aspect</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track, int *pixel_width, int *pixel_height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the pixel aspect ratio of a video track. <a href="#ga2bff1434eb4dfff3c5c3cf7b4d05775c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__video.html#ga58950c90660f8709fa724f19afe83c7b">lqt_interlace_mode_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga04f3591187e13cc2c6828ff82c02acad">lqt_get_interlace_mode</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the interlace mode. <a href="#ga04f3591187e13cc2c6828ff82c02acad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__video.html#ga29e261e843838c4509b4223e7a825516">lqt_chroma_placement_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga1679de33e938d9f9bcc7d670cadaecde">lqt_get_chroma_placement</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the chroma placement. <a href="#ga1679de33e938d9f9bcc7d670cadaecde"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga46f8fc7325baf8234e605836190e41a0">lqt_get_decoder_colormodel</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the native colormodel of the decoder. <a href="#ga46f8fc7325baf8234e605836190e41a0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gab61416d258197f4a75f6befb93d40ee4">lqt_frame_time</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the timestamp of the next frame to be decoded. <a href="#gab61416d258197f4a75f6befb93d40ee4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gad364110b5fbcaf20d6756559693c094a">lqt_decode_video</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, unsigned char **row_pointers, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decode one video frame. <a href="#gad364110b5fbcaf20d6756559693c094a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga7d4ede5d72c5b1c95c6edadc67d9ad0a">lqt_read_video_frame</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, uint8_t **buffer, int *buffer_alloc, int64_t frame, int64_t *time, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a compressed video frame. <a href="#ga7d4ede5d72c5b1c95c6edadc67d9ad0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga5ea0328064cb443be1a47a200d3f1b04">lqt_frame_duration</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track, int *constant)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the duration of the NEXT frame to be decoded. <a href="#ga5ea0328064cb443be1a47a200d3f1b04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#ga883a9a137a1256d04eb88ad5c8ad50a9">lqt_video_time_scale</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the timescale of the track. <a href="#ga883a9a137a1256d04eb88ad5c8ad50a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gab31bb654e765cee434d1b6eae93dee20">lqt_video_duration</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the duration of a video track. <a href="#gab31bb654e765cee434d1b6eae93dee20"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__video__decode.html#gab0b4fb3fb672f182db065f0eba1acdfb">lqt_seek_video</a> (<a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> *file, int track, int64_t time)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Seek to a specific video time. <a href="#gab0b4fb3fb672f182db065f0eba1acdfb"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Video related definitions and functions (reading) </p>
<p>The video API changed a lot during the last years (causing lot of confusion), so here is the preferred way: First get the number of video tracks with <a class="el" href="group__video__decode.html#ga32bd58652430328eb00d272a96af9b37">quicktime_video_tracks</a>. Then for each track you want to decode, use <a class="el" href="group__video__decode.html#gad8646255de8a70c780e5267027a0d83e">quicktime_supported_video</a> to verify that a codec is available. Then for each track, get the frame size with <a class="el" href="group__video__decode.html#ga6cd570a21d6760fd2d58a92f782ec47a">quicktime_video_width</a> and <a class="el" href="group__video__decode.html#gad2b205cb2043d1fb006b2c13da620c5e">quicktime_video_height</a> . The framerate is only exact when handled as a rational number. Thus, you'll need 2 functions <a class="el" href="group__video__decode.html#ga883a9a137a1256d04eb88ad5c8ad50a9">lqt_video_time_scale</a> and <a class="el" href="group__video__decode.html#ga5ea0328064cb443be1a47a200d3f1b04">lqt_frame_duration</a> . The framerate in frames/sec becomes time_scale/frame_duration. Further format information can be obtained with <a class="el" href="group__video__decode.html#ga2bff1434eb4dfff3c5c3cf7b4d05775c">lqt_get_pixel_aspect</a>, <a class="el" href="group__video__decode.html#ga04f3591187e13cc2c6828ff82c02acad">lqt_get_interlace_mode</a> and <a class="el" href="group__video__decode.html#ga1679de33e938d9f9bcc7d670cadaecde">lqt_get_chroma_placement</a>.</p>
<p>A very important thing is the colormodel (see <a class="el" href="group__color.html">Color handling</a>): First obtain the colormodel used natively by the codec with <a class="el" href="group__video.html#ga7053978f505b771b36fc27892721d032">lqt_get_cmodel</a>. Your application might or might not support all colormodels, which exist in libquicktime. The more colormodels you can handle yourself, the better, since libquicktimes built in colormodel converter is not the best. Thus, it's the best idea to pack all colormodels you can handle yourself into an array, and call <a class="el" href="group__video.html#ga128d549ba1e29083ab61f3425ae6350d">lqt_get_best_colormodel</a> to get the best colormodel. After you figured out, which colormodel you use, tell this to libquicktime with <a class="el" href="group__video.html#ga6d65bc0c73130f73da12379d8f428cdc">lqt_set_cmodel</a>.</p>
<p>When decoding frames, libquicktime by default assumes, that the frames you pass to it have no padding bytes between the scanlines. Some APIs however padd scanlines to certain boundaries. If this is the case, you must tell this to libquicktime by calling <a class="el" href="group__video.html#ga74cb491bf21df93ba971caf92d641a98">lqt_set_row_span</a> and <a class="el" href="group__video.html#ga65538f230c191a361ca894883e7e3752">lqt_set_row_span_uv</a> (for planar formats).</p>
<p>Then, for each frame, it's wise to get the timestamp with <a class="el" href="group__video__decode.html#gab61416d258197f4a75f6befb93d40ee4">lqt_frame_time</a> before decoding it. This will make sure, that you'll support tracks with nonconstant framerates. The actual decoding then should happen with <a class="el" href="group__video__decode.html#gad364110b5fbcaf20d6756559693c094a">lqt_decode_video</a>. </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga603db00dacc8a69464613ccda7404ff4"></a><!-- doxytag: member="quicktime.h::quicktime_video_length" ref="ga603db00dacc8a69464613ccda7404ff4" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__video__decode.html#ga603db00dacc8a69464613ccda7404ff4">quicktime_video_length</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the video length. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The total number of video frames in the track</dd></dl>
<p>Note that for tracks with nonconstant framerate, you won't be able to obtain the track duration from the number of frame. If you are interested in the total playing time, use <a class="el" href="group__video__decode.html#gab31bb654e765cee434d1b6eae93dee20">lqt_video_duration</a> </p>
</div>
</div>
<a class="anchor" id="ga7e1b8a1d2906fb16e4bdb0eb241570fe"></a><!-- doxytag: member="quicktime.h::quicktime_video_position" ref="ga7e1b8a1d2906fb16e4bdb0eb241570fe" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__video__decode.html#ga7e1b8a1d2906fb16e4bdb0eb241570fe">quicktime_video_position</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the video position. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number (starting with 0) of the next frame to be decoded.</dd></dl>
<p>To get timestamps for tracks with nonconstant framerate, use <a class="el" href="group__video__decode.html#gab61416d258197f4a75f6befb93d40ee4">lqt_frame_time</a> </p>
</div>
</div>
<a class="anchor" id="ga32bd58652430328eb00d272a96af9b37"></a><!-- doxytag: member="quicktime.h::quicktime_video_tracks" ref="ga32bd58652430328eb00d272a96af9b37" args="(quicktime_t *file)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga32bd58652430328eb00d272a96af9b37">quicktime_video_tracks</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the number of video tracks. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of video tracks </dd></dl>
</div>
</div>
<a class="anchor" id="ga8fef1c88e0a13e776ca481ba1ed1ed5d"></a><!-- doxytag: member="quicktime.h::quicktime_has_video" ref="ga8fef1c88e0a13e776ca481ba1ed1ed5d" args="(quicktime_t *file)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga8fef1c88e0a13e776ca481ba1ed1ed5d">quicktime_has_video</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if a file has at least one video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 if the file has video tracks, 0 else </dd></dl>
</div>
</div>
<a class="anchor" id="ga6cd570a21d6760fd2d58a92f782ec47a"></a><!-- doxytag: member="quicktime.h::quicktime_video_width" ref="ga6cd570a21d6760fd2d58a92f782ec47a" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga6cd570a21d6760fd2d58a92f782ec47a">quicktime_video_width</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the width of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The image width in pixels </dd></dl>
</div>
</div>
<a class="anchor" id="gad2b205cb2043d1fb006b2c13da620c5e"></a><!-- doxytag: member="quicktime.h::quicktime_video_height" ref="gad2b205cb2043d1fb006b2c13da620c5e" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#gad2b205cb2043d1fb006b2c13da620c5e">quicktime_video_height</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the height of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The image height in pixels </dd></dl>
</div>
</div>
<a class="anchor" id="ga695cae3dc4c850f8be205d04805b1fac"></a><!-- doxytag: member="quicktime.h::quicktime_video_depth" ref="ga695cae3dc4c850f8be205d04805b1fac" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga695cae3dc4c850f8be205d04805b1fac">quicktime_video_depth</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the depth of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The image depth in pixels</dd></dl>
<p>Don't use this function for anything else than for informational purposes. Depth is meaningless for compressed codecs and sometimes plain wrong even for uncompressed ones.</p>
<p>To get some better informations about the pixel format, a codec will deliver, use <a class="el" href="group__video.html#ga7053978f505b771b36fc27892721d032">lqt_get_cmodel</a> or (better) <a class="el" href="group__video__decode.html#ga46f8fc7325baf8234e605836190e41a0">lqt_get_decoder_colormodel</a> . </p>
</div>
</div>
<a class="anchor" id="ga1ea4677e85c6d4b654bc12b71eafd86d"></a><!-- doxytag: member="quicktime.h::quicktime_frame_rate" ref="ga1ea4677e85c6d4b654bc12b71eafd86d" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="group__video__decode.html#ga1ea4677e85c6d4b654bc12b71eafd86d">quicktime_frame_rate</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the framerate of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The framerate in frames per second.</dd></dl>
<p>Don't use this unless A/V sync is nor important. The return value is practically random for tracks with nonconstant framerate. Even for constant framerate, the return value can never correctly resemble e.g. the NTSC framerate (30000/1001).</p>
<p>To get the framerate as a rational number (and check if it's constant), use <a class="el" href="group__video__decode.html#ga5ea0328064cb443be1a47a200d3f1b04">lqt_frame_duration</a> and <a class="el" href="group__video__decode.html#ga883a9a137a1256d04eb88ad5c8ad50a9">lqt_video_time_scale</a> . </p>
</div>
</div>
<a class="anchor" id="ga01bcc92490df2d4e773c8e8a6fa54cf9"></a><!-- doxytag: member="quicktime.h::quicktime_video_compressor" ref="ga01bcc92490df2d4e773c8e8a6fa54cf9" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* <a class="el" href="group__video__decode.html#ga01bcc92490df2d4e773c8e8a6fa54cf9">quicktime_video_compressor</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the four character code of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The four character code (fourcc) of the track.</dd></dl>
<p>To get more save information about the codec responsible for the stream, use <a class="el" href="group__codec__registry.html#gada83efef8795f398f2436c14776c1e98">lqt_video_codec_from_file</a> . </p>
</div>
</div>
<a class="anchor" id="ga285ddd869be1e08ece4ba3e9fe3efff8"></a><!-- doxytag: member="quicktime.h::quicktime_frame_size" ref="ga285ddd869be1e08ece4ba3e9fe3efff8" args="(quicktime_t *file, long frame, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__video__decode.html#ga285ddd869be1e08ece4ba3e9fe3efff8">quicktime_frame_size</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>frame</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the compressed size of frame in a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">frame</td><td>Frame index (starting with 0) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The size in bytes of the frame</dd></dl>
<p>Use this if you want to read compressed frames with <a class="el" href="group__video__decode.html#gaf8cfb27467c42f8debb2b7d6e0a5f0ab">quicktime_read_frame</a> </p>
</div>
</div>
<a class="anchor" id="gae8888a92cc4a27c42d8d323c43a58d62"></a><!-- doxytag: member="quicktime.h::quicktime_set_video_position" ref="gae8888a92cc4a27c42d8d323c43a58d62" args="(quicktime_t *file, int64_t frame, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#gae8888a92cc4a27c42d8d323c43a58d62">quicktime_set_video_position</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"><em>frame</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Seek to a specific video frame. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">frame</td><td>The frame position (starting with 0) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>Use this for seeking. During sequential decode calls, the position will be updated automatically. If you want to support tracks with nonconmstant framerate, you should use <a class="el" href="group__video__decode.html#gab0b4fb3fb672f182db065f0eba1acdfb">lqt_seek_video</a> . </p>
</div>
</div>
<a class="anchor" id="gaf8cfb27467c42f8debb2b7d6e0a5f0ab"></a><!-- doxytag: member="quicktime.h::quicktime_read_frame" ref="gaf8cfb27467c42f8debb2b7d6e0a5f0ab" args="(quicktime_t *file, unsigned char *video_buffer, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__video__decode.html#gaf8cfb27467c42f8debb2b7d6e0a5f0ab">quicktime_read_frame</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>video_buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Read a compressed video frame. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">video_buffer</td><td>The compressed frame </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>Read a compressed video frame. The size of the frame can be obtained with <a class="el" href="group__video__decode.html#ga285ddd869be1e08ece4ba3e9fe3efff8">quicktime_frame_size</a> . This function increments all pointers in the track, so you can sequentially read all frames without setting the position in between. </p>
</div>
</div>
<a class="anchor" id="gad8646255de8a70c780e5267027a0d83e"></a><!-- doxytag: member="quicktime.h::quicktime_supported_video" ref="gad8646255de8a70c780e5267027a0d83e" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#gad8646255de8a70c780e5267027a0d83e">quicktime_supported_video</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if a video track is supported by libquicktime. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 if a codec for this track is available, 0 else </dd></dl>
</div>
</div>
<a class="anchor" id="gade9f2accad2e073101f2eaac4e34a499"></a><!-- doxytag: member="quicktime.h::quicktime_reads_cmodel" ref="gade9f2accad2e073101f2eaac4e34a499" args="(quicktime_t *file, int colormodel, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#gade9f2accad2e073101f2eaac4e34a499">quicktime_reads_cmodel</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>colormodel</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Check if a colormodel is supported for decoding. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">colormodel</td><td>A colormodel (see <a class="el" href="group__color.html">Color handling</a>) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 if the colormodel can be used for decoding calls, 0 if it can't.</dd></dl>
<p>To let libquicktime get the best colormodel out of a list of colormodels your application supports, use <a class="el" href="group__video.html#ga128d549ba1e29083ab61f3425ae6350d">lqt_get_best_colormodel</a> instead. </p>
</div>
</div>
<a class="anchor" id="ga36ea9ac47d3972bcae70cf66de7c0ab5"></a><!-- doxytag: member="quicktime.h::quicktime_decode_video" ref="ga36ea9ac47d3972bcae70cf66de7c0ab5" args="(quicktime_t *file, unsigned char **row_pointers, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga36ea9ac47d3972bcae70cf66de7c0ab5">quicktime_decode_video</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char ** </td>
<td class="paramname"><em>row_pointers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decode a video frame in <a class="el" href="group__color.html#gaaec2dd466403410fc4daa417ec2ab6c6">BC_RGB888</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">row_pointers</td><td>Frame buffer (see <a class="el" href="group__video.html#ga57ce679a75a23aac4009bfb1cbf3a2fa">lqt_rows_alloc</a> ) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>Decode one video frame. All colormodels are converted to <a class="el" href="group__color.html#gaaec2dd466403410fc4daa417ec2ab6c6">BC_RGB888</a> automatically probably causing lots of overhead. To decode frames in other colormodels, use <a class="el" href="group__video__decode.html#gad364110b5fbcaf20d6756559693c094a">lqt_decode_video</a> . </p>
</div>
</div>
<a class="anchor" id="ga2c115cef94e66be513d1dddde2ad9f52"></a><!-- doxytag: member="quicktime.h::quicktime_decode_scaled" ref="ga2c115cef94e66be513d1dddde2ad9f52" args="(quicktime_t *file, int in_x, int in_y, int in_w, int in_h, int out_w, int out_h, int color_model, unsigned char **row_pointers, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">long <a class="el" href="group__video__decode.html#ga2c115cef94e66be513d1dddde2ad9f52">quicktime_decode_scaled</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>in_x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>in_y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>in_w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>in_h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>out_w</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>out_h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>color_model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char ** </td>
<td class="paramname"><em>row_pointers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decode aand optionally scale a video frame. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">in_x</td><td>Horizontal offset of the image relative to the source image </td></tr>
<tr><td class="paramname">in_y</td><td>Vertical offset of the image relative to the source image </td></tr>
<tr><td class="paramname">in_w</td><td>Image width in the source image </td></tr>
<tr><td class="paramname">in_h</td><td>Image height in the source image </td></tr>
<tr><td class="paramname">out_w</td><td>Width of output frame </td></tr>
<tr><td class="paramname">out_h</td><td>Height of output frame </td></tr>
<tr><td class="paramname">color_model</td><td>Colormodel of the output frame </td></tr>
<tr><td class="paramname">row_pointers</td><td>Frame buffer (see <a class="el" href="group__video.html#ga57ce679a75a23aac4009bfb1cbf3a2fa">lqt_rows_alloc</a> ) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>This function takes a subwindow of the source image (specified by in_x, in_y, in_w, in_h) and scales it to the dimensions (out_w, out_h) of the output frame given by row_pointers. Colormodel conversion from the stream colormodel to the color_model you pass is also done. Scaling is done by a not very optimized nearest neighbor algorithm. To do high quality video scaling, you should use something else. </p>
</div>
</div>
<a class="anchor" id="ga2bff1434eb4dfff3c5c3cf7b4d05775c"></a><!-- doxytag: member="lqt.h::lqt_get_pixel_aspect" ref="ga2bff1434eb4dfff3c5c3cf7b4d05775c" args="(quicktime_t *file, int track, int *pixel_width, int *pixel_height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga2bff1434eb4dfff3c5c3cf7b4d05775c">lqt_get_pixel_aspect</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pixel_width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pixel_height</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the pixel aspect ratio of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
<tr><td class="paramname">pixel_width</td><td>returns the pixel width </td></tr>
<tr><td class="paramname">pixel_height</td><td>returns the pixel height </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>1 if the call was successful, 0 if there is no such track </dd></dl>
</div>
</div>
<a class="anchor" id="ga04f3591187e13cc2c6828ff82c02acad"></a><!-- doxytag: member="lqt.h::lqt_get_interlace_mode" ref="ga04f3591187e13cc2c6828ff82c02acad" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__video.html#ga58950c90660f8709fa724f19afe83c7b">lqt_interlace_mode_t</a> <a class="el" href="group__video__decode.html#ga04f3591187e13cc2c6828ff82c02acad">lqt_get_interlace_mode</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the interlace mode. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The interlace mode.</dd></dl>
<p>The interlace mode is stored in the fiel atom, which is used by default. If there is no fiel atom and the interlace mode is not implied by the codec, <a class="el" href="group__video.html#gga58950c90660f8709fa724f19afe83c7bacb07470be4c1d9e75f43793cd435410e">LQT_INTERLACE_NONE</a> is returned, which might be wrong. </p>
</div>
</div>
<a class="anchor" id="ga1679de33e938d9f9bcc7d670cadaecde"></a><!-- doxytag: member="lqt.h::lqt_get_chroma_placement" ref="ga1679de33e938d9f9bcc7d670cadaecde" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__video.html#ga29e261e843838c4509b4223e7a825516">lqt_chroma_placement_t</a> <a class="el" href="group__video__decode.html#ga1679de33e938d9f9bcc7d670cadaecde">lqt_get_chroma_placement</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the chroma placement. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The chroma placement</dd></dl>
<p>The chroma placement is implied by the codec and makes only sense for YUV420 formats. </p>
</div>
</div>
<a class="anchor" id="ga46f8fc7325baf8234e605836190e41a0"></a><!-- doxytag: member="lqt.h::lqt_get_decoder_colormodel" ref="ga46f8fc7325baf8234e605836190e41a0" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga46f8fc7325baf8234e605836190e41a0">lqt_get_decoder_colormodel</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the native colormodel of the decoder. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>This returns the colormodel, which is used by the stream natively. If your application can handle the colormodel, you can use <a class="el" href="group__video__decode.html#gad364110b5fbcaf20d6756559693c094a">lqt_decode_video</a> for decoding in the native colormodel. This will bypass all internal colormodel conversions. </p>
</div>
</div>
<a class="anchor" id="gab61416d258197f4a75f6befb93d40ee4"></a><!-- doxytag: member="lqt.h::lqt_frame_time" ref="gab61416d258197f4a75f6befb93d40ee4" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t <a class="el" href="group__video__decode.html#gab61416d258197f4a75f6befb93d40ee4">lqt_frame_time</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the timestamp of the next frame to be decoded. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The timestamp of the next frame to be decoded</dd></dl>
<p>Call this BEFORE one of the decoding functions to get the timestamp of the next frame </p>
</div>
</div>
<a class="anchor" id="gad364110b5fbcaf20d6756559693c094a"></a><!-- doxytag: member="lqt.h::lqt_decode_video" ref="gad364110b5fbcaf20d6756559693c094a" args="(quicktime_t *file, unsigned char **row_pointers, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#gad364110b5fbcaf20d6756559693c094a">lqt_decode_video</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char ** </td>
<td class="paramname"><em>row_pointers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decode one video frame. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">row_pointers</td><td>Frame (see <a class="el" href="group__video.html#ga57ce679a75a23aac4009bfb1cbf3a2fa">lqt_rows_alloc</a>) </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>Decode one video frame and increment the interal frame pointer. To get the presentation timestamp for this frame, call <a class="el" href="group__video__decode.html#gab61416d258197f4a75f6befb93d40ee4">lqt_frame_time</a> before. </p>
</div>
</div>
<a class="anchor" id="ga7d4ede5d72c5b1c95c6edadc67d9ad0a"></a><!-- doxytag: member="lqt.h::lqt_read_video_frame" ref="ga7d4ede5d72c5b1c95c6edadc67d9ad0a" args="(quicktime_t *file, uint8_t **buffer, int *buffer_alloc, int64_t frame, int64_t *time, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga7d4ede5d72c5b1c95c6edadc67d9ad0a">lqt_read_video_frame</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t ** </td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>buffer_alloc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"><em>frame</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t * </td>
<td class="paramname"><em>time</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Read a compressed video frame. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">buffer</td><td>Buffer where the frame will be read to </td></tr>
<tr><td class="paramname">buffer_alloc</td><td>Number of bytes allocated for the buffer </td></tr>
<tr><td class="paramname">frame</td><td>Number of the frame to be read (starting with 0) </td></tr>
<tr><td class="paramname">time</td><td>If non NULL, returns the timestamp in timescale tics </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of bytes in the frame or 0 if no frame could be read.</dd></dl>
<p>Read one compressed video frame. This function calls realloc() to ensure, that the buffer will be large enough. To use this function, set buffer to NULL and buffer_alloc to zero before the first call. After the last call, free the buffer with free(). This function is mainly used by video codecs. </p>
</div>
</div>
<a class="anchor" id="ga5ea0328064cb443be1a47a200d3f1b04"></a><!-- doxytag: member="lqt.h::lqt_frame_duration" ref="ga5ea0328064cb443be1a47a200d3f1b04" args="(quicktime_t *file, int track, int *constant)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga5ea0328064cb443be1a47a200d3f1b04">lqt_frame_duration</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>constant</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the duration of the NEXT frame to be decoded. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
<tr><td class="paramname">constant</td><td>If non NULL it will be set to 1 if the frame duration is constant throughout the whole track </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The frame duration in timescale tics </dd></dl>
</div>
</div>
<a class="anchor" id="ga883a9a137a1256d04eb88ad5c8ad50a9"></a><!-- doxytag: member="lqt.h::lqt_video_time_scale" ref="ga883a9a137a1256d04eb88ad5c8ad50a9" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__video__decode.html#ga883a9a137a1256d04eb88ad5c8ad50a9">lqt_video_time_scale</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the timescale of the track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The timescale of the track </dd></dl>
</div>
</div>
<a class="anchor" id="gab31bb654e765cee434d1b6eae93dee20"></a><!-- doxytag: member="lqt.h::lqt_video_duration" ref="gab31bb654e765cee434d1b6eae93dee20" args="(quicktime_t *file, int track)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int64_t <a class="el" href="group__video__decode.html#gab31bb654e765cee434d1b6eae93dee20">lqt_video_duration</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the duration of a video track. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">track</td><td>Track index (starting with 0) </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The total duration of the track in timescale tics</dd></dl>
<p>Use this function if you want to support nonconstant framerates. </p>
</div>
</div>
<a class="anchor" id="gab0b4fb3fb672f182db065f0eba1acdfb"></a><!-- doxytag: member="lqt.h::lqt_seek_video" ref="gab0b4fb3fb672f182db065f0eba1acdfb" args="(quicktime_t *file, int track, int64_t time)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__video__decode.html#gab0b4fb3fb672f182db065f0eba1acdfb">lqt_seek_video</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__general.html#gaef65e7300455a3b25eafc7485ec2efa4">quicktime_t</a> * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>track</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t </td>
<td class="paramname"><em>time</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Seek to a specific video time. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>A quicktime handle </td></tr>
<tr><td class="paramname">time</td><td>The desired time of the next frame in timescale tics (starting with 0) </td></tr>
<tr><td class="paramname">track</td><td>index (starting with 0)</td></tr>
</table>
</dd>
</dl>
<p>Use this for seeking. During sequential decode calls, the position will be updated automatically. Replacement of <a class="el" href="group__video__decode.html#gae8888a92cc4a27c42d8d323c43a58d62">quicktime_set_video_position</a> which also works for streams with nonconstant framerate </p>
</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Jan 21 2012 10:48:59 for libquicktime by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>
|