pub fn encode_14_or_16_bit( buffer: &mut [u16], Vec2: Vec2<usize>, Vec2: Vec2<usize>, is_14_bit: bool, ) -> IoResult<()>