projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4a1e1
)
dvdspu: Fix the rendering of PGS windows with left != 0
author
Jan Schmidt
<thaytan@noraisin.net>
Thu, 7 Feb 2013 11:26:15 +0000
(22:26 +1100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 7 Feb 2013 12:05:02 +0000
(12:05 +0000)
When rendering a PGS window area where the left edge is not at
pixel 0, the chroma was being rendered in the wrong place since
commit
4dc648d3430b67592cf1413ccef415f70889d71e
gst/dvdspu/gstdvdspu-render.c
patch
|
blob
|
history
diff --git
a/gst/dvdspu/gstdvdspu-render.c
b/gst/dvdspu/gstdvdspu-render.c
index f303fa1a39c57c2959af9514d8f96c084f8af05a..1170d88b3188806902114c415b3e9139301e8776 100644
(file)
--- a/
gst/dvdspu/gstdvdspu-render.c
+++ b/
gst/dvdspu/gstdvdspu-render.c
@@
-79,6
+79,8
@@
gstspu_blend_comp_buffers (SpuState * state, guint8 * planes[3])
uv_end = (comp_last_x + 1) / 2;
left = state->comp_left / 2;
+ out_U += left * GST_VIDEO_INFO_COMP_PSTRIDE (&state->info, 1);
+ out_V += left * GST_VIDEO_INFO_COMP_PSTRIDE (&state->info, 2);
for (x = left; x < uv_end; x++) {
guint32 tmp;
/* Each entry in the compositing buffer is 4 summed pixels, so the