/* * Copyright (c) 2024, Nico Weber * * SPDX-License-Identifier: BSD-2-Clause */ #include // Spec: ITU-T_T_88__08_2018.pdf in the zip file here: // https://www.itu.int/rec/T-REC-T.88-201808-I namespace Gfx { bool JBIG2ImageDecoderPlugin::sniff(ReadonlyBytes data) { // JBIG2 spec, Annex D, D.4.1 ID string u8 id_string[] = { 0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A }; return data.starts_with(id_string); } ErrorOr> JBIG2ImageDecoderPlugin::create(ReadonlyBytes) { return Error::from_string_view("FIXME: Draw the rest of the owl"sv); } }