Home
last modified time | relevance | path

Searched refs:imageBuffer (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dhistogram.cpp39 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject maskBuffer, jobject histogramBuffer ) in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram() argument
41 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()
43 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_GrayHistogramFilter_extractHistogram()
71 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject histogramBuffer, jint hBins, jint sBins) in Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChromaHistogram() argument
73 unsigned char* pixelIn = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChromaHistogram()
75 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChromaHistogram()
94 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject histogramBuffer, in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram() argument
97 unsigned char* pixelIn = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram()
99 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; // 4 bytes per pixel in Java_androidx_media_filterpacks_histogram_NewChromaHistogramFilter_extractChromaHistogram()
Dexposure.cpp30 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator() argument
31 if (imageBuffer == 0) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
35 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator()
52 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator() argument
53 if (imageBuffer == 0) { in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
57 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator()
Dframetovalues.cpp29 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject grayBuffer ) in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() argument
31 unsigned char* pixelPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues()
38 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues()
55 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject rgbBuffer ) in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues() argument
57 unsigned char* pixelPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues()
64 int numPixels = env->GetDirectBufferCapacity(imageBuffer) / 4; in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues()
Dstats_scorer.cpp25 JNIEnv* env, jobject thiz, jobject imageBuffer, jfloatArray statsArray) in Java_androidx_media_filterpacks_numeric_StatsFilter_score() argument
27 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_numeric_StatsFilter_score()
28 int numPixels = env->GetDirectBufferCapacity(imageBuffer); // 1 byte per pixel in Java_androidx_media_filterpacks_numeric_StatsFilter_score()
44 JNIEnv* env, jobject thiz, jobject imageBuffer, jint width, jint height, in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore() argument
47 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
Dhistogram.h30 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject maskBuffer, jobject histogramBuffer );
34 … JNIEnv* env, jclass clazz, jobject imageBuffer, jobject histogramBuffer, jint hBins, jint sBins);
38 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject histogramBuffer,
Dbrightness.cpp29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator() argument
31 if (imageBuffer == 0) { in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
36 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_AvgBrightnessFilter_brightnessOperator()
Dcontrast.cpp29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() argument
31 if (imageBuffer == 0) { in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
36 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
Dframetovalues.h31 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject grayBuffer );
35 JNIEnv* env, jclass clazz, jobject imageBuffer, jobject rgbBuffer );
Dexposure.h29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
33 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
Dstats_scorer.h32 JNIEnv* env, jobject thiz, jobject imageBuffer, jfloatArray statsArray);
36 JNIEnv* env, jobject thiz, jobject imageBuffer, jint width, jint height,
Dsobeloperator.cpp66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator() argument
69 if (imageBuffer == 0) { in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
72 unsigned char* srcPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); in Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator()
Dbrightness.h29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
Dcontrast.h29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
Dsobeloperator.h31 jobject imageBuffer, jobject magBuffer, jobject dirBuffer);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNewChromaHistogramFilter.java95 ByteBuffer imageBuffer = imageFrame.lockBytes(Frame.MODE_READ); in onProcess() local
101 extractChromaHistogram(imageBuffer, floatHistogram, mHueBins, mSaturationBins, mValueBins, in onProcess()
110 private static native void extractChromaHistogram(ByteBuffer imageBuffer, in extractChromaHistogram() argument
DToGrayValuesFilter.java119 private static native boolean toGrayValues(ByteBuffer imageBuffer, ByteBuffer grayBuffer); in toGrayValues() argument
DStatsFilter.java114 private native void regionscore(ByteBuffer imageBuffer, int width, int height, float left, in regionscore() argument
DSobelFilter.java169 ByteBuffer imageBuffer, ByteBuffer magBuffer, ByteBuffer dirBudder); in sobelOperator() argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DExposureFilter.java104 ByteBuffer imageBuffer); in overExposureOperator() argument
106 ByteBuffer imageBuffer); in underExposureOperator() argument
DContrastRatioFilter.java73 private static native float contrastOperator(int width, int height, ByteBuffer imageBuffer); in contrastOperator() argument
DAvgBrightnessFilter.java69 private static native float brightnessOperator(int width, int height, ByteBuffer imageBuffer); in brightnessOperator() argument