diff options
author | yzrh <yzrh@noema.org> | 2022-12-22 19:47:40 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-24 23:29:56 +0000 |
commit | 9c1f1d0b75de0d2ed299842d3025941f3e681c16 (patch) | |
tree | 302f6d4a2235acfe8872a3c0c1c216fecc323b95 /src/cnki_jbig.h | |
parent | ac3b1dda63944f2cc8caaa52344774255e1956c8 (diff) | |
download | melon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.gz melon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.zst |
Fix HN conversion and add JBIG2 support.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/cnki_jbig.h')
-rw-r--r-- | src/cnki_jbig.h | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/src/cnki_jbig.h b/src/cnki_jbig.h index 96e4ea8..701b4df 100644 --- a/src/cnki_jbig.h +++ b/src/cnki_jbig.h @@ -1,48 +1,11 @@ /* - * Copyright (c) 2020-2021, yzrh <yzrh@noema.org> + * Copyright (c) 2020-2022, yzrh <yzrh@noema.org> * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> -/* - * order (MSB first): - * 0 - * 0 - * 0 - * 0 - * HITOLO - * SEQ - * ILEAVE (default) - * SMID (default) - * - * options (MSB first): - * 0 - * LRLTWO - * VLENGTH - * TPDON (default) - * TPBON (default) - * DPON (default) - * DPPRIV - * DPLAST - */ -typedef struct _bih_t { - char d_l; /* Initial resolution layer */ - char d; /* Final resolution layer */ - char p; /* Number of bit-planes, for bi-level image, always 1 */ - char fill; /* Always 0 */ - /* MSB first */ - int32_t x_d; /* Horizontal dimension at highestresolution */ - int32_t y_d; /* Vertical dimension at highest resolution */ - int32_t l_0; /* Number of lines per stripe at lowest resolution */ - char m_x; /* Maximum horizontal offsets (default: 8) */ - char m_y; /* Maximum vertical offsets (default: 0) */ - char order; - char options; - char *dptable; /* 0 or 1728 */ -} bih_t; - typedef enum _dib_compression_code { BI_RGB, BI_RLE8, |