Author Topic: Video player for Casio Prizm  (Read 56393 times)

0 Members and 1 Guest are viewing this topic.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Video player for Casio Prizm
« on: July 13, 2011, 03:06:46 am »
Hello,
I would like to introduce you a simple video player for Casio fx-CG 20.
It's very slow, but working:-)

You may pause it by [OPTN] button, [EXE] resumes. [MENU] quits. Please hold the key for longer time (~ 1 second).

Updated version (CGPLAYER2.G3A) - tiny speed up by remapping working buffers from 0xAxxx area to 0x8xxx (enable cache)
« Last Edit: July 14, 2011, 03:40:13 am by MPoupe »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Video player for Casio Prizm
« Reply #1 on: July 13, 2011, 03:11:41 am »
Sounds pretty nice, does it support sound and all 65536 colors?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Video player for Casio Prizm
« Reply #2 on: July 13, 2011, 03:15:14 am »
Wow, awesome! It looks a bit choppy, but the video is definitely recognizable. I assume that the FPS is low in order to keep the file size down? The blinking thing in the upper-right corner can be a little distracting, but other than that I couldn't find any flaws with the player.
Sounds pretty nice, does it support sound and all 65536 colors?
There's no sound, but I think it supports full 16-bit color.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #3 on: July 13, 2011, 03:19:39 am »
Yes, it is full color video, no sound yet. It is slow, video has about 5 fps, but running about 2 fps  - this is not problem of the video size, but calculator speed. I need to overclock it (now it is running on original speed).
The busy box (or hourglass) is pretty annoying, but it is side effect of the Bfile_ReadFile_OS() function :-(

So there are few things to be solved yet :-)

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Video player for Casio Prizm
« Reply #4 on: July 13, 2011, 03:21:40 am »
The busy box (or hourglass) is pretty annoying, but it is side effect of the Bfile_ReadFile_OS() function :-(
There's a bit of empty space below the video. Would it be possible to move the video down, so that the busy indicator will appear above the video? It would help a bit, even though it doesn't give us a way to get rid of the indicator.
« Last Edit: July 13, 2011, 03:22:25 am by JosJuice »

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #5 on: July 13, 2011, 03:31:14 am »
There's a bit of empty space below the video. Would it be possible to move the video down, so that the busy indicator will appear above the video? It would help a bit, even though it doesn't give us a way to get rid of the indicator.
That would be very easy, but I would like to try to get rid of the busy box completely first :-)
« Last Edit: July 13, 2011, 06:17:50 am by MPoupe »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Video player for Casio Prizm
« Reply #6 on: July 13, 2011, 05:13:39 am »
Yes, it is full color video, no sound yet. It is slow, video has about 5 fps, but running about 2 fps  - this is not problem of the video size, but calculator speed. I need to overclock it (now it is running on original speed).
The busy box (or hourglass) is pretty annoying, but it is side effect of the Bfile_ReadFile_OS() function :-(

So there are few things to be solved yet :-)
That's a good start, but I'd aim for at least ~10-15fps. Sound support would also be nice once it is figured out. Very cool stuff though! ^^
* Art_of_camelot goes to try it out.

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Video player for Casio Prizm
« Reply #7 on: July 13, 2011, 09:47:02 am »
Are going to port Ich Will ?

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #8 on: July 13, 2011, 09:59:27 am »
Are going to port Ich Will ?
I can :-)

Does somebody successfully oveclock Prizm ? I would like to try the player with higher CPU speed so I seek for some safe overclocking code ;-)

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Video player for Casio Prizm
« Reply #9 on: July 13, 2011, 03:54:15 pm »
You shouldn't have to overclock the Prizm to get a high framerate. At 58 Mhz a framerate of over 30 hz should be possible. What method are you using to draw the video. A slowdown will occur if you use pixel on commands instead of using the VRAM as a buffer. Also if you did any compression that would contribute to the slow down.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Video player for Casio Prizm
« Reply #10 on: July 13, 2011, 05:40:10 pm »
You shouldn't have to overclock the Prizm to get a high framerate. At 58 Mhz a framerate of over 30 hz should be possible. What method are you using to draw the video. A slowdown will occur if you use pixel on commands instead of using the VRAM as a buffer. Also if you did any compression that would contribute to the slow down.

A framerate of 20Hz is the maximum I would expect with the OS screendraw routines.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Video player for Casio Prizm
« Reply #11 on: July 13, 2011, 06:07:16 pm »
You shouldn't have to overclock the Prizm to get a high framerate. At 58 Mhz a framerate of over 30 hz should be possible. What method are you using to draw the video. A slowdown will occur if you use pixel on commands instead of using the VRAM as a buffer. Also if you did any compression that would contribute to the slow down.

A framerate of 20Hz is the maximum I would expect with the OS screendraw routines.
With the OS routines yes, but you can copy data to the VRAM faster than the OS can draw the screen. Just like for example with the PC game Half Life 2 most modern computers can get framerates near 200 fps even though most screens are limited to 60 hz.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #12 on: July 14, 2011, 03:37:14 am »
Are going to port Ich Will ?
Enjoy it. Be sure to store it in the calculator as demo.mjp
« Last Edit: July 14, 2011, 03:40:38 am by MPoupe »

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #13 on: July 14, 2011, 03:45:50 am »
You shouldn't have to overclock the Prizm to get a high framerate. At 58 Mhz a framerate of over 30 hz should be possible. What method are you using to draw the video. A slowdown will occur if you use pixel on commands instead of using the VRAM as a buffer. Also if you did any compression that would contribute to the slow down.
Hi,
of course I draw to VRAM and then call Bdisp_PutDisp_DD(). But the video is a sequence of jpeg images and jpeg decoding is very CPU expensive. Prizm doesn't have SD card, so I must use a compression :-(
« Last Edit: July 14, 2011, 03:46:48 am by MPoupe »

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Video player for Casio Prizm
« Reply #14 on: July 14, 2011, 08:36:33 am »
How large would the file size become if JPEG isn't used? Maybe we could try some other kind of compression... I don't know what one would fit, though.