Mercurial > libavcodec.hg
comparison avcodec.h @ 268:09ae29b27ed9 libavcodec
hopefully better bitrate controll
author | michaelni |
---|---|
date | Sun, 17 Mar 2002 16:31:38 +0000 |
parents | e1bacfb3f51f |
children | 5cb2978e701f |
comparison
equal
deleted
inserted
replaced
267:e10840e4f773 | 268:09ae29b27ed9 |
---|---|
70 | 70 |
71 #define FRAME_RATE_BASE 10000 | 71 #define FRAME_RATE_BASE 10000 |
72 | 72 |
73 typedef struct AVCodecContext { | 73 typedef struct AVCodecContext { |
74 int bit_rate; | 74 int bit_rate; |
75 int bit_rate_tolerance; /* amount of +- bits (>0)*/ | |
75 int flags; | 76 int flags; |
76 int sub_id; /* some codecs needs additionnal format info. It is | 77 int sub_id; /* some codecs needs additionnal format info. It is |
77 stored there */ | 78 stored there */ |
78 /* video only */ | 79 /* video only */ |
79 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */ | 80 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */ |
99 int frame_number; /* audio or video frame number */ | 100 int frame_number; /* audio or video frame number */ |
100 int key_frame; /* true if the previous compressed frame was | 101 int key_frame; /* true if the previous compressed frame was |
101 a key frame (intra, or seekable) */ | 102 a key frame (intra, or seekable) */ |
102 int quality; /* quality of the previous encoded frame | 103 int quality; /* quality of the previous encoded frame |
103 (between 1 (good) and 31 (bad)) */ | 104 (between 1 (good) and 31 (bad)) */ |
105 float qcompress; /* amount of qscale change between easy & hard scenes (0.0-1.0)*/ | |
106 float qblur; /* amount of qscale smoothing over time (0.0-1.0) */ | |
107 int qmin; /* min qscale */ | |
108 int qmax; /* max qscale */ | |
109 int max_qdiff; /* max qscale difference between frames */ | |
110 | |
104 struct AVCodec *codec; | 111 struct AVCodec *codec; |
105 void *priv_data; | 112 void *priv_data; |
106 | 113 |
107 /* The following data is for RTP friendly coding */ | 114 /* The following data is for RTP friendly coding */ |
108 /* By now only H.263/H.263+ coder honours this */ | 115 /* By now only H.263/H.263+ coder honours this */ |