gralloc: Add support to getFormatLayout HAL API.

- Add API getFormatLayout which is required by camera
  team to get information of all the planes present
  during YUV format call.
- Refactor the function GetYUVPlaneInfo to give some
  extra information of YUV plane.

CRs-Fixed: 2464961
Change-Id: Ib84fd340f8c8926867a6f7e2ec7c0074c4dada06
4 files changed