Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
vmg.c
Package: dvd-munitions.tar.gz [view]
Upload User: aoeyumen
Upload Date: 2007-01-06
Package Size: 3329k
Code Size: 1k
Category:
DVD
Development Platform:
Unix_Linux
- #ifdef PARSER
- #include <stdio.h>
- #endif
- #include <stdlib.h>
- #include <sys/types.h>
- #include <unistd.h>
- #include "misc.h"
- #include "ifo.h"
- void ifo_print_audiosub (u_char *ptr)
- {
- ifo_hdr_t *hdr = (ifo_hdr_t *) ptr;
- int i;
- u_int *start_list;
- printf ("n???n");
- printf ("---n");
- printf ("number of units: %dn", ntohs (hdr->num));
- printf ("length of table: 0x%xn", ntohl (hdr->len));
- start_list = (u_int *) calloc (ntohs (hdr->num), sizeof (u_int));
- ptr += IFO_HDR_LEN;
- for (i=0; i<ntohs(hdr->num); i++) {
- start_list[i] = get4bytes (ptr);
- ptr+=4;
- }
- for (i=0; i<ntohs(hdr->num); i++) {
- int s;
- u_int len;
- u_char *start_ptr;
- start_ptr = ptr = (u_char *) hdr + start_list[i];
- len = get4bytes (ptr);
- printf ("length of table: 0x%xn", len);
- ptr += 4;
- for (s=0; s<32*8+4; s++)
- printf ("%02x ", *ptr++);
- ifoPrintAudio (ifoGetAudio (ptr));
- ptr += 4+8*8;
- for (s=0; s<12; s++)
- printf ("%02x ", *ptr++);
- ifoPrintSPU (ifoGetSPU (ptr));
- ptr += 4+32*6;
- { int end;
- end = start_ptr + len - ptr;
- for (s=0; s<end; s++)
- printf ("%02x ", *ptr++);
- printf ("n");
- }
- }
- }