Lines Matching refs:job_info

99 static void _get_pwg_media_size(pcl_job_info_t *job_info, media_size_t media_size,  in _get_pwg_media_size()  argument
129 _get_pwg_media_size(job_info, US_LETTER, myPageInfo); in _get_pwg_media_size()
142 static wJob_t _start_job(wJob_t job_handle, pcl_job_info_t *job_info, media_size_t media_size, in _start_job() argument
146 if (job_info == NULL) { in _start_job()
150 if (job_info->job_handle != _WJOBH_NONE) { in _start_job()
151 if (job_info->wprint_ifc != NULL) { in _start_job()
155 job_info->job_handle = _WJOBH_NONE; in _start_job()
158 if ((job_info->wprint_ifc == NULL) || (job_info->print_ifc == NULL)) { in _start_job()
165 job_info->job_handle = job_handle; in _start_job()
167 _START_JOB(job_info, "pwg"); in _start_job()
172 job_info->resolution = resolution; in _start_job()
173 job_info->media_size = media_size; in _start_job()
174 job_info->standard_scale = (float) resolution / (float) 72; in _start_job()
177 job_info->pclm_output_buffer = NULL; in _start_job()
178 job_info->seed_row = job_info->pcl_buff = NULL; // unused in _start_job()
179 job_info->pixel_width = job_info->pixel_height = job_info->page_number = job_info->num_rows = 0; in _start_job()
181 memset((void *) &job_info->pclm_page_info, 0x0, sizeof(PCLmPageSetup)); in _start_job()
182 _get_pwg_media_size(job_info, media_size, &job_info->pclm_page_info); in _start_job()
185 job_info->pclm_page_info.mediaWidthOffset = 0.0f; in _start_job()
186 job_info->pclm_page_info.mediaHeightOffset = 0.0f; in _start_job()
188 job_info->pclm_page_info.mediaWidthOffset = left_margin; in _start_job()
189 job_info->pclm_page_info.mediaHeightOffset = top_margin; in _start_job()
194 job_info->pclm_page_info.pageOrigin = top_left; // REVISIT in _start_job()
195 job_info->monochrome = (color_space == COLOR_SPACE_MONO); in _start_job()
196 job_info->pclm_page_info.dstColorSpaceSpefication = deviceRGB; in _start_job()
199 job_info->pclm_page_info.dstColorSpaceSpefication = deviceRGB; in _start_job()
201 job_info->pclm_page_info.dstColorSpaceSpefication = deviceRGB; in _start_job()
204 job_info->pclm_page_info.dstColorSpaceSpefication = adobeRGB; in _start_job()
208 job_info->pclm_page_info.stripHeight = job_info->strip_height; in _start_job()
209 job_info->pclm_page_info.destinationResolution = res600; in _start_job()
211 job_info->pclm_page_info.destinationResolution = res300; in _start_job()
213 job_info->pclm_page_info.destinationResolution = res600; in _start_job()
215 job_info->pclm_page_info.destinationResolution = res1200; in _start_job()
219 job_info->pclm_page_info.duplexDisposition = duplex_longEdge; in _start_job()
223 job_info->pclm_page_info.duplexDisposition = duplex_shortEdge; in _start_job()
227 job_info->pclm_page_info.duplexDisposition = simplex; in _start_job()
232 job_info->pclm_page_info.mirrorBackside = false; in _start_job()
235 ras_out = cupsRasterOpenIO(_pwg_io_write, (void *) job_info, CUPS_RASTER_WRITE_PWG); in _start_job()
236 return job_info->job_handle; in _start_job()
239 static int _start_page(pcl_job_info_t *job_info, int pixel_width, int pixel_height) { in _start_page() argument
240 PCLmPageSetup *page_info = &job_info->pclm_page_info; in _start_page()
241 _START_PAGE(job_info, pixel_width, pixel_height); in _start_page()
243 page_info->sourceHeight = (float) pixel_height / job_info->standard_scale; in _start_page()
244 page_info->sourceWidth = (float) pixel_width / job_info->standard_scale; in _start_page()
248 if (job_info->num_components == 3) { in _start_page()
263 job_info->scan_line_width = BYTES_PER_PIXEL(pixel_width); in _start_page()
266 _write_header_pwg(pixel_width, pixel_height, &header_pwg, job_info->monochrome); in _start_page()
279 job_info->page_number++; in _start_page()
280 return job_info->page_number; in _start_page()
283 static int _print_swath(pcl_job_info_t *job_info, char *rgb_pixels, int start_row, int num_rows, in _print_swath() argument
286 _PAGE_DATA(job_info, (const unsigned char *) rgb_pixels, (num_rows * bytes_per_row)); in _print_swath()
288 if (job_info->monochrome) { in _print_swath()
303 job_info->page_number, job_info->strip_height * job_info->scan_line_width, in _print_swath()
370 static int _end_page(pcl_job_info_t *job_info, int page_number) { in _end_page() argument
376 _start_page(job_info, job_info->pixel_width, job_info->pixel_height); in _end_page()
377 buffer = _generate_blank_data(job_info->pixel_width, job_info->pixel_height, in _end_page()
378 job_info->monochrome, &buffer_size); in _end_page()
382 _pwg_io_write(job_info, buffer, buffer_size); in _end_page()
387 _END_PAGE(job_info); in _end_page()
392 static int _end_job(pcl_job_info_t *job_info) { in _end_job() argument
394 _END_JOB(job_info); in _end_job()