Home | History | Annotate | Download | only in lodepng

Lines Matching full:key_r

2527   info->key_r = info->key_g = info->key_b = 0;
2561 if(a->key_r != b->key_r) return 0;
3111 if(mode->key_defined && *r == mode->key_r) *a = 0;
3117 if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0;
3126 if(mode->key_defined && value == mode->key_r) *a = 0;
3135 if(mode->key_defined && *r == mode->key_r && *g == mode->key_g && *b == mode->key_b) *a = 0;
3143 if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r
3227 if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255;
3235 if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r ? 0 : 255;
3246 if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255;
3259 if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r
3271 && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r
3358 if(mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r) *a = 0;
3366 if(mode->key_defined && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r
3472 unsigned short key_r; /*these values are always in 16-bit bitdepth in the profile*/
3530 std::cout << "key_r: " << (int)p->key_r << std::endl;
3593 if(a == 0 && numpixels > 16 && !(profile->key && (r != profile->key_r || g != profile->key_g || b != profile->key_b)))
3598 profile->key_r = r;
3613 && r == profile->key_r && g == profile->key_g && b == profile->key_b)
3673 if(a == 0 && !(profile->key && (r != profile->key_r || g != profile->key_g || b != profile->key_b)))
3678 profile->key_r = r;
3693 && r == profile->key_r && g == profile->key_g && b == profile->key_b)
3738 profile->key_r *= 257;
3750 mode_out->key_r = r & mask;
3786 if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_out->bitdepth);
3803 if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_out->bitdepth);
3817 unsigned grey = profile.key_r;
3849 if(profile.key) setColorKeyFrom16bit(mode_out, profile.key_r, profile.key_g, profile.key_b, mode_out->bitdepth);
4294 color->key_r = color->key_g = color->key_b = 256 * data[0] + data[1];
4302 color->key_r = 256 * data[0] + data[1];
4962 ucvector_push_back(&tRNS, (unsigned char)(info->key_r / 256));
4963 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256));
4970 ucvector_push_back(&tRNS, (unsigned char)(info->key_r / 256));
4971 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256));