55 |
* 22.12.2001 lock based interpolation |
* 22.12.2001 lock based interpolation |
56 |
* 01.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
* 01.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
57 |
* |
* |
58 |
* $Id: decoder.c,v 1.34 2002-07-24 00:49:04 Isibaar Exp $ |
* $Id: decoder.c,v 1.35 2002-07-24 23:09:28 chl Exp $ |
59 |
* |
* |
60 |
*************************************************************************/ |
*************************************************************************/ |
61 |
|
|
683 |
mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = |
mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = |
684 |
mb->mvs[0].y; |
mb->mvs[0].y; |
685 |
} |
} |
686 |
} else if (mb->mode == |
} else if (mb->mode == MODE_INTER4V ) { |
687 |
MODE_INTER4V /* || mb->mode == MODE_INTER4V_Q */ ) { |
|
688 |
get_motion_vector(dec, bs, x, y, 0, &mb->mvs[0], fcode, bound); |
get_motion_vector(dec, bs, x, y, 0, &mb->mvs[0], fcode, bound); |
689 |
get_motion_vector(dec, bs, x, y, 1, &mb->mvs[1], fcode, bound); |
get_motion_vector(dec, bs, x, y, 1, &mb->mvs[1], fcode, bound); |
690 |
get_motion_vector(dec, bs, x, y, 2, &mb->mvs[2], fcode, bound); |
get_motion_vector(dec, bs, x, y, 2, &mb->mvs[2], fcode, bound); |
704 |
rounding); |
rounding); |
705 |
} else // not coded |
} else // not coded |
706 |
{ |
{ |
707 |
//DEBUG2("P-frame MB at (X,Y)=",x,y); |
DEBUG2("P-frame MB at (X,Y)=",x,y); |
708 |
mb->mode = MODE_NOT_CODED; |
mb->mode = MODE_NOT_CODED; |
709 |
mb->mvs[0].x = mb->mvs[1].x = mb->mvs[2].x = mb->mvs[3].x = 0; |
mb->mvs[0].x = mb->mvs[1].x = mb->mvs[2].x = mb->mvs[3].x = 0; |
710 |
mb->mvs[0].y = mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = 0; |
mb->mvs[0].y = mb->mvs[1].y = mb->mvs[2].y = mb->mvs[3].y = 0; |
1277 |
|
|
1278 |
default: |
default: |
1279 |
DEBUG1("Not support B-frame mb_type =", mb->mb_type); |
DEBUG1("Not support B-frame mb_type =", mb->mb_type); |
|
; |
|
|
} |
|
|
|
|
|
if ( (x==19) && (y==8) ) |
|
|
{ |
|
|
fprintf(stderr,"D %d %d %d %d %d %d \n",0, mb->mb_type, |
|
|
mb->mvs[0].x, mb->mvs[0].y,mb->b_mvs[0].x, mb->b_mvs[0].y ); |
|
1280 |
} |
} |
1281 |
|
|
|
|
|
|
|
|
1282 |
} // end of FOR |
} // end of FOR |
1283 |
} |
} |
1284 |
#ifdef BFRAMES_DEC_DEBUG |
#ifdef BFRAMES_DEC_DEBUG |