APPARATUS, A METHOD AND A COMPUTER PROGRAM FOR VIDEO CODING AND DECODING
There are disclosed various methods, apparatuses and computer program products for video coding. In some embodiments motion parameters are obtained for a block of first layer samples and a first layer reference picture for the block of first layer samples is identified. A second layer reference picture corresponding to the first layer reference picture is identified, intermediate reference picture samples are derived by using sample values of the first layer reference picture and information based on sample values of the second layer reference picture, and inter-layer reference picture samples are derived by using intermediate reference picture samples and first layer samples. In some embodiments motion compensated sample values are derived from the second layer reference picture on the basis of the motion parameters; and an inter-layer reference block is derived by using residual sample values of first layer samples and motion compensated sample values from the second layer reference picture.
1 . A method comprising:
obtaining motion parameters for a block of samples of a first layer;
identifying a reference picture of the first layer for the block of samples of the first layer on the basis of the motion parameters of the first layer;
identifying a reference picture of a second layer corresponding to the reference picture of the first layer;
deriving a block of intermediate reference picture samples by using sample values of the reference picture of the first layer and sample values of the reference picture of the second layer; and
deriving a block of inter-layer reference picture samples by using the block of intermediate reference picture samples and the block of samples of the first layer.
2 . The method according to claim 1 , wherein to derive the block of intermediate reference picture samples, the method comprises calculating motion compensated differential prediction for the block of samples of the first layer by utilizing the motion parameters, sample values of the reference picture of the first layer and sample values of a corresponding reference picture of the second layer.
3 . The method according to claim 2 further comprising adding the motion compensated differential prediction to the samples of the first layer to form a high frequency inter-layer reference frame sample block.
4 . The method according to claim 3 comprising utilizing the high frequency inter-layer reference frame sample block as a reference in a motion compensated prediction process.
5 . The method according to claim 3 , wherein deriving the block of high frequency inter-layer reference picture samples comprises:
obtaining a first layer prediction error;
adding the first layer prediction error to the samples of the reference picture of the second layer obtained by performing a motion compensation operation in the second layer.
6 . The method according to claim 1 , wherein the first layer is a base layer and the second layer is an enhancement layer.
7 . The method according to claim 1 , wherein the first layer represents a first view and the second layer represents a second view.
8 . A method comprising:
obtaining motion parameters for a block of samples of the first layer;
identifying a reference picture of a second layer corresponding to the motion parameters of the first layer;
deriving a block of motion compensated sample values from the reference picture of the second layer on the basis of the motion parameters; and
deriving an inter-layer reference block by using residual sample values of the block of samples of the first layer and the block of motion compensated sample values from the reference picture of the second layer.
9 . The method according to claim 8 comprising utilizing the high frequency inter-layer reference frame sample block as a reference in a motion compensated prediction process.
10 . An apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to:
obtain motion parameters for a block of samples of a first layer;
identify a reference picture of the first layer for the block of samples of the first layer on the basis of the motion parameters of the first layer;
identify a reference picture of a second layer corresponding to the reference picture of the first layer;
derive a block of intermediate reference picture samples by using sample values of the reference picture of the first layer and sample values of the reference picture of the second layer; and
derive a block of inter-layer reference picture samples by using the block of intermediate reference picture samples and the block of samples of the first layer.
11 . The apparatus according claim 10 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to calculate motion compensated differential prediction for the block of samples of the first layer utilizing the motion parameters, sample values of the reference picture of the first layer and sample values of a corresponding reference picture of the second layer.
12 . The apparatus according claim 11 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to add the motion compensated differential prediction to the samples of the first layer to form a high frequency inter-layer reference frame sample block.
13 . The apparatus according claim 12 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to utilize the high frequency inter-layer reference frame sample block as a reference in a motion compensated prediction process.
14 . The apparatus according claim 10 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to indicate the block of inter-layer reference picture samples as not to be output by a decoder.
15 . The apparatus according claim 10 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to receive an indication that the inter-layer reference picture is not to be output by a decoder.
16 . The apparatus according claim 10 , wherein the first layer is a base layer and the second layer is an enhancement layer.
17 . The apparatus according claim 10 , wherein the first layer represents a first view and the second layer represents a second view.
18 . An apparatus comprising at least one processor and at least one memory, said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to:
obtain motion parameters for a block of samples of a first layer;
identify a reference picture of a second layer corresponding to the motion parameters of the first layer;
derive a block of motion compensated sample values from the reference picture of the second layer on the basis of the motion parameters of the first layer; and
derive an inter-layer reference block by using residual sample values of the block of samples of the first layer and the block of motion compensated sample values from the reference picture of the second layer.
19 . The apparatus according claim 18 , said at least one memory stored with code thereon, which when executed by said at least one processor, causes the apparatus to utilize the high frequency inter-layer reference frame sample block as a reference in a motion compensated prediction process.
20 . The apparatus according claim 18 , wherein the first layer is a base layer and the second layer is an enhancement layer.
21 . The apparatus according claim 18 , wherein the first layer represents a first view and the second layer represents a second view.
22 . A computer readable storage medium stored with code thereon for use by an apparatus, which when executed by a processor, causes the apparatus to:
obtain motion parameters for a block of samples of a first layer;
identify a first layer reference picture for the block of samples of the first layer on the basis of the motion parameters of the first layer;
identify a reference picture of a second layer corresponding to the reference picture of the first layer;
derive a block of intermediate reference picture samples by using sample values of the reference picture of the first layer and sample values of the reference picture of the second layer; and
derive a block of inter-layer reference picture samples by using the block of intermediate reference picture samples and the block of samples of the first layer.
23 . A computer readable storage medium stored with code thereon for use by an apparatus, which when executed by a processor, causes the apparatus to:
obtain motion parameters for a block of samples of a first layer;
identify a reference picture of a second layer corresponding to the motion parameters of the first layer;
derive a block of motion compensated sample values from the reference picture of the second layer on the basis of the motion parameters of the first layer; and
derive an inter-layer reference block by using residual sample values of the block of samples of the first layer and the block of motion compensated sample values from the reference picture of the second layer.
24 . An encoder configured for encoding a scalable bitstream comprising at least a first layer and a second layer, wherein said video encoder is further configured to:
obtain motion parameters for a block of samples of a first layer;
identify a reference picture of the first layer for the block of samples of the first layer on the basis of the motion parameters of the first layer;
identify a reference picture of a second layer corresponding to the reference picture of the first layer;
derive a block of intermediate reference picture samples by using sample values of the reference picture of the first layer and sample values of the reference picture of the second layer; and
derive a block of inter-layer reference picture samples by using the block of intermediate reference picture samples and the block of samples of the first layer.
25 . A decoder configured for decoding a scalable bitstream comprising at least a first layer and a second layer, wherein said video decoder is further configured to:
obtain motion parameters for a block of samples of a first layer;
identify a reference picture of the first layer for the block of samples of the first layer on the basis of the motion parameters of the first layer;
identify a reference picture of a second layer corresponding to the reference picture of the first layer;
derive a block of intermediate reference picture samples by using sample values of the reference picture of the first layer and sample values of the reference picture of the second layer; and
derive a block of inter-layer reference picture samples by using the block of intermediate reference picture samples and the block of samples of the first layer.