Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1546:5d06823e2ee9 libavcodec
export mpeg2 active display area / pan scan
fix mpeg2 aspect_ratio for the rare case that active display area != AVCodecContext.width/height
decode sequence display extension & picture display extension
author | michael |
---|---|
date | Mon, 20 Oct 2003 09:52:02 +0000 |
parents | 576861d6343a |
children | 26c6ecba99a1 |
comparison
equal
deleted
inserted
replaced
1545:b340e83b8d0d | 1546:5d06823e2ee9 |
---|---|
300 CHECKED_ALLOCZ(pic->motion_val[i], 2 * 16 * s->mb_num * sizeof(uint16_t)) | 300 CHECKED_ALLOCZ(pic->motion_val[i], 2 * 16 * s->mb_num * sizeof(uint16_t)) |
301 CHECKED_ALLOCZ(pic->ref_index[i] , 4 * s->mb_num * sizeof(uint8_t)) | 301 CHECKED_ALLOCZ(pic->ref_index[i] , 4 * s->mb_num * sizeof(uint8_t)) |
302 } | 302 } |
303 } | 303 } |
304 pic->qstride= s->mb_stride; | 304 pic->qstride= s->mb_stride; |
305 CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) | |
305 } | 306 } |
306 | 307 |
307 //it might be nicer if the application would keep track of these but it would require a API change | 308 //it might be nicer if the application would keep track of these but it would require a API change |
308 memmove(s->prev_pict_types+1, s->prev_pict_types, PREV_PICT_TYPES_BUFFER_SIZE-1); | 309 memmove(s->prev_pict_types+1, s->prev_pict_types, PREV_PICT_TYPES_BUFFER_SIZE-1); |
309 s->prev_pict_types[0]= s->pict_type; | 310 s->prev_pict_types[0]= s->pict_type; |
330 av_freep(&pic->mb_mean); | 331 av_freep(&pic->mb_mean); |
331 av_freep(&pic->mb_cmp_score); | 332 av_freep(&pic->mb_cmp_score); |
332 av_freep(&pic->mbskip_table); | 333 av_freep(&pic->mbskip_table); |
333 av_freep(&pic->qscale_table); | 334 av_freep(&pic->qscale_table); |
334 av_freep(&pic->mb_type_base); | 335 av_freep(&pic->mb_type_base); |
336 av_freep(&pic->pan_scan); | |
335 pic->mb_type= NULL; | 337 pic->mb_type= NULL; |
336 for(i=0; i<2; i++){ | 338 for(i=0; i<2; i++){ |
337 av_freep(&pic->motion_val[i]); | 339 av_freep(&pic->motion_val[i]); |
338 av_freep(&pic->ref_index[i]); | 340 av_freep(&pic->ref_index[i]); |
339 } | 341 } |