Searched refs:numPixels (Results 1 – 11 of 11) 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()
62 final int numPixels = width * height; in psnr() local77 final double mse = noise / numPixels; in psnr()
412 long numPixels = ddi.width * ddi.height * sample.getNumFrames(); in testDisplayedContentSampling() local414 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()417 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()420 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()423 assertTrue(samples.length == 0 || LongStream.of(samples).sum() == numPixels); in testDisplayedContentSampling()
63 final int numPixels = width * height; in generateTestIcon() local64 final int[] colors = new int[numPixels]; in generateTestIcon()65 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
2126 public void setOverScrolledPixels(float numPixels, boolean onTop, boolean animate) {2127 setOverScrollAmount(numPixels * getRubberBandFactor(onTop), onTop, animate, true);