Blender
V3.3
|
#include "BLI_fileops.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "imbuf.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_filetype.h"
#include "IMB_colormanagement.h"
#include "IMB_colormanagement_intern.h"
Go to the source code of this file.
Classes | |
struct | TARGA |
Macros | |
#define | GSS(x) (((uchar *)(x))[1] << 8 | ((uchar *)(x))[0]) |
#define | TARGA_HEADER_SIZE 18 |
Typedefs | |
typedef struct TARGA | TARGA |
Functions | |
static int | tga_out1 (unsigned int data, FILE *file) |
static int | tga_out2 (unsigned int data, FILE *file) |
static int | tga_out3 (unsigned int data, FILE *file) |
static int | tga_out4 (unsigned int data, FILE *file) |
static bool | makebody_tga (ImBuf *ibuf, FILE *file, int(*out)(unsigned int, FILE *)) |
static bool | dumptarga (struct ImBuf *ibuf, FILE *file) |
bool | imb_savetarga (struct ImBuf *ibuf, const char *filepath, int UNUSED(flags)) |
static bool | checktarga (TARGA *tga, const unsigned char *mem, const size_t size) |
bool | imb_is_a_targa (const unsigned char *buf, size_t size) |
static void | complete_partial_load (struct ImBuf *ibuf, unsigned int *rect) |
static void | decodetarga (struct ImBuf *ibuf, const unsigned char *mem, size_t mem_size, int psize) |
static void | ldtarga (struct ImBuf *ibuf, const unsigned char *mem, size_t mem_size, int psize) |
ImBuf * | imb_loadtarga (const unsigned char *mem, size_t mem_size, int flags, char colorspace[IM_MAX_SPACE]) |
#define TARGA_HEADER_SIZE 18 |
Definition at line 348 of file targa.c.
References GSS, TARGA::imgdes, TARGA::imgtyp, TARGA::mapbits, TARGA::maporig, TARGA::mapsize, TARGA::maptyp, TARGA::numid, TARGA::pixsize, size(), TARGA_HEADER_SIZE, TARGA::xorig, TARGA::xsize, TARGA::yorig, and TARGA::ysize.
Referenced by imb_is_a_targa(), and imb_loadtarga().
Definition at line 407 of file targa.c.
References ImBuf::rect, size(), ImBuf::x, and ImBuf::y.
Referenced by decodetarga(), and ldtarga().
|
static |
Definition at line 423 of file targa.c.
References col, complete_partial_load(), count, NULL, ImBuf::rect, size(), ImBuf::x, and ImBuf::y.
Referenced by imb_loadtarga().
Definition at line 217 of file targa.c.
References file, if(), NULL, ImBuf::planes, ImBuf::rect, size(), ImBuf::x, and ImBuf::y.
Referenced by imb_savetarga().
bool imb_is_a_targa | ( | const unsigned char * | buf, |
size_t | size | ||
) |
Definition at line 400 of file targa.c.
References checktarga(), and size().
ImBuf* imb_loadtarga | ( | const unsigned char * | mem, |
size_t | mem_size, | ||
int | flags, | ||
char | colorspace[IM_MAX_SPACE] | ||
) |
Definition at line 612 of file targa.c.
References BIG_LONG, checktarga(), col, COLOR_ROLE_DEFAULT_BYTE, colorspace_set_default_role(), count, decodetarga(), ELEM, ImbFormatOptions::flag, ImBuf::flags, ImBuf::foptions, ImBuf::ftype, IB_rect, IB_test, IM_MAX_SPACE, IMB_allocImBuf(), IMB_convert_rgba_to_abgr(), IMB_flipy(), IMB_FTYPE_TGA, TARGA::imgdes, TARGA::imgtyp, ldtarga(), TARGA::mapbits, TARGA::mapsize, MEM_callocN, MEM_freeN, NULL, TARGA::numid, TARGA::pixsize, ImBuf::planes, RAWTGA, ImBuf::rect, size(), TARGA_HEADER_SIZE, ImBuf::x, TARGA::xsize, ImBuf::y, and TARGA::ysize.
Definition at line 281 of file targa.c.
References BLI_fopen(), dumptarga(), ImbFormatOptions::flag, ImBuf::foptions, makebody_tga(), ImBuf::planes, RAWTGA, TARGA_HEADER_SIZE, tga_out1(), tga_out2(), tga_out3(), tga_out4(), ImBuf::x, and ImBuf::y.
|
static |
Definition at line 548 of file targa.c.
References col, complete_partial_load(), NULL, ImBuf::rect, size(), ImBuf::x, and ImBuf::y.
Referenced by imb_loadtarga().
Definition at line 120 of file targa.c.
References copy(), file, usdtokens::out(), ImBuf::rect, ImBuf::x, y, and ImBuf::y.
Referenced by imb_savetarga().
|
static |
|
static |
|
static |
|
static |