1. In a decoder, a method for inter-layer prediction using a computer, the method comprising: accessing by the decoder a first image comprising one or more color channels, the first image comprising a plurality of pixels, wherein at least one color channel of the first image is segmented into two or more non-overlapping color channel segments; accessing metadata comprising prediction parameters for a piece-wise cross-color channel (PCCC) prediction model, wherein for a color channel segment, a predicted pixel value of a pixel of a predicted image in one color channel is expressed as a combination of at least the respective pixel values for all color channels of the pixels within the predicted image having the same pixel coordinates as the pixel of the first image; and generating a color channel segment of a second image based on the first image, the PCCC prediction model, and the prediction parameters.