CN-122027803-A - Video signal encoding method and decoding method and apparatus thereof
Abstract
The video decoding method comprises the steps of determining a reference sample line of a current block, determining whether a candidate intra-frame prediction mode which is the same as the intra-frame prediction mode of the current block exists or not, obtaining the intra-frame prediction mode of the current block based on a determination result, and carrying out intra-frame prediction on the current block according to the reference sample line and the intra-frame prediction mode. Wherein at least one of the candidate intra prediction modes may be to add or subtract an offset to or from a maximum value of intra prediction modes of an upper neighboring block of the current block and intra prediction modes of a left neighboring block of the current block.
Inventors
- LI PEIGEN
Assignees
- OPPO广东移动通信有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20191011
- Priority Date
- 20181012
Claims (19)
- 1. A video decoding method, comprising: Determining a reference sample line of the current block; Determining whether there is a candidate intra prediction mode identical to an intra prediction mode of the current block; based on the result of the determination, obtaining an intra prediction mode of the current block, and Performing intra-frame prediction on the current block according to the reference sample line and the intra-frame prediction mode; When the difference between the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block is 64, at least one of the candidate intra-prediction modes is to add or subtract 2 to or from the maximum value of the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block; Determining whether to divide the current block into a plurality of sub-blocks, wherein the plurality of sub-blocks share one intra-prediction mode when the current block is divided into the plurality of sub-blocks; And determining the horizontal direction transformation type and the vertical direction transformation type of the sub-block according to the shape of the sub-block.
- 2. The video decoding method of claim 1, wherein, The number of candidate intra prediction modes is different according to the index of the reference sample line.
- 3. The video decoding method of claim 1, wherein, For a portion of the sub-blocks of the plurality of sub-blocks, skipping inverse transforms.
- 4. The video decoding method of claim 1, wherein, And determining the horizontal direction transformation type of the sub-block according to the width of the sub-block of the current block, and determining the vertical direction transformation type of the sub-block according to the height of the sub-block of the current block.
- 5. A video encoding method, comprising: Determining a reference sample line of the current block; Determining whether there is a candidate intra prediction mode identical to an intra prediction mode of the current block; based on the result of the determination, obtaining an intra prediction mode of the current block, and Intra-predicting the current block according to the reference sample line and the intra-prediction mode, When the difference between the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block is 64, at least one of the candidate intra-prediction modes is to add or subtract 2 to or from the maximum value of the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block; Determining whether to divide the current block into a plurality of sub-blocks, wherein the plurality of sub-blocks share one intra prediction mode when the current block is divided into the plurality of sub-blocks; And determining the horizontal direction transformation type and the vertical direction transformation type of the sub-block according to the shape of the sub-block.
- 6. The video coding method of claim 5, wherein, The number of candidate intra prediction modes is different according to the index of the reference sample line.
- 7. The video coding method of claim 5, wherein, For a portion of the sub-blocks of the plurality of sub-blocks, the transform is skipped.
- 8. The video coding method of claim 5, wherein, And determining the horizontal direction transformation type of the sub-block according to the width of the sub-block of the current block, and determining the vertical direction transformation type of the sub-block according to the height of the sub-block of the current block.
- 9. A video decoding apparatus, comprising: means for determining a reference sample line for the current block; means for determining whether there is a candidate intra-prediction mode identical to an intra-prediction mode of the current block; means for obtaining an intra prediction mode of the current block based on a result of the determination, and Means for intra-predicting the current block based on the reference sample line and the intra-prediction mode; Wherein when the difference between the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block is 64, at least one of the candidate intra-prediction modes is to add or subtract 2 to or from the maximum value of the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block; Means for determining whether to divide the current block into a plurality of sub-blocks, wherein the plurality of sub-blocks share one intra-prediction mode when the current block is divided into the plurality of sub-blocks; And determining the horizontal direction transformation type and the vertical direction transformation type of the sub-block according to the shape of the sub-block.
- 10. The video decoding device of claim 9, wherein, The number of candidate intra prediction modes is different according to the index of the reference sample line.
- 11. The video decoding device of claim 9, wherein, For a portion of the sub-blocks of the plurality of sub-blocks, skipping inverse transforms.
- 12. The video decoding device of claim 9, wherein, And determining the horizontal direction transformation type of the sub-block according to the width of the sub-block of the current block, and determining the vertical direction transformation type of the sub-block according to the height of the sub-block of the current block.
- 13. A video encoding apparatus, comprising: means for determining a reference sample line for the current block; means for determining whether there is a candidate intra-prediction mode identical to an intra-prediction mode of the current block; means for obtaining an intra prediction mode of the current block based on a result of the determination, and Means for intra-predicting the current block based on the reference sample line and the intra-prediction mode, Wherein when the difference between the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block is 64, at least one of the candidate intra-prediction modes is to add or subtract 2 to or from the maximum value of the intra-prediction mode of the upper neighboring block of the current block and the intra-prediction mode of the left neighboring block of the current block; means for determining whether to divide the current block into a plurality of sub-blocks, wherein the plurality of sub-blocks share one intra-prediction mode when the current block is divided into the plurality of sub-blocks; And determining the horizontal direction transformation type and the vertical direction transformation type of the sub-block according to the shape of the sub-block.
- 14. The video encoding device of claim 13, wherein, The number of candidate intra prediction modes is different according to the index of the reference sample line.
- 15. The video encoding device of claim 13, wherein, For a portion of the sub-blocks of the plurality of sub-blocks, the transform is skipped.
- 16. The video encoding device of claim 13, wherein, And determining the horizontal direction transformation type of the sub-block according to the width of the sub-block of the current block, and determining the vertical direction transformation type of the sub-block according to the height of the sub-block of the current block.
- 17. A computer readable recording medium comprising program instructions which, when executed by a computer component, perform the video decoding method according to any one of claims 1 to 4.
- 18. A computer readable recording medium comprising program instructions which, when executed by a computer component, perform the video encoding method according to any one of claims 5 to 8.
- 19. A method of transmitting a code stream, characterized by performing the video coding method according to any of claims 5 to 8 to generate a code stream, and transmitting the code stream.
Description
Video signal encoding method and decoding method and apparatus thereof Description of the division The application relates to a division application of PCT international patent application PCT/KR 2019/013284 of which the application date is 2019, 10 month 11 and Chinese patent application number 201980056255.0 of which the application date enters the Chinese national stage, and a video signal encoding method and a video signal decoding method and a device thereof. Cross Reference to Related Applications The present application is based on and claims priority from korean patent application No. 10-2018-011713, having application date of 2018, 10-12, the entire contents of which are incorporated herein by reference. The present application is based on and claims priority from korean patent application No. 10-2018-012767, having application date of 2018, 10-12, the entire contents of which are incorporated herein by reference. The present application is based on and claims priority from korean patent application No. 10-2019-0006611, having application date of 2019, 1 month and 18, the entire contents of which are incorporated herein by reference. Technical Field The present application relates to a video signal encoding method and decoding method and apparatus thereof. Background With the trend of increasing the size of display panels, video services with higher image quality are increasingly demanded. The biggest problem of high-quality video services is a large increase in data volume, and in order to solve such a problem, studies aiming at improving video compression rate are actively underway. As a representative example, 2009 MPEG (Motion Picture Experts Group: motion picture expert group) established JCT-VC (Joint Collaborative Team on Video Coding: video coding joint group) with VCEG (Video Coding Experts Group: video coding expert group) under ITU-T (International Telecommunication Union-telecommunications union) flag. JCT-VC proposed a Video compression standard HEVC (HIGH EFFICIENCY Video Coding: high efficiency Video Coding) with about 2 times the compression performance compared to h.264/AVC, which was approved by the 25 th month of 2013. However, with the rapid development of high-quality video services, HEVC has gradually revealed its limitations. Disclosure of Invention The object of the present application is, in terms of video signal encoding or decoding, to provide a method of deriving candidate intra prediction modes based on intra prediction modes of neighboring blocks adjacent to a current block, and an apparatus for performing the method. The object of the present application is, in terms of video signal encoding or decoding, to provide a method of dividing an encoded block or a transformed block into a plurality of sub-blocks and performing intra prediction on the respective sub-blocks, and an apparatus for performing the method. The object of the present application is, in terms of video signal encoding or decoding, to provide a method of dividing an encoded block or a transformed block into a plurality of sub-blocks and performing a transformation on only a part of the sub-blocks in the sub-block, and an apparatus for performing the method. The technical subject matter to be achieved by the present application is not limited to the above-mentioned technical subject matter, and other technical subject matter not mentioned is that one of ordinary skill in the art to which the present application belongs can clearly understand from the following description. The video signal decoding or encoding method comprises the steps of determining a reference sample line of a current block, determining whether a candidate intra-frame prediction mode which is the same as an intra-frame prediction mode of the current block exists, obtaining the intra-frame prediction mode of the current block based on a determination result, and carrying out intra-frame prediction on the current block according to the reference sample line and the intra-frame prediction mode. At this time, at least one of the candidate intra prediction modes may be to add or subtract an offset to or from the maximum value of the intra prediction modes of the upper neighboring block of the current block and the intra prediction modes of the left neighboring block of the current block. In the video signal decoding or encoding method of the present application, when a difference between the intra prediction mode of the upper neighboring block and the intra prediction mode of the left neighboring block is 64, at least one of the candidate intra prediction modes may be to add or subtract 2 from the maximum value. In the video signal decoding or encoding method of the present application, the number of candidate intra prediction modes may be different according to the index of the reference sample line. In the video signal decoding or encoding method of the present application, it may further include determining whether to divide the current