Home
last modified time | relevance | path

Searched refs:pixelBuffer (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DStatsFilter.java81 private void calcMeanAndStd(ByteBuffer pixelBuffer, int width, int height, Quad quad) { in calcMeanAndStd() argument
83 pixelBuffer.rewind(); in calcMeanAndStd()
84 regionscore(pixelBuffer, width, height, quad.topLeft().x, quad.topLeft().y, in calcMeanAndStd()
98 ByteBuffer pixelBuffer = inputFrame.lockBytes(Frame.MODE_READ); in onProcess() local
100 calcMeanAndStd(pixelBuffer, inputFrame.getWidth(), inputFrame.getHeight(), mCropRect); in onProcess()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp168 uint8_t* pixelBuffer, in produceFrame() argument
182 } else if (pixelBuffer == NULL) { in produceFrame()
269 rgbToYuv420(pixelBuffer, width, height, yPlane, in produceFrame()
305 rgbToYuv420(pixelBuffer, width, height, yPlane, in produceFrame()
326 rgbToYuv420(pixelBuffer, width, height, &ycbcr); in produceFrame()
352 memcpy(img, pixelBuffer, bufferLength); in produceFrame()
603 jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) { in LegacyCameraDevice_nativeProduceFrame() argument
612 if (pixelBuffer == NULL) { in LegacyCameraDevice_nativeProduceFrame()
617 int32_t bufSize = static_cast<int32_t>(env->GetArrayLength(pixelBuffer)); in LegacyCameraDevice_nativeProduceFrame()
618 jbyte* pixels = env->GetByteArrayElements(pixelBuffer, /*is_copy*/NULL); in LegacyCameraDevice_nativeProduceFrame()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java730 static void produceFrame(Surface surface, byte[] pixelBuffer, int width, in produceFrame() argument
734 checkNotNull(pixelBuffer); in produceFrame()
738 LegacyExceptionUtils.throwOnError(nativeProduceFrame(surface, pixelBuffer, width, height, in produceFrame()
853 private static native int nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, in nativeProduceFrame() argument