4 Commits

Author SHA1 Message Date
ikari
9af83658e7 SNES menu: add time setting dialog + begin work on main menu 2011-03-14 01:44:26 +01:00
ikari
b964f1fa7b MSU1 video player update (framerate support)
There is now a small header for the MSU video files:

 uint16_t framecount;
 uint8_t  std_frameduration;
 uint8_t  alt_frameduration;
 uint8_t  alt_durfreq;

framecount is the number of frames in the video.
std_frameduration is the usual duration of a video frame in SNES video frames.
alt_frameduration is an alternate duration
alt_durfreq specifies after how many frames the alternate duration should be used for a single video frame. The frame counter is reset afterwards.

This allows to use simple pulldown patterns.
e.g. for a 29.97fps video you need 2:2 pulldown (display every video frame for two SNES video frames).
In this case, std_frameduration, alt_frameduration, alt_durfreq are: 2, 2, x (any number is good for the freq in this case)
For 23.976fps video one would do 3:2 pulldown (displaying every other video frame for three SNES video frames).
The format would be: 2, 3, 1

Frame size is always 224x144, 32512 bytes (4 tiles wasted to save tilemap memory), followed by 512 bytes of palette.
2010-12-31 03:07:22 +01:00
ikari
d11f36f630 MSU1 video player frame rate support 2010-12-29 20:54:54 +01:00
ikari
fc4885b5df primitive TGA -> MSU1 video demo conversion tool 2010-12-29 15:21:47 +01:00