mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(rbmp) Change typedef enum
This commit is contained in:
parent
70bb4c69f3
commit
87840e5b6c
@ -138,7 +138,7 @@ static void dump_line_32_to_24(uint8_t *line, const uint32_t *src, unsigned widt
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void dump_content(RFILE *file, const void *frame,
|
static void dump_content(RFILE *file, const void *frame,
|
||||||
int width, int height, int pitch, rbmp_source_type type)
|
int width, int height, int pitch, enum rbmp_source_type type)
|
||||||
{
|
{
|
||||||
uint8_t *line;
|
uint8_t *line;
|
||||||
size_t line_size;
|
size_t line_size;
|
||||||
@ -202,7 +202,7 @@ static void dump_content(RFILE *file, const void *frame,
|
|||||||
|
|
||||||
bool rbmp_save_image(const char *filename, const void *frame,
|
bool rbmp_save_image(const char *filename, const void *frame,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
unsigned pitch, rbmp_source_type type)
|
unsigned pitch, enum rbmp_source_type type)
|
||||||
{
|
{
|
||||||
bool ret;
|
bool ret;
|
||||||
RFILE *file = retro_fopen(filename, RFILE_MODE_WRITE, -1);
|
RFILE *file = retro_fopen(filename, RFILE_MODE_WRITE, -1);
|
||||||
|
@ -29,20 +29,22 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum
|
enum rbmp_source_type
|
||||||
{
|
{
|
||||||
RBMP_SOURCE_TYPE_DONT_CARE,
|
RBMP_SOURCE_TYPE_DONT_CARE,
|
||||||
RBMP_SOURCE_TYPE_BGR24,
|
RBMP_SOURCE_TYPE_BGR24,
|
||||||
RBMP_SOURCE_TYPE_XRGB888,
|
RBMP_SOURCE_TYPE_XRGB888,
|
||||||
RBMP_SOURCE_TYPE_RGB565,
|
RBMP_SOURCE_TYPE_RGB565,
|
||||||
RBMP_SOURCE_TYPE_ARGB8888
|
RBMP_SOURCE_TYPE_ARGB8888
|
||||||
} rbmp_source_type;
|
};
|
||||||
|
|
||||||
bool rbmp_save_image(
|
bool rbmp_save_image(
|
||||||
const char *filename,
|
const char *filename,
|
||||||
const void *frame,
|
const void *frame,
|
||||||
unsigned width, unsigned height,
|
unsigned width,
|
||||||
unsigned pitch, rbmp_source_type type);
|
unsigned height,
|
||||||
|
unsigned pitch,
|
||||||
|
enum rbmp_source_type type);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user