RetroArch
|
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <boolean.h>
#include <formats/image.h>
#include <file/nbio.h>
Enumerations | |
enum | video_image_format { IMAGE_FORMAT_NONE = 0, IMAGE_FORMAT_TGA, IMAGE_FORMAT_PNG, IMAGE_FORMAT_JPEG, IMAGE_FORMAT_BMP } |
Functions | |
bool | image_texture_set_color_shifts (unsigned *r_shift, unsigned *g_shift, unsigned *b_shift, unsigned *a_shift, struct texture_image *out_img) |
bool | image_texture_color_convert (unsigned r_shift, unsigned g_shift, unsigned b_shift, unsigned a_shift, struct texture_image *out_img) |
static bool | image_texture_load_internal (enum image_type_enum type, void *ptr, size_t len, struct texture_image *out_img, unsigned a_shift, unsigned r_shift, unsigned g_shift, unsigned b_shift) |
void | image_texture_free (struct texture_image *img) |
static enum video_image_format | image_texture_get_type (const char *path) |
static enum image_type_enum | image_texture_convert_fmt_to_type (enum video_image_format fmt) |
bool | image_texture_load (struct texture_image *out_img, const char *path) |
enum video_image_format |
bool image_texture_color_convert | ( | unsigned | r_shift, |
unsigned | g_shift, | ||
unsigned | b_shift, | ||
unsigned | a_shift, | ||
struct texture_image * | out_img | ||
) |
|
static |
void image_texture_free | ( | struct texture_image * | img | ) |
|
static |
bool image_texture_load | ( | struct texture_image * | out_img, |
const char * | path | ||
) |
|
static |
bool image_texture_set_color_shifts | ( | unsigned * | r_shift, |
unsigned * | g_shift, | ||
unsigned * | b_shift, | ||
unsigned * | a_shift, | ||
struct texture_image * | out_img | ||
) |