Post Reply 
Video Playback on HP Prime using DIMGROB & BLIT.
07-11-2023, 10:26 PM (This post was last modified: 07-13-2023 08:02 PM by matalog.)
Post: #1
Video Playback on HP Prime using DIMGROB & BLIT.
I have been experimenting with the graphical capabilities of the HP Prime in the BASIC language that we use it in. I thought of this idea when I had a G1 and it just didn't work, but the G2 allows it to work.

It uses any spare (G1-G9) graphic screen as a buffer of a Large (png) file, and then accesses it as it has to.

Yeah, you can get short bursts of video playback, or longer scrolls of a very wide image! (The SMB Level one is 3900px wide and the DOOM level is 30000px wide).



Find all posts by this user
Quote this message in a reply
07-13-2023, 08:10 PM (This post was last modified: 07-13-2023 08:22 PM by matalog.)
Post: #2
RE: Video Playback on HP Prime using DIMGROB & BLIT.
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: HP Prime prepared video file. - 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.

The video has to be short, but I didn't see any other video players for the HP Prime yet, did I miss any?
Find all posts by this user
Quote this message in a reply
07-15-2023, 01:09 PM
Post: #3
RE: Video Playback on HP Prime using DIMGROB & BLIT.
Impressive. Well done!
Find all posts by this user
Quote this message in a reply
07-19-2023, 06:47 AM
Post: #4
RE: Video Playback on HP Prime using DIMGROB & BLIT.
Wow! Excellent!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)