Method and apparatus for processing video signal
A method for decoding a video according to the present invention may comprise: determining merge target candidate blocks of a current coding block, specifying at least one among the merge target candidate blocks, and generating a merged block by merging the specified merge target candidate block and the current coding block.
1. A method for decoding a video, the method comprising:
obtaining prediction samples of a current block, the prediction samples of the current block being obtained by performing intra prediction or inter prediction;
performing an inverse-quantization for the current block;
determining whether an inverse-transform is skipped for the current block or not;
when it is determined that the inverse-transform is not skipped for the current block, determining a transform type for the current block;
obtaining residual samples of the current block by performing the inverse-transform based on the determined transform type; and
reconstructing the current block based on the prediction samples and the residual samples,
wherein whether to parse a transform skip flag, indicating whether the inverse-transform is skipped or not, from a bitstream is determined based on a partition type of a coding block including the current block, and
wherein when the partition type of the coding block represents that the coding block is partitioned into a plurality of partitions in either a vertical direction or a horizontal direction, the transform skip flag is not parsed from the bitstream and it is determined that the inverse-transform is not skipped for the current block.
2. The method of claim 1 , wherein whether an asymmetric partitioning type is available for the coding block is determined based on a size of the coding block.
3. A method for encoding a video, the method comprising:
obtaining prediction samples of a current block, the prediction samples of the current block being obtained by performing intra prediction or inter prediction;
determining whether a transform is skipped for the current block or not;
when it is determined that the transform is not skipped for the current block, determining a transform type for the current block;
performing the transform for the current block based on the determined transform type;
performing a quantization for the current block; and
encoding residual coefficients of the current block,
wherein whether to encode a transform skip flag, indicating whether the transform is skipped or not, into a bitstream is determined based on a partition type of a coding block including the current block, and
wherein when the partition type of the coding block including the current block represents that the coding block is partitioned into a plurality of partitions in either a vertical direction or a horizontal direction, the transform skip flag is not encoded into the bitstream and the transform is not skipped for the current block.
4. A transmitting apparatus of data for image information, comprising:
at least one processor configured to obtain a bitstream which comprising information on residual coefficients of a current block; and
a transmitter configured to transmit the data comprising the bitstream of the image information,
wherein the residual coefficients are derived by:
performing a quantization for the current block; and
performing a transform for the current block,
wherein whether a transform skip flag, indicating whether the transform is skipped or not, is included in the bitstream or not is determined based on a partition type of a coding block including the current block, and
wherein when the partition type of the coding block including the current block represents that the coding block is partitioned into a plurality of partitions in either a vertical direction or a horizontal direction, the transform skip flag is not included in the bitstream and the transform is not skipped for the current block.