RetroArch
Enumerations | Functions
image_texture.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <boolean.h>
#include <formats/image.h>
#include <file/nbio.h>
Include dependency graph for image_texture.c:
This graph shows which files directly or indirectly include this file:

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)
 

Enumeration Type Documentation

◆ video_image_format

Enumerator
IMAGE_FORMAT_NONE 
IMAGE_FORMAT_TGA 
IMAGE_FORMAT_PNG 
IMAGE_FORMAT_JPEG 
IMAGE_FORMAT_BMP 

Function Documentation

◆ image_texture_color_convert()

bool image_texture_color_convert ( unsigned  r_shift,
unsigned  g_shift,
unsigned  b_shift,
unsigned  a_shift,
struct texture_image out_img 
)
Here is the caller graph for this function:

◆ image_texture_convert_fmt_to_type()

static enum image_type_enum image_texture_convert_fmt_to_type ( enum video_image_format  fmt)
static
Here is the caller graph for this function:

◆ image_texture_free()

void image_texture_free ( struct texture_image img)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_texture_get_type()

static enum video_image_format image_texture_get_type ( const char *  path)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_texture_load()

bool image_texture_load ( struct texture_image out_img,
const char *  path 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_texture_load_internal()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_texture_set_color_shifts()

bool image_texture_set_color_shifts ( unsigned *  r_shift,
unsigned *  g_shift,
unsigned *  b_shift,
unsigned *  a_shift,
struct texture_image out_img 
)
Here is the caller graph for this function: