1. A method for generating a piecewise inter-layer predictor, the method comprising: accessing a first video signal ( 124 ) with a first dynamic range; accessing a second video signal ( 126 ) representing the first video signal in a second dynamic range, wherein the second dynamic range is lower than the first dynamic range; and generating with a processor a piecewise predictor to predict pixels of the first video signal in response to pixels of the second video signal, wherein generating the piecewise predictor comprises: generating a first set of pre-computed values ( 202 , 302 ) comprising a set of pixel values in a frame of the second video signal raised to one or more positive integer power terms; for a frame of the second video signal, using the processor to: generate a histogram for the frame of the second video signal ( 206 , 306 ); generate a second set of pre-computed values ( 206 , 306 ) based on the generated histogram of the frame of the second video signal and comprising output values of one or more functions of pixel values of a corresponding frame in the first video signal; and generating coefficients ( 210 , 310 ) of at least one polynomial in the piecewise predictor using the first set and second set of pre-computed values and the histogram.