codec2: fix gralloc4 mapping

- fix root plane index calculation
- refactor interleaved plane handling

Fixes: 217969867
Test: atest android.video.cts.VideoEncoderDecoderTest
Change-Id: Id11fcc4a67966369ced1599b0bc8ecffda16c32e
1 file changed