comparison h264.c @ 2395:81516be6d0e4 libavcodec

vismv for h264 displayed incorrect motion vectors.
author lorenm
date Mon, 20 Dec 2004 03:03:37 +0000
parents 299f2d85d27d
children 7e360068b653
comparison
equal deleted inserted replaced
2394:776e37360171 2395:81516be6d0e4
201 int block_offset[16+8]; 201 int block_offset[16+8];
202 int chroma_subblock_offset[16]; //FIXME remove 202 int chroma_subblock_offset[16]; //FIXME remove
203 203
204 uint16_t *mb2b_xy; //FIXME are these 4 a good idea? 204 uint16_t *mb2b_xy; //FIXME are these 4 a good idea?
205 uint16_t *mb2b8_xy; 205 uint16_t *mb2b8_xy;
206 int b_stride; 206 int b_stride; //FIXME use s->b4_stride
207 int b8_stride; 207 int b8_stride;
208 208
209 int halfpel_flag; 209 int halfpel_flag;
210 int thirdpel_flag; 210 int thirdpel_flag;
211 211
3033 } 3033 }
3034 3034
3035 s->mb_width= h->sps.mb_width; 3035 s->mb_width= h->sps.mb_width;
3036 s->mb_height= h->sps.mb_height; 3036 s->mb_height= h->sps.mb_height;
3037 3037
3038 h->b_stride= s->mb_width*4; 3038 h->b_stride= s->mb_width*4 + 1;
3039 h->b8_stride= s->mb_width*2; 3039 h->b8_stride= s->mb_width*2 + 1;
3040 3040
3041 s->resync_mb_x = s->mb_x = first_mb_in_slice % s->mb_width; 3041 s->resync_mb_x = s->mb_x = first_mb_in_slice % s->mb_width;
3042 s->resync_mb_y = s->mb_y = first_mb_in_slice / s->mb_width; //FIXME AFFW 3042 s->resync_mb_y = s->mb_y = first_mb_in_slice / s->mb_width; //FIXME AFFW
3043 3043
3044 s->width = 16*s->mb_width - 2*(h->sps.crop_left + h->sps.crop_right ); 3044 s->width = 16*s->mb_width - 2*(h->sps.crop_left + h->sps.crop_right );