Method and apparatus for encoding/decoding video signal
A video encoding/decoding apparatus according to the present invention acquires motion vector refinement information, performs motion compensation on the basis of a motion vector of a current block, refines the motion vector of the current block using at least one or both of the motion vector refinement information and the output of the motion compensation, and performs motion compensation using the refined motion vector.
1. A video decoding method comprising:
performing first intra prediction on a first sub-block within a current block, using one or more reference pixels of the current block;
performing second intra prediction on a second sub-block neighboring to the first sub-block within the current block, using at least one of the reference pixels of the current block or one or more reconstructed pixels of the first sub-block, the reconstructed pixels being generated based on an output of the first intra prediction; and
reconstructing the current block based on the predicted first sub-block and the predicted second sub-block,
wherein the current block includes a plurality of sub-blocks, a number of the sub-blocks being determined based on a size of the current block,
wherein the number of the sub-blocks is determined based on a comparison result between a horizontal size or a vertical size of the current block and a predetermined value.
2. The video decoding method of claim 1 ,
wherein the current block includes a plurality of sub-blocks, a shape of each of the sub-blocks being determined based on an intra prediction mode of the current block.
3. A video encoding method comprising:
performing first intra prediction on a first sub-block within a current block, using one or more reference pixels of the current block;
performing second intra prediction on a second sub-block neighboring to the first sub-block within the current block, using at least one of the reference pixels of the current block or one or more reconstructed pixels of the first sub-block, the reconstructed pixels being generated based on an output of the first intra prediction; and
encoding intra prediction information related to the first intra prediction and the second intra prediction, into a bitstream,
wherein the current block includes a plurality of sub-blocks, a number of the sub-blocks being determined based on a size of the current block,
wherein the number of the sub-blocks is determined based on a comparison result between a horizontal size or a vertical size of the current block and a predetermined value.
4. The video encoding method of claim 3 ,
wherein the current block includes a plurality of sub-blocks, a shape of each of the sub-blocks being determined based on an intra prediction mode of the current block.
5. A non-transitory computer readable recording medium storing a bitstream generated by a video encoding method, the video encoding method comprising:
performing first intra prediction on a first sub-block within a current block, using one or more reference pixels of the current block;
performing second intra prediction on a second sub-block neighboring to the first sub-block within the current block, using at least one of the reference pixels of the current block or one or more reconstructed pixels of the first sub-block, the reconstructed pixels being generated based on an output of the first intra prediction; and
encoding intra prediction information related to the first intra prediction and the second intra prediction, into a bitstream,
wherein the current block includes a plurality of sub-blocks, a number of the sub-blocks being determined based on a size of the current block,
wherein the number of the sub-blocks is determined based on a comparison result between a horizontal size or a vertical size of the current block and a predetermined value.