Skip to content

Commit

Permalink
vpp: add support for Motion-Compensated deinterlacing on Ivybridge.
Browse files Browse the repository at this point in the history
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
  • Loading branch information
gbeauchesne committed Nov 13, 2014
1 parent ec6e266 commit 1925619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/i965_device_info.c
Expand Up @@ -158,6 +158,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
4 changes: 3 additions & 1 deletion src/i965_post_processing.c
Expand Up @@ -1210,6 +1210,7 @@ pp_dndi_context_init_surface_params(struct pp_dndi_context *dndi_ctx,
dndi_ctx->is_first_frame = 1;
break;
case VAProcDeinterlacingMotionAdaptive:
case VAProcDeinterlacingMotionCompensated:
fs = &dndi_ctx->frame_store[DNDI_FRAME_IN_CURRENT];
if (fs->surface_id == VA_INVALID_ID)
dndi_ctx->is_first_frame = 1;
Expand Down Expand Up @@ -3884,7 +3885,8 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_c
sampler_dndi[index].dw6.dndi_stream_id = 1;
sampler_dndi[index].dw6.dndi_first_frame = dndi_ctx->is_first_frame;
sampler_dndi[index].dw6.progressive_dn = 0;
sampler_dndi[index].dw6.mcdi_enable = 0;
sampler_dndi[index].dw6.mcdi_enable =
(deint_params->algorithm == VAProcDeinterlacingMotionCompensated);
sampler_dndi[index].dw6.fmd_tear_threshold = 2;
sampler_dndi[index].dw6.cat_th1 = 0;
sampler_dndi[index].dw6.fmd2_vertical_difference_threshold = 100;
Expand Down

0 comments on commit 1925619

Please sign in to comment.