Home
last modified time | relevance | path

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

/external/libcups/filter/
Dtestraster.c479 data = malloc(header.cupsBytesPerLine); in do_ras_file()
487 if (cupsRasterReadPixels(ras, data, header.cupsBytesPerLine) < in do_ras_file()
488 header.cupsBytesPerLine) in do_ras_file()
555 header.cupsBytesPerLine = 256; in do_raster_tests()
565 header.cupsBytesPerLine *= 4; in do_raster_tests()
579 header.cupsBytesPerLine *= 2; in do_raster_tests()
600 memset(data, 0, header.cupsBytesPerLine); in do_raster_tests()
602 if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) in do_raster_tests()
612 for (x = 0; x < header.cupsBytesPerLine; x ++) in do_raster_tests()
616 if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) in do_raster_tests()
[all …]
Drastertolabel.c181 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
196 printf("\033D%c", header->cupsBytesPerLine); in StartPage()
287 header->cupsHeight * header->cupsBytesPerLine, in StartPage()
288 header->cupsBytesPerLine); in StartPage()
294 CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); in StartPage()
295 LastBuffer = malloc(header->cupsBytesPerLine); in StartPage()
421 CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); in StartPage()
422 LastBuffer = malloc(header->cupsBytesPerLine); in StartPage()
431 Buffer = malloc(header->cupsBytesPerLine); in StartPage()
758 memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine - 1)) in OutputLine()
[all …]
Drastertopwg.c114 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", inheader.cupsBytesPerLine); in main()
199 outheader.cupsBytesPerLine = linesize; in main()
435 if (linesize < inheader.cupsBytesPerLine) in main()
436 linesize = inheader.cupsBytesPerLine; in main()
438 if ((lineoffset + inheader.cupsBytesPerLine) > linesize) in main()
439 lineoffset = linesize - inheader.cupsBytesPerLine; in main()
445 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
455 …sRasterReadPixels(inras, line + lineoffset, inheader.cupsBytesPerLine) != inheader.cupsBytesPerLin… in main()
463 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
474 if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) in main()
Draster.c359 h->cupsBytesPerLine = (h->cupsWidth * h->cupsBitsPerPixel + 7) / 8; in cupsRasterInitPWGHeader()
645 DEBUG_printf(("1cupsRasterReadHeader: cupsBytesPerLine=%u", h->cupsBytesPerLine)); in cupsRasterReadHeader()
688 DEBUG_printf(("1cupsRasterReadHeader2: cupsBytesPerLine=%u", h->cupsBytesPerLine)); in cupsRasterReadHeader2()
711 unsigned cupsBytesPerLine; /* cupsBytesPerLine value */ in cupsRasterReadPixels() local
722 r->header.cupsBytesPerLine == 0) in cupsRasterReadPixels()
736 r->remaining -= len / r->header.cupsBytesPerLine; in cupsRasterReadPixels()
768 cupsBytesPerLine = r->header.cupsBytesPerLine; in cupsRasterReadPixels()
778 if (remaining == cupsBytesPerLine) in cupsRasterReadPixels()
799 bytes = (ssize_t)cupsBytesPerLine; in cupsRasterReadPixels()
900 cups_swap(ptr, (size_t)cupsBytesPerLine); in cupsRasterReadPixels()
[all …]
Drasterbench.c196 cupsRasterReadPixels(r, buffer, header.cupsBytesPerLine); in read_test()
309 header.cupsBytesPerLine = TEST_WIDTH; in write_test()
313 header.cupsBytesPerLine *= 4; in write_test()
325 header.cupsBytesPerLine *= 2; in write_test()
338 cupsRasterWritePixels(r, data[y & 31], header.cupsBytesPerLine); in write_test()
Drastertohp.c105 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
331 if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) in StartPage()
338 Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; in StartPage()
346 CompBuffer = malloc(header->cupsBytesPerLine * 2 + 2); in StartPage()
603 for (count = header->cupsBytesPerLine / NumPlanes, in OutputLine()
790 if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) in main()
798 memcmp(Planes[0], Planes[0] + 1, header.cupsBytesPerLine - 1)) in main()
Dtestclient.c617 if ((line = malloc(header.cupsBytesPerLine)) == NULL) in make_raster_file()
619 …printf("Unable to allocate %u bytes for raster output: %s\n", header.cupsBytesPerLine, strerror(er… in make_raster_file()
642 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
645 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
663 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
705 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
708 memset(line, 0xff, header.cupsBytesPerLine); in make_raster_file()
711 cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); in make_raster_file()
Drastertoepson.c139 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); in StartPage()
288 if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) in StartPage()
295 Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; in StartPage()
753 bytes = header->cupsBytesPerLine / NumPlanes; in OutputLine()
1122 if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) in main()
Dinterpret.c494 h->cupsBytesPerLine = (h->cupsBitsPerPixel * h->cupsWidth + 7) / 8; in cupsRasterInterpretPPD()
497 h->cupsBytesPerLine *= h->cupsNumColors; in cupsRasterInterpretPPD()
/external/libcups/cups/
Draster.h285 unsigned cupsBytesPerLine; /* Number of bytes per line */ member
334 unsigned cupsBytesPerLine; /* Number of bytes per line */ member