Camera: Add default values for focal length, angles,
 thumbnail sizes and fps

Set default values for Focal length, preview frame rates,
thumbnail sizes, horizontal and vertical angles

Change-Id: I7385cca0e3c846d116ec8b6055782766d7207099
Camera: Add support for view finder histogram

Add support for view finder histogram using the new interface exposed by proprietary camera solution. Currently enabled for 8x60

Change-Id: I4786318420d705c1a566b14666609231c8c97b7d
Camera: Change the postview from last preview buffer to VFE2
 output for 7630 and 8660.

Remove using last preview frame as post view for 7630 and 8660. Configure and use
VFE other output for postview instead.

CRs-Fixed: 253231

Change-Id: I03fdb144624f22ddd1a13958dc0ded4c317f05af
Camera: Add support for Selectable Zone Af feature in HAL.

Change-Id: I4aca55237be97058dcfa1376a0d329cbe30a40a9
Camera: enable fps setting and frame rate mode setting for
 vx6953 sensor

Enable setting FPS and frame rate modes for vx6953 sensor as support is
available from camera stack now.

Change-Id: I3bc26a6c37a1f576e674c33057968cc0544a808b
camera: correct the display heap dimensions for adreno
 snapshot

Pass the snapshot dimensions in notifyShutter, so that correct
dimensions will be registered with surface flinger.

Change-Id: Idf82fce66900e7786fcbdcd34b026462ba2ed7cf
Camera: Enable yuv web camera sensor on 8x60

Change-Id: I70ce64b74177309e8a27f2e0ffec64366fb616f9
CRs-Fixed: 255642
Ensure that native_prepare_snapshot is called only once

Checks are placed to ensure that native_prepare_snapshot is
called only once.

Change-Id: I9a579982dec372a31f6d57602e8c17f66d175a3e
Camera : Use vfe main output for thumbnail generation and

 other vfe output for snapshot post view.

CRs-fixed : 253598 , 256501

Change-Id: Idc7c97605baa7d817b90e00da0d6e57af378da51
Camera : Add HAL support for Skin Tone Enhancement

Change-Id: I2681766184cc3c1f28d4b9e810ef08141b86261d
Camera: Enable Antibanding for certain BeshShotMode

AntiBanding is enabled for certain Indoor type BeshShotModes.
CRs-Fixed: 257456

Change-Id: Ie5d4e488e43d0e8782853935a77a1786a99ef1f1
Camera: get offsets and buffer size from jpeg for thumbnail

With the jpeg downscaling changes for thumbnail padding, HAL needs to
get offsets and buffer size from jpeg encoder.

Change-Id: Icd680da9ba8295f957a1449528ccceaef24978af
Camera: After the postview, reset the crop information

After a postview, reset the crop information so that the postview crop
information won't be carried over to preview frames.

Change-Id: I575f1f256a3ce2aa73a01b7de6151f606ae2cbab
Camera: pass proper zoomCropInfo parameters to overlay setCrop

Pass the x and y parameters of overlay's setCrop as zero when they
are negative. These values will become negative when the crop
information recevied at camera HAL has in1_wXin1_h and out1_wXout1_h
the same.

Change-Id: I407fb551771130cec3f103b7927001f9c43deeb4
CRs-Fixed: 260180
camera: calculate the postview dimensions based on picture
 size aspect ratio.

To support picture size aspect ratios in general, calculate postview
dimensions based on picture size aspect ratio instead of using preview
sizes. Call PRAM_DIMENSION ioctl before allocating the thumbnail
buffers, beacuse this ioctl can return the updated thumbnail dimensions
based on picture size aspect ratio and camera stack requirement.

Change-Id: Ibd7eb4344d86cb48fa1b8fbd14c587bd5e46b878
Camera: Add thumbnail size for new snapshot resolution

Difference in aspect ratios of snapshot and thumbnail resolutions
is causing corruption in thumbnail.New thumbnail resolution(256X154)
matches the aspect ratio of snapshot resolution 2048X1232.
Adding this new thumbnail size resolves the issue.

Change-Id: I95b6d5d4582fc1e55a94e73565cfacf8ec30a527
CRs-Fixed: 257974
 Camera: wait for the snapshot thread to complete before
 clearing resources.

Wait for the snapshot thread to get exited, before clearing the
mainimage, thumbnail and other buffers, so that there won't be any
reference to cleared memory at camera stack.

Change-Id: I8f5910f4c89d36ff0f9eb0297707d1342d7693d8
Camera : Fix the issue of overlay having to refer to
 de-allocated buffers.

Both before and after the postview is displayed when the snapshot is taken,there is a possiblity of the
display referring to de-allocated preview or display buffer.So making an offline copy in first case
and delaying de-allocation in the second case so as to always queue a new buffer and de-allocate the old one.

CRs-Fixed : 254637

Change-Id: I970ed2311bb87721cafaf2e4e1d03876bc32784a
Camera : Use thumbnail dimensions for snapshot post view for
 7x27

Change-Id: Ib3a1f0e1105ec1422d371e68bc87bd5b84fa0b32
Camera: Initialization of 'SUPPORTED_VIDEO_SIZES'

why: Related CTS testcases fails
without this initialization.

Change-Id: I0c4ee22a8bc6f24d3ac70b34f634289d34dbcbe4