camera: Disable wavelet denoise by default

 * Many devices (such as M7) just crash in frameproc if you turn this
   on. Devices that want it can overlay it in.

Change-Id: I4ff6645578178a8d3ee7871613343be0deef46a4
camera: Check if video sizes are available

 * Some drivers don't report video sizes and we should avoid using fine
   resolution lookup, otherwise a crash results.

Change-Id: I8010e66d1a3a5e6f8a505ff3b50146cd24fc2b9c
camera: Support for HTC's HDR mode

 * HDR was never actually working on CM because we did not instruct the
   camera to take all exposures. The HAL tells us that we'll get one
   JPEG, but we should snap 3 times. We handle this behavior in the
   framework now, but we should honor the num-jpegs-per-shutter value in
   the JPEG callback.

Change-Id: I7124bf08985ae23b21ac4e294fb889ac4106946b
camera: Proper fix for the missing video-sizes issue

 * Just honor the defined camcorder profiles.

Change-Id: I83e8fe2ca9bb489332f37767906bc7c56389f949
Camera2: LT translations

Change-Id: I24208bbcc6251b963a0103f6c4e47bebbcae67f5
Camera2: ES translations

Change-Id: I1bc1ff87e2f3707b738b3ffffbe9e15eea238beb
Camera: fix panorama preview on older devices

When PREVIEW_FBO_WIDTH_SCALE is set to 4, the preview FBO becomes
larger than older GPUs can handle. Detect it and reduce the value
to 2 like on pre-KitKat releases.

Change-Id: I20785d157bed48816820476d066ef9d4a9f73672
Camera2: enable antibanding by default

The default for antibanding should be "auto", otherwise there will
be banding effect when taking photos in certain lighting.

Normally, the default on most devices is "auto" (depends on Camera
HAL). But the code from CAF changed it so that the Camera app
explicitly change it to "off".

Change-Id: Id0c2ef6e17bac74d22e12213ab2ed26c1c73783d
camera: ZSL and focus fixes

 * Drop the use of the touchaf-aec parameter entirely. No camera needs
   this anymore.
 * Only autofocus before a snap if we are actually in "auto" mode.
 * Change ZSL from a preference to an overlay boolean.

Change-Id: Ia94b6f7b7b6283facd7bb22db80e3eb389d136da
Camera2: RU translation

PS2: forward-ported CM10.2 translations instead.
PS3: corrected AOSP "Exposure" string.
PS4: translated CAF strings (qcomstrings.xml), now I hate CAF.

Change-Id: Idaaa118875f6f28355e4c755f1549dc199546c99
Merge "Camera2: RU translation" into cm-11.0
Camera2: Preview needs to be stopped when changing resolution

This was done in startPreview as a hack, but was removed in
f729b85e12cfa2674048d8cce2f724014b8fc910. Specifically add it
back when the resolution is changed.

Change-Id: I306abd788bafdff4e6fba7eec4e6ff05bb3cc47c
Camera2: LT translations

Change-Id: If4531316ab082e4eae5734095b4ade3c06c44cd2
Merge "Camera2: ES translations" into cm-11.0
Merge "Camera2: Preview needs to be stopped when changing resolution" into cm-11.0
Camera: revert CodeAurora's panorama angle handling

I'm not sure what the code is trying to fix, but break landscape
devices' panorama display

Ported from cm-10.2

Change-Id: Ifa922b043f578353b778065e2123005a57185dfd
Camera: fix preview for landscape devices

Landscape devices have broken preview because PORTRAIT mode is
being abused to check for screen rotation. Use proper rotation
check to fix.

Ported from cm-10.2

Change-Id: I75588cbce9843e180e4be7591f6a43bcec788506
Merge "Camera: revert CodeAurora's panorama angle handling" into cm-11.0
Camera2: More thorough compatibility fixes

Certain chipsets (such as omap) have contrast, sharpness and saturation
set, but no max integer given for those

Change-Id: I58efaef4d0a511aefc803a440e0c3aa3dbdc9483
Camera2: fix FC when switching camera in video mode

mFocusManager's manager needs to be updated before startPreview,
otherwise setParameters will be called with an invalid preview
mode resulting in a crash on some device (in this case, aries).

Change-Id: I32c113e744f95b4939c070b3aad8b4b5c53fce65