wtay gst-plugins-good: gst-plugins-good/ gst-plugins-good/gst/videocrop/

[email protected] Mon, 19 Jan 2009 03:44:50 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
--===============5266675405167978043==

CVS Root:       /cvs/gstreamer
Module:         gst-plugins-good
Changes by:     wtay
Date:           Mon Jan 19 2009  11:44:50 UTC

Log message:
Patch by: Luotao Fu <l dot fu at pengutronix dot de>
* gst/videocrop/gstvideocrop.c:
(gst_video_crop_get_image_details_from_caps):
Add 8bit grayscale support to videocrop plugin. Fixes #567952.

Modified files:
    .               : ChangeLog
    gst/videocrop   : gstvideocrop.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.3905&r2=1.3906
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/videocrop/gstvideocrop.c.diff?r1=1.41&r2=1.42

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v
retrieving revision 1.3905
retrieving revision 1.3906
diff -u -d -r1.3905 -r1.3906
--- ChangeLog	19 Jan 2009 11:22:04 -0000	1.3905
+++ ChangeLog	19 Jan 2009 11:44:34 -0000	1.3906
@@ -1,3 +1,11 @@
+2009-01-19  Wim Taymans  <[email protected]>
+
+	Patch by: Luotao Fu <l dot fu at pengutronix dot de>
+	* gst/videocrop/gstvideocrop.c:
+	(gst_video_crop_get_image_details_from_caps):
+	Add 8bit grayscale support to videocrop plugin. Fixes #567952.
 2009-01-19  Sebastian Dröge  <[email protected]>
 
 	* gst/audiofx/audioreverb.c: (gst_audio_reverb_init):
Index: gstvideocrop.c
RCS file: /cvs/gstreamer/gst-plugins-good/gst/videocrop/gstvideocrop.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- gstvideocrop.c	25 Nov 2008 16:06:22 -0000	1.41
+++ gstvideocrop.c	19 Jan 2009 11:44:36 -0000	1.42
@@ -88,6 +88,12 @@
 };
 /* the formats we support */
+#define GST_VIDEO_CAPS_GRAY "video/x-raw-gray, "			\
+    "bpp = (int) 8, "                                                  \
+    "width = " GST_VIDEO_SIZE_RANGE ", "                                \
+    "height = " GST_VIDEO_SIZE_RANGE ", "                               \
+    "framerate = " GST_VIDEO_FPS_RANGE
 #define VIDEO_CROP_CAPS                          \
   GST_VIDEO_CAPS_RGBx ";"                        \
   GST_VIDEO_CAPS_xRGB ";"                        \
@@ -107,7 +113,8 @@
   GST_VIDEO_CAPS_YUV ("I420") ";"                \
   GST_VIDEO_CAPS_YUV ("YV12") ";"                \
   GST_VIDEO_CAPS_RGB_16 ";"                      \
-  GST_VIDEO_CAPS_RGB_15
+  GST_VIDEO_CAPS_RGB_15 ";"			 \
+  GST_VIDEO_CAPS_GRAY
 static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
@@ -211,7 +218,8 @@
   details->width = width;
   details->height = height;
-  if (gst_structure_has_name (structure, "video/x-raw-rgb")) {
+  if (gst_structure_has_name (structure, "video/x-raw-rgb") ||
+      gst_structure_has_name (structure, "video/x-raw-gray")) {
     gint bpp = 0;
     if (!gst_structure_get_int (structure, "bpp", &bpp) || (bpp & 0x07) != 0)


--===============5266675405167978043==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
--===============5266675405167978043==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose

--===============5266675405167978043==--