I want to use GLSL to transfer YUV420 to RGB. But there have some problems when I start it. Android MediaCodecInfo.CodecCapabilities one constant is COLOR_FormatYUV420Flexible. This format corresponds to YUV_420_888, and can represent the COLOR_FormatYUV411Planar, COLOR_FormatYUV411PackedPlanar, COLOR_FormatYUV420Planar, COLOR_FormatYUV420PackedPlanar, COLOR_FormatYUV420SemiPlanar and COLOR_FormatYUV420PackedSemiPlanar formats. So different formats have different methods in YUV420 to RGB which writing in fragment shader.
I want to know the different methods in different formats YUV420 to RGB. Who can help me?