IMAGE ENCODING/DECODING METHOD AND RECORDING MEDIUM THEREFOR
The present invention relates to a method for encoding/decoding a video. To this end, the method for decoding a video may include: generating a merge candidate list of a current block including at least one merge candidate corresponding to each of a plurality of reference picture lists; determining at least one piece of motion information by using the merge candidate list; and generating a prediction block of the current block by using the determined at least one piece of motion information.
1 . A method for decoding a video, the method comprising:
generating a candidate list of a current block including at least one of a spatial candidate derived from a spatial neighboring block of the current block or a temporal candidate derived from a collocated block of the current block;
determining motion information by using the candidate list;
generating a plurality of prediction blocks based on the determined motion information; and
generating a final prediction block of the current block based on a weighted sum of the generated plurality of prediction blocks,
wherein a weighting factor for the weighted sum is derived by index information specifying the weighting factor applied to the current block among a plurality of weighting factors included in a weighting factor set, and
wherein the index information is obtained from a bitstream only when a size of the current block is greater than or equal to a predefined value.
2 . The method of claim 1 , wherein the weighting factor set comprises a positive weighting factor and a negative weighting factor.
3 . A method for encoding a video, the method comprising:
generating a candidate list of a current block including at least one of a spatial candidate derived from a spatial neighboring block of the current block or a temporal candidate derived from a collocated block of the current block;
determining motion information by using the candidate list;
generating a plurality of prediction blocks based on the determined motion information; and
generating a final prediction block of the current block based on a weighted sum of the generated plurality of prediction blocks,
wherein index information specifying a weighting factor for the weighted sum applied to the current block among a plurality of weighting factors included in a weighting factor set is encoded, and
wherein the index information is encoded into a bitstream only when a size of the current block is greater than or equal to a predefined value.
4 . A non-transitory computer-readable medium storing a bitstream generated by an encoding method, the method comprising:
generating a candidate list of a current block including at least one of a spatial candidate derived from a spatial neighboring block of the current block or a temporal candidate derived from a collocated block of the current block;
determining motion information by using the candidate list;
generating a plurality of prediction blocks based on the determined motion information; and
generating a final prediction block of the current block based on a weighted sum of the generated plurality of prediction blocks,
wherein index information specifying a weighting factor for the weighted sum applied to the current block among a plurality of weighting factors included in a weighting factor set is encoded, and
wherein the index information is encoded into the bitstream only when a size of the current block is greater than or equal to a predefined value.