diff options
author | yzrh <yzrh@noema.org> | 2020-12-31 22:36:28 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2021-01-03 03:01:28 +0000 |
commit | 1994f122cc29504862944cca1da1c5203c7e41eb (patch) | |
tree | d89e37c5f3443156116bd8476e0efc2d380acd55 /src/cnki.h | |
parent | b20c6ad3ed930977990f3812b25b80d2ce282d79 (diff) | |
download | melon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.gz melon-1994f122cc29504862944cca1da1c5203c7e41eb.tar.zst |
Decode JBIG and JPEG during HN conversion.
Diffstat (limited to 'src/cnki.h')
-rw-r--r-- | src/cnki.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, yzrh <yzrh@noema.org> + * Copyright (c) 2020-2021, yzrh <yzrh@noema.org> * * SPDX-License-Identifier: Apache-2.0 */ @@ -82,6 +82,7 @@ typedef struct _cnki_t { /* cnki_pdf.c */ int cnki_pdf(cnki_t **param); +int cnki_pdf_hn(cnki_t **param); /* cnki_outline_tree.c */ int cnki_outline_tree(object_outline_tree_t **outline_tree, @@ -91,5 +92,10 @@ int cnki_outline_tree(object_outline_tree_t **outline_tree, int cnki_zlib(char **dst, int *dst_size, const char * restrict src, int src_size); +/* cnki_jbig.c */ +int cnki_jbig(char **bitmap, int *bitmap_size, + int *bitmap_width, int *bitmap_height, + const char * restrict jbig, int jbig_size); + /* cnki_xml.c */ int cnki_xml(char **xml, FILE **fp); |