/usr/include/minidjvu/djvu/djvu.h is in libminidjvu-dev 0.8.svn.2010.05.06-2.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /*
* djvu.h - functions to load from single-page DjVuBitonal files
*/
#ifndef MDJVU_DJVU_H
#define MDJVU_DJVU_H
#include "iff.h"
MDJVU_FUNCTION int mdjvu_locate_jb2_chunk(mdjvu_file_t file, int32 *plength, mdjvu_error_t *);
/*
* BUG: resolution is not loaded
*/
MDJVU_FUNCTION mdjvu_image_t mdjvu_file_load_djvu_page(mdjvu_file_t file, mdjvu_error_t *);
MDJVU_FUNCTION mdjvu_image_t mdjvu_load_djvu_page(const char *path, mdjvu_error_t *);
/*
* 1 - success, 0 - failure
* After mdjvu_file_save_djvu_page() the file cursor is before the JB2 chunk.
*/
MDJVU_FUNCTION int mdjvu_file_save_djvu_dir( char **elements, int *sizes, int n,
mdjvu_file_t file, mdjvu_file_t tmpfile, mdjvu_error_t *perr);
MDJVU_FUNCTION int mdjvu_save_djvu_dir(char **elements, int *sizes, int n, const char *path, mdjvu_error_t *perr);
MDJVU_FUNCTION int mdjvu_file_save_djvu_page(mdjvu_image_t, mdjvu_file_t, const char *dict_name,
int indirect, mdjvu_error_t *perr, int erosion);
MDJVU_FUNCTION int mdjvu_save_djvu_page(mdjvu_image_t image, const char *path, const char *dict_name, mdjvu_error_t *perr, int erosion);
MDJVU_FUNCTION int mdjvu_file_save_djvu_dictionary(mdjvu_image_t, mdjvu_file_t,
int indirect, mdjvu_error_t *, int erosion);
MDJVU_FUNCTION int mdjvu_save_djvu_dictionary(mdjvu_image_t image, const char *path, mdjvu_error_t *, int erosion);
MDJVU_FUNCTION void mdjvu_write_dirm_bundled(char **elements, int *sizes, int n, mdjvu_file_t f, mdjvu_error_t *perr);
MDJVU_FUNCTION void mdjvu_write_dirm_indirect(char **elements, int *sizes, int n, mdjvu_file_t f, mdjvu_error_t *perr);
/* Writes DjVu INFO chunk, as described in DjVu 2 Spec., 6.4.2, page 7.
* Gamma and version numbers are always default.
* This function does not write the chunk header.
*/
MDJVU_FUNCTION void mdjvu_write_info_chunk(mdjvu_file_t, mdjvu_image_t image);
/* Reads DjVu INFO chunk, as described in DjVu 2 Spec., 6.4.2, page 7.
* Gamma and version numbers are dropped; width, height and dpi are returned.
* Pointers may be NULL.
* This function assumes the cursor is positioned to the start of chunk.
*/
MDJVU_FUNCTION void mdjvu_read_info_chunk(mdjvu_file_t,
int32 *w, int32 *h, int32 *dpi);
#endif
|