Difference between revisions of "MGV"
From MSX Game Library
(→Commands) |
|||
Line 40: | Line 40: | ||
| <tt>0x04</tt> || <tt>nn</tt> || Skip <tt>nn+1</tt> bytes (1-256) | | <tt>0x04</tt> || <tt>nn</tt> || Skip <tt>nn+1</tt> bytes (1-256) | ||
|- | |- | ||
− | | <tt>0x05</tt> || <tt>nnnn</tt> || Skip <tt>nnnn | + | | <tt>0x05</tt> || <tt>nnnn</tt> || Skip <tt>nnnn</tt> bytes (1-65536) |
|- | |- | ||
− | | <tt>0x06</tt> || <tt>nn,vv</tt> || Fill <tt>nn | + | | <tt>0x06</tt> || <tt>nn,vv</tt> || Fill <tt>nn</tt> bytes (1-256) with <tt>vv</tt> value |
|- | |- | ||
− | | <tt>0x07</tt> || <tt>nnnn,vv</tt> || Fill <tt>nnnn | + | | <tt>0x07</tt> || <tt>nnnn,vv</tt> || Fill <tt>nnnn</tt> bytes (1-65536) with <tt>vv</tt> value |
|- | |- | ||
− | | <tt>0x08</tt> || <tt>nn,vv[nn]</tt> || Copy <tt>nn | + | | <tt>0x08</tt> || <tt>nn,vv[nn]</tt> || Copy <tt>nn</tt> bytes (1-256) from <tt>vv[nn]</tt> data table |
|- | |- | ||
− | | <tt>0x09</tt> || <tt>nnnn,vv[nnnn]</tt> || Copy <tt>nnnn | + | | <tt>0x09</tt> || <tt>nnnn,vv[nnnn]</tt> || Copy <tt>nnnn</tt> bytes (1-65536) from <tt>vv[nnnn]</tt> data table |
|- | |- | ||
| <tt>0x0A</tt> || || | | <tt>0x0A</tt> || || | ||
Line 54: | Line 54: | ||
| <tt>0x0B</tt> || || | | <tt>0x0B</tt> || || | ||
|- | |- | ||
− | | <tt>0x0C</tt> || || | + | | <tt>0x0C</tt> || <tt>vv</tt> || Fill full frame |
|- | |- | ||
− | | <tt>0x0D</tt> || || | + | | <tt>0x0D</tt> || <tt>xx,yy,ww,hh,vv</tt> || Fill a rectangle from position <tt>xx,yy (0-255) to an extend ww,hh (1-256) with <tt>vv</tt> value |
|- | |- | ||
| <tt>0x0E</tt> || || | | <tt>0x0E</tt> || || |
Revision as of 21:15, 30 March 2024
MGLV is a video format for MSXgl.
Contents
Format
Header
Offset | Size | Desc. | Value | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | 4 | Signature | "MGLV" | ||||||||||||||||
0x0004 | 1 | Flag |
|
Commands
Cmd | Options | Desc. |
---|---|---|
0x00 | End of data | |
0x01 | End of frame | |
0x02 | End of segment (increment segment index and reset data pointer) | |
0x03 | ||
0x04 | nn | Skip nn+1 bytes (1-256) |
0x05 | nnnn | Skip nnnn bytes (1-65536) |
0x06 | nn,vv | Fill nn bytes (1-256) with vv value |
0x07 | nnnn,vv | Fill nnnn bytes (1-65536) with vv value |
0x08 | nn,vv[nn] | Copy nn bytes (1-256) from vv[nn] data table |
0x09 | nnnn,vv[nnnn] | Copy nnnn bytes (1-65536) from vv[nnnn] data table |
0x0A | ||
0x0B | ||
0x0C | vv | Fill full frame |
0x0D | xx,yy,ww,hh,vv | Fill a rectangle from position xx,yy (0-255) to an extend ww,hh (1-256) with <tt>vv value |
0x0E | ||
0x0F |
Extension
.MGLV (for Windows/Linux) or .MGV (for MSX-DOS)