Lines Matching refs:job_params
76 wprint_job_params_t *job_params;
120 priv->job_params->media_size, priv->job_params->media_type,
121 priv->job_params->pixel_units, priv->job_params->duplex,
122 priv->job_params->dry_time, priv->job_params->color_space,
123 priv->job_params->media_tray, priv->job_params->page_top_margin,
124 priv->job_params->page_left_margin);
129 if (!priv->pcl_ifc->canCancelMidPage() || !priv->job_params->cancelled) {
217 const ifc_print_job_t *print_ifc_p, wprint_job_params_t *job_params) {
222 if (job_params == NULL) continue;
224 job_params->plugin_data = NULL;
233 priv->job_params = job_params;
238 priv->job_info.strip_height = job_params->strip_height;
239 priv->job_info.useragent = job_params->useragent;
242 switch (job_params->pcl_type) {
264 job_params->plugin_data = (void *) priv;
276 static status_t _print_page(wprint_job_params_t *job_params, const char *mime_type,
292 if (job_params == NULL) return ERROR;
294 priv = (plugin_data_t *) job_params->plugin_data;
298 switch (job_params->pcl_type) {
320 job_params->pixel_units, job_params->pdf_render_resolution);
321 wprint_image_init(image_info, pathname, job_params->page_num);
327 if ((job_params->render_flags & RENDER_FLAG_PORTRAIT_MODE) != 0) {
330 } else if ((job_params->render_flags & RENDER_FLAG_LANDSCAPE_MODE) != 0) {
334 ((job_params->render_flags & RENDER_FLAG_AUTO_ROTATE) != 0)) {
339 if ((job_params->render_flags & RENDER_FLAG_CENTER_ON_ORIENTATION) != 0) {
340 job_params->render_flags &= ~(RENDER_FLAG_CENTER_HORIZONTAL |
342 job_params->render_flags |= ((rotation == ROT_0) ? RENDER_FLAG_CENTER_HORIZONTAL
346 if ((job_params->duplex == DUPLEX_MODE_BOOK) &&
347 (job_params->page_backside) &&
348 ((job_params->render_flags & RENDER_FLAG_ROTATE_BACK_PAGE) != 0) &&
349 ((job_params->render_flags & RENDER_FLAG_BACK_PAGE_PREROTATED) == 0)) {
355 job_params->printable_area_width, job_params->printable_area_height,
356 job_params->print_top_margin, job_params->print_left_margin,
357 job_params->print_right_margin, job_params->print_bottom_margin,
358 job_params->render_flags, job_params->strip_height, MAX_SEND_BUFFS,
378 msg.param.start_page.extra_margin = ((job_params->duplex !=
380 ((job_params->page_num & 0x1) == 0))
381 ? job_params->page_bottom_margin : 0.0f;
399 if (priv->pcl_ifc->canCancelMidPage() && job_params->cancelled) {
407 height = MIN(num_rows, job_params->strip_height);
408 if (!job_params->cancelled) {
444 if ((result == OK) && job_params->cancelled) {
451 msg.param.end_page.page = job_params->page_num;
455 job_params->page_num, pathname,
456 (job_params->last_page) ? "- last page" : "- ",
457 job_params->cancelled) ? "- job cancelled"
502 static int _print_blank_page(wJob_t job_handle, wprint_job_params_t *job_params) {
506 if (job_params == NULL) return ERROR;
508 priv = (plugin_data_t *) job_params->plugin_data;
519 static int _end_job(wprint_job_params_t *job_params) {
520 if (job_params != NULL) {
521 _stop_thread((plugin_data_t *) job_params->plugin_data);