/usr/include/minidjvu/jb2.h is in libminidjvu-dev 0.8.svn.2010.05.06+dfsg-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /*
* jb2.h - functions to load from JB2 raw streams (that's part of DjVu format)
*/
/*
* These functions return NULL if failed to read JB2.
* Loading jb2 by path is not supported.
*/
MDJVU_FUNCTION mdjvu_image_t mdjvu_file_load_jb2(mdjvu_file_t, int32 length, mdjvu_error_t *);
/*
* 1 - success, 0 - error
* Cannot save images that use shared dictionary.
* With erosion turned on, this function changes the image.
*/
MDJVU_FUNCTION int mdjvu_save_jb2(mdjvu_image_t, const char *path, mdjvu_error_t *, int erosion);
MDJVU_FUNCTION int mdjvu_file_save_jb2(mdjvu_image_t, mdjvu_file_t, mdjvu_error_t *, int erosion);
MDJVU_FUNCTION int mdjvu_save_jb2_dictionary(mdjvu_image_t, const char *path, mdjvu_error_t *, int erosion);
MDJVU_FUNCTION int mdjvu_file_save_jb2_dictionary(mdjvu_image_t, mdjvu_file_t, mdjvu_error_t *, int erosion);
/*
* This is called automatically by xxx_save_jb2() functions.
* This function finds "cross-coding prototypes" (see DjVu spec).
* It's VERY SLOW.
*/
MDJVU_FUNCTION void mdjvu_find_prototypes(mdjvu_image_t);
/*
* This is the multipage version. Does not search prototypes in the dictionary.
* Is not invoked by xxx_save_jb2().
*/
MDJVU_FUNCTION void mdjvu_multipage_find_prototypes
(mdjvu_image_t dict, int32 npages, mdjvu_image_t *pages,
void (*report)(void *param, int page), void *param);
|