Searched refs:key_defined (Results 1 – 2 of 2) sorted by relevance
2526 info->key_defined = 0; in lodepng_color_mode_init()2558 if(a->key_defined != b->key_defined) return 0; in lodepng_color_mode_equal()2559 if(a->key_defined) in lodepng_color_mode_equal()2639 return info->key_defined in lodepng_can_have_alpha()3111 if(mode->key_defined && *r == mode->key_r) *a = 0; in getPixelColorRGBA8()3117 if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; in getPixelColorRGBA8()3126 if(mode->key_defined && value == mode->key_r) *a = 0; in getPixelColorRGBA8()3135 if(mode->key_defined && *r == mode->key_r && *g == mode->key_g && *b == mode->key_b) *a = 0; in getPixelColorRGBA8()3143 if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r in getPixelColorRGBA8()3227 if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255; in getPixelColorsRGBA8()[all …]
345 unsigned key_defined; /*is a transparent color key given? 0 = false, 1 = true*/ member