Skip to content

Commit

Permalink
vpp: fix advanced deinterlacing on Ivybridge.
Browse files Browse the repository at this point in the history
Also add support for Motion-Compensated Deinterlacing algorithm.

Note: The Sandybridge path was also updated but not tested at all.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
  • Loading branch information
gbeauchesne committed Oct 27, 2014
1 parent 3a8e920 commit d7d5e99
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 355 deletions.
9 changes: 2 additions & 7 deletions src/gen8_post_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,14 +1386,12 @@ gen8_post_processing(
}

static void
gen8_post_processing_context_finalize(struct i965_post_processing_context *pp_context)
gen8_post_processing_context_finalize(VADriverContextP ctx,
struct i965_post_processing_context *pp_context)
{
dri_bo_unreference(pp_context->surface_state_binding_table.bo);
pp_context->surface_state_binding_table.bo = NULL;

dri_bo_unreference(pp_context->pp_dndi_context.stmm_bo);
pp_context->pp_dndi_context.stmm_bo = NULL;

dri_bo_unreference(pp_context->pp_dn_context.stmm_bo);
pp_context->pp_dn_context.stmm_bo = NULL;

Expand Down Expand Up @@ -1497,9 +1495,6 @@ gen8_post_processing_context_init(VADriverContextP ctx,
pp_context->pp_static_parameter = calloc(sizeof(struct gen7_pp_static_parameter), 1);
pp_context->pp_inline_parameter = calloc(sizeof(struct gen7_pp_inline_parameter), 1);

pp_context->pp_dndi_context.current_out_surface = VA_INVALID_SURFACE;
pp_context->pp_dndi_context.current_out_obj_surface = NULL;
pp_context->pp_dndi_context.frame_order = -1;
pp_context->batch = batch;

pp_context->idrt_size = 5 * sizeof(struct gen8_interface_descriptor_data);
Expand Down
1 change: 1 addition & 0 deletions src/i965_device_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static struct hw_codec_info ivb_hw_codec_info = {
.has_accelerated_putimage = 1,
.has_tiled_surface = 1,
.has_di_motion_adptive = 1,
.has_di_motion_compensated = 1,

.num_filters = 2,
.filters = {
Expand Down
Loading

0 comments on commit d7d5e99

Please sign in to comment.