20 #ifndef AVCODEC_H263_H
21 #define AVCODEC_H263_H
29 #if !FF_API_ASPECT_EXTENDED
30 #define FF_ASPECT_EXTENDED 15
32 #define INT_BIT (CHAR_BIT * sizeof(int))
38 #define INTRA_MCBPC_VLC_BITS 6
39 #define INTER_MCBPC_VLC_BITS 7
40 #define CBPY_VLC_BITS 6
41 #define TEX_VLC_BITS 9
83 void *
data,
int *got_frame,
88 int motion_x,
int motion_y);
113 int16_t
block[6][64]);
129 int l, bit_size, code;
134 bit_size = f_code - 1;
139 code = (val >> bit_size) + 1;
141 return ff_mvtab[code][1] + 1 + bit_size;
157 int16_t
block[6][64],
158 int motion_x,
int motion_y){
162 int best_cbpy_score= INT_MAX;
163 int best_cbpc_score= INT_MAX;
164 int cbpc = (-1), cbpy= (-1);
173 if(score < best_cbpc_score){
174 best_cbpc_score= score;
186 if(score < best_cbpy_score){
187 best_cbpy_score= score;
193 if(best_cbpy_score + best_cbpc_score + 2*lambda >= 0)
197 for (i = 0; i < 6; i++) {
205 for (i = 0; i < 6; i++) {