Commit graph

1586 commits

Author SHA1 Message Date
Mathias Agopian
3ce8f0277c always pass the BufferQueue explicitely to consumers
Change-Id: Ie13b251d6bfadd533fa045ec5d3299ee8ae752af
2013-07-12 22:06:45 -07:00
destradaa
d542a20074 Merge "Update FLP HAL definition for thread semantics." 2013-07-13 00:59:04 +00:00
Eino-Ville Talvala
007c86da6b Merge "Camera tests: Add variable burst test" 2013-07-13 00:10:41 +00:00
destradaa
b89487944d Update FLP HAL definition for thread semantics.
Change-Id: I3dd1f5c72f0fa62a131b7ce166f3df631bb44394
2013-07-12 17:05:15 -07:00
Eino-Ville Talvala
7d831712b3 Camera tests: Add variable burst test
By default, this test runs through a range of application-set
exposure, frame duration, and sensitivity values, and verifies
that the duration of capture, and in some cases the brightness,
match what's expected.

Optionally, it can use environment variables to specify the
burst parameters, and to enable dumping the captured YUV images
to flash for later debugging.

Change-Id: I647d360344ef3684e99c86c369e96ac82e62fc96
2013-07-12 10:21:21 -07:00
Etienne Le Grand
00dcc21ea9 Merge "Clarify some comments in the sensor HAL" 2013-07-12 16:17:53 +00:00
Mathias Agopian
2260585d37 Merge "bump HWC version to 1.3, add support for float crop rectangle" 2013-07-10 23:10:48 +00:00
Mathias Agopian
3b4732c9d5 bump HWC version to 1.3, add support for float crop rectangle
Change-Id: I8601ecc9f39052000b872805be1637ee73b0d3e1
2013-07-10 15:03:00 -07:00
Etienne Le Grand
f770b7a9b9 Clarify some comments in the sensor HAL
Step count can reset when android restarts
When calling activate() without calling setDelay() before, use a default rate
Uncalibrated magnetometer should not be low pass filtered
The accelerometer can be used for the geomagnetic rotation vector
When batching call retuns an error, it shouldn't change the state. In particular, it shouldn't change the rate.
batch(timeout=0) must always return success
Wake upon fifo full will never be specified when timeout=0
setDelay is not called when in batch mode

Change-Id: I8a437eeedbdc54e5f1f3e644a92e9f781d7add0d
2013-07-10 14:44:27 -07:00
Alex Ray
9cd49c9c4e modules: camera: simplify metadata list traversal
keep traveling pointer local to the walking loop

Change-Id: I0038007d6e7a45e519b9b2162c674132477879cc
2013-07-09 12:59:42 -07:00
Alex Ray
764e442baf modules: camera: Shutter notify message support
The shutter callback timestamp should originate from the sensor itself,
since it knows exactly when the first line of the frame started
exposing.  However, as a fallback (or in the CPU-painting case) query
CLOCK_BOOTTIME instead.

Change-Id: Id57c05525e9c575d009b9deb96a69557fccac16b
2013-07-09 12:19:04 -07:00
Alex Ray
ef079d59d1 Merge "modules: camera: make Metadata a delete-able object" 2013-07-09 19:18:35 +00:00
Alex Ray
18900a8434 Merge "modules: camera: only wait on valid acquire fence" 2013-07-09 19:18:18 +00:00
The Android Open Source Project
1d9b183468 am cb7f5b94: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
* commit 'cb7f5b94a3d683f297ddf839ca4aa897e0927139':
2013-07-08 15:52:25 -07:00
The Android Open Source Project
cb7f5b94a3 Reconcile with jb-mr2-zeroday-release - do not merge
Change-Id: I2c24ec07adc57969cc48647a07afca7337923d51
2013-07-08 15:35:35 -07:00
Mathias Agopian
ea83a4b7af Merge "be more explicit about 64 bits values in sensor events" 2013-07-08 22:33:54 +00:00
Mathias Agopian
27e16688ec be more explicit about 64 bits values in sensor events
Change-Id: I61e4832ff2c721987c38897924b1b50b758384da
2013-07-08 15:30:54 -07:00
The Android Automerger
f780878cd2 merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev 2013-07-08 05:55:35 -07:00
Alex Ray
90c0af71f6 modules: camera: make Metadata a delete-able object
Metadata is currently only used for immutable persistent settings
(static camera characteristics, and the capture templates), but will be
used for dynamic metadata as well.  Make it deleteable so we can
create/destroy these at will.

Change-Id: I7372b07b904d5a6b55453093712e0bb2675918b5
2013-07-03 14:32:59 -07:00
Alex Ray
77ecfd76d7 modules: camera: only wait on valid acquire fence
Change-Id: I4f51e509d86722c18308f4f1312ca3379cffd795
2013-07-03 14:32:59 -07:00
Alex Ray
2b286dab84 modules: camera: Write back stream parameters
max_buffers and usage are read by the framework inside the struct used
to pass the stream configuration parameters;  scribble our new
calculated values whever they are updated internally.

Adds logging to stream creation method (reuse/new).

Change-Id: I04e12880820571900f2ae80c27100f8aedcf9d02
2013-07-03 18:01:54 +00:00
Alex Ray
768216ee2c modules: camera: Fix stream type characterization
Type is now enum, not mask.

Change-Id: I264da26a457957a7659154e507970e0303c76e25
2013-07-03 18:00:21 +00:00
Alex Ray
0d2a5220ba modules: camera: Dirty metadata objects on update
Change-Id: I4fbd4ad919b855168e3ff5424613271b1fa907af
2013-07-03 10:55:04 -07:00
Alex Ray
89a82661e0 modules: camera: default request templates
Change-Id: I0a4b389e1850c10e12a65b3c8a5670c78c6746f7
2013-07-02 15:47:50 -07:00
Eino-Ville Talvala
b5622ae960 am 43c754f4: am 4c543a14: Enable native HAL tests to work for camera3 devices
* commit '43c754f49c0cbd31f3a067b6bff4b98829cb3811':
  Enable native HAL tests to work for camera3 devices
2013-07-02 12:41:26 -07:00
Eino-Ville Talvala
43c754f49c am 4c543a14: Enable native HAL tests to work for camera3 devices
* commit '4c543a1456cd34a94e2c3a09879aa65ed8cd2f3a':
  Enable native HAL tests to work for camera3 devices
2013-07-02 12:36:39 -07:00
Alex Ray
c6bf2f291d modules: camera: fix compiler warnings
Change-Id: Id1aa624d377776a7e37b52978664d30c927595be
2013-06-28 21:07:42 +00:00
Alex Ray
c6d5e3757b Merge "modules: camera: add get_camera_info support" 2013-06-28 21:07:01 +00:00
Alex Ray
b0be1039c1 modules: camera: add get_camera_info support
Basic static metadata statically constructed from preprocessor passes
over an array of camera metadata tags.

Change-Id: I16ea9f4d68120d5a0bc010a4a67b0cbcd761329e
2013-06-28 13:52:50 -07:00
Eino-Ville Talvala
4c543a1456 Enable native HAL tests to work for camera3 devices
Change-Id: Ie11270cc8cf301ec94795b595f0517ee3bad2817
2013-06-27 18:02:24 -07:00
Richard Fitzgerald
f37f187bba Add defines and support for audio offload
- Add non-blocking write support, set_callback() function
- Add pause, resume, flush, drain functions to audio output stream
- Add audio parameter defines for compressed audio metadata
- Extend audio_config_t to include an audio_offload_info_t field
- Add is_offload_supported() function to test whether there is
    hardware decode support for a given compressed audio format
- Change audio_stream_frame_size() to handle offloaded streams.
    For an offloaded stream the size is always counted in bytes
    (frame size == 1) and the number of channels is irrelevant.

Change-Id: I5b82c3fdcfa1456502d0042888f166bf02d8d54b
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Eric Laurent <elaurent@google.com>
2013-06-27 17:16:24 -07:00
The Android Open Source Project
6a96df3b33 am 0ab04716: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
* commit '0ab04716dcb05f085edcc80bbed3ecefcbec9c46':
2013-06-26 12:37:51 -07:00
The Android Open Source Project
0ab04716dc Reconcile with jb-mr2-zeroday-release - do not merge
Change-Id: I645db66e377a7f385129f72507f19036d4029445
2013-06-26 12:33:43 -07:00
The Android Automerger
01ad343cdf merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev 2013-06-26 12:17:24 -07:00
Iliyan Malchev
12dc899cb6 am 1b8e21aa: am 1a70c0fd: libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE
* commit '1b8e21aa2d4a48c3c0777929e723817995881f70':
  libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE
2013-06-25 19:02:03 -07:00
Iliyan Malchev
1b8e21aa2d am 1a70c0fd: libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE
* commit '1a70c0fd39eed070c2c28fc0731fa689d15931c4':
  libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE
2013-06-25 19:00:07 -07:00
Iliyan Malchev
1a70c0fd39 libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE
Bug: 9581070
Change-Id: Ifb47ed0d4fc201732ca6593d41317ec356ead2ba
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-06-25 18:55:59 -07:00
Jaikumar Ganesh
e61cdea04b Merge "Changes to fused location hardware hal." 2013-06-26 01:28:35 +00:00
Mekala Natarajan
d3d8cd25e9 am a2ce3e82: am 501fc0f1: Power: Add multimedia hints
* commit 'a2ce3e82d5b3667683f3b413e9896fa30b2a9e11':
  Power: Add multimedia hints
2013-06-25 17:02:04 -07:00
Mekala Natarajan
a2ce3e82d5 am 501fc0f1: Power: Add multimedia hints
* commit '501fc0f18249468d485415a3a7f892c644271e63':
  Power: Add multimedia hints
2013-06-25 15:11:07 -07:00
Kevin Tang
d2c966fa2b Changes to fused location hardware hal.
1. Added some comments.
2. Added device context information.

Change-Id: I0db21778b60339c92b4951aee4facb1148020198
2013-06-25 14:27:46 -07:00
Alex Ray
5f2fd854b3 camera3: Add flush
Flush is used to quiesce a camera device as quickly as possible, which
can be used to deal with a pathological client (requests a frame
duration of hours then dying) as well as speed up stream configuration
changes when the outstanding requests data isn't required.

Change-Id: Ie822efae8c705bd64d63c0eab7e9c291ecb570ef
2013-06-24 14:01:00 -07:00
Alex Ray
2ce219a746 camera3: Pass consumer information in configure_streams
HALs seem to need to know the gralloc usage flags of the opposite
endpoint (producer/consumer) of a stream at configure time.
Instead of adding another call to pass stream information, we just
pass the usage flags in the existing usage field.

Change-Id: I745baf2c4dd9123273d811b9bd52ae68c854b70c
2013-06-20 18:28:57 -07:00
Mekala Natarajan
501fc0f182 Power: Add multimedia hints
Add hints for video encode and decode use cases. These
hints are sent when the relevant use case starts and ends.
Clients can also send metadata along with the hint to provide
context to the power HAL so that it can make more informed
decisions about how to tweak system-level parameters.

Bug: 9325608
Change-Id: I4731acbe50a7401a95ec9231c4e1a4795098fcd4
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-06-20 09:54:28 -07:00
Jaikumar Ganesh
fbec860986 Merge "Fused Location Provider HAL interface." 2013-06-11 21:01:37 +00:00
Jaikumar Ganesh
b951dee9e6 Fused Location Provider HAL interface.
Fused location allows for fusion of information from
multiple source like GPS, Wifi, Cell, Bluetooth, Sensors etc
to get a location. Doing this in hardware is useful because
it can be done completely in the baseband without waking up the AP.

Change-Id: Ib007839ff51b7e87e8d62f0ff9fea1c4a474b1d1
2013-06-11 11:45:04 -07:00
Zhihai Xu
a17b75bb17 Add debug menu to enable btsnoop
bug: 8059358
Change-Id: Ib28ffe12d9b42726a0c12ecb144624862745e9ca
2013-06-10 20:23:45 -07:00
Alex Ray
083315c85b modules: camera: No-op result submission with request
Change-Id: If4e377ba0ac327cc02ac2b9765ce5d406b8960a8
2013-05-29 03:39:00 +00:00
Alex Ray
11bbeefaf9 modules: camera: Input buffer reprocessing scaffolding
Change-Id: I158ba833549aee47ca3be5673f6f5d33e455ef59
2013-05-29 03:38:20 +00:00
Alex Ray
bfcbd95a1f modules: camera: memoize request settings metadata
Change-Id: I19c3a6a55a42e60f627702cd4a995664a0dfc4d2
2013-05-29 03:36:19 +00:00