mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vaapipostproc: enable advanced deinterlacing with same format.
If only advanced deinterlacing is requested, i.e. deinterlacing is the only active algorithm to apply with source and output surface formats being the same, then make sure to enable VPP processing. Otherwise, allow fallback to bob-deinterlacing with simple rendering flags alteration.
This commit is contained in:
parent
aa4d1f5a1e
commit
bc8e7a6734
1 changed files with 2 additions and 1 deletions
|
@ -1117,7 +1117,8 @@ gst_vaapipostproc_transform(GstBaseTransform *trans, GstBuffer *inbuf,
|
||||||
if (postproc->flags) {
|
if (postproc->flags) {
|
||||||
/* Use VA/VPP extensions to process this frame */
|
/* Use VA/VPP extensions to process this frame */
|
||||||
if (postproc->use_vpp &&
|
if (postproc->use_vpp &&
|
||||||
postproc->flags != GST_VAAPI_POSTPROC_FLAG_DEINTERLACE) {
|
(postproc->flags != GST_VAAPI_POSTPROC_FLAG_DEINTERLACE ||
|
||||||
|
deint_method_is_advanced(postproc->deinterlace_method))) {
|
||||||
ret = gst_vaapipostproc_process_vpp(trans, buf, outbuf);
|
ret = gst_vaapipostproc_process_vpp(trans, buf, outbuf);
|
||||||
if (ret != GST_FLOW_NOT_SUPPORTED)
|
if (ret != GST_FLOW_NOT_SUPPORTED)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue