QVGA VIDEO IN VGA DEMO - now also plays full-screen & audio
Here's a short demo of playing a 320x257 video within a VGA buffer. I used VLC with a scene filter to output the frames as pngs and then converted these to QVGA BMPs using XNCONVERT. I then place all these frames within a folder and put then onto my SD card and simply write a couple of simple routines in TAQOZ and presto!
pub VIEWFRM FRAMEBUF DUP 10 + W@ + DUP $400 - PALETTE 256 LMOVE 257 DUP 320 * ROT + SWAP 0 DO DUP SCR I vwin W@ + 640 * + hwin W@ + 80 LMOVE 320 - LOOP DROP ; pre WATCH ( <folder> -- ) ROOT [C] CD " FRM00001.BMP" file$ $! CLRSCR BEGIN file$ FOPEN$ @FILE WHILE @FILE FRAMEBUF FSIZE SDRDS SYNCH VIEWFRM FILE++ REPEAT ;