20 #ifndef AVCODEC_H263_H
21 #define AVCODEC_H263_H
33 #define INTRA_MCBPC_VLC_BITS 6
34 #define INTER_MCBPC_VLC_BITS 7
35 #define CBPY_VLC_BITS 6
36 #define TEX_VLC_BITS 9
74 void *
data,
int *got_frame,
79 int motion_x,
int motion_y);
104 int16_t
block[6][64]);
121 int l, bit_size, code;
126 bit_size = f_code - 1;
131 code = (val >> bit_size) + 1;
133 return ff_mvtab[code][1] + 1 + bit_size;
149 int16_t
block[6][64],
150 int motion_x,
int motion_y){
154 int best_cbpy_score= INT_MAX;
155 int best_cbpc_score= INT_MAX;
156 int cbpc = (-1), cbpy= (-1);
165 if(score < best_cbpc_score){
166 best_cbpc_score= score;
178 if(score < best_cbpy_score){
179 best_cbpy_score= score;
185 if(best_cbpy_score + best_cbpc_score + 2*lambda >= 0)
189 for (i = 0; i < 6; i++) {
197 for (i = 0; i < 6; i++) {