[Libva] [PATCH 1/9] vc1: fix motion vector mode (IVB).

Xiang, Haihao haihao.xiang at intel.com
Thu Feb 2 00:42:28 PST 2012


On Mon, 2012-01-30 at 19:27 +0100, Gwenole Beauchesne wrote: 
> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
> ---
>  src/gen7_mfd.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
> index 9308999..c289427 100644
> --- a/src/gen7_mfd.c
> +++ b/src/gen7_mfd.c
> @@ -1716,13 +1716,13 @@ gen7_mfd_vc1_pic_state(VADriverContextP ctx,
>      if (pic_param->mv_fields.bits.mv_mode == VAMvMode1MvHalfPelBilinear ||
>          (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation &&
>           pic_param->mv_fields.bits.mv_mode2 == VAMvMode1MvHalfPelBilinear))
> -        interpolation_mode = 8; /* Half-pel bilinear */
> +        interpolation_mode = 9; /* Half-pel bilinear */
>      else if (pic_param->mv_fields.bits.mv_mode == VAMvMode1MvHalfPel ||
>               (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation &&
>                pic_param->mv_fields.bits.mv_mode2 == VAMvMode1MvHalfPel))
> -        interpolation_mode = 0; /* Half-pel bicubic */
> +        interpolation_mode = 1; /* Half-pel bicubic */
>      else
> -        interpolation_mode = 1; /* Quarter-pel bicubic */
> +        interpolation_mode = 0; /* Quarter-pel bicubic */
>  
>      BEGIN_BCS_BATCH(batch, 6);
>      OUT_BCS_BATCH(batch, MFD_VC1_LONG_PIC_STATE | (6 - 2));

Nice catch. 

Thanks
Haihao




More information about the Libva mailing list