Camera2: Smart scene icons w. original artwork

These are functional replacements for the smart scene indicators
created from scratch for CM, and fully owned by the project.

I'm sure the size, border weight may need some adjustment, but
they're currently identical to the burst mode indicators in:
http://review.cyanogenmod.org/#/c/55716/

Change-Id: Ia9e18aa2cd1f78b8ef3674e71cb151e522f2e139
Camera2: Fix burst mode, auto scene detect layout

* Prevent icons from stacking ontop of each other

Change-Id: I4a1c8ae360c7272bfa2833aaf64410a2778a7ff7
camera: Add metadata-based ASD

 * New cameras use the metadata callback to report the
   detected scene mode. Add support for this.
 * The asdModes array must be set for this to work, which
   should contain the ordered list of possible scenes,
   corresponding to the camera_asd_values array.

Change-Id: I07279ae30a4cbedef02bec702252eb7e2abacd4a
camera: Histogram, ZSL burst mode, HDR-on-ZSL

 * Optional features available on newer sensors
 * Histogram needs to be made pretty

Change-Id: Ic46c1dfcc1de32acc22928a4431d3601b03ef513
Camera: video stabilization setting - don't default enable

This partially reverts:
https://github.com/CyanogenMod/android_packages_apps_Camera2/commit/8dc898aec74fe96b9411872eef8748727166a021

Causing camcorder crash on HLTE and probably other devices.

Much safer for devices wishing this enabled by default to set this
in an overlay.

Change-Id: Iaae388023efe3773ae94f01c4774359a1157b8a2
Camera: remove fine/normal/superfine jpegquality and use always int

We use now a set of int values the user can exactly assign. Showing as
well the normal fine superfine as choice is just a duplicate. As well
we can get rid of the weird converts of the mixed values.

To take care that the user does not get into problems we updated the db
version and we make a convertion.

Change-Id: I2615666bc1c929c0c045840fad1ece55fb0640af
Fix initialization of new installations

Change I2615666bc1c929c0c045840fad1ece55fb0640af's upgrade scenario
only applied to installations coming specifically from version 5.
Devices with older versions or installing afresh would get invalid
initial data. Fixit

Change-Id: I170d9ef284c250767467695015bf4e57bc1454c2
Camera: Fix removal of histogram setting

Histogram is disabled by default in config.xml, so the code to filter unsupported modes is never executed
Remove histogram option completely when it's disabled in config.xml

Change-Id: Id47da14d7d3d268e70727d25ed8f4d431b80f6f1
Camera: Fix JPEG quality DB update

Change-Id: I4e43152d8a4a8ed689de086757bcabc17749f9c8
Camera: Fix the removal of histogram setting fix

Regroup conditionals to fix the NPE.

Change-Id: If87e5287b75a8f43c1a34f234aa0a8c405f43891
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Camera2 into cm-11.0