comparison cavs.c @ 5240:1701ce572fed libavcodec

setting intra prediction modes to default values in inter macroblocks is now in its own inline function
author stefang
date Sat, 07 Jul 2007 06:27:44 +0000
parents 5760ab0250aa
children 74b6423a5a0d
comparison
equal deleted inserted replaced
5239:5760ab0250aa 5240:1701ce572fed
350 h->s.dsp.put_cavs_qpel_pixels_tab[1], 350 h->s.dsp.put_cavs_qpel_pixels_tab[1],
351 h->s.dsp.put_h264_chroma_pixels_tab[1], 351 h->s.dsp.put_h264_chroma_pixels_tab[1],
352 h->s.dsp.avg_cavs_qpel_pixels_tab[1], 352 h->s.dsp.avg_cavs_qpel_pixels_tab[1],
353 h->s.dsp.avg_h264_chroma_pixels_tab[1],&h->mv[MV_FWD_X3]); 353 h->s.dsp.avg_h264_chroma_pixels_tab[1],&h->mv[MV_FWD_X3]);
354 } 354 }
355 /* set intra prediction modes to default values */
356 h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP;
357 h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP;
358 } 355 }
359 356
360 /***************************************************************************** 357 /*****************************************************************************
361 * 358 *
362 * motion vector prediction 359 * motion vector prediction
694 mv_pred(h, MV_FWD_X1, MV_FWD_C2, MV_PRED_MEDIAN, BLK_8X8, ref[1]); 691 mv_pred(h, MV_FWD_X1, MV_FWD_C2, MV_PRED_MEDIAN, BLK_8X8, ref[1]);
695 mv_pred(h, MV_FWD_X2, MV_FWD_X1, MV_PRED_MEDIAN, BLK_8X8, ref[2]); 692 mv_pred(h, MV_FWD_X2, MV_FWD_X1, MV_PRED_MEDIAN, BLK_8X8, ref[2]);
696 mv_pred(h, MV_FWD_X3, MV_FWD_X0, MV_PRED_MEDIAN, BLK_8X8, ref[3]); 693 mv_pred(h, MV_FWD_X3, MV_FWD_X0, MV_PRED_MEDIAN, BLK_8X8, ref[3]);
697 } 694 }
698 inter_pred(h, mb_type); 695 inter_pred(h, mb_type);
696 set_intra_mode_default(h);
699 store_mvs(h); 697 store_mvs(h);
700 if(mb_type != P_SKIP) 698 if(mb_type != P_SKIP)
701 decode_residual_inter(h); 699 decode_residual_inter(h);
702 filter_mb(h,mb_type); 700 filter_mb(h,mb_type);
703 *h->col_type = mb_type; 701 *h->col_type = mb_type;
803 if(flags & BWD1) 801 if(flags & BWD1)
804 mv_pred(h, MV_BWD_X1, MV_BWD_C2, MV_PRED_TOPRIGHT,BLK_8X16, 0); 802 mv_pred(h, MV_BWD_X1, MV_BWD_C2, MV_PRED_TOPRIGHT,BLK_8X16, 0);
805 } 803 }
806 } 804 }
807 inter_pred(h, mb_type); 805 inter_pred(h, mb_type);
806 set_intra_mode_default(h);
808 if(mb_type != B_SKIP) 807 if(mb_type != B_SKIP)
809 decode_residual_inter(h); 808 decode_residual_inter(h);
810 filter_mb(h,mb_type); 809 filter_mb(h,mb_type);
811 } 810 }
812 811