annotate libmpdvdkit2/ifo_types.h @ 16769:fbc6a8f05730

Extend the network test to also check the socket libs. patch by Derek E. Lewis < dlewis -- at -- solnetworks -- at -- net >
author diego
date Sat, 15 Oct 2005 10:46:24 +0000
parents e1d6fbd607e0
children 0783dd397f74
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1 #ifndef IFO_TYPES_H_INCLUDED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
2 #define IFO_TYPES_H_INCLUDED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
3
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
4 /*
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
5 * Copyright (C) 2000, 2001 Björn Englund <d4bjorn@dtek.chalmers.se>,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
6 * Håkan Hjort <d95hjort@dtek.chalmers.se>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
7 *
14938
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 7033
diff changeset
8 * Modified for use with MPlayer, changes contained in libdvdread_changes.diff.
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 7033
diff changeset
9 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 7033
diff changeset
10 * $Id$
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 7033
diff changeset
11 *
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
15 * (at your option) any later version.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
16 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
20 * GNU General Public License for more details.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
21 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
25 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
26
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
27 #include <inttypes.h>
7033
596919e4f601 apply mplayer-specific patches
arpi
parents: 7029
diff changeset
28 #include "dvd_reader.h"
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
29
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
30
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
31 #undef ATTRIBUTE_PACKED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
32 #undef PRAGMA_PACK_BEGIN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
33 #undef PRAGMA_PACK_END
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
34
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
35 #if defined(__GNUC__)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
36 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
37 #define ATTRIBUTE_PACKED __attribute__ ((packed))
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
38 #define PRAGMA_PACK 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
39 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
40 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
41
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
42 #if !defined(ATTRIBUTE_PACKED)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
43 #define ATTRIBUTE_PACKED
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
44 #define PRAGMA_PACK 1
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
45 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
46
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
47 #if PRAGMA_PACK
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
48 #pragma pack(1)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
49 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
50
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
51
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
52 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
53 * Common
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
54 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
55 * The following structures are used in both the VMGI and VTSI.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
56 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
57
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
58
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
59 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
60 * DVD Time Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
61 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
62 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
63 uint8_t hour;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
64 uint8_t minute;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
65 uint8_t second;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
66 uint8_t frame_u; /* The two high bits are the frame rate. */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
67 } ATTRIBUTE_PACKED dvd_time_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
68
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
69 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
70 * Type to store per-command data.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
71 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
72 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
73 uint8_t bytes[8];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
74 } ATTRIBUTE_PACKED vm_cmd_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
75 #define COMMAND_DATA_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
76
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
77
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
78 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
79 * Video Attributes.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
80 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
81 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
82 #ifdef WORDS_BIGENDIAN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
83 unsigned int mpeg_version : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
84 unsigned int video_format : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
85 unsigned int display_aspect_ratio : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
86 unsigned int permitted_df : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
87
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
88 unsigned int line21_cc_1 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
89 unsigned int line21_cc_2 : 1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
90 unsigned int unknown1 : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
91 unsigned int bit_rate : 1;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
92
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
93 unsigned int picture_size : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
94 unsigned int letterboxed : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
95 unsigned int film_mode : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
96 #else
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
97 unsigned int permitted_df : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
98 unsigned int display_aspect_ratio : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
99 unsigned int video_format : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
100 unsigned int mpeg_version : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
101
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
102 unsigned int film_mode : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
103 unsigned int letterboxed : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
104 unsigned int picture_size : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
105
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
106 unsigned int bit_rate : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
107 unsigned int unknown1 : 1;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
108 unsigned int line21_cc_2 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
109 unsigned int line21_cc_1 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
110 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
111 } ATTRIBUTE_PACKED video_attr_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
112
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
113 /**
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
114 * Audio Attributes.
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
115 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
116 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
117 #ifdef WORDS_BIGENDIAN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
118 unsigned int audio_format : 3;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
119 unsigned int multichannel_extension : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
120 unsigned int lang_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
121 unsigned int application_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
122
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
123 unsigned int quantization : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
124 unsigned int sample_frequency : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
125 unsigned int unknown1 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
126 unsigned int channels : 3;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
127 #else
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
128 unsigned int application_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
129 unsigned int lang_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
130 unsigned int multichannel_extension : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
131 unsigned int audio_format : 3;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
132
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
133 unsigned int channels : 3;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
134 unsigned int unknown1 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
135 unsigned int sample_frequency : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
136 unsigned int quantization : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
137 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
138 uint16_t lang_code;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
139 uint8_t lang_extension;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
140 uint8_t code_extension;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
141 uint8_t unknown3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
142 union {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
143 struct ATTRIBUTE_PACKED {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
144 #ifdef WORDS_BIGENDIAN
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
145 unsigned int unknown4 : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
146 unsigned int channel_assignment : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
147 unsigned int version : 2;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
148 unsigned int mc_intro : 1; /* probably 0: true, 1:false */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
149 unsigned int mode : 1; /* Karaoke mode 0: solo 1: duet */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
150 #else
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
151 unsigned int mode : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
152 unsigned int mc_intro : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
153 unsigned int version : 2;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
154 unsigned int channel_assignment : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
155 unsigned int unknown4 : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
156 #endif
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
157 } karaoke;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
158 struct ATTRIBUTE_PACKED {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
159 #ifdef WORDS_BIGENDIAN
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
160 unsigned int unknown5 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
161 unsigned int dolby_encoded : 1; /* suitable for surround decoding */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
162 unsigned int unknown6 : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
163 #else
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
164 unsigned int unknown6 : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
165 unsigned int dolby_encoded : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
166 unsigned int unknown5 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
167 #endif
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
168 } surround;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
169 } app_info;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
170 } ATTRIBUTE_PACKED audio_attr_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
171
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
172
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
173 /**
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
174 * MultiChannel Extension
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
175 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
176 typedef struct {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
177 #ifdef WORDS_BIGENDIAN
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
178 unsigned int zero1 : 7;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
179 unsigned int ach0_gme : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
180
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
181 unsigned int zero2 : 7;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
182 unsigned int ach1_gme : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
183
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
184 unsigned int zero3 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
185 unsigned int ach2_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
186 unsigned int ach2_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
187 unsigned int ach2_gm1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
188 unsigned int ach2_gm2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
189
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
190 unsigned int zero4 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
191 unsigned int ach3_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
192 unsigned int ach3_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
193 unsigned int ach3_gmAe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
194 unsigned int ach3_se2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
195
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
196 unsigned int zero5 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
197 unsigned int ach4_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
198 unsigned int ach4_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
199 unsigned int ach4_gmBe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
200 unsigned int ach4_seBe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
201 #else
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
202 unsigned int ach0_gme : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
203 unsigned int zero1 : 7;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
204
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
205 unsigned int ach1_gme : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
206 unsigned int zero2 : 7;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
207
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
208 unsigned int ach2_gm2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
209 unsigned int ach2_gm1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
210 unsigned int ach2_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
211 unsigned int ach2_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
212 unsigned int zero3 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
213
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
214 unsigned int ach3_se2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
215 unsigned int ach3_gmAe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
216 unsigned int ach3_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
217 unsigned int ach3_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
218 unsigned int zero4 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
219
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
220 unsigned int ach4_seBe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
221 unsigned int ach4_gmBe : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
222 unsigned int ach4_gv2e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
223 unsigned int ach4_gv1e : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
224 unsigned int zero5 : 4;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
225 #endif
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
226 uint8_t zero6[19];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
227 } ATTRIBUTE_PACKED multichannel_ext_t;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
228
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
229
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
230 /**
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
231 * Subpicture Attributes.
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
232 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
233 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
234 /*
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
235 * type: 0 not specified
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
236 * 1 language
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
237 * 2 other
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
238 * coding mode: 0 run length
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
239 * 1 extended
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
240 * 2 other
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
241 * language: indicates language if type == 1
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
242 * lang extension: if type == 1 contains the lang extension
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
243 */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
244 #ifdef WORDS_BIGENDIAN
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
245 unsigned int code_mode : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
246 unsigned int zero1 : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
247 unsigned int type : 2;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
248 #else
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
249 unsigned int type : 2;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
250 unsigned int zero1 : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
251 unsigned int code_mode : 3;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
252 #endif
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
253 uint8_t zero2;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
254 uint16_t lang_code;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
255 uint8_t lang_extension;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
256 uint8_t code_extension;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
257 } ATTRIBUTE_PACKED subp_attr_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
258
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
259
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
260
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
261 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
262 * PGC Command Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
263 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
264 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
265 uint16_t nr_of_pre;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
266 uint16_t nr_of_post;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
267 uint16_t nr_of_cell;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
268 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
269 vm_cmd_t *pre_cmds;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
270 vm_cmd_t *post_cmds;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
271 vm_cmd_t *cell_cmds;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
272 } ATTRIBUTE_PACKED pgc_command_tbl_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
273 #define PGC_COMMAND_TBL_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
274
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
275 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
276 * PGC Program Map
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
277 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
278 typedef uint8_t pgc_program_map_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
279
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
280 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
281 * Cell Playback Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
282 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
283 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
284 #ifdef WORDS_BIGENDIAN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
285 unsigned int block_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
286 unsigned int block_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
287 unsigned int seamless_play : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
288 unsigned int interleaved : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
289 unsigned int stc_discontinuity: 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
290 unsigned int seamless_angle : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
291
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
292 unsigned int playback_mode : 1; /**< When set, enter StillMode after each VOBU */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
293 unsigned int restricted : 1; /**< ?? drop out of fastforward? */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
294 unsigned int unknown2 : 6;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
295 #else
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
296 unsigned int seamless_angle : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
297 unsigned int stc_discontinuity: 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
298 unsigned int interleaved : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
299 unsigned int seamless_play : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
300 unsigned int block_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
301 unsigned int block_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
302
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
303 unsigned int unknown2 : 6;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
304 unsigned int restricted : 1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
305 unsigned int playback_mode : 1;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
306 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
307 uint8_t still_time;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
308 uint8_t cell_cmd_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
309 dvd_time_t playback_time;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
310 uint32_t first_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
311 uint32_t first_ilvu_end_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
312 uint32_t last_vobu_start_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
313 uint32_t last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
314 } ATTRIBUTE_PACKED cell_playback_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
315
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
316 #define BLOCK_TYPE_NONE 0x0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
317 #define BLOCK_TYPE_ANGLE_BLOCK 0x1
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
318
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
319 #define BLOCK_MODE_NOT_IN_BLOCK 0x0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
320 #define BLOCK_MODE_FIRST_CELL 0x1
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
321 #define BLOCK_MODE_IN_BLOCK 0x2
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
322 #define BLOCK_MODE_LAST_CELL 0x3
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
323
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
324 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
325 * Cell Position Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
326 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
327 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
328 uint16_t vob_id_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
329 uint8_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
330 uint8_t cell_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
331 } ATTRIBUTE_PACKED cell_position_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
332
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
333 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
334 * User Operations.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
335 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
336 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
337 #ifdef WORDS_BIGENDIAN
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
338 unsigned int zero : 7; /* 25-31 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
339 unsigned int video_pres_mode_change : 1; /* 24 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
340
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
341 unsigned int karaoke_audio_pres_mode_change : 1; /* 23 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
342 unsigned int angle_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
343 unsigned int subpic_stream_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
344 unsigned int audio_stream_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
345 unsigned int pause_on : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
346 unsigned int still_off : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
347 unsigned int button_select_or_activate : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
348 unsigned int resume : 1; /* 16 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
349
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
350 unsigned int chapter_menu_call : 1; /* 15 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
351 unsigned int angle_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
352 unsigned int audio_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
353 unsigned int subpic_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
354 unsigned int root_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
355 unsigned int title_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
356 unsigned int backward_scan : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
357 unsigned int forward_scan : 1; /* 8 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
358
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
359 unsigned int next_pg_search : 1; /* 7 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
360 unsigned int prev_or_top_pg_search : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
361 unsigned int time_or_chapter_search : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
362 unsigned int go_up : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
363 unsigned int stop : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
364 unsigned int title_play : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
365 unsigned int chapter_search_or_play : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
366 unsigned int title_or_time_play : 1; /* 0 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
367 #else
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
368 unsigned int video_pres_mode_change : 1; /* 24 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
369 unsigned int zero : 7; /* 25-31 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
370
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
371 unsigned int resume : 1; /* 16 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
372 unsigned int button_select_or_activate : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
373 unsigned int still_off : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
374 unsigned int pause_on : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
375 unsigned int audio_stream_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
376 unsigned int subpic_stream_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
377 unsigned int angle_change : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
378 unsigned int karaoke_audio_pres_mode_change : 1; /* 23 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
379
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
380 unsigned int forward_scan : 1; /* 8 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
381 unsigned int backward_scan : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
382 unsigned int title_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
383 unsigned int root_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
384 unsigned int subpic_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
385 unsigned int audio_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
386 unsigned int angle_menu_call : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
387 unsigned int chapter_menu_call : 1; /* 15 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
388
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
389 unsigned int title_or_time_play : 1; /* 0 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
390 unsigned int chapter_search_or_play : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
391 unsigned int title_play : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
392 unsigned int stop : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
393 unsigned int go_up : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
394 unsigned int time_or_chapter_search : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
395 unsigned int prev_or_top_pg_search : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
396 unsigned int next_pg_search : 1; /* 7 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
397 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
398 } ATTRIBUTE_PACKED user_ops_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
399
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
400 /**
16649
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
401 * Subpicture stream mapping for a subtitle
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
402 */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
403 typedef struct {
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
404 #ifdef WORDS_BIGENDIAN
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
405 unsigned int present : 1;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
406 unsigned int zero1 : 2;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
407 unsigned int s_4p3 : 5; /* stream for 4:3 on any display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
408
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
409 unsigned int zero2 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
410 unsigned int s_wide : 5; /* stream for 16:9 on widescreen display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
411
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
412 unsigned int zero3 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
413 unsigned int s_lbox : 5; /* stream for 16:9 on letterboxed 4:3 display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
414
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
415 unsigned int zero4 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
416 unsigned int s_panscan : 5; /* stream for 16:9 with pan&scan data on 4:3 display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
417 #else
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
418 unsigned int s_4p3 : 5; /* stream for 4:3 on any display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
419 unsigned int zero1 : 2;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
420 unsigned int present : 1;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
421
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
422 unsigned int s_wide : 5; /* stream for 16:9 on widescreen display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
423 unsigned int zero2 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
424
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
425 unsigned int s_lbox : 5; /* stream for 16:9 on letterboxed 4:3 display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
426 unsigned int zero3 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
427
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
428 unsigned int s_panscan : 5; /* stream for 16:9 with pan&scan data on 4:3 display */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
429 unsigned int zero4 : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
430 #endif
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
431 } ATTRIBUTE_PACKED subp_mapping_t;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
432
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
433 /**
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
434 * Audio stream mapping for a soundtrack
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
435 */
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
436 typedef struct {
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
437 #ifdef WORDS_BIGENDIAN
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
438 unsigned int present : 1;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
439 unsigned int zero1 : 4;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
440 unsigned int s_audio : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
441 #else
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
442 unsigned int s_audio : 3;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
443 unsigned int zero1 : 4;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
444 unsigned int present : 1;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
445 #endif
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
446 uint8_t zero2;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
447 } ATTRIBUTE_PACKED audio_mapping_t;
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
448
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
449 /**
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
450 * Program Chain Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
451 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
452 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
453 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
454 uint8_t nr_of_programs;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
455 uint8_t nr_of_cells;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
456 dvd_time_t playback_time;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
457 user_ops_t prohibited_ops;
16649
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
458 audio_mapping_t audio_control[8];
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
459 subp_mapping_t subp_control[32];
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
460 uint16_t next_pgc_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
461 uint16_t prev_pgc_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
462 uint16_t goup_pgc_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
463 uint8_t still_time;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
464 uint8_t pg_playback_mode;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
465 uint32_t palette[16]; /* New type struct {zero_1, Y, Cr, Cb} ? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
466 uint16_t command_tbl_offset;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
467 uint16_t program_map_offset;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
468 uint16_t cell_playback_offset;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
469 uint16_t cell_position_offset;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
470 pgc_command_tbl_t *command_tbl;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
471 pgc_program_map_t *program_map;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
472 cell_playback_t *cell_playback;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
473 cell_position_t *cell_position;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
474 } ATTRIBUTE_PACKED pgc_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
475 #define PGC_SIZE 236
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
476
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
477 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
478 * Program Chain Information Search Pointer.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
479 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
480 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
481 uint8_t entry_id;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
482 #ifdef WORDS_BIGENDIAN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
483 unsigned int block_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
484 unsigned int block_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
485 unsigned int unknown1 : 4;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
486 #else
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
487 unsigned int unknown1 : 4;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
488 unsigned int block_type : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
489 unsigned int block_mode : 2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
490 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
491 uint16_t ptl_id_mask;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
492 uint32_t pgc_start_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
493 pgc_t *pgc;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
494 } ATTRIBUTE_PACKED pgci_srp_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
495 #define PGCI_SRP_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
496
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
497 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
498 * Program Chain Information Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
499 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
500 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
501 uint16_t nr_of_pgci_srp;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
502 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
503 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
504 pgci_srp_t *pgci_srp;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
505 } ATTRIBUTE_PACKED pgcit_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
506 #define PGCIT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
507
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
508 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
509 * Menu PGCI Language Unit.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
510 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
511 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
512 uint16_t lang_code;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
513 uint8_t lang_extension;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
514 uint8_t exists;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
515 uint32_t lang_start_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
516 pgcit_t *pgcit;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
517 } ATTRIBUTE_PACKED pgci_lu_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
518 #define PGCI_LU_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
519
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
520 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
521 * Menu PGCI Unit Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
522 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
523 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
524 uint16_t nr_of_lus;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
525 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
526 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
527 pgci_lu_t *lu;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
528 } ATTRIBUTE_PACKED pgci_ut_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
529 #define PGCI_UT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
530
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
531 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
532 * Cell Address Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
533 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
534 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
535 uint16_t vob_id;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
536 uint8_t cell_id;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
537 uint8_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
538 uint32_t start_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
539 uint32_t last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
540 } ATTRIBUTE_PACKED cell_adr_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
541
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
542 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
543 * Cell Address Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
544 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
545 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
546 uint16_t nr_of_vobs; /* VOBs */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
547 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
548 uint32_t last_byte;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
549 cell_adr_t *cell_adr_table; /* No explicit size given. */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
550 } ATTRIBUTE_PACKED c_adt_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
551 #define C_ADT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
552
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
553 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
554 * VOBU Address Map.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
555 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
556 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
557 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
558 uint32_t *vobu_start_sectors;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
559 } ATTRIBUTE_PACKED vobu_admap_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
560 #define VOBU_ADMAP_SIZE 4
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
561
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
562
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
563
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
564
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
565 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
566 * VMGI
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
567 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
568 * The following structures relate to the Video Manager.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
569 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
570
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
571 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
572 * Video Manager Information Management Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
573 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
574 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
575 char vmg_identifier[12];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
576 uint32_t vmg_last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
577 uint8_t zero_1[12];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
578 uint32_t vmgi_last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
579 uint8_t zero_2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
580 uint8_t specification_version;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
581 uint32_t vmg_category;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
582 uint16_t vmg_nr_of_volumes;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
583 uint16_t vmg_this_volume_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
584 uint8_t disc_side;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
585 uint8_t zero_3[19];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
586 uint16_t vmg_nr_of_title_sets; /* Number of VTSs. */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
587 char provider_identifier[32];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
588 uint64_t vmg_pos_code;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
589 uint8_t zero_4[24];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
590 uint32_t vmgi_last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
591 uint32_t first_play_pgc;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
592 uint8_t zero_5[56];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
593 uint32_t vmgm_vobs; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
594 uint32_t tt_srpt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
595 uint32_t vmgm_pgci_ut; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
596 uint32_t ptl_mait; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
597 uint32_t vts_atrt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
598 uint32_t txtdt_mgi; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
599 uint32_t vmgm_c_adt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
600 uint32_t vmgm_vobu_admap; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
601 uint8_t zero_6[32];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
602
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
603 video_attr_t vmgm_video_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
604 uint8_t zero_7;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
605 uint8_t nr_of_vmgm_audio_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
606 audio_attr_t vmgm_audio_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
607 audio_attr_t zero_8[7];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
608 uint8_t zero_9[17];
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
609 uint8_t nr_of_vmgm_subp_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
610 subp_attr_t vmgm_subp_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
611 subp_attr_t zero_10[27]; /* XXX: how much 'padding' here? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
612 } ATTRIBUTE_PACKED vmgi_mat_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
613
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
614 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
615 #ifdef WORDS_BIGENDIAN
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
616 unsigned int zero_1 : 1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
617 unsigned int multi_or_random_pgc_title : 1; /* 0: one sequential pgc title */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
618 unsigned int jlc_exists_in_cell_cmd : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
619 unsigned int jlc_exists_in_prepost_cmd : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
620 unsigned int jlc_exists_in_button_cmd : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
621 unsigned int jlc_exists_in_tt_dom : 1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
622 unsigned int chapter_search_or_play : 1; /* UOP 1 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
623 unsigned int title_or_time_play : 1; /* UOP 0 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
624 #else
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
625 unsigned int title_or_time_play : 1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
626 unsigned int chapter_search_or_play : 1;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
627 unsigned int jlc_exists_in_tt_dom : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
628 unsigned int jlc_exists_in_button_cmd : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
629 unsigned int jlc_exists_in_prepost_cmd : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
630 unsigned int jlc_exists_in_cell_cmd : 1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
631 unsigned int multi_or_random_pgc_title : 1;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
632 unsigned int zero_1 : 1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
633 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
634 } ATTRIBUTE_PACKED playback_type_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
635
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
636 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
637 * Title Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
638 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
639 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
640 playback_type_t pb_ty;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
641 uint8_t nr_of_angles;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
642 uint16_t nr_of_ptts;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
643 uint16_t parental_id;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
644 uint8_t title_set_nr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
645 uint8_t vts_ttn;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
646 uint32_t title_set_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
647 } ATTRIBUTE_PACKED title_info_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
648
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
649 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
650 * PartOfTitle Search Pointer Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
651 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
652 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
653 uint16_t nr_of_srpts;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
654 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
655 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
656 title_info_t *title;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
657 } ATTRIBUTE_PACKED tt_srpt_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
658 #define TT_SRPT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
659
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
660
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
661 /**
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
662 * Parental Management Information Unit Table.
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
663 * Level 1 (US: G), ..., 7 (US: NC-17), 8
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
664 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
665 typedef uint16_t pf_level_t[8];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
666
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
667 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
668 * Parental Management Information Unit Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
669 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
670 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
671 uint16_t country_code;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
672 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
673 uint16_t pf_ptl_mai_start_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
674 uint16_t zero_2;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
675 pf_level_t *pf_ptl_mai; /* table of (nr_of_vtss + 1), video_ts is first */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
676 } ATTRIBUTE_PACKED ptl_mait_country_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
677 #define PTL_MAIT_COUNTRY_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
678
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
679 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
680 * Parental Management Information Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
681 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
682 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
683 uint16_t nr_of_countries;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
684 uint16_t nr_of_vtss;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
685 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
686 ptl_mait_country_t *countries;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
687 } ATTRIBUTE_PACKED ptl_mait_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
688 #define PTL_MAIT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
689
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
690 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
691 * Video Title Set Attributes.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
692 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
693 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
694 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
695 uint32_t vts_cat;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
696
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
697 video_attr_t vtsm_vobs_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
698 uint8_t zero_1;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
699 uint8_t nr_of_vtsm_audio_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
700 audio_attr_t vtsm_audio_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
701 audio_attr_t zero_2[7];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
702 uint8_t zero_3[16];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
703 uint8_t zero_4;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
704 uint8_t nr_of_vtsm_subp_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
705 subp_attr_t vtsm_subp_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
706 subp_attr_t zero_5[27];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
707
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
708 uint8_t zero_6[2];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
709
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
710 video_attr_t vtstt_vobs_video_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
711 uint8_t zero_7;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
712 uint8_t nr_of_vtstt_audio_streams;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
713 audio_attr_t vtstt_audio_attr[8];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
714 uint8_t zero_8[16];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
715 uint8_t zero_9;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
716 uint8_t nr_of_vtstt_subp_streams;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
717 subp_attr_t vtstt_subp_attr[32];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
718 } ATTRIBUTE_PACKED vts_attributes_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
719 #define VTS_ATTRIBUTES_SIZE 542
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
720 #define VTS_ATTRIBUTES_MIN_SIZE 356
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
721
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
722 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
723 * Video Title Set Attribute Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
724 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
725 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
726 uint16_t nr_of_vtss;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
727 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
728 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
729 vts_attributes_t *vts;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
730 uint32_t *vts_atrt_offsets; /* offsets table for each vts_attributes */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
731 } ATTRIBUTE_PACKED vts_atrt_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
732 #define VTS_ATRT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
733
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
734 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
735 * Text Data. (Incomplete)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
736 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
737 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
738 uint32_t last_byte; /* offsets are relative here */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
739 uint16_t offsets[100]; /* == nr_of_srpts + 1 (first is disc title) */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
740 #if 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
741 uint16_t unknown; /* 0x48 ?? 0x48 words (16bit) info following */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
742 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
743
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
744 uint8_t type_of_info; /* ?? 01 == disc, 02 == Title, 04 == Title part */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
745 uint8_t unknown1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
746 uint8_t unknown2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
747 uint8_t unknown3;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
748 uint8_t unknown4; /* ?? allways 0x30 language?, text format? */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
749 uint8_t unknown5;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
750 uint16_t offset; /* from first */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
751
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
752 char text[12]; /* ended by 0x09 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
753 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
754 } ATTRIBUTE_PACKED txtdt_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
755
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
756 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
757 * Text Data Language Unit. (Incomplete)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
758 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
759 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
760 uint16_t lang_code;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
761 uint16_t unknown; /* 0x0001, title 1? disc 1? side 1? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
762 uint32_t txtdt_start_byte; /* prt, rel start of vmg_txtdt_mgi */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
763 txtdt_t *txtdt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
764 } ATTRIBUTE_PACKED txtdt_lu_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
765 #define TXTDT_LU_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
766
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
767 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
768 * Text Data Manager Information. (Incomplete)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
769 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
770 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
771 char disc_name[14]; /* how many bytes?? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
772 uint16_t nr_of_language_units; /* 32bit?? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
773 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
774 txtdt_lu_t *lu;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
775 } ATTRIBUTE_PACKED txtdt_mgi_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
776 #define TXTDT_MGI_SIZE 20
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
777
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
778
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
779 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
780 * VTS
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
781 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
782 * Structures relating to the Video Title Set (VTS).
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
783 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
784
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
785 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
786 * Video Title Set Information Management Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
787 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
788 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
789 char vts_identifier[12];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
790 uint32_t vts_last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
791 uint8_t zero_1[12];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
792 uint32_t vtsi_last_sector;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
793 uint8_t zero_2;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
794 uint8_t specification_version;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
795 uint32_t vts_category;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
796 uint16_t zero_3;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
797 uint16_t zero_4;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
798 uint8_t zero_5;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
799 uint8_t zero_6[19];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
800 uint16_t zero_7;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
801 uint8_t zero_8[32];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
802 uint64_t zero_9;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
803 uint8_t zero_10[24];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
804 uint32_t vtsi_last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
805 uint32_t zero_11;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
806 uint8_t zero_12[56];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
807 uint32_t vtsm_vobs; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
808 uint32_t vtstt_vobs; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
809 uint32_t vts_ptt_srpt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
810 uint32_t vts_pgcit; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
811 uint32_t vtsm_pgci_ut; /* sector */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
812 uint32_t vts_tmapt; /* sector */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
813 uint32_t vtsm_c_adt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
814 uint32_t vtsm_vobu_admap; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
815 uint32_t vts_c_adt; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
816 uint32_t vts_vobu_admap; /* sector */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
817 uint8_t zero_13[24];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
818
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
819 video_attr_t vtsm_video_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
820 uint8_t zero_14;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
821 uint8_t nr_of_vtsm_audio_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
822 audio_attr_t vtsm_audio_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
823 audio_attr_t zero_15[7];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
824 uint8_t zero_16[17];
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
825 uint8_t nr_of_vtsm_subp_streams; /* should be 0 or 1 */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
826 subp_attr_t vtsm_subp_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
827 subp_attr_t zero_17[27];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
828 uint8_t zero_18[2];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
829
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
830 video_attr_t vts_video_attr;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
831 uint8_t zero_19;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
832 uint8_t nr_of_vts_audio_streams;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
833 audio_attr_t vts_audio_attr[8];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
834 uint8_t zero_20[17];
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
835 uint8_t nr_of_vts_subp_streams;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
836 subp_attr_t vts_subp_attr[32];
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
837 uint16_t zero_21;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
838 multichannel_ext_t vts_mu_audio_attr[8];
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
839 /* XXX: how much 'padding' here, if any? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
840 } ATTRIBUTE_PACKED vtsi_mat_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
841
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
842 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
843 * PartOfTitle Unit Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
844 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
845 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
846 uint16_t pgcn;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
847 uint16_t pgn;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
848 } ATTRIBUTE_PACKED ptt_info_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
849
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
850 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
851 * PartOfTitle Information.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
852 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
853 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
854 uint16_t nr_of_ptts;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
855 ptt_info_t *ptt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
856 } ATTRIBUTE_PACKED ttu_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
857
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
858 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
859 * PartOfTitle Search Pointer Table.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
860 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
861 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
862 uint16_t nr_of_srpts;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
863 uint16_t zero_1;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
864 uint32_t last_byte;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
865 ttu_t *title;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
866 uint32_t *ttu_offset; /* offset table for each ttu */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
867 } ATTRIBUTE_PACKED vts_ptt_srpt_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
868 #define VTS_PTT_SRPT_SIZE 8
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
869
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
870
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
871 /**
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
872 * Time Map Entry.
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
873 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
874 /* Should this be bit field at all or just the uint32_t? */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
875 typedef uint32_t map_ent_t;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
876
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
877 /**
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
878 * Time Map.
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
879 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
880 typedef struct {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
881 uint8_t tmu; /* Time unit, in seconds */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
882 uint8_t zero_1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
883 uint16_t nr_of_entries;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
884 map_ent_t *map_ent;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
885 } ATTRIBUTE_PACKED vts_tmap_t;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
886 #define VTS_TMAP_SIZE 4
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
887
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
888 /**
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
889 * Time Map Table.
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
890 */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
891 typedef struct {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
892 uint16_t nr_of_tmaps;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
893 uint16_t zero_1;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
894 uint32_t last_byte;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
895 vts_tmap_t *tmap;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
896 uint32_t *tmap_offset; /* offset table for each tmap */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
897 } ATTRIBUTE_PACKED vts_tmapt_t;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
898 #define VTS_TMAPT_SIZE 8
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
899
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
900
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
901 #if PRAGMA_PACK
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
902 #pragma pack()
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
903 #endif
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
904
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
905
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
906 /**
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
907 * The following structure defines an IFO file. The structure is divided into
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
908 * two parts, the VMGI, or Video Manager Information, which is read from the
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
909 * VIDEO_TS.[IFO,BUP] file, and the VTSI, or Video Title Set Information, which
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
910 * is read in from the VTS_XX_0.[IFO,BUP] files.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
911 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
912 typedef struct {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
913 dvd_file_t *file;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
914
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
915 /* VMGI */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
916 vmgi_mat_t *vmgi_mat;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
917 tt_srpt_t *tt_srpt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
918 pgc_t *first_play_pgc;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
919 ptl_mait_t *ptl_mait;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
920 vts_atrt_t *vts_atrt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
921 txtdt_mgi_t *txtdt_mgi;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
922
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
923 /* Common */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
924 pgci_ut_t *pgci_ut;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
925 c_adt_t *menu_c_adt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
926 vobu_admap_t *menu_vobu_admap;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
927
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
928 /* VTSI */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
929 vtsi_mat_t *vtsi_mat;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
930 vts_ptt_srpt_t *vts_ptt_srpt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
931 pgcit_t *vts_pgcit;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
932 vts_tmapt_t *vts_tmapt;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
933 c_adt_t *vts_c_adt;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
934 vobu_admap_t *vts_vobu_admap;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
935 } ifo_handle_t;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
936
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
937 #endif /* IFO_TYPES_H_INCLUDED */