[Bug 790149] vaapipostproc: Does not maintain aspect ratio when scaling
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Dec 7 14:57:49 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=790149
--- Comment #6 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
(In reply to Nicolas Dufresne (stormer) from comment #4)
> Just to keep the ball rolling, can vaapipostproc add black bars, top/bottom
> or left/right depending ?
>
> I'm asking because scalers have two options:
>
> a) they maintain aspect ratio by negotiating output caps that do respect it
> b) scale to the negotiated output size, and add black borders as needed
Honestly, I don't know for sure, I've never tried. But, reading the
gstvaapifilter code, and the VA-API, it seems possible to do option b):
https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi/tree/gst-libs/gst/vaapi/gstvaapifilter.c#n1444
Since it is possible to set a destine rectangle with a specified background
color.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list