MediaCodec:Add code for YCbCrP010 format support

Set MediaFormat based on bitDepth and bitDepthAllocated.
Validate semiplanarness of chroma planes.

Bug: 206456921

Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: I88145d7eb9d372deb02ca2d633eebe087f7c4733
2 files changed