mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
Add missing parameters
This commit is contained in:
parent
0a2544c1bf
commit
7f272a4bd0
@ -278,7 +278,8 @@ bool video_texture_image_load(struct texture_image *out_img,
|
||||
#endif
|
||||
break;
|
||||
case IMAGE_FORMAT_JPEG:
|
||||
if (rjpeg_image_load(ptr, out_img, file_len))
|
||||
if (rjpeg_image_load(ptr, out_img, file_len,
|
||||
a_shift, r_shift, g_shift, b_shift))
|
||||
goto success;
|
||||
break;
|
||||
default:
|
||||
|
@ -844,7 +844,9 @@ static void rjpeg_free(struct rjpeg_data *ctx)
|
||||
free((void*)ctx->rgb);
|
||||
}
|
||||
|
||||
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size)
|
||||
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size,
|
||||
unsigned a_shift, unsigned r_shift,
|
||||
unsigned g_shift, unsigned b_shift)
|
||||
{
|
||||
struct rjpeg_data *rjpg = rjpeg_new(buf, size);
|
||||
struct texture_image *out_img = (struct texture_image*)data;
|
||||
|
@ -32,7 +32,8 @@
|
||||
|
||||
RETRO_BEGIN_DECLS
|
||||
|
||||
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size);
|
||||
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size,
|
||||
unsigned a_shift, unsigned r_shift, unsigned g_shift, unsigned b_shift);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user