mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
videoscale: fix adding borders when NV12 is used
When the frame buffer is NV12 the borders are not added at all, fix that and fill them to black. https://bugzilla.gnome.org/show_bug.cgi?id=711003
This commit is contained in:
parent
22f411378e
commit
fdfc6baf14
1 changed files with 4 additions and 0 deletions
|
@ -1378,6 +1378,10 @@ do_scale (GstVideoFilter * filter, VSImage dest[4], VSImage src[4])
|
|||
}
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
if (add_borders) {
|
||||
vs_fill_borders_Y (&dest[0], black);
|
||||
vs_fill_borders_Y16 (&dest[1], (black[1] << 8) | black[2]);
|
||||
}
|
||||
switch (method) {
|
||||
case GST_VIDEO_SCALE_NEAREST:
|
||||
vs_image_scale_nearest_Y (&dest[0], &src[0], videoscale->tmp_buf);
|
||||
|
|
Loading…
Reference in a new issue