Opps, forgot to post code.
This is my config code:
I'm currently relying on validate() to set stride and buffer size etc.
I'm not setting any controls on the requests yet.
Thanks for your help.
Nick
This is my config code:
Code:
// StillCapture twice to generate two configurations std::unique_ptr<CameraConfiguration> config = camera->generateConfiguration( { StreamRole::StillCapture, StreamRole::StillCapture } ); // Configuration for the full sized frame StreamConfiguration &streamConfigBig = config->at(0); streamConfigBig.pixelFormat = libcamera::formats::BGR888; streamConfigBig.size.width = 4056; streamConfigBig.size.height = 3040; streamConfigBig.bufferCount = 5; // Configuration for the progress frame StreamConfiguration &streamConfigSmall = config->at(1); streamConfigSmall.pixelFormat = libcamera::formats::BGR888; streamConfigSmall.size.width = 1348; streamConfigSmall.size.height = 750; streamConfigSmall.bufferCount = 5;
I'm not setting any controls on the requests yet.
Thanks for your help.
Nick
Statistics: Posted by nickoppen — Mon Aug 12, 2024 9:00 pm