mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(RPNG) Move dword_be
This commit is contained in:
parent
714b3e3126
commit
6adc124604
@ -44,6 +44,11 @@ enum png_process_code
|
||||
PNG_PROCESS_END = 1
|
||||
};
|
||||
|
||||
static INLINE uint32_t dword_be(const uint8_t *buf)
|
||||
{
|
||||
return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | (buf[3] << 0);
|
||||
}
|
||||
|
||||
static enum png_chunk_type png_chunk_type(const struct png_chunk *chunk)
|
||||
{
|
||||
unsigned i;
|
||||
|
@ -160,11 +160,6 @@ static INLINE int paeth(int a, int b, int c)
|
||||
return c;
|
||||
}
|
||||
|
||||
static INLINE uint32_t dword_be(const uint8_t *buf)
|
||||
{
|
||||
return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | (buf[3] << 0);
|
||||
}
|
||||
|
||||
int rpng_load_image_argb_process_inflate_init(rpng_t *rpng,
|
||||
uint32_t **data, unsigned *width, unsigned *height);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user