iPXE
Data Fields
pnm_type Struct Reference

PNM type. More...

#include <pnm.h>

Data Fields

char type
 PNM type.
uint8_t depth
 Number of scalar values per pixel.
uint8_t packing
 Number of pixels per composite value.
uint8_t flags
 Flags.
int(* scalar )(struct image *image, struct pnm_context *pnm)
 Extract scalar value.
uint32_t(* rgb )(uint32_t composite, unsigned int index)
 Convert composite value to 24-bit RGB.

Detailed Description

PNM type.

Definition at line 45 of file pnm.h.


Field Documentation

PNM type.

Definition at line 47 of file pnm.h.

Referenced by pnm_pixbuf(), and pnm_type().

Number of scalar values per pixel.

Definition at line 49 of file pnm.h.

Referenced by pnm_data().

Number of pixels per composite value.

Definition at line 51 of file pnm.h.

Referenced by pnm_data(), and pnm_pixbuf().

Flags.

Definition at line 53 of file pnm.h.

Referenced by pnm_pixbuf().

int( * pnm_type::scalar)(struct image *image, struct pnm_context *pnm)

Extract scalar value.

Parameters:
imagePNM image
pnmPNM context
Return values:
valueValue, or negative error

Definition at line 60 of file pnm.h.

Referenced by pnm_data().

uint32_t( * pnm_type::rgb)(uint32_t composite, unsigned int index)

Convert composite value to 24-bit RGB.

Parameters:
compositeComposite value
indexPixel index within this composite value
Return values:
rgb24-bit RGB value

Definition at line 67 of file pnm.h.

Referenced by pnm_data().


The documentation for this struct was generated from the following file: