• Home
  • History
  • Annotate
  • only in /hardware/qcom/camera/QCamera2/HAL3/
History log of /hardware/qcom/camera/QCamera2/HAL3/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
742f098783e5ecd6370dcf9ef7648e82f64181bb 14-Jan-2014 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Clean up ALOGE calls in non-error conditions [DO NOT MERGE]

Use ALOGI/ALOGD instead.

Bug: 12489802
Change-Id: Id7fc9147395af3a9a0fe135d1017a155aad174fb
Camera3Channel.cpp
Camera3HWI.cpp
Camera3PostProc.cpp
Camera3Stream.cpp
c02002680eb7bc95a9ba7d6af5111cca6191aacb 28-Jan-2014 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Only use Plain Old Data for global variable

When a shared library is loaded, the order in which its global
variables is not defined. For example, for case like below:

A a;
int *ptr = NULL;

Class A {
A() {
if (ptr == NULL) {
//do this;
} else {
// do that;
}
}
};

ptr could be initialized before or after A, which causes the
behavior of A's constructor to be different.

The fix is to use Plain Old Data (integer, float, char, or pointer)
as global variable, and defer instantiation of class instance to
runtime.

Bug: 11822202
Change-Id: I806c527f06e19fc44e880d9a536ee7a060b4fa4f
Camera3Factory.cpp
197b2d69f161782080fe19332333f345b37ea155 14-Nov-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera: Increase MAX_EXIF_TABLE_ENTRIES to 17" into klp-dev
842d685aa593c35533b607d3c3f6ccd74d801fa3 14-Nov-2013 Sungmin Choi <sungmin.choi@lge.com> Camera: Increase MAX_EXIF_TABLE_ENTRIES to 17

Because of adding EXIF DateTimeDigitized entry,
should increase MAX_EXIF_TABLE_ENTRIES.

Bug: 11693325
Change-Id: I9cdd85a12e6e0bd577a020075c357214145ea1e9
Camera3PostProc.h
f7ce236f576484aae64ca6885248744f41c7ba0a 14-Nov-2013 Vineeta Srivastava <vsrivastava@google.com> Revert "Camera3: Adjust 3A regions based on FOV crop"

This reverts commit f786a1752f316a67a7687e1bde5feb66ff3e2e47.

Bug: 11688635

Change-Id: I241dc5148db9a3ff30bd749a4789f2102b673336
Camera3HWI.cpp
Camera3HWI.h
cc0a016e6051847dfe4ccfd015f38b9d94093c64 13-Nov-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Use Stream Identity instead of Stream type

Since there is a use case with two Call back streams, send Stream ID's
instead of Stream mask alone through Set Parm.

Bug: 11293776
Change-Id: I7c3c0c180482a0eb5843c4ff2176a4bceb99bdb0
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
f786a1752f316a67a7687e1bde5feb66ff3e2e47 11-Nov-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Adjust 3A regions based on FOV crop

Intersect AE and AF regions with FOV CROP window. For AWB regions,
intersect them with active region instead.

Bug: 11614033
Change-Id: I8c723ea08ee17b2fe28e19a4eead1b5f02be48b1
Camera3HWI.cpp
Camera3HWI.h
513aa7f18cb506cca3c94a5911bf6e5cf822a3a1 12-Nov-2013 Eino-Ville Talvala <etalvala@google.com> HAL3: EXIF: Set DATE_TIME_DIGITIZED to match DATE_TIME_ORIGINAL

Bug: 11632530

Change-Id: Ia6b0fc7b56331dbe8fb93a354e8fe464cf44f2af
Camera3Channel.cpp
90d91b45cca7f6a41c192dc800ec1d39fc255435 08-Nov-2013 Zhijun He <zhijunhe@google.com> Revert "Revert "Camera3: Work around for streams with different o/p rates""

This reverts commit d897e24270f74b8266a37e01a1dd2f4797b13258.

Bug: 10914356
Camera3Channel.cpp
3cf45155bb833d30f02ca71c3255c0e4580868ff 11-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> QCamera3: Adding Urgent Metadata

Adding urgent Metadata to report 3A states as quickly
as possible

Uses HAL3.1 quirk field for partial results.

Bug: 11115603

Change-Id: I6cdb65dd7cb6d23ef9de244cbb55ebc1a653590f
Camera3HWI.cpp
Camera3HWI.h
5ed08cd1e23e6776bce33ac6d9c68a42106c1e7c 30-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Reduce log spam

Bug: 11431304
Change-Id: I9f641188d3ae5c131ed1cd687300cc2b8ccd380e
Camera3HWI.cpp
Camera3Mem.cpp
dd60b0cec98a84145dd88747b5cb642da3123802 15-Oct-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Additional hints for callback

Bug: 11011342
Bug: 11201229

Change-Id: I11988f312fc66f9426c4f751cc8a07adbf1357dc
Camera3HWI.cpp
Camera3HWI.h
b7d60b47be821f96a510448617817514884130c5 16-Oct-2013 Sungmin Choi <sungmin.choi@lge.com> camera: Increase MAX_EXIF_TABLE_ENTRIES to 16

Bug: 9396502
Change-Id: I70f8172c6d05088304095913538287a9a4e10545
Camera3PostProc.h
d5f61de0ee009019498df7cd7756e834504cc441 15-Oct-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Query camera during initialization" into klp-dev
1ec67d05cfdc9afab16791a15dd4ac69ae94f6ba 15-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Query camera during initialization

- The camera information is queried during
camera factory intitialization. This way
camera capabilities can be retrieved during
the initialization stage and not during the
initial camera client launch.

Bug: 10691058
Change-Id: I94136dec128fb71bd966914e60dc76075e6bd789
Camera3Factory.cpp
f060ebe7f00ea62a029df01482e32b1d57c3efe6 14-Oct-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Validate request rate based on metadata rather than buffers

Bug: 11011342
Change-Id: I68c054027bb8b39ad30b0a3ca932b6cb888409c9
Camera3Channel.cpp
Camera3HWI.cpp
Camera3HWI.h
cc7a1db9ae6ca4ffcaf16d478247489bf40d1cae 13-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Unblock capture_request in correct condition

Previously we were only checking max buffer dequeued when
metadata callback happens. HAL needs to do the same check
in buffer callback.

This change also breaks down the captureResultCb() function
which is long overdue.

This should help improve latency and performance because
we are unblocking capture_request early.

Bug: 11011342
Change-Id: I37a37e78a3534f780b4a92e46ab21f5ae78b5329
Camera3HWI.cpp
Camera3HWI.h
88275babe9ee86e0ec3d99c754f135fd69566d3d 13-Jun-2013 Sungmin Choi <sungmin.choi@lge.com> camera: Add EXIF tag information for maker and model

Bug: 9396502
Change-Id: I3dfa58c9077e147fb891ddd36143ebcc26cdf779
Camera3Channel.cpp
514dd60f8bafe2248fc4200cd691632b1a9eab0f 13-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Handle the way fd stats are sent to frameworks

1) report face detection stats for every frame even if number
of faces is 0
2) Change the array size of the fd stats to MAX_ROI

Bug: 11118844
Change-Id: I3b80028adea3084b32f1153ceea300c823e69390
Camera3HWI.cpp
eb5811c1c2d94877464f2f01bd87a6373e9cdf2c 11-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Reduce the max inflight requests to 4.

This helps reduce latency as long as metadata reporting delay is 1.

Bug: 10712902
Bug: 10570497
Change-Id: If2ba7e947a4f31dae0598bab6862bb95613e4767
Camera3Channel.cpp
e45fa8ac28275910e0a7a8dabcef8cd7ffbfd04a 10-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Change max inflight requests to 5

Maximum inflight request has direct impact on latency such
as shutter lag. Even if the real camera pipeline delay is
5, whenever HAL misses a request on SOF boundary, more requests
are accumulated in HAL. And eventually maximum number of
requests will be in flight.

Profiling shows saving of 100ms when changed from 7 to 5.

Bug: 10712902
Change-Id: Ib00d58a6045f8f545f127ec97f2800f8e3c9dfe6
Camera3Channel.cpp
9bdb10cd8e81bd31408146118ef57bdea6e79891 05-Oct-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix edge mode and add some metadata results

Bug: 10784117

Change-Id: I69c16e48192881e034f7f89ed6b1c22852027542
Camera3HWI.cpp
d1bbfd486e298ac2cc64ad9df0533bb87d6a9a1a 02-Oct-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Clear Metadata channel references" into klp-dev
f49d780c0f2fc137a3463e06537706d8829d6da5 02-Oct-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Clear Metadata channel references

- When metadata channel initialization fails
the channel is destroyed but the reference
to it is kept. This may cause instability
in the destructor when we try to stop and
delete this channel again.

BUG: 11045420
Change-Id: I33fe92fd616a286ff80f5e71831cea2b06550548
Camera3HWI.cpp
34296c8a11c87ca1c00cfaedddd1f9089344ee80 29-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> QCamera3: Scene Mode Fix

Map FACE_PRIORITY mode as Auto Scene Mode, so that
we don't have undefined behavior.

Bug: 11045793

Change-Id: Iaa7a30eef902c2ca0a700c498f88b7c77aa441fa
Camera3HWI.cpp
d8b84ebafc7e91575dce67d99fcc439a140d54c9 26-Sep-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Add frame drop info to metadata" into klp-dev
45465b8d86296ba7aeeb1ee4f9ba07b4bddf1652 26-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add frame drop info to metadata

Add CAM_INTF_META_FRAME_DROPPED to meta data to know whether
any stream buffer is dropped or not. If dropped, send error
notify to framework with CAMERA3_MSG_ERROR_BUFFER and
corresponding buffer status with CAMERA3_BUFFER_STATUS_ERROR.

Bug: 10844261
Change-Id: I1b7e38790c8314fce8895b3ccc51c79b748e7a32
Camera3HWI.cpp
Camera3HWI.h
b7cf952e7ee594c39c377b17f83f4524d9cd1e52 26-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> QCamera3: Passing CAM_INTF_META_LENS_STATE from AF to HAL

Receive CAM_INTF_META_LENS_STATE from AF, the state will be
STATIONARY or MOVING.

Bug: 10621609
Change-Id: I406f8098d63c952ae17330014eb64ebf92d5ef9b
Camera3HWI.cpp
8bb288a4ce754dc25f447d5509f2a8adbb5d1eba 25-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add defaults for some parameters

Add default values for some parameters, which fixes the scaler crop
information reporting bug.

Fixes-bug: 10784055
Change-Id: If115feeaec3dd326bbed99c726251cb92cfd5c49
Camera3HWI.cpp
bb733216b5176a06b2db8f3ee165cb3a8d21babc 25-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> QCamera3: FD statistics correction

Corrected the right eye left position.

Bug: 10772700
Change-Id: I458e0a7cb6badf3d3ded9d66c57380e789602d63
Camera3HWI.cpp
1e7fa1c953c524a9bfca05a103c920e95538d1dc 24-Sep-2013 Iliyan Malchev <malchev@google.com> Merge changes I1409319e,I88a50113,I3de3a6a1 into klp-dev

* changes:
Camera3: Fixes instability during camera close
Camera3: use the correct coordinates in resetIfNeededROI
Camera3: Add the JPEG Info to MetaData
1fca7d2974d2adb729b13ad51600e0b8d8478e48 24-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fixes instability during camera close

- As per documentation 'camera3_stream_t' objects
are owned by the framework and will be freed
before camera close. These objects are not to be
used when the Hal destructor is invoked.

BUG: 10689446
Change-Id: I1409319e7340846ca574b3987132a0ca3bbae8e9
Camera3HALHeader.h
Camera3HWI.cpp
f57748033ad578a1c790668e97ce64530004a3b6 23-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: use the correct coordinates in resetIfNeededROI

Correct the Max width formula with the width + Left.

Change-Id: I88a501132ea7beb5b3d33ee23d2144781ca79216
Camera3HWI.cpp
17c34c93d837a49f778ed0294c3670a30f10396e 23-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Add the JPEG Info to MetaData

Bug: 10783953
Add the JPEG info provided in BLOB request to the result METADATA.

Change-Id: I3de3a6a1e9ccaa2d94fed3efef59c7ee2717907e
Camera3HWI.cpp
Camera3HWI.h
249d8d801ab218ff4920e57fdd4ccf17e1626057 23-Sep-2013 Zhijun He <zhijunhe@google.com> Camera3: replace EDQUOT with EUSERS

EUSERS is used to indicate the failure of opening too many cameras.

Bug: 9802344
Change-Id: I3f15c04211a989c0d558607f295cd5e7c95cd2f3
Camera3HWI.cpp
bc69b970ecb783db68cccad88220340c08ee17a5 20-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix send stream info.

Stream info should be send before register channel
buffers for second channel.

Bug: 10825274
Change-Id: Ieac823ab6a9c08aa57538f1f07b764f731b8b612
Camera3HWI.cpp
d3e9508eb0f78c4911f51d779b4e7f2c4eb6fcc7 20-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Send flash mode to result metadata

Get flash mode from callback metadata in HAL
and propage it to the frameworks

Bug: 10784004
Change-Id: I5e951a99aa87636e2d96a10d6a641410ce66c8c0
Camera3HWI.cpp
7a737278045be557b6b1b8a1bd53033faec67166 19-Sep-2013 Ajay Dudani <adudani@codeaurora.org> camera: exif support using the new metadata structure

1. Change the mm-jpeg-interface to support 2 different version
if the metadata structure.
2. Extract exif data from the new metadata structure

Bug: 10037666
Change-Id: I9be22208ad1be0ce3b852b3920ec1beb10a44d9f
Camera3PostProc.cpp
Camera3PostProc.h
1237194c260eaedcb6384c400b7add966e143c96 19-Sep-2013 Ajay Dudani <adudani@codeaurora.org> camera: Add exif support

1. Add exif extraction from metadata
2. Move Exif to be job based parameter in
mm-jpeg-interface

Bug: 10037666 -- [HH] camera exif header information
Change-Id: I0d98f5ed325880491aa63db6194d539f06ca888c
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3PostProc.cpp
dc43bf6aff74884399727b50bdf705a901b24257 19-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Set name for stream process thread

Name the stream process thread in HAL

Bug: 10609699
Change-Id: Ib272cd237fea8ad9e27994352e7acc7a1f56551c
Camera3Stream.cpp
20439103d45117241ca042f2014afcc3bbbaf72b 19-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Corrects error checking during camera info query

- A specific error code is expected when the camera
indices are invalid. Also we need to check for
negative camera indices.

BUG: 10808362
Change-Id: I4a93d1c120f09f50956b5ad8f7a075cdfb07772a
Camera3Factory.cpp
46b8b4e323c8d827e99eebf6c30cd349012a4475 19-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Removes raw sizes from metadata

- Raw sizes can be advertised in the metadata
only when 'HAL_PIXEL_FORMAT_RAW_SENSOR'
pixelformat is also supported.

BUG: 10808469
Change-Id: I81df4010bd150127e898172ed4c30e9423d76f1d
Camera3HWI.cpp
0f0f251722ee12e53bab3d4e4918e541ebc82722 18-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix memory leaks during preview start/stop

- The array for holding registerd buffer handles
is not released during camera close. Also the
metadata frame allocated in 'QCamera3Stream'
needs to be freed after returning to camera.

Change-Id: Idb9e278583382e08df9c64d20d7f1c2af2488071
Camera3HWI.cpp
6be371a43545858396aed73240eaa1259df60d2d 18-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Populates request ID in default requests

- While constructing default capture requests we
need to include a default request id as well.

BUG: 10803080
Change-Id: I2b1ba4ca8d6a3a416b4389d854d6ffe1dbd9baeb
Camera3HWI.cpp
32d9e5ad33dd580b6273aac830ef99f913a0ce0b 17-Sep-2013 Ajay Dudani <adudani@codeaurora.org> QCamera3: Fix focusRange to be a pair of float value

Change focusRange from single float to float array with a pair of
values.

Bug: 10621609
Change-Id: Ic3f25a83ed3b856dd605d66cd92358a5dcbe5939
Camera3HWI.cpp
c0135523074a13112d8a2f7162bb69de774e17e6 16-Sep-2013 Iliyan Malchev <malchev@google.com> Merge "camera: say no to logspam" into klp-dev
ba7843eb48941909a360512af9d0596790d7d887 16-Sep-2013 Iliyan Malchev <malchev@google.com> camera: say no to logspam

b/10699576
Signed-off-by: Iliyan Malchev <malchev@google.com>

Change-Id: Ic839b570b9c0b2beabe408eccc87a4c05712dfac
Camera3HWI.cpp
c50aa0b12c86779dd886629aa2b98010ea6e2d0b 16-Sep-2013 Zhijun He <zhijunhe@google.com> Merge "Camera3: Use EDQUOT when open multiple camera failed" into klp-dev
65fead1569def915ae55986392c5ee9bcca5ff93 15-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> QCamera3: Populate the base gain factor metadata

The sensor base gain factor is added to camera
capabilities and populated in the metadata.

Bug: 10749994
Change-Id: Ie891d139c1d5de1da8a324ba03618a3c7331a09f
Camera3HWI.cpp
e407efbfc8d1daaa5f0c73eb4130de79c9420a6c 15-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Populate the sensor.exposureTime in initStaticMetadata

Added the Default value of Sensor exposure time in Capability to
Meta Data.

Bug: 10690122
Change-Id: Ic4db8aaa33f28768cd031f547fb14c901918e305
Camera3HWI.cpp
867ab9fde22765039b15b11d630fc99933abd244 15-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix accidentally reverted change in QCamera3HWI

Part of change 3e500ec5abf1463c32e0a783bb63802954005dd8
accidentally reverts 73b2b0e1b5b94d44191188070f3776a984142330.
Somehow git doesn't complain merge conflict when this
happens. This change fixes it.

b/10606535
Change-Id: Ie0511340da2302199f7a3ea7b55fa8e34c879e5c
Camera3HWI.cpp
706d3c51bdf8f3482216d3a90156573bdfa02ef8 15-Sep-2013 Zhijun He <zhijunhe@google.com> Camera3: Use EDQUOT when open multiple camera failed

INVALID_OPERATION is ENOSYS, which is not a appropriate error code for multiple
camera open error code. EDQUOT is more suitable for this case.

Bug: 10749544
Change-Id: Ib5f05a82bb49b7eb76b0993870e41ea59afc2b91
Camera3HWI.cpp
4e5fef6d28e89ec2635f92ea344d3947a7bd4422 12-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Check metadata channel before stopping it

- There is a sequence where we could open camera,
initialize it and then close it. In this case
the metadata channel will not get initialized.
The destructor will try to stop it without
checking whether it got intitilized first.

BUG: 10689446
Change-Id: I8369d04ec5275ce84603dc8a75ac6764f8407415
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
3e500ec5abf1463c32e0a783bb63802954005dd8 13-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Change metadata reporting to framework

Populate the metadata buffer with only the valid entries
while reporting it to framework.

Bug: 10620937
Change-Id: I4450ea634da1a0c1be515ce0760cbbdfc37c294c
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
0b11b27dc2c62f8fa8523ef8706d1cc61b3ea01e 12-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Enforce order of adding parameters

Different parameters in the parameter list are not independent.
Some paramters override others. This changes makes sure that
overriding parameter precedes parameters being overriden.

This makes the logic of mm-camera-daemon easier. mm-camera-daemon
just needs to iterate through the parameter list and make the right
decision.

Bug: 10639575
Change-Id: I962a1f8fe1d2f5cb4fd9cfdfe899328124ef3726
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
b0a803d16aad9d52d99154888de6908f9cd6b6a5 12-Sep-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Set the edge strength based on fwk value" into klp-dev
4e9f714df832a61716a2aa6e0a213333abef1a8c 12-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Set the edge strength based on fwk value

Read the edge strength value set by framework and pass it to daemon.
Set the default edge strength

Bug: 10497186

Change-Id: I742e8ec4684426f98d29cd17960eba68677938fe
Camera3HWI.cpp
5e801cc4554101303c529c621a474772e9ab1b99 12-Sep-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Fix AF and AWB translation" into klp-dev
73b2b0e1b5b94d44191188070f3776a984142330 12-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix AF and AWB translation

HAL needs to translates AF and AWB mode in metadata from internal
data type to frameworks data type.

Bug: 10606535
Change-Id: I11857c14e840e838d74f20dcc7174fe7529b4d9c
Camera3HWI.cpp
9770445fab16c26a86acb1dc261f2e41a687ddf8 12-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> QCamera3: Adding timeout to processCaptureRequest

Added 5 sec timeout to honor the processCaptureRequest from
Framework, instead of waiting forever

Bug: 10513720

Change-Id: I6a61d120b22a736ab6a329dabaec9714a61d44da
Camera3HWI.cpp
bce5a07247b615d829c84fbcf4da8c785f53b575 10-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add meta data entry for tone map

Bug: 10621089
Change-Id: Ic4378a1f00d83eea99a0d81948c247758a33a204
Camera3HWI.cpp
62595db7d19b3c5997145f35f1d26b87102aa984 09-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Synchronize between metadata stream with image streams

Metadata stream should be started before any other stream is started.
Also make sure re-creating metadata stream during configureStreams.

Change-Id: I38e7363733b6c050f215e09717a3684869c17fd4
Camera3HWI.cpp
f7dca66435f16b52df005bd2fbb4fc0992c24c7d 09-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix edge mode and noise reduction mode settings

1) Set sharpness to 0 if edge mode is off
2) Add default values for new parameters in settings
template

Change-Id: Ic8a5c2d27b04cc32a7399b6649b026cc6b78b93e
Camera3HALHeader.h
Camera3HWI.cpp
dac62b757b64e83a6add04a9fae98a857b1c28f8 09-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Send stream type information to daemon

Send stream type information to daemon during configure
streams for correct port assignment

Change-Id: Icbd168c565e92408b3e9155be0ef5ba0b3166e06
Camera3HWI.cpp
d363f94a30706c0f951d037b3601bc2a0b445837 09-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Send stream info to daemon at configure

Send the stream info (number of streams, stream size) to the daemon
at the time of config streams so that modules can decide which stream
to put on which port based on size.

Change-Id: Ie6350b686ce208a7f723ebd4633abda0d34f8f85
Camera3HWI.cpp
14dfc272241ba78c85a327da2872e71b3208f8c5 07-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add LOG_NDEBUG in all source files

This will help debugging

Change-Id: I12748efab9c1b6652394b4ef9c927365935c9924
Camera3Channel.cpp
Camera3Factory.cpp
Camera3HWI.cpp
Camera3PostProc.cpp
Camera3Stream.cpp
fb0bfa49e2f567462cd96e8070aed9f233bc08fd 09-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix build

- Add NULLS for new camera module fields added for module v2.2

Change-Id: Id9a1635115084f9cea3e0a1cb3945603abfef4f0
Camera3Hal.cpp
e2f4853167052a8f9c3aa42daf56d88cfa9090e3 07-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add color channel info with tonemap info.

Add Red, Green and Blue color channel info while sending
control param for tonemap.

Bug: 10508531
Change-Id: I3be7dd9ba1ab22b819dcfc38b3004a6eb39fadc4
Camera3HWI.cpp
41da374a8252b52dbf5f430602859095710b3cde 05-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix rapid ZSL snapshots

-In case of rapid back to back snapshots framework
reuses ZSL YUV frame
-Remove code in HAL which assumes that once a buffer
is passed as input it will not be used again

Change-Id: I72a0f527de99b96508c7020455a47bfe754d9df4
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
6a225c824c49ff9ecdc4b67c802f1af272569e03 06-Sep-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Name HAL threads

Name the HAL threads to make debugging easier

Bug: 10609699

Change-Id: Ic953947eca7e4fde7c87bd7c890d1811cc3ff2fb
Camera3PostProc.cpp
c232705a3fe88a15722efec36dba335e417b7feb 05-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Set extra usage flags for video stream buffers

For video stream buffers, set READ_RARELY and WRITE_RARELY usage
flags so that gralloc may make them uncached.

Code cleanup

Bug: 10328870
Change-Id: If3bbbbb0976266f69962db7df568c763dad488aa
ndroid.mk
Camera3Channel.cpp
Camera3HWI.cpp
Camera3HWI.h
2123c5d141214ae0412840fc9931726a33e4fdac 05-Sep-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Give heads up capture intent to Daemon

-Send the capture intent early so that sensor can load
appropriate headers based on usecase
-Rearrange the validate request & stream on sequence

Change-Id: Id852c19c117a9c8795a07b6df2c05eaa61b2e0b5
Camera3HWI.cpp
13c48518ed9ba7e67d249841de56e51618e090a0 31-Aug-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Enable livesnapshot for zsl

Ensure that metadata is handled correctly for different
ZSL usecases.
Change-Id: Ic521f54b973535384cbc2ec94facea3a3f326648
Camera3HWI.cpp
Camera3HWI.h
d63e05e886cb66cbbd321c0f5441e17e66ba25da 31-Aug-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Add reprocess path for ZSL

Add the reprocess path for ZSL to enable WNR, ASF and rotation
reprocess

Change-Id: I132be710e5fe1cc1436626679a7f533f73f9ae0a
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
Camera3PostProc.h
d897e24270f74b8266a37e01a1dd2f4797b13258 29-Aug-2013 Mansoor Aftab <maftab@codeaurora.org> Revert "Camera3: Work around for streams with different o/p rates"

This reverts commit 8558a1da9832ef3034c28845538e75c2f3c4fab5.

Change-Id: Ic5c48e2c18cfc6f2a1e9c2a15fdd1ccd082ed3cc
Camera3Channel.cpp
020cc22e9d3b14bffb22f7c4ace81201d833aeac 31-Aug-2013 Vineeta Srivastava <vsrivastava@google.com> Revert "Camera3: Destroy metadata stream whenever configure_streams happens"

This reverts commit b08cfe9e3588811b4cb87d36d805c35afbbc0c16.

Change-Id: Ib6109e43bd078d5e651406b7192956bf04b71f8f
Camera3HWI.cpp
b08cfe9e3588811b4cb87d36d805c35afbbc0c16 30-Aug-2013 Mekala Natarajan <mekalan@codeaurora.org> Camera3: Destroy metadata stream whenever configure_streams happens

This ensures frame id counter reset after configure_streams.

Bug: 10429994
Change-Id: Iad2a1bb97ed806df349a40074d9b52f4635a2f05
Camera3HWI.cpp
ca0c6f9e32946a98ee2534ef14928192fb1a453e 30-Aug-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Only queue snapshot YUV buffers before snapshot request

Since we are starting all configured streams before the very first
request, we want to make sure we are only queuing the YUV buffers
when we receive the snapshot request.

This logic only applies to non-reprocessing capture. For reprocessing
capture, since we already have input buffer, we don't need to queue
any buffer into hardware.

Bug: 10544282

Change-Id: Ia3434160f4944649fd327b839f9130edb32b54d1
Camera3Channel.cpp
d0282b31d769c3e69100be4443f3adfcdf7178c5 28-Aug-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: stream on all streams at first request

This is to make stream on/off calls symmetric. Stream on
happens right after configure_streams, and stream off happens
before subsequence configure_streams or close.

Change-Id: I860855c1296aace6f1a71c265e4041c1c805f9e5
Camera3HWI.cpp
62442157951e325f2e7b9d81e669992e8ba5564a 28-Aug-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Clamp frame duration according to current stream configuration

Mininum frame duration is decided by the current configured streams. And
for each request, depending on whether the request has BLOB buffer or not.

Change-Id: I4cb55251e6f39b28dc96d83b755815eac1e4d997
Camera3HWI.cpp
Camera3HWI.h
879607542c4d6d9310a0f2d4e3c800122941acca 27-Aug-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Always set AE_MODE_ON_AUTO_FLASH as scene mode override" into klp-dev
e310738e63535838ed4659a55d540b75abc84c19 26-Aug-2013 Ajay Dudani <adudani@codeaurora.org> Always set AE_MODE_ON_AUTO_FLASH as scene mode override

All scene modes currently need AE_MODE_ON_AUTO_FLASH. Revisit this
on a per-scene mode granularity if a scene mode is defined in the
future that needs a different setting.

Change-Id: I8d43a54a0f217d6e7e9be1dca568033cac9ba93f
Camera3HWI.cpp
cff7dec6ff5025ebab7dae0465524d3d2fc3496b 24-Aug-2013 Ajay Dudani <adudani@codeaurora.org> Camera3: Fix thumbnail stretch issue

If image is already rotated by post proc, swap the thumbnail
destination buffer width and height before giving it to the
encoder

Change-Id: I328a762887b469fc88d298c131cde356dc2dd03f
(cherry picked from commit ab93af6714041141d8a66e6e2c921097e1341a08)
Camera3PostProc.cpp
6990dc70b744c1fa9eb3d2d7eb27bcc89857746e 03-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add support for face detection

1. Expose maximum number of faces via capabilites.
2. Add new parameter/metadata field for face detection mode.

Change-Id: I6505ab7558cc50f815211df71f70ec1989ce6785
Camera3HWI.cpp
Camera3HWI.h
2e1ef5dd7befcec7ff418df4c06af62edd2597aa 22-Aug-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "camera: adding exposure time to EXIF" into klp-dev
49542da1f1db437888282ee70a89e5c1a0b03947 22-Aug-2013 Mekala Natarajan <mekalan@codeaurora.org> Camera3: Use non zsl snapshot stream for encoding

Check for the jpeg input buffer in the non zsl snapshot stream if
the reprocess is disabled.

Bug: 10397683

Change-Id: I161f52ba693d47135d632e5297d69bc0ffbb3444
Camera3HWI.cpp
Camera3PostProc.cpp
0b29a823918d0d5f60fc1cb00b143477b3adba91 20-Aug-2013 insup.choi <insup.choi@lge.com> camera: adding exposure time to EXIF

Bug: 10037666
Change-Id: I5b9e044300ccf901838dc69d5877167c1f102b3b
Camera3Channel.cpp
Camera3HALHeader.h
Camera3HWI.cpp
00f8676421afc5452383b3eb17caf3c7167ee20a 20-Aug-2013 Shuzhen Wang <shuzhenw@quicinc.com> Camera3: Fix missing/incorrect static metadata fields

Bug: 10146618
Bug: 10262099
Change-Id: Id82ba84ee997d127b7f6b1bfd346b53e1d9efa1d
Camera3HWI.cpp
34a6e88cee59495adcf1437d027c105171738a07 01-Aug-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Pass stream type mask as part of parameter

Camera3 request contains both settings and buffers as one entity.
While HAL send setting via setParameter, and queue buffers to kernel
via v4l2 QBUF.

To make sure proper synchronization between them in the lower layer,
HAL specifies which streams does a particular request expects buffer
from. This implicitely maintain the association between request and
buffers.

Change-Id: I945578d2180b0755e7bc5936daeebdb371cccde7
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
Camera3Stream.cpp
Camera3Stream.h
025ab8ca7a6d9228b3c8cc04a4f1741defe526ed 29-Jul-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Use different stream types for different streams

Add a different stream type for app callback streams, as well as
distinguish between zsl snapshot stream and non-zsl snapshot stream
by using different stream types.

Change-Id: I0d68ad61e1a3409bd9555af90895da95a8c9628d
Camera3Channel.cpp
Camera3PostProc.cpp
acddfe2d2fd672d8dbf21caedf4e0c64571b049d 16-Aug-2013 Mekala Natarajan <mekalan@codeaurora.org> Camera: Add checks to validate wnr capability.

Change-Id: Ie8b35a526d5a15ff70708d94f0066f8128f656cd
Camera3HWI.cpp
Camera3HWI.h
c6f7291ea07883e0b6a274319f7e5b01c4a01578 16-Aug-2013 Mekala Natarajan <mekalan@codeaurora.org> Camera3: Enable rotation reprocess

Enable snapshot rotation through cpp, so that we can
use hardware jpeg encoder

Change-Id: I02a70d9b2e6b45635390cff5f113799dbbcb4768
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
d18b71ed9389d1b7ccdb9e6caca12ef78e260622 16-Jul-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Add new parameter and metadata definitions

Update metadata and parameters structure with new
fields.

Change-Id: I02322fe3bef2eab65c0cb86e0f89ef0dfd744efa
Camera3HWI.cpp
a3af5e6860330df6e2ed83a4d912ea268893a52d 09-Aug-2013 Vineeta Srivastava <vsrivastava@google.com> Revert "Revert "QCamera3: Flash Firing Level Support""

This reverts commit 2c0ec473291d45f54a48e48d2f7471630119f08d.
Camera3HWI.cpp
2c0ec473291d45f54a48e48d2f7471630119f08d 06-Aug-2013 Vineeta Srivastava <vsrivastava@google.com> Revert "QCamera3: Flash Firing Level Support"

This reverts commit ebee868c8702d191be819c446ded7f2059e44ce3.

Change-Id: I60703e758e977b62375b961ed10224f9a8d5a455
Camera3HWI.cpp
ebee868c8702d191be819c446ded7f2059e44ce3 02-Aug-2013 Ajay Dudani <adudani@codeaurora.org> QCamera3: Flash Firing Level Support

* Add flash firing levels
* Add flash firing time control support

Change-Id: I728e5b581d912075b175ca41fc467910362d351c
Camera3HWI.cpp
fb0c2e83e497bb2a5980b6e53f14ce9f3bb51209 31-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix exposure compensation setting

Trivial bug fix

Change-Id: I5b44350899360982b3974e1f96a8270986517d88
Camera3HWI.cpp
7ee407aa1024789089aad411c372c79423699976 30-Jul-2013 Ajay Dudani <adudani@codeaurora.org> Camera: Initial commit for reprocess

1) Create a new channel for reprocessing
2) Make changes in postprocessor to enable reprocessing
3) Pass metadata buffer to reprocess

Enable reprocessing path for WNR

Change-Id: I0afd20be5ed087f04eabc4324a413659d9b0e7f1
Camera3Channel.cpp
Camera3Channel.h
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
Camera3PostProc.h
Camera3Stream.cpp
Camera3Stream.h
6356e2d4fc01ff878ac4664d86892c8d81e330a9 26-Jul-2013 Ajay Dudani <adudani@codeaurora.org> QCamera3: Enable flash torch mode for video usecase

* Enable flash ON mode for Video
* Respect flashmode depending on the AE mode selection

Change-Id: I54041f5fbd2e2018aa0d630ea87ff6a84e9a73a1
Camera3HWI.cpp
e936796df0426c326d043c2359c149024526f4bc 23-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Correct min frame duration and sensitivity range

1. Use min frame duration for each scaler sizes
2. Use sensitivity range
3. Add multiple JPEG frame duration support

Change-Id: Ia89a9a6ebccc66e3cd8dfefcf19f5d01a9d8e3b7
Camera3HWI.cpp
152ee3049941f9d51276932f0b507b800723b1de 22-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add pending request count in metadata

More than one requests may fall onto the same frame interval,
in which case camera daemon needs to delay one request to
the next frame interval.

To solve this problem, add a new field in metadata to indicate
number of pending requests. Only if the number of pending requests
is 0, HAL would unblock process_capture_request.

Change-Id: I018b00315b48d5a15420d0ba145e0944d11fdeec
Camera3HWI.cpp
e469cee047c5f2b3e91f609f5cc6524a3c4ce05e 20-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> am 5a1f608c: am 50e303f9: Camera3: Protect against deleting un-initialized channel obj

* commit '5a1f608c94a92a23055607d04eb98fb8e09732e3':
Camera3: Protect against deleting un-initialized channel obj
dcf6a1d4ae989908896ef07e4af90480ff007777 20-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> am 86d4ac82: am 5b777f85: Camera3: Merge mMutex and mRequestLock

* commit '86d4ac823451193be259f54cd0e0953d4e6a66bf':
Camera3: Merge mMutex and mRequestLock
8bb5784949bef76a5880ca3c9a795c71b6ac680b 19-Jul-2013 Ajay Dudani <adudani@codeaurora.org> Camera3: Fix issues with ZSL snapshot

1. In ZSL mode hardcode ae_state to always converged.
This will ensure framework always finds a frame
for reprocess.
2. Ignore obsolete param ANDROID_REQUEST_FRAME_COUNT.

Change-Id: I28e1c0d3627c677e106541368a38f67dac633785
Camera3HWI.cpp
Camera3HWI.h
40007c5cef108152d9a876334a6c950ecfa77548 19-Jul-2013 Zhijun He <zhijunhe@google.com> Merge "Camera3: Update static camera metadata"
ea44a483c0e98200c058a85ea339457616516847 17-Jul-2013 Zhijun He <zhijunhe@google.com> Camera3: Update static camera metadata

Change-Id: I9a1e25aa1f298882674f12607d3dfa0d0ab0cc08
Camera3HWI.cpp
50e303f9fac7406547b13e3713162812e7cbfd34 18-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Protect against deleting un-initialized channel obj

Bug: 9886166
Change-Id: Ibe2f6a93180ad7e02842d3d80fd95ca35551c9c3
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
5b777f856726fb16e8cec1f1c22b84dfc6ebd68b 18-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Merge mMutex and mRequestLock

These 2 locks can be merged to avoid race condition between callbacks
and configureStreams.

Bug: 9581580
Change-Id: I7fca0e26fef45d4bc60acb163be2f42ac51c1247
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
085dd635c27cb2057d34ed6695aed29624e4b560 17-Jul-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Camera3: Add ZSL snapshot support"
c8d1059ae679132e7654708fdfca6ee221775187 17-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add ZSL snapshot support

1. Fill out supported hardware level in static medatada.
2. Use BLOB stream's size as the size for ZSL stream.

Change-Id: Ica8ee7974c1f22bb4be68be8e41a94560f24c4f0
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3PostProc.cpp
Camera3PostProc.h
Camera3Stream.cpp
Camera3Stream.h
5f5f746aff0bc74434139d44301c5b414a63cebe 17-Jul-2013 Vineeta Srivastava <vsrivastava@google.com> Merge "Revert "camera: Add EXIF tag information for maker and model""
10bf682b54d6ff703c42feaf17ba8f6e3ab3a891 17-Jul-2013 Vineeta Srivastava <vsrivastava@google.com> Revert "camera: Add EXIF tag information for maker and model"

This reverts commit 120dd2c03b81058ae019c5971e2fd8fa4a223a2f.

Change-Id: Idd0fd54c95e2115ebf4b4bafaf40e7f3c2c03289
Camera3Channel.cpp
2f0dc524b1cce88a85757118419d1dc08916e650 15-Jul-2013 Ajay Dudani <adudani@codeaurora.org> Camera3: Increase meta data buffers in line with preview buffers

Increase meta data buffers to meet the pipeline delay for per frame control

Change-Id: Ia2cc30a41417ef3ad144f8f91826e90cb49b0571
Camera3Channel.cpp
d97e494db5f2842765083f1295a61bbad3e7cfcd 15-Jul-2013 Ajay Dudani <adudani@codeaurora.org> Revert "Camera3: Destroy metadata stream whenever configure_streams happens"

This reverts commit afbf95f30505ef79c75a7255d3c82880eb2ae683.
Camera3HWI.cpp
22817c71579a2516bd3bdf748a5bc5fa73b9f32b 12-Jul-2013 Eino-Ville Talvala <etalvala@google.com> Camera3: Minor HAL3 static metadata fixes

- Add HAL_PIXEL_FORMAT_BLOB to list of supported formats (for JPEG)

- Make active array size a rectangle as it was supposed to be. 0,0 is
the top-left corner of the active array, in the coordinate system of
the largest raw image that can be read out.

Change-Id: I325073e2c1333daab83eb5042894048de784ac17
Camera3HWI.cpp
1e36336e0d93a772ae4cbea3db2b7662e700a586 11-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> am ef0d4fa0: am 13dab24b: Camera3: Fix memory leak

* commit 'ef0d4fa0c25e7190e97b2c0cc8528bb4129e448a':
Camera3: Fix memory leak
4c1cc8306df68df2dc6278e5f7b14cd3ce039db9 11-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> am 89f3e62f: am 221ef4d6: Camera3: Halt Snapshot stream when not in use

* commit '89f3e62f1fe7d9a1b6029454d2509e04d93f7ee0':
Camera3: Halt Snapshot stream when not in use
afbf95f30505ef79c75a7255d3c82880eb2ae683 09-Jul-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Destroy metadata stream whenever configure_streams happens

This ensures frame id counter reset after configure_streams.

Change-Id: Iad2a1bb97ed806df349a40074d9b52f4635a2f05
Camera3HWI.cpp
73c570caacb28bc79e73e6c4dfed4536483a8660 28-Jun-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Add query capability

Query capability for
- analog sensitivity
- scalar available processed min duration
- scalar available jpeg min duration
- Increase kmax buffer count

Change-Id: I4521932462c8897fb4e01725f07508d946fd18f3
Camera3Channel.cpp
Camera3HWI.cpp
13dab24b078e0aa9761969429b95f96bbe2cb316 10-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix memory leak

For each stream callback, a mm_camera_super_buf_t structure
is allocated on the heap. Free it once we are done with it.

Bug: 9549968
Change-Id: I4d982efa28acee0f5a8b1e58e4283f9ba2cf7376
Camera3HWI.cpp
Camera3Stream.cpp
221ef4d6a8613c5ffa33b5a7a8c36a4acb8605ae 09-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Halt Snapshot stream when not in use

Halting snapshot stream when not in use by following
indirect changes

* Change total # of YUV buffers for snapshot to 1
* Dont return buffer when snapshot encoding is complete
* Return this buffer only when next snapshot is required

Bug: 9669777
Change-Id: I33a838fe3aebdbdeb6ccfb666f4e1ac545925b9f
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
Camera3PostProc.cpp
f7d51831acde505c8cda8e60ab651b113326c6b7 06-Jul-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix translation ae modes to internal flash modes

Translation should be done from framework ae modes, not internal
ae modes, to internal flash modes.

Change-Id: I0858a14aa3d9c636d7372979418319379f18a27f
Camera3HWI.cpp
13f0e4f2ce8ed25c38a69711473c088df073dae6 27-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> am fc99aae8: am 827c33fd: Camera3: Handle Scene mode Manual to Auto sequence

* commit 'fc99aae8c00d238618f3c65d2bdf45ae2ce3f13d':
Camera3: Handle Scene mode Manual to Auto sequence
827c33fdbfdbd07c5af33ecc8a2f3619f5c8fcb3 26-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Handle Scene mode Manual to Auto sequence

Bug: 9496623
Change-Id: I3f0bb5e53cda4d9a84973d4da3ef69d010d687f0
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
bfcdb7d4c0704818cd182157f18f825fd54fb7d1 26-Jun-2013 Mekala Natarajan <mekalan@codeaurora.org> am a531de8d: am 99119ea1: Camera: send encode hints to power HAL for preview start/stop

* commit 'a531de8d866bab557d6ef89f98024b01817b7e63':
Camera: send encode hints to power HAL for preview start/stop
e3596d9f83223762141616890f9687cb0a13048a 26-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> am 5ba2c244: am 8558a1da: Camera3: Work around for streams with different o/p rates

* commit '5ba2c244a14a5d8486b35822ed0a21cc1b28d597':
Camera3: Work around for streams with different o/p rates
99119ea1812fef51559a48bff4be66624cc55b0d 20-Jun-2013 Mekala Natarajan <mekalan@codeaurora.org> Camera: send encode hints to power HAL for preview start/stop

Bug: 9325608
Change-Id: I09a56b552f0bbe1bf5157e65a0b3a42d4e55a2be
Signed-off-by: Iliyan Malchev <malchev@google.com>
ndroid.mk
Camera3HWI.cpp
Camera3HWI.h
8558a1da9832ef3034c28845538e75c2f3c4fab5 20-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Work around for streams with different o/p rates

Whenever there is a situation where 2 streams exist with
different o/p rates, we will end up slowing the faster
stream since rate control is acheived by blocking process_
capture_request.

Above situation manifests as glitch in video livecapture,
putting in a work around by marking # of jpeg requests as
2, since this wont be exercised in current API.

Bug: 9212803
Change-Id: I5a27f54da57319400157932df60d5374a396ddb2
Camera3Channel.cpp
120dd2c03b81058ae019c5971e2fd8fa4a223a2f 13-Jun-2013 Sungmin Choi <sungmin.choi@lge.com> camera: Add EXIF tag information for maker and model

Bug: 9396502
Change-Id: I3dfa58c9077e147fb891ddd36143ebcc26cdf779
Camera3Channel.cpp
9016fd947bee65363c4638727ff844f5daa3e87b 18-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> am 1c195cda: am 9443c6d3: Camera3: Add scene mode support, change max zoom

* commit '1c195cdaced8421592ba520c7414f391c7248f4d':
Camera3: Add scene mode support, change max zoom
9443c6d3cd31da9b89221a4261debfeddafe3b00 13-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Add scene mode support, change max zoom

1) Fix a bug while reading fps
2) Change max supported zoom to 4
3) Map scene mode to best shot mode

Bug: 9373094
Change-Id: Ia7c22bbac5675033a72acf99bef3d51842c0b3a6
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
774e44f08ae1755115c0a8644c9265bf977dd11f 12-Jun-2013 Vineeta Srivastava <vsrivastava@google.com> Splitting hardware/qcom/display chip specific.

Qualcomm msm8960 and msm8974 specific code is split in msm8960 and msm8974
directories. Makefile points to TARGET_BOARD_PLATFORM specific directories.

Change-Id: I7df92d149363fa9a2d05103ded2801531041e363
ndroid.mk
dbeda6fde21ef974c09a2a8a89c6729f1873f660 07-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Only delete channel object when one is available

mStreamInfo contains the mapping between stream information
and channel object. There isn't necessarily a channel object
for each stream created.

In the camera device object, make sure channel object is valid
before stopping/deleting it.

Change-Id: I43b119072b9d3aa08b046cca07514c76c18050c3
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
cd500de28de7d527e4d6b1fbbfbe25bdc58829ed 06-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Protect against simultaneous camera instances

When frameworks try to open the 2nd camera instance, CTS test
allows open to fail, but doesn't allow startPreview to fail.

The way camera daemon is written, ISP hardware is reserved during
startPreview, but only released when all streams are removed.
The removal of streams happens when camera is closed. Because of this,
the current logic allows the 2nd open to succeed, but startPreview
will fail. This is not good!

Block the 2nd open in HAL until we have a better underlying design
to address this issue.

Change-Id: If00b1227f0794171cea3b43c7af28dd766a1943e
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
9a351c81529b36fd8b6978ca21a27bdc56a01355 05-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix JPEG Exif CTS test

1) Destroy an old jpeg session before creating a new one
2) Fix error handling from mm-jpeg-interface to HAL
3) Fix the way GPS_PROCESSING_METHOD is read and updated in HAL

Change-Id: I6e784bc53fb1cdc1110d1b0ecfc0b1da435dbd14
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
Camera3HALHeader.h
Camera3HWI.cpp
Camera3PostProc.cpp
3fa5d84cc454e0a301fe868d2a9aec3bf631f35c 05-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Update EXIF tag information

Add focal length and iso information to EXIF

Bug: 9179852
Change-Id: Ibd35ac6b458f82958b4e5982ccf8de8c551b7fa5
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
71402bc67b7b2729cad7f970d976be15506cfdc7 05-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Reset the ROI based on scaler crop region

Set the bounds of ROI and ignore it if it falls
outside the scaler crop region

Change-Id: Ib8568f039865c44905cb2f4466423fcaad0fa04d
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
2b70889fa161b79f18eb833d0c3930ad0c851e56 05-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix the infinity focus mode

If framework sends focus mode off with focal distance 0,
set the 3A focus mode to infinity.

Bug: 9263856
Change-Id: I2692e054e9f02395f3e6a2f85ecc6d5350067b3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
99b3fc5de98314ad3cd91fc68c97070c3fc3e4d4 04-Jun-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Only add faceDetect metadata when necessary

Only if number of faces detected are greater than 0, add
faceDetect metadata.

Change-Id: I99715a64c7014d9d50aeededf8ccf597a84910ad
Camera3HWI.cpp
99259cbb8af6188f391311cd8e09d4c01832dd5a 29-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Protect against invalid memory access

QCamera3HardwareInterface destructor may be called
with mMetadataChannel not being created. This changes
protects against accessing un-initialized mMetadataChannel
object.

Change-Id: I50400334ac72503add0f87d6b4a30602ba29b9ee
Camera3HWI.cpp
013ea05a4d0b11d7e76e0a2a791d38441f2a3336 04-Jun-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Disable debug logs

Bug: 9001388
Change-Id: I66ded6bd95cf5da1a22f8e2c93f0813b1aef6dd5
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
a7661be16c776d6695b0488479cbd5de1a6a5d8b 30-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: remove verbose log

Bug: 9001388
Change-Id: Ia03658f8bff60720fcec1c5280db7ca40ee1662c
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Factory.cpp
Camera3HWI.cpp
Camera3Stream.cpp
53074dcacf200e7252b5d064733b09d027d378e4 30-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix issues with exposure compensation

* Add exposure value exif tag
* Pass exposure compensation setting to daemon

Bug: 9112666
Bug: 9166232
Change-Id: Ib728891fc074e30003defe84b1e214e8e7f9ebc0
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
Camera3HALHeader.h
Camera3HWI.cpp
59907a1735a991f67d84bff196879de2611ac732 30-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix Preview Format & Scene mode parameters

* Populate preview formats list correctly
* Remove unsupported scene mode

Bug: 8970631
Bug: 9111949
Change-Id: I14e4e59103c244d0006bdfa45ff3eb1380ed26f0
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
74f6761b0f475069b59e715fcf8753b1664e0bdb 29-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Add missing code for Request id

* Added code for book-keeping request id
* In cases when no new request id is passed
re-use from previous request
* Fail when no previous request id is available

Bug: 9166187
Change-Id: I9692a9d334223b01c486d9dc59c30569830066f9
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
08ad023e7517b0bb44b3e636abfea3ef3bba0aff 24-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Remove the hardcoding for thumbnail size

1) Use the thumbnail size set by the framework
2) Send correct available thumbnail sizes

Bug: 9107486
Change-Id: Idf55d3904561c36da467063f8bc399c8362d9d72
Camera3HWI.cpp
47a3010f28bcbf34695ad53608b98be07b4618a6 22-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera2: Support Zoom for HAL3

Support propagate the height of the active pixel
Remove static const declaration type for varaibles,
as the api called only once for each sensor.

Change-Id: I9d8be2296cca10c2178625f4b1695adc8abeee54
Camera3HWI.cpp
b2b7907666ba95f2aa4aa19ad8533b265fdc7d0e 17-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix JPEG encoding for different orientation

For A family chips, hardware encoder needs input buffer's height to
be multiple of 16. And to better support rotation, there needs to be
16x padding both on top and at the bottom.

A family hardware JPEG encoder supports rotation, so still capture
rotation is done by encoder instead of by other hardware component
(such as C2D).

Change-Id: Ia6c85f2379c9c4e17d2c7819533f96ed243373ee
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3Channel.cpp
e9a0b4995192d264f75543f62efa089845456291 21-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Support for more 3A features

1) Add support from HAL to send the sceneModeOverrides
as part of static metadata
2) Add support for ae modes

Change-Id: Ia822e77083fa6f87783c620b03b776f824cf9beb
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
2dd2f652b9cdd9e1d3db1d4157e38756370d7409 15-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Add changes necessary for 3A

Add definitions needed for 3A modes for camera3
Modify some information sent to framework

Change-Id: I5a1e72ed2ce76d496ab04a0d11162ce8badbf63b
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
59a548ac1f29a32e40d5de6c3d911469ccdb3f73 15-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Pass 3A roi data to backend

Read the information from the frameworks settings and pass
the roi data to the 3A

Change-Id: Iaa201910f984870bf5870810d94fff38dd4a5c24
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
b6c8485f9005cf0f759c49e2256e1a4382e5628c 14-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Fix global gStaticMetadata for static metadata

1. gStaticMetadata should contain two entries: front camera
and back camera.
2. Remove dummy code for static metadata.

Change-Id: I39fbfeff483ef87630535692e003dce074e9c058
Signed-off-by: Iliyan Malchev <malchev@google.com>
Camera3HWI.cpp
Camera3HWI.h
8867984d33ed870071109a4500402dddbc85c048 11-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Implement the preview callback.

Support flexible format for Preview callback from
camera HAL side

Change-Id: I3fb50ca7c63cb9cc48c9471b3a27783b6d61e38e
Camera3Channel.cpp
Camera3HWI.cpp
e3b82c765b3e267c18601aad04159005be581c87 09-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix correct datatype for Zoom

Change-Id: I65de1ae2e14adfded38c9ca5cefd3ace1256d2ac
Camera3HWI.cpp
ff1c0da4147bcd6461ebca82cea5be68cfd2388d 09-May-2013 Iliyan Malchev <malchev@google.com> HAL3: fix a typo

Change-Id: Icb36c8bbc906f94690e2cedf371f6fc07ac421b2
Signed-off-by: Iliyan Malchev <malchev@google.com>
ndroid.mk
5758ba27cc995e4a572e07b55c575384c8bd049d 08-May-2013 Iliyan Malchev <malchev@google.com> camera: prioritize HAL3.0 over HAL1.0

Change-Id: Id0c77ef083ad4f88ecbd8b7b1d661453df4d5b3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
ndroid.mk
0a686661965fcbbfabf2d5e3c2768c9582828226 07-May-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Fix Corruption for Snapshot

-Add cache cleaninvalidate call for Jpeg output buffer
-Remove additional Scanline as result of height padding

Change-Id: If075718f38fcf0615b8c57842a9e75cb63f08439
Camera3Channel.cpp
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
Camera3PostProc.h
744f5403bebb0e27140d16a5df7a341713c24a13 05-May-2013 Nagesh Subba Reddy <nageshsreddy@codeaurora.org> Camera3: Update HAL code from AU 221 to AU281

Change-Id: Ie24a113648b00c2069db4e79c805d96df977bfd7
ndroid.mk
Camera3Channel.cpp
d5d5a90863708ac1cdbef25c41853b6f6f05d4e2 05-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Code clean up and bug fix

- Stop all streams before removing any of them. This is due to
hardware limitation.
- Remove compilation warnings.
- Eliminate log flooding.
- Remove conditional compiled-out code.

Change-Id: I606bf495f76c0cc67ebceed699b371ab939d73a4
ndroid.mk
Camera3Channel.cpp
Camera3Channel.h
Camera3Factory.cpp
Camera3HWI.cpp
Camera3HWI.h
Camera3Mem.cpp
Camera3PostProc.cpp
Camera3Stream.cpp
c31ab1ae7cd6b6eb410e71ead51dd36089dc2397 05-May-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Enable capabilities and fix errors

1) Enable the static metadata end to end
2) Fix some errors

Change-Id: Ie4aad6bb12408d31d6a5305a0c858d08ed17f8b5
Camera3HWI.cpp
Camera3HWI.h
d2c6ec688bd988c7efbd5384356f8e32f67bcd71 03-May-2013 Ying Wang <wangying@google.com> Use libqcamera2_util to fix build race condition

Previously due to '../' in the source file paths,
the util cpp files got compiled twice and written to the same output
file:
.../SHARED_LIBRARIES/camera.msm8960_intermediates/../util/QCameraQueue.o
.../SHARED_LIBRARIES/camera.flo_intermediates/../util/QCameraQueue.o

Change-Id: I3589c9959d311e04a3921f9e88baeca2194be4c6
ndroid.mk
65585b2d14faf1e7fa78560f8c9cd27d76c408ab 26-Apr-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Merge recording & snapshot functionality

-Previously recording only worked with 1 cont & 2 burst config
& Snapshot operates in 3 continous mode.
-Fixes in initialize sequence of snapshot channel, to enable
video to work in 3 continous mode as well.

Change-Id: I4e03bb63a010feb8d8d75023a2221b06bd33f16d
Camera3Channel.cpp
Camera3HWI.cpp
b66f295ef24aea24873bcf80cee589835338e2a1 26-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Integrate fixes for preview, capture and video

1. Fix StaticMeta and compilation warning
2. Set HAL3 version in Parameters

Change-Id: I23aa0df37a58e847f1ca738a335d50b99f1f5a06
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
a4f99c05471ae7d2b57f20b1178e0a8597596fb0 24-Apr-2013 Apurva Rajguru <arajguru@codeaurora.org> Camera3: Send buffer index info to post processor

Send jpeg output buffer with index information to
postprocessor. Index will be used to choose the
appropriate frame to be send back in process_capture_result.

Change-Id: I1cd5479917a4780b95fd5beca6fb9227fb2e41e5
Camera3Channel.cpp
Camera3Channel.h
Camera3PostProc.cpp
Camera3PostProc.h
f2fc1625456303cb52ec068d25308229e4322d4c 19-Apr-2013 Mansoor Aftab <maftab@codeaurora.org> Camera3: Snapshot bring up

-Configure Snapshot stream as continous
-Configure Pic Channel as Burst
-Change mechanism to get buffer to on request

Change-Id: I4c0860c26b5c253e4464875620bd48d73dedb294
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3PostProc.cpp
Camera3Stream.cpp
e502ddd6da40b9779e0d51e5f312f3d378ebe505 22-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Enable video recording

-Various fixes relating to buffer count
-Configure continous/burst streams accordingly

Change-Id: Idbd9d2dfa76fd16e3922861cbfad44ffe8348307
Camera3Channel.cpp
Camera3HWI.cpp
Camera3HWI.h
Camera3Stream.cpp
1c6fa865f97afe06b8b9d9520390a37dd86f55e1 18-Apr-2013 Tanmaya Godbole <tgodbole@codeaurora.org> Camera3: Add metadata and buffer aggregation in callback

This change makes sure the ordering of shutter callback,
capture result callback.

It also handles the case where a particular metadata packet
is dropped by mm-camera daemon. We maintain a list of pending
requests in the HAL so that when drop happens, we can return
an empty metadata to the frameworks.

Because metadata packet from daemon is the indication for both
shutter and metadata, we need to cache the filled buffer until
the matching metadata arrives in HAL.

Change-Id: I1e04ef821d535cba09afbf37aec6e7697a37ad7b
Camera3Channel.cpp
Camera3Channel.h
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
0e03eb09035f20fd3e45ad4b6be5eb84303377de 11-Apr-2013 Tanmaya Godbole <tgodbole@codeaurora.org> Camera3: Manage streams in configure streams

1) Remove the old streams that are not configured again
2) Reconfigure the old streams from the HAL

Change-Id: I3ca3e23f4fc29d32a8bace7529ed8e8f0633fcae
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
33cb7276f6c4d2eda72253d11cd9242e1f82bf7d 11-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Enable preview

- initial_reg_flag is used to indicate whether to queue
buffers to the hardware before streamon. Remove code
in mm_stream_qbuf where VIDIOC_REQBUFS is skipped if
any of initial_reg_flag is 0.
- Apply change I5f8f5e2b2c86dfae3cae2b76886dd96eb1d261cc:
"QCamera2: Trigger buffer cache invalidate just before queuing"
- Use PRIV_FLAGS_HW_TEXTURE private gralloc usage flag for
preview frame.
- Improve member variables initialization and cleanup
for QCamera3HWI class.
- Remove redundant functions in QCamera3HWI.
- Add cleanInvalidateBuf function pointer to mMemVtbl.

Change-Id: I416bd169eb0d98ed268c41f128636ed451c6de23
Camera3Channel.cpp
Camera3HWI.cpp
Camera3HWI.h
Camera3Mem.cpp
Camera3Stream.cpp
Camera3Stream.h
66cadfdce2ea19f4707bf2a595b58bd36fbfdf3b 04-Apr-2013 Apurva Rajguru <arajguru@codeaurora.org> Camera3: Initial snapshot implementation

This change implement non-ZSL image capture for HAL3.
QCamera3PicChannel manages the YUV stream, as well as
JPEG encoding using postprocessor.

Change-Id: If9e5fb71f38b8a37fb2a4de26f1504dcafed761b
ndroid.mk
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3PostProc.cpp
Camera3PostProc.h
97e8019457b448a6e2141a49a0f471a467b70dc0 06-Apr-2013 Tanmaya Godbole <tgodbole@codeaurora.org> Camera3: Convert the callback metadata into fwk struct

Convert the metadata in the result callback into a struct
specified by the framework

Change-Id: I83fd74dbd6c65c5a56e0035353387748e73d5e57
Camera3HALHeader.h
Camera3HWI.cpp
Camera3HWI.h
662d6f3c8101a94f45f3b0f892817e062a5c0faa 04-Apr-2013 Tanmaya Godbole <tgodbole@codeaurora.org> Camera3: Add code to do metadata translation

(1) Translate between the framework metadata structure
and the HAL and mm-camera structures
(2) Set the parameters to the backend during
processCaptureRequest
(3) Save the jpeg settings locally

Change-Id: I22e7a8a546813bb06336a08d501992ede516fcb1
Camera3HWI.cpp
Camera3HWI.h
e6ab32d89cf169705236988f0f74309f914c88b7 04-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Implement capture request & capture result path

- Implementation to process requests at channel/stream level
- Start streams if first request & Qbuf the buffers with each req
- Capture FrameNumber for the buffer.
- Implementation for the capture result path.
- Generate all the data required for the result at the channel CB
- Add mutex to QCamera3HWI to avoid concurrent access to APIs
- Fake frame numbers when FAKE_FRAME_NUMBERS is defined

Change-Id: I9f000e9460f83a75975ac546184ca9344e87c4e8
ndroid.mk
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3Mem.cpp
Camera3Mem.h
Camera3Stream.cpp
Camera3Stream.h
9de643761e1282fb5af14a9249618efa9d8ac8fe 04-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Implement process_capture_request and metadata channel

Also add getStreamBufs and putStreamBufs functions in channel
class to be used by getBufs/putBufs from stream.

Change-Id: I8e3ef37cfdb046ffe75ba1a5c1a8c0f7ac072763
Camera3Channel.cpp
Camera3Channel.h
Camera3HWI.cpp
Camera3HWI.h
Camera3Stream.cpp
Camera3Stream.h
80e50bfee66172f8a924573247aa99ee72bfe24f 04-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Metadata translation

This change adds more static metadata and translates between
request and parameters.

Change-Id: I86e01273244adb9a246223398622bf5042ac3a98
Camera3HWI.cpp
Camera3HWI.h
625515beb9c1347216a2d261930ceb0d85ba1c47 08-Apr-2013 Shuzhen Wang <shuzhenw@codeaurora.org> Camera3: Initial implementation

- Implements the scaffolding code for camera3 HAL
- Moves QCameraCmdThread and QCameraQueue to util/
such that they can be used by both HAL1 and HAL3
- Adds stream and channel classes. stream class abstracts
mm-camera-interface stream. channel class abstract
mm-camera-interface channel, and acts as an adapter
for camera3 frameworks defined stream.

Change-Id: I27c25da4085faf33320bae049bf19df5ce5165fb
ndroid.mk
Camera3Channel.cpp
Camera3Channel.h
Camera3Factory.cpp
Camera3Factory.h
Camera3HWI.cpp
Camera3HWI.h
Camera3Hal.cpp
Camera3Mem.cpp
Camera3Mem.h
Camera3Stream.cpp
Camera3Stream.h