Method for encoding video data having a base layer and an enhancement layer, wherein the base layer has lower bit-depth resolution and lower spatial, temporal and/or SNR resolution than the enhancement layer, the method comprising the steps of
- encoding base layer data on slice level, wherein first base layer slices are intra-coded and second base layer slices are inter-coded;
- reconstructing the encoded base layer slices;
- upsampling reconstructed base layer slices, wherein first predicted versions of the corresponding enhancement layer slices are obtained that have higher spatial, temporal or SNR resolution than the base layer slices;
- generating for a first, intra-coded base layer slice a tone mapping table defining an individual mapping between an upsampled reconstructed first base layer slice and the corresponding original enhancement layer slice, wherein both slices are compared to each other and wherein no tone mapping tables are generated for second, inter-coded base layer slices;
- bit-depth upsampling the first predicted version of the enhancement layer slice based on said tone mapping, wherein a second predicted version of the corresponding enhancement layer slice is obtained that has higher bit-depth resolution than the first predicted version of the enhancement layer slice;
- generating an enhancement layer residual being the difference between the original enhancement layer slice and the corresponding second predicted version of the enhancement layer slice;
- and
- encoding the enhancement layer residual into an enhancement layer slice, wherein the enhancement layer slice includes in its slice header its corresponding tone mapping table.