summaryrefslogtreecommitdiffstats
path: root/ext/jp2k/gstjasperenc.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-12-01 15:48:13 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-12-01 15:48:13 +0000
commit426b2db2cba849ab4f64a6ba91047380ff338837 (patch)
tree8370b79b7a092787567f1f86633820bcf795ab6a /ext/jp2k/gstjasperenc.h
parent65009ed81b1434e17c94928da2ca57f164e429aa (diff)
downloadgst-plugins-bad-426b2db2cba849ab4f64a6ba91047380ff338837.tar.gz
gst-plugins-bad-426b2db2cba849ab4f64a6ba91047380ff338837.tar.bz2
gst-plugins-bad-426b2db2cba849ab4f64a6ba91047380ff338837.zip
ext/jp2k/: Add image/x-jpc caps name for real, raw JPEG2000 codestream data.
Original commit message from CVS: * ext/jp2k/gstjasperdec.c: (gst_jasper_dec_sink_setcaps): * ext/jp2k/gstjasperenc.c: (gst_jasper_enc_reset), (gst_jasper_enc_set_src_caps), (gst_jasper_enc_init_encoder), (gst_jasper_enc_sink_setcaps), (gst_jasper_enc_get_data): * ext/jp2k/gstjasperenc.h: Add image/x-jpc caps name for real, raw JPEG2000 codestream data. In 0.11 we should merge image/x-j2c and image/x-jpc and simply drop the non-standard boxing in the jasper elements and handle it in qtmux/qtdemux. image/x-jpc will be used by mxfdemux later. Also add support for JP2 output in jp2kenc.
Diffstat (limited to 'ext/jp2k/gstjasperenc.h')
-rw-r--r--ext/jp2k/gstjasperenc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/jp2k/gstjasperenc.h b/ext/jp2k/gstjasperenc.h
index 93090cdd..7cfd2fff 100644
--- a/ext/jp2k/gstjasperenc.h
+++ b/ext/jp2k/gstjasperenc.h
@@ -42,6 +42,12 @@ G_BEGIN_DECLS
typedef struct _GstJasperEnc GstJasperEnc;
typedef struct _GstJasperEncClass GstJasperEncClass;
+enum {
+ GST_JP2ENC_MODE_J2C = 0,
+ GST_JP2ENC_MODE_JPC,
+ GST_JP2ENC_MODE_JP2
+};
+
#define GST_JASPER_ENC_MAX_COMPONENT 4
struct _GstJasperEnc
@@ -55,6 +61,7 @@ struct _GstJasperEnc
/* jasper image fmt */
gint fmt;
+ gint mode;
jas_clrspc_t clrspc;
/* stream/image properties */