Home
last modified time | relevance | path

Searched refs:HWResolution (Results 1 – 16 of 16) sorted by relevance

/external/libcups/filter/
Drastertohp.c86 …intf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]… in StartPage()
201 (!ppd || ppd->model_number != 2 || header->HWResolution[0] == 600)) in StartPage()
235 printf("\033&u%dD", header->HWResolution[0]); in StartPage()
249 putchar((int)(header->HWResolution[0] >> 8));/* Black resolution */ in StartPage()
250 putchar((int)header->HWResolution[0]); in StartPage()
251 putchar((int)(header->HWResolution[1] >> 8)); in StartPage()
252 putchar((int)header->HWResolution[1]); in StartPage()
256 putchar((int)(header->HWResolution[0] >> 8));/* Cyan resolution */ in StartPage()
257 putchar((int)header->HWResolution[0]); in StartPage()
258 putchar((int)(header->HWResolution[1] >> 8)); in StartPage()
[all …]
Drastertoepson.c121 …intf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]… in StartPage()
158 if (header->HWResolution[0] == 360 || header->HWResolution[0] == 240) in StartPage()
181 DotColumns = header->HWResolution[0] / 60; in StartPage()
187 switch (header->HWResolution[0]) in StartPage()
199 if (header->HWResolution[1] == 180) in StartPage()
221 putchar((int)(3600 / header->HWResolution[1])); in StartPage()
226 putchar((int)(1440 / header->HWResolution[1])); in StartPage()
227 putchar((int)(1440 / header->HWResolution[1])); in StartPage()
228 putchar((int)(1440 / header->HWResolution[0])); in StartPage()
233 n = (int)(header->PageSize[1] * header->HWResolution[1] / 72.0); in StartPage()
[all …]
Drastertopwg.c96 …tf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", inheader.HWResolution[0], inheader.HWResolution[1]… in main()
122 page_width = (unsigned)(inheader.cupsPageSize[0] * inheader.HWResolution[0] / 72.0); in main()
123 page_height = (unsigned)(inheader.cupsPageSize[1] * inheader.HWResolution[1] / 72.0); in main()
124 page_left = (unsigned)(inheader.cupsImagingBBox[0] * inheader.HWResolution[0] / 72.0); in main()
125 page_bottom = (unsigned)(inheader.cupsImagingBBox[1] * inheader.HWResolution[1] / 72.0); in main()
Drastertolabel.c163 …intf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]… in StartPage()
188 length = header->PageSize[1] * header->HWResolution[1] / 72; in StartPage()
300 printf("! 0 %u %u %u %u\r\n", header->HWResolution[0], in StartPage()
301 header->HWResolution[1], header->cupsHeight, in StartPage()
400 printf("\033*t%uR", header->HWResolution[0]); in StartPage()
Dspec-ppd.shtml661 <td><tt>HWResolution</tt></td>
664 <td><tt>&lt;&lt;/HWResolution[1200 1200]&gt;&gt;setpagedevice</tt></td>
/external/libcups/tools/
Dippevepcl.c128 pcl_top = header->HWResolution[1] / 6; in pcl_start_page()
129 pcl_bottom = header->cupsHeight - header->HWResolution[1] / 6 - 1; in pcl_start_page()
134 pcl_left = (header->cupsWidth - 8 * header->HWResolution[0]) / 2; in pcl_start_page()
135 pcl_right = pcl_left + 8 * header->HWResolution[0] - 1; in pcl_start_page()
140 pcl_left = header->HWResolution[0] / 4; in pcl_start_page()
141 pcl_right = header->cupsWidth - header->HWResolution[0] / 4 - 1; in pcl_start_page()
208 printf("\033&l%uE\033&l0L", 12 * pcl_top / header->HWResolution[1]); in pcl_start_page()
224 printf("\033*t%uR", header->HWResolution[0]); in pcl_start_page()
230 printf("\033&a0H\033&a%uV", 720 * pcl_top / header->HWResolution[1]); in pcl_start_page()
Dippeveps.c1082 printf("%.6f %.6f scale\n", 72.0f / header.HWResolution[0], 72.0f / header.HWResolution[1]); in raster_to_ps()
/external/libcups/cups/
Dtestraster.c96 header.HWResolution[0], header.HWResolution[1]); in do_ras_file()
169 header.HWResolution[0] = 64; in do_raster_tests()
170 header.HWResolution[1] = 64; in do_raster_tests()
307 expected.HWResolution[0] = 64; in do_raster_tests()
308 expected.HWResolution[1] = 64; in do_raster_tests()
573 if (header->HWResolution[0] != expected->HWResolution[0] || in print_changes()
574 header->HWResolution[1] != expected->HWResolution[1]) in print_changes()
576 header->HWResolution[0], header->HWResolution[1], in print_changes()
577 expected->HWResolution[0], expected->HWResolution[1]); in print_changes()
Draster-stream.c234 h->HWResolution[0] = (unsigned)xdpi; in _cupsRasterInitPWGHeader()
235 h->HWResolution[1] = (unsigned)ydpi; in _cupsRasterInitPWGHeader()
692 …r->header.HWResolution[0] = r->header.HWResolution[1] = ((((((unsigned)appleheader[20] << 8) | (u… in _cupsRasterReadHeader()
694 if (r->header.HWResolution[0] > 0) in _cupsRasterReadHeader()
696 r->header.PageSize[0] = (unsigned)(r->header.cupsWidth * 72 / r->header.HWResolution[0]); in _cupsRasterReadHeader()
697 r->header.PageSize[1] = (unsigned)(r->header.cupsHeight * 72 / r->header.HWResolution[1]); in _cupsRasterReadHeader()
698 r->header.cupsPageSize[0] = (float)(r->header.cupsWidth * 72.0 / r->header.HWResolution[0]); in _cupsRasterReadHeader()
699 r->header.cupsPageSize[1] = (float)(r->header.cupsHeight * 72.0 / r->header.HWResolution[1]); in _cupsRasterReadHeader()
1030 r->rowheight = r->header.HWResolution[0] / r->header.HWResolution[1]; in _cupsRasterWriteHeader()
1032 if (r->header.HWResolution[0] != (r->rowheight * r->header.HWResolution[1])) in _cupsRasterWriteHeader()
[all …]
Dtestclient.c489 if (header.cupsWidth > (4 * header.HWResolution[0])) in make_raster_file()
491 xoff = header.HWResolution[0] / 2; in make_raster_file()
492 yoff = header.HWResolution[1] / 2; in make_raster_file()
501 yrep = xrep * header.HWResolution[1] / header.HWResolution[0]; in make_raster_file()
Draster.h255 unsigned HWResolution[2]; /* Resolution in dots-per-inch */ member
304 unsigned HWResolution[2]; /* Resolution in dots-per-inch */ member
Draster-interpret.c165 h->HWResolution[0] = 100; in _cupsRasterInterpretPPD()
166 h->HWResolution[1] = 100; in _cupsRasterInterpretPPD()
375 if (!h->HWResolution[0] || !h->HWResolution[1] || in _cupsRasterInterpretPPD()
392 h->HWResolution[0] / 72.0f + 0.5f); in _cupsRasterInterpretPPD()
394 h->HWResolution[1] / 72.0f + 0.5f); in _cupsRasterInterpretPPD()
1478 h->HWResolution[0] = (unsigned)obj[1].value.number; in setpagedevice()
1479 h->HWResolution[1] = (unsigned)obj[2].value.number; in setpagedevice()
Dtestppd.c1599 if (header->HWResolution[0] != expected->HWResolution[0] || in print_changes()
1600 header->HWResolution[1] != expected->HWResolution[1]) in print_changes()
1602 header->HWResolution[0], header->HWResolution[1], in print_changes()
1603 expected->HWResolution[0], expected->HWResolution[1]); in print_changes()
/external/libcups/test/
Dtesthp.ppd132 *Resolution 150dpi/150 DPI: "<</HWResolution[150 150]>>setpagedevice"
133 *Resolution 300dpi/300 DPI: "<</HWResolution[300 300]>>setpagedevice"
134 *Resolution 600dpi/600 DPI: "<</HWResolution[600 600]>>setpagedevice"
Dtestps.ppd128 *Resolution 75dpi/75 DPI: "<</HWResolution[75 75]>>setpagedevice"
129 *Resolution 100dpi/100 DPI: "<</HWResolution[100 100]>>setpagedevice"
/external/libcups/ppdc/
Dfoo.drv429 Choice "600dpi/600 DPI" "<</HWResolution[600 600]/cupsBitsPerColor 8>>setpagedevice"
430 Choice "1200dpi/1200 DPI" "<</HWResolution[1200 1200]/cupsBitsPerColor 8>>setpagedevice"