Commit Graph

24 Commits

Author SHA1 Message Date
Cal Archer d091dbd3db klte-common: camera: add video HDR, phase-af and DRC
Note video HDR setting in Snap is only available
in Snap advanced settings at the very bottom of the menu.

Change-Id: Ia2d907aa5b20be6134bc3594684a423cf199f925
2018-03-05 21:23:23 -07:00
Rashed Abdel-Tawab c2eb30c314 klte-common: CameraWrapper: Include nativebase headers
* This is required as of android-8.0.0_r23

Change-Id: Ic76cfff3a5bfe46c0ea6974e1ffce9fb7ed069c6
2017-12-26 13:45:45 -07:00
Demon000 d4dadbaff0 klte-common: CameraWrapper: Store user pointer and pass it when needed
The new camera interface calls set_callbacks with a pointer
to it's internal CameraDevice and expects following calls to
the callbacks to use that pointer.

Store the pointer in the camera wraper and intercept the
callbacks calls to pass it along.

Change-Id: I99f02484e12a3f72cf1be13f1c724f474a452d7f
2017-12-22 10:33:52 -07:00
Bruno Martins a79e72b246 klte-common: CameraWrapper: Move module to vendor
* Use LOCAL_MODULE_RELATIVE_PATH as well

Change-Id: I20c7f8b772ade2466dcb2ea7a8b23a07e8d60568
2017-11-03 08:08:20 -06:00
Adrian DC 737bd8c396 klte-common: camera: Use wrapper parameters instead of CameraParameters
* Get inline with the lack of CameraParametersExtra.h
    support in AOSP, avoid using device header to inject
    additional parameters, especially with the introduction
    of Android.bp compilation for libcamera_client
    which ignores the device headers override

Change-Id: I754116f55ed32d54d1b1ad44407993137a07fb69
2017-11-01 16:45:05 -06:00
Simon Shields 45e3438b26 klte-common: camerawrapper: Add missing libs for headers
Change-Id: Ifdaf82855e9ccc3b9d8e13f4124e3670b803109d
2017-10-31 20:14:23 -06:00
Phillip Berndt 7dff3c94cb klte-common: Fix HDR mode
This is a follow-up to Ifb15e64b4c351d7195e5ad3f5d5315419790d0f8.
The change fixed a crash upon deactivation of torch mode by removing
code that forecully set or unset Zero Shutter Lag. This change results
in HDR not working anymore, but SEGFAULTing the camera instead. The
commit addressed this by disabling HDR entirely.

The present change reinstates the removed code, but executes it
conditionally only if the camera is not in torch mode. This prevents the
crash upon disabling torch mode and simultaneously leaves HDR in a
working condition.

Torch mode can only be reliably detected when it is activated by checking
whether the requested settings have a "flash-mode" of "torch" set.
Deactivation simply asks to deactivate the flash, which cannot be told
apart from the camera app requesting the same before taking a photo. The
CameraWrapper however stores the current settings, so by checking if
they contain a "flash-mode" of "torch", it is still possible to detect
the mode's deactivation. The only possible problem with this approach
could arise if the camera went directly from torch mode to camera mode
with HDR, but this apparently does not happen.

Change-Id: I71611257868b3bf86041adf7aed931cf92880ddc
2017-01-20 17:29:34 +01:00
Kevin F. Haggerty e7901039ed klte-common: Remove video stabilization from CameraWrapper
* If enabled, camera dies when changing orientation in video mode

Change-Id: If69a472ddc129f7eff31387b1f8f1c0d9b0be8a1
2016-07-29 09:03:20 -06:00
OzzysCmAcc b834093dae klte-common: more clean up for the wrapper
*fix turn off torch by setting zsl by blobs
*set video stabilization to true
*disable HDR as this suck with our blobs

Change-Id: Ifb15e64b4c351d7195e5ad3f5d5315419790d0f8
2016-07-26 17:11:10 -07:00
Zhao Wei Liew b30d5b0952 klte-common: Clean up camera wrapper
- Clean up formatting
 - Clean up logging
 - Clean up method calls
 - Staticise all the functions

Change-Id: If14611e9fdd3ee7f83611204ea51d8b004209ad4
2016-07-13 20:21:23 -07:00
Christopher R. Palmer 9ac995b901 klte-common: camera: How about doing our NULL checks before crashing?
Current we cleverly deference "device" as part of a log message
and then immediately afterward we bother to check whether or not "device"
was NULL and whether or not it was safe to have just dereferenced it...

Change-Id: Ifcc38fbac54654fd2c6eca894af9a2a794a95f2a
2016-07-10 16:30:47 -07:00
OzzysCmAcc da4619d201 klte-common: clean up the wrapper
Change-Id: Ie7de6cda38e8d82d8a628093b570d44cdd93f96f
2016-06-07 10:07:05 -07:00
Ethan Chen 6fa45107ec klte-common: Update camera wrapper module definition
* Add torch, init function definitions

Change-Id: I4d2ebb0b2873c7553492cdda27a7f325b898ec1f
2015-11-13 17:33:30 -08:00
Brandon McAnsh 9a2b3611ff klte-common: camera: Set preview-format for 4k video recording
Change-Id: I31f21fb1e15511422798aca1dcde3f2f8e18a58d
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2015-07-30 17:07:07 -04:00
Tony Layher 858aea7096 klte-common: Add UHD 4K video resolution
Change-Id: I2b6e43e0dfb10e3fd354f2da5cfc32adcdcf8120
2015-02-12 10:45:10 -08:00
Matt Filetto 8ffebf5fff klte-common: Clean up HFR code
Change-Id: Id95d1dbda2a8f91efee35b3fe16946f31d5f6b7c
2015-02-12 10:32:26 -08:00
Patrick L 1fb8c996a6 klte-common: Enable video snapshot
Change-Id: I2db8c9bb449370f6d0e2b9cb6b5d87e4714227f8
2015-02-12 10:27:07 -08:00
Ethan Chen 8f74663053 klte-common: Clean up camera wrapper code
* Make static functions static
* Code formatting
* Standardize function signatures

Change-Id: I2396073069e7bf21fcc85d7272865a1a59600f3b
2014-11-23 15:10:32 -08:00
Matt Filetto b3a277755b klte-common: Import camera wrapper
* Moved from msm8974-common

Change-Id: Iab1fc99727a80dd612deda3845fb7947926c6cb5
2014-11-23 03:07:25 -08:00
Matt Filetto 344886ad22 Start using msm8974-common 2014-06-09 00:30:23 -07:00
Daniel Moran (garwynn) 0d0a715c20 Revert "Migrate to msm8974-common"
This reverts commit 9131456882.
2014-06-04 09:28:10 -05:00
Daniel Moran (garwynn) 9131456882 Migrate to msm8974-common 2014-06-04 07:56:04 -05:00
Daniel Moran (garwynn) 4b4903db63 Separate MSM8960 and MSM8974 wrapper 2014-05-30 16:39:18 -05:00
Christopher R. Palmer aef0831c03 HLTE: Use camera wrapper.
Use wrapper to prevent camcorder crashes
  while trying to use Digital Image Stabilization.
  Wrapper borrowed from mondrianwifi.
  BUGFIX: JIRA CYAN-4054

Change-Id: I90611faf74d44febea12be3e72d0ec5a526d88a2

Conflicts:
	proprietary-files.txt
2014-05-18 11:19:39 -05:00