16 Commits

Author SHA1 Message Date
Rupert
e7910ac36b add bmpread_image_type() API call 2025-06-22 02:05:35 +02:00
Rupert
7ece494541 Docs update 2025-06-21 16:18:45 +02:00
Rupert
22ef9d73aa Add BA and icon/pointer documentation 2025-06-04 00:03:26 +02:00
Rupert
1b67440d29 docs: add section numbering 2025-05-27 15:08:47 +02:00
Rupert
b43fd940e6 bump version to 1.7.7 2025-04-18 15:53:08 +02:00
Rupert
0e4e611955 add semicolons in doc for consistent syntax highlighter 2025-04-16 23:50:00 +02:00
Rupert
58ebfc8dc7 doc update, bump version to v1.7.6 2025-04-16 23:43:45 +02:00
Rupert
be9882e04f documentation update
- add documentation for ICC profile functions
- add 'c' to code snippets to enable syntax highlighting
- minor corrections
2025-04-16 13:11:37 +02:00
Rupert
7523138fbb bump version to 1.7.5 2025-04-10 18:29:17 +02:00
Rupert
7513352a7b add bmp_set_huffman_t4black_value()
ITU-T T.4 defines 'black' and 'white' (referring to fore- and back-
ground, respectively) pixel sequences, but it doesn't prescribe which
of those is represented by 0 or 1. That would have to be defined by the
BMP specification, but documentation on Huffman BMPs is close to
non-existent.

Current consensus seems to be that 'black' is 1, i.e. indexing the
second color in the palette, and 'white' is 0, i.e. indexing the first
color.

In case that's wrong (in fact it's not even clear if there is a right
and a wrong), bmp_set_huffman_t4black_value() can be used to set the
pixel value of 'black' to either 0 or 1 (and white to the respective
opposite).

Can be used both for reading and writing BMPs.

Changing this value will invert the image colors.
2025-04-09 23:11:58 +02:00
Rupert
1b3c8a1081 add bmpwrite_set_huffman_img_fg_idx()
add ability to specify which palette index corresponds to foreground,
essential to optimize Huffman compression.
2025-04-09 12:21:26 +02:00
Rupert
7f125a3d81 fix error in writing long RLE sequences 2024-11-17 02:46:43 +01:00
Rupert
4626e2ac29 implement RLE24
* unify RLE4/RLE8/RLE24
* doc updates
* bimp version to 1.7.0
2024-11-16 23:17:07 +01:00
Rupert
07497b7cea huffman: small fixes
* write correct files/image sizes to header
* eol/rtc funcs in huffman.c
* align rtc on byte boundary
* doc update
* bump version to 1.6.2
2024-11-15 12:42:49 +01:00
Rupert
e6a84d2a34 bmpread_dimensions(): be more precise about when we consider
dimensions to be fetched; get rid of underscores in bitsperchannel
v1.5.0
2024-10-26 12:44:55 +02:00
Rupert
99598632f2 Quick Start Guide,
doc update to reflect latest changes and additions to API
2024-10-20 16:24:57 +02:00