[vlc-devel] [PATCH] JPEG 2000 decoding support.
Jai Menon
jmenon86 at gmail.com
Fri Jun 25 10:29:19 CEST 2010
Adds a JPEG 2000 fourcc and hooks it up to the libavcodec decoder.
Also add an alias to 'mjp2' which is used to pack JPEG 2000 in MOV
by Final Cut Pro etc.
---
include/vlc_fourcc.h | 1 +
modules/codec/avcodec/fourcc.c | 1 +
src/misc/fourcc.c | 3 +++
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index e28c42b..b1f349e 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -114,6 +114,7 @@
#define VLC_CODEC_AMV VLC_FOURCC('A','M','V',' ')
#define VLC_CODEC_INDEO5 VLC_FOURCC('I','V','5','0')
#define VLC_CODEC_VP8 VLC_FOURCC('V','P','8','0')
+#define VLC_CODEC_JPEG2000 VLC_FOURCC('J','P','2','K')
/* Planar YUV 4:1:0 Y:V:U */
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 3dce028..e47828f 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -261,6 +261,7 @@ static const struct
{ VLC_CODEC_GIF, CODEC_ID_GIF, VIDEO_ES },
{ VLC_CODEC_TARGA, CODEC_ID_TARGA, VIDEO_ES },
{ VLC_CODEC_SGI, CODEC_ID_SGI, VIDEO_ES },
+ { VLC_CODEC_JPEG2000, CODEC_ID_JPEG2000, VIDEO_ES },
/*
* Audio Codecs
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 80b8db3..4739ae2 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -786,6 +786,9 @@ static const entry_t p_list_video[] = {
B(VLC_CODEC_PCX, "Personal Computer Exchange Image"),
A("pcx "),
+ B(VLC_CODEC_JPEG2000, "JPEG 2000 Image"),
+ A("mjp2"),
+
B(0, "")
};
static const entry_t p_list_audio[] = {
--
1.7.1
More information about the vlc-devel
mailing list