Searched refs:pwg_media (Results 1 – 5 of 5) sorted by relevance
764 size = &(cg->pwg_media); in pwgMediaForPPD()877 size = &(cg->pwg_media); in pwgMediaForPWG()988 cg->pwg_media.pwg = cg->pwg_name; in _pwgMediaNearSize()989 cg->pwg_media.width = width; in _pwgMediaNearSize()990 cg->pwg_media.length = length; in _pwgMediaNearSize()996 cg->pwg_media.ppd = cg->ppd_name; in _pwgMediaNearSize()998 return (&(cg->pwg_media)); in _pwgMediaNearSize()
145 pwg_media_t pwg_media; /* PWG media data for custom size */ member
1004 pwg_media_t *pwg_media; /* PWG media data */ in _ppdCacheCreateWithPPD() local1078 …if ((pwg_media = pwgMediaForSize(PWG_FROM_POINTS(ppd_size->width), PWG_FROM_POINTS(ppd_size->lengt… in _ppdCacheCreateWithPPD()1085 if (!strcmp(pc->sizes[j].map.pwg, pwg_media->pwg)) in _ppdCacheCreateWithPPD()1087 pwg_media = NULL; in _ppdCacheCreateWithPPD()1092 if (pwg_media) in _ppdCacheCreateWithPPD()1098 pwg_name = pwg_media->pwg; in _ppdCacheCreateWithPPD()1124 if ((pwg_media = _pwgMediaNearSize(PWG_FROM_POINTS(ppd_size->width), in _ppdCacheCreateWithPPD()1129 new_width = pwg_media->width; in _ppdCacheCreateWithPPD()1130 new_length = pwg_media->length; in _ppdCacheCreateWithPPD()
51 pwg_media_t *pwg_media; /* PWG media name */ in main() local270 pwg_media = pwgMediaForSize((int)(2540.0 * inheader.cupsPageSize[0] / 72.0), in main()273 if (pwg_media) in main()274 strlcpy(outheader.cupsPageSizeName, pwg_media->pwg, in main()
3124 pwg_media_t *pwg_media; /* PWG media */ in check_sizes() local3259 pwg_media = pwgMediaForSize(width_2540ths, length_2540ths); in check_sizes()3261 if (pwg_media && in check_sizes()3262 (abs(pwg_media->width - width_2540ths) > 34 || in check_sizes()3263 abs(pwg_media->length - length_2540ths) > 34)) in check_sizes()3264 pwg_media = NULL; /* Only flag matches within a point */ in check_sizes()3266 if (pwg_media && pwg_media->ppd && in check_sizes()3267 (pwg_media->ppd[0] < 'a' || pwg_media->ppd[0] > 'z')) in check_sizes()3269 size_t ppdlen = strlen(pwg_media->ppd); in check_sizes()3272 strlcpy(buf, pwg_media->ppd, sizeof(buf)); in check_sizes()[all …]