mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dvbsuboverlay: Revert some parts of last commit that shouldn't be committed
This commit is contained in:
parent
68b8fca047
commit
8974371914
1 changed files with 0 additions and 9 deletions
|
@ -518,8 +518,6 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer)
|
||||||
v_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 2, width);
|
v_stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_I420, 2, width);
|
||||||
|
|
||||||
for (counter = 0; counter < subs->num_rects; counter++) {
|
for (counter = 0; counter < subs->num_rects; counter++) {
|
||||||
gint dw, dh;
|
|
||||||
|
|
||||||
sub_region = subs->rects[counter];
|
sub_region = subs->rects[counter];
|
||||||
if (sub_region->y > height || sub_region->x > width)
|
if (sub_region->y > height || sub_region->x > width)
|
||||||
continue;
|
continue;
|
||||||
|
@ -528,13 +526,6 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer)
|
||||||
w = MIN (sub_region->w, width - sub_region->x);
|
w = MIN (sub_region->w, width - sub_region->x);
|
||||||
h = MIN (sub_region->h, height - sub_region->y);
|
h = MIN (sub_region->h, height - sub_region->y);
|
||||||
|
|
||||||
/* TODO
|
|
||||||
dw = MIN (sub_region->dw, width - sub_region->x);
|
|
||||||
dh = MIN (sub_region->dh, height - sub_region->y);
|
|
||||||
*/
|
|
||||||
dw = w;
|
|
||||||
dh = h + 10;
|
|
||||||
|
|
||||||
w2 = (w + 1) / 2;
|
w2 = (w + 1) / 2;
|
||||||
h2 = (h + 1) / 2;
|
h2 = (h + 1) / 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue