summaryrefslogtreecommitdiffstats
path: root/ext/jpeg/gstjpegdec.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-07-21 10:04:36 +0300
committerStefan Kost <ensonic@users.sf.net>2009-07-21 10:04:36 +0300
commit11c93fc1df47246cbdb5eeb1822dad6c3ff97f8d (patch)
tree6ced3c67c6227ca6d239b8edc918416daef94b1d /ext/jpeg/gstjpegdec.c
parentb7bf2f682061d36dddb3083de3330b87b972af20 (diff)
jpeg: code cleanups for encoder
Remove some disabled code in encoder. Try #if 0'ed code and add comments about why it is disabled. Move idct-method enum to jpeg.c and use in both encoder and decoder. Add idct-method property to encoder.
Diffstat (limited to 'ext/jpeg/gstjpegdec.c')
-rw-r--r--ext/jpeg/gstjpegdec.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c
index 2d680bc1..ebc4cd20 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -60,23 +60,8 @@ enum
PROP_IDCT_METHOD
};
+extern GType gst_idct_method_get_type (void);
#define GST_TYPE_IDCT_METHOD (gst_idct_method_get_type())
-static GType
-gst_idct_method_get_type (void)
-{
- static GType idct_method_type = 0;
- static const GEnumValue idct_method[] = {
- {JDCT_ISLOW, "Slow but accurate integer algorithm", "islow"},
- {JDCT_IFAST, "Faster, less accurate integer method", "ifast"},
- {JDCT_FLOAT, "Floating-point: accurate, fast on fast HW", "float"},
- {0, NULL, NULL},
- };
-
- if (!idct_method_type) {
- idct_method_type = g_enum_register_static ("GstIDCTMethod", idct_method);
- }
- return idct_method_type;
-}
static GstStaticPadTemplate gst_jpeg_dec_src_pad_template =
GST_STATIC_PAD_TEMPLATE ("src",