libcamera: add a libcamera_set_config() helper function to the wrapper

The libcamera wrapper provides a set of C functions that wraps libcamera's
C++ interface. But there isn't a function to call LibCamera::set_config().
This commit is contained in:
Javier Martinez Canillas 2021-09-21 14:44:13 +02:00
parent 7c11dcf808
commit 2d69f775de
No known key found for this signature in database
GPG key ID: C751E590D63F3D69
2 changed files with 6 additions and 0 deletions

View file

@ -582,6 +582,10 @@ extern "C" {
camera->set_streamcfgpixel_format(fmt);
}
bool libcamera_set_config(LibCamera *camera) {
return camera->set_config();
}
void libcamera_ringbuffer_read_update(LibCamera *camera) {
camera->ring_buffer_update_read_index();
}