Home
last modified time | relevance | path

Searched refs:cupsBytesPerLine (Results 1 – 13 of 13) sorted by relevance

/external/libcups/cups/
Dtestraster.c92 data = malloc(header.cupsBytesPerLine); in do_ras_file()
100 if (cupsRasterReadPixels(ras, data, header.cupsBytesPerLine) < in do_ras_file()
101 header.cupsBytesPerLine) in do_ras_file()
168 header.cupsBytesPerLine = 256; in do_raster_tests()
180 header.cupsBytesPerLine *= 4; in do_raster_tests()
194 header.cupsBytesPerLine *= 2; in do_raster_tests()
219 memset(data, 0, header.cupsBytesPerLine); in do_raster_tests()
221 if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) in do_raster_tests()
231 for (x = 0; x < header.cupsBytesPerLine; x ++) in do_raster_tests()
235 if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) in do_raster_tests()
[all …]
Drasterbench.c190 cupsRasterReadPixels(r, buffer, header.cupsBytesPerLine); in read_test()
303 header.cupsBytesPerLine = TEST_WIDTH; in write_test()
307 header.cupsBytesPerLine *= 4; in write_test()
319 header.cupsBytesPerLine *= 2; in write_test()
332 cupsRasterWritePixels(r, data[y & 31], header.cupsBytesPerLine); in write_test()
Draster-stream.c360 h->cupsBytesPerLine = (h->cupsWidth * h->cupsBitsPerPixel + 7) / 8; in _cupsRasterInitPWGHeader()
690 r->header.cupsBytesPerLine = r->header.cupsWidth * r->header.cupsBitsPerPixel / 8; in _cupsRasterReadHeader()
731 DEBUG_printf(("4_cupsRasterReadHeader: cupsBytesPerLine=%u", r->header.cupsBytesPerLine)); in _cupsRasterReadHeader()
736 … && r->header.cupsBytesPerLine > 0 && r->header.cupsBytesPerLine <= 0x7fffffff && r->header.cupsHe… in _cupsRasterReadHeader()
755 unsigned cupsBytesPerLine; /* cupsBytesPerLine value */ in _cupsRasterReadPixels() local
766 r->header.cupsBytesPerLine == 0) in _cupsRasterReadPixels()
780 r->remaining -= len / r->header.cupsBytesPerLine; in _cupsRasterReadPixels()
812 cupsBytesPerLine = r->header.cupsBytesPerLine; in _cupsRasterReadPixels()
822 if (remaining == cupsBytesPerLine) in _cupsRasterReadPixels()
843 bytes = (ssize_t)cupsBytesPerLine; in _cupsRasterReadPixels()
[all …]
Dtestclient.c508 if ((line = malloc(header.cupsBytesPerLine)) == NULL) in make_raster_file()
510 …printf("Unable to allocate %u bytes for raster output: %s\n", header.cupsBytesPerLine, strerror(er… in make_raster_file()
535 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
538 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
556 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
598 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
601 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
604 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
Draster.h280 unsigned cupsBytesPerLine; /* Number of bytes per line */ member
329 unsigned cupsBytesPerLine; /* Number of bytes per line */ member
Dtestppd.c1705 if (header->cupsBytesPerLine != expected->cupsBytesPerLine) in print_changes()
1706 printf(" cupsBytesPerLine %d, expected %d\n", header->cupsBytesPerLine, in print_changes()
1707 expected->cupsBytesPerLine); in print_changes()
Draster-interpret.c490 h->cupsBytesPerLine = (h->cupsBitsPerPixel * h->cupsWidth + 7) / 8; in _cupsRasterInterpretPPD()
493 h->cupsBytesPerLine *= h->cupsNumColors; in _cupsRasterInterpretPPD()
/external/libcups/filter/
Drastertolabel.c176 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
191 printf("\033D%c", header->cupsBytesPerLine); in StartPage()
283 header->cupsHeight * header->cupsBytesPerLine, in StartPage()
284 header->cupsBytesPerLine); in StartPage()
290 CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); in StartPage()
291 LastBuffer = malloc(header->cupsBytesPerLine); in StartPage()
417 CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); in StartPage()
418 LastBuffer = malloc(header->cupsBytesPerLine); in StartPage()
427 Buffer = malloc(header->cupsBytesPerLine); in StartPage()
761 memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine - 1)) in OutputLine()
[all …]
Drastertopwg.c109 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", inheader.cupsBytesPerLine); in main()
194 outheader.cupsBytesPerLine = linesize; in main()
430 if (linesize < inheader.cupsBytesPerLine) in main()
431 linesize = inheader.cupsBytesPerLine; in main()
433 if ((lineoffset + inheader.cupsBytesPerLine) > linesize) in main()
434 lineoffset = linesize - inheader.cupsBytesPerLine; in main()
440 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
450 …sRasterReadPixels(inras, line + lineoffset, inheader.cupsBytesPerLine) != inheader.cupsBytesPerLin… in main()
458 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
469 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
Drastertohp.c99 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
325 if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) in StartPage()
332 Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; in StartPage()
340 CompBuffer = malloc(header->cupsBytesPerLine * 2 + 2); in StartPage()
597 for (count = header->cupsBytesPerLine / NumPlanes, in OutputLine()
784 if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) in main()
792 memcmp(Planes[0], Planes[0] + 1, header.cupsBytesPerLine - 1)) in main()
Drastertoepson.c134 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
283 if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) in StartPage()
290 Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; in StartPage()
748 bytes = header->cupsBytesPerLine / NumPlanes; in OutputLine()
1117 if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) in main()
/external/libcups/tools/
Dippevepcl.c243 pcl_comp = malloc(2 * header->cupsBytesPerLine + 2); in pcl_start_page()
319 if (line[0] == pcl_white && !memcmp(line, line + 1, header->cupsBytesPerLine - 1)) in pcl_write_line()
510 line = malloc(header.cupsBytesPerLine); in raster_to_pcl()
515 if (cupsRasterReadPixels(ras, line, header.cupsBytesPerLine)) in raster_to_pcl()
Dippeveps.c1077 line = malloc(header.cupsBytesPerLine); in raster_to_ps()
1110 if (cupsRasterReadPixels(ras, line, header.cupsBytesPerLine)) in raster_to_ps()
1112 if (line[0] != white || memcmp(line, line + 1, header.cupsBytesPerLine - 1)) in raster_to_ps()
1115 ascii85(line, (int)header.cupsBytesPerLine, 1); in raster_to_ps()