Difference between revisions of "Playboy PICT 1"

From XentaxWiki
Jump to: navigation, search
(Format Specifications)
(Format Specifications)
Line 9: Line 9:
 
<tt><b>
 
<tt><b>
 
: uint32 {4}&nbsp;&nbsp; - Picture Type <font color="purple">(1, 4, 8, etc.)</font> <br>  
 
: uint32 {4}&nbsp;&nbsp; - Picture Type <font color="purple">(1, 4, 8, etc.)</font> <br>  
<font color="blue"> ''' // Header (18 Bytes) ''' </font> <br>  
+
<font color="blue"> ''' // Header (18 Bytes) ''' </font> <br> <br>
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' ID Length <font color="purple">(0)</font> '' </font> <br> &nbsp;&nbsp;This field identifies the number of bytes contained in Field 6, the Image ID Field. The maximum number of characters is 255. A value of zero indicates that no Image ID field is included with the image.<br>
+
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' ID Length <font color="purple">(0)</font> '' </font> <br> &nbsp;&nbsp;This field identifies the number of bytes contained in Field 6, the Image ID Field. The maximum number of characters is 255. A value of zero indicates that no Image ID field is included with the image.<br><br>
 
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' Color Map Type <font color="purple">(1)</font> '' </font> <br> &nbsp;&nbsp;This field indicates the type of color map (if any) included with the image. There are currently 2 defined values for this field:<br>
 
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' Color Map Type <font color="purple">(1)</font> '' </font> <br> &nbsp;&nbsp;This field indicates the type of color map (if any) included with the image. There are currently 2 defined values for this field:<br>
 
: 0 - indicates that no color-map data is included with this image.<br>
 
: 0 - indicates that no color-map data is included with this image.<br>
: 1 - indicates that a color-map is included with this image.<br>
+
: 1 - indicates that a color-map is included with this image.<br><br>
 
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' Image Type <font color="purple">(1)</font> '' </font> <br> &nbsp;&nbsp;The TGA File Format can be used to store Pseudo-Color, True-Color and Direct-Color images of various pixel depths. Truevision has currently defined seven image types:<br>
 
: uint8 {1}&nsbsp;&nbsp; - <font color="red"> '' Image Type <font color="purple">(1)</font> '' </font> <br> &nbsp;&nbsp;The TGA File Format can be used to store Pseudo-Color, True-Color and Direct-Color images of various pixel depths. Truevision has currently defined seven image types:<br>
 
: 0 No Image Data Included<br>
 
: 0 No Image Data Included<br>
Line 21: Line 21:
 
: 9 Run-length encoded, Color-mapped Image<br>
 
: 9 Run-length encoded, Color-mapped Image<br>
 
: 10 Run-length encoded, True-color Image<br>
 
: 10 Run-length encoded, True-color Image<br>
: 11 Run-length encoded, Black-and-white Image<br>
+
: 11 Run-length encoded, Black-and-white Image<br><br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Color Map, First Entry Index <font color="purple">(0)</font> '' </font> <br> Index of the first color map entry. Index refers to the starting entry in loading the color map.<br>
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Color Map, First Entry Index <font color="purple">(0)</font> '' </font> <br> Index of the first color map entry. Index refers to the starting entry in loading the color map.<br><br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Color Map, Length<font color="purple">(256)</font> '' </font> <br> Total number of color map entries included.<br>
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Color Map, Length<font color="purple">(256)</font> '' </font> <br> Total number of color map entries included.<br><br>
 
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Color Map, Entry Size<font color="purple">(32)</font> '' </font> <br> Establishes the number of bits per entry. Typically 15, 16, 24 or 32-bit values are used.<br>
 
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Color Map, Entry Size<font color="purple">(32)</font> '' </font> <br> Establishes the number of bits per entry. Typically 15, 16, 24 or 32-bit values are used.<br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' X-Origin of Image <font color="purple">(0)</font> '' </font> <br>  
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' X-Origin of Image <font color="purple">(0)</font> '' </font> <br> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Y-Origin of Image<font color="purple">(0)</font> '' </font> <br>  
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Y-Origin of Image<font color="purple">(0)</font> '' </font> <br> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Width <font color="purple">(512)</font> '' </font> <br>  
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Width <font color="purple">(512)</font> '' </font> <br> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Height<font color="purple">(256)</font> '' </font> <br>  
+
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Height<font color="purple">(256)</font> '' </font> <br> <br>
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Pixel Depth<font color="purple">(0)</font> '' </font> <br>  
+
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Pixel Depth<font color="purple">(0)</font> '' </font> <br> <br>
 
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Image Descriptor, Direction of data storage, see TGA spec for more info<font color="purple">(0)</font> '' </font> <br>  
 
: uint8 {1}&nbsp;&nbsp; - <font color="red"> '' Image Descriptor, Direction of data storage, see TGA spec for more info<font color="purple">(0)</font> '' </font> <br>  
 
<br>
 
<br>

Revision as of 09:17, 23 November 2006

PICT


Format Specifications

Pict format 1 is probably a TGA file. The first four bytes are the picture type. The following 18 bytes would be consistent with TGA.

uint32 {4}   - Picture Type (1, 4, 8, etc.)

// Header (18 Bytes)

uint8 {1}&nsbsp;  - ID Length (0)
  This field identifies the number of bytes contained in Field 6, the Image ID Field. The maximum number of characters is 255. A value of zero indicates that no Image ID field is included with the image.

uint8 {1}&nsbsp;  - Color Map Type (1)
  This field indicates the type of color map (if any) included with the image. There are currently 2 defined values for this field:
0 - indicates that no color-map data is included with this image.
1 - indicates that a color-map is included with this image.

uint8 {1}&nsbsp;  - Image Type (1)
  The TGA File Format can be used to store Pseudo-Color, True-Color and Direct-Color images of various pixel depths. Truevision has currently defined seven image types:
0 No Image Data Included
1 Uncompressed, Color-mapped Image
2 Uncompressed, True-color Image
3 Uncompressed, Black-and-white Image
9 Run-length encoded, Color-mapped Image
10 Run-length encoded, True-color Image
11 Run-length encoded, Black-and-white Image

uint16 {2}   - Color Map, First Entry Index (0)
Index of the first color map entry. Index refers to the starting entry in loading the color map.

uint16 {2}   - Color Map, Length(256)
Total number of color map entries included.

uint8 {1}   - Color Map, Entry Size(32)
Establishes the number of bits per entry. Typically 15, 16, 24 or 32-bit values are used.
uint16 {2}   - X-Origin of Image (0)

uint16 {2}   - Y-Origin of Image(0)

uint16 {2}   - Width (512)

uint16 {2}   - Height(256)

uint8 {1}   - Pixel Depth(0)

uint8 {1}   - Image Descriptor, Direction of data storage, see TGA spec for more info(0)


// Color Palette (256 Colors)

// for each color
byte {1}     - Red
byte {1}     - Green
byte {1}     - Blue
byte {1}     - Alpha


// Image Data

// for each pixel
byte {1}     - Palette Index

MultiEx BMS

Not written yet

Supported Programs