comparison mpegvideo.c @ 1669:072666f04bca libavcodec

motion_subsample_log2
author michael
date Tue, 09 Dec 2003 01:55:54 +0000
parents 30746f429df6
children 914c114360bd
comparison
equal deleted inserted replaced
1668:30746f429df6 1669:072666f04bca
314 for(i=0; i<2; i++){ 314 for(i=0; i<2; i++){
315 CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b4_array_size+1) * sizeof(uint16_t)) 315 CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b4_array_size+1) * sizeof(uint16_t))
316 pic->motion_val[i]= pic->motion_val_base[i]+1; 316 pic->motion_val[i]= pic->motion_val_base[i]+1;
317 CHECKED_ALLOCZ(pic->ref_index[i] , b8_array_size * sizeof(uint8_t)) 317 CHECKED_ALLOCZ(pic->ref_index[i] , b8_array_size * sizeof(uint8_t))
318 } 318 }
319 pic->motion_subsample_log2= 2;
319 }else if(s->out_format == FMT_H263 || s->encoding || (s->avctx->debug&(FF_DEBUG_VIS_MV|FF_DEBUG_MV))){ 320 }else if(s->out_format == FMT_H263 || s->encoding || (s->avctx->debug&(FF_DEBUG_VIS_MV|FF_DEBUG_MV))){
320 for(i=0; i<2; i++){ 321 for(i=0; i<2; i++){
321 CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b8_array_size+1) * sizeof(uint16_t)*2) //FIXME 322 CHECKED_ALLOCZ(pic->motion_val_base[i], 2 * (b8_array_size+1) * sizeof(uint16_t)*2) //FIXME
322 pic->motion_val[i]= pic->motion_val_base[i]+1; 323 pic->motion_val[i]= pic->motion_val_base[i]+1;
323 } 324 }
325 pic->motion_subsample_log2= 3;
324 } 326 }
325 pic->qstride= s->mb_stride; 327 pic->qstride= s->mb_stride;
326 CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) 328 CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan))
327 } 329 }
328 330