Lines Matching refs:c2
438 ColorARGB c2 = *getPixel(renderBuffer, gifIn->SWidth, x * 2 + 1, y * 2); in computeNewColorIndex() local
441 ColorARGB avgColor = computeAverage(c1, c2, c3, c4); in computeNewColorIndex()
447 ColorARGB GifTranscoder::computeAverage(ColorARGB c1, ColorARGB c2, ColorARGB c3, ColorARGB c4) { in computeAverage() argument
448 char avgAlpha = (char)(((int) ALPHA(c1) + (int) ALPHA(c2) + in computeAverage()
450 char avgRed = (char)(((int) RED(c1) + (int) RED(c2) + in computeAverage()
452 char avgGreen = (char)(((int) GREEN(c1) + (int) GREEN(c2) + in computeAverage()
454 char avgBlue = (char)(((int) BLUE(c1) + (int) BLUE(c2) + in computeAverage()
484 int GifTranscoder::computeDistance(ColorARGB c1, ColorARGB c2) { in computeDistance() argument
485 return SQUARE(RED(c1) - RED(c2)) + in computeDistance()
486 SQUARE(GREEN(c1) - GREEN(c2)) + in computeDistance()
487 SQUARE(BLUE(c1) - BLUE(c2)); in computeDistance()