projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f4113
)
videoscale: fix adding borders when NV12 is used
author
Antonio Ospite
<ospite@studenti.unina.it>
Mon, 28 Oct 2013 11:36:04 +0000
(12:36 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 30 Oct 2013 17:38:21 +0000
(18:38 +0100)
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
gst/videoscale/gstvideoscale.c
patch
|
blob
|
history
diff --git
a/gst/videoscale/gstvideoscale.c
b/gst/videoscale/gstvideoscale.c
index
0f2eada
..
e752931
100644
(file)
--- a/
gst/videoscale/gstvideoscale.c
+++ b/
gst/videoscale/gstvideoscale.c
@@
-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);