iPXE
|
Portable Network Graphics (PNG) format. More...
Go to the source code of this file.
Data Structures | |
struct | png_signature |
A PNG file signature. More... | |
struct | png_chunk_header |
A PNG chunk header. More... | |
struct | png_chunk_footer |
A PNG chunk footer. More... | |
struct | png_image_header |
A PNG image header. More... | |
struct | png_palette_entry |
A PNG palette entry. More... | |
struct | png_palette |
A PNG palette chunk. More... | |
Macros | |
#define | PNG_SIGNATURE { { 0x89, 'P', 'N', 'G', '\r', '\n', 0x1a, '\n' } } |
PNG file signature. More... | |
#define | PNG_TYPE(first, second, third, fourth) ( ( (first) << 24 ) | ( (second) << 16 ) | ( (third) << 8 ) | (fourth) ) |
Define a canonical PNG chunk type. More... | |
#define | PNG_TYPE_IHDR PNG_TYPE ( 'I', 'H', 'D', 'R' ) |
PNG image header chunk type. More... | |
#define | PNG_COLOUR_TYPE_MASK 0x07 |
PNG colour type mask. More... | |
#define | PNG_TYPE_PLTE PNG_TYPE ( 'P', 'L', 'T', 'E' ) |
PNG palette chunk type. More... | |
#define | PNG_PALETTE_COUNT 256 |
Maximum number of PNG palette entries. More... | |
#define | PNG_TYPE_IDAT PNG_TYPE ( 'I', 'D', 'A', 'T' ) |
PNG image data chunk type. More... | |
#define | PNG_TYPE_IEND PNG_TYPE ( 'I', 'E', 'N', 'D' ) |
PNG image end chunk type. More... | |
Enumerations | |
enum | png_chunk_type_bits { PNG_CHUNK_ANCILLARY = 0x20000000UL, PNG_CHUNK_PRIVATE = 0x00200000UL, PNG_CHUNK_RESERVED = 0x00002000UL, PNG_CHUNK_SAFE = 0x00000020UL } |
PNG chunk type property bits. More... | |
enum | png_colour_type { PNG_COLOUR_TYPE_PALETTE = 0x01, PNG_COLOUR_TYPE_RGB = 0x02, PNG_COLOUR_TYPE_ALPHA = 0x04 } |
PNG colour type bits. More... | |
enum | png_compression_method { PNG_COMPRESSION_DEFLATE = 0x00, PNG_COMPRESSION_UNKNOWN = 0x01 } |
PNG compression methods. More... | |
enum | png_filter_method { PNG_FILTER_BASIC = 0x00, PNG_FILTER_UNKNOWN = 0x01 } |
PNG filter methods. More... | |
enum | png_interlace_method { PNG_INTERLACE_NONE = 0x00, PNG_INTERLACE_ADAM7 = 0x01, PNG_INTERLACE_UNKNOWN = 0x02 } |
PNG interlace methods. More... | |
enum | png_basic_filter_type { PNG_FILTER_BASIC_NONE = 0, PNG_FILTER_BASIC_SUB = 1, PNG_FILTER_BASIC_UP = 2, PNG_FILTER_BASIC_AVERAGE = 3, PNG_FILTER_BASIC_PAETH = 4 } |
PNG basic filter types. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static uint32_t | png_canonical_type (uint32_t type) |
Canonicalise PNG chunk type. More... | |
struct image_type png_image_type | __image_type (PROBE_NORMAL) |
Portable Network Graphics (PNG) format.
Definition in file png.h.
#define PNG_SIGNATURE { { 0x89, 'P', 'N', 'G', '\r', '\n', 0x1a, '\n' } } |
#define PNG_TYPE_IHDR PNG_TYPE ( 'I', 'H', 'D', 'R' ) |
#define PNG_TYPE_PLTE PNG_TYPE ( 'P', 'L', 'T', 'E' ) |
#define PNG_PALETTE_COUNT 256 |
#define PNG_TYPE_IDAT PNG_TYPE ( 'I', 'D', 'A', 'T' ) |
#define PNG_TYPE_IEND PNG_TYPE ( 'I', 'E', 'N', 'D' ) |
enum png_chunk_type_bits |
enum png_colour_type |
enum png_filter_method |
enum png_interlace_method |
PNG basic filter types.
Definition at line 161 of file png.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Canonicalise PNG chunk type.
type | Raw chunk type |
type | Canonicalised chunk type (excluding property bits) |
Definition at line 58 of file png.h.
References htonl, PNG_CHUNK_ANCILLARY, PNG_CHUNK_PRIVATE, PNG_CHUNK_RESERVED, PNG_CHUNK_SAFE, and type.
struct image_type png_image_type __image_type | ( | PROBE_NORMAL | ) |