diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-09-22 13:03:42 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-09-22 14:14:14 +0800 |
commit | ea3c725a7f9fa66e7ef05e1c08af30c28f8c1aa0 (patch) | |
tree | 5ee955b7228182c035be4e3cf9b38def46cb2412 | |
parent | 8a0a61ce47e086ac156602c3daaf70f20e4ca222 (diff) |
VPP: fix the check for DI filter flags on SNB/IVB
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rwxr-xr-x | src/i965_post_processing.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index a26bd2f..bb63a42 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -3285,14 +3285,10 @@ 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 == I965_SURFACE_FLAG_FRAME) - return VA_STATUS_ERROR_FLAG_NOT_SUPPORTED; - - if (di_filter_param->flags == I965_SURFACE_FLAG_TOP_FIELD_FIRST) { - dndi_top_first = 1; - } else { + if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST) dndi_top_first = 0; - } + else + dndi_top_first = 1; /* surface */ obj_surface = (struct object_surface *)src_surface->base; @@ -3691,14 +3687,10 @@ 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 == I965_SURFACE_FLAG_FRAME) - return VA_STATUS_ERROR_FLAG_NOT_SUPPORTED; - - if (di_filter_param->flags == I965_SURFACE_FLAG_TOP_FIELD_FIRST) { - dndi_top_first = 1; - } else { + if (di_filter_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST) dndi_top_first = 0; - } + else + dndi_top_first = 1; /* surface */ current_in_obj_surface = (struct object_surface *)src_surface->base; |