go-image/bmp
entooone a5392f068b bmp: support to decode 8-bit format with up to 256 color palette
If colorUsed is 0, the number of palette is 2 to the power of bit per pixel.
testdata/colormap-251.{bmp,png} are added for testing 8-bit format with colorUsed less than 256.
testdata/colormap-0.{bmp,png} are added for testing 8-bit format with colorUsed 0.

Fixes golang/go#61240

Change-Id: I1a627a570f667874a91c517f4a771e9e97d2af6b
Reviewed-on: https://go-review.googlesource.com/c/image/+/508575
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <nigeltao@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Nigel Tao <nigeltao@golang.org>
2023-07-17 14:18:24 +00:00
..
reader.go bmp: support to decode 8-bit format with up to 256 color palette 2023-07-17 14:18:24 +00:00
reader_test.go bmp: support to decode 8-bit format with up to 256 color palette 2023-07-17 14:18:24 +00:00
writer.go bmp: Add support for writing bitmaps with alpha channels 2018-07-06 05:04:57 +00:00
writer_test.go bmp: remove unused testing.T arg 2018-07-08 00:43:52 +00:00