Merge changes I5a0827eb,Ibd0da668,I74c71975

* changes:
  CCodec: revamp color format support
  codec2: add P010 support
  C2AllocatorGralloc: Convert C2Rect to Rect correctly