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.cpp169 uint8_t* pixelBuffer, in produceFrame() argument
183 } else if (pixelBuffer == NULL) { in produceFrame()
270 rgbToYuv420(pixelBuffer, width, height, yPlane, in produceFrame()
306 rgbToYuv420(pixelBuffer, width, height, yPlane, in produceFrame()
327 rgbToYuv420(pixelBuffer, width, height, &ycbcr); in produceFrame()
353 memcpy(img, pixelBuffer, bufferLength); in produceFrame()
610 jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) { in LegacyCameraDevice_nativeProduceFrame() argument
619 if (pixelBuffer == NULL) { in LegacyCameraDevice_nativeProduceFrame()
624 int32_t bufSize = static_cast<int32_t>(env->GetArrayLength(pixelBuffer)); in LegacyCameraDevice_nativeProduceFrame()
625 jbyte* pixels = env->GetByteArrayElements(pixelBuffer, /*is_copy*/NULL); in LegacyCameraDevice_nativeProduceFrame()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java739 static void produceFrame(Surface surface, byte[] pixelBuffer, int width, in produceFrame() argument
743 checkNotNull(pixelBuffer); in produceFrame()
747 LegacyExceptionUtils.throwOnError(nativeProduceFrame(surface, pixelBuffer, width, height, in produceFrame()
862 private static native int nativeProduceFrame(Surface surface, byte[] pixelBuffer, int width, in nativeProduceFrame() argument