Searched refs:numBins (Results 1 – 1 of 1) sorted by relevance
28 inline void addPixelToHistogram(unsigned char*& pImg, int* pHist, int numBins) { in addPixelToHistogram() argument34 int bin = clamp(0, static_cast<int>(static_cast<float>(i * numBins) / 255.0f), numBins - 1); in addPixelToHistogram()44 int numBins = env->GetDirectBufferCapacity(histogramBuffer); in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram() local51 for(int i = 0; i < numBins; ++i) pHist[i] = 0; in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()55 addPixelToHistogram(pImg, pHist, numBins); in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()65 addPixelToHistogram(pImg, pHist, numBins); in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()