Video encoding and decoding method and apparatus using weighted prediction
Provided is a video encoding and decoding method and apparatus. The video encoding method includes selecting a plurality of reference blocks based on a plurality of motion vectors and setting weights assigned to the plurality of reference blocks independently for each of a plurality of regions of a current block in order to predict and encode the current block, thereby providing a new encoding mode allowing accurate prediction of the current block and thus improving the compression rate of video encoding.
1. A video decoding method comprising:
receiving a bitstream comprising data about a residual block of a current block;
extracting the data about the residual block, information about a plurality of motion vectors for interprediction of the current block, information about a plurality of regions obtained by dividing the current block for the interprediction, and information about weights set independently for each of the regions from the received bitstream;
predicting the plurality of regions using the information about the weights and a plurality of reference blocks selected based on the information about the plurality of motion vectors; and
reconstructing the current block based on a result of the prediction and the data about the residual block.
2. The video decoding method of claim 1 , wherein the plurality of motion vectors are motion vectors for a plurality of sub-blocks included in the current block, and each of the reference blocks and the current block have a same size.
3. The video decoding apparatus of claim 1 , wherein the plurality of motion vectors are motion vectors for bi-predictive prediction of the current block, and each of the reference blocks and the current block have a same size.
4. A video decoding apparatus comprising:
a decoding unit which receives a bitstream comprising data about a residual block of a current block and extracts the data about the residual block, information about a plurality of motion vectors for interprediction of the current block, information about a plurality of regions obtained by dividing the current block for the interprediction, and information about weights set independently for each of the regions from the received bitstream;
a motion compensation unit which predicts the plurality of regions using the information about the weights and a plurality of reference blocks selected based on the information about the plurality of motion vectors, to generate a prediction result; and
a reconstruction unit which reconstructs the current block based on the prediction result and the data about the residual block.
5. The video decoding apparatus of claim 1 , wherein the plurality of motion vectors are motion vectors for a plurality of sub-blocks included in the current block, and each of the reference blocks and the current block have a same size.
6. The video decoding apparatus of claim 1 , wherein the plurality of motion vectors are motion vectors for bi-predictive prediction of the current block, and each of the reference blocks and the current block.