DescriptionCameraEnumerationAndroid: Make getSupportedFormats() an interface
Enumerating camera capabilities in the deprecated android.hardware.Camera interface is really slow because of the need to open and release the camera. By making getSupportedFormats() an interface, we allow apps the opportunity to inject their own implementation, such as storing the supported formats offline in the device's internal storage. It will also be possible to add an implementation of getSupportedFormats() using the new android.hardware.Camera2 interface in a follow-up CL.
R=tommi@webrtc.org
Committed: https://chromium.googlesource.com/external/webrtc/+/c252dabbd6bc98b0f725d221e58431128d4eed07
Patch Set 1 #Patch Set 2 : add Override and fix init() comment #Patch Set 3 : Enumera all cameras on first call #Patch Set 4 : nit: Fix comment #
Total comments: 2
Patch Set 5 : Release camera in finally clause #
Messages
Total messages: 7 (1 generated)
|