MCPcopy Create free account
hub / github.com/TzuHuanTai/RaspberryPi-WebRTC / SetControls

Method SetControls

src/capturer/libcamera_capturer.cpp:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230Args LibcameraCapturer::config() const { return config_; }
231
232bool 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
240void LibcameraCapturer::AllocateBuffer() {
241 allocator_ = std::make_unique<libcamera::FrameBufferAllocator>(camera_);

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected