comparison avcodec.h @ 320:cda7d0857baf libavcodec

- ME setting moved to AVCodecContext/MpegEncContext, no longer a global. - EPZS ME algo used by default. - HQ flag activated for ffmpeg. - Cosmetics ...
author pulento
date Sun, 14 Apr 2002 18:57:51 +0000
parents 5afea0021fb8
children 2b00e171b1d4
comparison
equal deleted inserted replaced
319:3ef1cc75d5f5 320:cda7d0857baf
54 }; 54 };
55 55
56 /* in bytes */ 56 /* in bytes */
57 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 18432 57 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 18432
58 58
59 /* motion estimation type */ 59 /* motion estimation type, EPZS by default */
60 extern int motion_estimation_method; 60 enum Motion_Est_ID {
61 #define ME_ZERO 0 61 ME_ZERO = -4,
62 #define ME_FULL 1 62 ME_FULL,
63 #define ME_LOG 2 63 ME_LOG,
64 #define ME_PHODS 3 64 ME_PHODS,
65 #define ME_EPZS 4 65 ME_EPZS,
66 #define ME_X1 5 66 ME_X1
67 };
68
69 /* ME algos sorted by quality */
70 static const int Motion_Est_QTab[] = { -4, -1, -2, 1, 0, -3 };
67 71
68 /* encoding support */ 72 /* encoding support */
69 /* note not everything is supported yet */ 73 /* note not everything is supported yet */
70 74
71 #define CODEC_FLAG_HQ 0x0001 /* high quality (non real time) encoding */ 75 #define CODEC_FLAG_HQ 0x0001 /* high quality (non real time) encoding */
87 int bit_rate; 91 int bit_rate;
88 int bit_rate_tolerance; /* amount of +- bits (>0)*/ 92 int bit_rate_tolerance; /* amount of +- bits (>0)*/
89 int flags; 93 int flags;
90 int sub_id; /* some codecs needs additionnal format info. It is 94 int sub_id; /* some codecs needs additionnal format info. It is
91 stored there */ 95 stored there */
96
97 int me_method; /* ME algorithm used for video coding */
98
92 /* video only */ 99 /* video only */
93 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */ 100 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */
94 int width, height; 101 int width, height;
95 int aspect_ratio_info; 102 int aspect_ratio_info;
96 #define FF_ASPECT_SQUARE 1 103 #define FF_ASPECT_SQUARE 1