mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ext/hermes/gstcolorspace.c: Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
Original commit message from CVS: * ext/hermes/gstcolorspace.c: (gst_colorspace_chain): Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
This commit is contained in:
parent
6b9e58c9e4
commit
7277b505fc
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-09 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
|
* ext/hermes/gstcolorspace.c: (gst_colorspace_chain):
|
||||||
|
Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
|
||||||
|
|
||||||
2004-01-09 Julien MOUTTE <julien@moutte.net>
|
2004-01-09 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain):
|
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain):
|
||||||
|
|
|
@ -405,7 +405,8 @@ gst_colorspace_chain (GstPad *pad,GstData *_data)
|
||||||
dest_bytes = ((space->destbpp+7)/8);
|
dest_bytes = ((space->destbpp+7)/8);
|
||||||
src_bytes = ((space->srcbpp+7)/8);
|
src_bytes = ((space->srcbpp+7)/8);
|
||||||
|
|
||||||
outbuf = gst_buffer_new_and_alloc ((size * space->destbpp)/8);
|
outbuf = gst_pad_alloc_buffer (gst_pad_get_peer (pad), GST_BUFFER_OFFSET_NONE,
|
||||||
|
(size * space->destbpp)/8);
|
||||||
|
|
||||||
if (space->type == GST_COLORSPACE_YUV_RGB) {
|
if (space->type == GST_COLORSPACE_YUV_RGB) {
|
||||||
gst_colorspace_convert (space->converter, GST_BUFFER_DATA (buf), GST_BUFFER_DATA (outbuf));
|
gst_colorspace_convert (space->converter, GST_BUFFER_DATA (buf), GST_BUFFER_DATA (outbuf));
|
||||||
|
@ -528,4 +529,3 @@ GST_PLUGIN_DEFINE (
|
||||||
"LGPL",
|
"LGPL",
|
||||||
GST_PACKAGE,
|
GST_PACKAGE,
|
||||||
GST_ORIGIN)
|
GST_ORIGIN)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue