Mercurial > libavcodec.hg
comparison avcodec.h @ 1116:86a5d0ce86bf libavcodec
merging fourcc with codec_tag
| author | michaelni |
|---|---|
| date | Sat, 08 Mar 2003 01:40:52 +0000 |
| parents | e4762efc3617 |
| children | 8248e652d64e |
comparison
equal
deleted
inserted
replaced
| 1115:74a46d77e061 | 1116:86a5d0ce86bf |
|---|---|
| 13 | 13 |
| 14 #include "common.h" | 14 #include "common.h" |
| 15 | 15 |
| 16 #define LIBAVCODEC_VERSION_INT 0x000406 | 16 #define LIBAVCODEC_VERSION_INT 0x000406 |
| 17 #define LIBAVCODEC_VERSION "0.4.6" | 17 #define LIBAVCODEC_VERSION "0.4.6" |
| 18 #define LIBAVCODEC_BUILD 4660 | 18 #define LIBAVCODEC_BUILD 4661 |
| 19 #define LIBAVCODEC_BUILD_STR "4660" | 19 #define LIBAVCODEC_BUILD_STR "4661" |
| 20 | 20 |
| 21 enum CodecID { | 21 enum CodecID { |
| 22 CODEC_ID_NONE, | 22 CODEC_ID_NONE, |
| 23 CODEC_ID_MPEG1VIDEO, | 23 CODEC_ID_MPEG1VIDEO, |
| 24 CODEC_ID_H263, | 24 CODEC_ID_H263, |
| 533 int misc_bits; | 533 int misc_bits; |
| 534 | 534 |
| 535 /** | 535 /** |
| 536 * number of bits used for the previously encoded frame. | 536 * number of bits used for the previously encoded frame. |
| 537 * - encoding: set by lavc | 537 * - encoding: set by lavc |
| 538 * - decoding: - for audio - bits_per_sample | 538 * - decoding: unused |
| 539 */ | 539 */ |
| 540 int frame_bits; | 540 int frame_bits; |
| 541 | 541 |
| 542 /** | 542 /** |
| 543 * private data of the user, can be used to carry app specific stuff. | 543 * private data of the user, can be used to carry app specific stuff. |
| 544 * - encoding: set by user | 544 * - encoding: set by user |
| 545 * - decoding: set by user | 545 * - decoding: set by user |
| 546 */ | 546 */ |
| 547 void *opaque; | 547 void *opaque; |
| 548 | 548 |
| 549 char codec_name[32]; | 549 char codec_name[32]; |
| 550 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ | 550 enum CodecType codec_type; /* see CODEC_TYPE_xxx */ |
| 551 enum CodecID codec_id; /* see CODEC_ID_xxx */ | 551 enum CodecID codec_id; /* see CODEC_ID_xxx */ |
| 552 unsigned int codec_tag; ///< codec tag, only used if unknown codec | 552 |
| 553 /** | |
| 554 * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). | |
| 555 * this is used to workaround some encoder bugs | |
| 556 * - encoding: unused | |
| 557 * - decoding: set by user, will be converted to upper case by lavc during init | |
| 558 */ | |
| 559 unsigned int codec_tag; | |
| 553 | 560 |
| 554 /** | 561 /** |
| 555 * workaround bugs in encoders which sometimes cannot be detected automatically. | 562 * workaround bugs in encoders which sometimes cannot be detected automatically. |
| 556 * - encoding: unused | 563 * - encoding: unused |
| 557 * - decoding: set by user | 564 * - decoding: set by user |
| 780 * - encoding: set by user | 787 * - encoding: set by user |
| 781 * - decoding: unused | 788 * - decoding: unused |
| 782 */ | 789 */ |
| 783 float dark_masking; | 790 float dark_masking; |
| 784 | 791 |
| 785 /** | |
| 786 * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). | |
| 787 * this is used to workaround some encoder bugs | |
| 788 * - encoding: unused | |
| 789 * - decoding: set by user, will be converted to upper case by lavc during init | |
| 790 */ | |
| 791 int fourcc; | |
| 792 | |
| 793 /** | 792 /** |
| 794 * idct algorithm, see FF_IDCT_* below. | 793 * idct algorithm, see FF_IDCT_* below. |
| 795 * - encoding: set by user | 794 * - encoding: set by user |
| 796 * - decoding: set by user | 795 * - decoding: set by user |
| 797 */ | 796 */ |
