hevc/rext: add support for 12 and 14bits