Mercurial > libdvdread4.hg
comparison ifo_print.c @ 60:aa36b2d85f8d src
Mark a large number of functions not used outside of the file as static.
author | diego |
---|---|
date | Fri, 06 Aug 2010 23:17:36 +0000 |
parents | 7b3c6a7220c3 |
children | 06fed92263cd |
comparison
equal
deleted
inserted
replaced
59:bfefcc426154 | 60:aa36b2d85f8d |
---|---|
493 printf("\n"); | 493 printf("\n"); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 | 497 |
498 void ifoPrint_VMGI_MAT(vmgi_mat_t *vmgi_mat) { | 498 static void ifoPrint_VMGI_MAT(vmgi_mat_t *vmgi_mat) { |
499 | 499 |
500 printf("VMG Identifier: %.12s\n", vmgi_mat->vmg_identifier); | 500 printf("VMG Identifier: %.12s\n", vmgi_mat->vmg_identifier); |
501 printf("Last Sector of VMG: %08x\n", vmgi_mat->vmg_last_sector); | 501 printf("Last Sector of VMG: %08x\n", vmgi_mat->vmg_last_sector); |
502 printf("Last Sector of VMGI: %08x\n", vmgi_mat->vmgi_last_sector); | 502 printf("Last Sector of VMGI: %08x\n", vmgi_mat->vmgi_last_sector); |
503 printf("Specification version number: %01x.%01x\n", | 503 printf("Specification version number: %01x.%01x\n", |
542 printf("\n"); | 542 printf("\n"); |
543 } | 543 } |
544 } | 544 } |
545 | 545 |
546 | 546 |
547 void ifoPrint_VTSI_MAT(vtsi_mat_t *vtsi_mat) { | 547 static void ifoPrint_VTSI_MAT(vtsi_mat_t *vtsi_mat) { |
548 int i; | 548 int i; |
549 | 549 |
550 printf("VTS Identifier: %.12s\n", vtsi_mat->vts_identifier); | 550 printf("VTS Identifier: %.12s\n", vtsi_mat->vts_identifier); |
551 printf("Last Sector of VTS: %08x\n", vtsi_mat->vts_last_sector); | 551 printf("Last Sector of VTS: %08x\n", vtsi_mat->vts_last_sector); |
552 printf("Last Sector of VTSI: %08x\n", vtsi_mat->vtsi_last_sector); | 552 printf("Last Sector of VTSI: %08x\n", vtsi_mat->vtsi_last_sector); |
730 cell_position[i].vob_id_nr, cell_position[i].cell_nr); | 730 cell_position[i].vob_id_nr, cell_position[i].cell_nr); |
731 } | 731 } |
732 } | 732 } |
733 | 733 |
734 | 734 |
735 void ifoPrint_PGC(pgc_t *pgc) { | 735 static void ifoPrint_PGC(pgc_t *pgc) { |
736 int i; | 736 int i; |
737 | 737 |
738 if (!pgc) { | 738 if (!pgc) { |
739 printf("None\n"); | 739 printf("None\n"); |
740 return; | 740 return; |
787 ifoPrint_CELL_PLAYBACK(pgc->cell_playback, pgc->nr_of_cells); | 787 ifoPrint_CELL_PLAYBACK(pgc->cell_playback, pgc->nr_of_cells); |
788 ifoPrint_CELL_POSITION(pgc->cell_position, pgc->nr_of_cells); | 788 ifoPrint_CELL_POSITION(pgc->cell_position, pgc->nr_of_cells); |
789 } | 789 } |
790 | 790 |
791 | 791 |
792 void ifoPrint_TT_SRPT(tt_srpt_t *tt_srpt) { | 792 static void ifoPrint_TT_SRPT(tt_srpt_t *tt_srpt) { |
793 int i; | 793 int i; |
794 | 794 |
795 printf("Number of TitleTrack search pointers: %i\n", | 795 printf("Number of TitleTrack search pointers: %i\n", |
796 tt_srpt->nr_of_srpts); | 796 tt_srpt->nr_of_srpts); |
797 for(i=0;i<tt_srpt->nr_of_srpts;i++) { | 797 for(i=0;i<tt_srpt->nr_of_srpts;i++) { |
820 tt_srpt->title[i].title_set_sector); | 820 tt_srpt->title[i].title_set_sector); |
821 } | 821 } |
822 } | 822 } |
823 | 823 |
824 | 824 |
825 void ifoPrint_VTS_PTT_SRPT(vts_ptt_srpt_t *vts_ptt_srpt) { | 825 static void ifoPrint_VTS_PTT_SRPT(vts_ptt_srpt_t *vts_ptt_srpt) { |
826 int i, j; | 826 int i, j; |
827 printf(" nr_of_srpts %i last byte %i\n", | 827 printf(" nr_of_srpts %i last byte %i\n", |
828 vts_ptt_srpt->nr_of_srpts, | 828 vts_ptt_srpt->nr_of_srpts, |
829 vts_ptt_srpt->last_byte); | 829 vts_ptt_srpt->last_byte); |
830 for(i=0;i<vts_ptt_srpt->nr_of_srpts;i++) { | 830 for(i=0;i<vts_ptt_srpt->nr_of_srpts;i++) { |
841 static void hexdump(uint8_t *ptr, int len) { | 841 static void hexdump(uint8_t *ptr, int len) { |
842 while(len--) | 842 while(len--) |
843 printf("%02x ", *ptr++); | 843 printf("%02x ", *ptr++); |
844 } | 844 } |
845 | 845 |
846 void ifoPrint_PTL_MAIT(ptl_mait_t *ptl_mait) { | 846 static void ifoPrint_PTL_MAIT(ptl_mait_t *ptl_mait) { |
847 int i, j; | 847 int i, j; |
848 | 848 |
849 printf("Number of Countries: %i\n", ptl_mait->nr_of_countries); | 849 printf("Number of Countries: %i\n", ptl_mait->nr_of_countries); |
850 printf("Number of VTSs: %i\n", ptl_mait->nr_of_vtss); | 850 printf("Number of VTSs: %i\n", ptl_mait->nr_of_vtss); |
851 //printf("Last byte: %i\n", ptl_mait->last_byte); | 851 //printf("Last byte: %i\n", ptl_mait->last_byte); |
870 printf("\n"); | 870 printf("\n"); |
871 } | 871 } |
872 } | 872 } |
873 } | 873 } |
874 | 874 |
875 void ifoPrint_VTS_TMAPT(vts_tmapt_t *vts_tmapt) { | 875 static void ifoPrint_VTS_TMAPT(vts_tmapt_t *vts_tmapt) { |
876 unsigned int timeunit; | 876 unsigned int timeunit; |
877 int i, j; | 877 int i, j; |
878 | 878 |
879 printf("Number of VTS_TMAPS: %i\n", vts_tmapt->nr_of_tmaps); | 879 printf("Number of VTS_TMAPS: %i\n", vts_tmapt->nr_of_tmaps); |
880 printf("Last byte: %i\n", vts_tmapt->last_byte); | 880 printf("Last byte: %i\n", vts_tmapt->last_byte); |
893 (vts_tmapt->tmap[i].map_ent[j] >> 31) ? "discontinuity" : ""); | 893 (vts_tmapt->tmap[i].map_ent[j] >> 31) ? "discontinuity" : ""); |
894 } | 894 } |
895 } | 895 } |
896 } | 896 } |
897 | 897 |
898 void ifoPrint_C_ADT(c_adt_t *c_adt) { | 898 static void ifoPrint_C_ADT(c_adt_t *c_adt) { |
899 int i, entries; | 899 int i, entries; |
900 | 900 |
901 printf("Number of VOBs in this VOBS: %i\n", c_adt->nr_of_vobs); | 901 printf("Number of VOBs in this VOBS: %i\n", c_adt->nr_of_vobs); |
902 //entries = c_adt->nr_of_vobs; | 902 //entries = c_adt->nr_of_vobs; |
903 entries = (c_adt->last_byte + 1 - C_ADT_SIZE)/sizeof(c_adt_t); | 903 entries = (c_adt->last_byte + 1 - C_ADT_SIZE)/sizeof(c_adt_t); |
910 c_adt->cell_adr_table[i].last_sector); | 910 c_adt->cell_adr_table[i].last_sector); |
911 } | 911 } |
912 } | 912 } |
913 | 913 |
914 | 914 |
915 void ifoPrint_VOBU_ADMAP(vobu_admap_t *vobu_admap) { | 915 static void ifoPrint_VOBU_ADMAP(vobu_admap_t *vobu_admap) { |
916 int i, entries; | 916 int i, entries; |
917 | 917 |
918 entries = (vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE)/4; | 918 entries = (vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE)/4; |
919 for(i = 0; i < entries; i++) { | 919 for(i = 0; i < entries; i++) { |
920 printf("VOBU %5i First sector: 0x%08x\n", i + 1, | 920 printf("VOBU %5i First sector: 0x%08x\n", i + 1, |
921 vobu_admap->vobu_start_sectors[i]); | 921 vobu_admap->vobu_start_sectors[i]); |
922 } | 922 } |
923 } | 923 } |
924 | 924 |
925 const char *ifo_print_menu_name(int type) { | 925 static const char *ifo_print_menu_name(int type) { |
926 const char *menu_name; | 926 const char *menu_name; |
927 menu_name=""; | 927 menu_name=""; |
928 switch (type) { | 928 switch (type) { |
929 case 2: | 929 case 2: |
930 menu_name="Title"; | 930 menu_name="Title"; |
950 } | 950 } |
951 return &menu_name[0]; | 951 return &menu_name[0]; |
952 } | 952 } |
953 | 953 |
954 /* pgc_type=1 for menu, 0 for title. */ | 954 /* pgc_type=1 for menu, 0 for title. */ |
955 void ifoPrint_PGCIT(pgcit_t *pgcit, int pgc_type) { | 955 static void ifoPrint_PGCIT(pgcit_t *pgcit, int pgc_type) { |
956 int i; | 956 int i; |
957 | 957 |
958 printf("\nNumber of Program Chains: %3i\n", pgcit->nr_of_pgci_srp); | 958 printf("\nNumber of Program Chains: %3i\n", pgcit->nr_of_pgci_srp); |
959 for(i = 0; i < pgcit->nr_of_pgci_srp; i++) { | 959 for(i = 0; i < pgcit->nr_of_pgci_srp; i++) { |
960 printf("\nProgram (PGC): %3i\n", i + 1); | 960 printf("\nProgram (PGC): %3i\n", i + 1); |
974 ifoPrint_PGC(pgcit->pgci_srp[i].pgc); | 974 ifoPrint_PGC(pgcit->pgci_srp[i].pgc); |
975 } | 975 } |
976 } | 976 } |
977 | 977 |
978 | 978 |
979 void ifoPrint_PGCI_UT(pgci_ut_t *pgci_ut) { | 979 static void ifoPrint_PGCI_UT(pgci_ut_t *pgci_ut) { |
980 int i, menu; | 980 int i, menu; |
981 | 981 |
982 printf("Number of Menu Language Units (PGCI_LU): %3i\n", pgci_ut->nr_of_lus); | 982 printf("Number of Menu Language Units (PGCI_LU): %3i\n", pgci_ut->nr_of_lus); |
983 for(i = 0; i < pgci_ut->nr_of_lus; i++) { | 983 for(i = 0; i < pgci_ut->nr_of_lus; i++) { |
984 printf("\nMenu Language Unit %d\n", i+1); | 984 printf("\nMenu Language Unit %d\n", i+1); |
1063 printf("\n"); | 1063 printf("\n"); |
1064 } | 1064 } |
1065 } | 1065 } |
1066 | 1066 |
1067 | 1067 |
1068 void ifoPrint_VTS_ATRT(vts_atrt_t *vts_atrt) { | 1068 static void ifoPrint_VTS_ATRT(vts_atrt_t *vts_atrt) { |
1069 int i; | 1069 int i; |
1070 | 1070 |
1071 printf("Number of Video Title Sets: %3i\n", vts_atrt->nr_of_vtss); | 1071 printf("Number of Video Title Sets: %3i\n", vts_atrt->nr_of_vtss); |
1072 for(i = 0; i < vts_atrt->nr_of_vtss; i++) { | 1072 for(i = 0; i < vts_atrt->nr_of_vtss; i++) { |
1073 printf("\nVideo Title Set %i\n", i + 1); | 1073 printf("\nVideo Title Set %i\n", i + 1); |