Elaborated codetype_mask