Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

Camera board • Re: Setting Camera Parameters Directly in AdjustConfig Method

$
0
0
Things like framerate, shutter, roi (you mean the "scaler crop" control? I wasn't sure) are all runtime controls, and not part of the camera configuration (which is immutable once the camera has been started), which means they are accessed and set using "control lists".

We've never really provided a way for post processing stages to do that as things stand, though I notice that the "app" is available as a protected member of the the stage base class. So you might find that putting something like this in that AdjustConfig method

Code:

    libcamera::ControlList controls;    // set some control values in the list...    app_->SetControls(controls);
might work. Though it feels like it could be made a little lovelier!

Statistics: Posted by therealdavidp — Wed Jul 17, 2024 3:57 pm



Viewing all articles
Browse latest Browse all 3873

Trending Articles