diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2007-07-18 08:00:06 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2007-07-18 08:00:06 +0000 |
commit | 9e023ea15614449f3795ff5c63b40bf0468cf01b (patch) | |
tree | 5dfba2df1ee003491a3619a6bb0e08103ebc9eef | |
parent | 9c2276190fed0f65fd3a51f66f636ef33cce02ae (diff) | |
download | gst-plugins-bad-9e023ea15614449f3795ff5c63b40bf0468cf01b.tar.gz gst-plugins-bad-9e023ea15614449f3795ff5c63b40bf0468cf01b.tar.bz2 gst-plugins-bad-9e023ea15614449f3795ff5c63b40bf0468cf01b.zip |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/bayer/gstbayer2rgb.c | 15 |
2 files changed, 17 insertions, 4 deletions
@@ -1,5 +1,11 @@ 2007-07-18 Stefan Kost <ensonic@users.sf.net> + * gst/bayer/gstbayer2rgb.c: (gst_bayer2rgb_set_caps), + (gst_bayer2rgb_reset): + Add basic docs. Use glibs mem routines. + +2007-07-18 Stefan Kost <ensonic@users.sf.net> + * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): Add example to the docs. Fix buffer-offset-end and add some debug. 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 <fixme@fixme.com>"); @@ -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; } } |