177 Commits

Author SHA1 Message Date
Thomas Bernard
dcfd0894e0 add support for PNG in BMP (BI_PNG) 2019-01-08 22:09:12 +01:00
Thomas Bernard
f35c6007c0
Simplify Load_BMP_Image() 2019-01-08 22:08:42 +01:00
Thomas Bernard
0b45bc5fc6
BMP: support bitmask of more than 8 bits 2019-01-08 22:06:31 +01:00
Thomas Bernard
51f90c7ec0
BMP: support OS/2 v2 format, enforce pixel ratio, check palette over-size 2019-01-08 21:20:56 +01:00
Thomas Bernard
55dadae79d
Reorganize Load_BMP() 2019-01-08 21:20:55 +01:00
Thomas Bernard
71d1089442
BMP: improve log and comments. support BITMAPV4HEADER/BITMAPV5HEADER 2019-01-08 21:20:55 +01:00
Thomas Bernard
fa90928a50
improve PNG doxygen 2019-01-02 01:42:54 +01:00
Thomas Bernard
3e1d6b165d
Copy support for X11 2019-01-02 01:27:27 +01:00
Thomas Bernard
7331ad9bdf
X11 picture paste support (PNG format)
works with what GIMP puts in the X11 CLIPBOARD
2018-12-30 10:20:50 +01:00
Thomas Bernard
3bfa777d23
Load_GIF(): more error detection 2018-12-17 22:02:13 +01:00
Thomas Bernard
2d45c5e68b
Load_GIF() use "stop" for detecting end of image as well 2018-12-17 22:02:12 +01:00
Thomas Bernard
8691554a26
Save_GIF(): update/translate comment about the last code 2018-12-17 22:02:12 +01:00
Thomas Bernard
3a33c96dd5
Translate/doxygenize T_GIF_context comments 2018-12-17 22:02:08 +01:00
Thomas Bernard
a899fe49fb remove global variables used for GIF 2018-12-17 19:42:14 +01:00
Thomas Bernard
5a6333e5e8 define COLOR_CYCLING_SPEED_MAX 2018-12-15 20:19:29 +01:00
Thomas Bernard
7a8b25ea4f
Load_IFF() support CCRT color range chunck and read DRNG (but not implemented) 2018-12-14 15:56:47 +01:00
Thomas Bernard
c86babeb35
Load_IFF() support for ANIM with sound chunks 2018-12-14 15:54:45 +01:00
Thomas Bernard
003fbcfc1b
Fix code to optimize sub-picture saving in GIF code 2018-12-13 00:49:18 +01:00
Thomas Bernard
0f098d8b84
Doxygen: create subsection for IFF 2018-12-13 00:11:29 +01:00
Thomas Bernard
8ac2e3934e
doxygen: make GIF subgroup of loadsaveformats 2018-12-12 23:39:21 +01:00
Thomas Bernard
c7e3850b9a
skip sub-blocks (except the 1st) in GFX2MODE GIF extension
That's to be future proof and be able to add more data to this extension
in the future !
2018-12-11 12:45:23 +01:00
Thomas Bernard
4153c315be
PNG: properly use png_set_read_user_chunk_fn()
Also add Doxygen for PNG code
2018-12-11 12:25:40 +01:00
Thomas Bernard
337129f760
Doxygen for GIF.
add Extension documentations, etc.
2018-12-11 12:25:39 +01:00
Thomas Bernard
c5a52242be
Save and load Image mode in GIF file.
Add the extension GFX2MODE
2018-12-11 12:25:39 +01:00
Thomas Bernard
2a6f0e3a27
new function Set_image_mode() to set image mode in Load_XXX() functions 2018-12-11 12:25:39 +01:00
Thomas Bernard
28fb91f265
avoid accessing Main.backups in Load_XXX() or Save_XXX() 2018-12-11 12:25:39 +01:00
Thomas Bernard
725da6307e
Remove warnings with GCC 7
GCC 7 introduced a new warning in switch() statements :
warning: this statement may fall through [-Wimplicit-fallthrough=]
2018-10-17 16:42:54 +02:00
Thomas Bernard
4978a7cfe2 convert Warning() and DEBUG() to GFX2_Log() 2018-07-12 20:41:49 +02:00
Thomas Bernard
733a3cd0fb minor fixes 2018-07-12 19:11:39 +02:00
Thomas Bernard
7fb77f85f1 Add GFX2_Log() function 2018-07-12 19:11:39 +02:00
Thomas Bernard
221515e663 Load_PNG() : read Comment tEXt in addition to Title 2018-07-12 11:54:29 +02:00
Thomas Bernard
3bdd69c523 Save_PNG(): use PNG_RESOLUTION_UNKNOWN in pHYs chunk 2018-07-12 11:54:12 +02:00
Thomas Bernard
f9dc86eb87 Load_GIF(): Be more tolerant on ratio values 2018-07-12 11:54:12 +02:00
Thomas Bernard
4338d31f04 Load_PNG(): load correctly aspect ratio 2018-07-12 11:54:12 +02:00
Thomas Bernard
8dfd6d6c97 Handle PIXEL_TALL3 mode in file formats (GIF) 2018-07-12 11:54:12 +02:00
Thomas Bernard
5f5d7ba1b0 win32 : fix byteswapping function for MSVC/gcc 2018-07-11 11:54:54 +02:00
François Revol
f7e46b97e9 atari: work around 'longjmp' undeclared error
This seems to be due to glibc headers being installed instead of MiNT
ones...
2018-07-09 01:31:17 +02:00
Thomas Bernard
c53b86d6c9 Fix Endian dependent code when compiled without SDL or SDL2
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:52 +02:00
Thomas Bernard
3e32bc0c39 Fix endian aware load/save when SDL is disabled 2018-07-02 11:38:51 +02:00
Thomas Bernard
4d86b8a0c1 change all references to SDLK_xxxxx to KEY_xxxx
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Thomas Bernard
758bc0833c fix Load_IFF() when bpp=0 ! 2018-04-18 18:10:16 +02:00
Thomas Bernard
c651d0c33a Save_IMG() remove fclose() for file not open 2018-04-16 12:31:12 +02:00
Thomas Bernard
bb7b187275 Load FLI/FLC autodesk animator files. 2018-04-16 07:03:17 +00:00
Thomas Bernard
f9616f570a remove warnings when compiling with MSVC++2010 2018-03-19 16:49:32 +01:00
Thomas Bernard
3ab746ef29 fileformats.c: Get rid of "unreferenced argument" Warning 2018-03-15 12:21:22 +01:00
Thomas Bernard
cd8291b6ff loadsave: change Test_XXX functions to open file only once 2018-03-15 12:21:22 +01:00
Thomas Bernard
b039977f5f move Test_XXX/Load_XXX/Save_XXX functions prototypes to fileformats.h 2018-03-15 12:21:16 +01:00
Thomas Bernard
ebaccbab3e Load_INFO() : load comments + fix for NewIcons
fix Palette loading of newIcons when the palette spans
on several lines
2018-03-14 10:48:47 +01:00
Thomas Bernard
856ba45839 Load_INFO() right colors for 2nd image of NewIcons 2018-03-12 11:39:10 +01:00