php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
struct | oTga_ |
Macros | |
#define | TGA_TYPE_NO_IMAGE 0 |
#define | TGA_TYPE_INDEXED 1 |
#define | TGA_TYPE_RGB 2 |
#define | TGA_TYPE_GREYSCALE 3 |
#define | TGA_TYPE_INDEXED_RLE 9 |
#define | TGA_TYPE_RGB_RLE 10 |
#define | TGA_TYPE_GREYSCALE_RLE 11 |
#define | TGA_TYPE_INDEXED_HUFFMAN_DELTA_RLE 32 |
#define | TGA_TYPE_RGB_HUFFMAN_DELTA_QUADTREE_RLE 33 |
#define | TGA_BPP_8 8 |
#define | TGA_BPP_16 16 |
#define | TGA_BPP_24 24 |
#define | TGA_BPP_32 32 |
#define | TGA_RLE_FLAG 128 |
Typedefs | |
typedef struct oTga_ | oTga |
Functions | |
int | read_header_tga (gdIOCtx *ctx, oTga *tga) |
Reads a TGA header. Reads the header block from a binary TGA file populating the referenced TGA structure. | |
int | read_image_tga (gdIOCtx *ctx, oTga *tga) |
Reads a TGA image data into buffer. Reads the image data block from a binary TGA file populating the referenced TGA structure. | |
void | free_tga (oTga *tga) |
Cleans up a TGA structure. Dereferences the bitmap referenced in a TGA structure, then the structure itself. | |
Reads a TGA image data into buffer. Reads the image data block from a binary TGA file populating the referenced TGA structure.
ctx | Pointer to TGA binary file |
tga | Pointer to TGA structure |
Allocate memmory for image block Allocate a chunk of memory for the image block to be passed into.
Read in uncompressed RGB TGA Chunk load the pixel data from an uncompressed RGB type TGA.
Read in RLE compressed RGB TGA Chunk load the pixel data from an RLE compressed RGB type TGA.