beautypg.com

Sharp VISION DIGITAL CAMERA User Manual

Page 31

background image

sharpVISION™ Digital Camera

sharpVISION

User Manual

31

8.1.8. Multi-page Raw Format (MRF)

Multi-page Raw Format (MRF) is an uncompressed IDT proprietary file format. Multiple raster
images are stored in a single file. The format is described below.

Each MRF file contains a file header, an image header and an array of bytes that defines the
image data bits. The image raster data is not compressed and stored in the file “as it is”. Both
8 bit and 16 bit data are supported. The file structures are the following:

8.1.8.1. File

header

A MRF file begins with a file header structure containing the IDT raw file signature.


typedef struct _RCFILE_HEADER

{
char

szSign[8];

// IDT raw file signature

unsigned long nReserved;

//

reserved

} RCFILE_HEADER, *PRCFILE_HEADER;

Members

szSign[8]: a 8 char buffer which contains the signature “IDT-MRF”. It indicates that the
remainder of the file contains a Multiple Raw File.

nReserved: this field is reserved for future use.

8.1.8.2. Image

header

The file header is followed by the image header which contains general information about the
data stream.


typedef struct _RCIMG_HEADER

{

unsigned long nSize;

// size of this header

unsigned long nPages;

//

number

of

pages/frames

unsigned long nWidth;

//

image

width

unsigned long nHeight;

// image height

unsigned long nBPP;

// bits per pixel

unsigned long userData[64];

// user data array

} RCIMG_HEADER, *PRCIMG_HEADER;

Members

nSize: size of the structure in bytes. It should be 84.

nPages: number of images contained in the file