iPXE
pnm.h File Reference

Portable anymap format (PNM) More...

#include <stdint.h>
#include <ipxe/image.h>

Go to the source code of this file.

Data Structures

struct  pnm_signature
 PNM signature. More...
struct  pnm_context
 PNM context. More...
struct  pnm_type
 PNM type. More...

Macros

#define PNM_MAGIC   'P'
 PNM magic byte.
#define PNM_ASCII_LEN   16
 Default maximum length of ASCII values.

Enumerations

enum  pnm_flags { PNM_BITMAP = 0x01 }
 PNM flags. More...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct image_type pnm_image_type __image_type (PROBE_NORMAL)

Detailed Description

Portable anymap format (PNM)

Definition in file pnm.h.

Macro Definition Documentation

◆ PNM_MAGIC

#define PNM_MAGIC   'P'

PNM magic byte.

Definition at line 26 of file pnm.h.

Referenced by pnm_probe().

◆ PNM_ASCII_LEN

#define PNM_ASCII_LEN   16

Default maximum length of ASCII values.

Definition at line 41 of file pnm.h.

Referenced by pnm_pixbuf().

Enumeration Type Documentation

◆ pnm_flags

enum pnm_flags

PNM flags.

Enumerator
PNM_BITMAP 

Bitmap format.

If set, this flag indicates that:

  • the maximum scalar value is predefined as being equal to (2^packing-1), and is not present within the file, and
  • the maximum length of ASCII values is 1.

Definition at line 70 of file pnm.h.

70 {
71 /** Bitmap format
72 *
73 * If set, this flag indicates that:
74 *
75 * - the maximum scalar value is predefined as being equal to
76 * (2^packing-1), and is not present within the file, and
77 *
78 * - the maximum length of ASCII values is 1.
79 */
80 PNM_BITMAP = 0x01,
81};
@ PNM_BITMAP
Bitmap format.
Definition pnm.h:80

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ __image_type()

struct image_type pnm_image_type __image_type ( PROBE_NORMAL )
extern

References __image_type, and PROBE_NORMAL.