Mercurial > libavcodec.hg
comparison avcodec.h @ 880:1c32039e7215 libavcodec
aspect ratio cleanup
author | michaelni |
---|---|
date | Wed, 20 Nov 2002 13:08:04 +0000 |
parents | 48215b2c3888 |
children | d326091dae9f |
comparison
equal
deleted
inserted
replaced
879:af969e91f422 | 880:1c32039e7215 |
---|---|
3 | 3 |
4 #include "common.h" | 4 #include "common.h" |
5 | 5 |
6 #define LIBAVCODEC_VERSION_INT 0x000406 | 6 #define LIBAVCODEC_VERSION_INT 0x000406 |
7 #define LIBAVCODEC_VERSION "0.4.6" | 7 #define LIBAVCODEC_VERSION "0.4.6" |
8 #define LIBAVCODEC_BUILD 4639 | 8 #define LIBAVCODEC_BUILD 4640 |
9 #define LIBAVCODEC_BUILD_STR "4639" | 9 #define LIBAVCODEC_BUILD_STR "4640" |
10 | 10 |
11 enum CodecID { | 11 enum CodecID { |
12 CODEC_ID_NONE, | 12 CODEC_ID_NONE, |
13 CODEC_ID_MPEG1VIDEO, | 13 CODEC_ID_MPEG1VIDEO, |
14 CODEC_ID_H263, | 14 CODEC_ID_H263, |
143 #define CODEC_FLAG_TRUNCATED 0x00010000 /* input bitstream might be truncated at a random location instead | 143 #define CODEC_FLAG_TRUNCATED 0x00010000 /* input bitstream might be truncated at a random location instead |
144 of only at frame boundaries */ | 144 of only at frame boundaries */ |
145 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 /* normalize adaptive quantization */ | 145 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 /* normalize adaptive quantization */ |
146 #define CODEC_FLAG_INTERLACED_DCT 0x00040000 /* use interlaced dct */ | 146 #define CODEC_FLAG_INTERLACED_DCT 0x00040000 /* use interlaced dct */ |
147 #define CODEC_FLAG_LOW_DELAY 0x00080000 /* force low delay / will fail on b frames */ | 147 #define CODEC_FLAG_LOW_DELAY 0x00080000 /* force low delay / will fail on b frames */ |
148 #define CODEC_FLAG_ALT_SCAN 0x00100000 /* use alternate scan */ | |
148 | 149 |
149 /* codec capabilities */ | 150 /* codec capabilities */ |
150 | 151 |
151 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 /* decoder can use draw_horiz_band callback */ | 152 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 /* decoder can use draw_horiz_band callback */ |
152 #define CODEC_CAP_DR1 0x0002 /* direct rendering method 1 */ | 153 #define CODEC_CAP_DR1 0x0002 /* direct rendering method 1 */ |
220 * decoding: set by user, some codecs might override / change it during playback | 221 * decoding: set by user, some codecs might override / change it during playback |
221 */ | 222 */ |
222 int width, height; | 223 int width, height; |
223 | 224 |
224 /** | 225 /** |
225 * encoding: set by user. 0 if not known | 226 * Obsolete, will be removed |
226 * decoding: set by lavc. 0 if not known | |
227 */ | 227 */ |
228 int aspect_ratio_info; | 228 int aspect_ratio_info; |
229 #define FF_ASPECT_SQUARE 1 | 229 #define FF_ASPECT_SQUARE 1 |
230 #define FF_ASPECT_4_3_625 2 | 230 #define FF_ASPECT_4_3_625 2 |
231 #define FF_ASPECT_4_3_525 3 | 231 #define FF_ASPECT_4_3_525 3 |
644 * decoding: unused | 644 * decoding: unused |
645 */ | 645 */ |
646 float rc_initial_cplx; | 646 float rc_initial_cplx; |
647 | 647 |
648 /** | 648 /** |
649 * custom aspect ratio, used if aspect_info==FF_ASPECT_EXTENDED | 649 * Obsolete, will be removed |
650 * encoding: set by user. | |
651 * decoding: set by lavc. | |
652 */ | 650 */ |
653 int aspected_width; | 651 int aspected_width; |
654 int aspected_height; | 652 int aspected_height; |
655 | 653 |
656 /** | 654 /** |
793 */ | 791 */ |
794 int prediction_method; | 792 int prediction_method; |
795 #define FF_PRED_LEFT 0 | 793 #define FF_PRED_LEFT 0 |
796 #define FF_PRED_PLANE 1 | 794 #define FF_PRED_PLANE 1 |
797 #define FF_PRED_MEDIAN 2 | 795 #define FF_PRED_MEDIAN 2 |
796 | |
797 /** | |
798 * aspect ratio. (0 if unknown) | |
799 * encoding: set by user. | |
800 * decoding: set by lavc. | |
801 */ | |
802 float aspect_ratio; | |
798 } AVCodecContext; | 803 } AVCodecContext; |
799 | 804 |
800 typedef struct AVCodec { | 805 typedef struct AVCodec { |
801 const char *name; | 806 const char *name; |
802 int type; | 807 int type; |