diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-07-29 16:02:32 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-08-04 07:52:11 +0200 |
commit | 86357212fe49dd3471d398a4dc8605c6cdf46406 (patch) | |
tree | f45276149dfb4a4d6c4448e1011436f0d22fd251 /src/multimediawidgets/qvideowidget_p.h | |
parent | 2575d91f3df0405638325d71d3d0e3f1130881df (diff) |
Improve windowed rendering with gstreamer
Correctly respect the aspectRatioMode when calculating the
render rectangle. This works fine on xvimagesink. The vaapisink
doesn't fully respect it (at least with current AMD drivers), but
that is a bug in the vaapi implementation.
Set the fullscreen flag on the sink when going fullscreen, so that
it can apply any possible optimizations.
Clean up the code dealing with brightness correction etc, as that
is currently not used or supported.
Change-Id: I8e4d005901fa1ee59892d647f9359d8edb96664e
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimediawidgets/qvideowidget_p.h')
-rw-r--r-- | src/multimediawidgets/qvideowidget_p.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/multimediawidgets/qvideowidget_p.h b/src/multimediawidgets/qvideowidget_p.h index e425ff315..1b82ea574 100644 --- a/src/multimediawidgets/qvideowidget_p.h +++ b/src/multimediawidgets/qvideowidget_p.h @@ -70,15 +70,10 @@ public: QVideoFrame lastFrame; QVideoSink *videoSink = nullptr; + QRect targetRect; bool createBackend(); - void _q_brightnessChanged(int brightness); - void _q_contrastChanged(int contrast); - void _q_hueChanged(int hue); - void _q_saturationChanged(int saturation); - void _q_fullScreenChanged(bool fullScreen); - void _q_dimensionsChanged(); void _q_newFrame(const QVideoFrame &frame); }; |