annotate dvdread/ifo_print.c @ 22885:2fb21c753674

remove useless ()
author aurel
date Sun, 01 Apr 2007 21:58:45 +0000
parents 22cb9d5f1e21
children de28f9e8cb00
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
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
3 * Björn Englund <d4bjorn@dtek.chalmers.se>,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
4 * Håkan Hjort <d95hjort@dtek.chalmers.se>
14938
25df9508f9a8 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 7033
diff changeset
5 *
20785
19228d182bc4 Mark modified files as such.
diego
parents: 20615
diff changeset
6 * Modified for use with MPlayer, changes contained in libdvdread_changes.diff.
19228d182bc4 Mark modified files as such.
diego
parents: 20615
diff changeset
7 * detailed changelog at http://svn.mplayerhq.hu/mplayer/trunk/
19228d182bc4 Mark modified files as such.
diego
parents: 20615
diff changeset
8 * $Id$
19228d182bc4 Mark modified files as such.
diego
parents: 20615
diff changeset
9 *
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
13 * (at your option) any later version.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
14 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
18 * GNU General Public License for more details.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
19 *
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
23 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
24
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
25 #include "config.h"
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
26
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
27 #include <stdio.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
28 #include <stdlib.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
29 #include <unistd.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
30 #include <inttypes.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
31 #include <string.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
32 #include <ctype.h>
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
33
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
34 #include "ifo_types.h"
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
35 #include "ifo_read.h"
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
36 #include "ifo_print.h"
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
37 #include "dvdread_internal.h"
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
38
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
39 /* Put this in some other file / package? It's used in nav_print too. */
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
40 static void ifoPrint_time(dvd_time_t *dtime) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
41 const char *rate;
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
42 CHECK_VALUE((dtime->hour>>4) < 0xa && (dtime->hour&0xf) < 0xa);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
43 CHECK_VALUE((dtime->minute>>4) < 0x7 && (dtime->minute&0xf) < 0xa);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
44 CHECK_VALUE((dtime->second>>4) < 0x7 && (dtime->second&0xf) < 0xa);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
45 CHECK_VALUE((dtime->frame_u&0xf) < 0xa);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
46
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
47 printf("%02x:%02x:%02x.%02x",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
48 dtime->hour,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
49 dtime->minute,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
50 dtime->second,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
51 dtime->frame_u & 0x3f);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
52 switch((dtime->frame_u & 0xc0) >> 6) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
53 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
54 rate = "25.00";
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
55 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
56 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
57 rate = "29.97";
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
58 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
59 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
60 if(dtime->hour == 0 && dtime->minute == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
61 && dtime->second == 0 && dtime->frame_u == 0)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
62 rate = "no";
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
63 else
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
64 rate = "(please send a bug report)";
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
65 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
66 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
67 printf(" @ %s fps", rate);
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 /* Put this in some other file / package? It's used in nav_print too.
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
71 Possibly also by the vm / navigator. */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
72 static void ifoPrint_CMD(int row, vm_cmd_t *command) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
73 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
74
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
75 printf("(%03d) ", row + 1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
76 for(i=0;i<8;i++)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
77 printf("%02x ", command->bytes[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
78 printf("| ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
79
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
80 //vmcmd(command);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
81 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
82 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
83
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
84 static void ifoPrint_video_attributes(video_attr_t *attr) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
85
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
86 /* The following test is shorter but not correct ISO C,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
87 memcmp(attr,my_friendly_zeros, sizeof(video_attr_t)) */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
88 if(attr->mpeg_version == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
89 && attr->video_format == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
90 && attr->display_aspect_ratio == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
91 && attr->permitted_df == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
92 && attr->unknown1 == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
93 && attr->line21_cc_1 == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
94 && attr->line21_cc_2 == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
95 && attr->bit_rate == 0
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
96 && attr->video_format == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
97 && attr->letterboxed == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
98 && attr->film_mode == 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
99 printf("-- Unspecified --");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
100 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
101 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
102
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
103 switch(attr->mpeg_version) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
104 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
105 printf("mpeg1 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
106 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
107 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
108 printf("mpeg2 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
109 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
110 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
111 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
112 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
113
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
114 switch(attr->video_format) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
115 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
116 printf("ntsc ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
117 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
118 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
119 printf("pal ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
120 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
121 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
122 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
123 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
124
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
125 switch(attr->display_aspect_ratio) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
126 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
127 printf("4:3 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
128 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
129 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
130 printf("16:9 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
131 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
132 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
133 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
134 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
135
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
136 // Wide is allways allowed..!!!
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
137 switch(attr->permitted_df) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
138 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
139 printf("pan&scan+letterboxed ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
140 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
141 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
142 printf("only pan&scan "); //??
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
143 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
144 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
145 printf("only letterboxed ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
146 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
147 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
148 // not specified
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
149 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
150 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
151 printf("(please send a bug report)");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
152 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
153
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
154 printf("U%x ", attr->unknown1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
155 CHECK_VALUE(!attr->unknown1);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
156
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
157 if(attr->line21_cc_1 || attr->line21_cc_2) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
158 printf("NTSC CC ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
159 if(attr->line21_cc_1)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
160 printf("1 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
161 if(attr->line21_cc_2)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
162 printf("2 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
163 }
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
164
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
165 switch(attr->bit_rate) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
166 case 0:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
167 printf("Variable Bit Rate ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
168 break;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
169 case 1:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
170 printf("Constant Bit Rate ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
171 break;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
172 default:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
173 printf("(please send a bug report)");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
174 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
175
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
176 {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
177 int height = 480;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
178 if(attr->video_format != 0)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
179 height = 576;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
180 switch(attr->picture_size) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
181 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
182 printf("720x%d ", height);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
183 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
184 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
185 printf("704x%d ", height);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
186 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
187 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
188 printf("352x%d ", height);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
189 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
190 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
191 printf("352x%d ", height/2);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
192 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
193 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
194 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
195 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
196 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
197
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
198 if(attr->letterboxed) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
199 printf("source letterboxed ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
200 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
201
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
202 if(attr->film_mode) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
203 printf("film");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
204 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
205 printf("video"); //camera
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
206 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
207 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
208
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
209 static void ifoPrint_audio_attributes(audio_attr_t *attr) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
210
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
211 if(attr->audio_format == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
212 && attr->multichannel_extension == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
213 && attr->lang_type == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
214 && attr->application_mode == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
215 && attr->quantization == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
216 && attr->sample_frequency == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
217 && attr->channels == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
218 && attr->lang_code == 0
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
219 && attr->lang_extension == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
220 && attr->code_extension == 0
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
221 && attr->unknown3 == 0
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
222 && attr->unknown1 == 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
223 printf("-- Unspecified --");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
224 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
225 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
226
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
227 switch(attr->audio_format) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
228 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
229 printf("ac3 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
230 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
231 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
232 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
233 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
234 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
235 printf("mpeg1 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
236 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
237 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
238 printf("mpeg2ext ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
239 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
240 case 4:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
241 printf("lpcm ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
242 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
243 case 5:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
244 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
245 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
246 case 6:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
247 printf("dts ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
248 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
249 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
250 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
251 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
252
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
253 if(attr->multichannel_extension)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
254 printf("multichannel_extension ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
255
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
256 switch(attr->lang_type) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
257 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
258 // not specified
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
259 CHECK_VALUE(attr->lang_code == 0 || attr->lang_code == 0xffff);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
260 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
261 case 1:
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
262 printf("%c%c (%c) ", attr->lang_code>>8, attr->lang_code & 0xff,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
263 attr->lang_extension ? attr->lang_extension : ' ');
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
264 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
265 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
266 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
267 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
268
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
269 switch(attr->application_mode) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
270 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
271 // not specified
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
272 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
273 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
274 printf("karaoke mode ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
275 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
276 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
277 printf("surround sound mode ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
278 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
279 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
280 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
281 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
282
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
283 switch(attr->quantization) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
284 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
285 printf("16bit ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
286 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
287 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
288 printf("20bit ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
289 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
290 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
291 printf("24bit ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
292 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
293 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
294 printf("drc ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
295 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
296 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
297 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
298 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
299
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
300 switch(attr->sample_frequency) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
301 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
302 printf("48kHz ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
303 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
304 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
305 printf("??kHz ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
306 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
307 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
308 printf("sample_frequency %i (please send a bug report) ",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
309 attr->sample_frequency);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
310 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
311
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
312 printf("%dCh ", attr->channels + 1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
313
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
314 switch(attr->code_extension) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
315 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
316 printf("Not specified ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
317 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
318 case 1: // Normal audio
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
319 printf("Normal Caption ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
320 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
321 case 2: // visually imparied
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
322 printf("Audio for visually impaired ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
323 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
324 case 3: // Directors 1
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
325 printf("Director's comments 1 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
326 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
327 case 4: // Directors 2
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
328 printf("Director's comments 2 ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
329 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
330 //case 4: // Music score ?
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
331 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
332 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
333 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
334
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
335 printf("%d ", attr->unknown3);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
336 if(attr->application_mode == 1) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
337 printf("ca=%d ", attr->app_info.karaoke.channel_assignment);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
338 printf("%d ", attr->app_info.karaoke.version);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
339 if(attr->app_info.karaoke.mc_intro)
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
340 printf("mc intro ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
341 printf("%s ", attr->app_info.karaoke.mode ? "duet" : "solo");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
342 printf("%d ", attr->app_info.karaoke.unknown4);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
343 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
344 if(attr->application_mode == 2) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
345 if(attr->app_info.surround.dolby_encoded) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
346 printf("dolby surround ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
347 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
348 printf("%d ", attr->app_info.surround.unknown5);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
349 printf("%d ", attr->app_info.surround.unknown6);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
350 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
351 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
352
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
353 static void ifoPrint_subp_attributes(subp_attr_t *attr) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
354
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
355 if(attr->type == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
356 && attr->code_mode == 0
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
357 && attr->lang_code == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
358 && attr->lang_extension == 0
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
359 && attr->zero1 == 0
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
360 && attr->zero2 == 0
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
361 && attr->code_extension == 0) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
362 printf("-- Unspecified --");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
363 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
364 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
365
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
366 switch(attr->code_mode) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
367 case 0:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
368 printf("Coding Mode RLE ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
369 break;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
370 case 1:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
371 printf("Coding Mode Extended ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
372 break;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
373 default:
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
374 printf("(please send a bug report) ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
375 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
376
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
377 if(attr->type == 1) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
378 if(isalpha((int)(attr->lang_code >> 8))
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
379 && isalpha((int)(attr->lang_code & 0xff))) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
380 printf("%c%c ", attr->lang_code >> 8, attr->lang_code & 0xff);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
381 } else {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
382 printf("%02x%02x ", attr->lang_code >> 8, attr->lang_code & 0xff);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
383 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
384 } else {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
385 printf("lang not specified ");
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
386 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
387
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
388 printf("%d ", attr->zero1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
389 printf("%d ", attr->zero2);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
390 printf("%d ", attr->code_extension);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
391
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
392 /* Is this correct? should it not be subp_code_ext here instead? */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
393 switch(attr->lang_extension) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
394 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
395 printf("Not specified ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
396 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
397 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
398 printf("Caption with normal size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
399 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
400 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
401 printf("Caption with bigger size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
402 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
403 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
404 printf("Caption for children ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
405 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
406 case 4:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
407 printf("reserved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
408 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
409 case 5:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
410 printf("Closed Caption with normal size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
411 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
412 case 6:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
413 printf("Closed Caption with bigger size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
414 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
415 case 7:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
416 printf("Closed Caption for children ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
417 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
418 case 8:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
419 printf("reserved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
420 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
421 case 9:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
422 printf("Forced Caption");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
423 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
424 case 10:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
425 printf("reserved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
426 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
427 case 11:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
428 printf("reserved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
429 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
430 case 12:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
431 printf("reserved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
432 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
433 case 13:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
434 printf("Director's comments with normal size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
435 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
436 case 14:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
437 printf("Director's comments with bigger size character ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
438 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
439 case 15:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
440 printf("Director's comments for children ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
441 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
442 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
443 printf("(please send a bug report) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
444 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
445
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
446 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
447
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
448
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
449 static void ifoPrint_USER_OPS(user_ops_t *user_ops) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
450 uint32_t uops;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
451 unsigned char *ptr = (unsigned char *)user_ops;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
452
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
453 uops = (*ptr++ << 24);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
454 uops |= (*ptr++ << 16);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
455 uops |= (*ptr++ << 8);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
456 uops |= (*ptr++);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
457
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
458 if(uops == 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
459 printf("None\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
460 } else if(uops == 0x01ffffff) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
461 printf("All\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
462 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
463 if(user_ops->title_or_time_play)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
464 printf("Title or Time Play, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
465 if(user_ops->chapter_search_or_play)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
466 printf("Chapter Search or Play, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
467 if(user_ops->title_play)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
468 printf("Title Play, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
469 if(user_ops->stop)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
470 printf("Stop, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
471 if(user_ops->go_up)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
472 printf("Go Up, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
473 if(user_ops->time_or_chapter_search)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
474 printf("Time or Chapter Search, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
475 if(user_ops->prev_or_top_pg_search)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
476 printf("Prev or Top PG Search, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
477 if(user_ops->next_pg_search)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
478 printf("Next PG Search, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
479 if(user_ops->forward_scan)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
480 printf("Forward Scan, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
481 if(user_ops->backward_scan)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
482 printf("Backward Scan, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
483 if(user_ops->title_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
484 printf("Title Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
485 if(user_ops->root_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
486 printf("Root Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
487 if(user_ops->subpic_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
488 printf("SubPic Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
489 if(user_ops->audio_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
490 printf("Audio Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
491 if(user_ops->angle_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
492 printf("Angle Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
493 if(user_ops->chapter_menu_call)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
494 printf("Chapter Menu Call, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
495 if(user_ops->resume)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
496 printf("Resume, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
497 if(user_ops->button_select_or_activate)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
498 printf("Button Select or Activate, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
499 if(user_ops->still_off)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
500 printf("Still Off, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
501 if(user_ops->pause_on)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
502 printf("Pause On, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
503 if(user_ops->audio_stream_change)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
504 printf("Audio Stream Change, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
505 if(user_ops->subpic_stream_change)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
506 printf("SubPic Stream Change, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
507 if(user_ops->angle_change)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
508 printf("Angle Change, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
509 if(user_ops->karaoke_audio_pres_mode_change)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
510 printf("Karaoke Audio Pres Mode Change, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
511 if(user_ops->video_pres_mode_change)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
512 printf("Video Pres Mode Change, ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
513 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
514 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
515 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
516
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
517
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
518 void ifoPrint_VMGI_MAT(vmgi_mat_t *vmgi_mat) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
519
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
520 printf("VMG Identifier: %.12s\n", vmgi_mat->vmg_identifier);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
521 printf("Last Sector of VMG: %08x\n", vmgi_mat->vmg_last_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
522 printf("Last Sector of VMGI: %08x\n", vmgi_mat->vmgi_last_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
523 printf("Specification version number: %01x.%01x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
524 vmgi_mat->specification_version >> 4,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
525 vmgi_mat->specification_version & 0xf);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
526 /* Byte 2 of 'VMG Category' (00xx0000) is the Region Code */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
527 printf("VMG Category: %08x\n", vmgi_mat->vmg_category);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
528 printf("VMG Number of Volumes: %i\n", vmgi_mat->vmg_nr_of_volumes);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
529 printf("VMG This Volume: %i\n", vmgi_mat->vmg_this_volume_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
530 printf("Disc side %i\n", vmgi_mat->disc_side);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
531 printf("VMG Number of Title Sets %i\n", vmgi_mat->vmg_nr_of_title_sets);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
532 printf("Provider ID: %.32s\n", vmgi_mat->provider_identifier);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
533 printf("VMG POS Code: %08x", (uint32_t)(vmgi_mat->vmg_pos_code >> 32));
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
534 printf("%08x\n", (uint32_t)vmgi_mat->vmg_pos_code);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
535 printf("End byte of VMGI_MAT: %08x\n", vmgi_mat->vmgi_last_byte);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
536 printf("Start byte of First Play PGC FP PGC: %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
537 vmgi_mat->first_play_pgc);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
538 printf("Start sector of VMGM_VOBS: %08x\n", vmgi_mat->vmgm_vobs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
539 printf("Start sector of TT_SRPT: %08x\n", vmgi_mat->tt_srpt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
540 printf("Start sector of VMGM_PGCI_UT: %08x\n", vmgi_mat->vmgm_pgci_ut);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
541 printf("Start sector of PTL_MAIT: %08x\n", vmgi_mat->ptl_mait);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
542 printf("Start sector of VTS_ATRT: %08x\n", vmgi_mat->vts_atrt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
543 printf("Start sector of TXTDT_MG: %08x\n", vmgi_mat->txtdt_mgi);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
544 printf("Start sector of VMGM_C_ADT: %08x\n", vmgi_mat->vmgm_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
545 printf("Start sector of VMGM_VOBU_ADMAP: %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
546 vmgi_mat->vmgm_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
547 printf("Video attributes of VMGM_VOBS: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
548 ifoPrint_video_attributes(&vmgi_mat->vmgm_video_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
549 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
550 printf("VMGM Number of Audio attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
551 vmgi_mat->nr_of_vmgm_audio_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
552 if(vmgi_mat->nr_of_vmgm_audio_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
553 printf("\tstream %i status: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
554 ifoPrint_audio_attributes(&vmgi_mat->vmgm_audio_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
555 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
556 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
557 printf("VMGM Number of Sub-picture attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
558 vmgi_mat->nr_of_vmgm_subp_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
559 if(vmgi_mat->nr_of_vmgm_subp_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
560 printf("\tstream %2i status: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
561 ifoPrint_subp_attributes(&vmgi_mat->vmgm_subp_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
562 printf("\n");
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
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
567 void ifoPrint_VTSI_MAT(vtsi_mat_t *vtsi_mat) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
568 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
569
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
570 printf("VTS Identifier: %.12s\n", vtsi_mat->vts_identifier);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
571 printf("Last Sector of VTS: %08x\n", vtsi_mat->vts_last_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
572 printf("Last Sector of VTSI: %08x\n", vtsi_mat->vtsi_last_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
573 printf("Specification version number: %01x.%01x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
574 vtsi_mat->specification_version>>4,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
575 vtsi_mat->specification_version&0xf);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
576 printf("VTS Category: %08x\n", vtsi_mat->vts_category);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
577 printf("End byte of VTSI_MAT: %08x\n", vtsi_mat->vtsi_last_byte);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
578 printf("Start sector of VTSM_VOBS: %08x\n", vtsi_mat->vtsm_vobs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
579 printf("Start sector of VTSTT_VOBS: %08x\n", vtsi_mat->vtstt_vobs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
580 printf("Start sector of VTS_PTT_SRPT: %08x\n", vtsi_mat->vts_ptt_srpt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
581 printf("Start sector of VTS_PGCIT: %08x\n", vtsi_mat->vts_pgcit);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
582 printf("Start sector of VTSM_PGCI_UT: %08x\n", vtsi_mat->vtsm_pgci_ut);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
583 printf("Start sector of VTS_TMAPT: %08x\n", vtsi_mat->vts_tmapt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
584 printf("Start sector of VTSM_C_ADT: %08x\n", vtsi_mat->vtsm_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
585 printf("Start sector of VTSM_VOBU_ADMAP: %08x\n",vtsi_mat->vtsm_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
586 printf("Start sector of VTS_C_ADT: %08x\n", vtsi_mat->vts_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
587 printf("Start sector of VTS_VOBU_ADMAP: %08x\n", vtsi_mat->vts_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
588
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
589 printf("Video attributes of VTSM_VOBS: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
590 ifoPrint_video_attributes(&vtsi_mat->vtsm_video_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
591 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
592
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
593 printf("VTSM Number of Audio attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
594 vtsi_mat->nr_of_vtsm_audio_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
595 if(vtsi_mat->nr_of_vtsm_audio_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
596 printf("\tstream %i status: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
597 ifoPrint_audio_attributes(&vtsi_mat->vtsm_audio_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
598 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
599 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
600
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
601 printf("VTSM Number of Sub-picture attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
602 vtsi_mat->nr_of_vtsm_subp_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
603 if(vtsi_mat->nr_of_vtsm_subp_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
604 printf("\tstream %2i status: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
605 ifoPrint_subp_attributes(&vtsi_mat->vtsm_subp_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
606 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
607 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
608
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
609 printf("Video attributes of VTS_VOBS: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
610 ifoPrint_video_attributes(&vtsi_mat->vts_video_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
611 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
612
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
613 printf("VTS Number of Audio attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
614 vtsi_mat->nr_of_vts_audio_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
615 for(i = 0; i < vtsi_mat->nr_of_vts_audio_streams; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
616 printf("\tstream %i status: ", i);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
617 ifoPrint_audio_attributes(&vtsi_mat->vts_audio_attr[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
618 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
619 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
620
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
621 printf("VTS Number of Subpicture attributes: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
622 vtsi_mat->nr_of_vts_subp_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
623 for(i = 0; i < vtsi_mat->nr_of_vts_subp_streams; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
624 printf("\tstream %2i status: ", i);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
625 ifoPrint_subp_attributes(&vtsi_mat->vts_subp_attr[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
626 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
627 }
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
628
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
629 /* FIXME: Add printing of MultiChannel Extension */
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
630 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
631
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
632
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
633 static void ifoPrint_PGC_COMMAND_TBL(pgc_command_tbl_t *cmd_tbl) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
634 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
635
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
636 if(cmd_tbl == NULL) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
637 printf("No Command table present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
638 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
639 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
640
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
641 printf("Number of Pre commands: %i\n", cmd_tbl->nr_of_pre);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
642 for(i = 0; i < cmd_tbl->nr_of_pre; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
643 ifoPrint_CMD(i, &cmd_tbl->pre_cmds[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
644 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
645
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
646 printf("Number of Post commands: %i\n", cmd_tbl->nr_of_post);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
647 for(i = 0; i < cmd_tbl->nr_of_post; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
648 ifoPrint_CMD(i, &cmd_tbl->post_cmds[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
649 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
650
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
651 printf("Number of Cell commands: %i\n", cmd_tbl->nr_of_cell);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
652 for(i = 0; i < cmd_tbl->nr_of_cell; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
653 ifoPrint_CMD(i, &cmd_tbl->cell_cmds[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
654 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
655 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
656
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
657
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
658 static void ifoPrint_PGC_PROGRAM_MAP(pgc_program_map_t *program_map, int nr) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
659 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
660
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
661 if(program_map == NULL) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
662 printf("No Program map present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
663 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
664 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
665
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
666 for(i = 0; i < nr; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
667 printf("Program %3i Entry Cell: %3i\n", i + 1, program_map[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
668 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
669 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
670
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
671
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
672 static void ifoPrint_CELL_PLAYBACK(cell_playback_t *cell_playback, int nr) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
673 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
674
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
675 if(cell_playback == NULL) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
676 printf("No Cell Playback info present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
677 return;
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 for(i=0;i<nr;i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
681 printf("Cell: %3i ", i + 1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
682
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
683 ifoPrint_time(&cell_playback[i].playback_time);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
684 printf("\t");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
685
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
686 if(cell_playback[i].block_mode || cell_playback[i].block_type) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
687 const char *s;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
688 switch(cell_playback[i].block_mode) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
689 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
690 s = "not a"; break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
691 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
692 s = "the first"; break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
693 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
694 default:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
695 s = ""; break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
696 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
697 s = "last"; break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
698 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
699 printf("%s cell in the block ", s);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
700
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
701 switch(cell_playback[i].block_type) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
702 case 0:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
703 printf("not part of the block ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
704 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
705 case 1:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
706 printf("angle block ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
707 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
708 case 2:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
709 case 3:
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
710 printf("(send bug repport) ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
711 break;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
712 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
713 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
714 if(cell_playback[i].seamless_play)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
715 printf("presented seamlessly ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
716 if(cell_playback[i].interleaved)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
717 printf("cell is interleaved ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
718 if(cell_playback[i].stc_discontinuity)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
719 printf("STC_discontinuty ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
720 if(cell_playback[i].seamless_angle)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
721 printf("only seamless angle ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
722 if(cell_playback[i].restricted)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
723 printf("restricted cell ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
724
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
725 if(cell_playback[i].still_time)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
726 printf("still time %d ", cell_playback[i].still_time);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
727 if(cell_playback[i].cell_cmd_nr)
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
728 printf("cell command %d", cell_playback[i].cell_cmd_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
729
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
730 printf("\n\tStart sector: %08x\tFirst ILVU end sector: %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
731 cell_playback[i].first_sector,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
732 cell_playback[i].first_ilvu_end_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
733 printf("\tEnd sector: %08x\tLast VOBU start sector: %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
734 cell_playback[i].last_sector,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
735 cell_playback[i].last_vobu_start_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
736 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
737 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
738
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
739 static void ifoPrint_CELL_POSITION(cell_position_t *cell_position, int nr) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
740 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
741
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
742 if(cell_position == NULL) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
743 printf("No Cell Position info present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
744 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
745 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
746
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
747 for(i=0;i<nr;i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
748 printf("Cell: %3i has VOB ID: %3i, Cell ID: %3i\n", i + 1,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
749 cell_position[i].vob_id_nr, cell_position[i].cell_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
750 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
751 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
752
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
753
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
754 void ifoPrint_PGC(pgc_t *pgc) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
755 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
756
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
757 printf("Number of Programs: %i\n", pgc->nr_of_programs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
758 printf("Number of Cells: %i\n", pgc->nr_of_cells);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
759 /* Check that time is 0:0:0:0 also if nr_of_programs==0 */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
760 printf("Playback time: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
761 ifoPrint_time(&pgc->playback_time); printf("\n");
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
762
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
763 /* If no programs/no time then does this mean anything? */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
764 printf("Prohibited user operations: ");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
765 ifoPrint_USER_OPS(&pgc->prohibited_ops);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
766
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
767 for(i = 0; i < 8; i++) {
16649
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
768 if(pgc->audio_control[i].present) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
769 printf("Audio stream %i control: %04x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
770 i, pgc->audio_control[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
771 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
772 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
773
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
774 for(i = 0; i < 32; i++) {
16649
e1d6fbd607e0 Fix DVD audio and subtitle stream mapping, esp. for DVD with both 4:3 and
reimar
parents: 15874
diff changeset
775 if(pgc->subp_control[i].present) {
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
776 printf("Subpicture stream %2i control: %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
777 i, pgc->subp_control[i]);
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
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
781 printf("Next PGC number: %i\n", pgc->next_pgc_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
782 printf("Prev PGC number: %i\n", pgc->prev_pgc_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
783 printf("GoUp PGC number: %i\n", pgc->goup_pgc_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
784 if(pgc->nr_of_programs != 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
785 printf("Still time: %i seconds (255=inf)\n", pgc->still_time);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
786 if(pgc->pg_playback_mode == 0)
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
787 printf("PG Playback mode: Sequential\n");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
788 else if(!(pgc->pg_playback_mode & 0x80))
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
789 printf("PG Playback mode: Random %i\n", pgc->pg_playback_mode);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
790 else
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
791 printf("PG Playback mode: Shuffle %i\n", pgc->pg_playback_mode & 0x7f );
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
792 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
793
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
794 if(pgc->nr_of_programs != 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
795 for(i = 0; i < 16; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
796 printf("Color %2i: %08x\n", i, pgc->palette[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
797 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
798 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
799
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
800 /* Memmory offsets to div. tables. */
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
801 ifoPrint_PGC_COMMAND_TBL(pgc->command_tbl);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
802 ifoPrint_PGC_PROGRAM_MAP(pgc->program_map, pgc->nr_of_programs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
803 ifoPrint_CELL_PLAYBACK(pgc->cell_playback, pgc->nr_of_cells);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
804 ifoPrint_CELL_POSITION(pgc->cell_position, pgc->nr_of_cells);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
805 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
806
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
807
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
808 void ifoPrint_TT_SRPT(tt_srpt_t *tt_srpt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
809 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
810
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
811 printf("Number of TitleTrack search pointers: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
812 tt_srpt->nr_of_srpts);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
813 for(i=0;i<tt_srpt->nr_of_srpts;i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
814 printf("Title Track index %i\n", i + 1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
815 printf("\tTitle set number (VTS): %i",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
816 tt_srpt->title[i].title_set_nr);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
817 printf("\tVTS_TTN: %i\n", tt_srpt->title[i].vts_ttn);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
818 printf("\tNumber of PTTs: %i\n", tt_srpt->title[i].nr_of_ptts);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
819 printf("\tNumber of angles: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
820 tt_srpt->title[i].nr_of_angles);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
821 printf("\tTitle playback type: %s%s%s%s%s%s%s\n",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
822 tt_srpt->title[i].pb_ty.multi_or_random_pgc_title ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
823 " One Random PGC Title or Multi PGC Title" :
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
824 " One Sequential PGC Title",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
825 tt_srpt->title[i].pb_ty.jlc_exists_in_cell_cmd ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
826 "" : ", No Link/Jump/Call exists in Cell command",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
827 tt_srpt->title[i].pb_ty.jlc_exists_in_prepost_cmd ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
828 "" : ", No Link/Jump/Call exists in Pre- and/or Post-command",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
829 tt_srpt->title[i].pb_ty.jlc_exists_in_button_cmd ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
830 "" : ", No Link/Jump/Call exists in Button command",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
831 tt_srpt->title[i].pb_ty.jlc_exists_in_tt_dom ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
832 "" : ", No Link/Jump/Call exists in TT_DOM",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
833 tt_srpt->title[i].pb_ty.chapter_search_or_play ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
834 ", UOP1 (TT_Play and PTT_Search) prohibited" : "",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
835 tt_srpt->title[i].pb_ty.title_or_time_play ?
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
836 ", UOP0 (Time_Play and Time_Search) prohibited" : ""
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
837 );
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
838 printf("\tParental ID field: %04x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
839 tt_srpt->title[i].parental_id);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
840 printf("\tTitle set starting sector %08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
841 tt_srpt->title[i].title_set_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
842 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
843 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
844
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
845
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
846 void ifoPrint_VTS_PTT_SRPT(vts_ptt_srpt_t *vts_ptt_srpt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
847 int i, j;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
848 printf(" nr_of_srpts %i last byte %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
849 vts_ptt_srpt->nr_of_srpts,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
850 vts_ptt_srpt->last_byte);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
851 for(i=0;i<vts_ptt_srpt->nr_of_srpts;i++) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
852 printf("\nVTS_PTT number %d has a offset %d relative to VTS_PTT_SRPT\n",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
853 i + 1, vts_ptt_srpt->ttu_offset[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
854 for(j=0;j<vts_ptt_srpt->title[i].nr_of_ptts;j++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
855 printf("VTS_PTT_SRPT - Title %3i part %3i: PGC: %3i PG: %3i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
856 i + 1, j + 1,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
857 vts_ptt_srpt->title[i].ptt[j].pgcn,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
858 vts_ptt_srpt->title[i].ptt[j].pgn );
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
859 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
860 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
861 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
862
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
863
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
864 void ifoPrint_PTL_MAIT(ptl_mait_t *ptl_mait) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
865 int i, level, vts;
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
866
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
867 printf("Number of Countries: %i\n", ptl_mait->nr_of_countries);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
868 printf("Number of VTSs: %i\n", ptl_mait->nr_of_vtss);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
869 printf("Last byte: %i\n", ptl_mait->last_byte);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
870
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
871 for(i = 0; i < ptl_mait->nr_of_countries; i++) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
872
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
873 printf("Start byte: %i\n", ptl_mait->countries[i].pf_ptl_mai_start_byte);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
874 printf("Parental Masks for country: %c%c\n",
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
875 ptl_mait->countries[i].country_code >> 8,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
876 ptl_mait->countries[i].country_code & 0xff);
15874
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 for(vts = 0; vts <= ptl_mait->nr_of_vtss; vts++) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
879 if( vts == 0 ) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
880 printf("VMG ");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
881 } else {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
882 printf("VTS %2d ", vts);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
883 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
884 for(level = 0; level < 8; level++) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
885 printf("%d: %04x ", level,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
886 ptl_mait->countries[i].pf_ptl_mai[vts][level] );
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
887 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
888 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
889 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
890 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
891 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
892
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
893 void ifoPrint_VTS_TMAPT(vts_tmapt_t *vts_tmapt) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
894 unsigned int timeunit;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
895 int i, j;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
896
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
897 printf("Number of VTS_TMAPS: %i\n", vts_tmapt->nr_of_tmaps);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
898 printf("Last byte: %i\n", vts_tmapt->last_byte);
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 for(i = 0; i < vts_tmapt->nr_of_tmaps; i++) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
901 printf("TMAP %i\n", i + 1);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
902 printf(" offset %d relative to VTS_TMAPTI\n", vts_tmapt->tmap_offset[i]);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
903 printf(" Time unit (seconds): %i\n", vts_tmapt->tmap[i].tmu);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
904 printf(" Number of entries: %i\n", vts_tmapt->tmap[i].nr_of_entries);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
905 timeunit = vts_tmapt->tmap[i].tmu;
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
906 for(j = 0; j < vts_tmapt->tmap[i].nr_of_entries; j++) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
907 unsigned int ac_time = timeunit * (j + 1);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
908 printf("Time: %2i:%02i:%02i VOBU Sector: 0x%08x %s\n",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
909 ac_time / (60 * 60), (ac_time / 60) % 60, ac_time % 60,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
910 vts_tmapt->tmap[i].map_ent[j] & 0x7fffffff,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
911 (vts_tmapt->tmap[i].map_ent[j] >> 31) ? "discontinuity" : "");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
912 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
913 }
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
914 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
915
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
916 void ifoPrint_C_ADT(c_adt_t *c_adt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
917 int i, entries;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
918
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
919 printf("Number of VOBs in this VOBS: %i\n", c_adt->nr_of_vobs);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
920 //entries = c_adt->nr_of_vobs;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
921 entries = (c_adt->last_byte + 1 - C_ADT_SIZE)/sizeof(c_adt_t);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
922
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
923 for(i = 0; i < entries; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
924 printf("VOB ID: %3i, Cell ID: %3i ",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
925 c_adt->cell_adr_table[i].vob_id, c_adt->cell_adr_table[i].cell_id);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
926 printf("Sector (first): 0x%08x (last): 0x%08x\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
927 c_adt->cell_adr_table[i].start_sector,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
928 c_adt->cell_adr_table[i].last_sector);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
929 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
930 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
931
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
932
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
933 void ifoPrint_VOBU_ADMAP(vobu_admap_t *vobu_admap) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
934 int i, entries;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
935
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
936 entries = (vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE)/4;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
937 for(i = 0; i < entries; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
938 printf("VOBU %5i First sector: 0x%08x\n", i + 1,
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
939 vobu_admap->vobu_start_sectors[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
940 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
941 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
942
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
943
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
944 void ifoPrint_PGCIT(pgcit_t *pgcit) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
945 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
946
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
947 for(i = 0; i < pgcit->nr_of_pgci_srp; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
948 printf("\nProgram (PGC): %3i\t", i + 1);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
949 printf("PGC Category: Entry id 0x%02x, ", pgcit->pgci_srp[i].entry_id);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
950 printf("Parental ID mask 0x%04x\n", pgcit->pgci_srp[i].ptl_id_mask);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
951 ifoPrint_PGC(pgcit->pgci_srp[i].pgc);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
952 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
953 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
954
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
955
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
956 void ifoPrint_PGCI_UT(pgci_ut_t *pgci_ut) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
957 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
958
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
959 printf("Number of Menu Language Units (PGCI_LU): %3i\n", pgci_ut->nr_of_lus);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
960 for(i = 0; i < pgci_ut->nr_of_lus; i++) {
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
961 printf("\nMenu Language Code: %c%c (%c)\n",
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
962 pgci_ut->lu[i].lang_code >> 8,
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
963 pgci_ut->lu[i].lang_code & 0xff,
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
964 pgci_ut->lu[i].lang_extension ? pgci_ut->lu[i].lang_extension :' ');
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
965 printf("Menu Existence: %02x\n", pgci_ut->lu[i].exists);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
966 ifoPrint_PGCIT(pgci_ut->lu[i].pgcit);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
967 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
968 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
969
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
970
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
971 static void ifoPrint_VTS_ATTRIBUTES(vts_attributes_t *vts_attributes) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
972 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
973
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
974 printf("VTS_CAT Application type: %08x\n", vts_attributes->vts_cat);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
975
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
976 printf("Video attributes of VTSM_VOBS: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
977 ifoPrint_video_attributes(&vts_attributes->vtsm_vobs_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
978 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
979 printf("Number of Audio streams: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
980 vts_attributes->nr_of_vtsm_audio_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
981 if(vts_attributes->nr_of_vtsm_audio_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
982 printf("\tstream %i attributes: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
983 ifoPrint_audio_attributes(&vts_attributes->vtsm_audio_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
984 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
985 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
986 printf("Number of Subpicture streams: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
987 vts_attributes->nr_of_vtsm_subp_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
988 if(vts_attributes->nr_of_vtsm_subp_streams > 0) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
989 printf("\tstream %2i attributes: ", 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
990 ifoPrint_subp_attributes(&vts_attributes->vtsm_subp_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
991 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
992 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
993
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
994 printf("Video attributes of VTSTT_VOBS: ");
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
995 ifoPrint_video_attributes(&vts_attributes->vtstt_vobs_video_attr);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
996 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
997 printf("Number of Audio streams: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
998 vts_attributes->nr_of_vtstt_audio_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
999 for(i = 0; i < vts_attributes->nr_of_vtstt_audio_streams; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1000 printf("\tstream %i attributes: ", i);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1001 ifoPrint_audio_attributes(&vts_attributes->vtstt_audio_attr[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1002 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1003 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1004
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1005 printf("Number of Subpicture streams: %i\n",
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1006 vts_attributes->nr_of_vtstt_subp_streams);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1007 for(i = 0; i < vts_attributes->nr_of_vtstt_subp_streams; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1008 printf("\tstream %2i attributes: ", i);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1009 ifoPrint_subp_attributes(&vts_attributes->vtstt_subp_attr[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1010 printf("\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1011 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1012 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1013
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1014
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1015 void ifoPrint_VTS_ATRT(vts_atrt_t *vts_atrt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1016 int i;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1017
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1018 printf("Number of Video Title Sets: %3i\n", vts_atrt->nr_of_vtss);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1019 for(i = 0; i < vts_atrt->nr_of_vtss; i++) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1020 printf("\nVideo Title Set %i\n", i + 1);
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1021 printf(" offset %d relative to VMG_VTS_ATRT\n",
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1022 vts_atrt->vts_atrt_offsets[i]);
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1023 ifoPrint_VTS_ATTRIBUTES(&vts_atrt->vts[i]);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1024 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1025 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1026
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1027
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1028 void ifoPrint(dvd_reader_t *dvd, int title) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1029 ifo_handle_t *ifohandle;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1030
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1031 ifohandle = ifoOpen(dvd, title);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1032 if(!ifohandle) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1033 fprintf(stderr, "Can't open info file for title %d\n", title);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1034 return;
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1035 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1036
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1037
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1038 if(ifohandle->vmgi_mat) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1039
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1040 printf("VMG top level\n-------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1041 ifoPrint_VMGI_MAT(ifohandle->vmgi_mat);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1042
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1043 printf("\nFirst Play PGC\n--------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1044 ifoPrint_PGC(ifohandle->first_play_pgc);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1045
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1046 printf("\nTitle Track search pointer table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1047 printf( "------------------------------------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1048 ifoPrint_TT_SRPT(ifohandle->tt_srpt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1049
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1050 printf("\nMenu PGCI Unit table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1051 printf( "--------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1052 if(ifohandle->pgci_ut) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1053 ifoPrint_PGCI_UT(ifohandle->pgci_ut);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1054 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1055 printf("No PGCI Unit table present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1056 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1057
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1058 printf("\nParental Manegment Information table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1059 printf( "------------------------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1060 if(ifohandle->ptl_mait) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1061 ifoPrint_PTL_MAIT(ifohandle->ptl_mait);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1062 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1063 printf("No Parental Management Information present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1064 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1065
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1066 printf("\nVideo Title Set Attribute Table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1067 printf( "-------------------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1068 ifoPrint_VTS_ATRT(ifohandle->vts_atrt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1069
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1070 printf("\nText Data Manager Information\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1071 printf( "-----------------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1072 if(ifohandle->txtdt_mgi) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1073 //ifoPrint_TXTDT_MGI(&(vmgi->txtdt_mgi));
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1074 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1075 printf("No Text Data Manager Information present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1076 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1077
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1078 printf("\nMenu Cell Adress table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1079 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1080 if(ifohandle->menu_c_adt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1081 ifoPrint_C_ADT(ifohandle->menu_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1082 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1083 printf("No Menu Cell Adress table present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1084 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1085
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1086 printf("\nVideo Manager Menu VOBU address map\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1087 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1088 if(ifohandle->menu_vobu_admap) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1089 ifoPrint_VOBU_ADMAP(ifohandle->menu_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1090 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1091 printf("No Menu VOBU address map present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1092 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1093 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1094
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1095
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1096 if(ifohandle->vtsi_mat) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1097
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1098 printf("VTS top level\n-------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1099 ifoPrint_VTSI_MAT(ifohandle->vtsi_mat);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1100
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1101 printf("\nPart of Title Track search pointer table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1102 printf( "----------------------------------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1103 ifoPrint_VTS_PTT_SRPT(ifohandle->vts_ptt_srpt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1104
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1105 printf("\nPGCI Unit table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1106 printf( "--------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1107 ifoPrint_PGCIT(ifohandle->vts_pgcit);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1108
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1109 printf("\nMenu PGCI Unit table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1110 printf( "--------------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1111 if(ifohandle->pgci_ut) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1112 ifoPrint_PGCI_UT(ifohandle->pgci_ut);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1113 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1114 printf("No Menu PGCI Unit table present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1115 }
15874
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1116
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1117 printf("\nTime Search table\n");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1118 printf( "-----------------\n");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1119 if(ifohandle->vts_tmapt) {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1120 ifoPrint_VTS_TMAPT(ifohandle->vts_tmapt);
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1121 } else {
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1122 printf("No Time Search table present\n");
483e955893b8 update libdvdread to v0.9.4
aurel
parents: 14938
diff changeset
1123 }
7029
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1124
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1125 printf("\nMenu Cell Adress table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1126 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1127 if(ifohandle->menu_c_adt) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1128 ifoPrint_C_ADT(ifohandle->menu_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1129 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1130 printf("No Cell Adress table present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1131 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1132
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1133 printf("\nVideo Title Set Menu VOBU address map\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1134 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1135 if(ifohandle->menu_vobu_admap) {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1136 ifoPrint_VOBU_ADMAP(ifohandle->menu_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1137 } else {
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1138 printf("No Menu VOBU address map present\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1139 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1140
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1141 printf("\nCell Adress table\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1142 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1143 ifoPrint_C_ADT(ifohandle->vts_c_adt);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1144
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1145 printf("\nVideo Title Set VOBU address map\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1146 printf( "-----------------\n");
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1147 ifoPrint_VOBU_ADMAP(ifohandle->vts_vobu_admap);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1148 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1149
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1150 ifoClose(ifohandle);
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1151 }
9db58ffbd73c importing libdvdread 0.9.3 files
arpi
parents:
diff changeset
1152