projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98332bd
)
videoconvert: actually copy the palette
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 15 Oct 2012 14:32:25 +0000
(16:32 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 15 Oct 2012 14:32:25 +0000
(16:32 +0200)
Copy the default palette in the destination buffer too.
gst/videoconvert/videoconvert.c
patch
|
blob
|
history
diff --git
a/gst/videoconvert/videoconvert.c
b/gst/videoconvert/videoconvert.c
index
0213e35
..
f3f7421
100644
(file)
--- a/
gst/videoconvert/videoconvert.c
+++ b/
gst/videoconvert/videoconvert.c
@@
-440,6
+440,9
@@
videoconvert_convert_generic (VideoConvert * convert, GstVideoFrame * dest,
PACK_FRAME (dest, convert->tmpline, j, width);
}
}
+ if (GST_VIDEO_FRAME_FORMAT (dest) == GST_VIDEO_FORMAT_RGB8P) {
+ memcpy (GST_VIDEO_FRAME_PLANE_DATA (dest, 1), convert->palette, 256 * 4);
+ }
}
#define FRAME_GET_PLANE_STRIDE(frame, plane) \