Lines Matching refs:job_params
31 static status_t _validate_job(const ifc_print_job_t *this_p, wprint_job_params_t *job_params,
34 static status_t _start_job(const ifc_print_job_t *this_p, const wprint_job_params_t *job_params,
175 static ipp_t *_fill_job(int ipp_op, char *printer_uri, const wprint_job_params_t *job_params, in _fill_job() argument
183 if (job_params == NULL) return NULL; in _fill_job()
194 bool is_2_0_capable = job_params->ipp_2_0_supported; in _fill_job()
195 bool is_ePCL_ipp_capable = job_params->epcl_ipp_supported; in _fill_job()
201 job_params->job_originating_user_name); in _fill_job()
202 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
206 job_params->accepts_app_name || in _fill_job()
207 job_params->accepts_app_version || in _fill_job()
208 job_params->accepts_os_name || in _fill_job()
209 job_params->accepts_os_version); in _fill_job()
213 if (job_params->accepts_app_name) { in _fill_job()
217 if (job_params->accepts_app_version) { in _fill_job()
221 if (job_params->accepts_os_name) { in _fill_job()
225 if (job_params->accepts_os_version) { in _fill_job()
237 LOGD("_fill_job: pcl_type(%d), print_format(%s)", job_params->pcl_type, in _fill_job()
238 job_params->print_format); in _fill_job()
239 if (strcmp(job_params->print_format, PRINT_FORMAT_PDF) == 0) { in _fill_job()
248 (job_params->accepts_pclm ? PRINT_FORMAT_PCLM : PRINT_FORMAT_PDF)); in _fill_job()
250 (job_params->accepts_pclm ? PRINT_FORMAT_PCLM : PRINT_FORMAT_PDF)); in _fill_job()
254 if (job_params->render_flags & RENDER_FLAG_AUTO_SCALE) { in _fill_job()
260 if (job_params->render_flags & RENDER_FLAG_PORTRAIT_MODE) { in _fill_job()
264 if (job_params->render_flags & RENDER_FLAG_LANDSCAPE_MODE) { in _fill_job()
269 switch (job_params->pcl_type) { in _fill_job()
276 IPP_RES_PER_INCH, job_params->pixel_units, in _fill_job()
277 job_params->pixel_units); in _fill_job()
286 LOGD("_fill_job: unrecognized pcl_type: %d", job_params->pcl_type); in _fill_job()
298 if (strlen(job_params->print_scaling) != 0) { in _fill_job()
299 LOGD("_fill_job: setting print-scaling to %s", job_params->print_scaling); in _fill_job()
301 NULL, job_params->print_scaling); in _fill_job()
305 if (job_params->copies_supported && (strcmp(job_params->print_format, PRINT_FORMAT_PDF) == 0)) { in _fill_job()
306 ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies", job_params->num_copies); in _fill_job()
309 if (printer_caps->jobPagesPerSetSupported && job_params->job_pages_per_set > 0) { in _fill_job()
310 unsigned int job_pages_per_set = job_params->job_pages_per_set; in _fill_job()
311 if (strcmp(job_params->print_format, PRINT_FORMAT_PCLM) == 0 in _fill_job()
312 && wprintBlankPageForPclm(job_params, printer_caps)) { in _fill_job()
321 if (job_params->print_quality) { in _fill_job()
323 job_params->print_quality); in _fill_job()
327 job_params->pixel_units, job_params->pixel_units); in _fill_job()
330 if (job_params->duplex == DUPLEX_MODE_BOOK) { in _fill_job()
333 } else if (job_params->duplex == DUPLEX_MODE_TABLET) { in _fill_job()
342 if (job_params->color_space == COLOR_SPACE_MONO) { in _fill_job()
352 if (job_params->media_tray != TRAY_SRC_AUTO_SELECT) { in _fill_job()
353 if (job_params->media_tray == TRAY_SOURCE_PHOTO_TRAY) { in _fill_job()
357 } else if (job_params->media_tray == TRAY_SOURCE_TRAY_1) { in _fill_job()
370 if (job_params->borderless) { in _fill_job()
378 switch (job_params->media_type) { in _fill_job()
404 _get_pwg_media_size(job_params->media_size, &mediaWidth, &mediaHeight, &mediaSizeName); in _fill_job()
407 if ((job_params->media_size_name) && (mediaSizeName != NULL)) { in _fill_job()
425 mapDFMediaToIPPKeyword(job_params->media_size)); in _fill_job()
436 static status_t _validate_job(const ifc_print_job_t *this_p, wprint_job_params_t *job_params, in _validate_job() argument
451 if (job_params == NULL) { in _validate_job()
461 if ((job_params->useragent != NULL) && (strlen(job_params->useragent) > 0)) { in _validate_job()
462 ipp_job->useragent = job_params->useragent; in _validate_job()
465 request = _fill_job(IPP_VALIDATE_JOB, ipp_job->printer_uri, job_params, printer_caps); in _validate_job()
505 static status_t _start_job(const ifc_print_job_t *this_p, const wprint_job_params_t *job_params, in _start_job() argument
525 if ((job_params->useragent != NULL) && (strlen(job_params->useragent) > 0)) { in _start_job()
526 ipp_job->useragent = job_params->useragent; in _start_job()
528 request = _fill_job(IPP_PRINT_JOB, ipp_job->printer_uri, job_params, printer_caps); in _start_job()