Add helper class for dealing with gralloc.

The helper class deals with choosing the correct locking/unlocking,
and conversion to correct yuv buffer format.

BUG: 29335262
TEST: With some follow up CLs to implement data capture, manually
tested by adjusting gralloc implementation:
  * Jpeg
  * YUV
    * Packed planar
    * Packed semiplanar
    * cstep 4 semiplanar
    * packed planar with extra y padding
    * packed planar with extra y & c padding
    * packed semiplanar with extra y & c padding
Did not test gralloc with less padding than camera, as the test
camera being used has 0 padding to begin with.

Change-Id: Icc5e9b8955cf6e983072b269fd60aefbfd79f883
5 files changed
tree: 0e8c1116bec281d5cf5f460903e71b8e2e2c050e
  1. modules/