Abstract: A decoder may receive, from a bitstream for a block, a residual block of samples, a first component, and a second component. The decoder may determine reference samples for intra prediction of the block. The decoder may generate a prediction of the block from the reference samples based on a ratio of the first component to the second component. The ratio determines a prediction angle. The decoder may generate a decoded block from the prediction of the block and the residual block.