bmp: decode 1, 2 and 4 bits-per-pixel palettes

Specification: https://www.digicamsoft.com/bmp/bmp.html

Fixes golang/go#29711
Fixes golang/go#58005

Change-Id: Ia6f7ac61af26c6379d9e610261070dfc9a9001b3
GitHub-Last-Rev: 12c6ab1cf21771e37bf76eb9a15d6b35a9aa8d3d
GitHub-Pull-Request: golang/image#22
Reviewed-on: https://go-review.googlesource.com/c/image/+/636975
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Nigel Tao <nigeltao@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
8 files changed
tree: dcf31ade0520a91701b14be8fa0ff12d43bbfe57
  1. bmp/
  2. ccitt/
  3. cmd/
  4. colornames/
  5. draw/
  6. example/
  7. font/
  8. math/
  9. riff/
  10. testdata/
  11. tiff/
  12. vector/
  13. vp8/
  14. vp8l/
  15. webp/
  16. .gitattributes
  17. .gitignore
  18. codereview.cfg
  19. CONTRIBUTING.md
  20. go.mod
  21. go.sum
  22. LICENSE
  23. PATENTS
  24. README.md
README.md

Go Images

Go Reference

This repository holds supplementary Go image packages.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/image.

The main issue tracker for the image repository is located at https://go.dev/issues. Prefix your issue with “x/image:” in the subject line, so it is easy to find.