Image encoding/decoding method, apparatus, and recording medium for storing bitstream
The present invention relates to an image encoding/decoding method and apparatus. The image decoding method according to the present invention may comprise constructing N MPM lists for a current block, wherein N is equal to or greater than 1, deriving an intra prediction mode of the current block based on the N MPM lists, and performing intra prediction for the current block based on the intra prediction mode.
1. An image decoding method performed by an image decoding apparatus, the method comprising:
selecting one of a plurality of reference sample lines neighboring a current block;
deriving a reference sample line based on the selected reference sample line;
filtering the reference sample line; and
deriving prediction samples for the current block based on the filtered reference sample line;
wherein the filtering of the reference sample line includes determining whether a filtering is performed based on an intra prediction mode of the current block, a size of the current block, a type of the current block, and a position of the selected reference sample line,
wherein the reference sample line is selected based on whether a boundary of the current block is a boundary of a coding tree block (CTB), and
wherein based on the boundary of the current block being the boundary of the CTB, a first upper reference sample line adjacent to the current block is selected.
2. An image encoding method performed by an image encoding apparatus, the method comprising:
selecting one of a plurality of reference sample lines neighboring a current block;
deriving a reference sample line based on the selected reference sample line;
filtering the reference sample line;
deriving prediction samples for the current block based on the filtered reference sample line; and
encoding image information comprising intra prediction mode information for the current block,
wherein the filtering of the reference sample line includes determining whether a filtering is performed based on an intra prediction mode of the current block, a size of the current block, a type of the current block, and a position of the selected reference sample line,
wherein the reference sample line is selected based on whether a boundary of the current block is a boundary of a coding tree block (CTB), and
wherein based on the boundary of the current block being the boundary of the CTB, a first upper reference sample line adjacent to the current block is selected.
3. A transmission method for image data, the method comprising:
obtaining a bitstream for encoded image information, wherein the encoded image information is generated based on selecting one of a plurality of reference sample lines neighboring a current block, deriving a reference sample line based on the selected reference sample line, filtering the reference sample line, deriving prediction samples for the current block based on the filtered reference sample line, and encoding image information comprising intra prediction mode information for the current block; and
transmitting the image data comprising the bitstream,
wherein the filtering of the reference sample line includes determining whether a filtering is performed based on an intra prediction mode of the current block, a size of the current block, a type of the current block, and a position of the selected reference sample line,
wherein the reference sample line is selected based on whether a boundary of the current block is a boundary of a coding tree block (CTB), and
wherein based on the boundary of the current block being the boundary of the CTB, a first upper reference sample line adjacent to the current block is selected.