105 Commits

Author SHA1 Message Date
Thomas Bernard
3149d04110 Load_IFF(): load multi palette ILBMs using the BEAM chunk 2018-02-18 21:11:40 +01:00
Thomas Bernard
d4bf0a8af9 Load_IFF(): Load Animations saved by DeluxePaint ST 2018-02-18 21:11:40 +01:00
Thomas Bernard
2cdb6a4da4 Load_IFF() properly set frame duration for animations 2018-02-18 21:11:40 +01:00
Thomas Bernard
2d7ecbda0c Load_IFF() improve compatibilty with malformed IFF files 2018-02-18 21:11:40 +01:00
Thomas Bernard
c1f5ec0381 Load_IFF() animations. Support XOR in mode 5 and frame interleave of 2 2018-02-18 21:11:40 +01:00
Thomas Bernard
f0c5854021 Load_IFF() support ILBM animations type 74 2018-02-18 21:11:40 +01:00
Thomas Bernard
e31fbabbd7 Load_IFF() parse Deluxe Paint ANimation (DPAN) chunk 2018-02-18 21:11:40 +01:00
Thomas Bernard
5ff093feca Load_IFF() move ANHD data to T_IFF_AnimHeader 2018-02-18 21:11:40 +01:00
Thomas Bernard
28916b65cf Load_IFF() Fix ILBM 24bit swapped R & B components 2018-02-18 21:11:40 +01:00
Thomas Bernard
925dd7fcc9 Load_IFF() Fix parsing of ILBM with mask=1 2018-02-18 21:11:40 +01:00
Thomas Bernard
fcb0502d2b Load_IFF() fix overflow in ColorCycling parsing CRNG 2018-02-18 21:11:40 +01:00
Thomas Bernard
a90170f3d1 Save_IFF(): better handling of pixel aspect ratio 2018-02-18 21:11:40 +01:00
Thomas Bernard
a94f07ddde Save_IFF(): support Comment saving (in ANNO chunk) 2018-02-18 21:11:40 +01:00
Thomas Bernard
268887f456 Load_IFF() use CAMG to set EHB palette
Fixes loading of Cougar_Sanasmatron.iff
Some ILBM have 64 colors in palette for EHB images.
That's OK when the 32 extra colors are valid (half bright ones)
but some have garbage in the CMAP
2018-02-18 21:11:40 +01:00
Thomas Bernard
544a996361 Load_IFF() support of ANIM/ANHD/DLTA animated ILBM 2018-02-18 21:11:40 +01:00
Thomas Bernard
1311cfefb0 Load_IFF() use CAMG to force HAM mode 2018-02-18 21:11:40 +01:00
Thomas Bernard
d4753919ee Load_IFF() parse BMHD as a normal chunk. Use stored_bit_planes var 2018-02-18 21:11:40 +01:00
Thomas Bernard
2bfbc03cb8 Display the bpp of the picture in the Load/Save Dialog 2018-02-18 21:11:40 +01:00
Thomas Bernard
039f9af663 Load_IFF() PCHG chunk to support "Palette Change" ILBMs 2018-02-18 21:11:40 +01:00
Thomas Bernard
d59c7b6d26 Load_IFF() : support ACBM IFF subtype 2018-02-18 21:11:40 +01:00
Thomas Bernard
f6fa546480 Load_IFF() support ANNO chunks 2018-02-18 21:11:40 +01:00
Thomas Bernard
747867b9e2 Load_IFF() translate comments, break in failed for loops 2018-02-18 21:11:40 +01:00
Thomas Bernard
c7444011ca Load_IFF() add parsing of CLUT chunks 2018-02-18 21:11:40 +01:00
Thomas Bernard
9bb459224e Load_IFF() Fixed support of HAM pictures.
Loading HAM6 and HAM8 ast true color pictures
2018-02-18 21:11:40 +01:00
Thomas Bernard
7a9a862e26 Load_IFF() : support 24bits files 2018-02-18 21:11:40 +01:00
Thomas Bernard
38c9e3e2cf Load_IFF() : parse SHAM (Sliced-HAM) chunks 2018-02-18 21:11:40 +01:00
Thomas Bernard
c5ea5d3a46 remove IFF_file global variable 2018-02-18 21:11:39 +01:00
Thomas Bernard
5934e0d7fd remove global variable IFF_buffer 2018-02-18 21:11:39 +01:00
Thomas Bernard
71135230f5 Load_IFF() set aspect ratio of loaded image 2018-02-18 21:11:39 +01:00
Thomas Bernard
ec8f698c5b load 1st image of Deluxe Paint for Atari ST Animations 2018-02-18 21:11:39 +01:00
Thomas Bernard
c3a8559256 Load_IFF() move PBM code to PBM_decode(). Handle TINY and DPPV chunks 2018-02-18 21:11:39 +01:00
Thomas Bernard
241943196b Load_IFF() Add parsing of CAMG chunks 2018-02-18 21:11:39 +01:00
Thomas Bernard
14cce41ba9 Reorganize Load_IFF() 2018-02-18 21:11:39 +01:00
Thomas Bernard
6f60a066e9 Load_ICO() fix when libpng is disabled 2018-02-17 19:00:06 +01:00
Thomas Bernard
61a1c6e39e Load_PNG() fix memory leak 2018-02-10 18:49:35 +01:00
Thomas Bernard
bd581c7a90 Save transparent background of Brushes
see http://pulkomandy.tk/projects/GrafX2/ticket/70
2018-01-30 21:32:33 +01:00
Thomas Bernard
84242cef78 Save_GIF() set "Color resolution" to 8bit / 256 colors 2018-01-30 21:09:02 +01:00
Thomas Bernard
8c6f89af46 Save_GIF() translated and clarified comments.
No change in algorithm, same output.
2018-01-29 16:14:19 +01:00
Thomas Bernard
9f3af34968 More efficiently store Animated GIFs
Do not store the whole canvas for additional images
2018-01-29 16:07:17 +01:00
Thomas Bernard
5c932dd2d9 Save_GIF(): fix for 1 pixel GIFs 2018-01-29 15:52:43 +01:00
Thomas Bernard
ea81cbb46b Save_GIF()/GIF_next_pixel() support saving sub-area of the canvas 2018-01-29 15:52:43 +01:00
Thomas Bernard
207e487d99 Show palette in preview (instead of image) when loading palette ! 2018-01-25 22:55:27 +01:00
Thomas Bernard
a53d6da6ea Add visible_image and backups to the T_Document structure 2018-01-22 16:16:39 +01:00
Thomas Bernard
8ae651c75f put common fields for Main and Spare page in a T_Document structure 2018-01-22 14:46:44 +01:00
Thomas Bernard
afb1feb75d PCX : the CGA "color burst" bit is not taken into account by Paintbrush 3.11 2018-01-20 11:56:03 +01:00
Thomas Bernard
34c7f96535 Better PCX support
support 3 plane 8 colors files
Correctly set CGA palette for 1bpp and 2bpp images
2018-01-19 16:22:53 +01:00
Thomas Bernard
3271d6ba8d Fix BMP loading for big endian machines (68k, PPC)
also removed some debug printf
2018-01-19 10:14:14 +01:00
Thomas Bernard
1232675b59 Save_ICO()
With transparency data
2018-01-18 11:20:51 +01:00
Thomas Bernard
ad9306498f Add support for 2bpp BMP's (Win CE)
File extension is usually 2bp (ic2 for icons)
2018-01-18 00:59:00 +01:00
Thomas Bernard
d0d0b64ecf Support transparency in ICO files with 256 colors or less 2018-01-18 00:43:36 +01:00