summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/awb_bayes.h
diff options
context:
space:
mode:
authorBarnabás Pőcze <barnabas.pocze@ideasonboard.com>2025-03-07 17:13:17 +0100
committerBarnabás Pőcze <barnabas.pocze@ideasonboard.com>2025-03-21 18:28:28 +0100
commit22dcaeacd03bc4d17fd33bdf17c516a74a1883c5 (patch)
tree7b13e2d1a7d69980702cb26e7550962e97fe1c9f /src/ipa/libipa/awb_bayes.h
parent12931e304a5433e83c037e67e7d40479c8073cc3 (diff)
libcamera: camera: Ensure correct id maps are always setHEADmaster
`Camera::Private::properties_` is a default constructed `ControlList`, therefore it does not have an associated `ControlIdMap`. `controlInfo_` is in a similar situation. Extend the `Camera::Private` constructor to initialize the control id map of both properly. Multiple pipeline handlers copy the sensor's property list and set that as camera properties, and since the `CameraSensor{Legacy,Raw}` classes set the proper id map, the camera properties will have it too. However, some pipelines, e.g. `uvcvideo` or `virtual`, do not do so, and thus there will be no id map set. To fix this, extend the `Camera::Private` constructor to set `properties::properties`. As for `controlInfo_`, all pipeline handlers overwrite it during camera initialization (and thus it will have the correct id map), but still initialize the id map so that it is set at all times. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/awb_bayes.h')
0 files changed, 0 insertions, 0 deletions