mm-video-v4l2: vidc: Fix read/write colorspace from/to gralloc-handle

Encoder:
Read the colorspace from metadata in gralloc-handle and
set the appropriate colorspace to the driver.

Recommend color-aspects based on the colorspace of destination-YUV
that C2D/Venus convert in case input is RGBA8888

Leave the unspecified aspects with client's-defaults, rather
than setting them to enuemarated "unspecified" values.

Decoder:
Default the colorspace as indicated by client in case there is
no color info in bitstream. Since VP8 encoder does not support
encoding colot-info, default everything to 601-LR for now.

Bug: 29550317

Change-Id: I603cd592647b3f9b81c4da714a72aae871ced25a
7 files changed