mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
video-converter: make sure we draw enough border for YUY2 formats
Round width up to 2 so that we draw all border pixels for YUY2 formats
This commit is contained in:
parent
f4a5277340
commit
c0b0fd52f3
1 changed files with 7 additions and 6 deletions
|
@ -3627,12 +3627,6 @@ convert_fill_border (GstVideoConverter * convert, GstVideoFrame * dest)
|
|||
GST_VIDEO_FORMAT_INFO_SCALE_HEIGHT (out_finfo, k,
|
||||
convert->out_maxheight);
|
||||
|
||||
r_border = out_x + out_width;
|
||||
rb_width = out_maxwidth - r_border;
|
||||
lb_width = out_x;
|
||||
|
||||
borders = &convert->borders[k];
|
||||
|
||||
pstride = GST_VIDEO_FORMAT_INFO_PSTRIDE (out_finfo, k);
|
||||
|
||||
switch (GST_VIDEO_FORMAT_INFO_FORMAT (out_finfo)) {
|
||||
|
@ -3640,12 +3634,19 @@ convert_fill_border (GstVideoConverter * convert, GstVideoFrame * dest)
|
|||
case GST_VIDEO_FORMAT_YVYU:
|
||||
case GST_VIDEO_FORMAT_UYVY:
|
||||
pgroup = 42;
|
||||
out_maxwidth = GST_ROUND_UP_2 (out_maxwidth);
|
||||
break;
|
||||
default:
|
||||
pgroup = pstride;
|
||||
break;
|
||||
}
|
||||
|
||||
r_border = out_x + out_width;
|
||||
rb_width = out_maxwidth - r_border;
|
||||
lb_width = out_x;
|
||||
|
||||
borders = &convert->borders[k];
|
||||
|
||||
switch (pgroup) {
|
||||
case 1:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue