iPXE
Data Structures | Defines | Enumerations | Functions
pnm.h File Reference

Portable anymap format (PNM) More...

#include <stdint.h>
#include <ipxe/uaccess.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...

Defines

#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.


Define Documentation

#define PNM_MAGIC   'P'

PNM magic byte.

Definition at line 27 of file pnm.h.

Referenced by pnm_probe().

#define PNM_ASCII_LEN   16

Default maximum length of ASCII values.

Definition at line 42 of file pnm.h.

Referenced by pnm_pixbuf().


Enumeration Type Documentation

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 71 of file pnm.h.

               {
        /** 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.
         */
        PNM_BITMAP = 0x01,
};

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
struct image_type pnm_image_type __image_type ( PROBE_NORMAL  ) [read]