/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
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...] |
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;
|
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;
|
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...] |
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) {
|
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) {
|
/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)
|
ImfMisc.cpp | 561 size_t numPixels) 567 for (int j = 0; j < numPixels; ++j) 576 for (int j = 0; j < numPixels; ++j) 585 for (int j = 0; j < numPixels; ++j)
|
/external/opencv3/modules/videoio/src/ |
cap_dc1394.cpp | 124 static void uyv2bgr(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels); 125 static void uyvy2bgr(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels); 126 static void uyyvyy2bgr(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels); 127 static void y2bgr(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels); 128 static void y162bgr(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels, int bits); 129 static void rgb482bgr(const unsigned char *src8, unsigned char *dest, unsigned long long int NumPixels, int bits); [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...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CornerPathEffectTest.java | 78 int numPixels = 0; 83 numPixels += 1; 92 int cornerPixels = numPixels - straightLines;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
ImageCompare.java | 62 final int numPixels = width * height; 77 final double mse = noise / numPixels;
|
/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/opencv3/modules/imgcodecs/src/ |
rgbe.hpp | 79 int RGBE_WritePixels(FILE *fp, float *data, int numpixels); 80 int RGBE_ReadPixels(FILE *fp, float *data, int numpixels);
|
rgbe.cpp | 233 int RGBE_WritePixels(FILE *fp, float *data, int numpixels) 237 while (numpixels-- > 0) { 248 int RGBE_ReadPixels(FILE *fp, float *data, int numpixels) 252 while(numpixels-- > 0) {
|
/external/opencv3/modules/imgproc/src/opencl/ |
filter2DSmall.cl | 180 inline bool isBorder(const struct RectCoords bounds, int2 coord, int numPixels) 182 return (coord.x < bounds.x1 || coord.y < bounds.y1 || coord.x + numPixels > bounds.x2 || coord.y >= bounds.y2); 185 inline bool isBorder(const struct RectCoords bounds, int2 coord, int numPixels) 187 return (coord.x < 0 || coord.y < 0 || coord.x + numPixels > bounds.x2 || coord.y >= bounds.y2);
|
filterSmall.cl | 145 inline bool isBorder(const struct RectCoords bounds, int2 coord, int numPixels) 147 return coord.x < bounds.x1 || coord.y < bounds.y1 || coord.x + numPixels > bounds.x2 || coord.y >= bounds.y2; 150 inline bool isBorder(const struct RectCoords bounds, int2 coord, int numPixels) 152 return coord.x < 0 || coord.y < 0 || coord.x + numPixels > bounds.x2 || coord.y >= bounds.y2;
|
/external/deqp/modules/glshared/ |
glsShaderPerformanceMeasurer.cpp | 305 deInt64 numPixels = (deInt64)m_viewportWidth * (deInt64)m_viewportHeight * numQuadGrids; 307 double mfragPerSecond = (double)numPixels / (double)totalTime; 325 deInt64 numPixels = (deInt64)m_viewportWidth * (deInt64)m_viewportHeight * numQuadGrids; 327 double mfragPerSecond = (double)numPixels / (double)totalTime; 334 << TestLog::Float("FragmentsPerVertices", "Vertex-fragment ratio", "Fragments/Vertices", QP_KEY_TAG_NONE, (float)numPixels / (float)numVertices)
|
/external/ceres-solver/examples/ |
pgm_image.h | 62 int NumPixels() const; 124 int PGMImage<Real>::NumPixels() const {
|
/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/libvncserver/libvncserver/ |
tight.c | 128 int numPixels; 211 static int PaletteInsert (uint32_t rgb, int numPixels, int bpp); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fColorClearTest.cpp | 108 const int numPixels = targetWidth * targetHeight; 111 vector<deUint8> pixelKnownChannelMask (numPixels, 0);
|
/external/deqp/modules/gles3/functional/ |
es3fColorClearTest.cpp | 108 const int numPixels = targetWidth * targetHeight; 111 vector<deUint8> pixelKnownChannelMask (numPixels, 0);
|