Japanese
PROGRAMMER'S GUIDECD communication I/F (MPEG part)
■ | Go forward
CD communication I/F (MPEG part)

1. overview


This document summarizes the functions related to the MPEG part of the CD block and the external specifications related to the MPEG part of the CD communication interface.
The CD communication interface of the MPEG part is abbreviated as MPEG communication interface.

1.1 System configuration

Figure 1.1 shows the MPEG-related system configuration.

Figure 1.1 MPEG-related system configuration

 ┌──────────────────────────────────────────┬─┐
 │┌────────────────────────────────────────┐│ │
 ││         Host side program              ││ │
 ││  (MPEG library, application, etc.)     ││ │
 │└────────────────────────────────────────┘│h│
 │     │CD comm   │MPEG comm   ↑            │o│
 │     │functions │functions   │            │s│
 │     ↓          ↓            │            │t│
 │┌─────────────────────┐┌ ─ ─ ┴ ─ ─ ─ ─ ─ ┐│ │
 ││  CD communication   │ (Data transfer    │ │
 ││      interface      ││ module such as  ││ │
 ││                     │      DMA)         │ │
 │└─────────────────────┘└ ─ ─ ┬ ─ ─ ─ ─ ─ ┘│ │
 └─────────────────────────────┼────────────┴─┘
        │         │            │
CD block│CD       │MPEG        │        
 comms  │command  │command     │ Extracted data
        ↓         ↓            │          
 ┌─────────────────────────────┼────────────┬─┐
 │                        ┌────┴───┐        │ │
 │                        │MPEG    │        │C│
 │                        │register│        │D│
 │ CD part       MPEG part└────┬───┘        │ │
 │functions      functions     │            │b│
 │┌──────┐      ┌────────┐     │            │l│
 ││  CD  │      │  MPEG  │     │video       │o│
 ││buffer├─────→│ device ├─────┤data        │c│
 │└──────┘MPEG  └────┬───┘     │            │k│
 │        stream     │audio    │            │ │
 │                   │data     │            │ │
 └───────────────────┼─────────┼────────────┴─┘
                     ↓         ↓     ┌──────┐
                   ┌────┐    ┌────┐  │  TV  │
                   │SCSP│    │VDP2├─→│screen│
                   └────┘    └────┘  │      │
                                     └──────┘
To play MPEG and actually output video and audio, separate VDP2 and SCSP settings are required.
Please refer to the VDP2 and SCSP manuals for configuration instructions.

The CDC function and CD block command in the CD part and MPEG part are abbreviated as follows.

1.2 Functions and features

(1) below is the function of the CD communication interface, and (2) to (8) are the functions of the CD block.

(1) Communication function with MPEG part of CD block

  1. A group of C language interface functions that communicate between the host and the MPEG part.
  2. Issue commands to the MPEG part and receive responses.
  3. There is almost a one-to-one correspondence with MPEG commands.

(2) MPEG video playback function
Decodes the MPEG stream (video/audio) stored in the buffer section and plays the video. Video and audio streams are stored in separate buffer sections.
The functions of the CD part are used to read and store the stream in the buffer section.

(3) Output destination switching function
Decoded image data can be output using the following method.

  1. Output directly to TV monitor via VDP2. (16 million colors)
  2. Transfer to host area and output using VDP. (32000 colors)

(4) Stream switching function
Two streams are stored in separate buffer sections, and playback is smoothly switched from one to the other at a fixed timing.

(5) Display screen control function

  1. window function
    You can set the display range of the decoded video as a window and further enlarge or reduce it.

  2. video effects
    Video effects such as ``mosaic'', ``blur'', and ``luminescence'' can be applied to the decoded video.

(6) Still image playback function
Still images are played back by sequentially decoding an MPEG stream consisting entirely of I pictures. (equivalent to JPEG)

(7) MPEG frame buffer function
Decoded image data in the MPEG frame buffer can be read into the buffer section, and conversely, image data in the buffer section can be written out to the MPEG frame buffer.

(8) MPEG sector buffer function
The MPEG decoder can be stopped and the MPEG buffer can be used as an MPEG sector buffer for data storage. The MPEG sector buffer reads and writes sectors to and from buffer partitions.
(1 sector 2048 bytes, total 256 sectors)


■ | Go forward
PROGRAMMER'S GUIDECD communication I/F (MPEG part)
Copyright SEGA ENTERPRISES, LTD., 1997