Last active
December 30, 2015 19:19
-
-
Save BtbN/7873385 to your computer and use it in GitHub Desktop.
fix_top_field.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c | |
index 75d922d..b5a88b6 100644 | |
--- a/src/gen75_vpp_vebox.c | |
+++ b/src/gen75_vpp_vebox.c | |
@@ -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); | |
} | |
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c | |
index 9ab6fde..015e11c 100755 | |
--- a/src/i965_post_processing.c | |
+++ b/src/i965_post_processing.c | |
@@ -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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment