Commit Graph

151 Commits

Author SHA1 Message Date
libretroadmin 6b71214ed7 Silence some signed/unsigned mismatch warnings 2022-11-21 19:34:43 +01:00
libretroadmin d5a268a2ac * Fix signed/unsigned mismatches
* Fix missing IPAddr on MSVC2017 UWP - use ULONG instead since this is
just a typedef
2022-11-15 00:24:26 +01:00
LibretroAdmin 951b98fe1b
Bools to flags (#14486)
* (D3D11) Use flags instead of bools

* (RPNG) Use flags

* Simplify rpng_is_valid

* (rpng_is_valid) Prevent potential NULL pointer dereference
(D3D11) Some whitespacing changes/code nits

* (task_pl_thumbnail_download.c) Simplify some code
2022-10-06 19:26:38 +02:00
LibretroAdmin 33c9f56df0 (RPNG) PNG decoder - proper namespacing of functions, general cleanups 2022-08-02 15:55:26 +02:00
LibretroAdmin 342d3da620 (RPNG optimizations)
- Use memcpy to inflate_buf into array
- Some miscellaneous tweaks
2022-08-02 15:17:37 +02:00
LibretroAdmin e6f3a387b2 png_reverse_filter_copy_line - optimization - paeth would always return
'b' input value (and input is unsigned, so abs would have no effect), so
get rid of the paeth function call for the first loop iteration
2022-08-02 13:22:13 +02:00
Alcaro 654aae58d6 rpng: Fix some memory corruption if processing broken input 2021-05-17 08:43:53 +02:00
twinaphex 1b071f16f5 Silence implicit conversion warnings 2021-01-16 20:03:04 +01:00
twinaphex cde5d37eb2 Put this behind RPNG_TEST 2020-08-24 18:17:47 +02:00
Twinaphex a175af4e6a Cleanup some unused variables 2020-08-22 18:04:34 +02:00
twinaphex 503131de66 (RPNG) Cleanups 2020-08-22 17:37:34 +02:00
twinaphex f4432acd06 (RPGN) Cleanups to IHDR code 2020-08-22 17:34:13 +02:00
twinaphex 73ed02b5f6 (RPNG) Cleanup read_chunk_header 2020-08-22 17:18:32 +02:00
twinaphex d6f22a7a4c (RPNG) Simplify png_process_ihdr 2020-08-22 16:28:50 +02:00
twinaphex c7cf9d6df7 (RPNG) Simplify rpng_start 2020-08-22 16:11:54 +02:00
twinaphex 5cc4d0da0f (RPNG) Make sure we don't use stdio/fprintf unless DEBUG is defined 2020-08-22 16:07:03 +02:00
twinaphex deafd70934 (RPNG) More simplifications - get rid of png_chunk struct, just pass
uint32_t around to function
2020-08-22 15:37:21 +02:00
twinaphex 91345fe867 (RPNG) read_chunk_header - simplify code some more 2020-08-22 15:34:32 +02:00
twinaphex 8b5b472a2d Optimize read_chunk_header 2020-08-22 14:24:11 +02:00
twinaphex 2e6b87d156 Simplify rpng.c - read_chunk 2020-08-22 14:20:50 +02:00
twinaphex cb0a193eea Fix RPNG build failure 2020-08-19 18:20:55 +02:00
twinaphex c4be485baf Revert "Optimize png_reverse_filter_copy_line_rgb"
This reverts commit aa428cc415.
2020-08-19 18:17:16 +02:00
twinaphex ae0d63ccc0 Revert "Optimize png_reverse_filter_copy_line_rgba"
This reverts commit ad3c67f275.
2020-08-19 18:16:57 +02:00
twinaphex e8170a4354 Revert "Optimize png_reverse_filter_copy_line_gray_alpha"
This reverts commit 710226504e.
2020-08-19 18:16:42 +02:00
twinaphex 7c19d4d009 Revert "Optimize png_read_plte"
This reverts commit 107b640bc0.
2020-08-19 18:16:10 +02:00
twinaphex ea5d134337 Revert "Optimize read_chunk_header"
This reverts commit 33f9ef90d8.
2020-08-19 18:15:54 +02:00
twinaphex 282d34aeb1 Revert "(RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass"
This reverts commit a283b71261.
2020-08-19 18:15:24 +02:00
twinaphex 003ff126ce Revert "(RPNG) optimizations to copy_line_bw"
This reverts commit 9b29217564.
2020-08-19 18:15:08 +02:00
Twinaphex e3d77d7f28 Remove unused variable 2020-08-19 17:21:22 +02:00
twinaphex 9b29217564 (RPNG) optimizations to copy_line_bw 2020-08-19 12:07:56 +02:00
twinaphex a283b71261 (RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass 2020-08-19 10:05:09 +02:00
twinaphex 33f9ef90d8 Optimize read_chunk_header 2020-08-19 09:09:38 +02:00
twinaphex 107b640bc0 Optimize png_read_plte 2020-08-19 08:58:18 +02:00
twinaphex 710226504e Optimize png_reverse_filter_copy_line_gray_alpha 2020-08-19 08:18:09 +02:00
twinaphex ad3c67f275 Optimize png_reverse_filter_copy_line_rgba 2020-08-19 08:14:23 +02:00
twinaphex aa428cc415 Optimize png_reverse_filter_copy_line_rgb 2020-08-19 08:09:17 +02:00
Alcaro 37efa9d52e
rpng: delete "unused" png_chunk member
also fix a rather ugly buffer overflow that relies on the unused member existing and being null
2020-08-16 00:27:25 +02:00
twinaphex d0b68ee838 (RPNG) Struct alignment changes 2020-08-14 17:54:03 +02:00
twinaphex b4dc19d7aa (RPNG) Cleanups 2020-08-14 17:49:33 +02:00
twinaphex 6085ed358d (RPNG) Use malloc 2020-06-27 21:09:29 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex 8bf11e9b18 (libretro-common) Try to prevent implicit usage of stdio fprintf 2020-05-24 20:18:36 +02:00
twinaphex cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
twinaphex 4c7beacfe4 (RPNG) rpng_is_valid - cleanup 2019-09-15 07:40:02 +02:00
jdgleaver ff297e72e7 (task_image) Make image loading/processing non-blocking on non-threaded systems 2019-05-28 12:57:52 +01:00
jdgleaver 431877799d (RPNG) Fix undefined behaviour when loading bad/corrupt PNG images 2019-05-27 13:07:11 +01:00
twinaphex f07952ecf0 Fix ASAN error 2019-05-16 17:43:16 +02:00
twinaphex 55e0a97446 Revert "Turn palette 64bit"
This reverts commit 8b8d4c83c0.
2019-05-16 16:51:59 +02:00
twinaphex 8b8d4c83c0 Turn palette 64bit 2019-05-16 16:42:11 +02:00
Brad Parker fbe08aa0c5 fix double free 2018-08-18 00:51:07 -04:00