Commit Graph

62 Commits

Author SHA1 Message Date
Steven Moreland
3556da3b4a Add include/hardware/*.h symlinks.
These are required to build. Separate CL to preserve blame history.

From running 'update-includes.sh' script here.

Bug: 37280010
Test: boot/build (sanity)
Change-Id: Id9c2dc37f674b27b947a9f823bd38a550d64d31b
2023-06-02 23:01:56 +00:00
Steven Moreland
d783cabd4d Split up headers.
This splits headers into three locations:
include - for backwards compatibility, the global include
include_all - for things system/vendor both use
include_vendor - for things that only vendors use

The goal is to gradually have system things stop referencing
(at least most) of these headers.

Bug: 37280010
Test: build (CL on top adds back in symlinks)

Change-Id: Ibf194276b7faa857e1e7605d7719f4e7d873ecba
2023-06-02 23:01:54 +00:00
Emilian Peev
654acbee66 Camera: Update 'CAMERA3_MSG_ERROR_RESULT' comments
Extend "CAMERA3_MSG_ERROR_RESULT" comments and describe
how Hal must notify about physical device result failures
and logical device result failures.

Bug: 128835627
Test: Successful build
Change-Id: I935fba5a5676a0fe9440f43b281fc9eeb50578ea
2019-03-21 13:59:59 -07:00
Yin-Chia Yeh
c861e4c9e7 Merge "Camera: remove stream_configuration_counter" 2019-02-20 19:02:18 +00:00
TreeHugger Robot
d8771edc84 Merge "Camera: clarify unknown error logic in buffer request" 2019-02-14 19:58:05 +00:00
Yin-Chia Yeh
bf1010312e Camera: remove stream_configuration_counter
The race condition is now handled by default HAL wrapper so
we don't need to send this information to HAL implementation.

Test: Pixel 3 + Camera CTS + GCA
Bug: 120986771
Change-Id: I48e611ba45d45ebf34359e828bcb23cb6eec4af2
2019-02-13 15:13:10 -08:00
Emilian Peev
d22172150f camera3: Add support for session parameter queries
Enable Hal to trigger or skip stream reconfiguration
based on session parameter updates.

Bug: 122609098
Test: Manual using application,
VtsHalCameraProviderV2_4TargetTest
--hal_service_instance=android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
--gtest_filter=CameraHidlTest.configureStreamsWithSessionParameters
Change-Id: Ie931e7cb7f46257276cc1796fccd301c85a90d85
2019-02-12 11:06:57 -08:00
Yin-Chia Yeh
ace57bad57 Camera: clarify unknown error logic in buffer request
Test: N/A. doc update
Bug: 120986771
Change-Id: Ibf4ac8c4618f06f7075ff762f8e1461211cdea7b
2019-02-08 14:57:30 -08:00
Shuzhen Wang
f43b544c0e Camera: Add HEIC encoding support
- Add new BlobId to specify JPEG APP segments.
- Add new gralloc usage flag for HEIC encoder.

Test: testHeic CTS test
Bug: 79465976
Change-Id: Ie70654504eecb280e3a51b60c104124035c5fbe5
2019-02-04 18:18:09 -08:00
Yin-Chia Yeh
875df2a3f4 Camera: add device 3.6 and buffer management APIs
Test: compile
Bug: 120986771
Change-Id: I1e73f70ba05a08e80dcb0c55bb4f54671f201746
2019-01-28 10:10:57 -08:00
Eino-Ville Talvala
8a6fed0d28 Camera: Revise MOTION_TRACKING capability
Simplify the API for the P release.

Test: Revised Camera CTS passes
Bug: 63629224
Change-Id: Ib8379f928dbdb6c66850d7648ac814fe710bb104
2018-02-05 16:29:09 -08:00
Shuzhen Wang
1d4c09e83e camera3: Add physical camera id field in capture result
- Add an array of physical camera ids and metadata when physical
cameras are requested within a logical multi-camera.
- Physical camera ids and metadata are only necessary for the final
capture_results, not the partial result.
- Physical camera ids and metadata must not be populated if no physical
camera is requested.

Test: Compile
Bug: 64691172
Change-Id: I78b20fe3d0c6462abf95b8fe7e3b4c66b3acefdf
2018-01-24 18:14:13 -08:00
Eino-Ville Talvala
cc1aa87b19 Camera3: Add new MOTION_TRACKING template enums
Bug: 70565622
Bug: 63629224
Test: Builds, CTS passes
Change-Id: I927776d042b74013cf24c342b107a5aee1ad26a2
2018-01-23 00:23:32 -08:00
Emilian Peev
92261ffa2e camera3: Extend camera capture request for multiple cameras
The legacy camera 3.5 API should allow clients to set individual
settings for specific physical cameras that are part of
a logical multi-camera. 'camera3_capture_request_t' must
include additional arrays containing the required settings
and corresponding camera ids.

Test: Manual using camera application,
camera_client_test
Bug: 64691172

Change-Id: I634f1d5b87a6d97c5a35b8ea633c7a6c22793eaf
2018-01-19 17:28:28 +00:00
Shuzhen Wang
bf39eb54de camera3: Add logical camera support in HAL 3.5
- Add ability to specify the camera id to which a particular camera3_stream belongs.
- Update documentation about the camera characteristics of logical camera.

Test: Camera2.apk and GoogleCamera.apk
Bug: 64691172
Change-Id: Ie2e235e8bc8124596785db8dad25549bec4232aa
2018-01-18 16:53:49 -08:00
Emilian Peev
eec2ee9633 camera: Bump device version to 3.5
This version update adds support for session keys and
session parameters.

Bug: 64450664
Test: Camera CTS

Change-Id: Id14dbde5083c974b86b942dfd6e904dbe85e0ee5
2017-12-11 15:06:34 +00:00
Shuzhen Wang
07a5cd5650 camera3: Add doc for combined stream use flags
Specify the HAL behavior when stream usage flag is combination for
multiple consumers.

Test: Compile
Bug: 33777818
Change-Id: If11de5d249b1a8366dad7ec14e5e35f9cfc06ce4
2017-03-20 09:26:42 -07:00
Shuzhen Wang
13a19e11e6 Camera: Update camera3.h doc for high speed video batching
Now cameraservice only sends one shutter notify and capture result to
the application per batch.  Update the HAL interface doc to reflect this.

Test: Compiles
Bug: 35775704
Change-Id: I290ef93f842f4a02e5bdaeb0e50298f79fcef602
2017-03-14 14:06:59 -07:00
Eino-Ville Talvala
cd86b0ddcc Camera3: Add camera device HAL v3.4
- Few additional mandatory static metadata fields
 - Different dataspace encoding than HAL v3.3
 - A few additional general-use metadata fields

Bug: 27344373
Change-Id: I218cc9fa70d1227cd96155e126edcf9be699ea2d
2016-03-09 14:54:38 -08:00
Eino-Ville Talvala
85fdb3ff7d Camera3: Document behavior of flush() corner cases.
Document how HAL should operate when process_capture_request is
called while a flush() call is active.

Bug: 21506384
Change-Id: Ic1842add68123432e49914e83d8f7d5c13d6650d
2015-06-10 14:58:32 -07:00
Chien-Yu Chen
bbbcd516a3 Merge "Camera3: SHUTTER event for reprocessing" into mnc-dev 2015-06-01 17:25:43 +00:00
Chien-Yu Chen
73b49ebbf4 Camera3: SHUTTER event for reprocessing
Clarify that the SHUTTER event should be sent when HAL
start processing a reprocess request but the timestamp
should be the input image's start of exposure.

Bug: 21112186
Change-Id: I5bd32b749adc5e82e9a311ec4b123fd807a30d36
2015-06-01 10:21:16 -07:00
Zhijun He
21126b78e3 camera3: add camera3 stream configuration mode
This will be used for creating high speed capture session.

Bug: 21442271
Change-Id: I51feaec83de3d402decca7e4da79be85844536b4
2015-05-28 15:24:56 -07:00
Yin-Chia Yeh
5407ef1ec2 Camera: Fix tests per camera service interface change
Also clarify rotation field has no meaning and will always be 0
for a input stream.

Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
2015-03-16 13:11:11 -07:00
Yin-Chia Yeh
e004208025 Camera3: Add rotation field to camera3_stream_t
This allows application or framework request HAL to perform a
rotation of 0, 90, 180 or 270 degrees counterclockwise. Currently
there is no plan to support arbitrary rotation angles.
HAL should return -EINVAL if the requested rotation cannot be
supported.

Change-Id: I8bde2bcfd797c408db4d5b391b170a4e856ec2d0
2015-03-12 13:34:42 -07:00
Eino-Ville Talvala
453c790395 Camera3: Add dataspace to camera HAL device stream configuration
The dataspace field communicates extra context about the requested
stream configuration. For most graphics formats, the dataspace
indicates the desired colorspace out of the output buffers.  For some
formats, the dataspace may indicate that depth output is requested
instead.

Change-Id: I6746d9097b4dc36af0a63ca88df75f32a77db90b
2015-03-09 12:54:15 -07:00
Zhijun He
ebdf1286e7 camera3: update reprocessing spec
Also bump the HAL version to 3.3 for reprocessing spec update

Change-Id: I37eda90970eace23c42ba9106d4db1587df8d1b4
2015-01-29 16:42:23 -08:00
Zhijun He
b2bc0e5182 camera3: update ZSL spec
INPUT stream is not used by framework-implemented ZSL (HAL3.2), the sample
use case description is incorrect.

Bug: 19197776
Change-Id: I247ad8755b2197c2a62cc109c151749b42a4bd49
2015-01-29 14:44:37 -08:00
Eino-Ville Talvala
b545983975 Camera HALs: Promote device HAL v3.2
And deprecate older HALs.

Bug: 17445920
Change-Id: I37a5e53fda3c93080e37ec848f84c702a2c9120b
2014-09-10 11:13:16 -07:00
Zhijun He
52a188993a camera3: fix some spec issue related with input/bidrectional stream
Bug: 13934977
Change-Id: Ibccb80e69ac9da153de6378f1e3b0f00527ce4c9
2014-07-08 13:59:41 -07:00
Zhijun He
1ab5c5e037 camera3: Update FULL/LIMITED operational modes
Change-Id: I2a76361868a2ab3cc1dafb08905d5f5d53052a6d
2014-05-28 15:25:42 -07:00
Zhijun He
f1ee67e1ea camera3: Update the HAL spec for raw cropping behavior
Bug: 15168075

Change-Id: I035fc833cb122a7caa4cf47a1d5be574d4727345
2014-05-22 17:48:51 -07:00
Zhijun He
44a8915187 camera3: Update camera3_jpeg_blob_t for max jpeg size change
We no longer have a single max jpeg size for all resolution jpeg streams.

Bug: 14288983
Change-Id: I2c96d7c473901d7f419d0da9c2947fec095834a9
2014-04-28 11:33:23 -07:00
Ruben Brunk
2d96c743e6 hal3: Update documentation regarding hardware block operating modes.
Change-Id: I27987a75cb80c67f7e9ae71c116a26963b25eccb
2014-03-27 17:56:17 -07:00
Eino-Ville Talvala
d3dead483c Merge "camera3: Docs updates to line up with metadata changes" 2014-02-11 17:53:40 +00:00
Eino-Ville Talvala
c5bff0d955 camera3: Docs updates to line up with metadata changes
Change-Id: I3065c9f1d905a4e7d0bb6eef2b4556c81a0788fe
2014-02-10 16:43:26 -08:00
Zhijun He
06da1b3745 camera3: fix typo in camera open KPI
Change-Id: Ieefdc5a0f5159a3053e141075e71d268499746ed
2014-02-10 16:04:23 -08:00
Zhijun He
ceac9e3651 camera3: Add input buffer field in capture result
For HAL3.2 or above, the HAL must return the input buffer in capture result
rather than capture request.

Change-Id: I0108cda1cdf51556d7273b2c3cfbaf0e6ecd1d76
2014-02-07 14:47:25 -08:00
Zhijun He
bc35868a6f camera3: update BIDIRECTIONAL and INPUT stream specs
Also add the manual template to the version history.

Change-Id: I0a516ccbbd3600d69217502e19b267e2d3aa60e8
2014-02-04 17:05:56 -08:00
Zhijun He
06c72f6bd7 Merge "camera3: Update flush HAL API spec" 2014-02-04 01:04:16 +00:00
Zhijun He
2020ee299c camera3: Add camera close KPI
Change-Id: I265750ade49c63beedd3d9d0f2b8e7b3d19cc38f
2014-02-03 13:21:13 -08:00
Zhijun He
5a5fbf489e camera3: Update flush HAL API spec
Change-Id: I4e36dcc4445c2fae71fe4ce22a0f3b9a28abe1c0
2014-02-03 13:04:05 -08:00
Igor Murashkin
5df2f622b9 camera3: Add partial result processing in HAL3.2
Change-Id: I665cf1191a1c7510671b3c171b47c167530c1067
2014-01-17 18:26:59 -08:00
Igor Murashkin
78aa126e23 camera3: deprecate register_stream_buffers in hal 3.2
Change-Id: I7efabcba9b47846e831ffdf75ba1ea3c7e5ff629
2014-01-17 17:05:11 -08:00
Zhijun He
709e5878b8 camera3: wording fix for KPI
Change-Id: I4172fcdda3452eced663e332d509dea2594c1710
2014-01-17 15:25:21 -08:00
Zhijun He
2dde4685c2 Camera3: Add performance KPI requirement
Change-Id: I2133736b9e00b170200308982e591f311e1f04f7
2014-01-17 15:17:40 -08:00
Ruben Brunk
61cf9eb920 camera3: Update vendor tag spec for HAL 3.2.
- Deprecates vendor tag specification in camera3 device.
- Moves vendor tag ops declaration to camera metadata library and
  cleans up definitions.
- Updates the example HAL.

Change-Id: Ifb16bb0d4bbc896bc32d33dd150e7e174af57dad
2014-01-16 18:27:08 -08:00
Zhijun He
b0c939fb6b camera3: Add manual control template
Bug: 12134077
Change-Id: I0681f881f41dd3ab8acab400f84c2568a97e06bc
2013-12-13 15:56:33 -08:00
Eino-Ville Talvala
4d45d30d4e Camera3: Add PASSIVE_UNFOCUSED AF state and clean up INACTIVE
Needed to support the real case of continuous focus giving up on a
scene for a while (say, a blank wall), during which we shouldn't claim
the lens is in motion.

Also add new states for INACTIVE to clarify it as the starting state
after mode transitions or enabling AF/AE/AWB.

Bug: 10860639
Bug: 10446772

Change-Id: Ie4c1ac73e5a9eb6d1894d83dbded49a2767a8ffd
2013-09-20 18:02:06 -07:00
Eino-Ville Talvala
9d51856d71 Camera: Add new 3.1 device version
- Add new definition to camera_common
- Update comment in camera3.h

Change-Id: I9d8c594cfdaff40c543e8f9017091b0c06bbf022
2013-07-30 15:03:50 -07:00