gl: support 10bit planar yuv for both GL & ES2 in 1 solution

None of vlc, mplayer, xbmc support it! I'm the first!