48 #define H263_MBTYPE_B_VLC_BITS 6
49 #define CBPC_B_VLC_BITS 3
153 unsigned int val, gob_number;
165 for(;left>13; left--){
216 if (!p[-1] && p[1])
return p - 1;
217 else if(!p[ 1] && p[2])
return p;
249 for(;left>16+1+5+5; left-=8){
271 int code, val, sign, shift;
283 val = (val - 1) << shift;
296 if (pred < -31 && val < -63)
298 if (pred > 32 && val > 63)
324 code = (sign) ? (pred - code) : (pred + code);
336 int cbpc, i, pred_x, pred_y, mx, my;
353 mot_val[0 ]= mot_val[2 ]=
355 mot_val[1 ]= mot_val[3 ]=
376 if ((cbpc & 16) == 0) {
390 mot_val[0 ]= mot_val[2 ]=
392 mot_val[1 ]= mot_val[3 ]=
407 if (s->
umvplus && (mx - pred_x) == 1 && (my - pred_y) == 1)
426 static const int8_t quant_tab[4] = { -1, -2, 1, 2 };
459 #if CONFIG_RV10_DECODER
462 component = (n <= 3 ? 0 : n - 4 + 1);
469 level = level & 0xff;
482 if((level&0x7F) == 0){
529 last = code >= rl->
last;
571 for (i = 0; i < 6; i++) {
586 if (pb_frame == 2 && c)
599 int16_t
block[6][64])
601 int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant;
604 int cbpb = 0, pb_mv_count = 0;
643 cbp = (cbpc & 3) | (cbpy << 2);
649 if ((cbpc & 16) == 0) {
672 if (s->
umvplus && (mx - pred_x) == 1 && (my - pred_y) == 1)
694 if (s->
umvplus && (mx - pred_x) == 1 && (my - pred_y) == 1)
708 mot_val0[0 ]= mot_val0[2 ]= mot_val0[0+2*
stride]= mot_val0[2+2*
stride]=
709 mot_val0[1 ]= mot_val0[3 ]= mot_val0[1+2*
stride]= mot_val0[3+2*
stride]=
710 mot_val1[0 ]= mot_val1[2 ]= mot_val1[0+2*
stride]= mot_val1[2+2*
stride]=
711 mot_val1[1 ]= mot_val1[3 ]= mot_val1[1+2*
stride]= mot_val1[3+2*
stride]= 0;
742 cbp = (cbpc & 3) | (cbpy << 2);
771 mot_val[0 ]= mot_val[2 ]= mot_val[0+2*
stride]= mot_val[2+2*
stride]= mx;
772 mot_val[1 ]= mot_val[3 ]= mot_val[1+2*
stride]= mot_val[3+2*
stride]= my;
784 mot_val[0 ]= mot_val[2 ]= mot_val[0+2*
stride]= mot_val[2+2*
stride]= mx;
785 mot_val[1 ]= mot_val[3 ]= mot_val[1+2*
stride]= mot_val[3+2*
stride]= my;
822 cbp = (cbpc & 3) | (cbpy << 2);
830 while(pb_mv_count--){
836 for (i = 0; i < 6; i++) {
876 startcode = ((startcode << 8) |
get_bits(&s->
gb, 8)) & 0x003FFFFF;
878 if(startcode == 0x20)
882 if (startcode != 0x20) {
914 if (format != 7 && format != 6) {
978 }
else if (ufep != 0) {
1016 av_dlog(s->
avctx,
"\nH.263+ Custom picture: %dx%d\n",width,height);
1029 if ((width == 0) || (height == 0))
1133 for(i=0; i<13; i++){