Home
last modified time | relevance | path

Searched refs:image_info (Results 1 – 6 of 6) sorted by relevance

/packages/services/BuiltInPrintService/jni/plugins/
Dwprint_image.c28 void wprint_image_setup(wprint_image_info_t *image_info, const char *mime_type, in wprint_image_setup() argument
31 if (image_info != NULL) { in wprint_image_setup()
33 memset(image_info, 0, sizeof(wprint_image_info_t)); in wprint_image_setup()
34 image_info->wprint_ifc = wprint_ifc; in wprint_image_setup()
35 image_info->mime_type = mime_type; in wprint_image_setup()
36 image_info->print_resolution = output_resolution; in wprint_image_setup()
37 image_info->pdf_render_resolution = pdf_render_resolution; in wprint_image_setup()
41 status_t wprint_image_get_info(FILE *imgfile, wprint_image_info_t *image_info) { in wprint_image_get_info() argument
42 if (image_info == NULL) return ERROR; in wprint_image_get_info()
44 image_info->imgfile = imgfile; in wprint_image_get_info()
[all …]
Dwprint_mupdf.c30 static void _mupdf_init(wprint_image_info_t *image_info) { in _mupdf_init() argument
41 static status_t _mupdf_get_hdr(wprint_image_info_t *image_info) { in _mupdf_get_hdr() argument
51 pages = pdf_render->openDocument(pdf_render, image_info->decoder_data.urlPath); in _mupdf_get_hdr()
54 result = pdf_render->getPageAttributes(pdf_render, image_info->decoder_data.page, &pageWidth, in _mupdf_get_hdr()
59 zoom = (image_info->pdf_render_resolution) / POINTS_PER_INCH; in _mupdf_get_hdr()
64 image_info->width = imageWidth; in _mupdf_get_hdr()
65 image_info->height = imageHeight; in _mupdf_get_hdr()
72 LOGI("Render page=%d w=%.0f h=%.0f res=%d zoom=%0.2f size=%d", image_info->decoder_data.page, in _mupdf_get_hdr()
73 pageWidth, pageHeight, image_info->pdf_render_resolution, zoom, size); in _mupdf_get_hdr()
77 result = pdf_render->renderPageStripe(pdf_render, image_info->decoder_data.page, imageWidth, in _mupdf_get_hdr()
[all …]
Dwprint_image.h139 void (*init)(wprint_image_info_t *image_info);
144 status_t (*get_hdr)(wprint_image_info_t *image_info);
154 status_t (*cleanup)(wprint_image_info_t *image_info);
159 status_t (*supports_subsampling)(wprint_image_info_t *image_info);
164 int (*native_units)(wprint_image_info_t *image_info);
170 const image_decode_ifc_t *wprint_image_get_decode_ifc(wprint_image_info_t *image_info);
175 void wprint_image_setup(wprint_image_info_t *image_info, const char *mime_type,
181 status_t wprint_image_get_info(FILE *imgfile, wprint_image_info_t *image_info);
186 status_t wprint_image_set_output_properties(wprint_image_info_t *image_info,
195 bool wprint_image_is_landscape(wprint_image_info_t *image_info);
[all …]
Dwprint_image_platform.c23 const image_decode_ifc_t *wprint_image_get_decode_ifc(wprint_image_info_t *image_info) { in wprint_image_get_decode_ifc() argument
24 if ((image_info != NULL) && (image_info->mime_type != NULL)) { in wprint_image_get_decode_ifc()
26 if (strcasecmp(image_info->mime_type, MIME_TYPE_PDF) == 0) { in wprint_image_get_decode_ifc()
33 int wprint_image_init(wprint_image_info_t *image_info, const char *image_url, const int page_num) { in wprint_image_init() argument
34 if (image_info == NULL) return ERROR; in wprint_image_init()
36 image_info->decoder_data.urlPath = image_url; in wprint_image_init()
37 image_info->decoder_data.page = page_num; in wprint_image_init()
39 const image_decode_ifc_t *decode_ifc = wprint_image_get_decode_ifc(image_info); in wprint_image_init()
41 decode_ifc->init(image_info); in wprint_image_init()
42 image_info->decode_ifc = decode_ifc; in wprint_image_init()
Dplugin_pcl.c278 wprint_image_info_t *image_info; in _print_page() local
313 image_info = malloc(sizeof(wprint_image_info_t)); in _print_page()
314 if (image_info == NULL) return ERROR; in _print_page()
319 wprint_image_setup(image_info, mime_type, priv->job_info.wprint_ifc, in _print_page()
321 wprint_image_init(image_info, pathname, job_params->page_num); in _print_page()
324 if ((result = wprint_image_get_info(imgfile, image_info)) == OK) { in _print_page()
333 } else if (wprint_image_is_landscape(image_info) && in _print_page()
354 wprint_image_set_output_properties(image_info, rotation, in _print_page()
367 buff_size = wprint_image_get_output_buff_size(image_info); in _print_page()
382 msg.param.start_page.width = wprint_image_get_width(image_info); in _print_page()
[all …]
Dwprint_image_platform.h56 int wprint_image_init(wprint_image_info_t *image_info, const char *urlPath, int pageNum);