d3d11videoprocessor: Disable auto processing mode explicitly

Don't allow auto processing (e.g., denoising), as it might result
in unexpected output.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2051>
This commit is contained in:
Seungha Yang 2021-03-02 18:07:36 +09:00
parent 646c34794f
commit 6ba1ee8d0f

View file

@ -130,6 +130,13 @@ gst_d3d11_video_processor_new (GstD3D11Device * device, guint in_width,
}
#endif
/* Setting up default options */
gst_d3d11_device_lock (self->device);
/* We don't want auto processing by driver */
ID3D11VideoContext_VideoProcessorSetStreamAutoProcessingMode
(self->video_context, self->processor, 0, FALSE);
gst_d3d11_device_unlock (self->device);
return self;
fail: