Encapsulate mask determination