Photon IMage Viewer: PV *.raw Format

Hi all

In QNX 6 there is a Image Viewer Called PV that will input raw image files.
What is the Format for *.raw files.? Is this a simple uncompressed Format

I am ASSUMING x,y then an stream of
RGBs values for pixel values.

Thanks


Greg Orvets
VP Engineering
Lambda Tech International
www.lambdatech.com


\

Greg Orvets
VP Engineering
Lambda Tech International
www.lambdatech.com

Hi Greg,

I have spoken to the developer and this is the information he passed onto me:

This format was only used by pv and is no longer supported.

The file format is little-endian and has a header as follows:

typedef struct
{
char signature[4]; /* always “PhRI”
int version; /* version (pv set this to 110) /
int type; /
type of image (see docs for PhImage_t) /
int bpl; /
image data bpl /
PhDim_t size; /
image size in pixels /
int colors; /
# colors in palette */
} PhRawImage_t;

This header is followed by a stream of PgColor_t’s describing the image
palette. The number of colors is disclosed by the ‘colors’ member in the
header.

Next is a direct dump of the image data. The data format is dependent on
the type of the image (‘type’ member in the header). This packing is
also doc’d in PhImage_t.

As seen from the header, this format does not record transparency masks.

I hope this helps…

Thanks
Brenda

Previously, Greg Orvets wrote in qdn.public.qnxrtp.photon:

Hi all

In QNX 6 there is a Image Viewer Called PV that will input raw image files.
What is the Format for *.raw files.? Is this a simple uncompressed Format

I am ASSUMING x,y then an stream of
RGBs values for pixel values.

Thanks


Greg Orvets
VP Engineering
Lambda Tech International
www.lambdatech.com


\

Greg Orvets
VP Engineering
Lambda Tech International
www.lambdatech.com