annotate ifo_print.c @ 82:aa4a7b151801 src

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