Method and apparatus for processing video signal
A method for processing a video according to the present invention may comprise: generating a plurality of Most Probable Mode (MPM) candidates; determining whether there is an MPM candidate identical to an intra-prediction mode of a current block among the plurality of MPM candidates; obtaining the intra-prediction mode of the current block, based on a result of the determining; and performing an intra-prediction for the current block, based on the intra-prediction mode of the current block.
1. A method of decoding an image with a decoding apparatus, comprising:
deriving, with the decoding apparatus, reference samples for performing intra prediction for a current block in the image;
obtaining, with the decoding apparatus, intra predicted samples of the current block by performing the intra prediction based on an intra prediction mode and the reference samples; and
obtaining, with the decoding apparatus, final prediction samples of the current block using the intra predicted samples,
wherein the final prediction samples are obtained by applying a weight to the intra predicted samples,
wherein the weight is adaptively determined based on whether a neighboring block adjacent to the current block is coded by intra prediction or inter prediction, the neighboring block being included in a picture in which the current block is included, and
wherein the weight applied to the intra predicted samples is greater when the neighboring block is coded by the intra prediction than when the neighboring block is coded by the inter prediction.
2. The method of claim 1 , wherein in response to the neighboring block being coded by the intra prediction, the weight is determined as ½, and
wherein in response to the neighboring block being coded by the inter prediction, the weight is determined as ¼.
3. The method of claim 2 , wherein the final prediction samples are obtained by a weight sum of the intra predicted samples and reconstructed samples included in a reference block of the current block.
4. The method of claim 1 , wherein, in response to the reference samples including a one reference line, the one reference line includes a plurality of sub-regions, and
wherein the plurality of sub-regions includes a first sub-region composed of top neighboring samples adjacent to the current block and a second sub-region composed of left neighboring samples adjacent to the current block.
5. A method of encoding an image with an encoding apparatus, comprising:
deriving, with the encoding apparatus, reference samples for performing intra prediction for a current block; and
obtaining, with the encoding apparatus, intra predicted samples of the current block by performing the intra prediction based on an intra prediction mode and the reference samples; and
obtaining, with the encoding apparatus, final prediction samples of the current block using the intra predicted samples,
wherein the final prediction samples are obtained by applying a weight to the intra predicted samples,
wherein the weight is adaptively determined based on whether a neighboring block adjacent to the current block is coded by intra prediction or inter prediction, the neighboring block being included in a picture in which the current block is included, and
wherein the weight applied to the intra predicted samples is greater when the neighboring block is coded by the intra prediction than when the neighboring block is coded by the inter prediction.
6. An apparatus for transmitting data for a video, the apparatus comprising:
a processor configured to generate a bitstream; and
a transmitter configured to transmitting the data including the bitstream,
wherein, based on information included in the data, a prediction block of a current block is obtained,
wherein obtaining the prediction block comprises:
deriving reference samples for performing intra prediction for the current block; and
obtaining intra predicted samples of the current block by performing the intra prediction based on an intra prediction mode and the reference samples; and
obtaining final prediction samples of the current block using the intra predicted samples,
wherein the final prediction samples are obtained by applying a weight to the intra predicted samples,
wherein the weight is adaptively determined based on whether a neighboring block adjacent to the current block is coded by intra prediction or inter prediction, the neighboring block being included in a picture in which the current block is included, and
wherein the weight applied to the intra predicted samples is greater when the neighboring block is coded by the intra prediction than when the neighboring block is coded by the inter prediction.