• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cups-372.4/cups/filter/

Lines Matching refs:header

63 void	StartPage(ppd_file_t *ppd, cups_page_header2_t *header);
69 void OutputLine(cups_page_header2_t *header);
94 cups_page_header2_t *header) /* I - Page header */
104 fprintf(stderr, "DEBUG: MediaClass = \"%s\"\n", header->MediaClass);
105 fprintf(stderr, "DEBUG: MediaColor = \"%s\"\n", header->MediaColor);
106 fprintf(stderr, "DEBUG: MediaType = \"%s\"\n", header->MediaType);
107 fprintf(stderr, "DEBUG: OutputType = \"%s\"\n", header->OutputType);
109 fprintf(stderr, "DEBUG: AdvanceDistance = %d\n", header->AdvanceDistance);
110 fprintf(stderr, "DEBUG: AdvanceMedia = %d\n", header->AdvanceMedia);
111 fprintf(stderr, "DEBUG: Collate = %d\n", header->Collate);
112 fprintf(stderr, "DEBUG: CutMedia = %d\n", header->CutMedia);
113 fprintf(stderr, "DEBUG: Duplex = %d\n", header->Duplex);
114 fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0],
115 header->HWResolution[1]);
117 header->ImagingBoundingBox[0], header->ImagingBoundingBox[1],
118 header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]);
119 fprintf(stderr, "DEBUG: InsertSheet = %d\n", header->InsertSheet);
120 fprintf(stderr, "DEBUG: Jog = %d\n", header->Jog);
121 fprintf(stderr, "DEBUG: LeadingEdge = %d\n", header->LeadingEdge);
122 fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0],
123 header->Margins[1]);
124 fprintf(stderr, "DEBUG: ManualFeed = %d\n", header->ManualFeed);
125 fprintf(stderr, "DEBUG: MediaPosition = %d\n", header->MediaPosition);
126 fprintf(stderr, "DEBUG: MediaWeight = %d\n", header->MediaWeight);
127 fprintf(stderr, "DEBUG: MirrorPrint = %d\n", header->MirrorPrint);
128 fprintf(stderr, "DEBUG: NegativePrint = %d\n", header->NegativePrint);
129 fprintf(stderr, "DEBUG: NumCopies = %d\n", header->NumCopies);
130 fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation);
131 fprintf(stderr, "DEBUG: OutputFaceUp = %d\n", header->OutputFaceUp);
132 fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0],
133 header->PageSize[1]);
134 fprintf(stderr, "DEBUG: Separations = %d\n", header->Separations);
135 fprintf(stderr, "DEBUG: TraySwitch = %d\n", header->TraySwitch);
136 fprintf(stderr, "DEBUG: Tumble = %d\n", header->Tumble);
137 fprintf(stderr, "DEBUG: cupsWidth = %d\n", header->cupsWidth);
138 fprintf(stderr, "DEBUG: cupsHeight = %d\n", header->cupsHeight);
139 fprintf(stderr, "DEBUG: cupsMediaType = %d\n", header->cupsMediaType);
140 fprintf(stderr, "DEBUG: cupsBitsPerColor = %d\n", header->cupsBitsPerColor);
141 fprintf(stderr, "DEBUG: cupsBitsPerPixel = %d\n", header->cupsBitsPerPixel);
142 fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine);
143 fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", header->cupsColorOrder);
144 fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", header->cupsColorSpace);
145 fprintf(stderr, "DEBUG: cupsCompression = %d\n", header->cupsCompression);
151 Duplex = header->Duplex;
152 ColorBits = header->cupsBitsPerColor;
154 if ((!Duplex || (Page & 1)) && header->MediaPosition)
156 header->MediaPosition);
179 switch (header->PageSize[1])
231 header->PageSize[1] / 12);
241 printf("\033&l%dX", header->NumCopies); /* Set number copies */
243 if (header->cupsMediaType &&
244 (!ppd || ppd->model_number != 2 || header->HWResolution[0] == 600))
246 header->cupsMediaType);
250 int mode = Duplex ? 1 + header->Tumble != 0 : 0;
269 if (header->cupsColorSpace == CUPS_CSPACE_KCMY)
278 printf("\033&u%dD", header->HWResolution[0]);
292 putchar(header->HWResolution[0] >> 8); /* Black resolution */
293 putchar(header->HWResolution[0]);
294 putchar(header->HWResolution[1] >> 8);
295 putchar(header->HWResolution[1]);
299 putchar(header->HWResolution[0] >> 8); /* Cyan resolution */
300 putchar(header->HWResolution[0]);
301 putchar(header->HWResolution[1] >> 8);
302 putchar(header->HWResolution[1]);
306 putchar(header->HWResolution[0] >> 8); /* Magenta resolution */
307 putchar(header->HWResolution[0]);
308 putchar(header->HWResolution[1] >> 8);
309 putchar(header->HWResolution[1]);
313 putchar(header->HWResolution[0] >> 8); /* Yellow resolution */
314 putchar(header->HWResolution[0]);
315 putchar(header->HWResolution[1] >> 8);
316 putchar(header->HWResolution[1]);
324 printf("\033*t%dR", header->HWResolution[0]);
327 if (header->cupsColorSpace == CUPS_CSPACE_KCMY)
332 else if (header->cupsColorSpace == CUPS_CSPACE_CMY)
344 printf("\033*r%dS", header->cupsWidth); /* Set width */
345 printf("\033*r%dT", header->cupsHeight); /* Set height */
358 if (header->cupsCompression)
360 header->cupsCompression);
368 if ((Planes[0] = malloc(header->cupsBytesPerLine)) == NULL)
375 Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes;
378 BitBuffer = malloc(ColorBits * ((header->cupsWidth + 7) / 8));
382 if (header->cupsCompression)
383 CompBuffer = malloc(header->cupsBytesPerLine * 2);
596 OutputLine(cups_page_header2_t *header) /* I - Page header */
622 bytes = (header->cupsWidth + 7) / 8;
632 header->cupsCompression);
640 for (count = header->cupsBytesPerLine / NumPlanes,
666 CompressData(BitBuffer, bytes, 'V', header->cupsCompression);
668 header->cupsCompression);
685 cups_page_header2_t header; /* Page header from file */
781 while (cupsRasterReadHeader2(ras, &header))
792 fprintf(stderr, "PAGE: %d %d\n", Page, header.NumCopies);
799 StartPage(ppd, &header);
805 for (y = 0; y < header.cupsHeight; y ++)
818 Page, 100 * y / header.cupsHeight);
820 100 * y / header.cupsHeight);
827 if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1)
835 memcmp(Planes[0], Planes[0] + 1, header.cupsBytesPerLine - 1))
836 OutputLine(&header);