• Home
  • Raw
  • Download

Lines Matching refs:pwgmedia

38   const pwg_media_t	*pwgmedia;	/* PWG media size */  in main()  local
145 if ((pwgmedia = pwgMediaForPWG("iso_a4_210x297mm")) == NULL) in main()
150 else if (strcmp(pwgmedia->pwg, "iso_a4_210x297mm")) in main()
152 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
155 else if (pwgmedia->width != 21000 || pwgmedia->length != 29700) in main()
157 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
164 if ((pwgmedia = pwgMediaForPWG("roll_max_36.1025x3622.0472in")) == NULL) in main()
169 else if (pwgmedia->width != 91700 || pwgmedia->length != 9199999) in main()
171 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
175 printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
178 if ((pwgmedia = pwgMediaForPWG("disc_test_10x100mm")) == NULL) in main()
183 else if (pwgmedia->width != 10000 || pwgmedia->length != 10000) in main()
185 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
189 printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
192 if ((pwgmedia = pwgMediaForLegacy("na-letter")) == NULL) in main()
197 else if (strcmp(pwgmedia->pwg, "na_letter_8.5x11in")) in main()
199 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
202 else if (pwgmedia->width != 21590 || pwgmedia->length != 27940) in main()
204 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
211 if ((pwgmedia = pwgMediaForPPD("4x6")) == NULL) in main()
216 else if (strcmp(pwgmedia->pwg, "na_index-4x6_4x6in")) in main()
218 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
221 else if (pwgmedia->width != 10160 || pwgmedia->length != 15240) in main()
223 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
230 if ((pwgmedia = pwgMediaForPPD("10x15cm")) == NULL) in main()
235 else if (strcmp(pwgmedia->pwg, "om_100x150mm_100x150mm")) in main()
237 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
240 else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) in main()
242 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
249 if ((pwgmedia = pwgMediaForPPD("Custom.10x15cm")) == NULL) in main()
254 else if (strcmp(pwgmedia->pwg, "custom_10x15cm_100x150mm")) in main()
256 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
259 else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) in main()
261 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
268 if ((pwgmedia = pwgMediaForSize(29700, 42000)) == NULL) in main()
273 else if (strcmp(pwgmedia->pwg, "iso_a3_297x420mm")) in main()
275 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
282 if ((pwgmedia = pwgMediaForSize(9842, 19050)) == NULL) in main()
287 else if (strcmp(pwgmedia->pwg, "na_monarch_3.875x7.5in")) in main()
289 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
293 printf("PASS (%s)\n", pwgmedia->pwg); in main()
296 if ((pwgmedia = pwgMediaForSize(9800, 19000)) == NULL) in main()
301 else if (strcmp(pwgmedia->pwg, "jpn_you6_98x190mm")) in main()
303 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
307 printf("PASS (%s)\n", pwgmedia->pwg); in main()
314 for (i = num_media - 1, pwgmedia = mediatable + 1; i > 0; i --, pwgmedia ++) in main()
316 if (pwgmedia->width == mediatable->width && in main()
317 pwgmedia->length == mediatable->length) in main()
327 pwgmedia->pwg, mediatable->pwg, pwgmedia->width, in main()
328 pwgmedia->length); in main()