Commit c58b82a2 authored by Stephen Backway's avatar Stephen Backway Committed by Carl Eugen Hoyos

Add Bluray Subtitle Support

Patch by Stephen Backway, stev391 A exemail D com D au

Originally committed as revision 19699 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 49056037
...@@ -34,6 +34,7 @@ version <next>: ...@@ -34,6 +34,7 @@ version <next>:
- Wave64 demuxer - Wave64 demuxer
- IEC-61937 compatible Muxer - IEC-61937 compatible Muxer
- TwinVQ decoder - TwinVQ decoder
- Bluray (PGS) subtitle decoder
......
...@@ -636,6 +636,7 @@ performance on systems without hardware floating point support). ...@@ -636,6 +636,7 @@ performance on systems without hardware floating point support).
@item SSA/ASS @tab X @tab X @item SSA/ASS @tab X @tab X
@item DVB @tab X @tab X @tab X @tab X @item DVB @tab X @tab X @tab X @tab X
@item DVD @tab X @tab X @tab X @tab X @item DVD @tab X @tab X @tab X @tab X
@item PGS @tab @tab @tab @tab X
@item XSUB @tab @tab @tab X @tab X @item XSUB @tab @tab @tab X @tab X
@end multitable @end multitable
......
...@@ -169,6 +169,7 @@ OBJS-$(CONFIG_PGM_DECODER) += pnmenc.o pnm.o ...@@ -169,6 +169,7 @@ OBJS-$(CONFIG_PGM_DECODER) += pnmenc.o pnm.o
OBJS-$(CONFIG_PGM_ENCODER) += pnmenc.o OBJS-$(CONFIG_PGM_ENCODER) += pnmenc.o
OBJS-$(CONFIG_PGMYUV_DECODER) += pnmenc.o pnm.o OBJS-$(CONFIG_PGMYUV_DECODER) += pnmenc.o pnm.o
OBJS-$(CONFIG_PGMYUV_ENCODER) += pnmenc.o OBJS-$(CONFIG_PGMYUV_ENCODER) += pnmenc.o
OBJS-$(CONFIG_PGSSUB_DECODER) += pgssubdec.o
OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o
OBJS-$(CONFIG_PNG_ENCODER) += png.o pngenc.o OBJS-$(CONFIG_PNG_ENCODER) += png.o pngenc.o
OBJS-$(CONFIG_PPM_DECODER) += pnmenc.o pnm.o OBJS-$(CONFIG_PPM_DECODER) += pnmenc.o pnm.o
......
...@@ -301,6 +301,7 @@ void avcodec_register_all(void) ...@@ -301,6 +301,7 @@ void avcodec_register_all(void)
/* subtitles */ /* subtitles */
REGISTER_ENCDEC (DVBSUB, dvbsub); REGISTER_ENCDEC (DVBSUB, dvbsub);
REGISTER_ENCDEC (DVDSUB, dvdsub); REGISTER_ENCDEC (DVDSUB, dvdsub);
REGISTER_DECODER (PGSSUB, pgssub);
REGISTER_ENCDEC (XSUB, xsub); REGISTER_ENCDEC (XSUB, xsub);
/* external libraries */ /* external libraries */
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 52 #define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR 32 #define LIBAVCODEC_VERSION_MINOR 33
#define LIBAVCODEC_VERSION_MICRO 0 #define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...@@ -327,6 +327,7 @@ enum CodecID { ...@@ -327,6 +327,7 @@ enum CodecID {
CODEC_ID_XSUB, CODEC_ID_XSUB,
CODEC_ID_SSA, CODEC_ID_SSA,
CODEC_ID_MOV_TEXT, CODEC_ID_MOV_TEXT,
CODEC_ID_HDMV_PGS_SUBTITLE,
/* other specific kind of codecs (generally used for attachments) */ /* other specific kind of codecs (generally used for attachments) */
CODEC_ID_TTF= 0x18000, CODEC_ID_TTF= 0x18000,
......
This diff is collapsed.
...@@ -507,6 +507,7 @@ static const StreamType ISO_types[] = { ...@@ -507,6 +507,7 @@ static const StreamType ISO_types[] = {
static const StreamType HDMV_types[] = { static const StreamType HDMV_types[] = {
{ 0x81, CODEC_TYPE_AUDIO, CODEC_ID_AC3 }, { 0x81, CODEC_TYPE_AUDIO, CODEC_ID_AC3 },
{ 0x82, CODEC_TYPE_AUDIO, CODEC_ID_DTS }, { 0x82, CODEC_TYPE_AUDIO, CODEC_ID_DTS },
{ 0x90, CODEC_TYPE_SUBTITLE, CODEC_ID_HDMV_PGS_SUBTITLE },
{ 0 }, { 0 },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment