camera: Add options to better control video preview size

 * usePreferredPreviewSizeForEffects is needed to fix camcorder effect on
   some MSM8660 devices.
 * Add ignorePreferredPreviewSizeForVideo to use the best size reported
   by the driver instead of the preferred-preview-size-for-video value,
   which may report something really awful.

Adapted for cm-10.1 from similar commits in jellybean.
  https://github.com/CyanogenMod/android_packages_apps_Camera/commit/5ea90585dfce5a38f0c91d2ae07145770a0ea569
  https://github.com/CyanogenMod/android_packages_apps_Camera/commit/7310af07d00910033adbd2dce6aaf8b04cd1f220

Change-Id: I58d4f81333a26dbd6d1ce35037b9c32fbd7d5b69
Merge "camera: Add options to better control video preview size" into cm-10.1
Fixed aapt warning

Change-Id: I091a385aff272ec2d8a39a0acc2bc33fa3a08662
Merge branch 'cm-10.1' of git://github.com/CyanogenMod/android_packages_apps_Camera into cm-10.1
[1/2] Camera: add software HDR rendering

This allows devices without HDR camera (so all phones except Nexus 4
I think...) to actually take HDR pictures. When the mode is enabled,
pressing the shutter button will take 3 shots, one a minimal exposure,
one at 0 exposure, and one at max exposure. The 3 shots are then fed
into a software HDR processor that will merge the 3 images into one
final shot.

There are two algorithms available for merging pictures, one is a
simple average between all pixels, and the second one is based on
Reinhard's algorithm. They all need tweaking, and only the first one
is used for now.
Average algorithm is available in RenderScript form. This beastie
speeds up a lot!

Source shots are removed after HDR is computed

Change-Id: I7a9e52e56258a0c755f4def22db51ac84501ce9a