PROGRAMMER'S GUIDEStream system library
■ | Advance
Stream system library

1. 1. Overview


The stream system library is a library for efficiently reading streams on CD (interleaved files, etc.).

1.1 Library configuration

Figure 1.1 shows the CD-related library structure.

Figure 1.1 CD-related library configuration
┌────────────────────────────────┐ 
│ │ 
│ Application │ 
│ │ 
└────────────────────────────────┘ 
 
┌───────┐ ┏━━━━━━━━━━━┓ ┌────────┐ 
│ MPEG │ ┃ Stream system ┃ │ File system │ 
│ Library │ ┃ Library ┃ │ Library │ 
│ │ ┃ ┏━━━┛ │ │ 
│ │ ┃ ┃ ┌─── ┘ │ 
│ │ ┃ ┃ │ │ │ 
└───────┘ ┗━━━━━━━┛ └─────┐ │ 
│ │ 
┌───────────────────────┐ │ │ │ 
│ CD communication interface │ │ │ │ 
└───────────┬───────────┘└──┬───┘ 
Software │ │ 
━━━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━┿━━━━━━━━
Hardware │ │ 
┌──────┴─────┐ ┌──────┴──────┐ 
│ CD block │ │ SIMM, SCSI file │ 
└────────────┘ └─────────────┘ 

1.2 Functional overview of stream system

(1) Supports access to CD-ROM XA level files

(2) Support various transfer methods

(3) Support access by file identifier

Figure 1.2 Overview of stream system

The stream system allows you to treat multiple interleaved streams as logically standing data. Each stream is distinguished by a subheader.
In the stream system, the application performs the transfer process by calling the server function. If you register a transfer function, the server function calls the transfer function instead of transferring it to the buffer. The application can transfer data while converting it using the registered transfer function.


■ | Advance
PROGRAMMER'S GUIDEStream system library
Copyright SEGA ENTERPRISES, LTD., 1997