| 1 |
/* writeimg.h |
| 2 |
|
| 3 |
Copyright 1996-2006 Han The Thanh <[email protected]> |
| 4 |
Copyright 2006-2012 Taco Hoekwater <[email protected]> |
| 5 |
|
| 6 |
This file is part of LuaTeX. |
| 7 |
|
| 8 |
LuaTeX is free software; you can redistribute it and/or modify it under |
| 9 |
the terms of the GNU General Public License as published by the Free |
| 10 |
Software Foundation; either version 2 of the License, or (at your |
| 11 |
option) any later version. |
| 12 |
|
| 13 |
LuaTeX is distributed in the hope that it will be useful, but WITHOUT |
| 14 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 15 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 16 |
License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License along |
| 19 |
with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
#ifndef WRITEIMG_H |
| 22 |
# define WRITEIMG_H |
| 23 |
|
| 24 |
# include "dvi/dvigen.h" |
| 25 |
# include "image.h" |
| 26 |
# include "pdf/pdfpage.h" |
| 27 |
|
| 28 |
typedef image_dict *idict_entry; |
| 29 |
extern idict_entry *idict_array; |
| 30 |
|
| 31 |
extern const char *pdf_pdf_prefix_str(const char *a, const char *b); |
| 32 |
|
| 33 |
void new_img_pdfstream_struct(image_dict *); |
| 34 |
image *new_image(void); |
| 35 |
image_dict *new_image_dict(void); |
| 36 |
void free_image_dict(image_dict * p); |
| 37 |
void read_img(image_dict * p); |
| 38 |
void scan_pdfximage(PDF pdf); |
| 39 |
void scan_pdfrefximage(PDF pdf); |
| 40 |
scaled_whd tex_scale(scaled_whd nat, scaled_whd tex); |
| 41 |
scaled_whd scale_img(image_dict *, scaled_whd, int); |
| 42 |
void write_img(PDF, image_dict *); |
| 43 |
int write_img_object(PDF, image_dict *, int n); |
| 44 |
void pdf_write_image(PDF pdf, int n); |
| 45 |
void check_pdfstream_dict(image_dict *); |
| 46 |
void write_pdfstream(PDF, image_dict *); |
| 47 |
void idict_to_array(image_dict *); |
| 48 |
void dumpimagemeta(void); |
| 49 |
void undumpimagemeta(PDF, int, int); |
| 50 |
scaled_whd scan_alt_rule(void); |
| 51 |
size_t read_file_to_buf(PDF pdf, FILE * f, size_t len); |
| 52 |
void pdf_dict_add_img_filename(PDF pdf, image_dict * idict); |
| 53 |
|
| 54 |
#endif |