iPXE
Data Structures | Macros | 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...
 

Macros

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

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

◆ PNM_ASCII_LEN

#define PNM_ASCII_LEN   16

Default maximum length of ASCII values.

Definition at line 42 of file pnm.h.

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

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

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ __image_type()

struct image_type pnm_image_type __image_type ( PROBE_NORMAL  )