mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
93 lines
4.1 KiB
Plaintext
93 lines
4.1 KiB
Plaintext
PIC(PRO) Format
|
|
Intel byte order
|
|
|
|
Information from File Format List 2.0 by Max Maischein.
|
|
|
|
--------!-CONTACT_INFO----------------------
|
|
If you notice any mistakes or omissions, please let me know! It is only
|
|
with YOUR help that the list can continue to grow. Please send
|
|
all changes to me rather than distributing a modified version of the list.
|
|
|
|
This file has been authored in the style of the INTERxxy.* file list
|
|
by Ralf Brown, and uses almost the same format.
|
|
|
|
Please read the file FILEFMTS.1ST before asking me any questions. You may find
|
|
that they have already been addressed.
|
|
|
|
Max Maischein
|
|
|
|
Max Maischein, 2:244/1106.17
|
|
Max_Maischein@spam.fido.de
|
|
corion@informatik.uni-frankfurt.de
|
|
Corion on #coders@IRC
|
|
--------!-DISCLAIMER------------------------
|
|
DISCLAIMER: THIS MATERIAL IS PROVIDED "AS IS". I verify the information
|
|
contained in this list to the best of my ability, but I cannot be held
|
|
responsible for any problems caused by use or misuse of the information,
|
|
especially for those file formats foreign to the PC, like AMIGA or SUN file
|
|
formats. If an information it is marked "guesswork" or undocumented, you
|
|
should check it carefully to make sure your program will not break with
|
|
an unexpected value (and please let me know whether or not it works
|
|
the same way).
|
|
|
|
Information marked with "???" is known to be incomplete or guesswork.
|
|
|
|
Some file formats were not released by their creators, others are regarded
|
|
as proprietary, which means that if your programs deal with them, you might
|
|
be looking for trouble. I don't care about this.
|
|
--------------------------------------------
|
|
|
|
This format description applies to both PIC and MSK files created with the
|
|
Autodesk Animator Pro package. The file begins with a 64-byte header defined
|
|
as follows:
|
|
|
|
Offset Length Name Description
|
|
0000h 1 dword The size of the whole file including the size
|
|
of this header.
|
|
0004h 1 word ID=9500h
|
|
0006h 1 word Width of the image
|
|
0008h 1 word Height of the image
|
|
000Ah 1 word X offset of image
|
|
000Ch 1 word Y offset of image
|
|
000Eh 1 dword User ID, set to zero
|
|
0012h 1 byte Bits per pixel (8 for PIC, 1 for MSK)
|
|
0013h 45 byte reserved (0)
|
|
|
|
Following the file header are the data blocks for the image. Each data block
|
|
within a PIC or MSK file is formatted as follows:
|
|
|
|
OFFSET Count TYPE Description
|
|
0000h 1 dword The size of the block, including this header.
|
|
0004h 1 word Data type ID :
|
|
0 - Color palette info
|
|
1 - Byte-per-pixel image data
|
|
2 - Bit-per-pixel mask data
|
|
0006h ? byte Data
|
|
|
|
The type values in the block headers indicate what type of graphics data the
|
|
block contains.
|
|
|
|
In a PIC_CMAP block, the first 2-byte word is a version code;
|
|
currently this is set to zero. Following the version word are all 256 palette
|
|
entries in rgb order. Each of the r, g, and b components is a single byte in the
|
|
range of 0-255. This type of block appears in PIC files; there will generally be
|
|
no color map block in a MSK file.
|
|
|
|
In a PIC_BYTEPIXELS block, the image data appears immediately following the
|
|
6-byte block header. The data is stored as one byte per pixel, in left-to-right,
|
|
topD to-bottom sequence.
|
|
|
|
In a PIC_BITPIXELS block, the bitmap data appears immediately following the
|
|
6-byte block header. The data is stored as bits packed into bytes such that the
|
|
leftmost bits appear in the high-order positions of each byte. The bits are
|
|
stored in left-to-right, top-to bottom sequence. When the width of the bitmap is
|
|
not a multiple of 8, there will be unused bits in the low order positions of the
|
|
last byte on each line. The number of bytes per line is ((width+7)/8). This type
|
|
of block appears in MSK files.
|
|
|
|
EXTENSION:PIC,MSK
|
|
OCCURENCES:PC
|
|
PROGRAMS:Autodesk Animator Pro
|
|
REFERENCE:
|
|
SEE ALSO:PIC,FLT
|