* 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
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
*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
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
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