Searched refs:yuv_layout (Results 1 – 3 of 3) sorted by relevance
271 auto yuv_layout = importer_->lockYCbCr(buffer, usage, map_rect); in LockSensorBuffer() local272 if ((yuv_layout.y != nullptr) && (yuv_layout.cb != nullptr) && in LockSensorBuffer()273 (yuv_layout.cr != nullptr)) { in LockSensorBuffer()275 static_cast<uint8_t*>(yuv_layout.y); in LockSensorBuffer()277 static_cast<uint8_t*>(yuv_layout.cb); in LockSensorBuffer()279 static_cast<uint8_t*>(yuv_layout.cr); in LockSensorBuffer()280 sensor_buffer->plane.img_y_crcb.y_stride = yuv_layout.yStride; in LockSensorBuffer()281 sensor_buffer->plane.img_y_crcb.cbcr_stride = yuv_layout.cStride; in LockSensorBuffer()282 sensor_buffer->plane.img_y_crcb.cbcr_step = yuv_layout.chromaStep; in LockSensorBuffer()283 if (isYUV_420_888 && (yuv_layout.chromaStep == 2) && in LockSensorBuffer()[all …]
1389 void EmulatedSensor::CaptureYUV420(YCbCrPlanes yuv_layout, uint32_t width, in CaptureYUV420() argument1422 uint8_t* px_y = yuv_layout.img_y + out_y * yuv_layout.y_stride; in CaptureYUV420()1423 uint8_t* px_cb = yuv_layout.img_cb + (out_y / 2) * yuv_layout.cbcr_stride; in CaptureYUV420()1424 uint8_t* px_cr = yuv_layout.img_cr + (out_y / 2) * yuv_layout.cbcr_stride; in CaptureYUV420()1462 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()1464 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()1468 yuv_layout.bytesPerPixel); in CaptureYUV420()1471 px_y += yuv_layout.bytesPerPixel; in CaptureYUV420()1480 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()1483 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()[all …]
348 void CaptureYUV420(YCbCrPlanes yuv_layout, uint32_t width, uint32_t height,