Commit Graph

627 Commits

Author SHA1 Message Date
twinaphex d04810f5fd Reimplement rjpeg_process_image 2016-05-24 20:19:17 +02:00
twinaphex ae4cd05690 (RPNG) Simplification 2016-05-24 20:15:09 +02:00
Twinaphex 7e6f23ea54 (RJPEG) Cleanup 2016-05-24 20:05:45 +02:00
twinaphex ffaa32842f (libretro-common) Update 2016-05-24 14:18:29 +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 9b572d0fe4 Make RBMP optional too 2016-05-18 13:28:20 +02:00
twinaphex 7e36dcb27f move video_texture_image to libretro-common and rename it to image_texture.c 2016-05-18 12:58:00 +02:00
twinaphex 1ef5eee8b3 Header cleanup 2016-05-18 11:08:09 +02:00
twinaphex 9bc11731fb Start reimplementing TGA image load support 2016-05-18 10:52:23 +02:00
twinaphex 248b99e8e7 (BMP) Fix color conversion 2016-05-17 22:40:29 +02:00
twinaphex 492dd59164 Hook up BMP image loading - color channels swapped - RGBA to ARGB
conversion won't work here
2016-05-17 21:38:51 +02:00
twinaphex 4309793b1d Add rbmp.c 2016-05-17 21:21:45 +02:00
twinaphex cecb50bd19 (RJPEG) Cleanups 2016-05-17 20:30:35 +02:00
twinaphex 8c640a28c6 (RJPEG) Remove unused rjpeg_image_load 2016-05-17 16:40:11 +02:00
twinaphex 1166be62ae (gfx/video_texture_image.c) Drop more implementation details 2016-05-17 16:32:53 +02:00
twinaphex 52948b436e We can take out RPNG implementation details out of video_texture_image.c
now
2016-05-17 16:23:22 +02:00
twinaphex 99bcf5946c Take out DEBUG printfs 2016-05-17 16:04:54 +02:00
twinaphex 7a282eab23 (rbmp_encode.c) Cleanups 2016-05-17 15:58:50 +02:00
twinaphex a64f0a24c6 (RJPEG) Cleanups 2016-05-17 14:07:05 +02:00
Twinaphex beac855ff7 (RJPEG) Remove unused variable 2016-05-17 13:51:42 +02:00
twinaphex ce0376e382 Remove debug printf 2016-05-17 13:50:35 +02:00
twinaphex 185050075a (RJPEG) Cleanups 2016-05-17 12:56:11 +02:00
twinaphex 6c79ecdae7 (RJPEG) Cleanups 2016-05-17 12:52:45 +02:00
twinaphex 808004a132 (RJPEG) Cleanups 2016-05-17 12:47:46 +02:00
twinaphex 609d00b3d7 (RJPEG) Image needs to be converted from RGBA to ARGB 2016-05-17 12:17:45 +02:00
twinaphex 9202256c3c Don't need rjpeg__jpeg_test 2016-05-17 12:02:24 +02:00
twinaphex 64c176288b Should fix JPEG decoding tasks 2016-05-17 10:07:40 +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 7a16cf8806 Revert "(RJPEG) Remove rjpeg_test"
This reverts commit 5a4b062b0d.
2016-05-13 13:31:10 +02:00
twinaphex e56abc03b3 (rjpeg_process_image) Handle error 2016-05-13 11:15:31 +02:00
twinaphex 5a4b062b0d (RJPEG) Remove rjpeg_test 2016-05-13 11:10:59 +02:00
twinaphex 19eaa05040 (RJPEG) Cleanups 2016-05-13 10:55:22 +02:00
twinaphex 101539b489 (RJPEG) more internal changes 2016-05-13 09:58:42 +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 1623d538d5 Add rjpeg_set_buf_ptr 2016-05-13 09:42:02 +02:00
twinaphex 1512d36220 rjpeg_process_image should not set the texture image's width/height -
that is done later
2016-05-13 09:34:42 +02:00
twinaphex 1e872108b7 (RJPEG) Add back rgba to bgra routines 2016-05-13 09:27:58 +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 17d39fd54f Add rjpeg_free 2016-05-13 08:16:13 +02:00
twinaphex d3df016005 (RJPEG) Add rjpeg_alloc 2016-05-13 08:13:21 +02:00
twinaphex 13f49e1d9a Split up image transfer code to separate file 2016-05-13 04:38:21 +02:00
twinaphex 1ac30884c4 (RJPEG) Prevent warnings 2016-05-11 03:40:25 +02:00
twinaphex eec4218ebb (RJPEG) Use features_cpu 2016-05-10 20:36:05 +02:00
twinaphex 35ea37b37f Revert "Move cpu_features to libretro-common"
This reverts commit 2b8ff3bf38.
2016-05-10 09:32:24 +02:00
twinaphex 2b8ff3bf38 Move cpu_features to libretro-common 2016-05-10 09:27:29 +02:00
twinaphex ea8715ca92 (RJPEG) Cleanup 2016-05-10 07:16:27 +02:00
twinaphex f3af0263ed Remove RJPEG_NO_JPEG 2016-05-10 07:15:23 +02:00
twinaphex bb063fb692 Cleanups 2016-05-10 07:13:52 +02:00
twinaphex 8d3f6c39ac Replace STBI_ with RJPEG_ 2016-05-10 07:10:42 +02:00
Twinaphex b59b56d2fc (RJPEG) Last buildfixes 2016-05-10 07:09:27 +02:00
twinaphex 3c4329aa1f (RJPEG) uniquely namespace all functions 2016-05-10 07:08:45 +02:00
Twinaphex 88f259d3ef (RJPEG) Mass renaming (pt. 1) 2016-05-10 07:05:52 +02:00
twinaphex c321c161a8 Update rjpeg 2016-05-10 06:51:58 +02:00
twinaphex f931ce7606 Adds conversion when color shifts are BGRA 2016-05-10 06:02:00 +02:00
twinaphex 7462988f33 Use stb_image jpeg code 2016-05-10 05:50:38 +02:00
Sebastien Ronsse bab8935b58 rbmp encode: Fix memory leak when saving image 2016-05-10 13:09:38 +10:00
Sebastien Ronsse 3db9623809 rbmp encode: Fix saving mechanism resulting in vertically flipped screenshots. 2016-05-10 11:51:56 +10:00
twinaphex bca9c687a1 (RJPEG) Remove register storage class 2016-05-10 03:23:15 +02:00
twinaphex e87f030246 C89_BUILD fixes 2016-05-09 05:50:08 +02:00
Hans-Kristian Arntzen 8faa6231db Fix some warnings. 2016-05-08 09:37:27 +02:00
twinaphex ef5da43d35 Cleanups 2016-05-07 18:35:06 +02:00
twinaphex 7f272a4bd0 Add missing parameters 2016-05-07 16:24:26 +02:00
twinaphex 0a2544c1bf (rjpeg) Try manual conversion to RGB 2016-05-07 06:55:52 +02:00
twinaphex c5895b4aa0 (libretro-common/formats/jpeg/rjpeg.c) Allocate out_img->pixels 2016-05-07 06:49:48 +02:00
twinaphex f86d4d400d Start adding jpeg hooks 2016-05-07 06:20:17 +02:00
twinaphex 7b79975516 Start adding rjpeg_image_load 2016-05-07 06:16:02 +02:00
twinaphex 0ab61a2428 (libretro-common) Add rjpeg 2016-05-07 04:33:54 +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 f55ee11554 (libretro-common) Header updates 2016-03-20 17:13:31 +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 43b931129d (iOS) Buildfix 2016-03-20 15:07:49 +01:00
twinaphex 87840e5b6c (rbmp) Change typedef enum 2016-03-20 05:35:52 +01:00
twinaphex b40b169098 Copy over libretro-common changes 2016-03-20 04:49:59 +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 e979e16721 (menu_input.h) Rename enum
(jsonsax.c) C89_BUILD fix
2015-10-11 16:30:47 +02:00
twinaphex 7f164647a2 (jsonsax) Preventing more namespace / symbol collisions in the future 2015-10-09 20:58:18 +02:00
twinaphex 14688de54a (jsonsax) Buildfixes 2015-10-09 20:55:31 +02:00
Andre Leiradella 9485298f78 fix function signatures; fix license on jsonsax 2015-10-09 13:48:17 -03:00
Andre Leiradella fa3f17d219 preliminary code for retro achievements (cheevos) 2015-10-09 13:29:57 -03:00
twinaphex 0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex 1a4c60ac65 (rxml) Use retro_file 2015-09-23 13:49:45 +02:00
twinaphex 4c2bc0c1fe (rbmp_encode.c) Make it C89-friendly 2015-09-21 11:58:36 +02:00
twinaphex 7eb0d2b049 (rbmp_encode.c) Document 2015-09-19 15:56:05 +02:00
twinaphex e1109c82c6 Rename tga.c to rtga.c 2015-09-19 15:36:39 +02:00
twinaphex fd4e462381 Change tga_decode.c to tga.c 2015-09-19 15:34:43 +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 5e71c31748 Split up BMP saving into separate file libretro-common/formats/bmp/rbmp_encode.c 2015-09-19 02:44:28 +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 3914fb9658 Simplify rpng_test.c 2015-09-19 01:34:27 +02:00
twinaphex d0651bae82 (RPNG) Buildfix standalone RPNG 2015-09-19 01:30:11 +02:00
twinaphex a052934972 Simplify rpng_fbio.c 2015-09-19 01:29:03 +02:00
twinaphex c2c49da1de More MISSING_DECLS buildfixes 2015-09-06 15:03:58 +02:00
Twinaphex 8d2eceaa22 (rpng) Cleanups 2015-09-06 13:02:44 +02:00
twinaphex f88575633e Cleanups 2015-09-05 20:34:22 +02:00
twinaphex 6d188a4840 Move function prototypes to rpng_decode.h 2015-09-01 13:42:28 +02:00
twinaphex 7874eb9890 Move some inline functions to rpng_decode.c 2015-09-01 13:41:45 +02:00
twinaphex 30912ef535 Rename rpng_common.h to rpng_internal.h 2015-09-01 13:40:17 +02:00
twinaphex 679a7ee130 (rpng) Don't expose unused internal function 2015-09-01 13:39:09 +02:00
twinaphex 0d923d6b05 (rpng) Cleanup 2015-09-01 13:37:03 +02:00
twinaphex 3ccb4380f1 (RPNG) Move more common code outside 2015-09-01 13:27:36 +02:00
twinaphex c80e59b888 Create common png_read_plte 2015-09-01 13:22:20 +02:00
twinaphex c259b983de struct definitions now go inside rpng_common.h - move them
away from public headers
2015-09-01 13:08:10 +02:00
twinaphex 511b2c6d83 Create rpng_set_buf_ptr 2015-09-01 13:00:02 +02:00
twinaphex d5837f4b7c Don't take in as first argument rpng->buff_data - handle this internally 2015-09-01 12:56:39 +02:00
twinaphex cd79143038 (rpng) Encapsulate incrementation of buffer position 2015-09-01 12:52:04 +02:00
twinaphex 3762502112 Create rpng_is_valid 2015-09-01 12:41:31 +02:00
twinaphex 09aac8a320 Create rpng_nbio_is_valid 2015-09-01 12:39:17 +02:00
Higor Eurípedes 405ac5ebe5 Improve error handling in some image loading functions 2015-07-11 17:18:16 -03:00
twinaphex e74e402cdc More C89 build fixes 2015-06-30 14:37:11 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
twinaphex cdec12faa5 (libretro-common) Cleanups 2015-06-13 00:33:31 +02:00
Higor Eurípedes dba40157e3 (task_file_transfer.c) Attempt to fix rpng_nbio leak 2015-06-12 18:21:11 -03:00
Higor Eurípedes 03d13c6fa7 (RPNG) Always free the temp chunk on PNG_CHUNK_IHDR 2015-04-25 21:42:20 -03:00
Higor Eurípedes c11498df9d (RPNG) Actually free zlib stream 2015-04-25 21:28:22 -03:00
Higor Eurípedes c432811436 (RPNG) Free zlib stream 2015-04-25 21:04:52 -03:00
twinaphex a27c0714cb Take chunk_type out of struct 2015-04-10 23:45:56 +02:00
twinaphex 9d4f1ca362 (GX) Buildfix 2015-04-03 03:23:58 +02:00
twinaphex 4dea46f6dc Include <formats/rpng.h> once in rpng_common.h 2015-03-30 18:29:51 +02:00
twinaphex 4550019b2c (rpng_fbio.c) GEKKO ifdef not needed here 2015-03-30 17:51:43 +02:00
Neville 672c19074f (OSX PPC) Buildfixes 2015-03-31 02:47:51 +11:00
twinaphex e7e09d3b8f Don't include zlib.h in rpng_encode.c 2015-03-29 16:31:00 +02:00
twinaphex 4572a1c48d Create zlib_deflate wrapper functions 2015-03-29 16:28:06 +02:00
twinaphex 3187e308a4 (rpng_encode.c) Use zlib_stream_get_total_out 2015-03-29 16:21:46 +02:00
twinaphex 7c047ea3b3 Cleanups 2015-03-29 16:19:09 +02:00
twinaphex cc2d6ea99d Create more zlib wrapper functions 2015-03-29 15:52:17 +02:00
twinaphex 5d776f15b6 Create zlib_set_stream 2015-03-29 15:35:55 +02:00
twinaphex 758d01b5da Create more wrappers around zlib in file_extract.c 2015-03-29 14:35:18 +02:00
twinaphex 32304af540 Create zlib_inflate_init 2015-03-29 14:30:53 +02:00
twinaphex 33fca0e161 Use zlib_stream_free 2015-03-29 03:09:33 +02:00
twinaphex 0c99c8c68e (RPNG) Use zib_inflate_data_to_file_iterate 2015-03-28 22:32:15 +01:00
twinaphex abc514b339 Make file_extract.c independent of RetroArch 2015-03-28 20:25:33 +01:00
twinaphex 52eefc35ff (RPNG) Inflate process should be nonblocking now too 2015-03-14 21:51:56 +01:00
twinaphex 431cf5e1f3 (RPNG) Use Z_NO_FLUSH as second param to inflate and put it in a while loop 2015-03-14 21:16:33 +01:00
twinaphex 933cdd136d (RPNG) Get rid of one needless additional function 2015-03-14 17:33:04 +01:00
twinaphex a3c6ec249c (RPNG) Rename function 2015-03-14 04:21:57 +01:00
twinaphex 65f80aa5e0 (RPNG) Fix rpng_test.c 2015-03-14 03:22:41 +01:00
twinaphex 9a0bd3c650 (RPNG) Rewrite rpng_nbio_load_image_process 2015-03-14 03:18:15 +01:00
twinaphex 4124fb7130 (RPNG) Add rpng_process 'initialized' variable 2015-03-14 02:56:38 +01:00
twinaphex bb1a9a91c6 (RPNG) Turn more functions static 2015-03-14 02:10:44 +01:00
twinaphex b29cc138c8 (RPNG) Some functions can become static now 2015-03-14 02:08:15 +01:00
twinaphex ebbefc41b2 (RPNG) Reimplement png_reverse_filter_loop 2015-03-14 02:05:50 +01:00
twinaphex b7d73ebc93 (RPNG) More cleanups to png_reverse_filter_loop 2015-03-14 01:58:50 +01:00
twinaphex cb9c0828db (RPNG) More cleanups 2015-03-14 01:56:32 +01:00
twinaphex a14850c915 (RPNG) Create rpng_load_image_argb_process_init - cut down on some more
code duplication
2015-03-14 01:50:45 +01:00
twinaphex bfaddc15bd Simplify rpng_fbio.c - create 'iterate' function 2015-03-14 01:29:46 +01:00
twinaphex ce4e2e0f61 (RPNG) Reorganize files 2015-03-14 00:52:55 +01:00
twinaphex 53a788f95a (RPNG) Create shared png_process_ihdr - both FBIO and FNBIO use it 2015-03-14 00:35:08 +01:00
twinaphex 1902c92ad5 (RPNG) More cleanups 2015-03-14 00:24:21 +01:00
twinaphex 3a56a6c274 (RPNG) More dehardcoding of cases 2015-03-14 00:16:59 +01:00
twinaphex 4dcd62df81 (RPNG) Dehardcode more magic numbers 2015-03-14 00:13:55 +01:00
twinaphex 7d8784b91e (RPNG) Deharcode some magic numbers 2015-03-14 00:06:56 +01:00
twinaphex 0d59d2534f (RPNG) Dehardcode magic number in adam7_iterate 2015-03-14 00:04:31 +01:00
twinaphex 68ef4e7b72 (RPNG) Refactor png_reverse_filter_regular_loop 2015-03-14 00:01:30 +01:00
twinaphex 752f5dc42b (RPNG) Add data_restore_buf_size 2015-03-13 23:54:17 +01:00
twinaphex 978628a878 (RPNG) Start putting regular_loop inside a while loop on the outside 2015-03-13 23:30:29 +01:00
twinaphex d6c7ba448a Change png_reverse_filter_regular_loop's return code 2015-03-13 23:28:12 +01:00
twinaphex 003fb2a7c8 (RPNG) Reorganize png_process_reverse_filter_regular_loop 2015-03-13 23:22:39 +01:00
twinaphex a6d6e9750f (RPNG) Start using png_process_code for more code 2015-03-13 23:20:18 +01:00
twinaphex 96b16d4205 (RPNG) Add PNG_PROCESS_* enums 2015-03-13 22:56:34 +01:00
twinaphex 39b718aa03 (RPNG) Create rpng_reverse_filter_adam7_iterate 2015-03-13 21:54:51 +01:00
twinaphex 2c48b2a25d (RPNG) Refactor png_reverse_filter_loop 2015-03-13 21:34:18 +01:00
twinaphex 1144e260d0 (RPNG) Start passing uint32_t **data around 2015-03-13 21:22:19 +01:00
twinaphex a7e761c0d1 (RPNG) Create png_reverse_filter_iterate 2015-03-13 20:53:28 +01:00
twinaphex 6506f6ce85 (RPNG) Uncouple png_reverse_filter_init from png_reverse_filter_regular 2015-03-13 20:36:48 +01:00
twinaphex 676b6aaad5 Rename rpng_reverse_filter to rpng_reverse_filter_regular 2015-03-13 20:14:47 +01:00
twinaphex 846886c0b9 (RPNG) Don't pass palette pointer around anymore - put it inside the png_process
struct
2015-03-13 20:00:10 +01:00
twinaphex 91d69e20e0 (RPNG) png_reverse_filter_init - palette pointer passed never used 2015-03-13 19:55:01 +01:00
twinaphex 71b9e67a40 (RPNG) Don't pass inflate_buf as pointer to copy_line function anymore 2015-03-13 19:52:25 +01:00
twinaphex adc6e0b139 (RPNG) Start using restore_buf_size 2015-03-13 19:50:00 +01:00
twinaphex 4852773da4 (RPNG) Start adding restore_buf_size incrementing 2015-03-13 19:47:51 +01:00
twinaphex 03984168c6 (RPNG) Create adam7_restore_buf_size 2015-03-13 19:39:36 +01:00
twinaphex 1df814f9d5 (PNG) png_reverse_filter_init doesn't need pointer to inflate_buf 2015-03-13 19:29:49 +01:00
twinaphex ba084b19d5 (RPNG) Rename some functions 2015-03-13 19:21:04 +01:00
twinaphex ce0fd47c33 Rename png_reverse_filter_wrapper to png_reverse_filter_copy_line 2015-03-13 19:15:22 +01:00
twinaphex d32550665a Cleanup png_reverse_filter_adam7 2015-03-13 18:55:18 +01:00
twinaphex 1ba1ee55b8 (RPNG) More modifications 2015-03-13 18:54:19 +01:00
twinaphex ccb106580e (RPNG) Restore inflate_buf to previous state at end of adam7 loop 2015-03-13 18:45:55 +01:00
twinaphex 87933f1ff3 Revert "Create png_reverse_filter_adam7_process"
This reverts commit 1444c14b38.
2015-03-13 17:55:43 +01:00
twinaphex 1444c14b38 Create png_reverse_filter_adam7_process 2015-03-13 17:53:40 +01:00
twinaphex 6217739f05 (RPNG) Start changing return of png_reverse_filter_adam7 2015-03-13 17:11:11 +01:00
twinaphex bb682d1ed4 Cleanups 2015-02-26 22:16:52 +01:00
twinaphex 3e971488a8 Create png_reverse_filter_loop 2015-02-26 21:36:23 +01:00
twinaphex a2035e72c8 Move adam7 pass initialization to png_reverse_filter_init 2015-02-26 21:05:09 +01:00
twinaphex 97b3e9134d Refactor some more code in adam7 png_reverse_filter function 2015-02-26 20:59:42 +01:00
twinaphex 75ccb24bf4 Make png_reverse_filter_wrapper nonblocking 2015-02-26 20:39:10 +01:00
twinaphex 99b5ae18df (RPNG) Refactors 2015-02-26 20:25:51 +01:00
twinaphex 0227445f6c png_reverse_filter_wrapper - cleanup 2015-02-26 20:18:14 +01:00
twinaphex b08176ae00 Move png_chunk_type to rpng_decode_common.h 2015-02-26 20:09:43 +01:00
twinaphex f9fcbb7bb2 Make copy_line functions non-inline 2015-02-26 20:07:57 +01:00
twinaphex 9e000f64fe Move some code from rpng_common.h to rpng_decode_common.h 2015-02-26 19:52:44 +01:00
twinaphex 26b0b397c3 (PNG) Cleanup 2015-02-26 19:47:21 +01:00
twinaphex bb02411544 Refactor pgn_reverse_filter_wrapper 2015-02-26 19:45:25 +01:00
twinaphex 4897aed9e0 png_reverse_filter_wrapper - more refactoring 2015-02-26 07:58:40 +01:00
twinaphex 9e9dcc12ab png_reverse_filter_wrapper - more cleanups 2015-02-26 07:44:45 +01:00
twinaphex a7d4b0e8bc Start creating png_reverse_filter_wrapper 2015-02-26 07:40:11 +01:00
twinaphex de95f0cc1d Create png_reverse_filter_init/png_reverse_filter_deinit 2015-02-26 07:30:13 +01:00
twinaphex dda9d41d43 Fix png_reverse_filter 2015-02-26 07:26:02 +01:00
twinaphex 9eaf62f319 (PNG) More refactors 2015-02-26 07:14:43 +01:00
twinaphex c874ee3aa1 Add some variables to png_process_t 2015-02-26 07:07:34 +01:00
twinaphex 3c2d6020ed Move prev_scanline/decoded_scanline to rpng_process_t 2015-02-26 03:54:17 +01:00
twinaphex 0006f0a429 Make process a part of rpng_t 2015-02-26 03:49:35 +01:00
twinaphex 05e33f1ac4 Move stream to process_t handle 2015-02-26 03:28:55 +01:00
twinaphex ea99f00016 Revert "Move inflate_buf to rpng_process_t"
This reverts commit c97096287d.
2015-02-25 21:55:17 +01:00
twinaphex 4770b37273 Revert "Create palette in rpng_process_t"
This reverts commit 93706c67e8.
2015-02-25 21:55:06 +01:00
twinaphex 18da753ec1 Revert "Move more to rpng_process_t"
This reverts commit 1e2a91fca7.
2015-02-25 21:54:50 +01:00
twinaphex 2ce507c1c7 Revert "(PNG) Refactor process code some more"
This reverts commit fbed3cfd27.
2015-02-25 21:54:39 +01:00
twinaphex 141a417e11 Revert "Create png_reverse_filter_deinit"
This reverts commit ef09b9a855.
2015-02-25 21:54:24 +01:00
twinaphex c6f34ff91e Revert "Split up deinit code from png_reverse_filter"
This reverts commit 3fc262ecac.
2015-02-25 21:54:08 +01:00
twinaphex 3fc262ecac Split up deinit code from png_reverse_filter 2015-02-25 20:43:12 +01:00
twinaphex ef09b9a855 Create png_reverse_filter_deinit 2015-02-25 20:36:54 +01:00
twinaphex fbed3cfd27 (PNG) Refactor process code some more 2015-02-25 10:25:14 +01:00
twinaphex 1e2a91fca7 Move more to rpng_process_t 2015-02-25 10:05:21 +01:00
twinaphex 93706c67e8 Create palette in rpng_process_t 2015-02-25 09:48:06 +01:00
twinaphex c97096287d Move inflate_buf to rpng_process_t 2015-02-25 09:42:19 +01:00
twinaphex 4c7325c07c Create rpng_process_t 2015-02-25 09:38:54 +01:00
twinaphex 415d9e0d73 (PNG) Fix RPNG decode PLTE 2015-02-24 09:21:50 +01:00
twinaphex 1bf6489da9 SImplify rpng_test.c 2015-02-22 08:42:03 +01:00
twinaphex 07c7a0df99 Decouple nbio_t from rpng_decode_fnbio.c 2015-02-22 08:00:47 +01:00
twinaphex f233ccb141 Start making rnbio_handle chain 2015-02-22 07:34:33 +01:00
twinaphex d09574bb1f Move files around 2015-02-22 04:56:18 +01:00
twinaphex 6c54e8119e (NBIO) Make all nbio functions nonblocking 2015-02-21 03:57:34 +01:00
twinaphex a48343c130 Move png_chunk to rpng_t 2015-02-21 03:28:00 +01:00
twinaphex 82432ca5d5 Remove mpng leftovers 2015-02-21 02:46:58 +01:00
twinaphex 28cdf2c93a Rename rpng files 2015-02-21 02:46:04 +01:00
twinaphex 1b0c9d7776 Move rpng_nbio wrapper function to rpng_test.c 2015-02-21 02:42:33 +01:00
twinaphex e912d3c49c Move palette over to rpng_t too 2015-02-21 02:34:49 +01:00
twinaphex fdc3aeffb0 Cleanup rpng_nbio_load_image_argb_init 2015-02-21 02:30:06 +01:00
twinaphex d2206b8ab2 Start splitting up rpng_nbio_load_image_argb 2015-02-21 02:28:59 +01:00
twinaphex 65ea11f7be (RPNG) rpng_t - Create userdata/ptr 2015-02-21 02:13:20 +01:00
twinaphex 3867a63344 Move png_chunk inside iterate function 2015-02-21 02:07:20 +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 7914c8a01c Move idat_buffer to rpng.h header and to rpng_t struct 2015-02-21 01:54:57 +01:00
twinaphex 99d869abca (RPNG) Move more variables to rpng_t struct 2015-02-21 01:49:47 +01:00
twinaphex a46a819e2d Get rid of unused 'increment_size' in rpng_nbio.c 2015-02-21 01:41:55 +01:00
twinaphex e1ff181b3f (RPNG) Start creating struct rpng_t 2015-02-21 01:40:21 +01:00
twinaphex 5cafadd167 rpng_test.c - Add nonblocking tests 2015-02-21 01:35:04 +01:00
twinaphex 7b15d8e701 Refactor rpng_test.c 2015-02-21 00:05:05 +01:00
twinaphex 3c0cd5a0da Restore rpng_test.c 2015-02-21 00:03:32 +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 e55827a8a6 Rewrite rpng_test.c 2015-02-20 23:36:53 +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 9dcbd97a5b Split up rpng encode code into separate file 2015-02-20 22:59:24 +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 2e61afcab8 use rpng_nbio.c now - try to cover PNG_CHUNK_PLTE as well 2015-02-20 21:35:06 +01:00
twinaphex d07cb93057 Some more cleanups 2015-02-20 21:26:57 +01:00
twinaphex 33c818cf81 (RPNG) Make imlib2 optional 2015-02-20 21:10:32 +01:00
twinaphex 1f2db14c2d (rpng_nbio.c) Cleanups 2015-02-20 21:05:07 +01:00
twinaphex 6b9bf2c100 Some more progress on rpng_nbio.c 2015-02-20 18:49:51 +01:00
twinaphex 102c815db1 (rpng) Add nbio_stdio.c to test Makefile 2015-02-20 16:36:52 +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
twinaphex 0ea6dc0445 (MPNG) Updates 2015-02-19 04:13:58 +01:00
twinaphex 9c8dc6c437 (MPNG) Update 2015-02-19 03:33:01 +01:00
twinaphex 542bbd3ee9 Compile in mpng 2015-02-19 03:30:12 +01:00
twinaphex 2596e1c0f6 (mpng) Cleanups 2015-02-19 02:53:47 +01:00
twinaphex 6bb81b59d5 (mpng_decode.c) Style nits 2015-02-19 02:46:41 +01:00
twinaphex a33016d457 Renamed libretro-sdk to libretro-common 2015-02-19 00:04:03 +01:00