Lines Matching refs:key_b
2527 info->key_r = info->key_g = info->key_b = 0; in lodepng_color_mode_init()
2563 if(a->key_b != b->key_b) return 0; in lodepng_color_mode_equal()
3135 if(mode->key_defined && *r == mode->key_r && *g == mode->key_g && *b == mode->key_b) *a = 0; in getPixelColorRGBA8()
3145 && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; in getPixelColorRGBA8()
3260 && buffer[1]== mode->key_g && buffer[2] == mode->key_b ? 0 : 255; in getPixelColorsRGBA8()
3273 && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b ? 0 : 255; in getPixelColorsRGBA8()
3368 && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b) *a = 0; in getPixelColorRGBA16()
3474 unsigned short key_b; member
3593 …els > 16 && !(profile->key && (r != profile->key_r || g != profile->key_g || b != profile->key_b))) in get_color_profile()
3600 profile->key_b = b; in get_color_profile()
3613 && r == profile->key_r && g == profile->key_g && b == profile->key_b) in get_color_profile()
3673 …f(a == 0 && !(profile->key && (r != profile->key_r || g != profile->key_g || b != profile->key_b))) in get_color_profile()
3680 profile->key_b = b; in get_color_profile()
3693 && r == profile->key_r && g == profile->key_g && b == profile->key_b) in get_color_profile()
3740 profile->key_b *= 257; in get_color_profile()
3752 mode_out->key_b = b & mask; in setColorKeyFrom16bit()
3786 …if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_o… in lodepng_auto_choose_color()
3803 …if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_o… in lodepng_auto_choose_color()
3849 …key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_out->bitdept… in lodepng_auto_choose_color()
4294 color->key_r = color->key_g = color->key_b = 256 * data[0] + data[1]; in readChunk_tRNS()
4304 color->key_b = 256 * data[4] + data[5]; in readChunk_tRNS()
4974 ucvector_push_back(&tRNS, (unsigned char)(info->key_b / 256)); in addChunk_tRNS()
4975 ucvector_push_back(&tRNS, (unsigned char)(info->key_b % 256)); in addChunk_tRNS()