"example"
"example"
CPK_SetTrModeCd(cpk, CPK_TRMODE_SCU); /* Transfer using SCU-DMA */ CPK_SetLoadNum(cpk, 10); /* Maximum amount of transfer at one time [sector] */
if (CPK_GetPlayStatus(cpk_now) == CPK_STAT_PLAY_TIME) { if (CPK_GetPlayStatus(cpk_next) != CPK_STAT_PLAY_STOP) { /* We are currently in the transition period to the next handle, so never */ /* Do not call CPK_EntryNext. */ } else { /* Processing of the next handle has not started yet */ /* It is possible to change the registration of the next handle. */ /*Please refer to [Note]. */ } } else { /* It has already been switched to the registered handle. */ /* It is possible to register the next handle. */ }
How to stay seamless during the transition period
In this situation, in order to switch seamlessly without freezing the screen, wait for the next handle to start playing, call CPK_EntryNext, then use CPK_CheckChange to make sure that enough data has been supplied, and switch using CPK_Change. .
How to force a switch during the transition period If seamlessness is not required, stop (erase) the currently playing handle and the next handle, and start playing the handle you want to play using CPK_Start or CPK_EntryNext and CPK_Change.
Area [pixel] | Number of frame divisions (number of tiles) |
---|---|
96000 = 480×200 or more | 3 |
95744 = 352×272 or less | 2 |
57344 = 256×224 or less | 1 (Do not split) |
You can now play 24-bit uncompressed movies. Use this when you want to suppress the image size and frame rate and prioritize image quality.
It does not support 15-bit color movies; it supports 32,000-color display of 24-bit data, but you will be wasting high-quality data.
Convert an uncompressed QuickTime Movie with MovieToSaturn_J. There are no functions added for playing uncompressed movies. Since the file header is interpreted and processed, it can be played using exactly the same procedure. However, the ring buffer must be larger than when compressed.
Ring buffers must be allocated to meet the following conditions:
ring ≧ header + sound + frame
ring: Ring buffer size header: File header size (rounded up to sector size boundary) sound : Size of 0.5 seconds of sound frame : 1 frame uncompressed size
Based on the data transfer rate from the CD, the video performance will be as shown below.
Audio conditions | Limit 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 A B C D E F : ========+============================================+ 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. Know the approximate time. EEEE_EEEE : Error code. PPPP ---- : Playback status [-1, 0, 1, 2, 3, 4, 5]. HHHH_HHHH : Cinepack handle. CCCC_CCCC : Cinepack task call counter. DDDD_DDDD : Remaining amount of data in the ring buffer [byte]. Find out if there is a supply disruption. 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 : Dropped frame counter. SSSS_SSSS : Sample counter. MODE ---- : 0x80##:Stereo, 0x10##:8bit, 0x##03:PCM stream playback number 3 (In 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]