From 9e023ea15614449f3795ff5c63b40bf0468cf01b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 18 Jul 2007 08:00:06 +0000 Subject: gst/bayer/gstbayer2rgb.c: Add basic docs. Use glibs mem routines. Original commit message from CVS: * gst/bayer/gstbayer2rgb.c: (gst_bayer2rgb_set_caps), (gst_bayer2rgb_reset): Add basic docs. Use glibs mem routines. --- ChangeLog | 6 ++++++ gst/bayer/gstbayer2rgb.c | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8911d241..b9e084d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-18 Stefan Kost + + * gst/bayer/gstbayer2rgb.c: (gst_bayer2rgb_set_caps), + (gst_bayer2rgb_reset): + Add basic docs. Use glibs mem routines. + 2007-07-18 Stefan Kost * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): diff --git a/gst/bayer/gstbayer2rgb.c b/gst/bayer/gstbayer2rgb.c index 132479c6..7c278869 100644 --- a/gst/bayer/gstbayer2rgb.c +++ b/gst/bayer/gstbayer2rgb.c @@ -18,6 +18,12 @@ * Boston, MA 02111-1307, USA. */ +/* + * SECTION:element-bayer2rgb + * + * Decodes raw camera sensor images. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -59,7 +65,8 @@ struct _GstBayer2RGBClass GstBaseTransformClass parent; }; -static const GstElementDetails element_details = GST_ELEMENT_DETAILS ("FIXME", +static const GstElementDetails element_details = +GST_ELEMENT_DETAILS ("RAW Camera sensor decoder", "Filter/Effect", "FIXME example filter", "FIXME "); @@ -178,9 +185,9 @@ gst_bayer2rgb_set_caps (GstBaseTransform * base, GstCaps * incaps, filter->stride = GST_ROUND_UP_4 (filter->width); if (filter->tmpdata) { - free (filter->tmpdata); + g_free (filter->tmpdata); } - filter->tmpdata = malloc (filter->stride * (4 * 3 + 1)); + filter->tmpdata = g_malloc (filter->stride * (4 * 3 + 1)); return TRUE; } @@ -192,7 +199,7 @@ gst_bayer2rgb_reset (GstBayer2RGB * filter) filter->height = 0; filter->stride = 0; if (filter->tmpdata) { - free (filter->tmpdata); + g_free (filter->tmpdata); filter->tmpdata = NULL; } } -- cgit v1.2.1