mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(RPNG) More cleanups to png_reverse_filter_loop
This commit is contained in:
parent
cb9c0828db
commit
b7d73ebc93
@ -593,20 +593,15 @@ bool png_reverse_filter_loop(struct rpng_t *rpng,
|
||||
uint32_t **data)
|
||||
{
|
||||
int ret = 0;
|
||||
const struct png_ihdr *ihdr = NULL;
|
||||
struct rpng_process_t *pngp = NULL;
|
||||
|
||||
if (!rpng)
|
||||
return false;
|
||||
|
||||
ihdr = &rpng->ihdr;
|
||||
pngp = &rpng->process;
|
||||
|
||||
if (!ihdr || !pngp)
|
||||
return false;
|
||||
|
||||
do
|
||||
{
|
||||
const struct png_ihdr *ihdr = &rpng->ihdr;
|
||||
struct rpng_process_t *pngp = &rpng->process;
|
||||
|
||||
if (ihdr->interlace)
|
||||
ret = png_reverse_filter_adam7(data, ihdr, pngp);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user