Home
last modified time | relevance | path

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

/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedRequestProcessor.cpp302 auto yuv_layout = importer_->lockYCbCr(buffer, usage, map_rect); in LockSensorBuffer() local
303 if ((yuv_layout.y != nullptr) && (yuv_layout.cb != nullptr) && in LockSensorBuffer()
304 (yuv_layout.cr != nullptr)) { in LockSensorBuffer()
306 static_cast<uint8_t*>(yuv_layout.y); in LockSensorBuffer()
308 static_cast<uint8_t*>(yuv_layout.cb); in LockSensorBuffer()
310 static_cast<uint8_t*>(yuv_layout.cr); in LockSensorBuffer()
311 sensor_buffer->plane.img_y_crcb.y_stride = yuv_layout.ystride; in LockSensorBuffer()
312 sensor_buffer->plane.img_y_crcb.cbcr_stride = yuv_layout.cstride; in LockSensorBuffer()
313 sensor_buffer->plane.img_y_crcb.cbcr_step = yuv_layout.chroma_step; in LockSensorBuffer()
314 if (isYUV_420_888 && (yuv_layout.chroma_step == 2) && in LockSensorBuffer()
[all …]
DEmulatedSensor.cpp1618 void EmulatedSensor::CaptureYUV420(YCbCrPlanes yuv_layout, uint32_t width, in CaptureYUV420() argument
1652 uint8_t* px_y = yuv_layout.img_y + out_y * yuv_layout.y_stride; in CaptureYUV420()
1653 uint8_t* px_cb = yuv_layout.img_cb + (out_y / 2) * yuv_layout.cbcr_stride; in CaptureYUV420()
1654 uint8_t* px_cr = yuv_layout.img_cr + (out_y / 2) * yuv_layout.cbcr_stride; in CaptureYUV420()
1698 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()
1700 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()
1704 yuv_layout.bytesPerPixel); in CaptureYUV420()
1707 px_y += yuv_layout.bytesPerPixel; in CaptureYUV420()
1716 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()
1719 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()
[all …]
DEmulatedSensor.h426 void CaptureYUV420(YCbCrPlanes yuv_layout, uint32_t width, uint32_t height,