Mercurial > libavcodec.hg
comparison h264.c @ 1453:20a79b0e6d2a libavcodec
removed warnings
author | bellard |
---|---|
date | Tue, 09 Sep 2003 22:50:44 +0000 |
parents | a0c0bee12abf |
children | 79dddc5cd990 |
comparison
equal
deleted
inserted
replaced
1452:37dc515e3dac | 1453:20a79b0e6d2a |
---|---|
378 | 378 |
379 //wow what a mess, why didnt they simplify the interlacing&intra stuff, i cant imagine that these complex rules are worth it | 379 //wow what a mess, why didnt they simplify the interlacing&intra stuff, i cant imagine that these complex rules are worth it |
380 | 380 |
381 if(h->sps.mb_aff){ | 381 if(h->sps.mb_aff){ |
382 //FIXME | 382 //FIXME |
383 topleft_xy = 0; /* avoid warning */ | |
384 top_xy = 0; /* avoid warning */ | |
385 topright_xy = 0; /* avoid warning */ | |
383 }else{ | 386 }else{ |
384 topleft_xy = mb_xy-1 - s->mb_stride; | 387 topleft_xy = mb_xy-1 - s->mb_stride; |
385 top_xy = mb_xy - s->mb_stride; | 388 top_xy = mb_xy - s->mb_stride; |
386 topright_xy= mb_xy+1 - s->mb_stride; | 389 topright_xy= mb_xy+1 - s->mb_stride; |
387 left_xy[0] = mb_xy-1; | 390 left_xy[0] = mb_xy-1; |
2923 h->curr_pic_num= 2*h->frame_num; | 2926 h->curr_pic_num= 2*h->frame_num; |
2924 h->max_pic_num= 1<<(h->sps.log2_max_frame_num + 1); | 2927 h->max_pic_num= 1<<(h->sps.log2_max_frame_num + 1); |
2925 } | 2928 } |
2926 | 2929 |
2927 if(h->nal_unit_type == NAL_IDR_SLICE){ | 2930 if(h->nal_unit_type == NAL_IDR_SLICE){ |
2928 int idr_pic_id= get_ue_golomb(&s->gb); | 2931 get_ue_golomb(&s->gb); /* idr_pic_id */ |
2929 } | 2932 } |
2930 | 2933 |
2931 if(h->sps.poc_type==0){ | 2934 if(h->sps.poc_type==0){ |
2932 h->poc_lsb= get_bits(&s->gb, h->sps.log2_max_poc_lsb); | 2935 h->poc_lsb= get_bits(&s->gb, h->sps.log2_max_poc_lsb); |
2933 | 2936 |
2986 //FIXME CABAC stuff | 2989 //FIXME CABAC stuff |
2987 | 2990 |
2988 s->qscale = h->pps.init_qp + get_se_golomb(&s->gb); //slice_qp_delta | 2991 s->qscale = h->pps.init_qp + get_se_golomb(&s->gb); //slice_qp_delta |
2989 //FIXME qscale / qp ... stuff | 2992 //FIXME qscale / qp ... stuff |
2990 if(h->slice_type == SP_TYPE){ | 2993 if(h->slice_type == SP_TYPE){ |
2991 int sp_for_switch_flag= get_bits1(&s->gb); | 2994 get_bits1(&s->gb); /* sp_for_switch_flag */ |
2992 } | 2995 } |
2993 if(h->slice_type==SP_TYPE || h->slice_type == SI_TYPE){ | 2996 if(h->slice_type==SP_TYPE || h->slice_type == SI_TYPE){ |
2994 int slice_qs_delta= get_se_golomb(&s->gb); | 2997 get_se_golomb(&s->gb); /* slice_qs_delta */ |
2995 } | 2998 } |
2996 | 2999 |
2997 if( h->pps.deblocking_filter_parameters_present ) { | 3000 if( h->pps.deblocking_filter_parameters_present ) { |
2998 h->disable_deblocking_filter_idc= get_ue_golomb(&s->gb); | 3001 h->disable_deblocking_filter_idc= get_ue_golomb(&s->gb); |
2999 if( h->disable_deblocking_filter_idc != 1 ) { | 3002 if( h->disable_deblocking_filter_idc != 1 ) { |
3196 int mb_type, partition_count, cbp; | 3199 int mb_type, partition_count, cbp; |
3197 | 3200 |
3198 s->dsp.clear_blocks(h->mb); //FIXME avoid if allready clear (move after skip handlong? | 3201 s->dsp.clear_blocks(h->mb); //FIXME avoid if allready clear (move after skip handlong? |
3199 | 3202 |
3200 tprintf("pic:%d mb:%d/%d\n", h->frame_num, s->mb_x, s->mb_y); | 3203 tprintf("pic:%d mb:%d/%d\n", h->frame_num, s->mb_x, s->mb_y); |
3201 | 3204 cbp = 0; /* avoid warning. FIXME: find a solution without slowing |
3205 down the code */ | |
3202 if(h->slice_type != I_TYPE && h->slice_type != SI_TYPE){ | 3206 if(h->slice_type != I_TYPE && h->slice_type != SI_TYPE){ |
3203 if(s->mb_skip_run==-1) | 3207 if(s->mb_skip_run==-1) |
3204 s->mb_skip_run= get_ue_golomb(&s->gb); | 3208 s->mb_skip_run= get_ue_golomb(&s->gb); |
3205 | 3209 |
3206 if (s->mb_skip_run--) { | 3210 if (s->mb_skip_run--) { |