Commit Graph

151 Commits

Author SHA1 Message Date
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 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 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 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
Brad Parker 7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
twinaphex bc3eb34da5 Remove unused variables 2016-06-01 04:09:59 +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 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 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 f0fd3895b6 Updates 2016-03-20 16:36:39 +01:00
twinaphex c7e13e2bcd (libretro-common) Rename file_archive to archive_file 2016-03-20 16:14:40 +01:00
twinaphex 9459cf6445 Rename zlib_ to file_archive_ 2016-01-24 22:17:11 +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 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 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 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
twinaphex 28cdf2c93a Rename rpng files 2015-02-21 02:46:04 +01:00
twinaphex 7c80d7e1d0 Move inflate_buf_size and palette to rpng_t 2015-02-21 02:04:30 +01:00
twinaphex 193fef41cc Move png_ihdr to rpng_t struct 2015-02-21 01:59:59 +01:00
twinaphex 538b3f3231 rpng.c - Update 2015-02-21 01:56:56 +01:00
twinaphex e1ff181b3f (RPNG) Start creating struct rpng_t 2015-02-21 01:40:21 +01:00
twinaphex b51e6d4acc Differentiate - rename rpng_parse_ihdr for rpng.c as rpng_parse_ihdr_fio 2015-02-20 23:47:28 +01:00
twinaphex cd7d967701 (RPNG) Move around code to make it suitable for Griffin 2015-02-20 23:46:13 +01:00
twinaphex 614dc9039a Split up rpng_nbio.c code into separate file and
make sure we have no namespace conflicts
2015-02-20 23:17:04 +01:00
twinaphex 2ac62e0cd3 Restore original rpng.c 2015-02-20 22:49:49 +01:00
twinaphex 14fb2f6418 Cleanup original rpng.c 2015-02-20 21:51:32 +01:00
twinaphex d07cb93057 Some more cleanups 2015-02-20 21:26:57 +01:00
twinaphex 6b9bf2c100 Some more progress on rpng_nbio.c 2015-02-20 18:49:51 +01:00
twinaphex a3c5142040 Split up rpng_nbio.c test code to separate file 2015-02-20 16:36:00 +01:00
twinaphex 7d55de8278 Don't define NONBLOCKING_TEST by default 2015-02-20 03:19:39 +01:00
twinaphex 0bb5e0c7fd Cleanups 2015-02-20 03:18:06 +01:00
twinaphex a227a99c6c Move header code outside of load_image_argb_init 2015-02-20 03:12:27 +01:00
twinaphex deb282af4d (rpng) Add stub code for nonblocking 2015-02-20 02:34:17 +01:00
twinaphex 4d631cba30 Update 2015-02-20 02:10:05 +01:00
unknown 391e9bc150 moved file I/O out of `rpng_load_image_argb_init` 2015-02-19 19:54:20 -05:00
unknown 857d0b1009 `rpng_load_image_argb_init` should write file size to ssize_t, not long. 2015-02-19 19:36:17 -05:00
unknown 429eb3d1d5 `bool rpng_load_image_argb_init` should be a static function. 2015-02-19 16:24:28 -05:00
unknown 4429819ee7 removed unused `path` parameter to `rpng_load_image_argb`
We already have a pointer to FILE of an opened file stream, so why would we need a file path string for loading one if we already had one loaded supplied to this func?
2015-02-19 16:24:03 -05:00
twinaphex 8da734c921 (png/rpng.c) Cleanup 2015-02-19 18:13:28 +01:00
twinaphex af91764fc8 Simplify rpng_load_image_iterate 2015-02-19 17:28:17 +01:00
twinaphex f382aceb28 Add log for when file loading fails 2015-02-19 17:11:37 +01:00
twinaphex 58af552945 rpng_load_image_argb - simplify 2015-02-19 16:35:49 +01:00
twinaphex 67d83baa33 (rpng) Refactor file_increment_ptr 2015-02-19 16:23:23 +01:00
twinaphex 90214163a4 Call file_increment_ptr only once 2015-02-19 16:21:12 +01:00
twinaphex fe8577b173 (rpng) Cleanups 2015-02-19 15:36:10 +01:00
twinaphex 57a04df37f Create rpng_load_image_argb_init 2015-02-19 15:33:27 +01:00
twinaphex a4c3097cdb Create rpng_load_image_argb_process 2015-02-19 15:25:12 +01:00
twinaphex d125fd0d0b Create rpng_image_load_iterate 2015-02-19 15:15:13 +01:00
twinaphex fee00be453 (rpng) Refactor #2 2015-02-19 15:01:08 +01:00
twinaphex 64ebcfba2b (rpng) Refactor some code 2015-02-19 14:47:26 +01:00
twinaphex e519e2f2bb (rpng) Cleanups 2015-02-19 06:36:13 +01:00