Method and apparatus for processing intra-prediction-based video signal
View Patent ↗According to the present invention, provided is a method of processing a video signal, the method including: 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 current block by splitting a current largest coding unit;
determining an intra prediction mode of the current block;
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 that at least one of a first weight for the top reference pixel and a second weight for the left reference pixel is greater than zero,
the first weight is determined to be zero in response to that a distance from the top reference pixel is greater than a predetermined value and the second weight is determined to be zero in response to that a distance from the left reference pixel is greater than the predetermined value,
the predetermined value is determined based on a size of the current block,
wherein a range of the reference pixel is determined based on at least one of a size of the current block and a shape 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. A video encoding method, comprising:
determining a current block by splitting a current largest coding unit;
determining an intra prediction mode of the current block;
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 that at least one of a first weight for the top reference pixel and a second weight for the left reference pixel is greater than zero,
the first weight is determined to be zero in response to that a distance from the top reference pixel is greater than a predetermined value and the second weight is determined to be zero in response to that a distance from the left reference pixel is greater than the predetermined value,
the predetermined value is determined based on a size of the current block,
wherein a range of the reference pixel is determined based on at least one of a size of the current block and a shape of the current block.
6. The method of claim 5 , 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.
7. The method of claim 5 ,
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.
8. The method of claim 5 , wherein the left reference pixel and the top reference pixel are included in the neighboring pixels.
9. A method for transmission of a bitstream which is generated by a video encoding method, the method comprising:
determining a current block by splitting a current largest coding unit;
determining an intra prediction mode of the current block;
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 that at least one of a first weight for the top reference pixel and a second weight for the left reference pixel is greater than zero,
the first weight is determined to be zero in response to that a distance from the top reference pixel is greater than a predetermined value and the second weight is determined to be zero in response to that a distance from the left reference pixel is greater than the predetermined value,
the predetermined value is determined based on a size of the current block,
wherein a range of the reference pixel is determined based on at least one of a size of the current block and a shape of the current block.