Playboy PICT 1: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Ikskoks
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== PICT ==  
== PICT ==  
 
* ''' Game ''':    [[Playboy: The Mansion]] <br>
* ''' Format Type ''':    Image <br>  
* ''' Format Type ''':    Image <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
Line 6: Line 6:


=== Format Specifications ===  
=== 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.
<tt><b>
<tt><b>
<font color="blue"> ''' // Header (22 Bytes) ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Picture Type <font color="purple">(1, 4, 8, etc.)</font> <br>
: uint32 {4}&nbsp;&nbsp; - Version <font color="purple">(1)</font> <br>  
<font color="blue"> ''' // Header (18 Bytes) ''' </font> <br> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Number Of Colors? <font color="purple">(256)</font> '' </font> <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>
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <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>
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8193)</font> '' </font> <br>  
: 0 - indicates that no color-map data is included with this image.<br>
: uint16 {2}&nbsp;&nbsp; - null <br>  
: 1 - indicates that a color-map is included with this image.<br><br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Width <font color="purple">(512)</font> '' </font> <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>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Height <font color="purple">(256)</font> '' </font> <br>  
: 0 No Image Data Included<br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Bits <font color="purple">(8)</font> '' </font> <br>  
: 1 Uncompressed, Color-mapped Image<br>
: 2 Uncompressed, True-color Image<br>
: 3 Uncompressed, Black-and-white Image<br>
: 9 Run-length encoded, Color-mapped Image<br>
: 10 Run-length encoded, True-color 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><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><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> <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> <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>  
<br>
<br>
<font color="blue"> ''' // Color Palette (256 Colors) ''' </font> <br>  
<font color="blue"> ''' // Color Palette (256 Colors) ''' </font> <br>  
Line 37: Line 51:


* [[PICT2BMP]]
* [[PICT2BMP]]
=== See Also ===
[[Playboy_CAM_2]]<br>
[[Playboy_PICT_8]]
[[Category:Complete Complete|Playboy PICT 1]]
[[Category:Platform PC|Playboy PICT 1]]
[[Category:CE None|Playboy PICT 1]]
[[Category:Format_Image | Type: Image]]
[[Category:BMS_None | BMS: None]]
[[Category:File Format]]

Latest revision as of 23:34, 14 November 2020

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

See Also

Playboy_CAM_2
Playboy_PICT_8