Codec2: Support locking vendor formats with gralloc4

Try to lock vendor formats via gralloc4 with fallback to
legacy-lockYCbCr. This allows locking 8bit and 10bit formats.

Bug: 179301660
Test: android.media.cts.ImageReaderDecoderTest#testOtherH265_10BitImage
Change-Id: I6eb1ce89561ccd3d38ba1fb1cd452886df611679
2 files changed