Commit Graph

336 Commits

Author SHA1 Message Date
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
twinaphex 821ffc9962 Clang scan-build error fix 2018-08-19 16:13:13 +02:00
Brad Parker fbe08aa0c5 fix double free 2018-08-18 00:51:07 -04:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex 3d0e768e71 Silence some Coverity errors 2018-02-04 19:30:34 +01:00
twinaphex d5ec046c63 Use calloc 2018-01-23 03:43:38 +01:00
twinaphex 6a47669d21 Prevent some heap corruptions/exceptions 2018-01-23 03:41:25 +01:00
twinaphex 93561a042b Cleanups 2018-01-23 03:35:23 +01:00
twinaphex 27f34bf420 Some stability fixes 2018-01-23 03:23:49 +01:00
twinaphex a80fb7c969 Add some safeguards here 2018-01-22 21:48:28 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
twinaphex d0eef2579e remove this - shouldn't be necessary 2017-11-25 00:54:51 +01:00
twinaphex 7959cd3993 Use malloc 2017-09-29 22:47:45 +02:00
Twinaphex 808b973752 (OSX) Silence warnings 2017-05-16 08:44:17 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
Gregor Richards ac50e17f50 Moving zlib stream interface
Moving the zlib streaming interface out of archive_file and into
trans_stream, including updating the png support to use the new
trans_stream interface. archive_file_zlib itself still needs updating.
2016-11-26 10:47:24 -05:00
twinaphex 2b834ce9d8 (rpng) Prevent implicit memsets 2016-10-16 01:34:16 +02:00
twinaphex efdee89d09 Create samples 2016-09-28 12:44:41 +02:00
twinaphex dbf6d9331f (rpng_encode.c) Use encoding_crc32 2016-09-21 02:16:56 +02:00
Brad Parker 7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
twinaphex db36b40b20 Rework this code 2016-08-23 20:12:37 +02:00
twinaphex 1b44f44822 Buildfix 2016-08-23 20:11:12 +02:00
Francisco José García García 5bd2364575 (VITA) Fix screenshots and some debug options 2016-08-23 18:17:46 +02:00
twinaphex b64070793a (PS3) Fix two warnings 2016-08-03 16:30:58 +02:00
twinaphex fda2495021 Get rid of HAVE_ZLIB_DEFLATE - implicitly enable it 2016-08-02 15:34:48 +02:00
twinaphex bc3eb34da5 Remove unused variables 2016-06-01 04:09:59 +02:00
twinaphex da6ac4aae7 Fix explicit NULL dereferenced warnings 2016-06-01 04:05:14 +02:00
Andre Leiradella 9cc830ecd6 fixed getting wrong alpha values from tRNS chunk 2016-05-29 11:30:04 -03:00
Andre Leiradella 88eab60b13 optimized palette decoding 2016-05-29 11:25:28 -03:00
Andre Leiradella d9ea20727c support tRNS chunks in palettized images 2016-05-29 01:03:44 -03:00
twinaphex 0f954fd4c8 Resource leaks fixes (catched by Coverity) 2016-05-26 17:26:55 +02:00
twinaphex 7859868ffc (RPNG) Dehardcode return values 2016-05-25 15:24:18 +02:00
twinaphex 42971febba Fix resource leaks (pointed out by Coverity) 2016-05-24 22:01:43 +02:00
twinaphex ae4cd05690 (RPNG) Simplification 2016-05-24 20:15:09 +02:00
Twinaphex 44edf684db (RPNG) Another potential leak plugged 2016-05-23 21:33:26 +02:00
twinaphex faef7b498d (Coverity) Fix some resource leaks 2016-05-23 21:28:43 +02:00
twinaphex 45cbe06401 rpng_process_image - cleanup resources if we fail 2016-05-20 21:05:27 +02:00
twinaphex d02d27f92a (PNG) Cleanup 2016-05-20 15:37:36 +02:00
twinaphex 033bc60939 (RPNG) Cleanup 2016-05-19 01:00:03 +02:00
twinaphex ceb657eba2 Cleanups 2016-05-19 00:51:34 +02:00
twinaphex 6c2e933321 rpng_process_init - free resources when failing 2016-05-19 00:46:07 +02:00
twinaphex a0974a899d (RPNG) Rewrite initialization of process struct 2016-05-19 00:42:05 +02:00
twinaphex e21a655dc6 (RPNG) Use image process codes 2016-05-18 17:18:36 +02:00
twinaphex 1ef5eee8b3 Header cleanup 2016-05-18 11:08:09 +02:00
twinaphex 23f410c5fe (RPNG) Fix test 2016-05-14 01:12:05 +02:00
twinaphex f8e99403a4 Cleanups 2016-05-14 00:48:40 +02:00
twinaphex ee95af8ae3 (RPNG) Cleanup 2016-05-13 09:51:08 +02:00
twinaphex fa27a8447e Rename RPNG functions 2016-05-13 09:49:38 +02:00
twinaphex 8efe2de0ec (RJPEG/RPNG) Add debug logs and change function signatures 2016-05-13 09:08:32 +02:00
twinaphex 5068accc4e Start preparing image transfer for RJPEG 2016-05-13 08:50:50 +02:00
twinaphex 268be70fe8 Cleanups 2016-05-07 04:15:39 +02:00
twinaphex b8644536d2 (video_texture_image.c) Cleanups - we use nbio now in video_texture_image_load
for both TGA and PNG, and we remove the file I/O based RPNG function
2016-05-07 04:04:09 +02:00
twinaphex f9bd28663a Nit 2016-05-04 04:03:46 +02:00
twinaphex d8dcaab996 (RPNG) Cleanup 2016-05-04 03:58:29 +02:00
Twinaphex eeeec23c66 (OSX) Static code analyzer cleanups 2016-05-02 16:57:53 +02:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 483699357d (RPNG) cleanups 2016-03-21 19:43:29 +01:00
twinaphex 32a8b57826 Move test files 2016-03-21 18:27:02 +01:00
twinaphex f0fd3895b6 Updates 2016-03-20 16:36:39 +01:00
twinaphex 3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
twinaphex c7e13e2bcd (libretro-common) Rename file_archive to archive_file 2016-03-20 16:14:40 +01:00
twinaphex cbc8bab8e2 Cleanup 2016-03-03 00:19:37 +01:00
twinaphex 9459cf6445 Rename zlib_ to file_archive_ 2016-01-24 22:17:11 +01:00
twinaphex aae1faf76f Move crc32_calculate to file_archive_zlib.c 2016-01-24 21:50:28 +01:00
twinaphex 2bc75715f7 Move zlib_deflate_init to file_archive_zlib.c 2016-01-24 21:26:02 +01:00
twinaphex 1a04bb4532 Add stream_decompress_data_to_file_init and stream-decompress_data_to_file_iterate to
file_archive_zlib.c
2016-01-24 21:23:33 +01:00
twinaphex 7130f0c8d8 Move zlib_set_stream to file_archive_zlib 2016-01-24 21:06:53 +01:00
twinaphex 7d29929819 Move file_archive_inflate_init to file_archive_zlib 2016-01-24 20:18:52 +01:00
twinaphex fa00f51e80 Move zlib_deflate_data_to_file to file_archive_zlib.c 2016-01-24 20:15:17 +01:00
twinaphex d1ef6f032e Create stream_compress_free and add it to file_archive_zlib 2016-01-24 20:12:12 +01:00
twinaphex f264d3d29b Move zlib_stream_ functions to file_archive_zlib.c 2016-01-24 20:08:57 +01:00
twinaphex 064c5ffc3a Move zlib_stream_free to file_archive_zlib.c 2016-01-24 20:01:35 +01:00
twinaphex 9a23d95846 Add zlib_stream_new to file_archive_zlib.c 2016-01-24 19:57:31 +01:00
twinaphex 021d8e6af8 Make file_archive_get_default_file_backend public scope 2016-01-24 19:48:25 +01:00
twinaphex 5b343c2a32 (RPNG) Update 2016-01-24 07:47:27 +01:00
twinaphex 3c2a45d923 Rename file_extract functions 2016-01-24 07:42:46 +01:00
twinaphex 552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex c6f7afbd9a Adjust zlib_crc32_calculate 2016-01-24 06:47:06 +01:00
twinaphex 8a254d0480 (Android) Fix build 2016-01-24 06:28:27 +01:00
twinaphex 0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex f4eaa2296a (CXX_BUILD) buildfixes 2015-09-19 15:33:07 +02:00
twinaphex 28931872d6 (RPNG) Make function static 2015-09-19 03:25:56 +02:00
twinaphex 0a3ee51f37 (RPNG) Header cleanups 2015-09-19 01:59:46 +02:00
twinaphex 6adc124604 (RPNG) Move dword_be 2015-09-19 01:49:29 +02:00
twinaphex 714b3e3126 (RPNG) Use retro_file for rpng_encode.c 2015-09-19 01:47:03 +02:00
twinaphex 181219ea32 (RPNG) Remove one enum 2015-09-19 01:43:31 +02:00
twinaphex 93684f2741 (RPNG) Turn decode functions static 2015-09-19 01:42:58 +02:00
twinaphex 43018976e9 (RPNG) Simplify rpng 2015-09-19 01:40:29 +02:00