Sampling, masking or truncation of coding units