Method and apparatus for processing video signal
A method for decoding a video according to the present invention may comprise: deriving a plurality of reference sample lines for a current block, selecting at least one among the plurality of reference sample lines, determining whether to apply an intra filter to a reference sample included in the selected reference sample line, selectively applying the intra filter to the reference sample according to the determination, and performing intra prediction for the current block using the reference sample.
1. A method for decoding a video, the method comprising:
selecting a reference sample line of a current block among a plurality of reference sample lines;
performing intra prediction for the current block based on the selected reference sample line and an intra prediction mode of the current block;
reconstructing the current block based on prediction samples of the current block; and
applying a deblocking filter to the reconstructed current block,
wherein if a distance between the current block and the selected reference sample line is greater than a pre-determined value, at least one non-directional intra prediction mode is unavailable as the intra prediction mode of the current block, the at least one non-directional intra prediction mode comprising at least one of DC mode or Planar mode.
2. The method of claim 1 , wherein when the intra prediction mode of the current block has a direction of top-right diagonal or bottom-left diagonal, a prediction sample resultant from the intra prediction is modified by using a reference sample included in a neighboring block adjacent to the current block.
3. The method of claim 2 , wherein the reference sample comprises at least one of a sample toward a reverse direction of the intra prediction mode.
4. A method for encoding a video, the method comprising:
selecting a reference sample line of a current block among a plurality of reference sample lines;
performing intra prediction for the current block based on the selected reference sample line and an intra prediction mode of the current block; and
reconstructing the current block based on prediction samples of the current block; and
applying a deblocking filter to the reconstructed current block,
wherein if a distance between the current block and the selected reference sample line is greater than a pre-determined value, at least one non-directional intra prediction mode is unavailable as the intra prediction mode of the current block, the at least one non-directional intra prediction mode comprising at least one of DC mode or Planar mode.
5. The method of claim 4 , wherein when the intra prediction mode of the current block has a direction of top-right diagonal or bottom-left diagonal, a prediction sample resultant from the intra prediction is modified by using a reference sample included in a neighboring block adjacent to the current block.
6. The method of claim 5 , wherein the reference sample comprises at least one of a sample toward a reverse direction of the intra prediction mode.
7. A non-transitory computer-readable medium for storing compressed data associated with a video signal, the compressed data comprising:
index information for selecting a reference sample line of a current block among a plurality of reference sample lines,
wherein a deblocking filter is applied to the current block reconstructed by intra prediction,
wherein the current block is reconstructed based on prediction samples resulting from the intra prediction for the current block,
wherein the intra prediction for the current block is performed based on the reference sample line selected by the index information and an intra prediction mode of the current block,
wherein if a distance between the current block and the selected reference sample line is greater than a pre-determined value, at least one non-directional intra prediction mode is unavailable as the intra prediction mode of the current block, and
wherein the at least one non-directional intra prediction mode comprising at least one of DC mode or Planar mode.