jpegdec: move macro to c source
authorStefan Kost <ensonic@users.sf.net>
Thu, 8 Apr 2010 10:40:36 +0000 (13:40 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 8 Apr 2010 10:40:36 +0000 (13:40 +0300)
One less semi public symbol without namespace prefix in the headers.

ext/jpeg/gstjpegdec.c
ext/jpeg/gstjpegdec.h

index 4936ffb..cfdaec6 100644 (file)
@@ -48,6 +48,9 @@
 #define MIN_HEIGHT 8
 #define MAX_HEIGHT 65535
 
+#define CINFO_GET_JPEGDEC(cinfo_ptr) \
+        (((struct GstJpegDecSourceMgr*)((cinfo_ptr)->src))->dec)
+
 #define JPEG_DEFAULT_IDCT_METHOD       JDCT_FASTEST
 
 enum
index 68affa8..cdf77db 100644 (file)
@@ -58,9 +58,6 @@ struct GstJpegDecSourceMgr {
   GstJpegDec              *dec;
 };
 
-#define CINFO_GET_JPEGDEC(cinfo_ptr) \
-        (((struct GstJpegDecSourceMgr*)((cinfo_ptr)->src))->dec)
-
 /* Can't use GstBaseTransform, because GstBaseTransform
  * doesn't handle the N buffers in, 1 buffer out case,
  * but only the 1-in 1-out case */