Searched refs:maxGrayDeviation (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | Png.cpp | 247 int maxGrayDeviation = 0; in analyze_image() local 272 int odev = maxGrayDeviation; in analyze_image() 273 maxGrayDeviation = MAX(ABS(rr - gg), maxGrayDeviation); in analyze_image() 274 maxGrayDeviation = MAX(ABS(gg - bb), maxGrayDeviation); in analyze_image() 275 maxGrayDeviation = MAX(ABS(bb - rr), maxGrayDeviation); in analyze_image() 276 if (maxGrayDeviation > odev) { in analyze_image() 278 printf("New max dev. = %d at pixel (%d, %d) = (%d %d %d %d)\n", maxGrayDeviation, i, j, in analyze_image() 343 printf("Max gray deviation = %d, tolerance = %d\n", maxGrayDeviation, grayscaleTolerance); in analyze_image() 371 if (maxGrayDeviation <= grayscaleTolerance) { in analyze_image() 372 diag->Note(DiagMessage() << "forcing image to gray (max deviation = " << maxGrayDeviation in analyze_image()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 887 int maxGrayDeviation = 0; in analyze_image() local 940 int odev = maxGrayDeviation; in analyze_image() 941 maxGrayDeviation = MAX(ABS(rr - gg), maxGrayDeviation); in analyze_image() 942 maxGrayDeviation = MAX(ABS(gg - bb), maxGrayDeviation); in analyze_image() 943 maxGrayDeviation = MAX(ABS(bb - rr), maxGrayDeviation); in analyze_image() 944 if (maxGrayDeviation > odev) { in analyze_image() 947 maxGrayDeviation, i, j, rr, gg, bb, aa); in analyze_image() 1045 printf("Max gray deviation = %d, tolerance = %d\n", maxGrayDeviation, grayscaleTolerance); in analyze_image() 1071 if (maxGrayDeviation <= grayscaleTolerance) { in analyze_image() 1072 printf("%s: forcing image to gray (max deviation = %d)\n", imageName, maxGrayDeviation); in analyze_image()
|