Encoder, a decoder, and corresponding methods for transform process in video coding
The present disclosure provides methods and devices. A video method of coding implemented by a decoding device, comprising: when a prediction mode of a current coding block is intra prediction, and the current coding block is processed by using Intra sub-partition coding mode, determining whether a width of a current transform block is larger than or equal to a first threshold or not, and whether the width of the current transform block is smaller than or equal to a second threshold or not, the current transform block corresponding to the current coding block; when the width of the current transform block is larger than or equal to the first threshold and the width of the current transform block is smaller than or equal to the second threshold, performing transform process on the current transform block, wherein a transform core based on DST 7 is used on horizontal direction transform.
1. A method of video coding implemented by a decoding device, comprising:
determining a multiple transform selection (MTS) scheme is unavailable for a current coding block of a picture in a video when a width of a current transform block is larger than or equal to a first threshold and the width is smaller than or equal to a second threshold, and when a height of the current transform block is larger than or equal to a third threshold and the height is smaller than or equal to a fourth threshold, the current transform block corresponding to the current coding block;
performing, when the MTS scheme is unavailable, a first transform process on the current transform block to generate transformed values for the current transform block based on a transform core discrete sine transform 7 (DST 7) for a horizontal direction transform of the transform process; and
performing, when the MTS scheme is unavailable, a second transform process on the current transform block to generate transformed values for the current transform block based on the transform core discrete sine transform 7 (DST 7) for a vertical direction transform of the transform process.
2. The method of claim 1 , further comprising:
when the width of the current transform block is smaller than the first threshold, or when the width of the current transform block is larger than the second threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the horizontal direction transform of the transform process.
3. The method of claim 1 , further comprising:
when the height of the current transform block is smaller than the third threshold, or when the height of the current transform block is larger than the fourth threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the vertical direction transform of the transform process.
4. A decoder, comprising:
one or more processors; and
a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, wherein the programming, when executed by the processors, configures the decoder to perform operations comprising:
determining a multiple transform selection (MTS) scheme is unavailable for a current coding block of a picture in a video when a width of a current transform block is larger than or equal to a first threshold and the width is smaller than or equal to a second threshold, and when a height of the current transform block is larger than or equal to a third threshold and the height is smaller than or equal to a fourth threshold, the current transform block corresponding to the current coding block;
performing, when the MTS scheme is unavailable, a first transform process on the current transform block to generate transformed values for the current transform block based on a transform core discrete sine transform 7 (DST 7) for a horizontal direction transform of the transform process; and
performing, when the MTS scheme is unavailable, a second transform process on the current transform block to generate transformed values for the current transform block based on the transform core discrete sine transform 7 (DST 7) for a vertical direction transform of the transform process.
5. The decoder of claim 4 , wherein the operations further comprises:
when the width of the current transform block is smaller than the first threshold, or when the width of the current transform block is larger than the second threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the horizontal direction transform of the transform process.
6. The decoder of claim 4 , wherein the operations further comprises:
when the height of the current transform block is smaller than the third threshold, or when the height of the current transform block is larger than the fourth threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the vertical direction transform of the transform process.
7. A non-transitory computer-readable medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processors to perform operations including:
determining a multiple transform selection (MTS) scheme is unavailable for a current coding block of a picture in a video and a width of a current transform block is larger than or equal to a first threshold and the width of the current transform block is smaller than or equal to a second threshold and when a height of the current transform block is larger than or equal to a third threshold and the height is smaller than or equal to a fourth threshold, the current transform block corresponding to the current coding block;
performing, when the MTS scheme is unavailable, a first transform process on the current transform block to generate transformed values for the current transform block based on a transform core discrete sine transform 7 (DST 7) for a horizontal direction transform of the transform process; and
performing, when the MTS scheme is unavailable, a second transform process on the current transform block to generate transformed values for the current transform block based on the transform core discrete sine transform 7 (DST 7) for a vertical direction transform of the transform process.
8. The non-transitory computer-readable medium according to claim 7 , wherein the operations further comprises:
when the width of the current transform block is smaller than the first threshold, or when the width of the current transform block is larger than the second threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the horizontal direction transform of the transform process.
9. The non-transitory computer-readable medium according to claim 7 , wherein the operations further comprises:
when the height of the current transform block is smaller than the third threshold, or when the height of the current transform block is larger than the fourth threshold,
performing the transform process on the current transform block to generate the transformed values for the current transform block based on a transform core discrete cosine transform 2 (DCT 2) for the vertical direction transform of the transform process.