Skip to content

Commit

Permalink
[vaapi] Remove filter_flags setting in vpp
Browse files Browse the repository at this point in the history
This is not used, according to the API documentation a deinterlace
filter always overrides toplevel filter_flags anyway.
  • Loading branch information
pkerling committed Mar 28, 2019
1 parent f28ccdd commit 7db304b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -2626,6 +2626,7 @@ bool CVppPostproc::Filter(CVaapiProcessedPicture &outPic)
pipelineParams->output_region = &outputRegion;
pipelineParams->surface_region = &inputRegion;
pipelineParams->output_background_color = 0xff000000;
pipelineParams->filter_flags = 0;

VASurfaceID forwardRefs[32];
VASurfaceID backwardRefs[32];
Expand Down Expand Up @@ -2664,11 +2665,6 @@ bool CVppPostproc::Filter(CVaapiProcessedPicture &outPic)
return false;
}

if (m_vppMethod == VS_INTERLACEMETHOD_VAAPI_BOB)
pipelineParams->filter_flags = (flags & VA_DEINTERLACING_BOTTOM_FIELD) ? VA_BOTTOM_FIELD : VA_TOP_FIELD;
else
pipelineParams->filter_flags = 0;

pipelineParams->filters = &m_filter;
pipelineParams->num_filters = 1;
}
Expand Down

0 comments on commit 7db304b

Please sign in to comment.