Searched refs:yuvImage (Results 1 – 2 of 2) sorted by relevance
293 Image yuvImage = null; in onImageAvailable() local296 yuvImage = mImageReader.acquireNextImage(); in onImageAvailable()299 if (yuvImage != null) { in onImageAvailable()300 yuvImage.close(); in onImageAvailable()314 Plane lumaPlane = yuvImage.getPlanes()[0]; in onImageAvailable()315 Plane crPlane = yuvImage.getPlanes()[1]; in onImageAvailable()316 Plane cbPlane = yuvImage.getPlanes()[2]; in onImageAvailable()346 yuvImage.getWidth(), yuvImage.getHeight(), in onImageAvailable()351 0, 0, yuvImage.getWidth(), yuvImage.getHeight(), in onImageAvailable()353 jpegImage.setTimestamp(yuvImage.getTimestamp()); in onImageAvailable()[all …]
550 private static ByteBuffer convertToRGB(Image yuvImage) { in convertToRGB() argument552 int width = yuvImage.getWidth(); in convertToRGB()553 int height = yuvImage.getHeight(); in convertToRGB()556 Image.Plane yPlane = yuvImage.getPlanes()[0]; in convertToRGB()557 Image.Plane uPlane = yuvImage.getPlanes()[1]; in convertToRGB()558 Image.Plane vPlane = yuvImage.getPlanes()[2]; in convertToRGB()