METHOD AND APPARATUS FOR ENCODING A BLOCK AND DECODING BASED ON ILLUMINATION COMPENSATION
Methods and apparatuses for video coding and decoding are provided. The method includes deriving one or more illumination compensation parameters based on neighboring samples of a sub-block of a block and neighboring samples of a motion-compensated reference sub-block; deriving a prediction sub-block by applying on the motion-compensated reference sub-block an illumination compensation using the one or more derived illumination compensation parameters. A computer-readable storage medium and a computer program product are also described.
1 - 14 . (canceled)
15 . A method for encoding a block of a video, the block having an edge and comprising a sub-block having an edge in common with the edge of the block, the method comprising:
deriving one or more illumination compensation parameters based on samples neighboring the sub-block and samples neighboring a motion-compensated reference sub-block of the sub-block, wherein the samples neighboring the sub-block are samples inside the block;
deriving a prediction sub-block by applying on the motion-compensated reference sub-block an illumination compensation using the one or more derived illumination compensation parameters; and
encoding the sub-block using the prediction sub-block.
16 . A method for decoding a block of a video, the block having an edge and comprising a sub-block having an edge in common with the edge of the block, the method comprising:
deriving one or more illumination compensation parameters based on samples neighboring the sub-block and samples neighboring a motion-compensated reference sub-block of the current sub-block, wherein the samples neighboring the sub-block are samples inside the block;
deriving a prediction sub-block by applying on the motion-compensated reference sub-block an illumination compensation using the one or more derived illumination compensation parameters; and
decoding the sub-block using the prediction sub-block.
17 . An apparatus for encoding a block of a video, the block having an edge and comprising a sub-block having an edge in common with the edge of the block, the apparatus comprising one or more processors configured for:
deriving one or more illumination compensation parameters based on samples neighboring the sub-block and samples neighboring a motion-compensated reference sub-block of the sub-block, wherein the samples neighboring the sub-block are samples inside the block;
deriving a prediction sub-block by applying on the motion-compensated reference sub-block an illumination compensation using the one or more derived illumination compensation parameters; and
encoding the sub-block using the prediction sub-block.
18 . An apparatus for decoding a block of a video, the block having an edge and comprising a sub-block having an edge in common with the edge of the block, the apparatus comprising one or more processors configured for:
deriving one or more illumination compensation parameters based on samples neighboring the sub-block and samples neighboring a motion-compensated reference sub-block of the sub-block, wherein the samples neighboring the sub-block are samples inside the block;
deriving a prediction sub-block by applying on the motion-compensated reference sub-block an illumination compensation using the one or more derived illumination compensation parameters; and
decoding the sub-block using the prediction sub-block.
19 . The method of claim 15 , further comprising:
encoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a separate transform to each residual obtained for each sub-block of the block.
20 . The method of claim 15 , further comprising:
encoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a single transform to a residual block formed from each residual obtained for each sub-block of the block.
21 . The method of claim 15 , wherein the one or more illumination compensation parameters are derived from neighboring samples inside a sub-set of sub-blocks of the block.
22 . A non-transitory computer readable storage medium having stored thereon instructions for implementing the method of claim 15 when executed by one or more processors.
23 . A non-transitory computer readable medium comprising a bitstream generated according to the method of claim 15 .
24 . The method of claim 16 , further comprising:
decoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a separate transform to each residual obtained for each sub-block of the block.
25 . The method of claim 16 , further comprising:
decoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a single transform to a residual block formed from each residual obtained for each sub-block of the block.
26 . The method of claim 16 , wherein the one or more illumination compensation parameters are derived from neighboring samples inside a sub-set of sub-blocks of the block.
27 . The apparatus of claim 17 , the one or more processors further configured for:
encoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a separate transform to each residual obtained for the plurality of other sub-blocks.
28 . The apparatus of claim 17 , the one or more processors further configured for:
encoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a single transform to each residual obtained for the plurality of other sub-blocks.
29 . The apparatus of claim 17 , wherein the one or more illumination compensation parameters are derived from neighboring samples inside a sub-set of sub-blocks of the block.
30 . The apparatus of claim 18 , the one or more processors further configured for:
decoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a separate transform to each residual obtained for the plurality of other sub-blocks.
31 . The apparatus of claim 18 , the one or more processors further configured for:
decoding a plurality of other sub-blocks of the block using, for each sub-block of the plurality of other sub-blocks, a corresponding prediction sub-block derived by applying to a respective motion-compensated reference sub-block an illumination compensation using one or more derived illumination compensation parameters and applying a single transform to each residual obtained for the plurality of other sub-blocks.
32 . The apparatus of claim 18 , wherein the one or more illumination compensation parameters are derived from neighboring samples inside a sub-set of sub-blocks of the block.
33 . A non-transitory computer readable storage medium having stored thereon instructions for implementing the method of claim 16 when executed by one or more processors.
34 . A non-transitory computer readable medium comprising a bitstream generated according to the apparatus of claim 17 .