hevc/rext: basic infrastructure for supporting range extension 4:2:2 and
4:4:4 up to 12 bits