comparison cavs.c @ 5239:5760ab0250aa libavcodec

move modification of intra prediction modes into its own inline function
author stefang
date Sat, 07 Jul 2007 06:15:05 +0000
parents 871a49faf887
children 1701ce572fed
comparison
equal deleted inserted replaced
5238:871a49faf887 5239:5760ab0250aa
614 pred_mode_uv = get_ue_golomb(gb); 614 pred_mode_uv = get_ue_golomb(gb);
615 if(pred_mode_uv > 6) { 615 if(pred_mode_uv > 6) {
616 av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n"); 616 av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n");
617 return -1; 617 return -1;
618 } 618 }
619 619 modify_mb_i(h, &pred_mode_uv);
620 /* save pred modes before they get modified */
621 h->pred_mode_Y[3] = h->pred_mode_Y[5];
622 h->pred_mode_Y[6] = h->pred_mode_Y[8];
623 h->top_pred_Y[h->mbx*2+0] = h->pred_mode_Y[7];
624 h->top_pred_Y[h->mbx*2+1] = h->pred_mode_Y[8];
625
626 /* modify pred modes according to availability of neighbour samples */
627 if(!(h->flags & A_AVAIL)) {
628 modify_pred(left_modifier_l, &h->pred_mode_Y[4] );
629 modify_pred(left_modifier_l, &h->pred_mode_Y[7] );
630 modify_pred(left_modifier_c, &pred_mode_uv );
631 }
632 if(!(h->flags & B_AVAIL)) {
633 modify_pred(top_modifier_l, &h->pred_mode_Y[4] );
634 modify_pred(top_modifier_l, &h->pred_mode_Y[5] );
635 modify_pred(top_modifier_c, &pred_mode_uv );
636 }
637 620
638 /* get coded block pattern */ 621 /* get coded block pattern */
639 if(h->pic_type == FF_I_TYPE) 622 if(h->pic_type == FF_I_TYPE)
640 cbp_code = get_ue_golomb(gb); 623 cbp_code = get_ue_golomb(gb);
641 if(cbp_code > 63){ 624 if(cbp_code > 63){