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()
62 final int numPixels = width * height; in psnr() local77 final double mse = noise / numPixels; in psnr()
157 final int numPixels = width * height; in generateTestIcon() local158 final int[] colors = new int[numPixels]; in generateTestIcon()159 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
65 final int numPixels = width * height; in generateTestIcon() local66 final int[] colors = new int[numPixels]; in generateTestIcon()67 for (int i = 0; i < numPixels; ++i) { in generateTestIcon()
517 long numPixels = ddi.width * ddi.height * sample.getNumFrames(); in testDisplayedContentSampling() local519 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()
1903 public void setOverScrolledPixels(float numPixels, boolean onTop, boolean animate) {1904 setOverScrollAmount(numPixels * getRubberBandFactor(onTop), onTop, animate, true);