0
|
1 /*
|
|
2 * Copyright (C) 2000, 2001 Björn Englund, Håkan Hjort
|
|
3 *
|
|
4 * This file is part of libdvdnav, a DVD navigation library. It is a modified
|
|
5 * file originally part of the Ogle DVD player project.
|
|
6 *
|
|
7 * libdvdnav is free software; you can redistribute it and/or modify
|
|
8 * it under the terms of the GNU General Public License as published by
|
|
9 * the Free Software Foundation; either version 2 of the License, or
|
|
10 * (at your option) any later version.
|
|
11 *
|
|
12 * libdvdnav is distributed in the hope that it will be useful,
|
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 * GNU General Public License for more details.
|
|
16 *
|
|
17 * You should have received a copy of the GNU General Public License
|
|
18 * along with this program; if not, write to the Free Software
|
|
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
20 *
|
|
21 * $Id$
|
|
22 *
|
|
23 */
|
|
24
|
|
25 #ifndef DVD_H_INCLUDED
|
|
26 #define DVD_H_INCLUDED
|
|
27
|
|
28 #include <inttypes.h>
|
|
29
|
|
30 /**
|
|
31 * DVD Domain
|
|
32 */
|
|
33 typedef enum {
|
|
34 DVD_DOMAIN_FirstPlay, /**< First Play Domain */
|
|
35 DVD_DOMAIN_VMG, /**< Video Manager Domain */
|
|
36 DVD_DOMAIN_VTSMenu, /**< Video Title Set Menu Domain */
|
|
37 DVD_DOMAIN_VTSTitle, /**< Video Title Set Domain */
|
|
38 DVD_DOMAIN_Stop /**< Stop Domain */
|
|
39 } DVDDomain_t;
|
|
40
|
|
41 /**
|
|
42 * DVD Menu
|
|
43 */
|
|
44 typedef enum {
|
|
45 DVD_MENU_Title = 2, /**< TBD */
|
|
46 DVD_MENU_Root = 3, /**< TBD */
|
|
47 DVD_MENU_Subpicture = 4, /**< TBD */
|
|
48 DVD_MENU_Audio = 5, /**< TBD */
|
|
49 DVD_MENU_Angle = 6, /**< TBD */
|
|
50 DVD_MENU_Part = 7 /**< TBD */
|
|
51 } DVDMenuID_t;
|
|
52
|
|
53 /**
|
|
54 * User operations
|
|
55 */
|
|
56 typedef enum {
|
|
57 UOP_FLAG_TitleOrTimePlay = 0x00000001,
|
|
58 UOP_FLAG_ChapterSearchOrPlay = 0x00000002,
|
|
59 UOP_FLAG_TitlePlay = 0x00000004,
|
|
60 UOP_FLAG_Stop = 0x00000008,
|
|
61 UOP_FLAG_GoUp = 0x00000010,
|
|
62 UOP_FLAG_TimeOrChapterSearch = 0x00000020,
|
|
63 UOP_FLAG_PrevOrTopPGSearch = 0x00000040,
|
|
64 UOP_FLAG_NextPGSearch = 0x00000080,
|
|
65 UOP_FLAG_ForwardScan = 0x00000100,
|
|
66 UOP_FLAG_BackwardScan = 0x00000200,
|
|
67 UOP_FLAG_TitleMenuCall = 0x00000400,
|
|
68 UOP_FLAG_RootMenuCall = 0x00000800,
|
|
69 UOP_FLAG_SubPicMenuCall = 0x00001000,
|
|
70 UOP_FLAG_AudioMenuCall = 0x00002000,
|
|
71 UOP_FLAG_AngleMenuCall = 0x00004000,
|
|
72 UOP_FLAG_ChapterMenuCall = 0x00008000,
|
|
73 UOP_FLAG_Resume = 0x00010000,
|
|
74 UOP_FLAG_ButtonSelectOrActivate = 0x00020000,
|
|
75 UOP_FLAG_StillOff = 0x00040000,
|
|
76 UOP_FLAG_PauseOn = 0x00080000,
|
|
77 UOP_FLAG_AudioStreamChange = 0x00100000,
|
|
78 UOP_FLAG_SubPicStreamChange = 0x00200000,
|
|
79 UOP_FLAG_AngleChange = 0x00400000,
|
|
80 UOP_FLAG_KaraokeAudioPresModeChange = 0x00800000,
|
|
81 UOP_FLAG_VideoPresModeChange = 0x01000000
|
|
82 } DVDUOP_t;
|
|
83
|
|
84
|
|
85 /**
|
|
86 * Parental Level
|
|
87 */
|
|
88 typedef enum {
|
|
89 DVD_PARENTAL_LEVEL_1 = 1,
|
|
90 DVD_PARENTAL_LEVEL_2 = 2,
|
|
91 DVD_PARENTAL_LEVEL_3 = 3,
|
|
92 DVD_PARENTAL_LEVEL_4 = 4,
|
|
93 DVD_PARENTAL_LEVEL_5 = 5,
|
|
94 DVD_PARENTAL_LEVEL_6 = 6,
|
|
95 DVD_PARENTAL_LEVEL_7 = 7,
|
|
96 DVD_PARENTAL_LEVEL_8 = 8,
|
|
97 DVD_PARENTAL_LEVEL_None = 15
|
|
98 } DVDParentalLevel_t;
|
|
99
|
|
100 /**
|
|
101 * Language ID (ISO-639 language code)
|
|
102 */
|
|
103 typedef uint16_t DVDLangID_t;
|
|
104
|
|
105 /**
|
|
106 * Country ID (ISO-3166 country code)
|
|
107 */
|
|
108 typedef uint16_t DVDCountryID_t;
|
|
109
|
|
110 /**
|
|
111 * Register
|
|
112 */
|
|
113 typedef uint16_t DVDRegister_t;
|
|
114
|
|
115 typedef enum {
|
|
116 DVDFalse = 0,
|
|
117 DVDTrue = 1
|
|
118 } DVDBool_t;
|
|
119
|
|
120 typedef DVDRegister_t DVDGPRMArray_t[16];
|
|
121 typedef DVDRegister_t DVDSPRMArray_t[24];
|
|
122
|
|
123 typedef int DVDStream_t;
|
|
124
|
|
125 /**
|
|
126 * Angle number (1-9 or default?)
|
|
127 */
|
|
128 typedef int DVDAngle_t;
|
|
129
|
|
130 typedef int DVDPTT_t;
|
|
131 typedef int DVDTitle_t;
|
|
132 typedef struct {
|
|
133 uint8_t Hours;
|
|
134 uint8_t Minutes;
|
|
135 uint8_t Seconds;
|
|
136 uint8_t Frames;
|
|
137 } DVDTimecode_t;
|
|
138
|
|
139 /**
|
|
140 * Subpicture stream number (0-31,62,63)
|
|
141 */
|
|
142 typedef int DVDSubpictureStream_t;
|
|
143
|
|
144 /**
|
|
145 * Audio stream number (0-7, 15(none))
|
|
146 */
|
|
147 typedef int DVDAudioStream_t;
|
|
148
|
|
149
|
|
150 /**
|
|
151 * The audio application mode
|
|
152 */
|
|
153 typedef enum {
|
|
154 DVD_AUDIO_APP_MODE_None = 0, /**< app mode none */
|
|
155 DVD_AUDIO_APP_MODE_Karaoke = 1, /**< app mode karaoke */
|
|
156 DVD_AUDIO_APP_MODE_Surround = 2, /**< app mode surround */
|
|
157 DVD_AUDIO_APP_MODE_Other = 3 /**< app mode other */
|
|
158 } DVDAudioAppMode_t;
|
|
159
|
|
160 /**
|
|
161 * The audio format
|
|
162 */
|
|
163 typedef enum {
|
|
164 DVD_AUDIO_FORMAT_AC3 = 0, /**< Dolby AC-3 */
|
|
165 DVD_AUDIO_FORMAT_MPEG1 = 1, /**< MPEG-1 */
|
|
166 DVD_AUDIO_FORMAT_MPEG1_DRC = 2, /**< MPEG-1 with dynamic range control */
|
|
167 DVD_AUDIO_FORMAT_MPEG2 = 3, /**< MPEG-2 */
|
|
168 DVD_AUDIO_FORMAT_MPEG2_DRC = 4, /**< MPEG-2 with dynamic range control */
|
|
169 DVD_AUDIO_FORMAT_LPCM = 5, /**< Linear Pulse Code Modulation */
|
|
170 DVD_AUDIO_FORMAT_DTS = 6, /**< Digital Theater Systems */
|
|
171 DVD_AUDIO_FORMAT_SDDS = 7, /**< Sony Dynamic Digital Sound */
|
|
172 DVD_AUDIO_FORMAT_Other = 8 /**< Other format*/
|
|
173 } DVDAudioFormat_t;
|
|
174
|
|
175 /**
|
|
176 * Audio language extension
|
|
177 */
|
|
178 typedef enum {
|
|
179 DVD_AUDIO_LANG_EXT_NotSpecified = 0, /**< TBD */
|
|
180 DVD_AUDIO_LANG_EXT_NormalCaptions = 1, /**< TBD */
|
|
181 DVD_AUDIO_LANG_EXT_VisuallyImpaired = 2, /**< TBD */
|
|
182 DVD_AUDIO_LANG_EXT_DirectorsComments1 = 3, /**< TBD */
|
|
183 DVD_AUDIO_LANG_EXT_DirectorsComments2 = 4 /**< TBD */
|
|
184 } DVDAudioLangExt_t;
|
|
185
|
|
186 /**
|
|
187 * Subpicture language extension
|
|
188 */
|
|
189 typedef enum {
|
|
190 DVD_SUBPICTURE_LANG_EXT_NotSpecified = 0,
|
|
191 DVD_SUBPICTURE_LANG_EXT_NormalCaptions = 1,
|
|
192 DVD_SUBPICTURE_LANG_EXT_BigCaptions = 2,
|
|
193 DVD_SUBPICTURE_LANG_EXT_ChildrensCaptions = 3,
|
|
194 DVD_SUBPICTURE_LANG_EXT_NormalCC = 5,
|
|
195 DVD_SUBPICTURE_LANG_EXT_BigCC = 6,
|
|
196 DVD_SUBPICTURE_LANG_EXT_ChildrensCC = 7,
|
|
197 DVD_SUBPICTURE_LANG_EXT_Forced = 9,
|
|
198 DVD_SUBPICTURE_LANG_EXT_NormalDirectorsComments = 13,
|
|
199 DVD_SUBPICTURE_LANG_EXT_BigDirectorsComments = 14,
|
|
200 DVD_SUBPICTURE_LANG_EXT_ChildrensDirectorsComments = 15,
|
|
201 } DVDSubpictureLangExt_t;
|
|
202
|
|
203 /**
|
|
204 * Karaoke Downmix mode
|
|
205 */
|
|
206 typedef enum {
|
|
207 DVD_KARAOKE_DOWNMIX_0to0 = 0x0001,
|
|
208 DVD_KARAOKE_DOWNMIX_1to0 = 0x0002,
|
|
209 DVD_KARAOKE_DOWNMIX_2to0 = 0x0004,
|
|
210 DVD_KARAOKE_DOWNMIX_3to0 = 0x0008,
|
|
211 DVD_KARAOKE_DOWNMIX_4to0 = 0x0010,
|
|
212 DVD_KARAOKE_DOWNMIX_Lto0 = 0x0020,
|
|
213 DVD_KARAOKE_DOWNMIX_Rto0 = 0x0040,
|
|
214 DVD_KARAOKE_DOWNMIX_0to1 = 0x0100,
|
|
215 DVD_KARAOKE_DOWNMIX_1to1 = 0x0200,
|
|
216 DVD_KARAOKE_DOWNMIX_2to1 = 0x0400,
|
|
217 DVD_KARAOKE_DOWNMIX_3to1 = 0x0800,
|
|
218 DVD_KARAOKE_DOWNMIX_4to1 = 0x1000,
|
|
219 DVD_KARAOKE_DOWNMIX_Lto1 = 0x2000,
|
|
220 DVD_KARAOKE_DOWNMIX_Rto1 = 0x4000
|
|
221 } DVDKaraokeDownmix_t;
|
|
222
|
|
223 typedef int DVDKaraokeDownmixMask_t;
|
|
224
|
|
225 typedef enum {
|
|
226 DVD_DISPLAY_MODE_ContentDefault = 0,
|
|
227 DVD_DISPLAY_MODE_16x9 = 1,
|
|
228 DVD_DISPLAY_MODE_4x3PanScan = 2,
|
|
229 DVD_DISPLAY_MODE_4x3Letterboxed = 3
|
|
230 } DVDDisplayMode_t;
|
|
231
|
|
232 typedef int DVDAudioSampleFreq_t; /**< TBD */
|
|
233 typedef int DVDAudioSampleQuant_t; /**< TBD */
|
|
234 typedef int DVDChannelNumber_t; /**< TBD */
|
|
235
|
|
236
|
|
237 typedef struct {
|
|
238 DVDAudioAppMode_t AppMode;
|
|
239 DVDAudioFormat_t AudioFormat;
|
|
240 DVDLangID_t Language;
|
|
241 DVDAudioLangExt_t LanguageExtension;
|
|
242 DVDBool_t HasMultichannelInfo;
|
|
243 DVDAudioSampleFreq_t SampleFrequency;
|
|
244 DVDAudioSampleQuant_t SampleQuantization;
|
|
245 DVDChannelNumber_t NumberOfChannels;
|
|
246 } DVDAudioAttributes_t;
|
|
247
|
|
248 typedef enum {
|
|
249 DVD_SUBPICTURE_TYPE_NotSpecified = 0,
|
|
250 DVD_SUBPICTURE_TYPE_Language = 1,
|
|
251 DVD_SUBPICTURE_TYPE_Other = 2
|
|
252 } DVDSubpictureType_t;
|
|
253
|
|
254 typedef enum {
|
|
255 DVD_SUBPICTURE_CODING_RunLength = 0,
|
|
256 DVD_SUBPICTURE_CODING_Extended = 1,
|
|
257 DVD_SUBPICTURE_CODING_Other = 2
|
|
258 } DVDSubpictureCoding_t;
|
|
259
|
|
260 typedef struct {
|
|
261 DVDSubpictureType_t Type;
|
|
262 DVDSubpictureCoding_t CodingMode;
|
|
263 DVDLangID_t Language;
|
|
264 DVDSubpictureLangExt_t LanguageExtension;
|
|
265 } DVDSubpictureAttributes_t;
|
|
266
|
|
267 typedef int DVDVideoCompression_t; /**< TBD */
|
|
268
|
|
269 typedef struct {
|
|
270 DVDBool_t PanscanPermitted;
|
|
271 DVDBool_t LetterboxPermitted;
|
|
272 int AspectX;
|
|
273 int AspectY;
|
|
274 int FrameRate;
|
|
275 int FrameHeight;
|
|
276 DVDVideoCompression_t Compression;
|
|
277 DVDBool_t Line21Field1InGop;
|
|
278 DVDBool_t Line21Field2InGop;
|
|
279 int more_to_come;
|
|
280 } DVDVideoAttributes_t;
|
|
281
|
|
282
|
|
283 #endif /* DVD_H_INCLUDED */
|