★ MOVIE TOOLS GUIDE ★ Cinepak for SEGA Saturn"example"
"example"
CPK_SetTrModeCd (cpk, CPK_TRMODE_SCU); / * Transfer by SCU-DMA * / CPK_SetLoadNum (cpk, 10); / * Maximum value of one transfer [Sector] * /
if (CPK_GetPlayStatus (cpk_now) == CPK_STAT_PLAY_TIME) {
if (CPK_GetPlayStatus (cpk_next)! = CPK_STAT_PLAY_STOP) {
/ * It's in the transition period to the next handle, so never * /
/ * Do not call CPK_EntryNext. * /
} else {
/ * Since the processing of the next handle has not started yet * /
/ * It is possible to change the registration of the next handle. * /
/ * Please refer to [Caution]. * /
}
} else {
/ * It has already been switched to the registered handle. * /
/ * It is possible to register the next handle. * /
}
Area [pixel] | Number of frame divisions (number of tiles) |
|---|---|
96000 = 480 x 200 or more | 3 |
95744 = 352 × 272 or less | 2 |
57344 = 256 × 224 or less | 1 (Do not divide) |
ring ≧ header + sound + frame
ring: Ring buffer size header: File header size (rounded up to the sector size boundary) sound: Sound 0.5 seconds size frame: 1 frame uncompressed size
| Audio conditions | Marginal video performance |
|---|---|
44kHz, 16bit, stereo | 320 × 224 [dot] 0.60 [fps] |
22kHz, 8bit, monaural | 320 × 224 [dot] 1.32 [fps] |
Video only movie | 320 × 224 [dot] 1.42 [fps] |
Video only movie | 160 × 112 [dot] 5.71 [fps] |
:> hist.txt [RET] : d 04000000 04001000; l [RET] :>-[RET]
======== + ========================================= === +
ADDRESS: 0 1 2 3 4 5 6 7 8 9 ABCDEF:
======== + ========================================= === +
04000000: AAAA_AAAA ---- ---- ---- ---- ---- ----:
04000010: "Err" ---- VVVV ---- ---- EEEE_EEEE: Error
04000020: "Task" PPPP VVVV HHHH_HHHH CCCC_CCCC: start of CPK_MeTask
04000030: "RWri" WWWW VVVV HHHH_HHHH DDDD_DDDD: WRIte Ringbuffer
04000040: "RRea" RRRR VVVV HHHH_HHHH DDDD_DDDD: REAd Ringbuffer
04000050: "DOn" FFFF VVVV LLLL_LLLL TTTT_TTTT: set Disp flag On
04000060: "DOff" FFFF VVVV HHHH_HHHH TTTT_TTTT: set Disp flag Off
04000070: "PcmS" MODE VVVV HHHH_HHHH ADDR SIZE: PCM Start
04000080: "PcmE" MODE VVVV HHHH_HHHH ---- ----: PCM Stop
04000090: "LosF" FFFF VVVV LFLF_LFLF SSSS_SSSS: LOse Frame
::
::
AAAA_AAAA: Current history information output address.
---- VVVV: Vbl counter. You can see the approximate time.
EEEE_EEEE: Error code.
PPPP ----: Playback status [-1, 0, 1, 2, 3, 4, 5].
HHHH_HHHH: Cinepak handle.
CCCC_CCCC: Cinepak task call counter.
DDDD_DDDD: Remaining amount of data in the ring buffer [byte]. You can see if the supply is stagnant.
WWWW ----: Write size to ring buffer [sector].
RRRR ----: Read size from ring buffer [byte].
FFFF ----: Frame number.
LLLL_LLLL: Delay time. (Current time-frame display time)
TTTT_TTTT: Frame time. (Frame display time + Frame display duration)
LFLF_LFLF: Frame drop counter.
SSSS_SSSS: Sample counter.
MODE ----: 0x80 ##: Stereo, 0x10 ##: 8bit, 0x ## 03: PCM stream playback number 3
(In the case of PCM Stop, only the PCM stream playback number is displayed)
ADDR ----: PCM buffer start address (4bit right shift value)
SIZE ----: PCM buffer size [sample / 1ch]
★ MOVIE TOOLS GUIDE ★ Cinepak for SEGA Saturn