annotate libmpdvdkit2/nav_read.c @ 17696:66d7afee9a46

added new stream_control() and new command: STREAM_CTRL_GET_TIME_LENGTH
author nicodvb
date Mon, 27 Feb 2006 21:06:47 +0000
parents 483e955893b8
children
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 /*
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
2 * Copyright (C) 2000, 2001, 2002, 2003 Håkan Hjort <d95hjort@dtek.chalmers.se>
14938
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 8257
diff changeset
3 *
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
7 * (at your option) any later version.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
8 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
12 * GNU General Public License for more details.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
13 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
17 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
18
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
19 #include "config.h"
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
20
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
21 #include <stdio.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
22 #include <string.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
23 #include <inttypes.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
24
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
25 #include "bswap.h"
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
26 #include "nav_types.h"
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
27 #include "nav_read.h"
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
28 #include "dvdread_internal.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 void navRead_PCI(pci_t *pci, unsigned char *buffer) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
31 int i, j;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
32
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
33 CHECK_VALUE(sizeof(pci_t) == PCI_BYTES - 1); // -1 for substream id
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
34
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
35 memcpy(pci, buffer, sizeof(pci_t));
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
36
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
37 /* Endian conversions */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
38
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
39 /* pci pci_gi */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
40 B2N_32(pci->pci_gi.nv_pck_lbn);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
41 B2N_16(pci->pci_gi.vobu_cat);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
42 B2N_32(pci->pci_gi.vobu_s_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
43 B2N_32(pci->pci_gi.vobu_e_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
44 B2N_32(pci->pci_gi.vobu_se_e_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
45
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
46 /* pci nsml_agli */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
47 for(i = 0; i < 9; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
48 B2N_32(pci->nsml_agli.nsml_agl_dsta[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
49
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
50 /* pci hli hli_gi */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
51 B2N_16(pci->hli.hl_gi.hli_ss);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
52 B2N_32(pci->hli.hl_gi.hli_s_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
53 B2N_32(pci->hli.hl_gi.hli_e_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
54 B2N_32(pci->hli.hl_gi.btn_se_e_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
55
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
56 /* pci hli btn_colit */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
57 for(i = 0; i < 3; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
58 for(j = 0; j < 2; j++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
59 B2N_32(pci->hli.btn_colit.btn_coli[i][j]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
60
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
61 /* NOTE: I've had to change the structure from the disk layout to get
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
62 * the packing to work with Sun's Forte C compiler. */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
63
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
64 /* pci hli btni */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
65 for(i = 0; i < 36; i++) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
66 char tmp[sizeof(pci->hli.btnit[i])], swap;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
67 memcpy(tmp, &(pci->hli.btnit[i]), sizeof(pci->hli.btnit[i]));
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
68 /* Byte 4 to 7 are 'rotated' was: ABCD EFGH IJ is: ABCG DEFH IJ */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
69 swap = tmp[6];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
70 tmp[6] = tmp[5];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
71 tmp[5] = tmp[4];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
72 tmp[4] = tmp[3];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
73 tmp[3] = swap;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
74
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
75 /* Then there are the two B2N_24(..) calls */
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
76 #ifndef WORDS_BIGENDIAN
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
77 swap = tmp[0];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
78 tmp[0] = tmp[2];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
79 tmp[2] = swap;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
80
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
81 swap = tmp[4];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
82 tmp[4] = tmp[6];
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
83 tmp[6] = swap;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
84 #endif
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
85 memcpy(&(pci->hli.btnit[i]), tmp, sizeof(pci->hli.btnit[i]));
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
86 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
87
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
88
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
89 #ifndef NDEBUG
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
90 /* Asserts */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
91
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
92 /* pci pci gi */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
93 CHECK_VALUE(pci->pci_gi.zero1 == 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
94
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
95 /* pci hli hli_gi */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
96 CHECK_VALUE(pci->hli.hl_gi.zero1 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
97 CHECK_VALUE(pci->hli.hl_gi.zero2 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
98 CHECK_VALUE(pci->hli.hl_gi.zero3 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
99 CHECK_VALUE(pci->hli.hl_gi.zero4 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
100 CHECK_VALUE(pci->hli.hl_gi.zero5 == 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
101
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
102 /* Are there buttons defined here? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
103 if((pci->hli.hl_gi.hli_ss & 0x03) != 0) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
104 CHECK_VALUE(pci->hli.hl_gi.btn_ns != 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
105 CHECK_VALUE(pci->hli.hl_gi.btngr_ns != 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
106 } else {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
107 CHECK_VALUE((pci->hli.hl_gi.btn_ns != 0 && pci->hli.hl_gi.btngr_ns != 0)
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
108 || (pci->hli.hl_gi.btn_ns == 0 && pci->hli.hl_gi.btngr_ns == 0));
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
109 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
110
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
111 /* pci hli btnit */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
112 for(i = 0; i < pci->hli.hl_gi.btngr_ns; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
113 for(j = 0; j < (36 / pci->hli.hl_gi.btngr_ns); j++) {
8257
635df9d22d38 100l patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
michael
parents: 8254
diff changeset
114 int n = (36 / pci->hli.hl_gi.btngr_ns) * i + j;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
115 CHECK_VALUE(pci->hli.btnit[n].zero1 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
116 CHECK_VALUE(pci->hli.btnit[n].zero2 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
117 CHECK_VALUE(pci->hli.btnit[n].zero3 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
118 CHECK_VALUE(pci->hli.btnit[n].zero4 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
119 CHECK_VALUE(pci->hli.btnit[n].zero5 == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
120 CHECK_VALUE(pci->hli.btnit[n].zero6 == 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
121
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
122 if (j < pci->hli.hl_gi.btn_ns) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
123 CHECK_VALUE(pci->hli.btnit[n].x_start <= pci->hli.btnit[n].x_end);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
124 CHECK_VALUE(pci->hli.btnit[n].y_start <= pci->hli.btnit[n].y_end);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
125 CHECK_VALUE(pci->hli.btnit[n].up <= pci->hli.hl_gi.btn_ns);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
126 CHECK_VALUE(pci->hli.btnit[n].down <= pci->hli.hl_gi.btn_ns);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
127 CHECK_VALUE(pci->hli.btnit[n].left <= pci->hli.hl_gi.btn_ns);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
128 CHECK_VALUE(pci->hli.btnit[n].right <= pci->hli.hl_gi.btn_ns);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
129 //vmcmd_verify(pci->hli.btnit[n].cmd);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
130 } else {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
131 int k;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
132 CHECK_VALUE(pci->hli.btnit[n].btn_coln == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
133 CHECK_VALUE(pci->hli.btnit[n].auto_action_mode == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
134 CHECK_VALUE(pci->hli.btnit[n].x_start == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
135 CHECK_VALUE(pci->hli.btnit[n].y_start == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
136 CHECK_VALUE(pci->hli.btnit[n].x_end == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
137 CHECK_VALUE(pci->hli.btnit[n].y_end == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
138 CHECK_VALUE(pci->hli.btnit[n].up == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
139 CHECK_VALUE(pci->hli.btnit[n].down == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
140 CHECK_VALUE(pci->hli.btnit[n].left == 0);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
141 CHECK_VALUE(pci->hli.btnit[n].right == 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
142 for (k = 0; k < 8; k++)
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
143 CHECK_VALUE(pci->hli.btnit[n].cmd.bytes[k] == 0); //CHECK_ZERO?
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
144 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
145 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
146 }
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
147 #endif /* !NDEBUG */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
148 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
149
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
150 void navRead_DSI(dsi_t *dsi, unsigned char *buffer) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
151 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
152
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
153 CHECK_VALUE(sizeof(dsi_t) == DSI_BYTES - 1); // -1 for substream id
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
154
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
155 memcpy(dsi, buffer, sizeof(dsi_t));
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
156
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
157 /* Endian conversions */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
158
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
159 /* dsi dsi gi */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
160 B2N_32(dsi->dsi_gi.nv_pck_scr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
161 B2N_32(dsi->dsi_gi.nv_pck_lbn);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
162 B2N_32(dsi->dsi_gi.vobu_ea);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
163 B2N_32(dsi->dsi_gi.vobu_1stref_ea);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
164 B2N_32(dsi->dsi_gi.vobu_2ndref_ea);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
165 B2N_32(dsi->dsi_gi.vobu_3rdref_ea);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
166 B2N_16(dsi->dsi_gi.vobu_vob_idn);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
167
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
168 /* dsi sml pbi */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
169 B2N_16(dsi->sml_pbi.category);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
170 B2N_32(dsi->sml_pbi.ilvu_ea);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
171 B2N_32(dsi->sml_pbi.ilvu_sa);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
172 B2N_16(dsi->sml_pbi.size);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
173 B2N_32(dsi->sml_pbi.vob_v_s_s_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
174 B2N_32(dsi->sml_pbi.vob_v_e_e_ptm);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
175
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
176 /* dsi sml agli */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
177 for(i = 0; i < 9; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
178 B2N_32(dsi->sml_agli.data[ i ].address);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
179 B2N_16(dsi->sml_agli.data[ i ].size);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
180 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
181
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
182 /* dsi vobu sri */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
183 B2N_32(dsi->vobu_sri.next_video);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
184 for(i = 0; i < 19; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
185 B2N_32(dsi->vobu_sri.fwda[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
186 B2N_32(dsi->vobu_sri.next_vobu);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
187 B2N_32(dsi->vobu_sri.prev_vobu);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
188 for(i = 0; i < 19; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
189 B2N_32(dsi->vobu_sri.bwda[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
190 B2N_32(dsi->vobu_sri.prev_video);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
191
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
192 /* dsi synci */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
193 for(i = 0; i < 8; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
194 B2N_16(dsi->synci.a_synca[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
195 for(i = 0; i < 32; i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
196 B2N_32(dsi->synci.sp_synca[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
197
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
198
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
199 /* Asserts */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
200
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
201 /* dsi dsi gi */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
202 CHECK_VALUE(dsi->dsi_gi.zero1 == 0);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
203 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
204