Initial empty repository
initial commit

Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
Rename YV12 to I420.

Change-Id: I6cc50061c47220aca176147fe2c765ca1a55013c
(TEMP) Avoid SetConfig when starting front sensor

Delay SetConfig calls for the first 99 frames when
starting front sensor. Front sensor is currently freezing
if any SetConfig is called within those first frames.

This patch needs to be removed once Ducati side issue
is fixed.

Change-Id: Ie50dab38724077443719a1061c9b038f59c6b545
Lock AE and AWB after AF

Change-Id: I12f1037be3d890b50c5413925d3084a2cf5256aa
Signed-off-by: Sundar Raman <sunds@ti.com>
CameraHal: Fix a few corner cases with smooth zoom

Fixing a few robustness issues with smooth zoom.
1) Notify application about smooth zoom success only after
   setting the state internally. If we notify application
   first, it can signal another smooth zoom start breaking
   our state.
2) If we notify in goal reached, we don't have return
   zoom status again. Double notification can lead to crash

Change-Id: Idda594957822373cb3fd73f1a00459dd9900d955
Signed-off-by: Tyler Luu <tluu@ti.com>
CameraHal: Prevent issue when free/aqcuire handle

There could be a potential issue if a CameraHal instance
tries to acquire an OMX Camera handle while another instance
is freeing it.

Change-Id: I33e4c679efc11561ceca3aee217952939bfad6b7
OMAP4 Camera HAL: CTS: Setting defaults for some parameters

focal length, horizontal and vertical angles

Addresses failures of following tests:

Change-Id: I36107b8c5cffe843ce7d167a607b9f9269f3ed26
Signed-off-by: Sundar Raman <sunds@ti.com>
Camera HAL: CTS: Fix for #testSmoothZoom

The zoom value being passed up with stopSmoothZoom was 0
instead of 1. CTS expects the value of the zoom callback
to atleast start from 1. This patch fixes this.

Change-Id: I2a043af12d15e83012d1e5b633209ccf194e71ea
Signed-off-by: Sundar Raman <sunds@ti.com>
(TEMP) Fix for reset  mWaitToSetConfig to false in stopPreview

Fixes an issue with secondary camera video record - the capture
mode was not being set after switching from image mode because
the variable mWaitToSetConfig was not reset as the camera was
switched within 100 frames.

Should be reverted when the below patch is reverted

2f394067996c (TEMP) Avoid SetConfig when starting front sensor

Change-Id: I8cff990df95af4f4871f434e21ddd4c1d2d8e919
Signed-off-by: Sundar Raman <sunds@ti.com>
Camera Hal : Enable VSTAB & VNF for Front Camera

This patch enables of VSTAB & VNF for Front Camera.
The issue with VSTAB & VNF for Front Camera for 720p resolution
has been resolved on Ducati side.
So patch-I28a81696 is being reverted by this patch.

Change-Id: Ie723b2e2a59d0dec7aefd5c9362e24b0dd2f5562
Signed-Off-By: Kalpesh Patil <kalpeshpatil@ti.com>
Camera HAL: Default ldc-nsf for still preview

Enable ldc-nsf for still image preview to
attain good quality.

Change-Id: I44e73af79ba983c938aae4ef01c65fec39478f3a
Signed-off-by: Sundar Raman <sunds@ti.com>
Camera Hal : Handle Recording Hint set by Camcorder Application

Recoding Hint is set now by Camcorder App, in order to allow CameraHal
to start preview is Recording specific mode (i.e. Video-Mode).
This patch adds support to handle Recoding Hint in order to set/reset
Recording specific parameters.

This patch also takes care of following contraints set by
Recording Hint support in framework.
1) Camera App can set/reset Recording Hint while preview is active.
2) Camera App can start recording even when the Recording Hint is false.

Change-Id: I6332c316ddc3ddda7f8c9c5739f81e6317c7deb0
Signed-Off-By: Kalpesh Patil <kalpeshpatil@ti.com>
CameraHal: FD results for 180 degree rot'ed

Need to translate FD results when phone is 180
degree oriented with respect to the sensor. Ducati
outputs results differently then what Android
expects in this orientation. See code comments.

Change-Id: Ia17b3f03ee37b5ac988993024bc5c989cff96df2
Signed-off-by: Tyler Luu <tluu@ti.com>

bug:5140593
CameraHal: Returns error for invalid parameters.

Returns error for the invalid parameters in
setparameters().
Fixes a cts test failure(#testInvalidParameters).

Change-Id: I11ae111404b64641ccc0ac89f5abe854acb18c35
Original-author: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
CameraHal: Fixes related to CTS test #testPreviewFpsRange

- Framerate ranges were not ordered as per CTS requirement:
  ( maxFps1 < maxFps2 ) || (maxFps1 == maxFps2 && minFps1 < minFps2)
- This modification also gives higher priority to framerate
  ranges over the deprecated constant fps.

Change-Id: Idee8b7ae9c1a3ce1d947bc5067c2c787f30e4d39
Original-author: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Camera Test App: Fix for preview display

Fixes the preview display.
Changes the zorder to 0x7fffffff to make sure
no one in the system uses this z order for its
surface layers.

Change-Id: I3098c47e35b607c68ce247ac5d310de23b2654b4
Original-author: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Camera_test: Removes the SurfaceFlinger WA

- Not needed any more.
- Adds support for disabling audio during video
  record.

Change-Id: I2eeec1e9cdae0c18fbd72561fe923d998565572a
Original-author: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
CameraHal: Adds support for switching to VIDEO_ZOOM state

- Should resolve an issue seen with CTS test
  #testLockUnlock.

Change-Id: I99e7f36e3468162b0f4056c07c6f9307384354df
Original-author: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Add start and stop face detection for camera_test_script.

Change-Id: Ic96af72decff081d2cf531febe4f39312df768c7
Original-author: Dimitar Borisov <dborisov@mm-sol.com>
Signed-off-by: Dimitar Borisov <dborisov@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>