1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +00:00

LibGfx/CCITT: Add support for Group4

The API is currently pretty raw. Group4 has a bunch of options that we
don't support yet.
This commit is contained in:
Lucas CHOLLET 2024-02-15 19:46:25 -05:00 committed by Jelle Raaijmakers
parent e9dd1cda3e
commit d57d676425
2 changed files with 26 additions and 0 deletions

View file

@ -16,6 +16,9 @@ namespace Gfx::CCITT {
// The CCITT3 specification is accessible at this page:
// https://www.itu.int/rec/T-REC-T.4/en
// And CCITT4's specification is available here:
// https://www.itu.int/rec/T-REC-T.6/en
// The unidimensional scheme is originally described in:
// 4.1 One-dimensional coding scheme
// However, this function implements the TIFF variant (see TIFFLoader.h for a spec link),
@ -47,4 +50,6 @@ struct Group3Options {
ErrorOr<ByteBuffer> decode_ccitt_group3(ReadonlyBytes bytes, u32 image_width, u32 image_height, Group3Options const& options);
ErrorOr<ByteBuffer> decode_ccitt_group4(ReadonlyBytes bytes, u32 image_width, u32 image_height);
}