[libbluray-devel] commit: add defines for BD stream types, formats, rates, and char codes ( john )

git at videolan.org git at videolan.org
Sat Sep 4 00:28:59 CEST 2010


libbluray | branch: master | john <john at anonymous.org> | Fri Sep  3 15:11:24 2010 -0700| [6744a43a2ef84206ae0f7d5bdbd973c1d7686ea6] | committer: john 

add defines for BD stream types, formats, rates, and char codes

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6744a43a2ef84206ae0f7d5bdbd973c1d7686ea6
---

 src/libbluray/bluray.h |   57 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 27a15ef..d84b5f9 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -39,6 +39,63 @@
 
 typedef struct bluray BLURAY;
 
+#define BLURAY_STREAM_TYPE_VIDEO_MPEG1          0x01
+#define BLURAY_STREAM_TYPE_VIDEO_MPEG2          0x02
+#define BLURAY_STREAM_TYPE_AUDIO_MPEG1          0x03
+#define BLURAY_STREAM_TYPE_AUDIO_MPEG2          0x04
+#define BLURAY_STREAM_TYPE_AUDIO_LPCM           0x80
+#define BLURAY_STREAM_TYPE_AUDIO_AC3            0x81
+#define BLURAY_STREAM_TYPE_AUDIO_DTS            0x82
+#define BLURAY_STREAM_TYPE_AUDIO_TRUHD          0x83
+#define BLURAY_STREAM_TYPE_AUDIO_AC3PLUS        0x84
+#define BLURAY_STREAM_TYPE_AUDIO_DTSHD          0x85
+#define BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER   0x86
+#define BLURAY_STREAM_TYPE_VIDEO_VC1            0xea
+#define BLURAY_STREAM_TYPE_VIDEO_H264           0x1b
+#define BLURAY_STREAM_TYPE_SUB_PG               0x90
+#define BLURAY_STREAM_TYPE_SUB_IG               0x91
+#define BLURAY_STREAM_TYPE_SUB_TEXT             0x92
+
+#define BLURAY_VIDEO_FORMAT_480I                1   // ITU-R BT.601-5
+#define BLURAY_VIDEO_FORMAT_576I                2   // ITU-R BT.601-4
+#define BLURAY_VIDEO_FORMAT_480P                3   // SMPTE 293M
+#define BLURAY_VIDEO_FORMAT_1080I               4   // SMPTE 274M
+#define BLURAY_VIDEO_FORMAT_720P                5   // SMPTE 296M
+#define BLURAY_VIDEO_FORMAT_1080P               6   // SMPTE 274M
+#define BLURAY_VIDEO_FORMAT_576P                7   // ITU-R BT.1358
+
+#define BLURAY_VIDEO_RATE_24000_1001            1   // 23.976
+#define BLURAY_VIDEO_RATE_24                    2
+#define BLURAY_VIDEO_RATE_25                    3
+#define BLURAY_VIDEO_RATE_30000_1001            4   // 29.97
+#define BLURAY_VIDEO_RATE_50                    6
+#define BLURAY_VIDEO_RATE_60000_1001            7   // 59.94
+
+#define BLURAY_ASPECT_RATIO_4_3                 2
+#define BLURAY_ASPECT_RATIO_16_9                3
+
+#define BLURAY_AUDIO_FORMAT_MONO                1
+#define BLURAY_AUDIO_FORMAT_STEREO              3
+#define BLURAY_AUDIO_FORMAT_MULTI_CHAN          6
+#define BLURAY_AUDIO_FORMAT_COMBO               12  // Stereo ac3/dts, 
+                                                // multi mlp/dts-hd
+
+#define BLURAY_AUDIO_RATE_48                    1
+#define BLURAY_AUDIO_RATE_96                    4
+#define BLURAY_AUDIO_RATE_192                   5
+#define BLURAY_AUDIO_RATE_192_COMBO             12  // 48 or 96 ac3/dts
+                                                // 192 mpl/dts-hd
+#define BLURAY_AUDIO_RATE_96_COMBO              14  // 48 ac3/dts
+                                                // 96 mpl/dts-hd
+
+#define BLURAY_TEXT_CHAR_CODE_UTF8              0x01
+#define BLURAY_TEXT_CHAR_CODE_UTF16BE           0x02
+#define BLURAY_TEXT_CHAR_CODE_SHIFT_JIS         0x03
+#define BLURAY_TEXT_CHAR_CODE_EUC_KR            0x04
+#define BLURAY_TEXT_CHAR_CODE_GB18030_20001     0x05
+#define BLURAY_TEXT_CHAR_CODE_CN_GB             0x06
+#define BLURAY_TEXT_CHAR_CODE_BIG5              0x07
+
 typedef struct bd_stream_info {
     uint8_t     coding_type;
     uint8_t     format;



More information about the libbluray-devel mailing list