RetroArch
Classes | Enumerations | Functions
image.h File Reference
#include <stdint.h>
#include <retro_common_api.h>
#include <boolean.h>
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  texture_image
 

Enumerations

enum  image_process_code { IMAGE_PROCESS_ERROR = -2, IMAGE_PROCESS_ERROR_END = -1, IMAGE_PROCESS_NEXT = 0, IMAGE_PROCESS_END = 1 }
 
enum  image_type_enum {
  IMAGE_TYPE_NONE = 0, IMAGE_TYPE_PNG, IMAGE_TYPE_JPEG, IMAGE_TYPE_BMP,
  IMAGE_TYPE_TGA
}
 

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)
 
bool image_texture_load (struct texture_image *img, const char *path)
 
void image_texture_free (struct texture_image *img)
 
void image_transfer_free (void *data, enum image_type_enum type)
 
voidimage_transfer_new (enum image_type_enum type)
 
bool image_transfer_start (void *data, enum image_type_enum type)
 
void image_transfer_set_buffer_ptr (void *data, enum image_type_enum type, void *ptr)
 
int image_transfer_process (void *data, enum image_type_enum type, uint32_t **buf, size_t size, unsigned *width, unsigned *height)
 
bool image_transfer_iterate (void *data, enum image_type_enum type)
 
bool image_transfer_is_valid (void *data, enum image_type_enum type)
 

Enumeration Type Documentation

◆ image_process_code

Enumerator
IMAGE_PROCESS_ERROR 
IMAGE_PROCESS_ERROR_END 
IMAGE_PROCESS_NEXT 
IMAGE_PROCESS_END 

◆ image_type_enum

Enumerator
IMAGE_TYPE_NONE 
IMAGE_TYPE_PNG 
IMAGE_TYPE_JPEG 
IMAGE_TYPE_BMP 
IMAGE_TYPE_TGA 

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_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_load()

bool image_texture_load ( struct texture_image img,
const char *  path 
)
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:

◆ image_transfer_free()

void image_transfer_free ( void data,
enum image_type_enum  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_is_valid()

bool image_transfer_is_valid ( void data,
enum image_type_enum  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_iterate()

bool image_transfer_iterate ( void data,
enum image_type_enum  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_new()

void* image_transfer_new ( enum image_type_enum  type)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_process()

int image_transfer_process ( void data,
enum image_type_enum  type,
uint32_t **  buf,
size_t  size,
unsigned *  width,
unsigned *  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_set_buffer_ptr()

void image_transfer_set_buffer_ptr ( void data,
enum image_type_enum  type,
void ptr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_transfer_start()

bool image_transfer_start ( void data,
enum image_type_enum  type 
)
Here is the call graph for this function:
Here is the caller graph for this function: