![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/pdf.h"#include "bauhaus/bauhaus.h"#include "common/colorspaces.h"#include "common/darktable.h"#include "common/imageio.h"#include "common/imageio_module.h"#include "common/variables.h"#include "control/control.h"#include "dtgtk/button.h"#include "gui/gtkentry.h"#include "imageio/format/imageio_format_api.h"#include <strings.h>
Include dependency graph for imageio/format/pdf.c:Data Structures | |
| struct | pdf_t |
| struct | _pdf_icc_t |
| struct | dt_imageio_pdf_params_t |
| struct | dt_imageio_pdf_t |
Typedefs | |
| typedef struct pdf_t | pdf_t |
| typedef enum _pdf_orientation_t | _pdf_orientation_t |
| typedef enum _pdf_pages_t | _pdf_pages_t |
| typedef enum _pdf_mode_t | _pdf_mode_t |
| typedef struct _pdf_icc_t | _pdf_icc_t |
| typedef struct dt_imageio_pdf_params_t | dt_imageio_pdf_params_t |
| typedef struct dt_imageio_pdf_t | dt_imageio_pdf_t |
Enumerations | |
| enum | _pdf_orientation_t { ORIENTATION_PORTRAIT = 0 , ORIENTATION_LANDSCAPE = 1 } |
| enum | _pdf_pages_t { PAGES_ALL = 0 , PAGES_SINGLE = 1 , PAGES_CONTACT = 2 } |
| enum | _pdf_mode_t { MODE_NORMAL = 0 , MODE_DRAFT = 1 , MODE_DEBUG = 2 } |
Variables | ||
| struct { | ||
| char * name | ||
| int bpp | ||
| } | _pdf_bpp [] | |
| typedef struct _pdf_icc_t _pdf_icc_t |
| typedef enum _pdf_mode_t _pdf_mode_t |
| typedef enum _pdf_orientation_t _pdf_orientation_t |
| typedef enum _pdf_pages_t _pdf_pages_t |
| typedef struct dt_imageio_pdf_params_t dt_imageio_pdf_params_t |
| typedef struct dt_imageio_pdf_t dt_imageio_pdf_t |
| enum _pdf_mode_t |
| enum _pdf_orientation_t |
| enum _pdf_pages_t |
|
static |
References d, dt_control_log(), dt_pdf_parse_length(), dt_pdf_parse_paper_size(), h, height, MAX, MIN, ORIENTATION_LANDSCAPE, and width.
Referenced by dimension(), and write_image().
|
static |
References _set_paper_size(), d, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_get_entry(), dt_bauhaus_combobox_length(), dt_bauhaus_combobox_set(), dt_conf_get_string(), dt_conf_set_string(), dt_control_log(), dt_free, dt_pdf_paper_sizes, dt_pdf_paper_sizes_n, dt_pdf_parse_paper_size(), dt_imageio_module_format_t::gui_data, height, name, size_toggle_callback(), and width.
Referenced by _set_paper_size(), gui_init(), set_params(), and size_toggle_callback().
References dt_conf_set_string().
Referenced by gui_init().
| int bpp | ( | dt_imageio_module_data_t * | p | ) |
References p.
References _pdf_bpp, bpp, dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
| void cleanup | ( | dt_imageio_module_format_t * | self | ) |
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
| int dimension | ( | struct dt_imageio_module_format_t * | self, |
| dt_imageio_module_data_t * | data, | ||
| uint32_t * | width, | ||
| uint32_t * | height | ||
| ) |
References _paper_size(), d, dt_pdf_point_to_pixel, height, MAX, and width.
Referenced by _util_get_svg_img(), dt_get_svg_dimension(), and process().
References dt_conf_set_float().
Referenced by gui_init(), and gui_reset().
| const char * extension | ( | dt_imageio_module_data_t * | data | ) |
| int flags | ( | dt_imageio_module_data_t * | data | ) |
References FORMAT_FLAGS_NO_TMPFILE.
| void free_params | ( | dt_imageio_module_format_t * | self, |
| dt_imageio_module_data_t * | params | ||
| ) |
References d, dt_free, dt_free_gpointer(), and dt_pdf_finish().
| void * get_params | ( | dt_imageio_module_format_t * | self | ) |
References d, dt_conf_get_bool(), dt_conf_get_float(), dt_conf_get_int(), and dt_conf_get_string_const().
| void gui_cleanup | ( | dt_imageio_module_format_t * | self | ) |
References dt_free, and dt_imageio_module_format_t::gui_data.
| void gui_init | ( | dt_imageio_module_format_t * | self | ) |
References _pdf_bpp, _set_paper_size(), darktable_t::bauhaus, border_changed_callback(), bpp, bpp_toggle_callback(), compression_toggle_callback(), d, darktable, dpi_changed_callback(), dt_accels_disconnect_on_text_input(), dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_combobox_set_editable(), dt_bauhaus_widget_set_label(), dt_conf_get_bool(), dt_conf_get_float(), dt_conf_get_int(), dt_conf_get_string(), dt_conf_get_string_const(), dt_free, DT_GUI_MODULE, dt_pdf_paper_sizes, DT_PIXEL_APPLY_DPI, dt_ui_label_new(), FALSE, dt_imageio_module_format_t::gui_data, i, icc_toggle_callback(), mode_toggle_callback(), name, orientation_toggle_callback(), rotate_toggle_callback(), size_toggle_callback(), title_changed_callback(), TRUE, and dt_imageio_module_format_t::widget.
| void gui_reset | ( | dt_imageio_module_format_t * | self | ) |
References bpp_toggle_callback(), compression_toggle_callback(), d, dpi_changed_callback(), dt_imageio_module_format_t::gui_data, icc_toggle_callback(), mode_toggle_callback(), orientation_toggle_callback(), pages_toggle_callback(), rotate_toggle_callback(), size_toggle_callback(), and title_changed_callback().
References dt_bauhaus_combobox_get(), and dt_conf_set_bool().
Referenced by gui_init(), and gui_reset().
| void init | ( | dt_imageio_module_format_t * | self | ) |
References darktable, dt_lua_register_module_member_indirect, dt_lua_type_register_type(), DT_PDF_STREAM_ENCODER_ASCII_HEX, DT_PDF_STREAM_ENCODER_FLATE, L, darktable_t::lua_state, MODE_DEBUG, MODE_DRAFT, MODE_NORMAL, orientation_member(), PAGES_ALL, PAGES_CONTACT, PAGES_SINGLE, dt_imageio_module_format_t::parameter_lua_type, and size.
| int levels | ( | dt_imageio_module_data_t * | p | ) |
References IMAGEIO_INT16, IMAGEIO_INT8, IMAGEIO_RGB, and p.
| const char * mime | ( | dt_imageio_module_data_t * | data | ) |
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init(), and gui_reset().
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_reset().
| size_t params_size | ( | dt_imageio_module_format_t * | self | ) |
References dt_bauhaus_combobox_get(), and dt_conf_set_bool().
Referenced by gui_init(), and gui_reset().
| int set_params | ( | dt_imageio_module_format_t * | self, |
| const void * | params, | ||
| const int | size | ||
| ) |
References _set_paper_size(), dt_bauhaus_combobox_get(), dt_bauhaus_combobox_get_text(), dt_pdf_paper_sizes, dt_pdf_paper_sizes_n, and name.
Referenced by _set_paper_size(), gui_init(), and gui_reset().
References dt_conf_set_string().
Referenced by gui_init(), and gui_reset().
| int write_image | ( | dt_imageio_module_data_t * | data, |
| const char * | filename, | ||
| const void * | in, | ||
| dt_colorspaces_color_profile_type_t | over_type, | ||
| const char * | over_filename, | ||
| void * | exif, | ||
| int | exif_len, | ||
| int32_t | imgid, | ||
| int | num, | ||
| int | total, | ||
| struct dt_dev_pixelpipe_t * | pipe, | ||
| const gboolean | export_masks | ||
| ) |
References _paper_size(), c, d, dt_colorspaces_get_output_profile(), dt_control_log(), dt_free, dt_free_gpointer(), dt_pdf_add_icc_from_data(), dt_pdf_add_image(), dt_pdf_add_page(), dt_pdf_finish(), dt_pdf_start(), DT_PDF_STREAM_ENCODER_FLATE, dt_pixelpipe_cache_alloc_align_cache, dt_pixelpipe_cache_free_align, dt_imageio_module_data_t::height, i, _pdf_icc_t::icc_id, MIN, MODE_DEBUG, MODE_NORMAL, dt_pdf_image_t::outline_mode, dt_colorspaces_color_profile_t::profile, _pdf_icc_t::profile, dt_pdf_image_t::rotate_to_fit, dt_pdf_image_t::show_bb, dt_pdf_t::title, dt_imageio_module_data_t::width, and x.
| const struct { ... } _pdf_bpp[] |
Referenced by bpp_toggle_callback(), gui_init(), and set_params().
| int bpp |
Referenced by _copy_buffer(), _export_image(), _init_base_buffer(), _read_scanline_rgba(), _update_backbuf_cache_reference(), bit_depth_changed(), bpp_combobox_changed(), bpp_combobox_changed(), bpp_toggle_callback(), distort_mask(), dt_apply_printer_profile(), dt_dev_pixelpipe_cache_get_pinned_image(), dt_dev_set_backbuf(), dt_drawlayer_io_load_flat_rgba(), dt_image_print_debug_info(), dt_imageio_export_with_flags(), dt_imageio_flip_buffers(), dt_imageio_open_png(), dt_iop_flip_and_zoom_8(), dt_mipmap_cache_alloc(), dt_pdf_add_image(), dt_pixel_cache_clmem_get(), dt_pixel_cache_clmem_put(), dt_pixel_cache_clmem_ref(), dt_tiling_piece_fits_host_memory(), get_params(), gui_init(), gui_reset(), init(), legacy_params(), levels(), main(), process(), process_image(), and set_params().
| char* name |
Referenced by _set_paper_size(), gui_init(), and size_toggle_callback().