A video codec comprising a processor configured to generate a prediction block for a chroma block, wherein the prediction block comprises a predicted chroma sample, wherein the predicted chroma sample is based on a filtered reconstructed luma sample located in a corresponding reconstructed luma block, a plurality of downsampled filtered reconstructed luma samples located in positions neighboring the corresponding reconstructed luma block, and a plurality of downsampled chroma samples located in positions neighboring the chroma block.