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, and
the plurality of interpolation filters for the adaptive filtering includes a four-tap gaussian filter and a four-tap DCT filter.
2. 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, and
the plurality of interpolation filters for the adaptive filtering includes a four-tap gaussian filter and a four-tap DCT filter.
3. 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, and
the plurality of interpolation filters for the adaptive filtering includes a four-tap gaussian filter and a four-tap DCT filter.