Lines Matching refs:transformations
110 png_ptr->transformations |= PNG_BACKGROUND; in png_set_background()
115 png_ptr->transformations |= (need_expand ? PNG_BACKGROUND_EXPAND : 0); in png_set_background()
128 png_ptr->transformations |= PNG_16_TO_8; in png_set_strip_16()
172 png_ptr->transformations |= PNG_DITHER; in png_set_dither()
562 png_ptr->transformations |= PNG_GAMMA; in png_set_gamma()
581 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_expand()
612 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_palette_to_rgb()
626 png_ptr->transformations |= PNG_EXPAND; in png_set_expand_gray_1_2_4_to_8()
642 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_gray_1_2_4_to_8()
653 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_tRNS_to_alpha()
664 png_ptr->transformations |= PNG_GRAY_TO_RGB; in png_set_gray_to_rgb()
709 case 1: png_ptr->transformations |= PNG_RGB_TO_GRAY; in png_set_rgb_to_gray_fixed()
712 case 2: png_ptr->transformations |= PNG_RGB_TO_GRAY_WARN; in png_set_rgb_to_gray_fixed()
715 case 3: png_ptr->transformations |= PNG_RGB_TO_GRAY_ERR; in png_set_rgb_to_gray_fixed()
719 png_ptr->transformations |= PNG_EXPAND; in png_set_rgb_to_gray_fixed()
724 png_ptr->transformations &= ~PNG_RGB_TO_GRAY; in png_set_rgb_to_gray_fixed()
766 png_ptr->transformations |= PNG_USER_TRANSFORM; in png_set_read_user_transform_fn()
808 if ((png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_read_transformations()
812 } else if ((png_ptr->transformations & PNG_BACKGROUND) && in png_init_read_transformations()
813 !(png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_read_transformations()
814 (png_ptr->transformations & PNG_GRAY_TO_RGB) && in png_init_read_transformations()
823 if ((png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_read_transformations()
824 (png_ptr->transformations & PNG_EXPAND)) in png_init_read_transformations()
835 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_read_transformations()
847 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_read_transformations()
859 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_read_transformations()
885 if (png_ptr->transformations & PNG_INVERT_ALPHA) in png_init_read_transformations()
888 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_read_transformations()
923 png_ptr->transformations &= ~PNG_GAMMA; in png_init_read_transformations()
926 if ((png_ptr->transformations & (PNG_GAMMA | PNG_RGB_TO_GRAY)) && in png_init_read_transformations()
932 if (png_ptr->transformations & PNG_BACKGROUND) in png_init_read_transformations()
1038 png_ptr->transformations &= ~PNG_BACKGROUND; in png_init_read_transformations()
1039 png_ptr->transformations &= ~PNG_GAMMA; in png_init_read_transformations()
1040 png_ptr->transformations |= PNG_STRIP_ALPHA; in png_init_read_transformations()
1119 png_ptr->transformations &= ~PNG_GAMMA; in png_init_read_transformations()
1128 if ((png_ptr->transformations & PNG_BACKGROUND) && in png_init_read_transformations()
1159 png_ptr->transformations &= ~PNG_BACKGROUND; in png_init_read_transformations()
1160 png_ptr->transformations |= PNG_STRIP_ALPHA; in png_init_read_transformations()
1165 if ((png_ptr->transformations & PNG_SHIFT) && in png_init_read_transformations()
1206 if (png_ptr->transformations & PNG_EXPAND) in png_read_transform_info()
1221 if (png_ptr->transformations & PNG_EXPAND_tRNS) in png_read_transform_info()
1232 if (png_ptr->transformations & PNG_BACKGROUND) in png_read_transform_info()
1241 if (png_ptr->transformations & PNG_GAMMA) in png_read_transform_info()
1253 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16)) in png_read_transform_info()
1258 if (png_ptr->transformations & PNG_GRAY_TO_RGB) in png_read_transform_info()
1263 if (png_ptr->transformations & PNG_RGB_TO_GRAY) in png_read_transform_info()
1268 if (png_ptr->transformations & PNG_DITHER) in png_read_transform_info()
1280 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) in png_read_transform_info()
1301 if ((png_ptr->transformations & PNG_FILLER) && in png_read_transform_info()
1308 if (png_ptr->transformations & PNG_ADD_ALPHA) in png_read_transform_info()
1316 if (png_ptr->transformations & PNG_USER_TRANSFORM) in png_read_transform_info()
1372 if (png_ptr->transformations & PNG_EXPAND) in png_do_read_transformations()
1382 (png_ptr->transformations & PNG_EXPAND_tRNS)) in png_do_read_transformations()
1399 if (png_ptr->transformations & PNG_RGB_TO_GRAY) in png_do_read_transformations()
1407 if ((png_ptr->transformations & PNG_RGB_TO_GRAY) == in png_do_read_transformations()
1410 if ((png_ptr->transformations & PNG_RGB_TO_GRAY) == in png_do_read_transformations()
1452 if ((png_ptr->transformations & PNG_GRAY_TO_RGB) && in png_do_read_transformations()
1458 if ((png_ptr->transformations & PNG_BACKGROUND) && in png_do_read_transformations()
1474 if ((png_ptr->transformations & PNG_GAMMA) && in png_do_read_transformations()
1476 !((png_ptr->transformations & PNG_BACKGROUND) && in png_do_read_transformations()
1487 if (png_ptr->transformations & PNG_16_TO_8) in png_do_read_transformations()
1492 if (png_ptr->transformations & PNG_DITHER) in png_do_read_transformations()
1502 if (png_ptr->transformations & PNG_INVERT_MONO) in png_do_read_transformations()
1507 if (png_ptr->transformations & PNG_SHIFT) in png_do_read_transformations()
1513 if (png_ptr->transformations & PNG_PACK) in png_do_read_transformations()
1518 if (png_ptr->transformations & PNG_BGR) in png_do_read_transformations()
1523 if (png_ptr->transformations & PNG_PACKSWAP) in png_do_read_transformations()
1529 if ((png_ptr->transformations & PNG_GRAY_TO_RGB) && in png_do_read_transformations()
1535 if (png_ptr->transformations & PNG_FILLER) in png_do_read_transformations()
1541 if (png_ptr->transformations & PNG_INVERT_ALPHA) in png_do_read_transformations()
1546 if (png_ptr->transformations & PNG_SWAP_ALPHA) in png_do_read_transformations()
1551 if (png_ptr->transformations & PNG_SWAP_BYTES) in png_do_read_transformations()
1556 if (png_ptr->transformations & PNG_USER_TRANSFORM) in png_do_read_transformations()
2629 if (png_ptr->transformations & (PNG_GAMMA | PNG_BACKGROUND)) in png_correct_palette()
2738 if (png_ptr->transformations & PNG_GAMMA) in png_correct_palette()
2754 if (png_ptr->transformations & PNG_BACKGROUND) in png_correct_palette()
4209 if (png_ptr->transformations & ((PNG_BACKGROUND) | PNG_RGB_TO_GRAY)) in png_build_gamma_table()
4270 if (png_ptr->transformations & PNG_16_TO_8) in png_build_gamma_table()
4294 if (png_ptr->transformations & (PNG_16_TO_8 | PNG_BACKGROUND)) in png_build_gamma_table()
4347 if (png_ptr->transformations & (PNG_BACKGROUND | PNG_RGB_TO_GRAY)) in png_build_gamma_table()