Method and apparatus for encoding/decoding images
A method and apparatus for encoding/decoding images according to the present invention may configure a prediction mode candidate group on a screen of a target block, determine a reference pixel for a prediction mode on the screen of the target block, perform at least one of filtering and interpolation on the reference pixel, and perform prediction on the screen of the target block on the basis of the prediction mode candidate group on the screen and the reference pixel.
1 . An image decoding method performed by an image decoding apparatus, comprising:
determining an intra prediction mode of a current block;
determining a reference pixel of the current block; and
predicting the current block based on the intra prediction mode and the reference pixel,
wherein the current block is predicted by interpolating a reference sample on a fractional location by reference sample interpolation filtering based on reference samples on integer locations,
either fixed filtering or adaptive filtering is selected for reference sample interpolation filtering based on a color component of the current block,
where the fixed filtering is selected, a fixed interpolation filter is applied for reference sample interpolation filtering,
where the adaptive filtering is selected, one interpolation filter is selected from a plurality of interpolation filters and applied for reference sample interpolation filtering,
the interpolation of the reference sample at the fractional location is not performed where the intra prediction mode of the current block is determined to be an intra prediction mode that only refers to a pixel at an integer location.
2 . The method of claim 1 ,
wherein the plurality of interpolation filters for the adaptive filtering includes at least one of a four-tap smoothing filter or a four-tap DCT filter.
3 . An image encoding method performed by an image encoding apparatus, comprising:
determining an intra prediction mode of a current block;
determining a reference pixel of the current block; and
predicting the current block based on the intra prediction mode and the reference pixel,
wherein the current block is predicted by interpolating a reference sample on a fractional location by reference sample interpolation filtering based on reference samples on integer locations,
either fixed filtering or adaptive filtering is selected for reference sample interpolation filtering based on a color component of the current block,
where the fixed filtering is selected, a fixed interpolation filter is applied for reference sample interpolation filtering,
where the adaptive filtering is selected, one interpolation filter is selected from a plurality of interpolation filters and applied for reference sample interpolation filtering,
the interpolation of the reference sample at the fractional location is not performed where the intra prediction mode of the current block is determined to be an intra prediction mode that only refers to a pixel at an integer location.
4 . The method of claim 3 ,
wherein the plurality of interpolation filters for the adaptive filtering includes at least one of a four-tap smoothing filter or a four-tap DCT filter.
5 . A bitstream transmitting method comprising:
generating a bitstream to be decoded by an image decoding method; and
transmitting the bitstream, and
wherein the image decoding method comprises:
determining an intra prediction mode of a current block;
determining a reference pixel of the current block; and
predicting the current block based on the intra prediction mode and the reference pixel,
wherein the current block is predicted by interpolating a reference sample on a fractional location by reference sample interpolation filtering based on reference samples on integer locations,
either fixed filtering or adaptive filtering is selected for reference sample interpolation filtering based on a color component of the current block,
where the fixed filtering is selected, a fixed interpolation filter is applied for reference sample interpolation filtering,
where the adaptive filtering is selected, one interpolation filter is selected from a plurality of interpolation filters and applied for reference sample interpolation filtering,
the interpolation of the reference sample at the fractional location is not performed where the intra prediction mode of the current block is determined to be an intra prediction mode that only refers to a pixel at an integer location.
6 . The method of claim 5 ,
wherein the plurality of interpolation filters for the adaptive filtering includes at least one of a four-tap smoothing filter or a four-tap DCT filter.