Image Data Format
Image Data Format
Overview
Image data refers to a 2D image.
File Extension
The extension of the data file is ".x".
Format
The MicroAVS image data file is described completely in binary. The first two
words at the head of the file are used to denote the horizontal and vertical
sizes of the image. Following this, the data for each pixel is describe till
the end of the file. However, the data corresponding to each pixel consists
of 4 bytes of data consisting of the alpha component (extra component),
red color component (red), green color component (green) and the blue color
component (blue). Each of these components is denoted by one byte of data and
0 is set as the value of the alpha component. Further, a value between 0-255
denoting the color of each pixel is set in each of the red, green and blue
components

Overview of the Image Data Format
Size in X direction 4 byte integer
Size in Y direction 4-byte integer
data for pixel #1
data for pixel #2
data for pixel #3
...
...
...
data for the last pixel
each pixel:
alpha 1byte (0)
red 1 byte (0 - 255)
green 1 byte(0 - 255)
blue 1 byte (0 -255)
Assumption
The image file format of MicroAVS is the same as that of AVS which is the
sister product of MicroAVS.
 |
© 1999-2008 KGT Inc.
All rights reserved. |