Lines Matching refs:transformations
109 png_ptr->transformations |= PNG_COMPOSE | PNG_STRIP_ALPHA; in png_set_background_fixed()
110 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_set_background_fixed()
118 png_ptr->transformations |= PNG_BACKGROUND_EXPAND; in png_set_background_fixed()
120 png_ptr->transformations &= ~PNG_BACKGROUND_EXPAND; in png_set_background_fixed()
148 png_ptr->transformations |= PNG_SCALE_16_TO_8; in png_set_scale_16()
162 png_ptr->transformations |= PNG_16_TO_8; in png_set_strip_16()
175 png_ptr->transformations |= PNG_STRIP_ALPHA; in png_set_strip_alpha()
290 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_set_alpha_mode_fixed()
296 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_set_alpha_mode_fixed()
304 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_set_alpha_mode_fixed()
311 png_ptr->transformations |= PNG_ENCODE_ALPHA; in png_set_alpha_mode_fixed()
338 png_ptr->transformations &= ~PNG_BACKGROUND_EXPAND; in png_set_alpha_mode_fixed()
340 if (png_ptr->transformations & PNG_COMPOSE) in png_set_alpha_mode_fixed()
344 png_ptr->transformations |= PNG_COMPOSE; in png_set_alpha_mode_fixed()
390 png_ptr->transformations |= PNG_QUANTIZE; in png_set_quantize()
830 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_expand()
861 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_palette_to_rgb()
874 png_ptr->transformations |= PNG_EXPAND; in png_set_expand_gray_1_2_4_to_8()
886 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_tRNS_to_alpha()
903 png_ptr->transformations |= (PNG_EXPAND_16 | PNG_EXPAND | PNG_EXPAND_tRNS); in png_set_expand_16()
921 png_ptr->transformations |= PNG_GRAY_TO_RGB; in png_set_gray_to_rgb()
940 png_ptr->transformations |= PNG_RGB_TO_GRAY; in png_set_rgb_to_gray_fixed()
944 png_ptr->transformations |= PNG_RGB_TO_GRAY_WARN; in png_set_rgb_to_gray_fixed()
948 png_ptr->transformations |= PNG_RGB_TO_GRAY_ERR; in png_set_rgb_to_gray_fixed()
957 png_ptr->transformations |= PNG_EXPAND; in png_set_rgb_to_gray_fixed()
963 png_ptr->transformations &= ~PNG_RGB_TO_GRAY; in png_set_rgb_to_gray_fixed()
1039 png_ptr->transformations |= PNG_USER_TRANSFORM; in png_set_read_user_transform_fn()
1111 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_init_palette_transformations()
1115 png_ptr->transformations &= ~(PNG_COMPOSE | PNG_BACKGROUND_EXPAND); in png_init_palette_transformations()
1127 if ((png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_palette_transformations()
1128 (png_ptr->transformations & PNG_EXPAND)) in png_init_palette_transformations()
1139 if (png_ptr->transformations & PNG_INVERT_ALPHA) in png_init_palette_transformations()
1141 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_palette_transformations()
1177 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_init_rgb_transformations()
1182 png_ptr->transformations &= ~(PNG_COMPOSE | PNG_BACKGROUND_EXPAND); in png_init_rgb_transformations()
1194 if ((png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_rgb_transformations()
1195 (png_ptr->transformations & PNG_EXPAND) && in png_init_rgb_transformations()
1234 if (!(png_ptr->transformations & PNG_EXPAND_tRNS)) in png_init_rgb_transformations()
1308 png_ptr->transformations |= PNG_GAMMA; in png_init_read_transformations()
1311 png_ptr->transformations &= ~PNG_GAMMA; in png_init_read_transformations()
1345 if ((png_ptr->transformations & PNG_STRIP_ALPHA) && in png_init_read_transformations()
1346 !(png_ptr->transformations & PNG_COMPOSE)) in png_init_read_transformations()
1353 png_ptr->transformations &= ~(PNG_BACKGROUND_EXPAND | PNG_ENCODE_ALPHA | in png_init_read_transformations()
1374 png_ptr->transformations &= ~PNG_ENCODE_ALPHA; in png_init_read_transformations()
1397 if (png_ptr->transformations & PNG_BACKGROUND_EXPAND) in png_init_read_transformations()
1406 else if (png_ptr->transformations & PNG_COMPOSE) in png_init_read_transformations()
1413 if (png_ptr->transformations & PNG_GRAY_TO_RGB) in png_init_read_transformations()
1444 if ((png_ptr->transformations & PNG_EXPAND_16) && in png_init_read_transformations()
1445 (png_ptr->transformations & PNG_COMPOSE) && in png_init_read_transformations()
1446 !(png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_read_transformations()
1471 if ((png_ptr->transformations & (PNG_16_TO_8|PNG_SCALE_16_TO_8)) && in png_init_read_transformations()
1472 (png_ptr->transformations & PNG_COMPOSE) && in png_init_read_transformations()
1473 !(png_ptr->transformations & PNG_BACKGROUND_EXPAND) && in png_init_read_transformations()
1517 if ((png_ptr->transformations & PNG_GAMMA) in png_init_read_transformations()
1518 || ((png_ptr->transformations & PNG_RGB_TO_GRAY) in png_init_read_transformations()
1521 || ((png_ptr->transformations & PNG_COMPOSE) in png_init_read_transformations()
1528 )) || ((png_ptr->transformations & PNG_ENCODE_ALPHA) in png_init_read_transformations()
1535 if (png_ptr->transformations & PNG_COMPOSE) in png_init_read_transformations()
1543 if (png_ptr->transformations & PNG_RGB_TO_GRAY) in png_init_read_transformations()
1670 png_ptr->transformations &= ~(PNG_COMPOSE | PNG_GAMMA); in png_init_read_transformations()
1764 && ((png_ptr->transformations & PNG_EXPAND) == 0 || in png_init_read_transformations()
1765 (png_ptr->transformations & PNG_RGB_TO_GRAY) == 0) in png_init_read_transformations()
1784 png_ptr->transformations &= ~PNG_GAMMA; in png_init_read_transformations()
1794 if ((png_ptr->transformations & PNG_COMPOSE) && in png_init_read_transformations()
1827 png_ptr->transformations &= ~PNG_COMPOSE; in png_init_read_transformations()
1832 if ((png_ptr->transformations & PNG_SHIFT) && in png_init_read_transformations()
1833 !(png_ptr->transformations & PNG_EXPAND) && in png_init_read_transformations()
1840 png_ptr->transformations &= ~PNG_SHIFT; in png_init_read_transformations()
1885 if (png_ptr->transformations & PNG_EXPAND) in png_read_transform_info()
1906 if (png_ptr->transformations & PNG_EXPAND_tRNS) in png_read_transform_info()
1922 if (png_ptr->transformations & PNG_COMPOSE) in png_read_transform_info()
1939 if (png_ptr->transformations & PNG_SCALE_16_TO_8) in png_read_transform_info()
1944 if (png_ptr->transformations & PNG_16_TO_8) in png_read_transform_info()
1958 png_ptr->transformations |= PNG_16_TO_8; in png_read_transform_info()
1963 png_ptr->transformations |= PNG_SCALE_16_TO_8; in png_read_transform_info()
1974 if (png_ptr->transformations & PNG_GRAY_TO_RGB) in png_read_transform_info()
1980 if (png_ptr->transformations & PNG_RGB_TO_GRAY) in png_read_transform_info()
1986 if (png_ptr->transformations & PNG_QUANTIZE) in png_read_transform_info()
1998 if (png_ptr->transformations & PNG_EXPAND_16 && info_ptr->bit_depth == 8 && in png_read_transform_info()
2006 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) in png_read_transform_info()
2020 if (png_ptr->transformations & PNG_STRIP_ALPHA) in png_read_transform_info()
2033 if ((png_ptr->transformations & PNG_FILLER) && in png_read_transform_info()
2039 if (png_ptr->transformations & PNG_ADD_ALPHA) in png_read_transform_info()
2046 if (png_ptr->transformations & PNG_USER_TRANSFORM) in png_read_transform_info()
2109 if (png_ptr->transformations & PNG_EXPAND) in png_do_read_transformations()
2120 (png_ptr->transformations & PNG_EXPAND_tRNS)) in png_do_read_transformations()
2132 if ((png_ptr->transformations & PNG_STRIP_ALPHA) && in png_do_read_transformations()
2133 !(png_ptr->transformations & PNG_COMPOSE) && in png_do_read_transformations()
2141 if (png_ptr->transformations & PNG_RGB_TO_GRAY) in png_do_read_transformations()
2150 if ((png_ptr->transformations & PNG_RGB_TO_GRAY) == in png_do_read_transformations()
2154 if ((png_ptr->transformations & PNG_RGB_TO_GRAY) == in png_do_read_transformations()
2196 if ((png_ptr->transformations & PNG_GRAY_TO_RGB) && in png_do_read_transformations()
2203 if (png_ptr->transformations & PNG_COMPOSE) in png_do_read_transformations()
2208 if ((png_ptr->transformations & PNG_GAMMA) && in png_do_read_transformations()
2211 !(png_ptr->transformations & PNG_RGB_TO_GRAY) && in png_do_read_transformations()
2218 !((png_ptr->transformations & PNG_COMPOSE) && in png_do_read_transformations()
2230 if ((png_ptr->transformations & PNG_STRIP_ALPHA) && in png_do_read_transformations()
2231 (png_ptr->transformations & PNG_COMPOSE) && in png_do_read_transformations()
2239 if ((png_ptr->transformations & PNG_ENCODE_ALPHA) && in png_do_read_transformations()
2245 if (png_ptr->transformations & PNG_SCALE_16_TO_8) in png_do_read_transformations()
2254 if (png_ptr->transformations & PNG_16_TO_8) in png_do_read_transformations()
2259 if (png_ptr->transformations & PNG_QUANTIZE) in png_do_read_transformations()
2275 if (png_ptr->transformations & PNG_EXPAND_16) in png_do_read_transformations()
2281 if ((png_ptr->transformations & PNG_GRAY_TO_RGB) && in png_do_read_transformations()
2287 if (png_ptr->transformations & PNG_INVERT_MONO) in png_do_read_transformations()
2292 if (png_ptr->transformations & PNG_SHIFT) in png_do_read_transformations()
2298 if (png_ptr->transformations & PNG_PACK) in png_do_read_transformations()
2310 if (png_ptr->transformations & PNG_BGR) in png_do_read_transformations()
2315 if (png_ptr->transformations & PNG_PACKSWAP) in png_do_read_transformations()
2320 if (png_ptr->transformations & PNG_FILLER) in png_do_read_transformations()
2326 if (png_ptr->transformations & PNG_INVERT_ALPHA) in png_do_read_transformations()
2331 if (png_ptr->transformations & PNG_SWAP_ALPHA) in png_do_read_transformations()
2337 if (png_ptr->transformations & PNG_SWAP_BYTES) in png_do_read_transformations()
2343 if (png_ptr->transformations & PNG_USER_TRANSFORM) in png_do_read_transformations()