Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8526b697 authored by Ivan Vecera's avatar Ivan Vecera Committed by Luca Stefani
Browse files

Camera: Maintain set of non-external cameras

External cameras are currently identified by comparison of camera ID
and stored number of legacy cameras reported by camera HAL. This simple
check assumes that a legacy camera ID belong to range <0,
mNumberOfLegacyCameras>.

Some camera HALs support camera ID remapping so its legacy camera IDs
can be arbitrary number also outside the specified range.

Maintain the set of non-external (legacy) cameras and use this set to
check if particular camera is legacy or external one at existing places.

Change-Id: I78670a39b2c6f650d49d666c521335b7167a594a
parent 2a6684e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment