CameraHAL: Fixes a small crop issue

- The offset variables 'mXOff' and 'mYOff' in
  ANativeDisplayAdapter are always initialized to
  zero. If the offset of the incoming preview buffer
  is zero and the viewable preview resolution is
  smaller than the actual preview buffer resolution,
  then the crop will not get configured properly.

Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com>
Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Change-Id: Ib321f17566d253dd65dc4c6d20bf748a9a4c614b
1 file changed