diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-10-06 14:21:35 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-10-10 10:57:03 +0200 |
commit | 0cebcbad4437186e868621fe0dc28873189d22fe (patch) | |
tree | 683293d996245be5f35a10ae1936f409bb563455 /src/gen6_mfd.c | |
parent | 0a12163d1ebaffebd186b1eb1eb95d7895037734 (diff) | |
download | libva-intel-driver-0cebcbad4437186e868621fe0dc28873189d22fe.tar.gz libva-intel-driver-0cebcbad4437186e868621fe0dc28873189d22fe.tar.bz2 libva-intel-driver-0cebcbad4437186e868621fe0dc28873189d22fe.zip |
vc1: fix TTFRM (picture-level transform type) packing.
Diffstat (limited to 'src/gen6_mfd.c')
-rw-r--r-- | src/gen6_mfd.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c index c4c93f7..92cbce9 100644 --- a/src/gen6_mfd.c +++ b/src/gen6_mfd.c @@ -1435,17 +1435,6 @@ static const int va_to_gen6_vc1_profile[4] = { GEN6_VC1_ADVANCED_PROFILE }; -static const int va_to_gen6_vc1_ttfrm[8] = { - 0, /* 8x8 */ - 1, /* 8x4 bottom */ - 1, /* 8x4 top */ - 1, /* 8x4 */ - 2, /* 4x8 bottom */ - 2, /* 4x8 top */ - 2, /* 4x8 */ - 3, /* 4x4 */ -}; - static void gen6_mfd_free_vc1_surface(void **data) { @@ -1811,7 +1800,7 @@ gen6_mfd_vc1_pic_state(VADriverContextP ctx, pic_param->mv_fields.bits.mv_table << 20 | pic_param->mv_fields.bits.four_mv_block_pattern_table << 18 | pic_param->mv_fields.bits.two_mv_block_pattern_table << 16 | - va_to_gen6_vc1_ttfrm[pic_param->transform_fields.bits.frame_level_transform_type] << 12 | + pic_param->transform_fields.bits.frame_level_transform_type << 12 | pic_param->transform_fields.bits.mb_level_transform_type_flag << 11 | pic_param->mb_mode_table << 8 | trans_ac_y << 6 | |