camera: stability fixes seen in normal-power mode

Issue seen in CTS stability. Jpeg encoder can crash if thumbnail size is
bigger than main image size. Issue seen some time for lower resolution due to
memory corruption.Change to make sure to handle Jpeg limitation in HAL.

Image distortion seen in liveshot image, if we switch between camera and
camcorder and take images with different resolution. Change to make sure
Picture resolution is used as thumbnail size in case of fullsize snapshot
as mainimage buffer is used for thumbnail

Bug: 7331463
Change-Id: I8f18701c87fb926f43d4b161beb14faea89a9f05
Signed-off-by: Iliyan Malchev <malchev@google.com>
2 files changed
tree: af639658527eeed2923d79ed1bb1237b7c915027
  1. camera/