[Libva] [PATCH 1/9] vc1: fix motion vector mode (IVB).
Gwenole Beauchesne
gb.devel at gmail.com
Mon Jan 30 10:27:08 PST 2012
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));
--
1.7.5.4
More information about the Libva
mailing list