VPP: Use the right top/bottom field flag used for DI
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 10 Dec 2013 02:19:09 +0000 (10:19 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 11 Dec 2013 01:54:24 +0000 (09:54 +0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72518
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen75_vpp_vebox.c
src/i965_post_processing.c

index 75d922d..b5a88b6 100644 (file)
@@ -141,7 +141,7 @@ void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_c
         assert(di_param);
 
         progressive_dn = 0;
-        dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST);
+        dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD);
         motion_compensated_enable = (di_param->algorithm == VAProcDeinterlacingMotionCompensated);
     }
 
index 9ab6fde..015e11c 100755 (executable)
@@ -3210,7 +3210,7 @@ pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_contex
     int dndi_top_first = 1;
     VAProcFilterParameterBufferDeinterlacing *di_filter_param = (VAProcFilterParameterBufferDeinterlacing *)filter_param;
 
-    if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST)
+    if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD)
         dndi_top_first = 0;
     else
         dndi_top_first = 1;
@@ -3612,7 +3612,7 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_c
     VAProcFilterParameterBufferDeinterlacing *di_filter_param = (VAProcFilterParameterBufferDeinterlacing *)filter_param;
     int is_first_frame = (pp_dndi_context->frame_order == -1);
 
-    if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST)
+    if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD)
         dndi_top_first = 0;
     else
         dndi_top_first = 1;