Lines Matching refs:pwgmedia
44 const pwg_media_t *pwgmedia; /* PWG media size */ in main() local
151 if ((pwgmedia = pwgMediaForPWG("iso_a4_210x297mm")) == NULL) in main()
156 else if (strcmp(pwgmedia->pwg, "iso_a4_210x297mm")) in main()
158 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
161 else if (pwgmedia->width != 21000 || pwgmedia->length != 29700) in main()
163 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
170 if ((pwgmedia = pwgMediaForPWG("roll_max_36.1025x3622.0472in")) == NULL) in main()
175 else if (pwgmedia->width != 91700 || pwgmedia->length != 9199999) in main()
177 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
181 printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
184 if ((pwgmedia = pwgMediaForPWG("disc_test_10x100mm")) == NULL) in main()
189 else if (pwgmedia->width != 10000 || pwgmedia->length != 10000) in main()
191 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
195 printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
198 if ((pwgmedia = pwgMediaForLegacy("na-letter")) == NULL) in main()
203 else if (strcmp(pwgmedia->pwg, "na_letter_8.5x11in")) in main()
205 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
208 else if (pwgmedia->width != 21590 || pwgmedia->length != 27940) in main()
210 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
217 if ((pwgmedia = pwgMediaForPPD("4x6")) == NULL) in main()
222 else if (strcmp(pwgmedia->pwg, "na_index-4x6_4x6in")) in main()
224 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
227 else if (pwgmedia->width != 10160 || pwgmedia->length != 15240) in main()
229 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
236 if ((pwgmedia = pwgMediaForPPD("10x15cm")) == NULL) in main()
241 else if (strcmp(pwgmedia->pwg, "om_100x150mm_100x150mm")) in main()
243 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
246 else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) in main()
248 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
255 if ((pwgmedia = pwgMediaForPPD("Custom.10x15cm")) == NULL) in main()
260 else if (strcmp(pwgmedia->pwg, "custom_10x15cm_100x150mm")) in main()
262 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
265 else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) in main()
267 printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); in main()
274 if ((pwgmedia = pwgMediaForSize(29700, 42000)) == NULL) in main()
279 else if (strcmp(pwgmedia->pwg, "iso_a3_297x420mm")) in main()
281 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
288 if ((pwgmedia = pwgMediaForSize(9842, 19050)) == NULL) in main()
293 else if (strcmp(pwgmedia->pwg, "na_monarch_3.875x7.5in")) in main()
295 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
299 printf("PASS (%s)\n", pwgmedia->pwg); in main()
302 if ((pwgmedia = pwgMediaForSize(9800, 19000)) == NULL) in main()
307 else if (strcmp(pwgmedia->pwg, "jpn_you6_98x190mm")) in main()
309 printf("FAIL (%s)\n", pwgmedia->pwg); in main()
313 printf("PASS (%s)\n", pwgmedia->pwg); in main()
320 for (i = num_media - 1, pwgmedia = mediatable + 1; i > 0; i --, pwgmedia ++) in main()
322 if (pwgmedia->width == mediatable->width && in main()
323 pwgmedia->length == mediatable->length) in main()
333 pwgmedia->pwg, mediatable->pwg, pwgmedia->width, in main()
334 pwgmedia->length); in main()