HomeSort by relevance Sort by last modified time
    Searched refs:numPixels (Results 1 - 25 of 25) sorted by null

  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
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));
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;
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...]
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;
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];
86 for (int i = 0; i < numPixels; ++i) {
  /external/chromium_org/third_party/angle/src/libGLESv2/renderer/
Query11.cpp 95 UINT64 numPixels = 0;
96 HRESULT result = mRenderer->getDeviceContext()->GetData(mQuery, &numPixels, sizeof(UINT64), 0);
105 mResult = (numPixels > 0) ? GL_TRUE : GL_FALSE;
Query9.cpp 96 DWORD numPixels = 0;
98 HRESULT hres = mQuery->GetData(&numPixels, sizeof(DWORD), D3DGETDATA_FLUSH);
107 mResult = (numPixels > 0) ? GL_TRUE : GL_FALSE;
  /external/chromium_org/third_party/mesa/src/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/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;
  /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/jmonkeyengine/engine/src/core/com/jme3/post/
HDRRenderer.java 176 float numPixels = Float.POSITIVE_INFINITY;
182 numPixels = blocks.x * blocks.y;
183 } while (numPixels > iters);
187 numPixels = blocks.x * blocks.y;
189 System.out.println(numPixels);
200 mat.setFloat("NumPixels", numPixels);
  /cts/apps/CtsVerifier/lib/colorchecker/
testingimage.cpp 142 int numPixels = 0;
153 ++numPixels;
157 meanColor = meanColor / numPixels;
colorcheckertest.cpp     [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
BMPImageReader.cpp 631 BMPImageReader::ProcessingResult BMPImageReader::processNonRLEData(bool inRLE, int numPixels)
637 numPixels = m_parent->size().width();
640 const int endX = m_coord.x() + numPixels;
648 const size_t unpaddedNumBytes = (m_infoHeader.biBitCount < 16) ? ((numPixels + pixelsPerByte - 1) / pixelsPerByte) : (numPixels * bytesPerPixel);
BMPImageReader.h 171 // process |numPixels| pixels on the current row.
173 // |numPixels| is ignored. Expects |m_coord| to point at the
182 ProcessingResult processNonRLEData(bool inRLE, int numPixels);
  /external/chromium_org/third_party/WebKit/Source/web/
WebSettingsImpl.cpp 551 void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels)
553 m_settings->setMinimumAccelerated2dCanvasSize(numPixels);
  /external/chromium/chrome/common/extensions/docs/examples/api/tabs/inspector/
jstemplate_compiled.js 64 * @param {Number} numPixels Number of pixels, may be floating point.
67 function px(numPixels) {
68 return round(numPixels) + "px";
  /external/chromium_org/chrome/common/extensions/docs/examples/api/tabs/inspector/
jstemplate_compiled.js 64 * @param {Number} numPixels Number of pixels, may be floating point.
67 function px(numPixels) {
68 return round(numPixels) + "px";
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
FilterEffect.cpp 203 int numPixels = pixelArrayLength / 4;
206 while (--numPixels >= 0) {
  /prebuilts/devtools/tools/lib/
traceview.jar 
  /external/chromium_org/third_party/mesa/src/src/mesa/main/
teximage.c 1054 const GLint numPixels = width * height * depth;
1055 GLubyte *data = (GLubyte *) MALLOC(numPixels * components * sizeof(GLubyte));
    [all...]
  /external/mesa3d/src/mesa/main/
teximage.c 1054 const GLint numPixels = width * height * depth;
1055 GLubyte *data = (GLubyte *) MALLOC(numPixels * components * sizeof(GLubyte));
    [all...]

Completed in 1823 milliseconds