mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Revert "Create png_reverse_filter_adam7_process"
This reverts commit 1444c14b38
.
This commit is contained in:
parent
1444c14b38
commit
87933f1ff3
@ -425,27 +425,6 @@ static bool png_reverse_filter(uint32_t *data, const struct png_ihdr *ihdr,
|
||||
return false;
|
||||
}
|
||||
|
||||
static void png_reverse_filter_adam7_process(uint32_t *data,
|
||||
const struct png_ihdr *ihdr,
|
||||
const uint8_t *inflate_buf, struct rpng_process_t *pngp)
|
||||
{
|
||||
if (!pngp)
|
||||
return;
|
||||
|
||||
inflate_buf += pngp->pass.size;
|
||||
pngp->stream.total_out -= pngp->pass.size;
|
||||
|
||||
deinterlace_pass(data,
|
||||
ihdr, pngp->data, pngp->pass.width, pngp->pass.height, &passes[pngp->pass.pos]);
|
||||
|
||||
free(pngp->data);
|
||||
|
||||
pngp->pass.width = 0;
|
||||
pngp->pass.height = 0;
|
||||
pngp->pass.size = 0;
|
||||
pngp->adam7_pass_initialized = false;
|
||||
}
|
||||
|
||||
static int png_reverse_filter_adam7(uint32_t *data,
|
||||
const struct png_ihdr *ihdr,
|
||||
const uint8_t *inflate_buf, struct rpng_process_t *pngp,
|
||||
@ -468,7 +447,18 @@ static int png_reverse_filter_adam7(uint32_t *data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
png_reverse_filter_adam7_process(data, ihdr, inflate_buf, pngp);
|
||||
inflate_buf += pngp->pass.size;
|
||||
pngp->stream.total_out -= pngp->pass.size;
|
||||
|
||||
deinterlace_pass(data,
|
||||
ihdr, pngp->data, pngp->pass.width, pngp->pass.height, &passes[pngp->pass.pos]);
|
||||
|
||||
free(pngp->data);
|
||||
|
||||
pngp->pass.width = 0;
|
||||
pngp->pass.height = 0;
|
||||
pngp->pass.size = 0;
|
||||
pngp->adam7_pass_initialized = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user