|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| 1.0/ | | 22-Nov-2023 | - | 2,308 | 2,006 |
| 3.2/ | | 22-Nov-2023 | - | 4,163 | 3,506 |
| README.md | D | 22-Nov-2023 | 2.8 KiB | 77 | 51 |
README.md
1## Camera Device HAL ##
2---
3
4## Overview: ##
5
6The camera.device HAL interface is used by the Android camera service to operate
7individual camera devices. Instances of camera.device HAL interface can be obtained
8via one of the ICameraProvider::getCameraDeviceInterface_V<N>_x() methods, where N
9is the major version of the camera device interface.
10
11Obtaining the device interface does not turn on the respective camera device;
12each camera device interface has an actual open() method to begin an active
13camera session. Without invoking open(), the interface can be used for querying
14camera static information.
15
16More complete information about the Android camera HAL and subsystem can be found at
17[source.android.com](http://source.android.com/devices/camera/index.html).
18
19## Version history: ##
20
21### ICameraDevice.hal@1.0:
22
23HIDL version of the legacy camera device HAL. Intended as a shim for devices
24needing to use the deprecated pre-HIDL camera device HAL v1.0.
25
26May be used in HIDL passthrough mode for devices upgrading to the Android O
27release; must be used in binderized mode for devices launching in the O release.
28
29It is strongly recommended to not use this interface for new devices, as new
30devices may not use this interface starting with the Android P release, and all
31support for ICameraDevice@1.0 will be removed with the Android R release.
32
33This HAL interface version only allows support at the LEGACY level for the
34android.hardware.camera2 API.
35
36Subsidiary HALs:
37
38#### ICameraDevice1PreviewCallback.hal@1.0:
39
40Callback interface for obtaining, filling, and returning graphics buffers for
41preview operation with the ICameraDevice@1.0 inteface.
42
43#### ICameraDevice1Callback.hal@1.0:
44
45Callback interface for sending events and data buffers from the HAL to the
46camera service.
47
48### ICameraDevice.hal@3.2:
49
50HIDL version of the baseline camera device HAL, required for LIMITED or FULL
51operation through the android.hardware.camera2 API.
52
53The main HAL contains methods for static queries about the device, similar to
54the HALv3-specific sections of the legacy camera module HAL. Simply obtaining an
55instance of the camera device interface does not turn on the camera device.
56
57May be used in passthrough mode for devices upgrading to the Android O release;
58must be used in binderized mode for all new devices launching with Android O or
59later.
60
61The open() method actually opens the camera device for use, returning a Session
62interface for operating the active camera. It takes a Callback interface as an
63argument.
64
65Subsidiary HALs:
66
67#### ICameraDevice3Session.hal@3.2:
68
69Closely matches the features and operation of the pre-HIDL camera device HAL
70v3.2, containing methods for configuring an active camera device and submitting
71capture requests to it.
72
73#### ICameraDevice3Callback.hal@3.2:
74
75Callback interface for sending completed captures and other asynchronous events
76from tehe HAL to the client.
77