Lines Matching refs:key_r
2527 info->key_r = info->key_g = info->key_b = 0; in lodepng_color_mode_init()
2561 if(a->key_r != b->key_r) return 0; in lodepng_color_mode_equal()
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()
3235 …ha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r ? 0 : 255; in getPixelColorsRGBA8()
3246 if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255; in getPixelColorsRGBA8()
3259 if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r in getPixelColorsRGBA8()
3271 && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r in getPixelColorsRGBA8()
3358 if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0; in getPixelColorRGBA16()
3366 if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r in getPixelColorRGBA16()
3472 unsigned short key_r; /*these values are always in 16-bit bitdepth in the profile*/ member
3593 …if(a == 0 && numpixels > 16 && !(profile->key && (r != profile->key_r || g != profile->key_g || b … in get_color_profile()
3598 profile->key_r = r; in get_color_profile()
3613 && r == profile->key_r && g == profile->key_g && b == profile->key_b) in get_color_profile()
3673 …if(a == 0 && !(profile->key && (r != profile->key_r || g != profile->key_g || b != profile->key_b)… in get_color_profile()
3678 profile->key_r = r; in get_color_profile()
3693 && r == profile->key_r && g == profile->key_g && b == profile->key_b) in get_color_profile()
3738 profile->key_r *= 257; in get_color_profile()
3750 mode_out->key_r = r & 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()
3817 unsigned grey = profile.key_r; in lodepng_auto_choose_color()
3849 …if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_o… in lodepng_auto_choose_color()
4294 color->key_r = color->key_g = color->key_b = 256 * data[0] + data[1]; in readChunk_tRNS()
4302 color->key_r = 256 * data[0] + data[1]; in readChunk_tRNS()
4962 ucvector_push_back(&tRNS, (unsigned char)(info->key_r / 256)); in addChunk_tRNS()
4963 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256)); in addChunk_tRNS()
4970 ucvector_push_back(&tRNS, (unsigned char)(info->key_r / 256)); in addChunk_tRNS()
4971 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256)); in addChunk_tRNS()