Searched refs:numPixels (Results 1 – 12 of 12) sorted by relevance
28 int numPixels = env->GetDirectBufferCapacity(imageBuffer); // 1 byte per pixel in Java_androidx_media_filterpacks_numeric_StatsFilter_score() local32 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() local65 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()
43 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram() local54 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() local82 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() local106 for( ; numPixels > 0; --numPixels) { in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram()
35 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local37 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()
34 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator() local39 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() local61 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()
35 const int numPixels = width * height; in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator() local37 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()
38 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() local43 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() local69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) { in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues()
78 int numPixels = width * height; in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator() local80 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()
213 float numPixels = histogram[tonalValue]; in compute() local214 float tmp = numPixels * tonalValue; in compute()215 w[0] += numPixels; in compute()216 w[1] -= numPixels; in compute()
62 final int numPixels = width * height; in psnr() local77 final double mse = noise / numPixels; in psnr()
398 long numPixels = ddi.width * ddi.height * sample.getNumFrames(); in testDisplayedContentSampling() local400 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()403 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()406 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()409 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
61 final int numPixels = width * height; in generateTestIcon() local62 final int[] colors = new int[numPixels]; in generateTestIcon()63 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
1996 public void setOverScrolledPixels(float numPixels, boolean onTop, boolean animate) {1997 setOverScrollAmount(numPixels * getRubberBandFactor(onTop), onTop, animate, true);