Japanese
PROGRAMMER'S GUIDEStream system library
■ | Go forward
stream system library

1. overview


The Stream System Library is a library for efficiently reading streams (such as interleaved files) on a CD.

1.1 Library configuration

Figure 1.1 shows the CD-related library configuration.

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

1.2 Overview of stream system functions

(1)Support CD-ROM XA level file access

(2) Support various transfer methods

(3)Support access by file identifier

Figure 1.2 Stream system overview diagram

The stream system allows multiple interleaved streams to be treated as logical data. Each stream is distinguished by a subheader.
In the stream system, applications perform transfer processing by calling server functions. If you register a transfer function, the server function calls the transfer function instead of transferring to the buffer. Applications can transfer data while converting it using registered transfer functions.


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