Hi,
I'm using libcamera in C++ and have noticed about a 29ms delay in capturing an image from this CSI camera I have when i specify config->at(0).pixelFormat = formats::SGBRG10_CSI2P . which should be the native bayer format with no processing, which is all i want. but when i say config->at(0).pixelFormat = libcamera::formats::RGB888 then i get the rgb format and the cam latency is still 29ms. i am wondering why the capture latency did not go up. to get the capture lattency i am looking at the boot clock in milliseconds and comparing to request->metadata().get(libcamera::controls::SensorTimestamp).value_or(0)/1000000 . (that timestamp is in nanoseconds). also when i use 'export LIBCAMERA_LOG_LEVELS=*:DEBUG' there seems to be a lot of processing going on. i use std::unique_ptr<CameraConfiguration> config = camera->generateConfiguration({StreamRole::Raw}); too.
thanks!
matt
I'm using libcamera in C++ and have noticed about a 29ms delay in capturing an image from this CSI camera I have when i specify config->at(0).pixelFormat = formats::SGBRG10_CSI2P . which should be the native bayer format with no processing, which is all i want. but when i say config->at(0).pixelFormat = libcamera::formats::RGB888 then i get the rgb format and the cam latency is still 29ms. i am wondering why the capture latency did not go up. to get the capture lattency i am looking at the boot clock in milliseconds and comparing to request->metadata().get(libcamera::controls::SensorTimestamp).value_or(0)/1000000 . (that timestamp is in nanoseconds). also when i use 'export LIBCAMERA_LOG_LEVELS=*:DEBUG' there seems to be a lot of processing going on. i use std::unique_ptr<CameraConfiguration> config = camera->generateConfiguration({StreamRole::Raw}); too.
thanks!
matt
Statistics: Posted by mwells — Fri Sep 06, 2024 3:52 am