/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
brightness.cpp | 35 const int numPixels = width * height; 37 for (int i = 0; i < numPixels; i++) { 44 avgPixels[0] = pixelTotals[0] / numPixels; 45 avgPixels[1] = pixelTotals[1] / numPixels; 46 avgPixels[2] = pixelTotals[2] / numPixels;
|
contrast.cpp | 35 const int numPixels = width * height; 37 float* lumArray = new float[numPixels]; 38 for (int i = 0; i < numPixels; i++) { 43 const float avg = total / numPixels; 46 for (int i = 0; i < numPixels; i++) { 50 return ((float) sqrt(sum / numPixels));
|
exposure.cpp | 34 const int numPixels = width * height; 39 for (int i = 0; i < numPixels; i++) { 47 return (static_cast<float>(output)) / numPixels; 56 const int numPixels = width * height; 61 for (int i = 0; i < numPixels; i++) { 69 return (static_cast<float>(output)) / numPixels;
|
frametovalues.cpp | 38 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; 43 for(int idx = 0; idx < numPixels; idx++, disp+=4) { 64 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; 69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) {
|
stats_scorer.cpp | 28 int numPixels = env->GetDirectBufferCapacity(imageBuffer); // 1 byte per pixel 32 for (int i = 0; i < numPixels; ++i) { 38 result[0] = sum / numPixels; // mean 39 result[1] = sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev. 52 int numPixels = (xEnd - xStart) * (yEnd - yStart); 65 result[0] = sum / numPixels; // mean 66 result[1] = (numPixels == 1) ? 67 0 : sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev [all...] |
sobeloperator.cpp | 78 int numPixels = width * height; 80 short* gxPtr = new short[3 * numPixels]; 81 short* gyPtr = new short[3 * numPixels]; 84 for (int i = 0; i < numPixels; ++i) {
|
histogram.cpp | 43 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel 54 for( ; numPixels > 0; --numPixels) { 58 for( ; numPixels > 0; --numPixels) { 75 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel 82 for( ; numPixels > 0; --numPixels) { 99 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel 106 for( ; numPixels > 0; --numPixels) [all...] |
/external/opencv3/3rdparty/openexr/IlmImf/ |
ImfPreviewImageAttribute.cpp | 63 int numPixels = _value.width() * _value.height(); 66 for (int i = 0; i < numPixels; ++i) 87 int numPixels = p.width() * p.height(); 90 for (int i = 0; i < numPixels; ++i)
|
ImfOutputFile.cpp | [all...] |
ImfTiledOutputFile.cpp | [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
ImageCompare.java | 62 final int numPixels = width * height; 77 final double mse = noise / numPixels;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CornerPathEffectTest.java | 78 int numPixels = 0; 83 numPixels += 1; 92 int cornerPixels = numPixels - straightLines;
|
/external/deqp/modules/gles2/functional/ |
es2fColorClearTest.cpp | 108 const int numPixels = targetWidth * targetHeight; 111 vector<deUint8> pixelKnownChannelMask (numPixels, 0);
|
es2fMultisampleTests.cpp | [all...] |
/external/deqp/modules/gles3/functional/ |
es3fColorClearTest.cpp | 108 const int numPixels = targetWidth * targetHeight; 111 vector<deUint8> pixelKnownChannelMask (numPixels, 0);
|
es3fMultisampleTests.cpp | [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_linetemp.h | 76 GLint numPixels; 218 numPixels = MAX2(dx, dy); 229 span.redStep = (ChanToFixed(vert1->color[0]) - span.red ) / numPixels; 230 span.greenStep = (ChanToFixed(vert1->color[1]) - span.green) / numPixels; 231 span.blueStep = (ChanToFixed(vert1->color[2]) - span.blue ) / numPixels; 232 span.alphaStep = (ChanToFixed(vert1->color[3]) - span.alpha) / numPixels; 250 - vert0->attrib[FRAG_ATTRIB_WPOS][2]) / numPixels; 256 - vert0->attrib[FRAG_ATTRIB_WPOS][2]) / numPixels); 262 const GLfloat invLen = 1.0F / numPixels; 290 span.end = numPixels; [all...] |
/external/skia/src/codec/ |
SkBmpRLECodec.cpp | 399 uint8_t numPixels = task; 400 const size_t rowBytes = compute_row_bytes(numPixels, 402 // Abort if setting numPixels moves us off the edge of the 404 if (x + numPixels > width) { 409 // remaining in the stream to set numPixels. 416 // Set numPixels number of pixels 417 while (numPixels > 0) { 424 numPixels--; 425 if (numPixels != 0) { 428 numPixels-- [all...] |
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
ImagePixelization.java | 169 int pixel = 0, red = 0, green = 0, blue = 0, numPixels = 0; 181 numPixels = red = green = blue = 0; 192 numPixels ++; 196 pixel = Color.rgb(red / numPixels, green / numPixels, blue / numPixels);
|
/external/deqp/modules/gles2/performance/ |
es2pTextureUploadTests.cpp | 270 deInt64 numPixels = (deInt64)m_texSize * (deInt64)m_texSize * numTexturesDrawn; 274 double avgMTexelsPerSeconds = (double)numPixels / (double)totalTime; 275 double avgTexelDrawDurationNs = (double)totalTime * 1000.0 / (double)numPixels;
|
/external/deqp/modules/gles31/functional/ |
es31fMultisampleTests.cpp | 593 deInt32 numPixels = (deInt32)renderedImg.getWidth()*(deInt32)renderedImg.getHeight(); 642 log << TestLog::Message << "Average red color component: " << de::floatToString((float)sumRed / 255.0f / (float)numPixels, 2) << TestLog::EndMessage; 662 if (m_currentIteration == m_numIterations-1 && sumRed != 0xff*numPixels) [all...] |
/external/libvncserver/libvncserver/ |
tight.c | 128 int numPixels; 211 static int PaletteInsert (uint32_t rgb, int numPixels, int bpp); [all...] |
/external/deqp/modules/internal/ |
ditTextureFormatTests.cpp | [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
OneCameraImpl.java | [all...] |
OneCameraZslImpl.java | 399 long numPixels = supportedSizes[i].getWidth() * supportedSizes[i].getHeight(); 400 if (numPixels > largestSupportedSizePixels) { 402 largestSupportedSizePixels = numPixels; [all...] |