defining EncodeInfo.