Home | History | Annotate | Download | only in libtests

Lines Matching refs:transforms

13  * transforms.
42 * meaningful data. This is because these transforms when performed on read
45 * Most of these transforms are invertible; after applying the transform on
67 * The condition refers to the original image state - if multiple transforms are
259 is_combo(int transforms)
261 return transforms & (transforms-1); /* non-zero if more than one set bit */
265 first_transform(int transforms)
267 return transforms & -transforms; /* lowest set bit */
271 is_bad_combo(int transforms)
279 if ((combo & transforms) == combo &&
280 (transforms & known_bad_combos[i][1]) == 0)
307 * transforms. Need (unsigned int) here because of the places where these
327 /* Reversible transforms are those which are supported on both read and
502 int transforms; /* Transform used in operation */
526 int active_transforms; /* transforms that do something on read */
527 int ignored_transforms; /* transforms that should do nothing */
657 if (dp->transforms != 0)
659 int tr = dp->transforms;
782 int transforms)
787 /* This cleans out any previous read and sets operation and transforms to
795 dp->transforms = transforms;
819 png_read_png(pp, ip, transforms, NULL/*params*/);
828 fprintf(stderr, "%.4x %2d (%3lu bytes):", transforms, png_get_bit_depth(pp,ip), (unsigned long)rb);
871 /* 'active' transforms are discovered based on the original image format;
899 /* Some transforms appear multiple times in the table; the 'active' status
906 dp->ignored_transforms = inactive; /* excluding write-only transforms */
965 /* The rows should be the same too, unless the applied transforms includes
1235 write_png(struct display *dp, png_infop ip, int transforms)
1241 dp->transforms = transforms;
1257 /* Certain transforms require the png_info to be zapped to allow the
1260 if (transforms & (PNG_TRANSFORM_PACKING|
1266 if (transforms & (PNG_TRANSFORM_STRIP_FILLER|
1274 png_write_png(dp->write_pp, ip, transforms, NULL/*params*/);
1294 printf("SKIP: %s transforms ", dp->filename);
1326 dp->transforms = 0;
1335 read_png(dp, &dp->original_file, "ignored transforms",
1339 if (!compare_read(dp, 0/*transforms applied*/))
1349 write_png(dp, dp->original_ip, 0/*transforms*/);
1350 read_png(dp, &dp->written_file, NULL, 0/*transforms*/);
1351 if (!compare_read(dp, 0/*transforms applied*/))
1361 * unsigned, because some transforms are negative on a 16-bit system.
1367 unsigned int bad_combo = ~0U; /* bitwise AND of failing transforms */
1372 read_png(dp, &dp->original_file, "active transforms", current);
1376 * with the same transforms we should get the same thing. At present
1381 * out and read it back in again (without the reversible transforms)
1387 /* All transforms reversible: write the PNG with the transformations
1392 dp->operation = "reversible transforms";
1401 /* This set of transforms failed. If a single bit is set - if
1430 * combos involving known bad single transforms in all cases.
1456 * bad_combo_list identifies transforms that do not prevent the
1492 /* For each file on the command line test it with a range of transforms */