xref: /freebsd/contrib/file/magic/Magdir/playdate (revision 898496ee09ed2b7d25f6807edc4515628196ec0a)
1*898496eeSXin LI
2*898496eeSXin LI#------------------------------------------------------------------------------
3*898496eeSXin LI# $File: playdate,v 1.1 2022/11/04 13:34:48 christos Exp $
4*898496eeSXin LI#
5*898496eeSXin LI# Various native file formats for the Playdate portable video game console.
6*898496eeSXin LI#
7*898496eeSXin LI# These are unofficially documented at
8*898496eeSXin LI# https://github.com/jaames/playdate-reverse-engineering
9*898496eeSXin LI#
10*898496eeSXin LI# The SDK is a source for many test files, and can be used to
11*898496eeSXin LI# create others. https://play.date/dev/
12*898496eeSXin LI
13*898496eeSXin LI
14*898496eeSXin LI# pdi: static image
15*898496eeSXin LI0	string	Playdate\ IMG	Playdate image data
16*898496eeSXin LI>12	belong&0x80	0x80	(compressed)
17*898496eeSXin LI>>20	lelong	x	%d x
18*898496eeSXin LI>>24	lelong	x	%d
19*898496eeSXin LI>12	belong&0x80	0x00	(uncompressed)
20*898496eeSXin LI>>16	leshort	x	%d x
21*898496eeSXin LI>>18	leshort	x	%d
22*898496eeSXin LI
23*898496eeSXin LI# pdt: multiple static images
24*898496eeSXin LI0	string	Playdate\ IMT	Playdate image data set
25*898496eeSXin LI>12	belong&0x80	0x80	(compressed)
26*898496eeSXin LI>>20	lelong	x	%d x
27*898496eeSXin LI>>24	lelong	x	%d,
28*898496eeSXin LI>>28	lelong	x	%d cells
29*898496eeSXin LI>12	belong&0x80	0x00	(uncompressed)
30*898496eeSXin LI>>20	lelong	x	tile grid %d x
31*898496eeSXin LI>>24	lelong	x	%d
32*898496eeSXin LI
33*898496eeSXin LI# pds: string tables
34*898496eeSXin LI0	string	Playdate\ STR	Playdate localization strings
35*898496eeSXin LI>12	belong&0x80	0x80	(compressed)
36*898496eeSXin LI>12	belong&0x80	0x00	(uncompressed)
37*898496eeSXin LI
38*898496eeSXin LI# pda: audio
39*898496eeSXin LI0	string	Playdate\ AUD	Playdate audio file
40*898496eeSXin LI>12	lelong&0xffffff	x	%d Hz,
41*898496eeSXin LI>15	byte	0	unsigned, 8-bit PCM, 1 channel
42*898496eeSXin LI>15	byte	1	unsigned, 8-bit PCM, 2 channel
43*898496eeSXin LI>15	byte	2	signed, 16-bit little-endian PCM, 1 channel
44*898496eeSXin LI>15	byte	3	signed, 16-bit little-endian PCM, 1 channel
45*898496eeSXin LI>15	byte	4	4-bit ADPCM, 1 channel
46*898496eeSXin LI>15	byte	5	4-bit ADPCM, 2 channel
47*898496eeSXin LI
48*898496eeSXin LI# pda: video
49*898496eeSXin LI0	string	Playdate\ VID	Playdate video file
50*898496eeSXin LI>24	leshort	x	%d x
51*898496eeSXin LI>26	leshort	x	%d,
52*898496eeSXin LI>16	leshort	x	%d frames,
53*898496eeSXin LI>20	lefloat x	%.2f FPS
54*898496eeSXin LI
55*898496eeSXin LI# pdz: executable package
56*898496eeSXin LI# Not a lot we can do, as it's a stream of entries with no summary information.
57*898496eeSXin LI0	string	Playdate\ PDZ	Playdate executable package
58