annotate dvd_types.h @ 391:d232a96ac231 src

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