Mercurial > libdvdnav.hg
comparison ifo_print.c @ 183:b0aa6f7931c0 src
merging patch from xine-lib's libdvdread
* this mostly aligns all data blocks in memory to make raw device reads work
* some MSVC related patches that went into xine-lib cvs are also included
author | mroi |
---|---|
date | Tue, 29 Apr 2003 15:14:00 +0000 |
parents | 330ef38ad968 |
children |
comparison
equal
deleted
inserted
replaced
182:071aee18f5aa | 183:b0aa6f7931c0 |
---|---|
71 printf("(%03d) ", row + 1); | 71 printf("(%03d) ", row + 1); |
72 for(i=0;i<8;i++) | 72 for(i=0;i<8;i++) |
73 printf("%02x ", command->bytes[i]); | 73 printf("%02x ", command->bytes[i]); |
74 printf("| "); | 74 printf("| "); |
75 | 75 |
76 //vmcmd(command); | 76 /* vmcmd(command); */ |
77 printf("\n"); | 77 printf("\n"); |
78 } | 78 } |
79 | 79 |
80 static void ifoPrint_video_attributes(video_attr_t *attr) { | 80 static void ifoPrint_video_attributes(video_attr_t *attr) { |
81 | 81 |
127 break; | 127 break; |
128 default: | 128 default: |
129 printf("(please send a bug report) "); | 129 printf("(please send a bug report) "); |
130 } | 130 } |
131 | 131 |
132 // Wide is allways allowed..!!! | 132 /* Wide is allways allowed..!!! */ |
133 switch(attr->permitted_df) { | 133 switch(attr->permitted_df) { |
134 case 0: | 134 case 0: |
135 printf("pan&scan+letterboxed "); | 135 printf("pan&scan+letterboxed "); |
136 break; | 136 break; |
137 case 1: | 137 case 1: |
138 printf("only pan&scan "); //?? | 138 printf("only pan&scan "); /* ?? */ |
139 break; | 139 break; |
140 case 2: | 140 case 2: |
141 printf("only letterboxed "); | 141 printf("only letterboxed "); |
142 break; | 142 break; |
143 case 3: | 143 case 3: |
144 // not specified | 144 /* not specified */ |
145 break; | 145 break; |
146 default: | 146 default: |
147 printf("(please send a bug report)"); | 147 printf("(please send a bug report)"); |
148 } | 148 } |
149 | 149 |
196 } | 196 } |
197 | 197 |
198 if(attr->film_mode) { | 198 if(attr->film_mode) { |
199 printf("film"); | 199 printf("film"); |
200 } else { | 200 } else { |
201 printf("video"); //camera | 201 printf("video"); /* camera */ |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 static void ifoPrint_audio_attributes(audio_attr_t *attr) { | 205 static void ifoPrint_audio_attributes(audio_attr_t *attr) { |
206 | 206 |
249 if(attr->multichannel_extension) | 249 if(attr->multichannel_extension) |
250 printf("multichannel_extension "); | 250 printf("multichannel_extension "); |
251 | 251 |
252 switch(attr->lang_type) { | 252 switch(attr->lang_type) { |
253 case 0: | 253 case 0: |
254 // not specified | 254 /* not specified */ |
255 CHECK_VALUE(attr->lang_code == 0 || attr->lang_code == 0xffff); | 255 CHECK_VALUE(attr->lang_code == 0 || attr->lang_code == 0xffff); |
256 break; | 256 break; |
257 case 1: | 257 case 1: |
258 printf("%c%c (%c) ", attr->lang_code>>8, attr->lang_code & 0xff, | 258 printf("%c%c (%c) ", attr->lang_code>>8, attr->lang_code & 0xff, |
259 attr->lang_extension ? attr->lang_extension : ' '); | 259 attr->lang_extension ? attr->lang_extension : ' '); |
262 printf("(please send a bug report) "); | 262 printf("(please send a bug report) "); |
263 } | 263 } |
264 | 264 |
265 switch(attr->application_mode) { | 265 switch(attr->application_mode) { |
266 case 0: | 266 case 0: |
267 // not specified | 267 /* not specified */ |
268 break; | 268 break; |
269 case 1: | 269 case 1: |
270 printf("karaoke mode "); | 270 printf("karaoke mode "); |
271 break; | 271 break; |
272 case 2: | 272 case 2: |
309 | 309 |
310 switch(attr->code_extension) { | 310 switch(attr->code_extension) { |
311 case 0: | 311 case 0: |
312 printf("Not specified "); | 312 printf("Not specified "); |
313 break; | 313 break; |
314 case 1: // Normal audio | 314 case 1: /* Normal audio */ |
315 printf("Normal Caption "); | 315 printf("Normal Caption "); |
316 break; | 316 break; |
317 case 2: // visually imparied | 317 case 2: /* visually imparied */ |
318 printf("Audio for visually impaired "); | 318 printf("Audio for visually impaired "); |
319 break; | 319 break; |
320 case 3: // Directors 1 | 320 case 3: /* Directors 1 */ |
321 printf("Director's comments 1 "); | 321 printf("Director's comments 1 "); |
322 break; | 322 break; |
323 case 4: // Directors 2 | 323 case 4: /* Directors 2 */ |
324 printf("Director's comments 2 "); | 324 printf("Director's comments 2 "); |
325 break; | 325 break; |
326 //case 4: // Music score ? | 326 /* case 4: Music score ? */ |
327 default: | 327 default: |
328 printf("(please send a bug report) "); | 328 printf("(please send a bug report) "); |
329 } | 329 } |
330 | 330 |
331 printf("%d ", attr->unknown3); | 331 printf("%d ", attr->unknown3); |
911 | 911 |
912 void ifoPrint_C_ADT(c_adt_t *c_adt) { | 912 void ifoPrint_C_ADT(c_adt_t *c_adt) { |
913 int i, entries; | 913 int i, entries; |
914 | 914 |
915 printf("Number of VOBs in this VOBS: %i\n", c_adt->nr_of_vobs); | 915 printf("Number of VOBs in this VOBS: %i\n", c_adt->nr_of_vobs); |
916 //entries = c_adt->nr_of_vobs; | 916 /* entries = c_adt->nr_of_vobs; */ |
917 entries = (c_adt->last_byte + 1 - C_ADT_SIZE)/sizeof(c_adt_t); | 917 entries = (c_adt->last_byte + 1 - C_ADT_SIZE)/sizeof(c_adt_t); |
918 | 918 |
919 for(i = 0; i < entries; i++) { | 919 for(i = 0; i < entries; i++) { |
920 printf("VOB ID: %3i, Cell ID: %3i ", | 920 printf("VOB ID: %3i, Cell ID: %3i ", |
921 c_adt->cell_adr_table[i].vob_id, c_adt->cell_adr_table[i].cell_id); | 921 c_adt->cell_adr_table[i].vob_id, c_adt->cell_adr_table[i].cell_id); |
1064 ifoPrint_VTS_ATRT(ifohandle->vts_atrt); | 1064 ifoPrint_VTS_ATRT(ifohandle->vts_atrt); |
1065 | 1065 |
1066 printf("\nText Data Manager Information\n"); | 1066 printf("\nText Data Manager Information\n"); |
1067 printf( "-----------------------------\n"); | 1067 printf( "-----------------------------\n"); |
1068 if(ifohandle->txtdt_mgi) { | 1068 if(ifohandle->txtdt_mgi) { |
1069 //ifoPrint_TXTDT_MGI(&(vmgi->txtdt_mgi)); | 1069 /* ifoPrint_TXTDT_MGI(&(vmgi->txtdt_mgi)); */ |
1070 } else { | 1070 } else { |
1071 printf("No Text Data Manager Information present\n"); | 1071 printf("No Text Data Manager Information present\n"); |
1072 } | 1072 } |
1073 | 1073 |
1074 printf("\nMenu Cell Adress table\n"); | 1074 printf("\nMenu Cell Adress table\n"); |