History log of /hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
34d2b94a1d314524aa47d1c9071d9b5027332d65 25-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix flash torch mode

This patch enables flash torch mode for flashlight apps.

BUG : 7411246
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>

Change-Id: I293ebf1899d396ca3fd1f4a2c2e9d9e97e99ccc1
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
c48f0170bf56ff4911998bc531e8547bcf0d024f 24-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Add AF state reset on mode change

Resets AF state on AF mode change.
AF cancellation works properly in manual(infinite) mode.
Removed some compile warnings.

BUG : 6970465
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>

Change-Id: I9d577c5f57a0cebd31fb50954fee555722bae6a7
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ca714238a7b555c412637d25006c17f1f0ce2751 12-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Synchronize AF mode and trigger

This patch synchornizes AF mode metadata and trigger actions.

BUG: 7318812
Change-Id: I0db3fdf0f85a37bc1c6e0242bde7cba6c69e2746
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a0648fc71e705cf211caa991639e2a559e1498d9 23-Oct-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: ensure disabling flash at video snapshot

This patch is to change aeMode in case of video snapshot to disable flash
sequence even received capture intent is not video snapshot but still capture.
A UI mode value of flash is updated only at preview and recording status.

BUG : 7396371
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>

Change-Id: I4ce5a2b67c4590de9f896573c37387701afcd202
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
3c17a3f79068fef751c777a7c13830d23e5f51cf 22-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix for supporting various FPS modes

Add support for 24 and 25 fps modes.
Fix bug on applying maximum fps parameter.

BUG : 7385305
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>

Change-Id: I005f87da69ca12d408b51d46f1fbd75d1a1a6cc5
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6ba9ef654408148d27f1f8d7559848571001610f 17-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Remove fixed-FPS for recording mode

Removed codes for force-setting 30 FPS for recording mode.

BUG : 6970986
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>

Change-Id: Ife4cce05de3149761b18adf28139166807c4b3c4
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
07ed03595bbba4e9ee5f8c10fa6637e2dc9d0569 10-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix EXIF GPS Processing Method

This patch fixes the case that GPS Processing Method field is not
set in EXIF data.

BUG: 7318174
Change-Id: Iad9059072e2b9e27d4c2e90543a966dcd7a26f7a
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
3db6fe61b1cf514d4b9030d137434dddbb6ce3f5 09-Oct-2012 Alex Ray <aray@google.com> libcamera2: Round instead of truncate GPS Coords

Bug: 6970573
Change-Id: Ie984a945ce5a2e4a552bd33353ee0de60a64fc59
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
9c046e3a60c50acce5e390c1caf1864cacc3b584 09-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Change square aspect resolution

Under VDIS, maximum height of scaler output is 1080.
This patch changes the resolution of square aspect resolution
to 1024 by 1024.
Also removed VDIS and 3DNR mismatch case.

BUG: 7308846
Change-Id: Ia384082ef125263161ac568bef4c3ae74d1984c6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a038aa84011c540c88d997107e80a9b6394e9180 09-Oct-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Fixed release stream bug.

This patch fixed bug that could not release recording stream.

BUG: 7300841
Change-Id: Icbbe4f23b24a410a0686c57f7ce5b3b9cacbebe6
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
32cf94013c9ba94ffaab68f942c7926ed007956f 09-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Apply pending JPEG count to in_progress

Apply the count of pending JPEG output to the result of
get_in_progress_count.

BUG: 7276954
Change-Id: I89aa1311618423d089c9572c9a292d90eb5de92d
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2ed2aecf5abca549c0f065f9b0fe043f325e42a8 09-Oct-2012 Rebecca Schultz Zavin <rebecca@android.com> Revert "STOPSHIP libcamera2: remove device metadata"

This reverts commit 1d47061ad52ca8f85ccd22e891f9427d020d9a0f.

Bug: 7065917
Change-Id: Iddcb2e0a89625c438516b1d7a01ca039d078b677
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
e43660b0942380839ac881a6af7106c4aace8a29 08-Oct-2012 Alex Ray <aray@google.com> libcamera2: Prevent multiple camera open calls

Requires that previous open camera be closed before a new camera can be
opened.

Bug: 7298182
Change-Id: If128fd5bfa0ce5d6e721351245f220f0530373e8
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
e2068c92d6c78d481b5ace3b50ef3e999952a050 08-Oct-2012 Igor Murashkin <iam@google.com> libcamera2: Clean up scary looking dequeue_request returned NULL log message.

Bug: 7307253
Change-Id: I12e1f18809b98603af54708184f833762b946db4
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
7ef20f42c74628187c84332b39f18f272b265c6d 05-Oct-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Enable 3DNR

This patch enable 3DNR for video stabilization.

Bug: 7290340
Change-Id: Ib9ced603c8e65bf517684a01817a3fe6d336f213
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ddf663f88ed7c4729a55a0b4519b2138adf154de 05-Oct-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: make sync between pre and main flash(2)

This patch is to matching pre-flash and main-flash. In flash scenario,
Firing main flash have to be followed by firing pre-flash.
This commit is to add previous patch. (#25402, patchset 3)

BUG : 7276572
Change-Id: I0290519f791802705a20309be20e910678f3df24
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ca31bf2185d8b0550733c1b60278cda076a17a77 05-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Supports AE region

With this patch, selecting AE region by touching screen
will be enabled.

BUG: 7286132
Change-Id: Ifffe5589081ed4d8da47b663e427897bc87b0cce
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6caa0c805ef028707af71cb84b6ab11aee67abb5 05-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix CAF to AF transition error

This bug fixes AF failure on changing to AF from CAF mode.

BUG: 7287500
Change-Id: Idae0d247787ad3bb7dfe68e4f1d16f39cfb68fbd
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
87423e5686296b1938959ff8bf9817490ddee2f1 04-Oct-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Support JPEG quality

This patch support JPEG quality and thumbnail quality.
The default values of JPEG and thumbnail quality are 100.

Change-Id: I4dc1f21b5b36cb21b3500646817378a0d91e49d6
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
71f3bb3840977f3339733a6945927f0f70758731 04-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix screen blinking on start

This patch fixes screen blinking on starting camera app

BUG: 7288978
Change-Id: Iba3e2de36da898571d42db1aefb8675602bce393
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
0066b2cb831c1a4e20edd7339cc1bc790e0d968c 04-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix JPEG GPS Coordinates

Fixed JPEG GPS Coordinates error due to unit mismatch.

BUG: 7287793
Change-Id: Ie063f21e8a684fe7d5c6e56ca97b907d8fb302a9
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
cdd53a9f3bfbd35a715b9fe56ff7e3e1c3e32a10 03-Oct-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: make sync between pre and main flash

This patch is to matching pre-flash and main-flash. In flash scenario,
Firing main flash have to be followed by firing pre-flash.

Bug: 7276572
Change-Id: I6ba3aede7535c748524b2cd871e0867e06f59f25
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
408f6161d88b5b03fbce875a7662b59942851d6c 01-Oct-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Fixed crop region mismatch

This patch fix crop region mismatch when crop width is not multiple of 4.

Bug: 7274064
Change-Id: Id24620d93173a509dc25bd0087f541d017f2b67a
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ce77365bcdde50b2be626f3db1bf2cd77f2ef715 02-Oct-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: VDIS disable bug fix

This patch fix bug that VDIS is disabled when change the resolution at video mode.

Bug: 7274501
Change-Id: Ic7a9ab5666762d29740d359988d276a847b3c597
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
d0a2bb696153f2a6e6cadd6ec177c244aac0009c 30-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Protection from re-releasing stream

On releasing stream, check the existence of target stream first
for protection from re-release.

Bug: 7258314
Change-Id: I11f6986203f36ca4f829212b95681d6231e56c37
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
69d1e6e9c2036cc231544f61df9ee13e00d1fe0c 03-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix missing fields in EXIF

ISO vaule and a few more fields are missing in EXIF sometimes.
This patch resolves it.
Fixed metadata bug in flash mode also.

Bug: 7276514
Change-Id: If077d8c5dc4ec7b6821279996637e4329aa43146
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
572470e2f220641581282c0d3f199a0faa52f8b7 04-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix black frame after night shot

By maintaining proper scene mode during shot-to-shot period,
removed black frames after taking a night shot.

Bug: 7283906
Change-Id: I4778f71c8ed5e73a62a12fc78c15348de27315a1
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
07b3ad1ceb45ecff82e1ab272e686243856aa841 03-Oct-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: increase meta length and remove dead code

This patch is to increase meta data length to support more fields and remove
unused codes.

BUG : 7276572
Change-Id: I766d7156a477f006ec2f79e28354b23eec0fe674
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
cf59331416573a0c9c1f2b925b7531e1e635b322 02-Oct-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix misplacing JPEG Transport header

Fix the case that JPEG transport header is placed to
incorrect position.

BUG: 7268311
Change-Id: I7e49cd957f74addf04c84a9fe6f18c7926a12f82
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
8b5b8078c3a878793ef03979c6f7eceea894bf62 29-Sep-2012 Hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: AE lock bug fix

This patch fix the bug that AE mode is locked after capture.
And fix exposure compensation bug that wrong enumeration.

Bug: 7251985
Change-Id: Idfea6abb194c2bc692a38d0303bef9c9d73c4cea
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
4a3f18200eac69673e729888dade4d1eb9eccda4 29-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix Android YV12 Alignment

This patch fixes UV plane misalignment of YV12 format
for the resolutions of which width is not multiple of 32.

BUG: 7225357
Change-Id: I1faa7fbc4d9781466f3e8c8b502e33942c52a746
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
c06b3290c7fa7d6138cf3b3dcb3280d4eeac5dce 29-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Use new JPEG transport header in HAL

HAL sends the actual size of JPEG data by using new jpeg blob structure.
(size will be placed at the end of buffer)

Bug: 7108816
Change-Id: I80b93ed843eabea16656d5677a109979682fba04
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
14dce02c7c8fdc2a9f2a83ed285ea9a79c75089b 29-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix AE state for night mode

Makes AE state to be passed to camera service properly
so that service can decide capture method between ZSL and normal.

Bug: 7257412
Change-Id: I58e8b69a9e444cdc6a69de73075fe67e85ddaa08
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
48728d495b8aa54d3c6cc95229f49f3135107aec 26-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix AWB metadata error with ZSL

This patch fixes AWB metadata error that causes
stillshot with invaild AWB setting in case of rapid shot.

Bug: 7239330
Change-Id: Ibaa9e4278ea158a0f26a299ad566f3aa045ed108
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
40acdcc8c7ac1b9c28e4c8ed97598dbfc35a2658 29-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: AF stalling bug fix

This patch is to fix a bug that capture operation is impossible
to af stalled.

Bug: 7256969
Change-Id: I156914321137a7f66df4184d64cb6364dfe27a48
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
83bc29031b8fbc600f8907128e5ea626194ab045 29-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Supports FPS range metadata

This patch enables the processing of min/max FPS metadata.

Bug: 7249364
Change-Id: I27b87ef05d482a37ccf71e87f4d726dfecc4f74f
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
f0708d21f0cbadbc03f3f940c5e9a03d8dc29bb8 26-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Modify stream release condition

This patch fixes preview stuck on 2nd recording after changing
record resolution.

Bug: 7239183
Change-Id: Ic6a852725dcb52a713664f13a4f0d869a99519d1
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
bf96172c9e9a71d1c48e619869579002cbbc2268 28-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: ion_map buffers for required case only

For the buffers which don't require to be handled with address,
don't ion_map them.

Bug: 7208003
Change-Id: Ibcbe29792a57065abd4fd8d266edb1faf077868d
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
10e122bdf2db78378287834b1c0b725fbb426638 26-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Enqueue every frame to ISP

Even during shot-to-shot delay, enqueue all the frames
to the ISP for 3A operation.

Bug: 7239574
Change-Id: I995aee96b6aca10ceee8c9027f582526e1507d1f
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
8a3fc5dddd1aecdc2acd4af9705119a4df12d6b7 26-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: bug fix of single AF

This patch is to fix a bug of single AF in case of successive capturing

Change-Id: I437c128c88b76680a49b89aa98c8cc1ca696b35e
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
1e73adbcd84cd67ac22894cacae2a13f8e3e6570 21-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: modify CAF sequence for flash

This patch is to modify CAF sequence for proper operation
with flash

Change-Id: I0118463e7d8dc1d60c335d1ddf08f94fb1347cd7
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
de48e362bc6b2b6bf3e00ab6bfc6de4b6905e5dd 24-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix capture aspect ratio bug

When preview aspect ratio is wider than capture,
center of image will be used for capture.

Bug: 7191491

Change-Id: I970f5995993e716bc02a6306609d7570a71829b6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2d5655e1b35d47f66592bb096dc4acd8d76c59ce 24-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Change ISP streamoff sequence

To prevent memory-related crash, modified streamoff sequence.
After applying this patch, ISP streamoff will be called before
scaler streamoff.

Change-Id: I2cf7120a0bebb2341d07b256c42c975649f473f3
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
041f38de75652a9afb68c03eb5559932ea63ed92 25-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix frame completion scheme

Modified RequestMgr to preserve the order of frame completion
so that request queue acts always FIFO.

Change-Id: Ib6082faa77661200b602ade7019e4ecd4ac81180
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
f9a066096bec3b4e3dc53d7c245226907ecc3e99 24-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Preserve SCC info on res change.

Preserve ScalerC buffer information on preview stream size change
for the consistency with camera service.

Change-Id: Iad063164598191bcf4c7e26266e2e1f26679560e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
275c974460bee1fdb9fde2713e60dec91c3a551e 25-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: support face priority scene mode

This patch is to support AF with face result at face priority scene
mode. This feature is required camera fimware which version is #2645
or above.

Change-Id: If189904f88be0737a011f32e9831b457f6f77261
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
47d3a1eaca4cc897ae12395d3a12146dd3481bb6 22-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: support flash off mode with ZSL

This commit is to change aeState at flash off mode.
At FIMC-ISP, between ZSL capture and standard capture is
the same as the image quality

Change-Id: I261e454e9430ffd066d116961bd2c169a45121dd
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a85ec381852b79025154d21a78f9bbf28b474462 24-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Add safety code for frame drop

In case of frame drop in scalers, properly sends notify
so that image chain go on processing.

Change-Id: Ia57105d4ee99c7e60d1a59dba53db161b1eb99fd
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
1c5e692d86d92906c7bde609fddb4af0742ce896 22-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Increase request queue size

Enabling VDIS requires one more request queue due to frame delay.
This patch increases request size by one
and changes night scene mode routine for changed timing.

Change-Id: Ia6627679d125c1c0dc83ef049ca7dcb19d3fa793
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
4017b08c048a827a1299fb60859a72bfcda473f4 22-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Support for disabling thumbnail

When jpeg thumbnail size is set as 0 by 0,
thumbnail will not be generated.

Change-Id: I02cf1c3578befc585f4168ef2bbbc4e73eec93b8
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
90e439c14994b2f82da00c131a5e76646a2e127b 20-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Support reverse order of ZSL setup

This patch enables the support for reverse order of
allocating ZSL stream

Change-Id: Ie029c305a20fc298683d0f69f67258b7a51f2431
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
f7f8d32121e67c60900dbe5239b5b4ce937d4692 21-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: modify CAF sequence for flash

This patch is to modify CAF sequence for proper operation
with flash

Change-Id: I59fb549d8eec763ca74d7fa2ba3be747946ef995
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a86f87c74965e066748af3632000737fb115b56f 21-Sep-2012 Alex Ray <aray@google.com> libcamera2: Enable video stabilization

Bug: 7208193
Change-Id: Ib1cf6a716413e15a7c6576d5b844fe37e496aefe
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
4a9565ae8328e47faae2e91c8b9e8eb4f0ff51f6 20-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: Touch AF and WB exif bug fix

This patch is to fix bugs belonged to touch AF and WB exif

Change-Id: I71e61b6a22bc78e821f0c4f04f70fc8f6911dfa2
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>

Conflicts:

libcamera2/ExynosCameraHWInterface2.cpp
libcamera2/ExynosCameraHWInterface2.h

Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>

Conflicts:

libcamera2/ExynosCameraHWInterface2.cpp

Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2f4d175d9bc927fd7c7fb7d42d8671fe1ba17bdb 18-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Change timing of stream notification

Changes stream output notification after enqueue_buffer()
to camera service.
Added synchronization to output stream parameters.

Change-Id: Iaae415c4c7ef043a75f0933cd209e9b5ab5fe295
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a8be0011f1bdcee9d635f1ca9e9c9a01ea856c0e 19-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: ZSL Bug fixes

Fixed crash on switching modes.
Reprocessed stream data will have proper timestamp.

Change-Id: I4453aa237eef6911f4c44a7f02a8494f32f58072
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
0eb27a9d118c02f3fda9207a2920691f4d897aa0 18-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix mode switch bug and log msgs

Removed repeated logs.
Fixed potential bug that may make lockup on mode switch.

Change-Id: Ib2581d0a24d629fdccf1fbc7745c773961b45150
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
053d38cf3db8e79ccde6996b2c44e77ccff54bfc 18-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Modify thread creators

This patch resolves the crash with pure virtual functions
on changing modes.
Thread creators are modified not to call run function.

Change-Id: Ib4864aaf46852583d742a8f36001ef93b0504e07
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
9a77d67ea0c708e0f66241b902a3a505cd61e75d 18-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Adjust exposure time in metadata

Represent exposure time just above 500ms as 1/2sec, not 1 sec
in metadata field.

Change-Id: I0e58f8fa23ded1bb19e832bcb11e823d8e6502ee
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
73f5ad606f9e59e0442f0b3f06ae0f64836c3c48 17-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware : samsung_slsi: libcamera2: pre-capture metering bug fix

This patch is to fix a bug of flash operation at pre-capture
metering.

Change-Id: I6178481d0fa208ecb24a5f508229a276e2d97bb9
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
fdbaf5d207ecca09ee1815dcb82b220d2b38ae53 15-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: manual focus mode bug fix

This patch is to fix a bug that internal af canceling may be
duplicated with manual af

Change-Id: I492cc7a7292089808551067e3d68eee3e9daa566
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
d91c0269fe09ae7fb134d3bbc5f76e0f1119358f 15-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: pre-capture metering bug fix

This patch is to fix a bug still and video mode transition
during flash sequence.

Change-Id: Icf7a66d8df87bbd66b5306edfa92ec842b62c0b4
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
b8d41ae295226cc4324d239dae17b219706b76df 14-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Use FORMAT_ZSL for stream setup

Use CAMERA2_HAL_PIXEL_FORMAT_ZSL for ZSL stream setup.
Also fixes bugs when switching betwwen still and recording mode
and ZSL reprocessing failure case.

Change-Id: Ib12427c5535a834bbd01b37bf3708643a6fe7c40
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ed4ad5fedd954a140d28263a131e066fcea66774 14-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Modify Debug Message

Changed message levels of essential non per-frame logs to debug
and lowered level of per-frame logs.

Change-Id: I015608cac05990a9e16b7e7908eed005dac5fa05
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
66422b5e6af560e5a19cb75f8b0c1037d28e0993 14-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: remove redundant code at CAF video

This patch is to remove unnecessary operation of CAF video.
At CAF video, automatic trigger is performed in case of
scene change.

Change-Id: Ieb53cdfe1ffda8062c3de1ed9fafbe68b479c3b1
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
311d52eb98e3de1aacdd938cf28dce9564c4a547 14-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: support infinity focus mode

This patch is to support infinity focus mode.

Change-Id: I1eb8854a76b8522f1e0c043c7d6d7f059b1035c6
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
5c88d1f2e176e716cd51df32c6835ec3b89b20e1 13-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Modify to support video stabilization(VDIS)

This patch modify to support video stabilizaion(VDIS).

Change-Id: Ie155f5e3e310aa12b77b75fe0b8789ac45932404
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ac8c20603200744b8be1f15e348614ab60aaafe6 14-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix memory leak on exit

Fix memory leak caused by not freeing image buffers.

Change-Id: I151fb374f75256c2c96ec4256c11aa2a235d93a0
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ce8e830a01160b297abaa5b0fcf0c88264ee9ecd 14-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Remove HACK used for frame sync

Remove hack code used before frame sync is enabled.
With this patch, v4l2 error msg when zsl is enabled
will be removed also.

Change-Id: I34c38d7f3d29b1fb66f41f90afd377cf7308f238
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
5f643a757bed1b08adfc47f0c0ddec474171e575 14-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix video snapshot crash

Fix the bug that video snapshot crashes sometimes
by using mutex for timestamp-related function

Change-Id: I9fc1f957b63959d16ec8256fe858438ba8044809
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
0d220b426cd6a9541c9f1cc10ae835475583d9a5 13-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Fix the preview callback bug.

This patch fix the preview callback bug
that the camera is failed when color format of preview callback is YV12.

Change-Id: Ib5f607773111da54e3365045c67da9aca1b634b4
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6bf36b609dea235201b825e95d69ab2648eeebc1 13-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi:libcamera2: Fix Night scene mode crash

Fix the crash on snapshot under dark condition
by reducing response time to avoid capture sequencer timeout.

Change-Id: Ib072acf8dd490f72991914f1c1e4aff6494a4f9c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
e117f7565971e9036b3c5e8dd5dd202ad6208c60 13-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: support pre-capture metering

This patch is to support pre-capture metering.
In case of standard capture, camera service uses pre-capture
tigger and notification for AE and AWB measurement before capture

Change-Id: Iec9067ea1f2ed6496062a20e339e6a417a48ec3c
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
53f62ad92ec5a5d11114420ca83cb122c38c2ef1 12-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: support wb exif info

This patch is to fix a bug that whitebalance info of EXIF
is not proper. Handling AE and AWB lock are changed due to
these parameter were separated from AE and AWB mode

Change-Id: Id5c906fb80e714813531de78238196e3e97bfee9
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
5506cebff05ff1356ae17fe4c30c033d2285d5f5 12-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi:libcamera2: Enable ZSL and frame sync

This patch enables ZSL feature.
Stream structure has been re-organized for supporting ZSL.
Modified Start/End sequence.
Requires frame sync functionalities.

Change-Id: I02a77027934fcc4238afd63ee67259708893ea5e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2adfa429e61241b94e6435b328030df53f27b3b0 10-Sep-2012 Jiyoung Shin <idon.shin@samsung.com> hardware: samsung_slsi:libcamera2: enable frame sync

To secure frame by frame operation, frame sync is enabled
It needs "USE_FRAME_SYNC" option in kernel

Change-Id: Ia20f32e540b426e3d6ea9175fab2e32ab643c1f5
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
52f543089f42c4d008a4e729ece05676fd644e36 04-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: decrease the number of request entry

for faster response of cameraService, decrease the number of entry from 10 to 4

Change-Id: I8adb05ca4933e261786fae59767f41910e09052e
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2c872806d9418b42ac1e99ea24be190d1970da98 09-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Bug fix for stop sequence

This patch fixed the bug that system hang when stop sequence.
This patch make clear that the video node is closed after stream off.

Change-Id: I0a6554f50d5814a6357749b8db3b46c07b25f9c0
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
4aa4d73919168b1cd26a22d4b536697937259f80 10-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Add log level for camera debug

This patch add new log level for camera debug.
CAM_LOGs are only enable when EXYNOS_CAMERA_LOG is defined.

Change-Id: Idf866527db839d3b8a37848d8958f91dad22186c
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
e00f6591f64959131a8ddfbbcec7ff36c7eee94e 08-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: Add fnumber item for metadata

This patch adds f-number item to camera static information.
Fnumber is used for metadata.

Change-Id: Ia4a4624c36a634d087543a42e2575b2eba17bdbe
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
9257e29ea5fa955cd0c135d584c2ccc452189712 09-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: change flash sequence

This patch is to change flash sequence
- seperate ae/awb lock and flashMode checking routine
- apply flash status to EXIF

Change-Id: I02796340ad317327f22b2e833058a3665ef1334e
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2bbbf0c1c2e7170c99b188434147852f1de577c4 09-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Recording bug fix

This patch fixed bug that frame drop while video recording.

Change-Id: I0fc64daa70c6689b328f4fd6b6fe96c1078ea6bb
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
caea49e60fd81033920e9d923f76d7c5aa8b495c 07-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: modify flash function

This patch is to fix some bugs about flash operation
- support flash torch at video mode
- fix a bug of flash with manual white balance
- fix a bug of EV setting during capture
- change checking flash status methods

Change-Id: Iecc5010bdf9a09aff27d3c2b9e6bf3b84ae77e60
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
9a710a4598b2ea5b676c2ad8ad40b9088661c366 06-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: update flash function

This patch is to modify flash sequence base on the defined
flash scenario. this patch is also applied to monitor dynamic
meta data. Due to change camera meta data structure, updating
driver and camera firmware is needed to apply this patch.

Change-Id: I39a9a1b648a20470b017a5ea614dc3260e3d838a
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
c0b6e17e87cb606e25526b3e66604b2e23729ad7 05-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Fix preview delay and recording bugs

This patch fixed bugs that the preview is going slower when after capture.
This patch also fixed preview color corruption when 480p recording.

Change-Id: I4823830362cac17cd65a13776cd654801ab2d1fc
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
da7ca692b1d0b4a7e6bc72b3bd97081b48318d05 04-Sep-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: samsung_slsi: libcamera2: Fix AF and CAF transition bug

This patch is to fix a bug that the transition beween
single AF and continuous AF. In that case, the region
information of single AF affects to CAF. At starting of
CAF, region infos are initialized.

Change-Id: I6cf6c7c86cd84284bc34fdaee1750ab72391fb76
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
181e425e6d6f304986ad5154f35034c615e94947 29-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Change ion flag for metadata

Set ION_FLAG_CACHED for the plane for storing metadata

Change-Id: I32a8474ac30b518e1c0573e65c4c8ee6972ada55
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
7d0efb59681f260d7bc4cf459a7a284269c6806a 03-Sep-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Fix the preview and still bugs.

This patch fixed two bugs that preview and still hang.
This ptach also fixed AF bugs.

Change-Id: I5576b551e0fd6ff0bd2d17580c9f719363bf69d2
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a44c3365bfc7ca02a8462264e3af05604eb1ebf5 31-Aug-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Add support resolutions / wideAspect

This patch add 3:2 ratio size (720x480) and wide aspect.

Change-Id: I58fe208069a33d79e6a87826969a71c3e3014db3
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
308291dee65548eccf93232e60da7d8c32ad7f27 29-Aug-2012 hyeonmyeong Choi <hyeon.choi@samsung.com> hardware: samsung_slsi: libcamera2: Bug fix for digital zoom

This patch fixed bug for capture when digital zoom.

Change-Id: I37184b3245752db998958cbe326bd487b0affe06
Signed-off-by: hyeonmyeong Choi <hyeon.choi@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
b55ed6644478926b4f46307103774e100e167025 01-Sep-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Bug fixes and stability enhancements

1. Optimize preview buffer size and dequeue count
2. Fix crash when Stillshot/Record mode change
3. 30 FPS fix for video recording

Change-Id: Ia4e27e1ee58fe774b199cf15c1e05279b7d152b8
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2b0421d1f00cedc1eb3be0eed4cd16be44257b3b 04-Sep-2012 Eino-Ville Talvala <etalvala@google.com> hardware: samsung_slsi: libcamera2: add new HAL stub

Add stub method for allocate_reprocess_stream_from_stream to match new
camera2_device_ops.

Change-Id: I3310d5e766bc5a98e923cc758b0a64594555bd6e
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
1b8ef182ba1049cbbcf476abb66d43094aaf65ba 04-Sep-2012 Rebecca Schultz Zavin <rebecca@android.com> STOPSHIP: Turn back off exif data until we ship

Change-Id: I11da13c788ac3006ace68e80b047b2187075c6f2
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6f19b6cfec2e31a06fb7fc62ee0440e1e52d99fd 30-Aug-2012 Younghwan Joo <yhwan.joo@samsung.com> hardware: smasung_slsi: libcamera2: add flash function

This patch is to enable flash operation for camera
The default flash mode may be disabled. Because Cameraservice can't
inform flash mode to cameraHAL. Changing flash UI is updated at
aa_aemode. but this field also includes AE_MODE_LOCKED value.
To capture image, CameraService always set this value to AE_MODE_LOCKED.
so cameraHAL can't recognize the current flash mode

Change-Id: Ic66dce38e460509669de293e7878d5b3fd86a891
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2d5e6ec2fb1a3868f882d058ebd8286be0bb6185 30-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: fix thumbnail size bug

1. default thumbnail size is 160*120
2. thumbnail size is decided from metadata

Change-Id: Iac6faec295f8df0fc55a400431596077381807b4
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
74d78ebea3d2d2bbcf46e7156d42f5e0450e3a9b 29-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Enable preview callback

Supprots preview callback using android YUV formats

Also fixes the issue that recorded images are all green

Change-Id: I96205cbb9c9249a4527654d419729a9d058d31ec
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
e4657e32d8ce4a88f2c15de1de60e27f3d1778ab 29-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Enable 4x digital zoom

Enables 4x digital zoom function
Requires matching version of driver

Change-Id: I1abbd2781fd3d47c162a68802d5b532c54e0dcb6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
cd13bb789c481cac426d64da53c0d1f74bb98ea2 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix AF lockup

Fixed most of the cases of AF lockup

Change-Id: If5e190e916c4b1f4e0246ee953d55d1e5d8a4882
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a15b4e3ffb3e1822af22ccbfab876c3b0e2dbf08 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix Night scene mode

When using night scnee mode, separate parameter will be appiled
for preview/capture operation.

Change-Id: I2875baa0d404fd92cc6df98f7c174bf86adbd9db
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
feb7df4c2d6e953395eef7b4389ab2e142df9613 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: add basic function for frame sync

1. add memory allocation for metadata which is used in frame sync
2. add one plane for meta data

Change-Id: I46858d3e408b5fcfc2a8fdaaba93ae9481675563
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ef6f83cab5a08acda2584cfbff2751325b5e435e 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: remove unnessary signal

remove signal spam in sensor thread.

Change-Id: Id7b5d5e654ebc826e593433185bcf3101e131e6c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
b62058861d4c8181d548c2516b06fec48d2f6c1b 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fix crash on back/front change

Fixed crash on camera back/front mode change.

Change-Id: Iae5f2a01fe4f1ccf2a7d32f92d212c05f8c2e830
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
86646da4ec54337c658278271ee5cbfcde9165d6 28-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: seperate stream thread functions

seperate stream thread functions from 1 to 3 for readibility and stability.

Change-Id: Iea0ec217df8ffb10ca92b76114a0679b58e58fda
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6044e50955303fde3b50a2758df721b29addbd98 27-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Protection for sensor failure

Added protection code for sensor H/W init failure

Change-Id: Id8f40bb3ac6a9ae61d2e0d9c2af3afa5df43ad87
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
8e2c2fdbd940265e8413d512c3a0549bbc53c8a2 27-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Enabled Touch Auto Focus

Touch Auto Focus is enabled.

Change-Id: I01f8475a874763561e74294d2d8bff9484faf536
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
fd2d78a2d270f85a71578423e1f2b4f99fd99216 27-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Enabled Face Detection

Face Detaction is enabled.

Change-Id: I3e004a10252cc2a4514951439203a1aae08e492b
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2a21f1bfa4866124cea0d37f3f71ecf040425812 25-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: removing dummy qbuf to ISP

For efficiency, removed registering buffers to ISP by dummy qbuf.
Requires counterpart of Fimc-is-mc2 driver patch

Change-Id: I35e8344dea008c1b43be2cfcc598942ba3961a18
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
5a92f77ab12f5fed504207ab7d10d682d38a7806 28-Aug-2012 Alex Ray <aray@google.com> STOPSHIP libcamera2: remove device metadata

Change-Id: I358b77b8a18d8a7dc76823b905a0930df845f743
Signed-off-by: Alex Ray <aray@google.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
36c106c906c67fec0d0b36e2e967312ce99dcc9e 24-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Modified CAF Algorithm

Modified CAF Algorithm and fixed lockup during operation.

Change-Id: I313171d13414825d3bce1e12c1b123a1922b2296
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
eed7ed1bffb083b112a3366e740ebdc186203afa 24-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fixed JPEG related problems

1. Fixes crash after capturing multiple snapshots
2. Supports EXIF tags
3. Supports Thumbnails

Change-Id: I60fed4eb64ffbb2c49ceaafb44877d5e23da8562
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
15fd82319b9d931a31f40c504d3acbc7e62d4ced 24-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Stability Enhancement

Also added supported resolutions

Change-Id: Ie53adbbfd3b115811625ca85df05c370074107e6
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2630679ac039ac95cfb0e8f77aefc3fae1df80cb 24-Aug-2012 James Dong <jdong@google.com> Reduce the number of advertised buffers needed from producer (hal) end

o related-to-bug: 7046065

Change-Id: I4fd2dcaaff1a2d89d004f9f7033256b8cef456c1
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
c853be7b9977a6a0402bd5a65c0c32ac9e2fde1d 23-Aug-2012 Rebecca Schultz Zavin <rebecca@android.com> Disambiguate framework formats from exynos formats

Previously exynos hal code was using the framework definitions
of YV12 and NV21 to describe custom exynos formats that are
similar but not the same. This patch defines new formats that
describe the custom formats that should be used instead.

Change-Id: I05f5c07d4ab77ef614c765f51fb7254b47005f79
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
4ed2f10326c52005dffdbfdc890f9c31f5a06dc7 22-Aug-2012 Rebecca Schultz Zavin <rebecca@android.com> Turn off verbose logging

Change-Id: I57c76e879a8d5baf4180dfdf7e5fafa63e400349
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
2bdec0603559f57a420e8926da22cc437e1336ec 18-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Add SceneMode support

This patch enables SceneMode feature.
Requires camera 4th release.

Change-Id: I52e67161f0b89b4d05147d04f4f4a68b54c4e89c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
0f26b20fd328df0ad1cfed28eb456217b22d7780 18-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Add AF/CAF Feature

This patch enables AF/CAF of camera.
Requires camera 4th release.

Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>

Change-Id: I97547674ee115f7a00fd9ceeebbd0456a37c25e4
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
ad37861e56882dcb5fa42beb9dba60637d6e3c0f 17-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: 4th release of camera

Redesigned HAL for increasing stability

Change-Id: If04eb3af7675e04fc9b59775e6e4ca396f1ed64a
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
37e122d5da65e360abd566114cc30da7295358ef 08-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Remove memcpy for JPEG output

Remove memcpy by changing the destination of JPEG encoder
to the memory buffer provided by camera service.

Change-Id: I5e3dd4f1ecfc3371a0d4ee7c5291ebccc7b26208
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
b56dcc00a5e081efd036c714e0693f5e27ebc820 08-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Add support for metadata

Added supports for metadata for both requests and frames.
AWB modes and scene modes are enabled on HAL side

Change-Id: I8dddc1676b45638eb6c554b8fc6c0a6bfef480a5
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
daa1fcd6e8861944412e5c77db5eb441512aef38 08-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Reconstruct static info class

Reconstruct the class for providing static information of camera

Change-Id: I67d3dabdc96c980b9d3d0278112b05d7da59902c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
804236a79511be71fc1ebf16c14aa2021bd0d53f 05-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Change recording format to NV12M

Changed recording format from RGBA8888 to NV12M
Removed unnecessary memcpy and excessive logs.

Change-Id: Id047864dbe5468c86479c2648508a71294c00673
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
be494d19b61b202bc071ec8f6bc5d395ebf397bb 05-Aug-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Stability Fix and code clean-up

Clean-up unused codes and logs.
Resolves instability caused by frame sync error.
Unifies internal data structure.

Change-Id: I29a220e29b5856a42f0727427f9e8af10848500c
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
386436c9d726acffc5335000c6e3475c6eac2b29 31-Jul-2012 Alex Ray <aray@google.com> hardware: samsung_slsi: libcamera2: verbose log messages (again)

Turn down verbosity while camera is on, missed a couple

Change-Id: Ic58f1000a069a982b8ced2e3a327eb35a51f840b
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
3f0357b8279fa01ed0692f531f7777df4c836bc0 31-Jul-2012 Alex Ray <aray@google.com> hardware: samsung_slsi: libcamera2: verbose log messages

Turn down verbosity while camera is on.

Change-Id: I78d5f24caebb0f36c4d84c09464fbd199947714b
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
6bbb593a5c3cded974340d5be9273cb551962b40 28-Jul-2012 Alex Ray <aray@google.com> hardware: samsung_slsi: libcamera2: update DMABUF references

Change-Id: Id6f2a9aa4e91c766bc3047a3946c365723dc4224
Signed-off-by: Alex Ray <aray@google.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a07cbd98ba13f790f2e78cebc68bebde83de0518 27-Jul-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Fixed Front Camera Recording

This patch fixes lockup during front camera recording.

Change-Id: I8f308a763feabc414154bb9d372e559605275244
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
b5237e6bdb2c87f61ccf5b22cdb922691095fc2f 27-Jul-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Bug fixes and code cleanup

This patch resolves instability of last version.
With this patch and latest kernel patches,
failure on re-entering camera app has also been resolved.

Change-Id: I2acf3c659256798280c41869b9d84d72846f34af
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
9dd63e1fc352306d6680c517b7ce9936683c78c4 23-Jul-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: support front camera

This version also supports Video Recording.
Fixed file permission and front camera recording failure.

Change-Id: Ibad9f007107576ff25e3d189d4f3e96435b989c1
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
13d8c7b4650fb7897b4291ed9b3d57b19f7d1ccd 14-Jul-2012 Sungjoong Kang <sj3.kang@samsung.com> hardware: samsung_slsi: libcamera2: Camera 2.0 2nd release

This version includes HAL implementation for supporting stillshot.
This version requires dma_buf enabled gscaler and jpeg encodere.
Fixed Color Inversion.

Change-Id: Id4386733d1f3e87ac6fa9b15bb3ed93b2f5f25a5
Signed-off-by: Sungjoong Kang <sj3.kang@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
a8b0b07d250370ddc8291b5853325693959b6861 26-Jun-2012 Rebecca Schultz Zavin <rebecca@android.com> Switch to dma_buf based gralloc

Change-Id: Id804e26df5d60a174bb3f83f997d0d015459f1b0
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
92c6eac717d3d27da50e483ddb57445a049c526c 10-Jul-2012 Alex Ray <aray@google.com> hardware: samsung_slsi: libcamera2: ion_alloc flags

Change-Id: Ie9ebc0f3d0fbddfdc5fa20040b00e8a1d41ae6df
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
24231221540e012afb6f6cd9c4f5b13fc5f5f238 28-Jun-2012 Alex Ray <aray@google.com> hardware: samsung_slsi: libcamera2: use DMABUF

Change-Id: I82c52eac418c51b04cbb8a4eee50bdad1f35b1a4
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp
c15a6b003394494149ef7d65ae35c38755cb8b93 05-Jun-2012 Jiyoung Shin <idon.shin@samsung.com> hardware: samsung_slis: libcamera2: initial version of CameraHAL2

camera preview is only possible with initial version

Change-Id: I414366895955e902701c95737c4068987eb26c3b
Signed-off-by: Jiyoung Shin <idon.shin@samsung.com>
/hardware/samsung_slsi/exynos5/libcamera2/ExynosCameraHWInterface2.cpp