| 230 | Args LibcameraCapturer::config() const { return config_; } |
| 231 | |
| 232 | bool LibcameraCapturer::SetControls(int key, int value) { |
| 233 | std::lock_guard<std::mutex> lock(control_mutex_); |
| 234 | DEBUG_PRINT(" Set camera control: %d, %d", key, value); |
| 235 | controls_.set(key, value); |
| 236 | is_controls_updated_ = true; |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | void LibcameraCapturer::AllocateBuffer() { |
| 241 | allocator_ = std::make_unique<libcamera::FrameBufferAllocator>(camera_); |