A method according to a fifth embodiment comprises a method for decoding a bitstream comprising a base layer, a first enhancement layer and a second enhancement layer, the method comprising interpreting, from the bitstream, an indication indicating both the base layer and the first enhancement layer used for prediction for the second enhancement layer; interpreting, from the bitstream, an indication of a first set of prediction types that is applicable from the base layer to the second enhancement layer, wherein the first set of prediction types is a subset of all prediction types available for prediction between layers; interpreting, from the bitstream, an indication of a second set of prediction types that is applicable from the first enhancement layer to the second enhancement layer, wherein the second set of prediction types is a subset of all prediction types available for prediction between layers; and decoding said second enhancement layer using only said first set of prediction types from the base layer and said second set of prediction types from the first enhancement layer.
According to an embodiment, instead or in addition to the indication of the first or the second set of prediction types that is applicable from the base or the first enhancement layer to the second enhancement layer, the method further comprises decoding, from the bitstream, an indication of at least one set of prediction types that is not applicable from the base or the first enhancement layer to the second enhancement layer.
According to an embodiment, the second enhancement layer enhances of a first scalability type relative to the base layer and a second scalability type relative to the first enhancement layer.