Method and apparatus for processing intra-prediction-based video signal
View Patent ↗A method of processing a video signal includes obtaining a transform coefficient of a current block from a bitstream according to a predetermined scanning order, determining an intra prediction mode of the current block on the basis of the transform coefficient, and performing intra prediction on the current block using the intra prediction mode and a neighboring sample adjacent to the current block.
1. A video decoding method, comprising:
determining a prediction mode of a current block from among an intra mode, an inter mode, and an intra block copy mode;
determining an intra prediction mode of the current block in response to the prediction mode of the current block being the intra mode;
generating prediction pixels in the current block by performing a DC intra prediction on the current block based on at least one of neighboring pixels of the current block in response to the intra prediction mode of the current block being a DC mode; and
filtering a prediction pixel in the current block by a weighting filter, and
wherein, the filtered prediction pixel by the weighting filter is determined based on a weighted sum of the top reference pixel, the left reference pixel and the prediction pixel, and
the left reference pixel of the prediction pixel is included in a same row as the prediction pixel and the top reference pixel of the prediction pixel is included in a same column as the prediction pixel,
the prediction pixel is filtered by the weighting filter in response to at least one of a first weight for the top reference pixel and a second weight for the left reference pixel greater than zero,
the first weight is determined to be zero in response to a distance from the top reference pixel greater than a predetermined value and the second weight is determined to be zero in response to a distance from the left reference pixel greater than the predetermined value,
the predetermined value is determined based on a size of the current block.
2. The method of claim 1 , wherein whether to apply the weighting filter is determined based on at least one of the intra prediction mode of the current block and a partition type of the current block.
3. The method of claim 1 , wherein the weighting filter is applied based on weights of the weighting filter,
wherein the second weight for the left reference pixel is derived based on a distance between the prediction pixel and the left reference pixel, and the first weight for the top reference pixel is derived based on a distance between the prediction pixel and the top reference pixel.
4. The method of claim 1 , wherein the left reference pixel and the top reference pixel are included in the neighboring pixels.
5. The method of claim 1 , wherein a range of the reference pixel is determined based on at least one of the intra prediction mode of the current block, a size of the current block, and a shape of the current block.
6. A video encoding method, comprising:
determining a prediction mode of a current block from among an intra mode, an inter mode, and an intra block copy mode;
determining an intra prediction mode of the current block in response to the prediction mode of the current block being the intra mode;
generating prediction pixels in the current block by performing a DC intra prediction on the current block based on at least one of neighboring pixel of the current block in response to the intra prediction mode of the current block being a DC mode; and
filtering a prediction pixel in the current block by a weighting filter, and
wherein, the filtered prediction pixel by the weighting filter is determined based on a weighted sum of the top reference pixel, the left reference pixel and the prediction pixel, and
the left reference pixel of the prediction pixel is included in a same row as the prediction pixel and the top reference pixel of the prediction pixel is included in a same column as the prediction pixel,
the prediction pixel is filtered by the weighting filter in response to at least one of a first weight for the top reference pixel and a second weight for the left reference pixel greater than zero,
the first weight is determined to be zero in response to a distance from the top reference pixel greater than a predetermined value and the second weight is determined to be zero in response to a distance from the left reference pixel greater than the predetermined value,
the predetermined value is determined based on a size of the current block.
7. The method of claim 6 , wherein whether to apply the weighting filter is determined based on at least one of the intra prediction mode of the current block and a partition type of the current block.
8. The method of claim 6 ,
wherein the second weight for the left reference pixel is derived based on a distance between the prediction pixel and the left reference pixel, and the first weight for the top reference pixel is derived based on a distance between the prediction pixel and the top reference pixel.
9. The method of claim 6 , wherein the left reference pixel and the top reference pixel are included in the neighboring pixels.
10. The method of claim 6 , wherein a range of the reference pixel is determined based on at least one of the intra prediction mode of the current block, a size of the current block, and a shape of the current block.
11. A computer-readable recording medium storing a bitstream which is received and decoded by a video decoding method to reconstruct an image,
wherein the bitstream comprises information indicating an intra prediction mode of a current block, and
the video decoding method configured to:
determining a prediction mode of the current block from among an intra mode, an inter mode, and an intra block copy mode;
determining the intra prediction mode of the current block in response to the prediction mode of the current block being the intra mode;
generate prediction pixels in the current block by performing a DC intra prediction on the current block based on at least one of neighboring pixels of the current block in response to the intra prediction mode of the current block being a DC mode; and
filter a prediction pixel in the current block by a weighting filter, and
wherein, the filtered prediction pixel by the weighting filter is determined based on a weighted sum of the top reference pixel, the left reference pixel and the prediction pixel, and
the left reference pixel of the prediction pixel is included in a same row as the prediction pixel and the top reference pixel of the prediction pixel is included in a same column as the prediction pixel,
the prediction pixel is filtered by the weighting filter in response to at least one of a first weight for the top reference pixel and a second weight for the left reference pixel greater than zero,
the first weight is determined to be zero in response to a distance from the top reference pixel greater than a predetermined value and the second weight is determined to be zero in response to a distance from the left reference pixel greater than the predetermined value,
the predetermined value is determined based on a size of the current block.