Method and device for transforming in video image encoding and decoding

By dividing the video codec block into multiple sub-transformation blocks and applying a specific transformation method, the problem of low efficiency in processing edge residual redundancy of the codec block in the existing technology is solved, and more efficient video coding performance is achieved.

CN112887734BActive Publication Date: 2024-10-15BEIJING SAMSUNG TELECOM R&D CENT +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201911204521.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-29
Publication Date
2024-10-15
Estimated Expiration
2039-11-29

AI Technical Summary

Technical Problem

Existing traditional transformation methods have inefficiency problems when processing the edge area residuals of video codec blocks. In particular, SBT can only remove the redundancy of one edge, while PBT requires additional information transmission to remove the edge of the codec block. Residual redundancy.

Method used

Divide the current coding block into multiple sub-transform blocks, and design corresponding transformation methods according to the sub-block positions, including applying different types of discrete cosine transforms and sine transforms in the horizontal or vertical direction, forcing the residuals of some sub-blocks to be 0 , to reduce redundancy, and write the division mode and coefficient encoding into the code stream.

Benefits of technology

It effectively removes the residual redundancy at the edge positions of encoding and decoding blocks, improves coding efficiency, and reduces additional overhead in the code stream.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112887734B_ABST
    Figure CN112887734B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for transformation in video coding and decoding, the method comprising: obtaining a residual of a current coding block according to a prediction value of a current coding block of an image and an original value of the image; dividing the current coding block into n sub-transformation blocks according to mode information for dividing the current coding block into sub-transformation blocks, and performing transformations corresponding to the sub-transformation blocks on the generated residuals of different sub-transformation blocks, wherein n is an integer greater than or equal to 3; quantizing the transformation result to obtain coefficients of the sub-transformation blocks, and performing coefficient coding on the coefficients of the sub-transformation blocks; and writing the coefficient coding result and the mode information for dividing the current coding block into sub-transformation blocks into a bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video coding / decoding, and more specifically, to a method and device for conversion in coding / decoding. The present invention relates to the technical field of video coding / decoding, and more specifically, to a method and device for conversion in coding / decoding. Background Art

[0002] In natural videos, there is a high degree of similarity between images. Therefore, in order to remove information redundancy between images during video compression, inter-frame prediction is often performed. The so-called inter-frame prediction is to use the already encoded image to predict the current image to be encoded, and then pass the prediction error to the decoder. Compared with directly transmitting the content of the current image, the amount of information in the prediction error is much smaller, thus achieving the purpose of compression. In fact, when performing inter-frame prediction, the encoder needs to find a reference block that matches each image block as much as possible in the previously encoded reference image, so as to minimize the prediction error. Summary of the invention

[0003] Technical issues

[0004] Image prediction residual refers to the difference between the image prediction value and the original image. With the continuous advancement of prediction technology, image prediction residual is constantly decreasing, but the residual in the edge area of ​​the image encoding / decoding block is still much larger than the residual in the middle of the encoding / decoding block, and the existing traditional transformation method cannot solve this problem.

[0005] In recent years, many position-based transformation technologies have emerged, such as PBT (Position based Transform), SBT (Sub-block based Transform), etc. Figure 1 The technical block diagram of PBT technology is shown in , which is a position-based transform applied to inter-frame prediction residual blocks to better fit the inter-frame residual characteristics. By dividing the current encoding / decoding block into 4 transform blocks of equal size (for example, blocks 0, 1, 2 and 3), and then selecting different transform kernels to transform the transform blocks according to the different positions of different transform blocks in the encoding / decoding block, a more efficient residual signal expression can be achieved. The transform types allowed by PBT include discrete cosine transform 8 (DCT8) and discrete sine transform 7 (DST7). The maximum size of the coding unit using this method is 32x32, the minimum is 8x8, and the aspect ratio of the coding unit is not greater than 2.

[0006] exist Figure 2The technical block diagram of SBT technology is shown in . SBT technology assumes the local distribution of inter-frame prediction residuals, that is, the prediction residuals are distributed in the local 1 / 2 or 1 / 4 area of ​​the residual block. By dividing the codec block into two transform blocks, and forcing the residual of one transform block to 0, only the other transform block with a non-zero residual is transformed, thereby reducing the high-frequency components of the transform coefficients and improving the compression performance. The above-mentioned PBT technology and SBT technology both effectively remove the residuals at the edge of the codec block and improve the coding efficiency.

[0007] However, although both PBT and SBT technologies are transformation methods designed for residual errors at the edge of codec blocks, both PBT and SBT technologies have some limitations. For example, SBT can only remove the redundancy of residual errors at one edge of a codec block; PBT needs to transmit more information in the bitstream to remove the redundancy of residual errors at the edge of the codec block.

[0008] Technical Solution

[0009] In one aspect of the present invention, a method for transforming in video coding is provided, the method comprising: obtaining a residual of a current coding block according to a prediction value of a current coding block of an image and an original value of the image; dividing the current coding block into n sub-transformation blocks according to mode information for dividing the current coding block into sub-transformation blocks, and performing transforms corresponding to the sub-transformation blocks on the residuals of the generated different sub-transformation blocks, wherein n is an integer greater than or equal to 3; quantizing the result of the transform to obtain coefficients of the sub-transformation blocks, and performing coefficient encoding on the coefficients of the sub-transformation blocks; and writing the result of the coefficient encoding and the mode information for dividing the current coding block into a bitstream.

[0010] According to one aspect of the present invention, a method for transforming in video coding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes a division direction and information indicating the number of sub-transform blocks into which the current coding block is divided, wherein the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

[0011] According to one aspect of the present invention, a method for transformation in video encoding is provided, wherein the residuals of different generated sub-transform blocks are transformed corresponding to the sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, a discrete sine transform 7 (DST7) transform kernel is applied in the horizontal direction, and a discrete cosine transform 8 (DCT8) transform kernel is applied in the vertical direction; for the middle sub-transform blocks, their residuals are forced to be 0 and no transformation is performed; for the sub-transform block of the lowermost layer, a DST7 transform kernel is applied in the horizontal direction, and a DST7 transform kernel is applied in the vertical direction.

[0012] According to one aspect of the present invention, a method for transforming in video coding is provided, wherein, when the division direction indicates the horizontal direction and n=3, the residuals of the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer are forced to be set to 0, and the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer are not transformed, and discrete cosine transform 2 (DCT2) is used as the transform kernel for the intermediate sub-transform blocks in both the horizontal and vertical directions.

[0013] According to one aspect of the present invention, a method for transformation in video encoding is provided, wherein the pattern information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

[0014] In one aspect of the present invention, a method for transformation in video encoding is provided, wherein the residuals of different generated sub-transform blocks are transformed corresponding to the sub-transform blocks, including: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, the DCT8 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction; for the middle sub-transform block, its residual is forced to be 0, and no transformation is performed; for the rightmost sub-transform block, the DST7 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction.

[0015] In one aspect of the present invention, a method for transformation in video coding is provided, wherein the residuals of different generated sub-transform blocks are transformed corresponding to the sub-transform blocks, including: when the division direction indicates the vertical direction and n=3, the residuals of the leftmost sub-transform block and the rightmost sub-transform block are forced to be 0, and the leftmost sub-transform block and the rightmost sub-transform block are not transformed, and DCT2 is used as the transformation kernel in both the horizontal and vertical directions for the middle sub-transform block.

[0016] In one aspect of the present invention, a method for transform in video encoding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

[0017] In one aspect of the present invention, a method for transform in video coding is provided, wherein the results of the coefficient encoding of the sub-transform blocks and the mode information of dividing the current coding block into the sub-transform blocks are written into the bitstream, including: writing an identification of whether the current coding block needs to be divided into sub-transform blocks into the bitstream; writing an identification indicating the number of sub-transform blocks into which the current coding block is divided into the bitstream; writing the division direction into the bitstream; and writing the results of the coefficient encoding of the sub-transform blocks into the bitstream.

[0018] In one aspect of the present invention, a method for transforming in video encoding is provided, wherein writing an identifier indicating the number of sub-transformation blocks into which a current coding block is divided into a bitstream comprises: when the width and height of the current coding block are both less than a predetermined threshold, not writing the identifier indicating the number of sub-transformation blocks into which the current coding block is divided and the division direction into the bitstream; otherwise, writing the identifier indicating the number of sub-transformation blocks into which the current coding block is divided into the bitstream; and if the number of sub-transformation blocks divided is greater than or equal to 3, writing the division direction into the bitstream.

[0019] In one aspect of the present invention, a method for transformation in video encoding is provided, wherein writing a division direction into a bitstream comprises: if a ratio of a width to a height of a current coding block is greater than a predetermined threshold, or a ratio of a width to a height of a current coding block is less than a predetermined threshold, then the division direction is not transmitted; otherwise, the division direction is written into the bitstream.

[0020] In one aspect of the present invention, a method for transformation in video encoding is provided, wherein writing a division direction into a bitstream comprises: after writing an identifier of the number of sub-transformation blocks into which a current coding block is divided into the bitstream, if it is determined that the number of sub-transformation blocks divided is greater than or equal to 3, writing the division direction into the bitstream.

[0021] According to one aspect of the present invention, a method for transformation in video coding is provided, wherein coefficient encoding of the coefficients of the sub-transform blocks comprises: not writing an identifier CBF indicating whether each sub-transform block contains coefficients, and for the case of n=3, the first sub-transform block coefficient is defaulted to 1, the second sub-transform block coefficient is defaulted to 0, and the third sub-transform block coefficient is defaulted to 1.

[0022] According to one aspect of the present invention, a method for transform in video encoding is provided, wherein coefficient encoding of the coefficients of the sub-transform blocks comprises: not writing an identifier CBF indicating whether each sub-transform block contains coefficients, and for the case of n=3, the first sub-transform block coefficient is defaulted to 0, the second sub-transform block coefficient is defaulted to 1, and the third sub-transform block coefficient is defaulted to 0.

[0023] In another aspect of the present invention, a method for transform in video decoding is provided, the method comprising: parsing the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks from the bit stream; dividing the current decoding block into n sub-transform blocks according to the mode information of dividing the current coding block into sub-transform blocks, wherein n is an integer greater than or equal to 3; performing inverse transforms corresponding to the sub-transform blocks on the coefficients of different sub-transform blocks to obtain residuals of the sub-transform blocks; and reconstructing the image through the residuals of the sub-transform blocks of the current decoding block and the predicted values ​​of the current decoding block.

[0024] Another aspect of the present invention provides a method for transformation in video decoding, wherein the mode information of dividing the current decoding block into sub-transform blocks includes a division direction and block number information indicating that the current decoding block is divided into sub-transform blocks, and the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

[0025] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks from the bitstream includes: parsing an identifier of whether the current decoding block is divided into sub-transform blocks, parsing an identifier indicating the number of sub-transform blocks into which the current decoding block is divided, parsing the division direction of the current decoding block, and parsing the coefficients of the sub-transform blocks.

[0026] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing an identifier indicating the number of sub-transform blocks into which a current decoding block is divided comprises: when the width and height of the current decoding block are both less than a predetermined threshold, not parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided and the division direction; otherwise, parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided, and if the number of sub-transform blocks is greater than or equal to 3, parsing the division direction.

[0027] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing the division direction includes: if the ratio of the width to the height of the current decoding block is greater than a predetermined threshold, or the ratio of the width to the height of the current decoding block is less than a predetermined threshold, then the division direction is not parsed; otherwise, the division direction is parsed.

[0028] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing the division direction includes: after parsing an identifier indicating the number of sub-transform blocks into which a current decoding block is divided, if it is determined that the number of divided sub-transform blocks is greater than or equal to 3, parsing the division direction.

[0029] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing the coefficients of the sub-transform blocks includes: not parsing the identifier CBF indicating whether each sub-transform block contains coefficients, and for the case of n=3, the coefficient of the first sub-transform block is defaulted to 1, the coefficient of the second sub-transform block is defaulted to 0, and the coefficient of the third sub-transform block is defaulted to 1.

[0030] Another aspect of the present invention provides a method for transformation in video decoding, wherein parsing the coefficients of the sub-transform blocks includes: not parsing the identifier CBF indicating whether each sub-transform block contains coefficients, and for the case of n=3, the coefficients of the first sub-transform block are defaulted to 0, the coefficients of the second sub-transform block are defaulted to 1, and the coefficients of the third sub-transform block are defaulted to 0.

[0031] On the other hand, the present invention provides a method for transformation in video decoding, wherein, when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transformation, and the DCT8 transform kernel is applied in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the sub-transform block of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transformation, and the DST7 transform kernel is applied in the vertical direction for inverse transformation.

[0032] Another aspect of the present invention provides a method for transformation in video decoding, wherein the coefficients of different sub-transform blocks are inversely transformed corresponding to the sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, the discrete sine transform 7 (DST7) transform kernel is applied in the horizontal direction for inverse transformation, and the discrete cosine transform 8 (DCT8) transform kernel is applied in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to 0, and no inverse transformation is performed; for the sub-transform block of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transformation, and the DST7 transform kernel is applied in the vertical direction for inverse transformation.

[0033] Another aspect of the present invention provides a method for transformation in video decoding, wherein the pattern information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

[0034] Another aspect of the present invention provides a method for transformation in video decoding, wherein the coefficients of different sub-transform blocks are inversely transformed corresponding to the sub-transform blocks, including: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, the DCT8 transform kernel is applied in the horizontal direction for inverse transformation, and the DST7 transform kernel is applied in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the rightmost sub-transform block, the DST7 transform kernel is applied in the horizontal direction for inverse transformation, and the DST7 transform kernel is applied in the vertical direction for inverse transformation.

[0035] Another aspect of the present invention provides a method for transformation in video decoding, wherein performing inverse transformation on coefficients of different sub-transform blocks corresponding to the sub-transform blocks comprises: when the division direction indicates the vertical direction and n=3, forcing the residuals of the leftmost sub-transform block and the rightmost sub-transform block to be 0, and not performing inverse transformation on the leftmost sub-transform block and the rightmost sub-transform block, while performing inverse transformation on the middle sub-transform block in both the horizontal and vertical directions using DCT2 as the transformation kernel.

[0036] In another aspect of the present invention, a method for transformation in video decoding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

[0037] In another aspect of the present invention, a device for performing a method for transforming in video image encoding is provided, the device comprising: a prediction unit, which is configured to receive image data and is used to predict a predicted value of a current coding block in the image data, and obtain a residual of the current coding block according to the original value of the image data; a transform unit, which is coupled to the prediction unit and is configured to divide the current coding block of the image data into n sub-transform blocks according to mode information of dividing the current coding block into sub-transform blocks, and perform a transform corresponding to the sub-transform block on the residuals of the generated different sub-transform blocks, and obtain coefficients of the sub-transform blocks by quantizing the transform results, and perform coefficient encoding on the coefficients of the sub-transform blocks, wherein n is an integer greater than or equal to 3; and a writing unit, which is coupled to the conversion unit and is configured to write the mode information of dividing the current coding block into sub-transform blocks and the result of the coefficient encoding into a bitstream.

[0038] According to another aspect of the present invention, a device for performing a method for transforming in coding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes a division direction and information indicating the number of blocks into which the current coding block is divided, wherein the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

[0039] On the other hand, the present invention provides an apparatus for performing a method for transforming in encoding, wherein the transform unit is configured to perform a transform corresponding to the sub-transform block on the residuals of different generated sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, a discrete sine transform 7 (DST7) transform kernel is applied in the horizontal direction, and a discrete cosine transform 8 (DCT8) transform kernel is applied in the vertical direction; for the middle sub-transform block, its residual is forced to be 0 and no transformation is performed; for the sub-transform block of the lowermost layer, a DST7 transform kernel is applied in the horizontal direction, and a DST7 transform kernel is applied in the vertical direction.

[0040] In another aspect of the present invention, a device for performing a method for transforming in encoding is provided, wherein the pattern information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

[0041] On the other hand, the present invention provides an apparatus for performing a method for transforming in encoding, wherein the transform unit is configured to perform a transform corresponding to the sub-transform block on the residuals of different generated sub-transform blocks, including: when the division direction indicates a vertical direction and n=3, for the leftmost sub-transform block, applying the DCT8 transform kernel in the horizontal direction and the DST7 transform kernel in the vertical direction; for the middle sub-transform block, forcing its residual to 0 and not performing the transform; for the rightmost sub-transform block, applying the DST7 transform kernel in the horizontal direction and the DST7 transform kernel in the vertical direction.

[0042] In another aspect of the present invention, a device for performing a method for transforming in coding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

[0043] In another aspect of the present invention, a device for performing a method for transforming in coding is provided, wherein the writing unit is configured to write mode information of dividing a current coding block into sub-transform blocks and the result of the coefficient encoding into a bitstream, including: writing an identification of whether the current coding block needs to be divided into sub-transform blocks into the bitstream; writing an identification indicating the number of sub-transform blocks into which the current coding block is divided into the bitstream; writing a division direction into the bitstream; and writing the result of the coefficient encoding of the sub-transform block into the bitstream.

[0044] In another aspect of the present invention, a device for performing a method for transforming in coding is provided, wherein the writing unit is configured to write an identifier indicating the number of sub-transformation blocks into which a current coding block is divided into into a bitstream, including: when the width and height of the current coding block are both less than a predetermined threshold, the identifier indicating the number of sub-transformation blocks into which the current coding block is divided and the division direction are not written into the bitstream; otherwise, the identifier indicating the number of sub-transformation blocks into which the current coding block is divided is written into the bitstream; if the number of sub-transformation blocks divided is greater than or equal to 3, the division direction is written into the bitstream.

[0045] Another aspect of the present invention provides an apparatus for performing a method for transforming in encoding, wherein the writing unit is configured to write a division direction into a bitstream, including: if the ratio of the width to the height of the current coding block is greater than a predetermined threshold, or the ratio of the width to the height of the current coding block is less than a predetermined threshold, then the division direction is not transmitted; otherwise, the division direction is written into the bitstream.

[0046] Another aspect of the present invention provides an apparatus for performing a method for transforming in coding, wherein the transform unit is configured to perform coefficient encoding on the coefficients of the sub-transform block, including: not writing an identifier CBF indicating whether each sub-transform block contains a coefficient, and for the case of n=3, the first sub-transform block coefficient is defaulted to 1, the second sub-transform block coefficient is defaulted to 0, and the third sub-transform block coefficient is defaulted to 1.

[0047] In another aspect of the present invention, a device for performing a method for transforming in video image decoding is provided, the device comprising: a parsing unit, which is configured to receive a bit stream and to parse the mode information of dividing a current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks; a transform unit, which is coupled to the parsing unit and is configured to divide the current decoding block into n sub-transform blocks according to the mode information of dividing the sub-transform blocks of the current coding block, and perform an inverse transform corresponding to the sub-transform blocks on the coefficients of different sub-transform blocks to obtain residuals of the sub-transform blocks, wherein n is an integer greater than or equal to 3; and a reconstruction unit, which is coupled to the conversion unit and is configured to reconstruct an image through the residuals of the sub-transform blocks of the current decoding block and the predicted value of the current decoding block.

[0048] In another aspect of the present invention, a device is provided for executing a method for performing transformation in video image decoding, wherein the mode information of dividing the current decoding block into sub-transformation blocks includes a division direction and block number information indicating that the current decoding block is divided into sub-transformation blocks, and the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

[0049] In another aspect of the present invention, a device for executing a method for performing transformation in video image decoding is provided, wherein the parsing unit is configured to parse the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks from the bitstream, including: parsing an identifier of whether the current decoding block is divided into sub-transform blocks, parsing an identifier indicating the number of sub-transform blocks into which the current decoding block is divided, parsing the division direction of the current decoding block, and parsing the coefficients of the sub-transform blocks.

[0050] In another aspect of the present invention, a device for executing a method for performing transformation in video image decoding is provided, wherein the parsing unit is configured to parse an identifier indicating the number of sub-transformation blocks into which a current decoding block is divided, including: when the width and height of the current decoding block are both less than a predetermined threshold, not parsing the identifier indicating the number of sub-transformation blocks into which the current decoding block is divided and the division direction; otherwise, parsing the identifier indicating the number of sub-transformation blocks into which the current decoding block is divided, and if the number of sub-transformation blocks is greater than or equal to 3, parsing the division direction.

[0051] Another aspect of the present invention provides an apparatus for executing a method for transformation in video image decoding, wherein the parsing unit is configured to parse the division direction, including: if the ratio of the width to the height of the current decoded block is greater than a predetermined threshold, or the ratio of the width to the height of the current decoded block is less than the predetermined threshold, then the division direction is not parsed; otherwise, the division direction is parsed.

[0052] In another aspect of the present invention, a device for executing a method for transformation in video image decoding is provided, wherein the parsing unit is configured to parse coefficients of sub-transform blocks, including: not parsing an identifier CBF indicating whether each sub-transform block contains coefficients, and for the case of n=3, the coefficient of the first sub-transform block is defaulted to 1, the coefficient of the second sub-transform block is defaulted to 0, and the coefficient of the third sub-transform block is defaulted to 1.

[0053] On the other hand, the present invention provides an apparatus for executing a method for transformation in video image decoding, wherein the transformation unit is configured to perform inverse transformation on coefficients of different sub-transform blocks corresponding to the sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, applying the discrete sine transform 7 (DST7) transform kernel in the horizontal direction for inverse transformation, and applying the discrete cosine transform 8 (DCT8) transform kernel in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to 0, and no inverse transformation is performed; for the sub-transform block of the lowermost layer, applying the DST7 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation.

[0054] In another aspect of the present invention, a device for performing a method for transformation in video image decoding is provided, wherein the pattern information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

[0055] On the other hand, the present invention provides an apparatus for executing a method for transformation in video image decoding, wherein the transformation unit is configured to perform inverse transformation on coefficients of different sub-transform blocks corresponding to the sub-transform blocks, including: when the division direction indicates a vertical direction and n=3, for the leftmost sub-transform block, applying the DCT8 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the rightmost sub-transform block, applying the DST7 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation.

[0056] In another aspect of the present invention, a device for performing a method for transforming in video image decoding is provided, wherein the mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

[0057] Other technical features may be apparent to those skilled in the art from the following drawings, descriptions, and claims.

[0058] Advantageous Effects of the Invention

[0059] The present invention divides the current encoding / decoding block into multiple transform units according to the residual characteristics of the encoding / decoding block, such as Figure 3 As shown, the transform corresponding to the transform block is designed for the transform block at different positions. The residuals of two edges can be processed at the same time, which effectively removes the redundancy of the residuals at the edge position of the coding and decoding block, and reduces the additional overhead in the code stream, thereby improving the coding performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description in conjunction with the accompanying drawings, wherein like reference numerals represent like parts:

[0061] Figure 1 shows a technical block diagram of the PBT technology;

[0062] Figure 2 shows a technical block diagram of the SBT technology;

[0063] Figure 3 A schematic diagram showing a current encoding / decoding block divided into a plurality of sub-transformation blocks according to an embodiment of the present disclosure is shown;

[0064] Figure 4 A flow chart of a method for transforming in video image encoding according to an embodiment of the present disclosure is shown;

[0065] Figure 5 A flow chart of a method for transforming in video image decoding according to an embodiment of the present disclosure is shown;

[0066] Figure 6 A block diagram showing a device for performing a method for transforming in video image coding according to an embodiment of the present disclosure; and

[0067] Figure 7 A block diagram of a device for performing a method for transforming in video image decoding according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0068] Before proceeding to the following detailed description, it may be advantageous to set forth the definitions of certain words and phrases used throughout this patent document. The term "coupling" and its derivatives refer to any direct or indirect communication between two or more elements, whether or not those elements are in physical contact with each other. The terms "transmission", "receiving" and "communication" and their derivatives cover direct and indirect communication. The terms "include" and "comprising" and their derivatives refer to including but not limited to. The term "or" is inclusive, meaning and / or. The phrase "associated with..." and its derivatives refer to including, including within, interconnecting, containing, contained within, connecting or connecting with, coupling or coupling with, communicating with, cooperating, interweaving, parallel, approaching, binding or binding with, having, having attributes, having a relationship or having a relationship with, etc. The term "controller" refers to any device, system or part thereof that controls at least one operation. Such a controller can be implemented with hardware, or a combination of hardware and software and / or firmware. The functions associated with any particular controller can be centralized or distributed, whether local or remote. The phrase "at least one of", when used with a list of items, means that different combinations of one or more of the listed items may be used, and only one of the items in the list may be required. For example, "at least one of A, B, C" includes any of the following combinations: A, B, C, A and B, A and C, B and C, A and B and C.

[0069] Definitions for other specific words and phrases are provided throughout this patent document. Those of ordinary skill in the art should understand that in many, if not most instances, such definitions apply to prior and future uses of such defined words and phrases.

[0070] Discussed below Figures 1 to 7 The various embodiments used to describe the principles of the present disclosure in this patent document are merely exemplary and should not be interpreted in any way as limiting the scope of the present disclosure. Those skilled in the art will appreciate that the principles of the present disclosure can be implemented in any appropriately arranged system or device.

[0071] Figure 3 A schematic diagram showing dividing a current encoding / decoding block into a plurality of sub-transformation blocks according to an embodiment of the present disclosure is shown. Figure 3 The embodiments shown in the figure are for illustration only. Other partitioning methods may be used without departing from the scope of the present disclosure.

[0072] like Figure 3As shown in (a), the current encoding / decoding block is horizontally divided into three parts (sub-transform blocks), among which: the top layer is the residual part (301), for which the DST7 transform kernel is applied in the horizontal direction and the DCT8 transform kernel is applied in the vertical direction; the middle layer is the non-residual part (302), whose residual is forced to be set to 0; the bottom layer is the residual part (303), for which the DST7 transform kernel is applied in the horizontal direction and the DST7 transform kernel is applied in the vertical direction. In addition, in this embodiment, the heights of the three sub-transform blocks are 1 / 4, 1 / 2 and 1 / 4 of the height of the current encoding / decoding block, respectively. The above-mentioned application combination of transform kernels and the division height of sub-transform blocks are only for illustration. Without departing from the scope of the present disclosure, the application combination of transform kernels and the division height of sub-transform blocks can have different methods.

[0073] like Figure 3 As shown in (b), the current encoding / decoding block is vertically divided into three parts (sub-transform blocks), among which: the leftmost part is the residual part (311), for which the DCT8 transform kernel is applied in the horizontal direction and the DST7 transform kernel is applied in the vertical direction; the middle part is the non-residual part (312), and its residual is forced to be set to 0; the rightmost part is the residual part (313), for which the DST7 transform kernel is applied in the horizontal direction and the DST7 transform kernel is applied in the vertical direction. In addition, in this embodiment, the widths of the three sub-transform blocks are 1 / 4, 1 / 2 and 1 / 4 of the width of the current encoding / decoding block, respectively. The above-mentioned application combination of transform kernels and the division height of sub-transform blocks are only for illustration. Without departing from the scope of the present disclosure, the application combination of transform kernels and the division height of sub-transform blocks can have different methods.

[0074] Figure 4 A flowchart of a method for transform in encoding according to an embodiment of the present disclosure is shown. Figure 4 The embodiment of the method for transforming in coding is shown for illustration only, and other embodiments may be used without departing from the scope of the present disclosure. Figure 4 The embodiments shown are subject to adaptations and modifications.

[0075] like Figure 4As shown, the method for transforming in encoding starts at step 101. In step 101, the residual of the current coding block is obtained according to the prediction value of the current coding block and the original value of the image. For the current coding block, the encoder needs to find a reference block with a high matching degree with the current coding block in the reference image that has been encoded before the current coding block, and generate the prediction value of the current coding block based on the reference block. Without departing from the scope of the present disclosure, various methods for generating prediction values ​​in the art can be used to generate the prediction value of the current coding block. By comparing the prediction value of the previous coding block with the original value of the image, the residual of the current coding block is obtained.

[0076] In step 102, the current coding block is divided into n sub-transform blocks, and the residuals of different generated sub-transform blocks are transformed corresponding to the sub-transform blocks; the coefficients of the sub-transform blocks are obtained by quantizing the transformation results, and the coefficients of the sub-transform blocks are coefficient encoded, where n is an integer greater than or equal to 3.

[0077] There are many ways to divide the current coding block: In the division direction, the coding block can be divided in the horizontal direction, such as Figure 3 (a); the coding block can also be divided in the vertical direction, such as Figure 3 (b) as shown.

[0078] In addition, there are many ways to divide the sub-transform block size, one of which is possible as follows: Figure 3 As shown in (a), the current coding block (width is width, height is height) is horizontally divided into three sub-transform blocks, and the width and height of the three sub-transform blocks are (width, height / 4), (width, height / 2) and (width, height / 4) respectively; it can also be as follows Figure 3 As shown in (b), the current coding block (width is width, height is height) is vertically divided into three sub-transform blocks, and the width and height of the three sub-transform blocks are (width / 4, height), (width / 2, height) and (width / 4, height) respectively.

[0079] There may be different ways to perform a transform corresponding to the sub-transform block on the generated residual of the different sub-transform blocks.

[0080] One possible way is Figure 3As shown in (a): for the sub-transform block (301) of the uppermost layer, the DST7 transform kernel is applied in the horizontal direction, and the DCT8 transform kernel is applied in the vertical direction; for the middle sub-transform block (302), its residual is forced to be set to 0, so no transformation is required; for the sub-transform block (303) of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction.

[0081] The above application method is only for example. Figure 3 According to the division situation (a), different transformation kernel application methods can also be adopted. For example, the residuals of the uppermost sub-transform block (301) and the lowermost sub-transform block (303) can be forced to be 0. Therefore, the two sub-transform blocks do not need to be transformed, and DCT2 is used as the transformation kernel in both the horizontal and vertical directions for the middle sub-transform block (302).

[0082] Another possible way to perform a transformation corresponding to the sub-transform block on the generated residuals of different sub-transform blocks is as follows: Figure 3 As shown in (b): for the leftmost sub-transform block (311), the DCT8 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction; for the middle sub-transform block (312), its residual is forced to be 0, so no transformation is required; for the rightmost sub-transform block (313), the DST7 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction.

[0083] The above application method is only for example. Figure 3 According to the division situation (b), different transformation kernel application methods can also be adopted. For example, the residuals of the leftmost sub-transform block (311) and the rightmost sub-transform block (313) can be forced to be 0. Therefore, the two sub-transform blocks do not need to be transformed, and DCT2 is used as the transformation kernel in both the horizontal and vertical directions for the middle sub-transform block (312).

[0084] In step 103, the result of the coefficient encoding and the corresponding mode of dividing the encoding block into sub-transform blocks are written into the bitstream.

[0085] Different methods can be used to write the coefficient encoding result and the corresponding mode of dividing the coding block into sub-transform blocks into the bitstream. One possible implementation method is: first write the identification of whether the current coding block needs to be divided into sub-transform blocks into the bitstream, then write the identification indicating the number of blocks into which the current coding block is divided into sub-transform blocks into the bitstream, then write the division direction into the bitstream, and finally write the result of the coefficient encoding of the sub-transform block into the bitstream. The order of the above writing can also be appropriately changed and adjusted within the scope of the present invention.

[0086] A possible method for writing the identifier indicating the number of sub-transformation blocks into which the current coding block is divided into a bitstream is as follows: when the width and height of the current coding block are both smaller than a predetermined threshold, the identifier indicating the number of sub-transformation blocks into which the current coding block is divided and the division direction are not written into the bitstream; otherwise, the identifier indicating the number of sub-transformation blocks into which the current coding block is divided is written into the bitstream; if the number of sub-transformation blocks divided is greater than or equal to 3, the division direction continues to be written into the bitstream.

[0087] Among them, a possible method of writing the division direction into the bitstream is: if the ratio of the width to the height of the current coding block is greater than a predetermined threshold, or the ratio of the width to the height of the current coding block is less than a predetermined threshold, then the division direction does not need to be transmitted, otherwise the division direction is written into the bitstream.

[0088] Another possible method of writing the division direction into the bitstream is: after writing the identifier of the number of sub-transformation blocks into which the current coding block is divided into the bitstream, if it is determined that the number of sub-transformation blocks divided is greater than or equal to 3, the division direction is written into the bitstream.

[0089] Among them, a possible method of writing the coefficient encoding result of the coefficient of the sub-transform block into the bitstream is: do not write an identifier (CBF, coding block flag) indicating whether each sub-transform block contains a coefficient. For the case where the current coding block is divided into 3 sub-transform blocks, the encoding end defaults to the first sub-transform block coefficient being 1, the second sub-transform block coefficient being 0, and the third sub-transform block coefficient being 1.

[0090] In addition, a possible method for writing the coefficient encoding results of the coefficients of the sub-transform block into the bitstream is: do not write an identifier (CBF, coding block flag) indicating whether each sub-transform block contains a coefficient. For the case where the current coding block is divided into 3 sub-transform blocks, the encoding end defaults the coefficient of the first sub-transform block to 0, the coefficient of the second sub-transform block to 1, and the coefficient of the third sub-transform block to 0.

[0091] Figure 5 A flowchart of a method for transforming during decoding according to an embodiment of the present disclosure is shown. Figure 5 The embodiment of the method for transforming in decoding is shown for illustration only, and other methods may be used without departing from the scope of the present disclosure. Figure 5 The embodiments shown are subject to adaptations and modifications.

[0092] like Figure 5 As shown, the method for transform in decoding starts at step 201. At step 201, the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks (residuals of the sub-transform blocks) are parsed from the code stream.

[0093] There are multiple methods for parsing the mode of dividing the current decoded block into sub-transform blocks and the coefficients of the sub-transform blocks from the bitstream. One possible implementation method is: first parse the flag of whether the current decoded block is divided into sub-transform blocks, then parse the flag indicating the number of sub-transform blocks into which the current decoded block is divided, then parse the division direction of the current decoded block, and finally parse the coefficients of the sub-transform blocks. The above parsing order can also be appropriately changed and adjusted within the scope of the present invention.

[0094] A possible method for parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided is as follows: when the width and height of the current decoding block are both smaller than a predetermined threshold, the identifier indicating the number of sub-transform blocks into which the current decoding block is divided and the division direction are not parsed, and the technology of the present application is not adopted at this time; otherwise, the identifier indicating the number of sub-transform blocks into which the current decoding block is divided is parsed, and if the number of sub-transform blocks is greater than or equal to 3, the division direction is continued to be parsed.

[0095] A possible method for parsing the division direction is: if the ratio of the width to the height of the current decoded block is greater than a predetermined threshold, or the ratio of the width to the height of the current decoded block is less than a predetermined threshold, then the division direction is not parsed; otherwise, the division direction is parsed.

[0096] Another possible method for parsing the division direction is: after parsing the number of blocks of the sub-transform block, if the number of blocks of the divided sub-transform block is greater than or equal to 3, then the division direction is parsed.

[0097] Among them, a possible method for parsing the coefficients of the sub-transform blocks is: not parsing the flag (CBF, coding block flag) indicating whether each sub-transform block contains coefficients. When the current decoding block is divided into 3 sub-transform blocks, the decoding end defaults to the first sub-transform block coefficient being 1, the second sub-transform block coefficient being 0, and the third sub-transform block coefficient being 1.

[0098] In addition, a possible method for parsing the coefficients of the sub-transform blocks is: not parsing the flag (CBF, coding block flag) indicating whether each sub-transform block contains coefficients. When the current decoding block is divided into 3 sub-transform blocks, the decoding end defaults to the first sub-transform block coefficient being 0, the second sub-transform block coefficient being 1, and the third sub-transform block coefficient being 0.

[0099] In step 202, the current decoding block is divided into n sub-transform blocks according to the corresponding mode of dividing the coding block into sub-transform blocks, and the coefficients of different sub-transform blocks are inversely transformed corresponding to the sub-transform blocks to obtain residuals of the sub-transform blocks, where n is an integer greater than or equal to 3.

[0100] There are many ways to divide the current decoding block: In the division direction, the decoding block can be divided in the horizontal direction, such as Figure 3 (a); the decoding block can also be divided in the vertical direction, such as Figure 3 (b) as shown.

[0101] In addition, there are many ways to divide the sub-transform block size, one of which is possible as follows: Figure 3 As shown in (a), the current decoding block (width is width, height is height) is horizontally divided into three sub-transform blocks, and the width and height of the three sub-transform blocks are (width, height / 4), (width, height / 2) and (width, height / 4) respectively; it can also be as follows Figure 3 As shown in (b), the current decoding block (width is width, height is height) is vertically divided into three sub-transform blocks, and the width and height of the three sub-transform blocks are (width / 4, height), (width / 2, height) and (width / 4, height) respectively.

[0102] There may be different ways to perform inverse transformation on the generated different sub-transform blocks using the transformation kernel corresponding to the sub-transform blocks.

[0103] One possible way is Figure 3 As shown in (a): for the sub-transform block (301) of the uppermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transform, and the DCT8 transform kernel is applied in the vertical direction for inverse transform; for the sub-transform block (302) in the middle, its residual is forced to be set to 0, so there is no need for inverse transform; for the sub-transform block (303) of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transform, and the DST7 transform kernel is applied in the vertical direction for inverse transform.

[0104] The above application method is only for example. Figure 3 According to the division situation (a), different transformation kernel application methods can also be adopted. For example, the residuals of the uppermost sub-transform block (301) and the lowermost sub-transform block (303) can be forced to be 0. Therefore, there is no need to perform inverse transformation on the two sub-transform blocks, and DCT2 is used as the transformation kernel for inverse transformation in both the horizontal and vertical directions for the middle sub-transform block (302).

[0105] Another possible way to perform an inverse transformation corresponding to the generated different sub-transform blocks is as follows: Figure 3As shown in (b): for the leftmost sub-transform block (311), the DCT8 transform kernel is applied in the horizontal direction for inverse transform, and the DST7 transform kernel is applied in the vertical direction for inverse transform; for the middle sub-transform block (312), its residual is forced to be 0, so no inverse transform is required; for the rightmost sub-transform block (313), the DST7 transform kernel is applied in the horizontal direction for inverse transform, and the DST7 transform kernel is applied in the vertical direction for inverse transform.

[0106] The above application method is only for example. Figure 3 According to the division situation (b), different transformation kernel application methods can also be adopted. For example, the residuals of the leftmost sub-transform block (311) and the rightmost sub-transform block (313) can be forced to be 0. Therefore, there is no need to perform inverse transformation on these two sub-transform blocks, and DCT2 is used as the transformation kernel for inverse transformation in both the horizontal and vertical directions for the middle sub-transform block (312).

[0107] At step 203, the image is reconstructed by the residual of the sub-transform block of the current decoded block. The current decoded block is reconstructed by the residual of the sub-transform block obtained in step 202 and the prediction value of the current decoded block, thereby achieving image reconstruction.

[0108] Figure 6 A block diagram of a device for performing a method for transform in coding according to an embodiment of the present disclosure is shown. Figure 6 The embodiment of the apparatus for performing the method of transform in coding is shown for illustration only, and other embodiments may be used without departing from the scope of the present disclosure. Figure 6 The embodiments shown are subject to adaptations and modifications.

[0109] exist Figure 6 In the invention, the device for performing the method of transform in coding comprises: a prediction unit (601), a transform unit (602) and a writing unit (603). The prediction unit (601) receives original image data and is used to predict the prediction value of the current coding block in the image data, and obtain the residual of the current coding block according to the original value of the image data. The transform unit (602) is coupled to the prediction unit (601) and is configured to divide the current coding block of the image data into n sub-transform blocks according to the mode information of dividing the current coding block into sub-transform blocks, and perform a transform corresponding to the sub-transform block on the residuals of the generated different sub-transform blocks; obtain the coefficients of the sub-transform blocks by quantizing the transform result, and perform coefficient encoding on the coefficients of the sub-transform blocks, wherein n is an integer greater than or equal to 3. The writing unit (603) is coupled to the conversion unit (602) and writes the corresponding mode of dividing the coding block into the sub-transform block and the coefficient encoding result of the sub-transform block into the bitstream.

[0110] Figure 7 A block diagram of a device for performing a method for transforming during decoding according to an embodiment of the present disclosure is shown. Figure 7 The embodiment of the apparatus for performing the method of transforming in decoding is shown for illustration only, and other embodiments may be used without departing from the scope of the present disclosure. Figure 7 The embodiments shown are subject to adaptations and modifications.

[0111] refer to Figure 7 , the device for performing the method of transform in decoding comprises: a parsing unit (701), a transform unit (702) and a reconstruction unit (703). The parsing unit (701) receives a code stream from an encoding end and is used to parse the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks. The transform unit (702) is coupled to the parsing unit (701) and is configured to divide the current decoding block into n sub-transform blocks according to the corresponding mode of dividing the coding block into sub-transform blocks, and perform inverse transformation corresponding to the sub-transform blocks on the coefficients of different sub-transform blocks to obtain the residual of the sub-transform block, wherein n is an integer greater than or equal to 3. The reconstruction unit (703) is coupled to the conversion unit (702) and is configured to reconstruct an image through the residual of the sub-transform block of the current decoding block and the prediction value of the current decoding block.

[0112] Although the present disclosure has been described with exemplary embodiments, various changes and modifications may be suggested to one skilled in the art. The present disclosure is intended to encompass such changes and modifications as fall within the scope of the appended claims.

[0113] Any description in this application should not be construed as implying that any particular element, step, or function is an essential element that must be included in the claims scope. The scope of the patented subject matter is limited solely by the claims.

Claims

1. A method for performing transformation in video image coding, the method comprising: include: Obtain the residual of the current coding block according to the prediction value of the current coding block of the image and the original value of the image; Dividing the current coding block into n sub-transform blocks according to mode information for dividing the current coding block into sub-transform blocks, and performing a transformation corresponding to the sub-transform block on the generated residuals of different sub-transform blocks, where n is an integer greater than or equal to 3; quantizing the transformed result to obtain coefficients of the sub-transform block, and performing coefficient encoding on the coefficients of the sub-transform block; and Writing the result of the coefficient encoding and the mode information of dividing the current coding block into sub-transform blocks into the bitstream, Wherein, when the division direction indicates a horizontal direction, a residual of a sub-transform block of a specific layer of the horizontal division is forcibly set to 0 and its sub-transform block is not transformed, and a corresponding transform kernel is applied to sub-transform blocks of other layers except the specific layer, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel, a discrete cosine transform 8 (DCT8) transform kernel, and a discrete cosine transform 2 (DCT2); or In which, when the division direction indicates a vertical direction, the residual of the sub-transform block of a specific part of the vertical division is forced to be set to 0 and the sub-transform block is not transformed, and the corresponding transform kernel is applied to the sub-transform blocks of other parts except the specific part, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel, a discrete cosine transform 8 (DCT8) transform kernel and a discrete cosine transform 2 (DCT2).

2. The method according to claim 1, in, The mode information of dividing the current coding block into sub-transform blocks includes a division direction and block number information indicating that the current coding block is divided into sub-transform blocks, wherein the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

3. The method according to claim 2, in, The residuals of the generated different sub-transform blocks are transformed corresponding to the sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, the discrete sine transform 7 (DST7) transform kernel is applied in the horizontal direction, and the discrete cosine transform 8 (DCT8) transform kernel is applied in the vertical direction; for the middle sub-transform blocks, their residuals are forced to be 0 and no transformation is performed; for the sub-transform block of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction, and the DST7 transform kernel is applied in the vertical direction.

4. The method according to claim 2, in, When the division direction indicates the horizontal direction and n=3, the residuals of the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer are forced to be 0, and the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer are not transformed, and discrete cosine transform 2 (DCT2) is used as the transformation kernel for the middle sub-transform blocks in both the horizontal and vertical directions.

5. The method according to claim 2, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

6. The method according to claim 2, in, Performing a transformation corresponding to the sub-transform block on the residuals of the generated different sub-transform blocks includes: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, applying the DCT8 transform kernel in the horizontal direction and the DST7 transform kernel in the vertical direction; for the middle sub-transform block, forcing its residual to 0 and not performing the transformation; for the rightmost sub-transform block, applying the DST7 transform kernel in the horizontal direction and the DST7 transform kernel in the vertical direction.

7. The method according to claim 2, in, Performing a transform corresponding to the sub-transform block on the generated residuals of different sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, forcing the residuals of the leftmost sub-transform block and the rightmost sub-transform block to be 0, and not transforming the leftmost sub-transform block and the rightmost sub-transform block, and using DCT2 as the transform kernel in both the horizontal and vertical directions for the middle sub-transform block.

8. The method according to claim 2, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

9. The method according to claim 1, writing the result of the coefficient encoding of the sub-transform block and the mode information of dividing the current coding block into the bitstream include: Writing an identifier of whether the current coding block needs to be divided into sub-transform blocks into the bitstream; Writing an identifier indicating the number of sub-transform blocks into which the current coding block is divided into into a bitstream; Write the division direction into the code stream; as well as The result of the coefficient encoding of the sub-transform block is written into the bitstream.

10. The method according to claim 9, writing an identifier indicating the number of sub-transform blocks into which the current coding block is divided into into the bitstream include: When the width and height of the current coding block are both smaller than a predetermined threshold, the identifier indicating the number of sub-transform blocks into which the current coding block is divided and the division direction are not written into the bitstream; otherwise, the identifier indicating the number of sub-transform blocks into which the current coding block is divided is written into the bitstream, and if the number of sub-transform blocks divided is greater than or equal to 3, the division direction is written into the bitstream.

11. The method according to claim 9, writing the division direction into the code stream include: If the ratio of the width to the height of the current coding block is greater than a predetermined threshold, or the ratio of the width to the height of the current coding block is less than a predetermined threshold, the division direction is not transmitted, otherwise the division direction is written into the bitstream.

12. The method according to claim 9, writing the division direction into the code stream include: After the identifier of the number of sub-transformation blocks into which the current coding block is divided is written into the bitstream, if it is determined that the number of sub-transformation blocks divided is greater than or equal to 3, the division direction is written into the bitstream.

13. The method according to claim 1, wherein the coefficients of the sub-transform block are encoded. include: The identifier CBF indicating whether each sub-transform block contains a coefficient is not written. For the case of n=3, the coefficient of the first sub-transform block is 1 by default, the coefficient of the second sub-transform block is 0, and the coefficient of the third sub-transform block is 1 by default.

14. The method according to claim 1, wherein the coefficients of the sub-transform block are encoded. include: The identifier CBF indicating whether each sub-transform block contains a coefficient is not written. For the case of n=3, the coefficient of the first sub-transform block is 0 by default, the coefficient of the second sub-transform block is 1, and the coefficient of the third sub-transform block is 0 by default.

15. A method for performing transformation in video image decoding, the method include: Parsing the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks from the bit stream; Divide the current decoding block into n sub-transform blocks according to the mode information of dividing the current coding block into sub-transform blocks, where n is an integer greater than or equal to 3; Performing inverse transformation corresponding to the sub-transform block on coefficients of different sub-transform blocks to obtain residuals of the sub-transform blocks; and The image is reconstructed by the residual of the sub-transform block of the current decoded block and the prediction value of the current decoded block. wherein, when the division direction indicates a horizontal direction, a residual of a sub-transform block of a specific layer of the horizontal division is forcibly set to 0 and its sub-transform block is not inversely transformed, and a corresponding transform kernel is applied to sub-transform blocks of other layers except the specific layer, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel, a discrete cosine transform 8 (DCT8) transform kernel, and a discrete cosine transform 2 (DCT2); or In which, when the division direction indicates a vertical direction, the residual of the sub-transform block of a specific part of the vertical division is forced to be set to 0 and the sub-transform block is not inversely transformed, and the corresponding transform kernel is applied to the sub-transform blocks of other parts except the specific part, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel, a discrete cosine transform 8 (DCT8) transform kernel and a discrete cosine transform 2 (DCT2).

16. The method according to claim 15, in, The mode information of dividing the current decoding block into sub-transform blocks includes a division direction and block number information indicating that the current decoding block is divided into sub-transform blocks, and the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

17. The method according to claim 16, in, Parsing the current decoding block from the bitstream to divide the mode information of the sub-transform block and the coefficients of the sub-transform block includes: Parse the flag to determine whether the current decoded block is divided into sub-transform blocks. Parse the flag indicating the number of sub-transform blocks into which the current decoding block is divided, Parse the partition direction of the current decoded block, and Analyze the coefficients of the sub-transform block.

18. The method according to claim 17, in, Parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided includes: When the width and height of the current decoding block are both smaller than a predetermined threshold, the identifier indicating the number of sub-transform blocks into which the current decoding block is divided and the division direction are not parsed; otherwise, the identifier indicating the number of sub-transform blocks into which the current decoding block is divided is parsed, and if the number of sub-transform blocks is greater than or equal to 3, the division direction is parsed.

19. The method according to claim 17, in, The analytical division directions include: If the ratio of the width to the height of the current decoded block is greater than a predetermined threshold, or the ratio of the width to the height of the current decoded block is less than a predetermined threshold, the partitioning direction is not parsed; otherwise, the partitioning direction is parsed.

20. The method according to claim 17, in, The analytical division directions include: After parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided, if it is determined that the number of sub-transform blocks into which the block is divided is greater than or equal to 3, the division direction is parsed.

21. The method according to claim 15, in, The coefficients of the analytical sub-transform block include: The identifier CBF indicating whether each sub-transform block contains a coefficient is not parsed. For the case of n=3, the coefficient of the first sub-transform block is 1 by default, the coefficient of the second sub-transform block is 0, and the coefficient of the third sub-transform block is 1 by default.

22. The method according to claim 15, in, The coefficients of the analytical sub-transform block include: The identifier CBF indicating whether each sub-transform block contains coefficients is not parsed. For the case of n=3, the coefficient of the first sub-transform block is 0 by default, the coefficient of the second sub-transform block is 1, and the coefficient of the third sub-transform block is 0 by default.

23. The method according to claim 16, in, When the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transform, and the DCT8 transform kernel is applied in the vertical direction for inverse transform; for the middle sub-transform block, its residual is forced to be 0, and no inverse transform is performed; for the sub-transform block of the lowermost layer, the DST7 transform kernel is applied in the horizontal direction for inverse transform, and the DST7 transform kernel is applied in the vertical direction for inverse transform.

24. The method according to claim 16, in, Performing an inverse transform on the coefficients of different sub-transform blocks corresponding to the sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, forcing the residuals of the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer to be 0, and not performing an inverse transform on the sub-transform blocks of the uppermost layer and the sub-transform blocks of the lowermost layer, and using discrete cosine transform 2 (DCT2) as the transform kernel for the intermediate sub-transform blocks in both the horizontal and vertical directions.

25. The method according to claim 16, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

26. The method according to claim 16, in, Performing inverse transformation on coefficients of different sub-transform blocks corresponding to the sub-transform blocks includes: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, applying the DCT8 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the rightmost sub-transform block, applying the DST7 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation.

27. The method according to claim 16, in, Performing inverse transformation corresponding to the sub-transform block on coefficients of different sub-transform blocks includes: When the division direction indicates the vertical direction and n=3, the residuals of the leftmost sub-transform block and the rightmost sub-transform block are forced to be 0, and the leftmost sub-transform block and the rightmost sub-transform block are not inversely transformed, while the middle sub-transform block is inversely transformed using DCT2 as the transform kernel in both the horizontal and vertical directions.

28. The method according to claim 16, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

29. A device for performing a method for transforming in video image coding, include: a transceiver configured to transmit and receive data; and A controller is coupled to the transceiver and configured to perform the method according to any one of claims 1-14.

30. A device for performing a method of transforming in video image decoding, include: a transceiver configured to transmit and receive data; and A controller is coupled to the transceiver and configured to perform the method according to any one of claims 15-28.

31. A device for executing a method for transforming in video image coding, the device include: A prediction unit configured to receive image data and to predict a predicted value of a current coding block in the image data, and to obtain a residual of the current coding block according to an original value of the image data; a transform unit coupled to the prediction unit and configured to divide the current coding block of the image data into n sub-transform blocks according to mode information of dividing the current coding block into sub-transform blocks, perform a transform corresponding to the sub-transform block on the generated residuals of different sub-transform blocks, obtain coefficients of the sub-transform blocks by quantizing the transform results, and perform coefficient encoding on the coefficients of the sub-transform blocks, wherein n is an integer greater than or equal to 3; and a writing unit, coupled to the transform unit and configured to write information on the mode of dividing the current coding block into sub-transform blocks and the result of the coefficient encoding into a bitstream, Wherein, when the division direction indicates a horizontal direction, a residual of a sub-transform block of a specific layer of the horizontal division is forcibly set to 0 and its sub-transform block is not transformed, and a corresponding transform kernel is applied to sub-transform blocks of other layers except the specific layer, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel and a discrete cosine transform 8 (DCT8) transform kernel; or In which, when the division direction indicates a vertical direction, the residual of the sub-transform block of a specific part of the vertical division is forced to be set to 0 and the sub-transform block is not transformed, and the corresponding transform kernel is applied to the sub-transform blocks of other parts except the specific part, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel and a discrete cosine transform 8 (DCT8) transform kernel.

32. The device according to claim 31, in, The mode information of dividing the current coding block into sub-transform blocks includes a division direction and block number information indicating that the current coding block is divided into sub-transform blocks, wherein the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

33. The device according to claim 32, in, The transformation unit is configured to perform a transformation corresponding to the sub-transform block on the residuals of the generated different sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, a discrete sine transform 7 (DST7) transform kernel is applied in the horizontal direction, and a discrete cosine transform 8 (DCT8) transform kernel is applied in the vertical direction; for the middle sub-transform block, its residual is forced to be 0 and no transformation is performed; for the sub-transform block of the lowermost layer, a DST7 transform kernel is applied in the horizontal direction, and a DST7 transform kernel is applied in the vertical direction.

34. The device according to claim 32, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

35. The device according to claim 32, in, The transformation unit is configured to perform a transformation corresponding to the sub-transform block on the residuals of the generated different sub-transform blocks, including: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, the DCT8 transformation kernel is applied in the horizontal direction, and the DST7 transformation kernel is applied in the vertical direction; for the middle sub-transform block, its residual is forced to be 0, and no transformation is performed; for the rightmost sub-transform block, the DST7 transformation kernel is applied in the horizontal direction, and the DST7 transformation kernel is applied in the vertical direction.

36. The device according to claim 32, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

37. The device according to claim 31, in, The writing unit is configured to write mode information of dividing the current coding block into sub-transform blocks and the result of the coefficient encoding into the bitstream, including: Writing an identifier of whether the current coding block needs to be divided into sub-transform blocks into the bitstream; Writing an identifier indicating the number of sub-transform blocks into which the current coding block is divided into into a bitstream; Writing the partition direction into the bitstream; and The result of the coefficient encoding of the sub-transform block is written into the bitstream.

38. The device according to claim 37, in, The writing unit is configured to write an identifier indicating the number of sub-transform blocks into which the current coding block is divided into into a bitstream, including: When the width and height of the current coding block are both smaller than a predetermined threshold, the identifier indicating the number of sub-transform blocks into which the current coding block is divided and the division direction are not written into the bitstream; otherwise, the identifier indicating the number of sub-transform blocks into which the current coding block is divided is written into the bitstream, and if the number of sub-transform blocks divided is greater than or equal to 3, the division direction is written into the bitstream.

39. The device according to claim 37, in, The writing unit is configured to write the division direction into the code stream, including: If the ratio of the width to the height of the current coding block is greater than a predetermined threshold, or the ratio of the width to the height of the current coding block is less than a predetermined threshold, the division direction is not transmitted, otherwise the division direction is written into the bitstream.

40. The device according to claim 37, in, The transform unit is configured to perform coefficient encoding on coefficients of the sub-transform block, including: The identifier CBF indicating whether each sub-transform block contains coefficients is not written. For the case of n=3, the coefficient of the first sub-transform block is 1 by default, the coefficient of the second sub-transform block is 0, and the coefficient of the third sub-transform block is 1 by default.

41. A device for executing a method for transforming in video image decoding, the device include: A parsing unit configured to receive a code stream and parse the mode information of dividing a current decoding block into sub-transform blocks and coefficients of the sub-transform blocks; a transform unit coupled to the parsing unit and configured to divide the current decoding block into n sub-transform blocks according to mode information of dividing the current coding block into sub-transform blocks, and perform inverse transforms corresponding to the sub-transform blocks on coefficients of different sub-transform blocks to obtain residuals of the sub-transform blocks, wherein n is an integer greater than or equal to 3; and a reconstruction unit, which is coupled to the transform unit and is configured to reconstruct an image by using a residual of a sub-transform block of a current decoded block and a prediction value of the current decoded block, Wherein, when the division direction indicates a horizontal direction, a residual of a sub-transform block of a specific layer of the horizontal division is forcibly set to 0 and its sub-transform block is not inversely transformed, and a corresponding transform kernel is applied to sub-transform blocks of other layers except the specific layer, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel and a discrete cosine transform 8 (DCT8) transform kernel; or In which, when the division direction indicates a vertical direction, the residual of the sub-transform block of a specific part of the vertical division is forced to be set to 0 and the sub-transform block is not inversely transformed, and the corresponding transform kernel is applied to the sub-transform blocks of other parts except the specific part, and the transform kernel includes a discrete sine transform 7 (DST7) transform kernel and a discrete cosine transform 8 (DCT8) transform kernel.

42. The device according to claim 41, in, The mode information of dividing the current decoding block into sub-transform blocks includes a division direction and block number information indicating that the current decoding block is divided into sub-transform blocks, and the division direction is used to indicate that the current coding block is divided in a horizontal direction or a vertical direction.

43. The device according to claim 42, in, The parsing unit is configured to parse the mode information of dividing the current decoding block into sub-transform blocks and the coefficients of the sub-transform blocks from the bit stream, including: Parse the flag to determine whether the current decoded block is divided into sub-transform blocks. Parse the flag indicating the number of sub-transform blocks into which the current decoding block is divided, Parse the partition direction of the current decoded block, and Analyze the coefficients of the sub-transform block.

44. The device according to claim 43, in, The parsing unit is configured to parse an identifier indicating the number of sub-transform blocks into which the current decoding block is divided, including: when the width and height of the current decoding block are both less than a predetermined threshold, not parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided and the division direction; otherwise, parsing the identifier indicating the number of sub-transform blocks into which the current decoding block is divided, and if the number of sub-transform blocks is greater than or equal to 3, parsing the division direction.

45. The device according to claim 43, in, The parsing unit is configured to parse the partitioning direction, including: if the ratio of the width to the height of the current decoded block is greater than a predetermined threshold, or the ratio of the width to the height of the current decoded block is less than the predetermined threshold, then not parsing the partitioning direction; otherwise, parsing the partitioning direction.

46. ​​The device according to claim 41, in, The parsing unit is configured to parse coefficients of the sub-transform block, comprising: The identifier CBF indicating whether each sub-transform block contains a coefficient is not parsed. For the case of n=3, the coefficient of the first sub-transform block is 1 by default, the coefficient of the second sub-transform block is 0, and the coefficient of the third sub-transform block is 1 by default.

47. The device according to claim 42, in, The transformation unit is configured to perform inverse transformation on the coefficients of different sub-transform blocks corresponding to the sub-transform blocks, including: when the division direction indicates the horizontal direction and n=3, for the sub-transform block of the uppermost layer, applying the discrete sine transform 7 (DST7) transform kernel in the horizontal direction for inverse transformation, and applying the discrete cosine transform 8 (DCT8) transform kernel in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the sub-transform block of the lowermost layer, applying the DST7 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation.

48. The device according to claim 42, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates the horizontal direction and n=3, the current coding block is horizontally divided into an uppermost sub-transform block with a height of the current coding block height / 4, an intermediate sub-transform block with a height of the current coding block height / 2, and a lowermost sub-transform block with a height of the current coding block height / 4.

49. The device according to claim 42, in, The transformation unit is configured to perform inverse transformation on the coefficients of different sub-transform blocks corresponding to the sub-transform blocks, including: when the division direction indicates the vertical direction and n=3, for the leftmost sub-transform block, applying the DCT8 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation; for the middle sub-transform block, its residual is forced to be 0, and no inverse transformation is performed; for the rightmost sub-transform block, applying the DST7 transform kernel in the horizontal direction for inverse transformation, and applying the DST7 transform kernel in the vertical direction for inverse transformation.

50. The device according to claim 42, in, The mode information of dividing the current coding block into sub-transform blocks includes: when the division direction indicates a vertical direction and n=3, the current coding block is vertically divided into a leftmost sub-transform block with a width of the current coding block width / 4, a middle sub-transform block with a width of the current coding block width / 2, and a rightmost sub-transform block with a width of the current coding block width / 4.

Citation Information

Patent Citations

  • Method for processing transformation coefficients and device

    CN104270641A

  • Video decoding method and apparatus by chroma-multi-transform, and video encoding method and apparatus by chroma-multi-transform

    CN108605135A

  • Method and apparatus for processing video signal

    CN109952761A

  • Coding device, decoding device, coding method, and decoding method

    CN109983771A

  • Filtering method and equipment

    CN110267036A