VPP: add vebox motion compensation support on BDW
authorZhong Li <zhong.li@intel.com>
Sun, 13 Oct 2013 15:11:54 +0000 (23:11 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:22:45 +0000 (10:22 +0800)
Signed-off-by: Zhong Li <zhong.li@intel.com>
src/gen75_vpp_vebox.c
src/i965_drv_video.c

index ab9a014..8e80474 100644 (file)
@@ -1336,7 +1336,8 @@ void bdw_veb_state_command(VADriverContextP ctx, struct intel_vebox_context *pro
         if (di_param->algorithm == VAProcDeinterlacingBob)
             is_first_frame = 1;
 
-        if (di_param->algorithm == VAProcDeinterlacingMotionAdaptive &&
+        if ((di_param->algorithm == VAProcDeinterlacingMotionAdaptive ||
+            di_param->algorithm == VAProcDeinterlacingMotionCompensated) &&
             proc_ctx->frame_order != -1)
             di_output_frames_flag = 0; /* Output both Current Frame and Previous Frame */
     }
index bfb1092..6048763 100755 (executable)
@@ -344,6 +344,7 @@ static struct hw_codec_info gen8_hw_codec_info = {
     .has_accelerated_putimage = 1,
     .has_tiled_surface = 1,
     .has_di_motion_adptive = 1,
+    .has_di_motion_compensated = 1,
     .has_vp8_decoding = 1,
 
     .num_filters = 4,