I have been experimenting with the graphical capabilities of the HP Prime in its BASIC language. I thought of this idea when I had a HP Prime G1 and it just didn't work, but the HP Prime G2 allows it to work.
It uses any spare (G1-G9) graphic screen GROB as a buffer of a Large (png) file, and then accesses it as it has to.
You can get short bursts of video playback, or longer scrolls of a wide image! (The SMB Level one is 3900px wide and the DOOM level is 30000px wide).
Here is a program to have a go at playing back a video on the HP Prime G2 for yourself:
Code:
And here is a formatted file that will allow a video to play: https://bit.ly/3Dbg7Uj - This file must be put into the Application Library 'Files' for the particular application you are running, otherwise it will give an error "Invalid Input". Only works on HP Prime G2.
At 25 FPS playback, it works out to be 3.72 seconds, displaying 93 frames. Remember it is running in HP PPL!
The video has to be short, but I didn't see any other video players for the HP Prime yet, did I miss any?
It uses any spare (G1-G9) graphic screen GROB as a buffer of a Large (png) file, and then accesses it as it has to.
You can get short bursts of video playback, or longer scrolls of a wide image! (The SMB Level one is 3900px wide and the DOOM level is 30000px wide).
Here is a program to have a go at playing back a video on the HP Prime G2 for yourself:
Code:
EXPORT dvidW()
BEGIN
DIMGROB_P(G4,30000,240);
LOCAL H,EXIT;
H:=0;
G4:=AFiles("WeeZ.png");
REPEAT
BLIT_P(G0,0,0,320,240,G4,0+H,0,320+H,240);
H:=H+320;
IF H>29670 THEN H:=0;END;
WAIT(0.04);
IF ISKEYDOWN(4) THEN EXIT:=1; END;
UNTIL EXIT=1 ;
END;
And here is a formatted file that will allow a video to play: https://bit.ly/3Dbg7Uj - This file must be put into the Application Library 'Files' for the particular application you are running, otherwise it will give an error "Invalid Input". Only works on HP Prime G2.
At 25 FPS playback, it works out to be 3.72 seconds, displaying 93 frames. Remember it is running in HP PPL!
The video has to be short, but I didn't see any other video players for the HP Prime yet, did I miss any?