diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-07-21 10:04:36 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-07-21 10:04:36 +0300 |
commit | 11c93fc1df47246cbdb5eeb1822dad6c3ff97f8d (patch) | |
tree | 6ced3c67c6227ca6d239b8edc918416daef94b1d /ext/jpeg/gstjpeg.c | |
parent | b7bf2f682061d36dddb3083de3330b87b972af20 (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/gstjpeg.c')
-rw-r--r-- | ext/jpeg/gstjpeg.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpeg.c b/ext/jpeg/gstjpeg.c index 73134343..3cdcda19 100644 --- a/ext/jpeg/gstjpeg.c +++ b/ext/jpeg/gstjpeg.c @@ -29,6 +29,23 @@ #include "gstsmokeenc.h" #include "gstsmokedec.h" +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 gboolean plugin_init (GstPlugin * plugin) { |