Home
last modified time | relevance | path

Searched refs:numPixels (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dstats_scorer.cpp28 int numPixels = env->GetDirectBufferCapacity(imageBuffer); // 1 byte per pixel in Java_androidx_media_filterpacks_numeric_StatsFilter_score() local
32 for (int i = 0; i < numPixels; ++i) { in Java_androidx_media_filterpacks_numeric_StatsFilter_score()
38 result[0] = sum / numPixels; // mean in Java_androidx_media_filterpacks_numeric_StatsFilter_score()
39 result[1] = sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev. in Java_androidx_media_filterpacks_numeric_StatsFilter_score()
52 int numPixels = (xEnd - xStart) * (yEnd - yStart); in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore() local
65 result[0] = sum / numPixels; // mean in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
66 result[1] = (numPixels == 1) ? in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
67 0 : sqrt((sumSquares - numPixels * result[0] * result[0]) / (numPixels - 1)); // stdev. in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
Dhistogram.cpp43 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram() local
54 for( ; numPixels > 0; --numPixels) { in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()
58 for( ; numPixels > 0; --numPixels) { in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()
75 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChromaHistogram() local
82 for( ; numPixels > 0; --numPixels) { in Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChromaHistogram()
99 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram() local
106 for( ; numPixels > 0; --numPixels) { in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram()
Dcontrast.cpp35 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local
37 float* lumArray = new float[numPixels]; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
38 for (int i = 0; i < numPixels; i++) { in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
43 const float avg = total / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
46 for (int i = 0; i < numPixels; i++) { in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
50 return ((float) sqrt(sum / numPixels)); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
Dexposure.cpp34 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator() local
39 for (int i = 0; i < numPixels; i++) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
47 return (static_cast<float>(output)) / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
56 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator() local
61 for (int i = 0; i < numPixels; i++) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
69 return (static_cast<float>(output)) / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
Dbrightness.cpp35 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator() local
37 for (int i = 0; i < numPixels; i++) { in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
44 avgPixels[0] = pixelTotals[0] / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
45 avgPixels[1] = pixelTotals[1] / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
46 avgPixels[2] = pixelTotals[2] / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
Dframetovalues.cpp38 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() local
43 for(int idx = 0; idx < numPixels; idx++, disp+=4) { in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues()
64 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues() local
69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) { in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues()
Dsobeloperator.cpp78 int numPixels = width * height; in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator() local
80 short* gxPtr = new short[3 * numPixels]; in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
81 short* gyPtr = new short[3 * numPixels]; in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
84 for (int i = 0; i < numPixels; ++i) { in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DImageCompare.java62 final int numPixels = width * height; in psnr() local
77 final double mse = noise / numPixels; in psnr()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextSelectionTest.java157 final int numPixels = width * height; in generateTestIcon() local
158 final int[] colors = new int[numPixels]; in generateTestIcon()
159 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
DTextClassificationTest.java65 final int numPixels = width * height; in generateTestIcon() local
66 final int[] colors = new int[numPixels]; in generateTestIcon()
67 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java517 long numPixels = ddi.width * ddi.height * sample.getNumFrames(); in testDisplayedContentSampling() local
519 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
522 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
525 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
528 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java1903 public void setOverScrolledPixels(float numPixels, boolean onTop, boolean animate) {
1904 setOverScrollAmount(numPixels * getRubberBandFactor(onTop), onTop, animate, true);