php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "gd_tga.h"
#include "gd.h"
#include "gd_errors.h"
#include "gdhelpers.h"
Go to the source code of this file.
Functions | |
gdImagePtr | gdImageCreateFromTga (FILE *fp) |
gdImagePtr | gdImageCreateFromTgaPtr (int size, void *data) |
gdImagePtr | gdImageCreateFromTgaCtx (gdIOCtx *ctx) |
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. | |
gdImagePtr gdImageCreateFromTga | ( | FILE * | fp | ) |
gdImagePtr gdImageCreateFromTgaCtx | ( | gdIOCtx * | ctx | ) |
gdImagePtr gdImageCreateFromTgaPtr | ( | int | size, |
void * | data ) |
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.