0.3.1
libtga

Modules

 Using the library
 

Files

file  tga.h
 

Data Structures

struct  tga_t
 Not yet documented. More...
 
struct  tga_t.tga_options
 User modifiable. More...
 

Macros

#define TGA_FILE_OK   0
 Not yet documented.
 
#define TGA_FILE_UNKNOWN_FORMAT   -1
 Not yet documented.
 
#define TGA_FILE_CORRUPTED   -2
 Not yet documented.
 
#define TGA_FILE_NOT_SUPPORTED   -3
 Not yet documented.
 
#define TGA_MEMORY_ERROR   -4
 Not yet documented.
 
#define TGA_MEMORY_UNALIGNMENT_ERROR   -5
 Not yet documented.
 

Functions

int32_t tga_read (tga_t *tga, const uint8_t *file)
 Not yet documented.
 
int32_t tga_image_decode_tiled (const tga_t *tga, void *dst)
 Not yet documented.
 
int32_t tga_image_decode (const tga_t *tga, void *dst)
 Not yet documented.
 
int32_t tga_cmap_decode (const tga_t *tga, uint16_t *dst)
 Not yet documented.
 
const char * tga_error_stringify (int error)
 Not yet documented.
 

Detailed Description

This is where the library is described.


Data Structure Documentation

◆ tga_t

struct tga_t

Not yet documented.

Data Fields
const char * tga_file Not yet documented.
uint8_t tga_type Not yet documented.
uint8_t tga_bpp Not yet documented.
uint16_t tga_width Not yet documented.
uint16_t tga_height Not yet documented.
uint8_t tga_cmap_bpp Not yet documented.
uint16_t tga_cmap_len Not yet documented.
uint32_t tga_cmap_bytes Not yet documented.
struct tga_t.tga_options tga_options User modifiable.

◆ tga_t.tga_options

struct tga_t.tga_options

User modifiable.

Data Fields
uint32_t transparent_pixel Determine the transparent pixel color (in RGB555).
bool msb Enable setting MSB bit for transparent pixel color.

Function Documentation

◆ tga_read()

int32_t tga_read ( tga_t tga,
const uint8_t file 
)

Not yet documented.

Parameters
tga
file
Returns
Not yet documented.

◆ tga_image_decode_tiled()

int32_t tga_image_decode_tiled ( const tga_t tga,
void *  dst 
)

Not yet documented.

Parameters
tga
dst
Returns
Not yet documented.

◆ tga_image_decode()

int32_t tga_image_decode ( const tga_t tga,
void *  dst 
)

Not yet documented.

Parameters
tga
dst
Returns
Not yet documented.

◆ tga_cmap_decode()

int32_t tga_cmap_decode ( const tga_t tga,
uint16_t dst 
)

Not yet documented.

Parameters
tga
dst
Returns
Not yet documented.

◆ tga_error_stringify()

const char * tga_error_stringify ( int  error)

Not yet documented.

Parameters
error
Returns
Not yet documented.