Home
last modified time | relevance | path

Searched refs:ppd (Results 1 – 25 of 57) sorted by relevance

123

/third_party/cups-filters/filter/
Drastertopclx.c89 void StartPage(ppd_file_t *ppd, cups_page_header2_t *header, int job_id,
92 void EndPage(ppd_file_t *ppd, cups_page_header2_t *header);
93 void Shutdown(ppd_file_t *ppd, int job_id, const char *user,
99 void OutputLine(ppd_file_t *ppd, cups_page_header2_t *header);
108 StartPage(ppd_file_t *ppd, /* I - PPD file */ in StartPage() argument
191 if (ppd && ppdIsMarked(ppd, "Duplex", "DuplexNoTumble")) in StartPage()
196 else if (ppd && ppdIsMarked(ppd, "Duplex", "DuplexTumble")) in StartPage()
291 (!ppd || (ppd->model_number & PCL_RASTER_RGB24))) in StartPage()
309 (ppd && (ppd->model_number & PCL_RASTER_RGB24)) && in StartPage()
354 if (ppd && !cm_disabled) in StartPage()
[all …]
Dbannertopdf.c64 static void get_pagesize(ppd_file_t *ppd, in get_pagesize() argument
89 if (!ppd || !(pagesize = ppdPageSize(ppd, NULL))) in get_pagesize()
109 if (!ppd) { in get_pagesize()
150 static int duplex_marked(ppd_file_t *ppd, in duplex_marked() argument
156 (ppd && in duplex_marked()
157 (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") || in duplex_marked()
158 ppdIsMarked(ppd, "Duplex", "DuplexTumble") || in duplex_marked()
159 ppdIsMarked(ppd, "JCLDuplex", "DuplexNoTumble") || in duplex_marked()
160 ppdIsMarked(ppd, "JCLDuplex", "DuplexTumble") || in duplex_marked()
161 ppdIsMarked(ppd, "EFDuplex", "DuplexNoTumble") || in duplex_marked()
[all …]
Drastertoescpx.c113 Setup(ppd_file_t *ppd) /* I - PPD file */ in Setup() argument
120 if (ppd->model_number & ESCP_USB) in Setup()
130 StartPage(ppd_file_t *ppd, /* I - PPD file */ in StartPage() argument
245 RGB = cupsRGBLoad(ppd, colormodel, header->MediaType, resolution); in StartPage()
249 CMYK = cupsCMYKLoad(ppd, colormodel, header->MediaType, resolution); in StartPage()
273 DitherLuts[0] = cupsLutLoad(ppd, colormodel, header->MediaType, in StartPage()
278 DitherLuts[0] = cupsLutLoad(ppd, colormodel, header->MediaType, in StartPage()
280 DitherLuts[1] = cupsLutLoad(ppd, colormodel, header->MediaType, in StartPage()
285 DitherLuts[0] = cupsLutLoad(ppd, colormodel, header->MediaType, in StartPage()
287 DitherLuts[1] = cupsLutLoad(ppd, colormodel, header->MediaType, in StartPage()
[all …]
Dimagetopdf.c139 static ppd_file_t *ppd; /* PPD file */ variable
156 if (ppd == 0) return; in emitJCLOptions()
157 if ((attr = ppdFindAttr(ppd,"pdftopdfJCLBegin",NULL)) != NULL) { in emitJCLOptions()
171 if (ppdFindOption(ppd,"Copies") != NULL) { in emitJCLOptions()
172 ppdMarkOption(ppd,"Copies",buf); in emitJCLOptions()
174 if ((attr = ppdFindAttr(ppd,"pdftopdfJCLCopies",buf)) != NULL) { in emitJCLOptions()
186 n = ppdCollect(ppd,(ppd_section_t)section,&choices); in emitJCLOptions()
190 if ((attr = ppdFindAttr(ppd,buf,choices[i]->choice)) != NULL) { in emitJCLOptions()
767 ppd = SetCommonOptions(num_options, options, 0); in main()
768 if (!ppd) { in main()
[all …]
Dcommon.c58 ppd_file_t *ppd; /* PPD file */ in SetCommonOptions() local
67 ppd = ppdOpenFile(getenv("PPD")); in SetCommonOptions()
69 ppdMarkDefaults(ppd); in SetCommonOptions()
70 cupsMarkOptions(ppd, num_options, options); in SetCommonOptions()
72 if ((pagesize = ppdPageSize(ppd, NULL)) != NULL) in SetCommonOptions()
191 if (ppd != NULL) in SetCommonOptions()
193 ColorDevice = ppd->color_device; in SetCommonOptions()
194 LanguageLevel = ppd->language_level; in SetCommonOptions()
202 if (ppd && ppd->landscape > 0) in SetCommonOptions()
303 if (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") || in SetCommonOptions()
[all …]
Dmupdftoraster.c251 ppd_file_t *ppd = NULL; in main() local
273 if ((ppd = ppdOpenFile(t)) == NULL) { in main()
277 if (ppd) { in main()
278 ppdMarkDefaults (ppd); in main()
279 cupsMarkOptions (ppd, num_options, options); in main()
333 cmGetPrinterIccProfile(getenv("PRINTER"), &icc_profile, ppd); in main()
360 if (ppd) { in main()
361 cupsRasterInterpretPPD(&h, ppd, num_options, options, 0); in main()
378 if (ppd && (attr = ppdFindAttr(ppd, "DefaultResolution", 0)) != NULL) { in main()
430 if (ppd) in main()
[all …]
Dtexttotext.c87 ppd_file_t *ppd; /* PPD file */ in main() local
260 ppd = ppdOpenFile(getenv("PPD")); in main()
261 if (ppd) in main()
263 ppdMarkDefaults(ppd); in main()
264 cupsMarkOptions(ppd, num_options, options); in main()
276 (ppd_attr = ppdFindAttr(ppd, "DefaultPageSize", NULL)) != NULL || in main()
277 (ppd_attr = ppdFindAttr(ppd, "DefaultPageRegion", NULL)) != NULL) { in main()
283 (ppd_attr = ppdFindAttr(ppd, buffer, NULL)) != NULL) { in main()
292 (ppd_attr = ppdFindAttr(ppd, buffer, NULL)) != NULL) { in main()
334 (ppd_attr = ppdFindAttr(ppd, "Defaultpage-left", NULL)) != NULL) { in main()
[all …]
Dgstoraster.c510 get_ppd_icc_fallback (ppd_file_t *ppd, char **qualifier)
521 attr = ppdFindAttr(ppd, profile_key, NULL);
524 attr = ppdFindAttr(ppd, profile_key, NULL);
544 for (;attr != NULL; attr = ppdFindNextAttr(ppd, profile_key, NULL)) {
641 ppd_file_t *ppd = NULL; in main() local
685 if ((ppd = ppdOpenFile(t)) == NULL) { in main()
689 if (ppd) { in main()
690 ppdMarkDefaults (ppd); in main()
691 cupsMarkOptions (ppd, num_options, options); in main()
785 cmGetPrinterIccProfile(getenv("PRINTER"), &icc_profile, ppd); in main()
[all …]
Dcommandtopclx.c42 ppd_file_t *ppd; /* PPD file */ in main() local
65 if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL) in main()
126 (ppd->model_number & PCL_INKJET)) in main()
160 ppdClose(ppd); in main()
Dpdftoraster.cxx111 ppd_file_t *ppd = 0; variable
304 if ((size = ppdPageSize(ppd,NULL)) == NULL) return; in handleRqeuiresPageRegion()
305 mf = ppdFindMarkedChoice(ppd,"ManualFeed"); in handleRqeuiresPageRegion()
306 if ((is = ppdFindMarkedChoice(ppd,"InputSlot")) != NULL) { in handleRqeuiresPageRegion()
307 rregions = ppdFindAttr(ppd,"RequiresPageRegion",is->choice); in handleRqeuiresPageRegion()
310 rregions = ppdFindAttr(ppd,"RequiresPageRegion","All"); in handleRqeuiresPageRegion()
315 (!rregions && ppd->num_filters > 0)) { in handleRqeuiresPageRegion()
316 ppdMarkOption(ppd,"PageSize",size->name); in handleRqeuiresPageRegion()
319 ppdMarkOption(ppd,"PageRegion",size->name); in handleRqeuiresPageRegion()
323 if ((page = ppdFindMarkedChoice(ppd,"PageSize")) != NULL) { in handleRqeuiresPageRegion()
[all …]
Dpdftops.c310 ppd_file_t *ppd; /* PPD file */ in main() local
442 ppd = ppdOpenFile(getenv("PPD")); in main()
443 if (ppd) in main()
445 ppdMarkDefaults(ppd); in main()
446 cupsMarkOptions(ppd, num_options, options); in main()
457 else if (ppd) in main()
459 snprintf(make_model, sizeof(make_model), "%s %s", ppd->manufacturer, in main()
460 ppd->product + 1); in main()
587 if (ppd && ppd->color_device == 0) /* Monochrome printer */ in main()
687 if (ppd) in main()
[all …]
Dcommandtoescpx.c42 ppd_file_t *ppd; /* PPD file */ in main() local
65 if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL) in main()
91 if (ppd->model_number & ESCP_USB) in main()
233 ppdClose(ppd); in main()
Drastertops.c373 ppd_file_t *ppd; /* PPD file */ in main() local
398 ppd = ppdOpenFile(getenv("PPD")); in main()
400 if (ppd) in main()
402 ppdMarkDefaults(ppd); in main()
403 cupsMarkOptions(ppd, num_options, options); in main()
/third_party/cups-filters/filter/pdftopdf/
Dpdftopdf_jcl.cc9 static void emitJCLOptions(FILE *fp, ppd_file_t *ppd, int deviceCopies) // {{{ in emitJCLOptions() argument
19 if (!ppd) return; in emitJCLOptions()
21 if ((attr = ppdFindAttr(ppd,"pdftopdfJCLBegin",NULL)) != NULL) { in emitJCLOptions()
35 if (ppdFindOption(ppd,"Copies") != NULL) { in emitJCLOptions()
36 ppdMarkOption(ppd,"Copies",buf); in emitJCLOptions()
38 if ((attr = ppdFindAttr(ppd,"pdftopdfJCLCopies",buf)) != NULL) { in emitJCLOptions()
48 int n = ppdCollect(ppd,(ppd_section_t)section,&choices); in emitJCLOptions()
52 if ((attr = ppdFindAttr(ppd,buf,choices[i]->choice)) != NULL) { in emitJCLOptions()
120 void emitPreamble(ppd_file_t *ppd,const ProcessingParameters &param) // {{{ in emitPreamble() argument
122 if (ppd == 0) return; in emitPreamble()
[all …]
Dpdftopdf.cc44 void setFinalPPD(ppd_file_t *ppd,const ProcessingParameters &param) in setFinalPPD() argument
46 if ((param.booklet==BOOKLET_ON)&&(ppdFindOption(ppd,"Duplex"))) { in setFinalPPD()
48 ppdMarkOption(ppd,"Duplex","DuplexTumble"); in setFinalPPD()
53 if ((param.setDuplex)&&(ppdFindOption(ppd,"Duplex")!=NULL)) { in setFinalPPD()
54 ppdMarkOption(ppd,"Duplex","True"); in setFinalPPD()
55 ppdMarkOption(ppd,"Duplex","On"); in setFinalPPD()
60 if ((choice=ppdFindMarkedChoice(ppd,"MirrorPrint")) != NULL) { in setFinalPPD()
66 static bool ppdGetInt(ppd_file_t *ppd,const char *name,int *ret) // {{{ in ppdGetInt() argument
69 ppd_choice_t *choice=ppdFindMarkedChoice(ppd,name); // !ppd is ok. in ppdGetInt()
124 static bool ppdGetDuplex(ppd_file_t *ppd) // {{{ in ppdGetDuplex() argument
[all …]
Dpdftopdf_jcl.h7 void emitPreamble(ppd_file_t *ppd,const ProcessingParameters &param);
8 void emitPostamble(ppd_file_t *ppd,const ProcessingParameters &param);
/third_party/cups-filters/cupsfilters/
Dcolormanager.c42 ppd_file_t *ppd);
43 static char *_get_ppd_icc_fallback (ppd_file_t *ppd,
90 ppd_file_t *ppd) /* Optional PPD file for fallback profile */ in cmGetPrinterIccProfile() argument
97 profile_set = _get_colord_profile(printer_name, icc_profile, ppd); in cmGetPrinterIccProfile()
227 ppd_file_t *ppd) /* PPD file */ in _get_colord_profile() argument
242 qualifier = colord_get_qualifier_for_ppd(ppd); in _get_colord_profile()
253 else if (ppd) { in _get_colord_profile()
255 icc_profile = _get_ppd_icc_fallback(ppd, qualifier); in _get_colord_profile()
289 _get_ppd_icc_fallback (ppd_file_t *ppd, char **qualifier) in _get_ppd_icc_fallback() argument
299 attr = ppdFindAttr(ppd, profile_key, NULL); in _get_ppd_icc_fallback()
[all …]
Dattr.c34 cupsFindAttr(ppd_file_t *ppd, /* I - PPD file */ in cupsFindAttr() argument
49 if (!ppd || !name || !colormodel || !media || !resolution || !spec || in cupsFindAttr()
67 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
72 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
77 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
82 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
87 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
92 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
97 if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) in cupsFindAttr()
Dcmyk.c1024 cupsCMYKLoad(ppd_file_t *ppd, /* I - PPD file */ in cupsCMYKLoad() argument
1048 if (ppd == NULL || colormodel == NULL || resolution == NULL || media == NULL) in cupsCMYKLoad()
1088 if ((attr = cupsFindAttr(ppd, "cupsInkChannels", colormodel, media, in cupsCMYKLoad()
1104 if ((attr = cupsFindAttr(ppd, "cupsInkLimit", colormodel, media, in cupsCMYKLoad()
1112 if ((attr = cupsFindAttr(ppd, "cupsBlackGeneration", colormodel, media, in cupsCMYKLoad()
1125 if ((attr = cupsFindAttr(ppd, "cupsBlackXY", colormodel, media, in cupsCMYKLoad()
1130 attr = ppdFindNextAttr(ppd, "cupsBlackXY", spec)) in cupsCMYKLoad()
1152 else if ((attr = cupsFindAttr(ppd, "cupsBlackGamma", colormodel, in cupsCMYKLoad()
1172 else if ((attr = cupsFindAttr(ppd, "cupsAllXY", colormodel, media, in cupsCMYKLoad()
1177 attr = ppdFindNextAttr(ppd, "cupsAllXY", spec)) in cupsCMYKLoad()
[all …]
Dcolord.c47 colord_get_qualifier_for_ppd (ppd_file_t *ppd) in colord_get_qualifier_for_ppd() argument
60 if ((attr = ppdFindAttr (ppd, "cupsICCQualifier1", NULL)) != NULL && in colord_get_qualifier_for_ppd()
64 q1_attr = ppdFindAttr (ppd, q_keyword, NULL); in colord_get_qualifier_for_ppd()
66 else if ((q1_attr = ppdFindAttr (ppd, "DefaultColorModel", NULL)) == NULL) in colord_get_qualifier_for_ppd()
67 q1_attr = ppdFindAttr (ppd, "DefaultColorSpace", NULL); in colord_get_qualifier_for_ppd()
75 if ((attr = ppdFindAttr(ppd, "cupsICCQualifier2", NULL)) != NULL && in colord_get_qualifier_for_ppd()
79 q2_attr = ppdFindAttr(ppd, q_keyword, NULL); in colord_get_qualifier_for_ppd()
82 q2_attr = ppdFindAttr(ppd, "DefaultMediaType", NULL); in colord_get_qualifier_for_ppd()
90 if ((attr = ppdFindAttr(ppd, "cupsICCQualifier3", NULL)) != NULL && in colord_get_qualifier_for_ppd()
94 q3_attr = ppdFindAttr(ppd, q_keyword, NULL); in colord_get_qualifier_for_ppd()
[all …]
Dlut.c44 cupsLutLoad(ppd_file_t *ppd, /* I - PPD file */ in cupsLutLoad() argument
61 if (!ppd || !colormodel || !media || !resolution || !ink) in cupsLutLoad()
70 if ((attr = cupsFindAttr(ppd, name, colormodel, media, resolution, spec, in cupsLutLoad()
72 attr = cupsFindAttr(ppd, "cupsAllDither", colormodel, media, in cupsLutLoad()
Ddriver.h127 extern ppd_attr_t *cupsFindAttr(ppd_file_t *ppd, const char *name,
157 extern cups_lut_t *cupsLutLoad(ppd_file_t *ppd,
191 extern cups_rgb_t *cupsRGBLoad(ppd_file_t *ppd,
216 extern cups_cmyk_t *cupsCMYKLoad(ppd_file_t *ppd,
/third_party/cups/
Dohos-multi-file-print.patch1 diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
3 --- a/cups/ppd-cache.c
4 +++ b/cups/ppd-cache.c
5 @@ -1746,7 +1746,8 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */
7 if ((ppd_attr = ppdFindAttr(ppd, "cupsSingleFile", NULL)) != NULL)
DBUILD.gn61 "$core_code_dir/ppd-attr.c",
62 "$core_code_dir/ppd-cache.c",
63 "$core_code_dir/ppd-conflicts.c",
64 "$core_code_dir/ppd-custom.c",
65 "$core_code_dir/ppd-emit.c",
66 "$core_code_dir/ppd-localize.c",
67 "$core_code_dir/ppd-mark.c",
68 "$core_code_dir/ppd-page.c",
69 "$core_code_dir/ppd-util.c",
70 "$core_code_dir/ppd.c",
/third_party/cups-filters/drv/
Dindexv3.drv63 PCFileName "ibasicd3.ppd"
86 PCFileName "ibasics3.ppd"
99 PCFileName "i4waves3.ppd"
120 PCFileName "ieveres3.ppd"
138 PCFileName "i4x4pro3.ppd"

123