188 Commits

Author SHA1 Message Date
Thomas Bernard
2680ee40a0
Save_GIF(): fix update of nb_bits after writing last code
fixes http://pulkomandy.tk/projects/GrafX2/ticket/125
2019-05-30 09:07:59 +02:00
Thomas Bernard
9886872c8a
T_IO_Context Original_file_name and Original_file_directory are now dynamically allocated 2019-05-07 17:25:17 +02:00
Thomas Bernard
8614490026
add debug message for IFF bit depth saving 2019-05-02 15:45:14 +02:00
Thomas Bernard
760cd0d960
SCx: Doxygen + fix of file extension selection 2019-02-20 12:04:48 +01:00
Thomas Bernard
bc4c2db2e4
Fix Load_SCx / Save_SCx 2019-02-20 11:11:19 +01:00
Thomas Bernard
12f15c231f
Load_ICO() Fix mask passed to Load_BMP()
it has 4 elements : RGBA.
2019-02-15 13:19:40 +01:00
Thomas Bernard
0746ee8963
fix Load_INFO() 2019-02-15 13:19:40 +01:00
Nic Soudée
228e651b4f Correct some spelling mistakes
Automaticaly --> Automatically
Invalide --> Invalid
Strech --> Stretch
allows to --> allows one to
attachement --> attachment
contraints --> constraints
inconsistant --> inconsistent
occured --> occurred
occurences --> occurrences
permits to --> permits one to
postion --> position
regularily --> regularly
transfered --> transferred
2019-01-24 08:32:58 -05:00
Thomas Bernard
5f9be332b4
Save_PNG_Sub(): add assert to check function arguments 2019-01-21 13:05:41 +01:00
Thomas Bernard
119618ae14
Save_PNG_Sub(): fix PNG saving
see http://pulkomandy.tk/projects/GrafX2/ticket/96
2019-01-21 13:05:41 +01:00
Thomas Bernard
0aca83d029
doxygen for T_BMP_Header + remove commented code in Test_BMP() 2019-01-09 09:47:01 +01:00
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