annotate dvdnav/dvd_types.h @ 395:9c5aef10d165 src

Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory. This allows getting rid of the DVDNAV_COMPILE define hack and makes it easier to use the library without installing or integrating the source into some other project directly.
author reimar
date Tue, 30 Dec 2008 14:48:46 +0000
parents dvd_types.h@0a5a6f03b029
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
1 /*
390
ef8c0e834a14 Convert all ISO8859-1 sequences to proper UTF-8.
diego
parents: 389
diff changeset
2 * Copyright (C) 2000, 2001 Björn Englund, Håkan Hjort
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
3 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
4 * This file is part of libdvdnav, a DVD navigation library. It is a modified
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
5 * file originally part of the Ogle DVD player project.
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
6 *
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
7 * libdvdnav is free software; you can redistribute it and/or modify
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
10 * (at your option) any later version.
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
11 *
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
12 * libdvdnav is distributed in the hope that it will be useful,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
15 * GNU General Public License for more details.
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
16 *
389
d3c273ced49c Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents: 388
diff changeset
17 * You should have received a copy of the GNU General Public License along
d3c273ced49c Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents: 388
diff changeset
18 * with libdvdnav; if not, write to the Free Software Foundation, Inc.,
d3c273ced49c Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents: 388
diff changeset
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
20 */
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
21
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
22 /*
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
23 * Various useful structs and enums for DVDs.
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
24 */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
25
391
d232a96ac231 Use consistent multiple inclusion guards everywhere:
diego
parents: 390
diff changeset
26 #ifndef LIBDVDNAV_DVD_TYPES_H
d232a96ac231 Use consistent multiple inclusion guards everywhere:
diego
parents: 390
diff changeset
27 #define LIBDVDNAV_DVD_TYPES_H
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
28
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
29 /*
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
30 * DVD Menu ID
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
31 * (see dvdnav_menu_call())
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
32 */
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
33 typedef enum {
166
3bfaec0c1288 * fix warnings with gcc 3.3
mroi
parents: 165
diff changeset
34 /* When used in VTS domain, DVD_MENU_Escape behaves like DVD_MENU_Root,
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
35 * but from within a menu domain, DVD_MENU_Escape resumes playback. */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
36 DVD_MENU_Escape = 0,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
37 DVD_MENU_Title = 2,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
38 DVD_MENU_Root = 3,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
39 DVD_MENU_Subpicture = 4,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
40 DVD_MENU_Audio = 5,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
41 DVD_MENU_Angle = 6,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
42 DVD_MENU_Part = 7
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
43 } DVDMenuID_t;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
44
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
45
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
46 /*
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
47 * Structure containing info on highlight areas
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
48 * (see dvdnav_get_highlight_area())
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
49 */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
50 typedef struct {
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
51 uint32_t palette; /* The CLUT entries for the highlight palette
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
52 (4-bits per entry -> 4 entries) */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
53 uint16_t sx,sy,ex,ey; /* The start/end x,y positions */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
54 uint32_t pts; /* Highlight PTS to match with SPU */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
55
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
56 /* button number for the SPU decoder/overlaying engine */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
57 uint32_t buttonN;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
58 } dvdnav_highlight_area_t;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
59
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
60
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
61 /* the following types are currently unused */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
62
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
63 #if 0
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
64
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
65 /* Domain */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
66 typedef enum {
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
67 DVD_DOMAIN_FirstPlay, /* First Play Domain */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
68 DVD_DOMAIN_VMG, /* Video Manager Domain */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
69 DVD_DOMAIN_VTSMenu, /* Video Title Set Menu Domain */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
70 DVD_DOMAIN_VTSTitle, /* Video Title Set Domain */
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
71 DVD_DOMAIN_Stop /* Stop Domain */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
72 } DVDDomain_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
73
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
74 /* User operation permissions */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
75 typedef enum {
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
76 UOP_FLAG_TitleOrTimePlay = 0x00000001,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
77 UOP_FLAG_ChapterSearchOrPlay = 0x00000002,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
78 UOP_FLAG_TitlePlay = 0x00000004,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
79 UOP_FLAG_Stop = 0x00000008,
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
80 UOP_FLAG_GoUp = 0x00000010,
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
81 UOP_FLAG_TimeOrChapterSearch = 0x00000020,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
82 UOP_FLAG_PrevOrTopPGSearch = 0x00000040,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
83 UOP_FLAG_NextPGSearch = 0x00000080,
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
84 UOP_FLAG_ForwardScan = 0x00000100,
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
85 UOP_FLAG_BackwardScan = 0x00000200,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
86 UOP_FLAG_TitleMenuCall = 0x00000400,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
87 UOP_FLAG_RootMenuCall = 0x00000800,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
88 UOP_FLAG_SubPicMenuCall = 0x00001000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
89 UOP_FLAG_AudioMenuCall = 0x00002000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
90 UOP_FLAG_AngleMenuCall = 0x00004000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
91 UOP_FLAG_ChapterMenuCall = 0x00008000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
92 UOP_FLAG_Resume = 0x00010000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
93 UOP_FLAG_ButtonSelectOrActivate = 0x00020000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
94 UOP_FLAG_StillOff = 0x00040000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
95 UOP_FLAG_PauseOn = 0x00080000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
96 UOP_FLAG_AudioStreamChange = 0x00100000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
97 UOP_FLAG_SubPicStreamChange = 0x00200000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
98 UOP_FLAG_AngleChange = 0x00400000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
99 UOP_FLAG_KaraokeAudioPresModeChange = 0x00800000,
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
100 UOP_FLAG_VideoPresModeChange = 0x01000000
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
101 } DVDUOP_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
102
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
103 /* Parental Level */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
104 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
105 DVD_PARENTAL_LEVEL_1 = 1,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
106 DVD_PARENTAL_LEVEL_2 = 2,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
107 DVD_PARENTAL_LEVEL_3 = 3,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
108 DVD_PARENTAL_LEVEL_4 = 4,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
109 DVD_PARENTAL_LEVEL_5 = 5,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
110 DVD_PARENTAL_LEVEL_6 = 6,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
111 DVD_PARENTAL_LEVEL_7 = 7,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
112 DVD_PARENTAL_LEVEL_8 = 8,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
113 DVD_PARENTAL_LEVEL_None = 15
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
114 } DVDParentalLevel_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
115
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
116 /* Language ID (ISO-639 language code) */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
117 typedef uint16_t DVDLangID_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
118
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
119 /* Country ID (ISO-3166 country code) */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
120 typedef uint16_t DVDCountryID_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
121
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
122 /* Register */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
123 typedef uint16_t DVDRegister_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
124 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
125 DVDFalse = 0,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
126 DVDTrue = 1
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
127 } DVDBool_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
128 typedef DVDRegister_t DVDGPRMArray_t[16];
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
129 typedef DVDRegister_t DVDSPRMArray_t[24];
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
130
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
131 /* Navigation */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
132 typedef int DVDStream_t;
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
133 typedef int DVDPTT_t;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
134 typedef int DVDTitle_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
135
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
136 /* Angle number (1-9 or default?) */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
137 typedef int DVDAngle_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
138
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
139 /* Timecode */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
140 typedef struct {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
141 uint8_t Hours;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
142 uint8_t Minutes;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
143 uint8_t Seconds;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
144 uint8_t Frames;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
145 } DVDTimecode_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
146
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
147 /* Subpicture stream number (0-31,62,63) */
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
148 typedef int DVDSubpictureStream_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
149
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
150 /* Audio stream number (0-7, 15(none)) */
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
151 typedef int DVDAudioStream_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
152
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
153 /* The audio application mode */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
154 typedef enum {
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
155 DVD_AUDIO_APP_MODE_None = 0,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
156 DVD_AUDIO_APP_MODE_Karaoke = 1,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
157 DVD_AUDIO_APP_MODE_Surround = 2,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
158 DVD_AUDIO_APP_MODE_Other = 3
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
159 } DVDAudioAppMode_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
160
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
161 /* The audio format */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
162 typedef enum {
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
163 DVD_AUDIO_FORMAT_AC3 = 0,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
164 DVD_AUDIO_FORMAT_MPEG1 = 1,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
165 DVD_AUDIO_FORMAT_MPEG1_DRC = 2,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
166 DVD_AUDIO_FORMAT_MPEG2 = 3,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
167 DVD_AUDIO_FORMAT_MPEG2_DRC = 4,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
168 DVD_AUDIO_FORMAT_LPCM = 5,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
169 DVD_AUDIO_FORMAT_DTS = 6,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
170 DVD_AUDIO_FORMAT_SDDS = 7,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
171 DVD_AUDIO_FORMAT_Other = 8
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
172 } DVDAudioFormat_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
173
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
174 /* Audio language extension */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
175 typedef enum {
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
176 DVD_AUDIO_LANG_EXT_NotSpecified = 0,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
177 DVD_AUDIO_LANG_EXT_NormalCaptions = 1,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
178 DVD_AUDIO_LANG_EXT_VisuallyImpaired = 2,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
179 DVD_AUDIO_LANG_EXT_DirectorsComments1 = 3,
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
180 DVD_AUDIO_LANG_EXT_DirectorsComments2 = 4
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
181 } DVDAudioLangExt_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
182
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
183 /* Subpicture language extension */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
184 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
185 DVD_SUBPICTURE_LANG_EXT_NotSpecified = 0,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
186 DVD_SUBPICTURE_LANG_EXT_NormalCaptions = 1,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
187 DVD_SUBPICTURE_LANG_EXT_BigCaptions = 2,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
188 DVD_SUBPICTURE_LANG_EXT_ChildrensCaptions = 3,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
189 DVD_SUBPICTURE_LANG_EXT_NormalCC = 5,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
190 DVD_SUBPICTURE_LANG_EXT_BigCC = 6,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
191 DVD_SUBPICTURE_LANG_EXT_ChildrensCC = 7,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
192 DVD_SUBPICTURE_LANG_EXT_Forced = 9,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
193 DVD_SUBPICTURE_LANG_EXT_NormalDirectorsComments = 13,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
194 DVD_SUBPICTURE_LANG_EXT_BigDirectorsComments = 14,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
195 DVD_SUBPICTURE_LANG_EXT_ChildrensDirectorsComments = 15,
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
196 } DVDSubpictureLangExt_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
197
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
198 /* Karaoke Downmix mode */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
199 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
200 DVD_KARAOKE_DOWNMIX_0to0 = 0x0001,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
201 DVD_KARAOKE_DOWNMIX_1to0 = 0x0002,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
202 DVD_KARAOKE_DOWNMIX_2to0 = 0x0004,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
203 DVD_KARAOKE_DOWNMIX_3to0 = 0x0008,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
204 DVD_KARAOKE_DOWNMIX_4to0 = 0x0010,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
205 DVD_KARAOKE_DOWNMIX_Lto0 = 0x0020,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
206 DVD_KARAOKE_DOWNMIX_Rto0 = 0x0040,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
207 DVD_KARAOKE_DOWNMIX_0to1 = 0x0100,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
208 DVD_KARAOKE_DOWNMIX_1to1 = 0x0200,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
209 DVD_KARAOKE_DOWNMIX_2to1 = 0x0400,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
210 DVD_KARAOKE_DOWNMIX_3to1 = 0x0800,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
211 DVD_KARAOKE_DOWNMIX_4to1 = 0x1000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
212 DVD_KARAOKE_DOWNMIX_Lto1 = 0x2000,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
213 DVD_KARAOKE_DOWNMIX_Rto1 = 0x4000
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
214 } DVDKaraokeDownmix_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
215 typedef int DVDKaraokeDownmixMask_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
216
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
217 /* Display mode */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
218 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
219 DVD_DISPLAY_MODE_ContentDefault = 0,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
220 DVD_DISPLAY_MODE_16x9 = 1,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
221 DVD_DISPLAY_MODE_4x3PanScan = 2,
388
90ca650854e0 Remove all trailing whitespace,
rathann
parents: 286
diff changeset
222 DVD_DISPLAY_MODE_4x3Letterboxed = 3
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
223 } DVDDisplayMode_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
224
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
225 /* Audio attributes */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
226 typedef struct {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
227 DVDAudioAppMode_t AppMode;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
228 DVDAudioFormat_t AudioFormat;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
229 DVDLangID_t Language;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
230 DVDAudioLangExt_t LanguageExtension;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
231 DVDBool_t HasMultichannelInfo;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
232 DVDAudioSampleFreq_t SampleFrequency;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
233 DVDAudioSampleQuant_t SampleQuantization;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
234 DVDChannelNumber_t NumberOfChannels;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
235 } DVDAudioAttributes_t;
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
236 typedef int DVDAudioSampleFreq_t;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
237 typedef int DVDAudioSampleQuant_t;
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
238 typedef int DVDChannelNumber_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
239
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
240 /* Subpicture attributes */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
241 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
242 DVD_SUBPICTURE_TYPE_NotSpecified = 0,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
243 DVD_SUBPICTURE_TYPE_Language = 1,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
244 DVD_SUBPICTURE_TYPE_Other = 2
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
245 } DVDSubpictureType_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
246 typedef enum {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
247 DVD_SUBPICTURE_CODING_RunLength = 0,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
248 DVD_SUBPICTURE_CODING_Extended = 1,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
249 DVD_SUBPICTURE_CODING_Other = 2
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
250 } DVDSubpictureCoding_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
251 typedef struct {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
252 DVDSubpictureType_t Type;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
253 DVDSubpictureCoding_t CodingMode;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
254 DVDLangID_t Language;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
255 DVDSubpictureLangExt_t LanguageExtension;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
256 } DVDSubpictureAttributes_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
257
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
258 /* Video attributes */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
259 typedef struct {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
260 DVDBool_t PanscanPermitted;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
261 DVDBool_t LetterboxPermitted;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
262 int AspectX;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
263 int AspectY;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
264 int FrameRate;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
265 int FrameHeight;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
266 DVDVideoCompression_t Compression;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
267 DVDBool_t Line21Field1InGop;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
268 DVDBool_t Line21Field2InGop;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
269 int more_to_come;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
270 } DVDVideoAttributes_t;
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
271 typedef int DVDVideoCompression_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
272
165
4e5ebc1491d5 comments reviewed
mroi
parents: 162
diff changeset
273 #endif
22
3c1df0cb3aee Start of rewrite of libdvdnav. Still need to re-implement seeking.
jcdutton
parents: 0
diff changeset
274
391
d232a96ac231 Use consistent multiple inclusion guards everywhere:
diego
parents: 390
diff changeset
275 #endif /* LIBDVDNAV_DVD_TYPES_H */