METHOD AND APPARATUS FOR INTRA PREDICTION OF VIDEO SEQUENCES
By optimizing chroma coding tree node processing through CCLM intra prediction based on size and splitting mode conditions, the method addresses chroma processing latency and throughput issues in hardware decoders.
Patent Information
- Application Number
- JP2023145466
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-04-30
- Filing Date
- 2023-09-07
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2040-03-27
AI Technical Summary
The use of a separate tree structure for intra pictures in video coding results in increased chroma processing latency and reduced throughput in hardware decoders.
The method involves determining the size and splitting mode of chroma coding tree nodes to allow or disallow cross-component linear model (CCLM) intra prediction based on preset conditions, reducing latency and improving decoder throughput by optimizing chroma processing.
This approach reduces chroma processing latency and enhances hardware decoder throughput by efficiently managing chroma coding units using CCLM intra prediction.
Smart Images

Figure 0007543508000011 
Figure 0007543508000008 
Figure 0007543508000014
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 201910370987.9, entitled “Method and Apparatus for Intra Prediction of Video Sequences,” filed with the State Intellectual Property Office of the People's Republic of China on April 30, 2019, the entire contents of which are incorporated herein by reference.
[0002] Technical Field The present application relates to the field of video encoding and decoding, and in particular to a method and apparatus for intra prediction of a video sequence.
[0003] background In the video coding standard H.265, a picture frame is partitioned into non-overlapping coding tree units (CTUs), whose size can be set to 64x64 or other values. A CTU of size 64x64 is a rectangular sample matrix containing 64x64 samples. The matrix sample matrix contains 64 columns, each column contains 64 samples, and each sample contains a luma component and / or a chroma component.
[0004] H.265 is based on a quad-tree (QT) partitioning mode where the CTU is used as the root node of the quad-tree, and the CTU is recursively partitioned into multiple leaf nodes. A node corresponds to one picture region. If a node does not continue to split, it is referred to as a leaf node, and the picture region corresponding to the node becomes a CU. If a node continues to split, the picture region corresponding to the node is partitioned into four equally sized picture regions, and each region corresponds to one node. Whether a node is partitioned is determined by the partition flag in the bitstream that corresponds to the node. The depth of the root node is 0, and the depth of a child node is the depth of the parent node plus 1.
[0005] A CTU node of size 64x64 (with a depth of 0) may not be split based on the split flag corresponding to the CTU node, and may become a CU of size 64x64, or may be split into four nodes of size 32x32 (with a depth of 1). Each of the four nodes of size 32x32 may or may not continue to be split further based on the split flag corresponding to the node. If the node of size 32x32 continues to be split, four nodes of size 16x16 (with a depth of 2) are generated. The rest can be inferred similarly until the node is not further split. In this case, one CTU is split into one group of CUs.
[0006] Based on quadtree partitioning, binary tree (BT) partitioning mode and ternary tree (TT) partitioning mode have been added to the VTM reference software.
[0007] In addition, a partitioning mode that cascades QT and BT / TT can be used in the versatile video coding test model (VTM), which is referred to as the quadtree plus multi-type tree (QT-BTT) mode. That is, a node of the level-1 coding tree can be partitioned into child nodes only by using the QT mode, and the leaf node of the level-1 coding tree is the root node of the level-2 coding tree; a node of the level-2 coding tree can be partitioned into child nodes by using one of four partitioning modes: horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning; and the leaf node of the level-2 coding tree is a coding unit.
[0008] After the analysis finds that a node is a leaf node and a leaf node is a CU, the coding information corresponding to the CU (including information such as prediction mode and transform coefficients of the CU, e.g., syntax structure coding_unit() in H.265) is further analyzed. Then, decoding processes such as prediction, dequantization, inverse transform, and loop filtering are performed on the CU based on the coding information to generate a reconstructed picture corresponding to the CU. A flexible coding tree structure such as QT-MTT allows for partitioning the CTU into groups of CUs with appropriate sizes based on the local features of the picture.
[0009] The mode of splitting a CTU into groups of CUs corresponds to one coding tree. In VTM, a split tree structure is allowed to be used for intra pictures (I pictures). In this case, starting from a certain node A in the coding tree, the luma block of node A is split by using a luma coding tree, and the leaf nodes of the luma coding tree are luma CUs and contain only luma samples. The chroma block of node A is split by using a chroma coding tree, and the leaf nodes of the chroma coding tree are chroma CUs and contain only chroma samples.
[0010] In VTM5 (i.e., VTM software version 5), a separate tree structure can be used for intra pictures. In an intra picture using a separate tree structure, a coding tree node of size 128x128 may be split into four nodes of size 64x64 by using a quadtree partitioning mode, and each node of size 64x64 contains luma samples and chroma samples. A separate tree structure is used for nodes of size 64x64, i.e., the luma block of a node of size 64x64 is split by using a luma coding tree, and the chroma block of a node of size 64x64 is split by using a chroma coding tree. The partitioning mode used for the luma coding tree may be different from the partitioning mode used for the chroma coding tree. For example, the luma block of a node of size 64x64 may be split by using a quadtree partitioning mode, and the chroma block may be split by using a horizontal binary partitioning mode. In YUV4:2:0 format, the horizontal and vertical sampling rate of chroma is half that of chroma, so a node of size MxN corresponds to (M / 2) x (N / 2) chroma samples.
[0011] However, when a separate tree structure is used for intra pictures, it can result in relatively long chroma processing latencies and reduce the throughput of the hardware decoder. Summary of the Invention
[0012] The embodiments of the present application provide a method and apparatus for intra prediction of a video sequence. The embodiments of the present application are useful for reducing chroma processing latency and improving the throughput of a hardware decoder. A video sequence includes one or more pictures.
[0013] For simplicity of explanation, the size and shape of a node in the present embodiment is the size and shape of the picture region corresponding to the node. In the present embodiment, both the width and height of a node are expressed in terms of the amount of luma samples corresponding to the node.
[0014] According to a first aspect, an embodiment of the present invention provides a method for intra prediction of a video sequence, the method comprising: Obtaining the size and split mode of the chroma coding tree nodes; The method includes determining whether to allow cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on a size and a partition mode of the chroma coding tree node; determining a prediction mode of the chroma coding unit depending on whether to allow CCLM to be performed on the chroma coding unit; and processing the chroma coding unit based on the prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit. Whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node is determined based on a size and a partition mode of the chroma coding tree node, thereby reducing latency in processing the chroma coding unit on which CCLM is performed and improving throughput of a hardware decoder.
[0015] In a possible embodiment, the size of the chroma coding tree node is MxN, and the step of determining whether to allow the CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node comprises: When both M and N are equal to a preset threshold T1, the method includes: making a decision to allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node satisfies a first preset condition; or making a decision to not allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy a first preset condition, the first preset condition including a non-split or quadtree splitting mode.
[0016] In a possible embodiment, the size of the chroma coding tree node is MxN, and the step of determining whether to allow the CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node comprises: When M is equal to T1 and N is equal to T1 / 2, making a decision to allow CCLM to be executed in the chroma coding unit if the partitioning mode of the chroma coding tree node satisfies a second preset condition; or making a decision to not allow CCLM to be executed in the chroma coding unit if the partitioning mode of the chroma coding tree node does not satisfy a second preset condition, the second preset condition including a non-partitioned or vertical binary partitioned mode.
[0017] In a possible embodiment, the step of determining whether to allow the CCLM to be executed on a chroma coding unit contained in a chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node comprises: The method includes a step of determining, when a luma coding tree node is not partitioned, whether to allow an intra sub-partition ISP mode to be used for a corresponding luma block and whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node based on a size and partitioning mode of the chroma coding tree node and a partitioning mode of a luma coding tree node corresponding to the chroma coding tree node.
[0018] In a possible embodiment, a size of a chroma coding tree node is MxN, and the step of determining whether to allow CCLM to be performed on a chroma coding unit contained in a chroma coding tree node based on the size and partitioning mode of the chroma coding tree node and the partitioning mode of a luma coding tree node corresponding to the chroma coding tree node includes: making a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a third preset condition; or The method includes the steps of: making a decision to allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy a third preset condition, M is equal to T1, and N is equal to T1, and if the splitting mode of the chroma coding tree node satisfies a first preset condition; or making a decision to not allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy the first preset condition, and the first preset condition includes a non-split or quadtree splitting mode.
[0019] In a possible embodiment, the size of the chroma coding tree node is MxN, and if the luma coding tree node is not partitioned, the step of determining whether to allow an intra sub-partition ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and partitioning mode of the chroma coding tree node and the partitioning mode of the luma coding tree node corresponding to the chroma coding tree node comprises: The method includes the steps of: making a decision not to allow CCLM to be executed in the chroma coding unit if the partition mode of the chroma coding tree node satisfies any one of third preset conditions; or making a decision to allow CCLM to be executed in the chroma coding unit if the partition mode of the chroma coding tree node does not satisfy the third preset condition, N=T1, and M=T1 / 2, and the partition mode of the chroma coding tree node satisfies a second preset condition; or making a decision not to allow CCLM to be executed in the chroma coding unit if the partition mode of the chroma coding tree node does not satisfy the second preset condition, the second preset condition including a non-split or vertical binary partition mode.
[0020] In a possible embodiment, the third preset condition includes one or any combination of the following conditions 1 to 13, where conditions 1 to 13 are as follows:
[0021] Condition 1: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node is T1xT1.
[0022] Condition 2: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0023] Condition 3: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical binary partitioning mode, a vertical ternary partitioning mode, or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0024] Condition 4: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal ternary partitioning mode, a vertical binary partitioning mode, a vertical ternary partitioning mode or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node and the luma block are all T1xT1.
[0025] Condition 5: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical binary partitioning mode, a vertical ternary partitioning mode, or a horizontal ternary partitioning mode, the size of the luma coding tree node is T1xT1, and the size of the chroma coding tree node is T1x(T1 / 2).
[0026] Condition 6: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a quadtree partitioning mode, and the size of the chroma coding tree node and the size of the luma coding tree node are both T1xT1.
[0027] Condition 7: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical ternary partitioning mode, a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0028] Condition 8: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a vertical ternary partitioning mode, the size of the luma coding tree node and the size of the luma block are both T1xT1, and the size of the chroma coding tree node is T1x(T1 / 2).
[0029] Condition 9: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a horizontal binary split mode, and the size of the luma coding tree node is T1×T1.
[0030] Condition 10: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a vertical binary split mode, and the size of the luma coding tree node is T1×T1.
[0031] Condition 11: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a horizontal ternary split mode, and the size of the luma coding tree node is T1×T1.
[0032] Condition 12: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a vertical ternary split mode, and the size of the luma coding tree node is T1×T1.
[0033] Condition 13: The partitioning mode used for the luma coding tree node corresponding to the chroma coding tree node is a partitioning mode other than non-partitioned and quadtree partitioning, and the size of the luma coding tree node is T1×T1.
[0034] It should be noted that in this case, splitting a chroma coding tree node into child nodes specifically means that the chroma coding tree node is split into child nodes by using one of a horizontal binary split mode, a vertical binary split mode, a horizontal ternary split mode, a vertical ternary split mode, and a quadtree split mode.
[0035] In a possible embodiment, the third preset condition includes:
[0036] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP prediction mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node and the size of the luma block are both T1xT1.
[0037] In a possible embodiment, the third preset condition includes:
[0038] The splitting mode of the luma coding tree node corresponding to the chroma coding tree node is non-split, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0039] In a possible embodiment, the third preset condition includes condition 1 and condition 13.
[0040] In a possible embodiment, the third preset condition includes condition 2 and condition 13.
[0041] In a possible embodiment, the third preset condition includes:
[0042] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, an ISP mode is used for the luma block of the luma coding tree node, and the chroma coding tree node is partitioned into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the size of the chroma coding tree node, the size of the luma coding tree node, and the size of the luma block are all T1xT1.
[0043] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 6, condition 8, and condition 13.
[0044] In a possible embodiment, the third preset condition includes condition 4, condition 5, condition 7, condition 8, and condition 13.
[0045] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 7, condition 8, condition 9, condition 10, condition 11, and condition 12.
[0046] In a possible embodiment, the preset threshold T1 is equal to 64.
[0047] According to a second aspect, an embodiment of the present invention provides a method for intra prediction of a video sequence, the method comprising: analyzing the bitstream to obtain a first identifier and a second identifier, the first identifier being used to indicate whether a separate tree structure is used for intra pictures in the video sequence, and the second identifier being used to indicate whether CCLM is allowed to be performed on chroma blocks in the video sequence; and The method includes performing an intra prediction method for a video sequence as described in the first aspect and any one of the embodiments of the first aspect when the first identifier indicates that a separation tree structure is used for intra pictures in the video sequence and the second identifier indicates that CCLM is allowed to be performed on chroma blocks in the video sequence.
[0048] According to a third aspect, an embodiment of the present invention provides an apparatus for intra prediction of a video sequence, the apparatus comprising: an acquisition unit configured to acquire a size and a split mode of a chroma coding tree node; a determining unit configured to determine whether to allow CCLM to be performed on a chroma coding unit included in a chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node; and to determine a prediction mode of the chroma coding unit depending on whether to allow CCLM to be performed on the chroma coding unit; and The prediction unit is configured to process the chroma coding unit based on a prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit.
[0049] In a possible embodiment, the size of a chroma coding tree node is MxN, and the CCLM determines whether to allow a chroma coding unit contained in the chroma coding tree node to be executed based on the size and the division mode of the chroma coding tree node, the determining unit: When both M and N are equal to a preset threshold T1, the method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node satisfies a first preset condition; or make a decision to not allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy the first preset condition, where the first preset condition includes a non-split or quadtree splitting mode.
[0050] In a possible embodiment, the size of a chroma coding tree node is MxN, and the CCLM determines whether to allow a chroma coding unit contained in the chroma coding tree node to be executed based on the size and the division mode of the chroma coding tree node, the determining unit: The method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a second preset condition when M is equal to T1 and N is equal to T1 / 2; or make a decision to not allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the second preset condition, where the second preset condition includes a non-split or vertical binary split mode.
[0051] In a possible embodiment, in determining whether to allow a Cross-Component Linear Model (CCLM) intra prediction to be performed in a chroma coding unit included in a chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node, the determining unit: The chroma coding tree node is specifically configured to determine, when a luma coding tree node is not split, whether to allow an ISP mode to be used for a corresponding luma block and whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node based on the size and splitting mode of the chroma coding tree node and the splitting mode of a luma coding tree node corresponding to the chroma coding tree node.
[0052] In a possible embodiment, a size of a chroma coding tree node is MxN, and when the luma coding tree node is not partitioned, determining whether to allow an intra sub-partition ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed in the chroma coding unit contained in the chroma coding tree node based on the size and partition mode of the chroma coding tree node and the partition mode of the luma coding tree node corresponding to the chroma coding tree node, the determining unit: The method is specifically configured to: make a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a third preset condition; or make a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the third preset condition, M is equal to T1, and N is equal to T1, and the split mode of the chroma coding tree node satisfies a first preset condition; or make a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the first preset condition, wherein the first preset condition includes a non-split or quadtree split mode.
[0053] In a possible embodiment, a size of a chroma coding tree node is MxN, and when the luma coding tree node is not partitioned, determining whether to allow an intra sub-partition ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed in the chroma coding unit contained in the chroma coding tree node based on the size and partition mode of the chroma coding tree node and the partition mode of the luma coding tree node corresponding to the chroma coding tree node, the determining unit: making a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies any one of the third preset conditions; or The method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy a third preset condition, N=T1, and M=T1 / 2, and if the split mode of the chroma coding tree node satisfies a second preset condition; or make a decision to not allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the second preset condition, and the second preset condition includes a non-split or vertical binary split mode.
[0054] In a possible embodiment, the third preset condition includes one or more of condition 1, condition 2, condition 3, condition 4, condition 5, condition 6, condition 7, condition 8, condition 9, condition 10, condition 11, condition 12, and condition 13 in the first aspect.
[0055] In a possible embodiment, the third preset condition includes:
[0056] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP prediction mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node and the size of the luma block are both T1xT1.
[0057] In a possible embodiment, the third preset condition includes:
[0058] The splitting mode of the luma coding tree node corresponding to the chroma coding tree node is non-split, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0059] In a possible embodiment, the third preset condition includes conditions 1 and 13 in the first aspect.
[0060] In a possible embodiment, the third preset condition includes conditions 2 and 13 in the first aspect.
[0061] In a possible embodiment, the third preset condition includes:
[0062] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, and an ISP mode is used for the luma block of the luma coding tree node, and the chroma coding tree node is partitioned into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the size of the chroma coding tree node, the size of the luma coding tree node, and the size of the luma block are all T1xT1.
[0063] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 6, condition 8, and condition 13 in the first aspect.
[0064] In a possible embodiment, the third preset condition includes condition 4, condition 5, condition 7, condition 8, and condition 13 in the first aspect.
[0065] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 7, condition 8, condition 9, condition 10, condition 11, and condition 12 in the first aspect.
[0066] In a possible embodiment, the preset threshold T1 is equal to 64.
[0067] According to a fourth aspect, an embodiment of the present invention provides an apparatus for intra prediction of a video sequence, the apparatus comprising: a decoding unit configured to analyze the bitstream to obtain a first identifier and a second identifier, the first identifier being used to indicate whether a separate tree structure is used for intra pictures in the video sequence, and the second identifier being used to indicate whether CCLM is allowed to be performed on chroma blocks in the video sequence; and The present invention includes a prediction unit configured to perform all or part of an intra prediction method for a video sequence in a first aspect when the first identifier indicates that a separation tree structure is used for intra pictures in the video sequence and the second identifier indicates that CCLM is permitted to be performed on chroma blocks in the video sequence.
[0068] According to a fifth aspect, an embodiment of the present invention provides a decoding device comprising a non-volatile memory and a processor coupled to each other, the processor being adapted to invoke program code stored in the memory to perform some or all of the steps of the method of either the first or second aspect.
[0069] According to a sixth aspect, an embodiment of the present invention provides a computer readable storage medium storing program code, the program code comprising instructions for performing some or all of the steps of the method of either the first or second aspect.
[0070] It should be understood that the technical solutions of the second to sixth aspects of the present application are consistent with the technical solutions of the first aspect of the present invention, and the beneficial effects achieved by the aspects and corresponding feasible implementations are similar. Details will not be described again. [Brief description of the drawings]
[0071] In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the accompanying drawings for describing the embodiments or the prior art. The accompanying drawings in the following description merely illustrate some embodiments of the present invention, and it is obvious that those skilled in the art may derive other drawings from these accompanying drawings without creative efforts.
[0072] [Figure 1] FIG. 1 is a schematic diagram of a CTU split mode.
[0073] [Diagram 2] FIG. 2 is a schematic diagram of the chroma block and luma block split modes.
[0074] [Diagram 3] FIG. 13 is a schematic diagram of another partitioning mode of chroma blocks and luma blocks.
[0075] [Figure 4] 1 is a schematic block diagram of a video encoding and decoding system according to an embodiment of the present invention;
[0076] [Figure 5a]1 is a schematic block diagram of a video encoder according to an embodiment of the present invention;
[0077] [Figure 5b] 2 is a schematic block diagram of a video decoder according to an embodiment of the present invention;
[0078] [Figure 5c] 1 is a block diagram of an example of an encoding device or a decoding device according to an embodiment of the present invention.
[0079] [Figure 6] 1 is a schematic flowchart of a method for intra prediction of a video sequence according to an embodiment of the present invention;
[0080] [Figure 7] 1 is a schematic flowchart of a method for intra prediction of a video sequence according to an embodiment of the present invention;
[0081] [Figure 8] FIG. 2 is a schematic structural diagram of an intra prediction device according to an embodiment of the present invention;
[0082] [Figure 9] FIG. 2 is a schematic structural diagram of an intra prediction device according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0083] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings.
[0084] First, the terms used in the present invention will be explained here.
[0085] Coding tree unit (CTU): A picture contains multiple CTUs, where one CTU typically corresponds to one square picture region and contains luma and chroma samples within the picture region (or may contain only luma samples or only chroma samples). The CTU further contains syntax elements that indicate how to split the CTU into at least one coding unit (CU) and how to decode each coding unit to obtain a reconstructed picture.
[0086] CU: A CU typically corresponds to a rectangular region of AxB and contains AxB luma samples and chroma samples corresponding to the luma samples, where A is the width of the rectangle and B is the height of the rectangle, and A may be the same as B or different. The values of A and B are typically integer powers of 2, e.g., 256, 128, 64, 32, 16, 8, 4. The coding unit can be decoded to obtain a reconstructed picture of the rectangular region of AxB. The decoding process typically includes performing operations such as prediction, dequantization, and inverse transform to generate a predicted picture and a residual. The reconstructed picture is obtained by overlapping the predicted picture and the residual.
[0087] Quadtree: A quadtree is a tree-shaped structure, where a node can be split into four child nodes. A quadtree-based CTU split mode is used in the video coding standard H.265: a CTU is used as the root node, and each node corresponds to one square region. The node can be not split any further (in this case, the region corresponding to the node is a CU), or the node can be split into four lower level nodes, i.e., the square region is split into four equal-sized square regions (where the length and width of each of the four equal-sized square regions is half the length and width of the square region before splitting), and each region corresponds to one node, as shown in Fig. 1(a).
[0088] Binary Tree: A binary tree is a tree-shaped structure in which a node can be split into two child nodes. In existing coding methods in which binary trees are used, a node in a binary tree structure may not be split, or the node is split into two nodes at a lower level. A node can be split into two nodes in any one of two ways: (1) horizontal binary split: as shown in Figure 1(b), the region corresponding to the node is split into two equal-sized regions: an upper region and a lower region, each region corresponding to one node; or (2) vertical binary split: as shown in Figure 1(c), the region corresponding to the node is split into two equal-sized regions: a left region and a right region, each region corresponding to one node.
[0089] Ternary Tree: Ternary tree is a tree-shaped structure, in which a node can be split into three child nodes. In existing ternary tree-based coding methods, a node in a ternary tree structure may not be split, or the node may be split into three lower level nodes. A node is split into three nodes in any one of two ways: (1) horizontal ternary split: the region corresponding to a node is split into three regions: upper region, middle region, and lower region, each region corresponds to one node, and the heights of the upper region, middle region, and lower region are 1 / 4, 1 / 2, and 1 / 4 of the node height, respectively, as shown in (d) of FIG. 1; (2) vertical ternary split: the region corresponding to a node is split into three regions: left region, middle region, and right region, each region corresponds to one node, and the widths of the left region, middle region, and right region are 1 / 4, 1 / 2, and 1 / 4 of the node height, respectively, as shown in (f) of FIG. 1.
[0090] Versatile video coding test model (VTM): Codec reference software for the H.266 / versatile video coding test model (VVC) standard organized and developed by JVET.
[0091]
number
[0092] α and β are linear model coefficients, and pred C (i,j) is the predictor of the chroma sample at position (i,j), and rec'L(i,j) represents the luma reconstructed sample value at position (i,j) after the luma reconstructed block corresponding to the current chroma block has been downsampled to the resolution of the chroma component. In a video with YUV4:2:0 format, the resolution of the luma component is four times that of the chroma components (twice the width and twice the height). To obtain a luma block with the same resolution as the chroma block, the luma component needs to be downsampled to the chroma resolution according to the same downsampling method as the chroma components and then used.
[0093] Intra sub-partition (ISP) is an intra prediction technique based on sub-block division, for example the ISP technique in VTM5. When the ISP mode is used, the luma block is divided horizontally or vertically into multiple (e.g., two or four) luma sub-blocks of equal size, and the luma sub-blocks are decoded and reconstructed in sequence. If a common intra prediction mode (e.g., angular, planar, or DC) is used for the chroma block, only the reconstructed samples around the chroma block are used for the intra prediction of the chroma block. In this case, the intra prediction of the chroma block and the intra prediction of the luma block may be performed simultaneously, and the maximum latency for performing prediction processing in a chroma block relative to performing prediction processing in the luma block of the corresponding region (chroma processing latency for short) is the processing time for performing intra prediction and reconstruction in a region containing 0 luma samples. In a single tree, a CU contains luma samples and chroma samples. When CCLM is performed on a chroma sample, it requires that the luma reconstructed sample at the corresponding position is used. When a luma block is divided into multiple sub-regions for sequential processing, after intra prediction is performed on the luma sub-region, the predictor and the residual are overlapped to obtain the reconstructed sample of the luma sub-region, and CCLM prediction is performed in the chroma sub-region at the corresponding position by using the reconstructed sample of the luma sub-region. Therefore, when a separate tree structure is used for intra pictures, a relatively long chroma processing latency problem may occur when CCLM prediction is performed on a chroma block.
[0094] For example, if a luma block with a node size of 64x64 is split by using the quadtree splitting mode (as shown in Figure 2(a)), the processing sequence of four luma nodes generated is node 0, node 1, node 2, and node 3. If a chroma block with a node size of 64x64 is split by using the vertical binary splitting mode shown in Figure 2(b) to generate two chroma nodes, if CCLM prediction is performed for chroma node 0, the luma reconstructed sample values required for CCLM prediction can be obtained for chroma node 0 only after luma node 2 is reconstructed. The chroma processing latency is the processing time of three luma regions with a size of 32x32 (3072 luma samples). As another example, if a chroma block of a 64x64 node is split into two chroma nodes by using the horizontal binary tree shown in FIG. 2(c), and the chroma block of the upper 64x32 node continues to be further split into two more nodes by using the horizontal binary tree mode, if CCLM prediction is performed for chroma node 0, all luma reconstructed sample values required for CCLM prediction can be obtained for chroma node 0 only after luma node 1 is reconstructed, and the chroma processing latency is the processing time of two 32x32 luma regions (i.e., 2048 luma samples).
[0095] If any splitting is performed on a chroma block of a node of size 64x64, the processing latency for performing CCLM on the chroma nodes does not exceed the processing time of one luma region of size 32x32. In one example, if a luma block of size 64x64 is split by using a quadtree splitting mode, as shown in FIG. 2(d), it is possible to perform CCLM on chroma node 0 after luma node 0 is reconstructed, it is possible to perform CCLM on chroma node 1 after luma node 1 is reconstructed, and so on, if the corresponding chroma block is also split in the quadtree splitting mode. In another example, if a chroma block of a node with size 64x64 is not split, the chroma block may be split into four regions p0, p1, p2, and p3 for sequential intra prediction, and CCLM can be performed on chroma region p0 after luma node 0 is reconstructed, and CCLM can be performed on chroma region p1 after luma node 1 is reconstructed, and so on. In another example, if a chroma block of a node with size 64x64 is first split by using horizontal split mode, and a chroma node with size 64x32 at the top is split by using vertical split mode, and a chroma node with size 64x32 at the bottom is not split, the chroma processing latency of chroma nodes 0, 1, and 2 are all the latency of processing a luma region with size 32x32, as shown in FIG. 2(f). This is because after luma node 0 is reconstructed, CCLM can be done for chroma node 0, after luma node 1 is reconstructed, CCLM can be done for chroma node 2, after luma node 2 is completed, CCLM can be done for region p0 of chroma node 2, and after luma node 3 is reconstructed, CCLM can be done for region p1 of chroma node 2.
[0096] Also, when a separate tree structure is used for intra pictures, if a luma block of size 64x64 is not split and ISP mode is used for the luma block, the chroma processing latency may exceed the processing time of one luma region of size 32x32. For example, if a luma block of a node of size 64x64 is split into four luma sub-blocks by using a vertical ISP mode as shown in Figure 3(a), and a chroma block of a node of size 64x64 is split by using a horizontal binary split mode as shown in Figure 3(b), CCLM can be performed for chroma node 0 only after the four luma sub-blocks are reconstructed, and the chroma processing latency is the processing time of four luma regions of size 32x32. Similarly, when the luma block of a node with size 64x64 is divided into four luma sub-blocks by using the horizontal ISP mode as shown in Figure 3(e), and the chroma block of a node with size 64x64 is divided by using the vertical binary partition mode as shown in Figure 3(f), CCLM can be performed for chroma node 0 only after the four luma sub-blocks are reconstructed, and the chroma processing latency is the processing time of four luma regions with size 32x32.
[0097] When any split is performed on the chroma blocks of a node of size 64x64, even if the luma blocks of size 64x64 are not split and ISP mode is used for the luma blocks, the processing latency for performing CCLM by a chroma node does not exceed the processing time of one luma region of size 32x32. For example, when the vertical ISP mode is used for the luma blocks of a node of size 64x64, when the chroma blocks of a node of size 64x64 are not split, as shown in Fig. 3(d), or when the chroma blocks of a node of size 64x64 are split by using the vertical binary mode to obtain nodes of size 32x64, and the nodes are split or not split by using the vertical binary split mode, as shown in Fig. 3(c), the chroma processing latency can be considered to be approximately equal to the processing time of one luma region of size 16x64 and the processing time of one luma region of size 32x32 (both corresponding to 1024 luma samples). More specifically, if a chroma block of a node of size 64x64 is not split, the chroma block may be split vertically into four sub-regions, and CCLM may start to run on each sub-region after the corresponding luma sub-block of size 16x64 is reconstructed. If a chroma block of a node of size 64x64 is split by using a vertical binary mode to obtain a node of size 32x64, and the node is split by using a vertical binary split mode, CCLM may start to run for each chroma node of size 16x64 after the corresponding luma sub-block of size 16x64 is reconstructed. If a node of size 32x64 is not split horizontally, the node may be split vertically into two sub-regions of size 16x64, and CCLM may start to run on each sub-region after the corresponding luma sub-block of size 16x64 is reconstructed.Similarly, when the horizontal ISP mode is used for the luma blocks of a node of size 64x64, when the chroma blocks of the node of size 64x64 are not split, as shown in (h) of FIG. 3, or when the chroma blocks of the node of size 64x64 are split by using the horizontal binary split mode to obtain a node of size 64x32, as shown in (g) of FIG. 3, and the node is either split or not split by using the horizontal binary split mode, the chroma processing latency is the processing time of one luma region of size 64x16 and is equal to the processing time of one luma region of size 32x32.
[0098] FIG. 4 is a block diagram of an example of a video coding system 4 described in an embodiment of the present application. As used herein, the term "video codec" generally refers to a video encoder and a video decoder. In the present application, the term "video coding" or "coding" may generally refer to video encoding or video decoding. The video encoder 100 and the video decoder 300 in the video coding system 1 are configured to predict motion information, such as motion vectors, of a current coded picture block or a sub-block of the current coded picture block by using various example methods described in any one of a number of new inter-prediction modes provided in the present application, so that the predicted motion vector is maximally close to the motion vector obtained by using a motion estimation method. In this way, the motion vector difference does not need to be transmitted during encoding, which further improves the performance of encoding and decoding.
[0099] As shown in FIG. 4, the video coding system 1 includes a source device 10 and a destination device 30. The source device 10 generates encoded video data. Thus, the source device 10 may be referred to as a video encoding device. The destination device 30 can decode the encoded video data generated by the source device 10. Thus, the source device 30 may be referred to as a video intra prediction device. Various implementation solutions of the source device 10, the destination device 30, or the source device 10 and the destination device 20 may include one or more processors and a memory coupled to the one or more processors. The memory may include, but is not limited to, a RAM, a ROM, an EEPROM, a flash memory, or any other medium that may be used to store desired program code in the form of computer-accessible instructions or data structures as described herein.
[0100] The source device 10 and destination device 30 may include a variety of devices, including a desktop computer, a mobile computing device, a notebook (e.g., laptop) computer, a tablet computer, a set-top box, a portable telephone such as a “smart” phone, a television set, a camera, a display device, a digital media player, a video game console, an in-vehicle computer, or similar devices.
[0101] The destination device 30 may receive the encoded video data from the source device 10 via a link 50. The link 50 may include one or more media or devices capable of transferring the encoded video data from the source device 10 to the destination device 30. In one example, the link 50 may include one or more communication media that enable the source device 10 to transmit the encoded video data directly to the destination device 30 in real time. In this example, the source device 10 may modulate the encoded video data according to a communication standard (e.g., a wireless communication protocol) and transmit the modulated video data to the destination device 30. The one or more communication media may include wireless communication media and / or wired communication media, such as a radio frequency (RF) spectrum or one or more physical transmission cables. The one or more communication media may be part of a packet-based network, such as a local area network, a wide area network, or a global network (e.g., the Internet). The one or more communication mediums may include routers, switches, base stations, or other devices that facilitate communication from source device 10 to destination device 30.
[0102] In another embodiment, the encoded data may be output to storage device 40 via output interface 140. Similarly, the encoded video data may be accessed from storage device 40 via input interface 340. Storage device 40 may include any one of a number of distributed or locally accessed data storage media, such as a hard disk drive, a Blu-ray disk, a DVD, a CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium configured to store encoded video data.
[0103] In another example, the storage device 40 may correspond to a file server or another intermediate storage device capable of maintaining the encoded video generated by the source device 10. The destination device 30 may access the stored video data from the storage device 40 by streaming transmission or download. The file server may be any type of server capable of storing the encoded video data and transmitting the encoded video data to the destination device 30. For example, the file server may be a network server (e.g., one used for websites), an FTP server, a network attached storage (NAS) device, or a local disk drive. The destination device 30 may access the encoded video data through any standard data connection (including an Internet connection). The standard data connection may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a DSL or cable modem), or a combination thereof suitable for accessing the encoded video data stored in the file server. The transmission of the encoded video data from the storage device 40 may be a streaming transmission, a download transmission, or a combination thereof.
[0104] The motion vector prediction techniques herein can be used for video encoding and decoding to support multiple multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming video transmission (e.g., over the Internet), encoding video data stored on a data storage medium, decoding video data stored on a data storage medium, or other applications. In some examples, the video coding system 1 can be configured to support one-way or two-way video transmission to support applications such as video streaming transmission, video playback, video broadcasting, and / or video telephony.
[0105] The video coding system 1 shown in FIG. 4 is only one example, and the techniques of the present application are applicable to video coding (e.g., video encoding or video decoding) devices that do not necessarily include any data communication between the video encoding device and the video decoding device. In other examples, data may be retrieved from local memory, streamed over a network, etc. A video encoding device may encode data and store data in memory, and / or a video decoding device may retrieve data from memory and decode data. In many examples, the devices that encode data, store data in memory, and / or retrieve data from memory, and decode data, but do not communicate with each other, perform the encoding and decoding.
[0106] 4, source device 10 includes video source 120, video encoder 100, and output interface 140. In some examples, output interface 140 may include a modulator / demodulator (modem) and / or a transmitter. Video source 120 may include a video capture device (e.g., a camera), a video archive containing previously captured video data, a video feed-in interface for receiving video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of the aforementioned video data sources.
[0107] Video encoder 100 may encode video data from video source 120. In some examples, source device 10 transmits the encoded video data directly to destination device 30 via output interface 140. In other examples, the encoded video data may alternatively be stored in storage device 40 so that destination device 30 subsequently accesses the encoded video data for decoding and / or playback.
[0108] In the example of FIG. 4, destination device 30 includes an input interface 340, a video decoder 300, and a display device 330. In some examples, input interface 340 includes a receiver and / or a modem. Input interface 340 may receive encoded video data via link 30 and / or from storage device 40. Display device 330 may be integrated with destination device 30 or may be located outside destination device 30. Display device 330 typically displays the decoded video data. Display device 330 may include multiple types of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or other types of display devices.
[0109] 4, in some aspects, the video encoder 100 and the video decoder 300 may be integrated with an audio encoder and an audio decoder, respectively, and may include a suitable multiplexer-demultiplexer (MUX-DEMUX) unit or other hardware and software to encode the audio and video in a common data stream or in separate data streams. In some examples, if applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or another protocol such as the User Datagram Protocol (UDP).
[0110] Each of the video encoder 100 and the video decoder 300 may be implemented, for example, as any one of the following circuits: one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, hardware, or any combination thereof. If the present application is implemented in part by software, the device may store instructions used for the software in a suitable non-volatile computer readable storage medium and may execute the instructions in hardware using one or more processors to implement the techniques in the present application. Any one of the above contents (including hardware, software, a combination of hardware and software, etc.) may be considered as one or more processors. Each of the video encoder 100 and the video decoder 300 may be included in one or more encoders or decoders, and any of the encoders or decoders may be integrated as part of a combined encoder / decoder (codec) in the corresponding device.
[0111] In this application, video encoder 100 may be loosely referred to as other devices that "signal" or "send" some information, for example to video decoder 300. The terms "signaling" or "transmitting" may loosely refer to the transfer of syntax elements and / or other data used to decode compressed video data. The transmission may occur in real time or near real time. Alternatively, the communication may occur after a period of time, for example, when syntax elements in an encoded bitstream are stored in a computer-readable storage medium during encoding, after which an intra-prediction device may retrieve the syntax elements at any time after the syntax elements are stored in the medium.
[0112] The video encoder 100 and the video decoder 300 may operate according to a video compression standard such as High Efficiency Video Coding (HEVC) or an extension thereof and may conform to the HEVC Test Model (HM). Alternatively, the video encoder 100 and the video decoder 300 may operate according to other industry standards, such as the ITU-T H.264 and H.265 standards or extensions of those standards. However, the technology herein is not limited to any particular encoding and decoding standard.
[0113] FIG. 5a is a schematic / conceptual block diagram of an example of a video encoder 100 configured to implement the techniques disclosed herein. In the example of FIG. 5a, the video encoder 100 includes a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a buffer 216, a loop filter unit 220, a decoded picture buffer (DPB) 230, a prediction processing unit 260, and an entropy coding unit 270. The prediction processing unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a mode selection unit 262. The inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The video encoder 20 shown in FIG. 5a may also be referred to as a hybrid video encoder or a video encoder based on a hybrid video codec.
[0114] For example, the residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 260, and the entropy coding unit 270 form a forward signal path of the encoder 100, while, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, and the prediction processing unit 260 form a backward signal path of the encoder, and the backward signal path of the video encoder corresponds to the signal path of the decoder (see decoder 300 in FIG. 5b).
[0115] The encoder 100 receives, for example, a picture of a sequence of pictures forming a video or a video sequence, for example via an input 202, a picture 201 or a block 203 of the picture 201. The picture block 203 is also referred to as a current picture block or a picture block to be coded, and the picture 201 is also referred to as a current picture or a picture to be coded (in particular in video coding to distinguish the current picture from other pictures, for example from previously coded and / or decoded pictures of the same video sequence, i.e. a video sequence which also contains the current picture).
[0116] Partitioning
[0117] In an embodiment, the encoder 100 may include a partitioning unit (not shown in FIG. 5a) configured to partition the picture 201 into a number of blocks 203, such as block 203. The picture 201 is typically partitioned into a number of non-overlapping blocks. The partitioning unit may be configured to use the same block size for all pictures of the video sequence and a corresponding grid defining the block sizes, or to vary the block size between pictures, subsets, or groups of pictures and partition each picture into the corresponding blocks.
[0118] In one example, prediction processing unit 260 of video encoder 100 may be configured to perform any combination of the partitioning techniques described above.
[0119] Similar to the picture 201, the size of the block 203 is smaller than the size of the picture 201, but the block 203 can also be or be considered as a two-dimensional array or matrix of samples with luma values (sample values). In other words, the block 203 may contain, for example, one sample array (e.g., a luma array in the case of a monochrome picture 201) or three sample arrays (e.g., one luma array and two chroma arrays in the case of a color picture 201), or any other quantity and / or type of arrays depending on the applied color format. The number of samples in the horizontal and vertical directions (or axes) of the block 203 defines the size of the block 203.
[0120] The encoder 100 shown in FIG. 5 a is arranged to encode a picture 201 block by block, for example to encode and predict each block 203 .
[0121] Residual calculation
[0122] The residual calculation unit 204 is configured to calculate a residual block 205 based on the picture block 203 and the prediction block 265 (more on the prediction block 265 below), e.g. by subtracting sample values of the prediction block 265 sample by sample from sample values of the picture block 203, to obtain a residual block 205 in the sample domain.
[0123] conversion
[0124] The transform processing unit 206 is configured to apply a transform, such as a discrete cosine transform (DCT) or a discrete sine transform (DST), on the sample values of the residual block 205 to obtain transform coefficients 207 in the transform domain. The transform coefficients 207 may also be referred to as transformed residual coefficients and represent the residual block 205 in the transform domain.
[0125] The transform processing unit 206 may be configured to apply an integer approximation of a DCT / DST, such as the transform specified in HEVC / H.265. Compared to an orthogonal DCT transform, such an integer approximation is typically scaled by a factor. To ensure the norm of the residual block processed by using the forward and inverse transforms, an additional scaling factor is applied as part of the transform process. The scaling factor is usually selected based on some constraints, such as a scaling factor that is a power of two due to shift operations, the bit depth of the transform coefficients, a trade-off between accuracy and implementation cost. For example, a particular scaling factor may be specified for the inverse transform, e.g., by the inverse transform processing unit 212 at the decoder 30 side (and the corresponding inverse transform, e.g., by the inverse transform processing unit 212 at the encoder 20 side), and correspondingly, a corresponding scaling factor may be specified for the forward transform, e.g., by the transform processing unit 206 at the encoder 20 side.
[0126] Quantization
[0127] The quantization unit 208 is configured to quantize the transform coefficients 207, for example by applying scalar quantization or vector quantization, to obtain quantized transform coefficients 209. The quantized transform coefficients 209 may also be referred to as quantized residual coefficients 209. The quantization process may reduce a bit depth associated with some or all of the transform coefficients 207. For example, an n-bit transform coefficient may be rounded to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be modified by adjusting a quantization parameter (QP). For example, for scalar quantization, different scaling may be applied to achieve finer or coarser quantization. A smaller quantization step corresponds to a finer quantization, and a larger quantization step corresponds to a coarser quantization. The applicable quantization step size may be specified by a quantization parameter (QP). For example, the quantization parameter may be an index to a predefined set of applicable quantization step sizes. For example, a smaller quantization parameter may correspond to a finer quantization (smaller quantization step size) and a larger quantization parameter may correspond to a coarser quantization (larger quantization step size), or vice versa. Quantization may include a division by the quantization step size and a corresponding quantization or inverse quantization performed, for example, by the inverse quantization unit 210, or may include a multiplication by the quantization step size. Some standards, such as HEVC, may be configured to use the quantization parameter to determine the quantization step size. In general, the quantization step size may be calculated based on the quantization parameter by using a fixed-point approximation of an equation involving a division.Additional scaling factors can be introduced for quantization and dequantization to restore the norm of the residual block, which may be modified due to the scaling used in the fixed-point approximation of the equations for the quantization step size and the quantization parameter. In one exemplary implementation, the scaling of the inverse transform and dequantization may be combined. Alternatively, customized quantization tables may be used and signaled from the encoder to the decoder, for example in the bitstream. Quantization is a non-lossless operation, and increasing the quantization step size increases the loss.
[0128] The inverse quantization unit 210 is configured to apply the inverse quantization of the quantization unit 208 to the quantized coefficients, e.g., by applying the inverse of the quantization scheme applied by the quantization unit 208 based on or using the same quantization step as the quantization unit 208, to obtain dequantized coefficients 211. The dequantized coefficients 211, which may also be referred to as dequantized residual coefficients 211, correspond to the transform coefficients 207, but due to losses due to quantization, typically do not match the transform coefficients.
[0129] The inverse transform processing unit 212 is configured to apply an inverse transform of the transform applied by the transform processing unit 206, such as an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), to obtain an inverse transform block 213 in the sample domain. The inverse transform block 213 may also be referred to as an inverse transform dequantization block 213 or an inverse transform residual block 213.
[0130] The reconstruction unit 214 (e.g., adder 214) is configured to add the inverse transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 to obtain a reconstructed block 215 in the sample domain, e.g. by adding sample values of the reconstructed residual block 213 and sample values of the prediction block 265.
[0131] Optionally, a buffer unit 216 (or "buffer" 216 for short), e.g. a line buffer 216, is configured to buffer or store the reconstructed block 215 and corresponding sample values, e.g. for intra prediction. In other embodiments, the encoder may be configured to use the unfiltered reconstructed block and / or corresponding sample values stored in the buffer unit 216 for any kind of estimation and / or prediction, e.g. intra prediction.
[0132] For example, in an embodiment, the encoder 100 can be configured such that the buffer unit 216 is used not only for storing the reconstructed block 215 for intra prediction 254, but also for the loop filter unit 220 (not shown in FIG. 5a), and / or such that the buffer unit 216 and the decoded picture buffer unit 230 form one buffer. In other embodiments, the filtered block 221 and / or blocks or samples from the decoded picture buffer 230 (blocks or samples not shown in FIG. 5a) are used as input or basis for the intra prediction 254.
[0133] The loop filter unit 220 (or "loop filter" 220 for short) is configured to filter the reconstructed block 215 to obtain a filtered block 221 to smooth sample transitions or improve video quality. The loop filter unit 220 is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, such as a bilateral filter, an adaptive loop filter (ALF), a sharpening or smoothing filter, or a collaborative filter. Although the loop filter unit 220 is illustrated in FIG. 5a as an in-loop filter, in other configurations the loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 may also be referred to as a filtered reconstructed block 221. The decoded picture buffer 230 may store the reconstructed coded blocks after the loop filter unit 220 performs a filtering operation on the reconstructed coded blocks.
[0134] In an embodiment, the encoder 100 (corresponding to the loop filter unit 220) may be configured to output loop filter parameters (such as sample adaptive offset information), e.g. directly or after entropy coding performed by the entropy coding unit 270 or any other entropy coding unit, so that e.g. the decoder 30 can receive and apply the same loop filter parameters for decoding.
[0135] The decoded picture buffer (DPB) 230 may be a reference picture memory that stores reference picture data for use in the video data encoding by the video encoder 100. The DPB 230 may be formed by any one of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM)), or other types of memory devices. The DPB 230 and the buffer 216 may be provided by the same memory device or separate memory devices. In one example, the decoded picture buffer (DPB) 230 is configured to store the filtered block 221. The decoded picture buffer 230 may further be configured to store other previously filtered blocks, such as the previously reconstructed filtered block 221, of the same current picture or of a different picture, such as a previously reconstructed picture, and may provide a complete previously reconstructed, i.e. decoded picture (and corresponding reference blocks and corresponding samples) and / or a partially reconstructed current picture (and corresponding reference blocks and samples), such as for inter prediction. In one example, the decoded picture buffer (DPB) 230 is configured to store the reconstructed block 215 when the reconstructed block 215 is reconstructed without in-loop filtering.
[0136] The prediction processing unit 260, also referred to as block prediction processing unit 260, is configured to receive or obtain the block 203 (the current block 203 of the current picture 201) and reconstructed picture data, e.g. reference samples of the same (current) picture from the buffer 216 and / or reference picture data 231 from one or more previously decoded pictures from the decoded picture buffer 230, and to process the data for prediction, i.e. to provide a prediction block 265, which may be an inter prediction block 245 or an intra prediction block 255.
[0137] The mode selection unit 262 may be configured to select a prediction mode (e.g., intra or inter prediction mode) to be used as the prediction block 265 and / or the corresponding prediction block 245 or 255 for calculation of the residual block 205 and for reconstruction of the reconstructed block 215.
[0138] In an embodiment, mode selection unit 262 may be configured to select a prediction mode (e.g., from prediction modes supported by prediction processing unit 260) that provides the best match or in other words the smallest residual (smallest residual means better compression for transmission or storage), or that provides the smallest signaling overhead (smallest signaling overhead means better compression for transmission or storage), or that considers or balances both. Mode selection unit 262 may also be configured to determine the prediction mode based on rate distortion optimization (RDO), i.e., to select a prediction mode that provides the smallest rate distortion optimization, or to select a prediction mode whose associated rate distortion at least satisfies a prediction mode selection criterion.
[0139] The prediction process performed (eg, by using prediction processing unit 260) and the mode selection performed (eg, by using mode selection unit 262) by an example of encoder 100 are described in detail below.
[0140] As mentioned above, the encoder 100 is configured to determine or select a best or optimal prediction mode from among a (predetermined) set of prediction modes, which may include, for example, intra-prediction modes and / or inter-prediction modes.
[0141] The set of intra-prediction modes may include 35 different intra-prediction modes, such as non-directional modes such as DC (or average) mode and planar mode, or directional modes such as those specified in H.265, or may include 67 different intra-prediction modes, such as non-directional modes such as DC (or average) mode and planar mode, or directional modes such as those specified in the currently under development H.266.
[0142] The set of (possible) intra prediction modes depends on the available reference pictures (i.e., at least a portion of the decoded pictures stored in DBP230) and other inter prediction parameters, e.g. whether the entire reference picture or only a portion of the reference picture is used, e.g. a search window area around the area of the current block to search for the best matching reference block, and / or whether sample interpolation, e.g. half sample / quarter sample interpolation, is applied.
[0143] In addition to the above prediction modes, skip and / or direct modes may also be applied.
[0144] Prediction processing unit 260 may be further configured to divide block 203 into smaller block partitions or sub-blocks, e.g., by iteratively using quad-tree (QT), binary-tree (BT), triple-tree (TT) partitioning, or any combination thereof, and perform prediction for each of the block partitions or sub-blocks, e.g., Mode selection includes selecting a tree structure for partitioned block 203 and selecting a prediction mode to be applied to each of the block partitions or sub-blocks.
[0145] The inter prediction unit 244 may include a motion estimation (ME) unit (not shown in FIG. 5a) and a motion compensation (MC) unit (not shown in FIG. 5a). The motion estimation unit is configured to receive or obtain a picture block 203 (current picture block 203 of current picture 201) and a decoded picture 231, or at least one or more previously reconstructed blocks, e.g. one or more reconstructed blocks of other / different previously decoded pictures 231, for motion estimation. For example, a video sequence may include a current picture and a previously decoded picture 31. In other words, the current picture and the previously decoded picture 31 may be part of pictures forming a video sequence or may form a sequence of pictures.
[0146] For example, the encoder 100 may be configured to select a reference block from multiple reference blocks of the same picture or different pictures of multiple other pictures, and provide an offset (spatial offset) between the position (coordinates X and Y) of the reference picture and / or reference block and the position of the current block as an inter prediction parameter to a motion estimation unit (not shown in FIG. 5a ), which offset is also called a motion vector (MV).
[0147] The motion compensation unit is configured to obtain, e.g., receive, inter prediction parameters and perform inter prediction based on or by using the inter prediction parameters to obtain inter prediction block 245. The motion compensation performed by the motion compensation unit (not shown in FIG. 5a) may include fetching or generating a prediction block based on a motion / block vector determined by motion estimation (possibly by performing interpolation with sub-sample accuracy). Interpolation filtering may generate additional samples of samples from known sample pixels, thus potentially increasing the number of candidate prediction blocks that may be used to code the picture block. Upon receiving a motion vector for a PU of the current picture block, the motion compensation unit 246 may locate the prediction block to which the motion vector points in one of the reference picture lists. The motion compensation unit 246 may also generate block and video slice related syntax elements for use by the video decoder 300 in decoding picture blocks of the video slice.
[0148] The intra prediction unit 254 is configured to obtain, e.g., receive, e.g., the picture block 203 (current picture block) and one or more previously reconstructed blocks, e.g., reconstructed neighboring blocks, of the same picture for intra estimation. The encoder 100 may be configured, for example, to select an intra prediction mode from a plurality of (predetermined) intra prediction modes.
[0149] In an embodiment, the encoder 100 may be configured to select the intra prediction mode based on an optimization criterion, such as minimum residual (e.g., the intra prediction mode that provides the predicted block 255 that is most similar to the current picture block 203) or minimum rate distortion.
[0150] The intra prediction unit 254 is further configured to determine the intra prediction block 255 based on, for example, intra prediction parameters in a selected intra prediction mode. In any case, after selecting an intra prediction mode for the block, the intra prediction unit 254 is further configured to provide the intra prediction parameters, i.e., information indicative of the selected intra prediction mode for the block, to the entropy coding unit 270. In one example, the intra prediction unit 254 may be configured to perform any combination of the intra prediction techniques described below.
[0151] The entropy coding unit 270 is configured to apply an entropy coding algorithm or scheme (e.g., a variable length coding (VLC) scheme, a context adaptive VLC (CAVLC) scheme, an arithmetic coding scheme, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or other entropy coding method or technique) to the quantized residual coefficients 209, the inter prediction parameters, the intra prediction parameters, and / or the loop filter parameters to obtain coded picture data 21, e.g. in the form of a coded bitstream 21, which can be output by an output 272. The coded bitstream may be transmitted to the video decoder 30 or may be stored for later transmission or retrieval by the video decoder 30. Entropy encoding unit 270 may be further configured to entropy encode other syntax elements for the current video slice being encoded.
[0152] Other structural variations of the video encoder 100 can be used to encode the video stream. For example, a non-transform-based encoder 200 can quantize the residual signal for some blocks or frames without a transform processing unit 206. In another implementation, the encoder 100 can combine the quantization unit 208 and the inverse quantization unit 210 into a single unit.
[0153] FIG. 5b is a schematic block diagram of a video decoder according to an implementation of the present invention. The entropy decoder 303 of the video decoder 300 decodes the bitstream to generate quantized coefficients and some syntax elements. The entropy decoder 303 forwards the syntax elements to the prediction processing unit 308. The video decoder 300 may receive the syntax elements / syntax elements at a video slice level and / or a picture block level. In the present application, in one example, the syntax elements in the present application may include intra prediction data related to a chroma coding tree node, and the intra prediction data may include a first identifier qtbtt_dual_tree_intra_flag and a second identifier sps_cclm_enabled_flag, where the first identifier is used to indicate whether a separate tree structure is used for an intra picture in a video sequence, and the second identifier is used to indicate whether CCLM is allowed to be performed for a chroma block in a video sequence. Optionally, the inter prediction data may further include a size of a chroma coding tree node and a split flag, which may be set to different values to indicate that a different split mode is used for the chroma coding tree node. Optionally, further syntax elements may be included.
[0154] The entropy decoder 303 entropy decodes the bitstream to obtain a first identifier qtbtt_dual_tree_intra_flag and a second identifier sps_cclm_enabled_flag. If the first identifier indicates that a separate tree structure is used for an intra picture and the second identifier indicates that CCLM is allowed to be performed on a chroma block in a video sequence, the entropy decoder 303 then analyzes a size and a split flag of a chroma coding tree node from the bitstream, and the intra predictor 309 determines a split mode of the chroma coding tree node based on the split flag, and determines whether CCLM is allowed to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the split mode of the chroma coding tree node. The entropy decoder 303 analyzes a first index CuPreMode of a chroma coding unit from the bitstream. If the value of the first index is equal to MODE_INTRA, the entropy decoder 303 continues to analyze a third identifier pcm_flag from the bitstream. If the third identifier indicates that the PCM mode is not used for the chroma coding unit, the entropy decoder 303 analyzes a second index intra_chroma_pred_mode from the bitstream. The intra predictor 309 determines a prediction mode of the chroma coding unit based on the second index intra_chroma_pred_mode and the prediction mode of the luma coding unit corresponding to the chroma coding unit, and then intra predicts the chroma coding unit based on the prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit. The entropy decoder 303 further analyzes the bitstream to obtain residual information of the chroma coding unit.
[0155] The dequantizer 304 and the inverse transformer 305 process the residual information of the chroma coding unit to obtain a reconstructed residual of the chroma coding unit.
[0156] After the intra predictor 309 generates the prediction samples used for the chroma coding unit, the video decoder 300 adds the reconstructed residual from the inverse transformer 305 and the prediction samples generated by the intra predictor 310 to obtain the reconstructed samples of the chroma coding unit, i.e., the decoded picture block. The adder 311 represents a component that performs the addition operation. If necessary, a loop filter (in or after the decoding loop) can be further used to smooth sample transitions or otherwise improve the video quality. The filter unit 306 can represent one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) filter. Although the filter unit 306 is shown as an in-loop filter in FIG. 5b, in another implementation, the filter unit 306 may be implemented as a post-loop filter. In one example, the filter unit 306 can be applied to block reconstruction to reduce blockiness, and the result is output as a decoded video stream. Additionally, the decoded picture blocks in a given frame or picture may be further stored in a decoded picture buffer 307, which stores reference pictures used for subsequent motion compensation. The decoded picture buffer 307 may be part of a memory and may further store the decoded video for subsequent presentation on a display device (e.g., display device 330 of FIG. 4). Alternatively, the decoded picture buffer 307 may be separate from such a memory.
[0157] It should be understood that other structural variations of the video decoder 300 may be used to decode the encoded video bitstream. For example, the video decoder 300 may generate an output video stream without processing by the filter unit 306. Alternatively, for some picture blocks or picture frames, the entropy decoder 303 of the video decoder 300 does not obtain quantized coefficients through decoding, and correspondingly, processing by the dequantizer 304 and the inverse transformer 305 is not required.
[0158] 5c is a simplified block diagram of an apparatus 500 capable of implementing the techniques of the present application, which may be used as either or both of the source device 10 and the destination device 30 of FIG. 4, according to an example embodiment. The apparatus 500 may be in the form of a computing system including multiple computing devices, or in the form of a single computing device, such as, for example, a mobile phone, a tablet computer, a laptop computer, or a desktop computer.
[0159] The processor 502 of the device 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device or devices capable of controlling or processing information, existing or later developed. As shown, the disclosed implementations may be implemented using a single processor, such as the processor 502, although advantages in speed and efficiency may be achieved by using more than one processor.
[0160] In implementations, the memory 504 of the device 500 may be a Read Only Memory (ROM) device or a Random Access Memory (RAM) device. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 that is accessed by the processor 502 by using a bus 512. The memory 504 may further include an operating system 508 and application programs 510. The application programs 510 include at least one program that allows the processor 502 to perform the methods described herein. For example, the application programs 510 may include applications 1-N, which further include a video coding application that performs the methods described herein. The device 500 may also include additional memory in the form of secondary storage 514. The secondary storage 514 may be, for example, a memory card used with a mobile computing device. Because a video communication session may contain a large amount of information, all or part of this information may be stored in secondary storage 514 and loaded into memory 504 as needed for processing.
[0161] The device 500 may also include one or more output devices, such as a display 518. In one example, the display 518 may be a touch-sensitive display that incorporates touch-sensing elements into the display operable to sense touch input. The display 518 may be coupled to the processor 502 by using a bus 512. Other output devices that allow a user to program or otherwise use the device 500 may be provided in addition to or as an alternative to the display 518. When the output device is or includes a display, the display may be implemented in a variety of ways, including by a liquid crystal display (LCD), a cathode ray tube (CRT) display, a plasma display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.
[0162] The apparatus 500 may also include or be connected to an image sensing device 520. The image sensing device 520 may be, for example, a camera or any other image sensing device 520 now existing or later developed capable of sensing an image. The image may be, for example, an image of a user moving the apparatus 500. The image sensing device 520 may be positioned directly facing the user moving the apparatus 500. In one example, the position and optical axis of the image sensing device 520 may be set such that the field of view of the image sensing device 520 includes an area immediately adjacent to the display 518 and the display 518 is visible from that area.
[0163] The device 500 may also include or be in communication with an acoustic sensing device 522, such as a microphone, or any other now or later developed acoustic sensing device capable of sensing sound in the vicinity of the device 500. The acoustic sensing device 522 may be positioned directly facing a user moving the device 500 and may be configured to receive sounds, such as voices or other sounds, made by the user when the device 500 is moved.
[0164] Although FIG. 5c depicts the processor 502 and memory 504 of device 500 as integrated into a single unit, other configurations may be used. The operation of processor 502 may be distributed across multiple machines (each machine having one or more processors) that may be directly coupled or distributed within a local area or other network. Memory 504 may be distributed across multiple machines, such as a network-based memory, or memory within multiple machines on which device 500 operates. Although depicted here as a single bus, bus 512 of device 500 may include multiple buses. Additionally, secondary storage 514 may be directly coupled to other components of device 500 or may be accessed over a network, and may include a single integrated unit such as a memory card or multiple units such as multiple memory cards. Thus, device 500 may be implemented in a wide variety of configurations.
[0165] It should be noted that the encoder shown in FIG. 5a, the decoder shown in FIG. 5b, and the device shown in FIG. 5c can implement some or all of the following method embodiments shown in FIG. 6 and FIG.
[0166] 6 is a schematic flowchart of a method for intra prediction of a video sequence according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
[0167] S601. Get the size and division mode of a chroma coding tree node.
[0168] Specifically, the corresponding syntax elements in the bitstream are analyzed to obtain the size and partition mode of the chroma coding tree node. The partition mode of the chroma coding tree node may include at least one of: no partition, quadtree partition, horizontal binary partition, horizontal ternary partition, vertical binary partition, and vertical ternary partition. Of course, there may be another partition mode alternatively. This is not limited in the present invention.
[0169] It should be noted in this case that the format of the video sequence in this embodiment of the present invention may be YUV4:2:0 format, YUV4:2:2 format, or YUV4:2:4 format.
[0170] S602. Determine whether to allow CCLM to be performed on a chroma coding unit contained in a chroma coding tree node based on the size and partitioning mode of the chroma coding tree node.
[0171] The chroma coding units contained in a chroma coding tree node are the chroma coding units of the picture region corresponding to the chroma coding tree node. If a chroma coding tree node is not split, the chroma coding tree node contains one chroma coding unit. If a chroma coding tree node is split into child nodes, the chroma coding units contained in a chroma coding tree node are the chroma coding units that correspond to all coding tree leaf nodes of the chroma coding tree node.
[0172] In a possible embodiment, the size of the chroma coding tree node is MxN, and the step of determining whether to allow the CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node further comprises: when both M and N are equal to a preset threshold T1, making a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a first preset condition; or making a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy a first preset condition, the first preset condition including a non-split or quadtree split mode, and the threshold T1 is, for example, 64 or 32; or When M is equal to T1 and N is equal to T1 / 2, making a decision to allow CCLM to be executed in the chroma coding unit if the partitioning mode of the chroma coding tree node satisfies a second preset condition; or making a decision to not allow CCLM to be executed in the chroma coding unit if the partitioning mode of the chroma coding tree node does not satisfy a second preset condition, the second preset condition including a non-partitioned or vertical binary partitioned mode.
[0173] More specifically, when the first preset condition is the non-split mode or the quadtree split mode, "when the split mode of the chroma coding tree node satisfies the first preset condition" is "when the split mode of the chroma coding tree node is the non-split mode or the quadtree split mode". When the second preset condition is the non-split mode or the vertical binary split mode, "when the split mode of the chroma coding tree node satisfies the second preset condition" is "when the split mode of the chroma coding tree node is the non-split mode or the vertical binary split mode". In another possible embodiment, the first preset condition may alternatively be the non-split, the quadtree split mode, or the horizontal binary split mode. In another possible embodiment, the second preset condition may alternatively be the non-split, the vertical binary split mode, or the horizontal binary split mode.
[0174] If the current chroma coding tree node is not split, the coding mode information of the chroma coding units contained in the current chroma coding tree node is further analyzed, and the decoding and reconstruction are completed; otherwise, the current chroma coding tree node is split into multiple nodes based on the split mode of the current chroma coding tree node.
[0175] It should be noted that in this case, when a separate tree structure is used for an intra picture, a chroma coding tree node of size T1x(T1 / 2) can only be obtained by splitting a chroma coding tree node of size T1xT1 by using a horizontal binary splitting mode; therefore, "the size of a chroma coding tree node is T1×(T1 / 2)" is equivalent to the splitting mode of the parent node of the chroma coding tree node (i.e., the chroma coding tree node of size T1xT1) being the horizontal binary splitting mode.
[0176] For example, assume that the size of a chroma coding tree node is 64x64. When the luma block of the chroma coding tree node with size 64x64 is partitioned by using a quadtree partitioning mode, as shown in (a) of FIG. 2, if the partitioning mode of the chroma coding tree node is a quadtree partitioning mode, i.e., if the quadtree partitioning mode is used for the chroma block of the chroma coding tree node, as shown in (d) of FIG. 2, then after luma node 0 is reconstructed, CCLM can be performed on chroma node 0, and after luma node 1 is reconstructed, CCLM can be performed on chroma node 1, and so on. As another example, when the split mode of a chroma coding tree node is non-split, i.e., when a chroma block of a chroma coding tree node is non-split, the chroma block may be split into four sub-regions p0, p1, p2, and p3, as shown in (e) of Figure 2, and the intra prediction of p0, p1, p2, and p3 is completed sequentially. After luma node 0 is reconstructed, CCLM can be performed on chroma region p0, and before luma node 1 is reconstructed, CCLM can be performed on chroma region p1, and so on.
[0177] If the chroma block of a chroma coding tree node with size 64x64 is first split by using horizontal binary split mode, the upper chroma node with size 64x32 is split by using vertical binary split mode, and the lower chroma node with size 64x32 is not split, then, as shown in Figure 2(f), CCLM can be performed on chroma node 0 after luma node 0 is reconstructed, CCLM can be performed on chroma node 1 after luma node 1 is reconstructed, CCLM can be performed on region p0 of chroma node 2 after luma node 2 is reconstructed, and CCLM can be performed on region p1 of chroma node 2 after luma node 3 is reconstructed. Therefore, if a chroma block of a chroma coding tree node of size 64x64 is not split or is split by using a quadtree split mode, or if a chroma block of a chroma coding tree node of size 64x32 is not split or is split by using a vertical binary split mode, the processing latency for performing CCLM at a chroma node does not exceed the processing time of one luma region of size 32x32.
[0178] In this embodiment, the partitioning modes that can be used by a luma coding tree node of size T1xT1 may be limited to include only the non-partitioned mode and the quadtree partitioning mode. This limitation can be realized by the limitations that the maximum binary tree node size (e.g., MaxBtSizeY in VTM5) for an I-frame picture cannot exceed T1 / 2, and the maximum ternary tree node size (e.g., MaxTtSizeY in VTM5) cannot exceed T1 / 2.
[0179] Furthermore, the ISP mode is not used for luma coding units of size T1xT1 that are included in a luma coding tree node that corresponds to a chroma coding tree node.
[0180] In a possible embodiment, whether or not CCLM is allowed to be performed on a chroma coding unit contained in a chroma coding tree node is determined based on a size and a partitioning mode of the chroma coding tree node, and whether or not CCLM is allowed to be performed on a chroma coding unit contained in a chroma coding tree node is further determined based on a partitioning mode of a luma coding tree node corresponding to the chroma coding tree node.
[0181] In a possible embodiment, the step of determining whether to allow a Cross-Component Linear Model (CCLM) intra prediction to be performed in a chroma coding unit contained in a chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node comprises: The method includes determining, based on a size and partitioning mode of the chroma coding tree node and a partitioning mode of a luma coding tree node corresponding to the chroma coding tree node, whether to allow an intra sub-partition ISP mode to be used for the corresponding luma block when the luma coding tree node is not partitioned, and whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node, where the case when the luma coding tree node is not partitioned corresponds to one luma coding unit; thus, the luma block corresponding to the case when the luma coding tree node is not partitioned is the luma block of the luma coding unit corresponding to the luma coding tree node.
[0182] A luma coding tree node corresponding to a chroma coding tree node is a luma coding tree node of size T1xT1 in the luma coding tree of the separated tree in which the chroma coding tree is located. For example, when a separated tree is used for an intra picture in VVC Draft 5, a 64x64 coding tree node is split by using a separated tree, and the separated tree includes a luma coding tree and a chroma coding tree. If T1 is set to 64, a luma coding tree node corresponding to a chroma coding tree node is a root node of the luma coding tree of the separated tree in which the chroma coding tree is located.
[0183] In a possible embodiment, the size of the chroma coding tree node is MxN, and if the luma coding tree node is not partitioned, the step of determining whether to allow an intra sub-partition ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and partitioning mode of the chroma coding tree node and the partitioning mode of the luma coding tree node corresponding to the chroma coding tree node comprises: making a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies any one of the conditions in the third preset conditions; or making a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy a third preset condition, M is equal to T1, and N is equal to T1, and if the split mode of the chroma coding tree node satisfies a first preset condition; or making a decision to not allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy a first preset condition, the first preset condition including a non-split or quadtree split mode; or The method includes the steps of: making a decision to allow CCLM to be performed in the chroma coding unit if the partitioning mode of the chroma coding tree node does not satisfy a third preset condition, M is equal to T1, and N is equal to T1 / 2, and the partitioning mode of the chroma coding tree node satisfies a second preset condition; or making a decision to not allow CCLM to be performed in the chroma coding unit if the partitioning mode of the chroma coding tree node does not satisfy the second preset condition, and the second preset condition includes a non-split or vertical binary partition mode.
[0184] In an embodiment, the third preset condition includes one or any combination of the following conditions 1 to 13, where conditions 1 to 13 are as follows:
[0185] Condition 1: The split mode of the luma coding tree node corresponding to a chroma coding tree node is non-split, the ISP mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node is T1xT1 (the luma coding tree node and the chroma coding tree node belong to the same split tree, i.e., the coordinate of the upper left corner of the luma coding tree node is the same as the coordinate of the upper left corner of the root node of the chroma coding tree).
[0186] Condition 2: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0187] Condition 3: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical binary partitioning mode, a vertical ternary partitioning mode, or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0188] Condition 4: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal ternary partitioning mode, a vertical binary partitioning mode, a vertical ternary partitioning mode or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node and the luma block are all T1xT1.
[0189] Condition 5: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a horizontal ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical binary partitioning mode, a vertical ternary partitioning mode, or a horizontal ternary partitioning mode, the size of the luma coding tree node is T1xT1, and the size of the chroma coding tree node is T1x(T1 / 2).
[0190] Condition 6: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a quadtree partitioning mode, and the size of the chroma coding tree node and the size of the luma coding tree node are both T1xT1.
[0191] Condition 7: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a vertical ternary partitioning mode, a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a quadtree partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0192] Condition 8: The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, a vertical ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is partitioned into child nodes by using one of a horizontal binary partitioning mode, a horizontal ternary partitioning mode, or a vertical ternary partitioning mode, the size of the luma coding tree node and the size of the luma block are both T1xT1, and the size of the chroma coding tree node is T1x(T1 / 2).
[0193] Condition 9: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a horizontal binary split mode, and the size of the luma coding tree node is T1×T1.
[0194] Condition 10: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a vertical binary split mode, and the size of the luma coding tree node is T1×T1.
[0195] Condition 11: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a horizontal ternary split mode, and the size of the luma coding tree node is T1×T1.
[0196] Condition 12: A luma coding tree node corresponding to a chroma coding tree node is split into child nodes by using a vertical ternary split mode, and the size of the luma coding tree node is T1×T1.
[0197] Condition 13: The partitioning mode used for the luma coding tree node corresponding to the chroma coding tree node is a partitioning mode other than non-partitioned and quadtree partitioning, and the size of the luma coding tree node is T1×T1.
[0198] It should be noted that the partitioning mode used for the chroma coding tree nodes is a partitioning mode other than non-partitioned and quadtree partitioned, which means that the partitioning mode used for the luma coding tree nodes is neither quadtree partitioned nor non-partitioned.
[0199] It should be noted in this case that in a quad-tree plus multi-type tree (QT-MTT) structure, the partitioning modes allowed for a node include, at most, no partitioning, horizontal binary partitioning mode, vertical binary partitioning mode, horizontal ternary partitioning mode, vertical ternary partitioning mode, and quad-tree partitioning mode; therefore, in condition 3, “the chroma coding tree node is partitioned into child nodes by using one of the vertical binary partitioning mode, the vertical ternary partitioning mode, or the quad-tree partitioning mode” can be equivalently explained as “in the QT-MTT structure, the partitioning mode used for the chroma coding tree node is not the horizontal binary partitioning mode, the horizontal ternary partitioning mode, or no partitioning”
[0200] In a possible embodiment, on the premise that the partitioning mode used for the luma coding tree node corresponding to the chroma coding tree node is limited to non-partitioning and quadtree partitioning, the third preset condition includes at least one of conditions 1 to 9.
[0201] It should be noted that in this case, splitting a chroma coding tree node into child nodes specifically means that the chroma coding tree node is split into child nodes by using one of a horizontal binary split mode, a vertical binary split mode, a horizontal ternary split mode, a vertical ternary split mode, and a quadtree split mode.
[0202] In a possible embodiment, the third preset condition includes:
[0203] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP prediction mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node is T1xT1.
[0204] In a possible embodiment, the third preset condition includes:
[0205] The splitting mode of the luma coding tree node corresponding to the chroma coding tree node is non-split, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0206] In a possible embodiment, the third preset condition includes:
[0207] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, and an ISP mode is used for the luma block of the luma coding tree node, and the chroma coding tree node is partitioned into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the size of the chroma coding tree node, the size of the luma coding tree node, and the size of the luma block are all T1xT1.
[0208] In a possible embodiment, the third preset condition includes one or more of conditions 1 to 13.
[0209] In a possible embodiment, the third preset condition includes condition 1 or condition 13.
[0210] In a possible embodiment, the third preset condition includes condition 2 or condition 13.
[0211] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 6, condition 8, and condition 13.
[0212] In a possible embodiment, the third preset condition includes condition 4, condition 5, condition 7, condition 8, and condition 13.
[0213] In a possible embodiment, the third preset condition includes condition 4, condition 5, condition 7, condition 8, condition 9, condition 10, condition 11, and condition 12.
[0214] In a possible embodiment, T1 may be equal to 64. That is, if the size of a chroma coding tree node is T1xT1, the size of the chroma coding tree node is actually 64x64. If the size of a chroma coding tree node is T1x(T1 / 2), the size of the chroma coding tree node is actually 64x32. If the size of a luma coding tree node is T1xT1, the size of the luma coding tree node is actually 64x64. If the size of the luma block of a node of the luma coding tree is T1xT1, the size of the chroma coding tree node is actually 64x64.
[0215] In a possible embodiment, after determining whether to allow CCLM to be performed on a chroma coding unit included in a chroma coding tree node based on the size and partitioning mode of the chroma coding tree node, it is determined whether the chroma coding unit satisfies a third preset condition, and further determines whether to allow CCLM to be performed on the chroma coding unit included in the chroma coding tree node.
[0216] S603. Depending on whether CCLM is allowed to be performed in the chroma coding unit, a prediction mode of the chroma coding unit is obtained.
[0217] The prediction mode of the chroma coding unit includes at least one of a direct mode, a planar mode, a direct current mode (DC mode), an angular mode, a CCLM mode, a pulse-code modulation (PCM) mode, and an intra-block copy (IBC) mode.
[0218] Specifically, the syntax element CuPredMode of a chroma coding unit is analyzed from the syntax table. If the value of CuPredMode of a chroma coding unit is equal to MODE_INTRA, pcm_flag is obtained by analysis, and pcm_flag is used to indicate whether PCM mode is used for the chroma coding unit. If it is determined based on pcm_flag that PCM mode is not used for the chroma coding unit, the syntax element intra_chroma_pred_mode is further analyzed.
[0219]
number
[0220]
number
[0221] xCb and xCr represent the coordinates of the upper-left corner of the chroma coding unit (which are expressed by using the amount of corresponding luma samples), cbWidth and cbHeight represent the width and height of the chroma coding unit (which are expressed by using the amount of corresponding luma samples), intra_chroma_pred_mode[xCb][yCb] represents the number of intra prediction modes of the chroma coding unit, IntraPredModeY[xCb + cbWidth / 2][yCb + cbHeight / 2] represents the luma intra prediction mode at the coordinate position (xCb + cbWidth / 2, yCb + cbHeight / 2), and the intra prediction mode of the chroma coding unit IntraPredModeC[xCb][yCb] can be obtained by looking up in Table 1 or Table 2.
[0222] S604. Based on a prediction mode of the chroma coding unit, perform intra prediction on the chroma coding unit to obtain a prediction sample of the chroma coding unit.
[0223] In a possible embodiment, a first identifier qtbtt_dual_tree_intra_flag and a second identifier sps_cclm_enabled_flag are analyzed from the bitstream. The first identifier is used to indicate whether a separate tree structure is used for intra pictures, and the second identifier is used to indicate whether CCLM is allowed to be performed on chroma blocks in a video sequence. For example, if the value of the first identifier is a first value (e.g., 1 or true), the first identifier is used to indicate that a separate tree structure is used for intra pictures in a video sequence; or if the value of the first identifier is a second value (e.g., 0 or false), the first identifier is used to indicate that a separate tree structure is not used for intra pictures in a video sequence. When the value of the second identifier is a first value (e.g., 1 or true), the second identifier is used to indicate that CCLM is allowed for the chroma block in the video sequence; or, when the value of the second identifier is a second value (e.g., 0 or false), the second identifier is used to indicate that CCLM is not allowed for the chroma block in the video sequence.
[0224] When the value of the first identifier and the value of the second identifier are both a first value, an intra prediction operation is performed on the chroma coding unit by using the intra prediction method of the present invention.
[0225] It can be seen that in the solution of this embodiment of the present invention, whether to allow CCLM to be performed on a chroma coding unit contained in a chroma coding tree node is determined based on the size and partitioning mode of the chroma coding tree node, thereby reducing the processing latency for performing CCLM on a chroma coding unit and improving the throughput of a hardware decoder.
[0226] 7 is a schematic flowchart of a decoding method according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
[0227] S701. Analyze a bitstream to obtain a size and a partition mode of a chroma coding tree node.
[0228] Specifically, the video decoding unit decodes the bitstream to obtain the corresponding syntax elements, and then determines the size and partition mode of the chroma coding tree nodes based on the syntax elements.
[0229] S702. Determine whether to allow cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node.
[0230] S703. Determine a prediction mode of the chroma coding unit depending on whether or not CCLM is allowed to be performed in the chroma coding unit.
[0231] S704. Process the chroma coding unit based on a prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit.
[0232] For a specific description of steps S701 to S704, please refer to the relevant description of steps S601 to S604 in the embodiment shown in Figure 6. The details will not be described again here.
[0233] S705. Obtain a reconstructed residual of the chroma coding unit, and obtain a reconstructed sample of the chroma coding unit based on the reconstructed residual of the chroma coding unit and the predicted sample of the chroma coding unit.
[0234] Specifically, the residual information includes coded block flags and transform coefficients, and may further include horizontal and vertical transform types (eg, DCT-2, DCT-7, or DCT-8).
[0235] Specifically, the bitstream is analyzed. If residual information of the chroma coding unit is obtained by the analysis, a dequantization process and an inverse transform process are performed on the residual information of the chroma coding unit to obtain a reconstructed residual of the chroma coding unit; or if residual information of the chroma coding unit is not obtained by the analysis, the reconstructed residual of the chroma coding unit is determined to be 0. The residual information includes a coded block flag and a transform coefficient, and may further include a horizontal transform type and a vertical transform type (e.g., DCT-2, DCT-7, or DCT-8). The reconstructed residual of the chroma coding unit and the predicted sample of the chroma coding unit are added, and the result of the addition is clipped within a preset value range (e.g., 0 to 255, or 0 to 1023) to obtain a reconstructed sample of the chroma coding unit.
[0236] It can be seen that in the solution in this embodiment of the present invention, whether to allow CCLM to be performed on a chroma coding unit contained in a chroma coding tree node is determined based on the size and partitioning mode of the chroma coding tree node, thereby reducing the processing latency for performing CCLM on a chroma coding unit, improving the throughput of a hardware decoder, and improving video decoding efficiency.
[0237] 8 is a schematic structural diagram of an intra prediction device according to an embodiment of the present invention. As shown in FIG. 8, the intra prediction device 800 includes: an acquiring unit 801 configured to acquire a size and a split mode of a chroma coding tree node; a determining unit 802 configured to determine whether to allow CCLM to be performed on a chroma coding unit included in a chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node; and to determine a prediction mode of the chroma coding unit depending on whether to allow CCLM to be performed on the chroma coding unit; and The prediction unit 803 is configured to process the chroma coding unit based on a prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit.
[0238] In a possible embodiment, the size of a chroma coding tree node is MxN, and the determining unit 802 determines whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the division mode of the chroma coding tree node: When both M and N are equal to a preset threshold T1, the method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node satisfies a first preset condition; or make a decision to not allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy the first preset condition, where the first preset condition includes a non-split or quadtree splitting mode.
[0239] In a possible embodiment, the size of a chroma coding tree node is MxN, and the determining unit 802 determines whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the division mode of the chroma coding tree node: The method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a second preset condition when M is equal to T1 and N is equal to T1 / 2; or make a decision to not allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the second preset condition, where the second preset condition includes a non-split or vertical binary split mode.
[0240] In a possible embodiment, in determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed in a chroma coding unit included in a chroma coding tree node based on a size and a partitioning mode of the chroma coding tree node, the determining unit 802: The chroma coding tree node is specifically configured to determine, when a luma coding tree node is not split, whether to allow an ISP mode to be used for a corresponding luma block and whether to allow CCLM to be performed on a chroma coding unit included in the chroma coding tree node based on the size and splitting mode of the chroma coding tree node and the splitting mode of a luma coding tree node corresponding to the chroma coding tree node.
[0241] In a possible embodiment, the size of a chroma coding tree node is MxN, and when the luma coding tree node is not split, determining whether to allow an ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and splitting mode of the chroma coding tree node and the splitting mode of the luma coding tree node corresponding to the chroma coding tree node, the determining unit 802: Making a decision not to allow CCLM to be executed in the chroma coding unit when the split mode of the chroma coding tree node satisfies a third preset condition; or The method is specifically configured to: make a decision to allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node satisfies a first preset condition, when the splitting mode of the chroma coding tree node does not satisfy a third preset condition, M is equal to T1, and N is equal to T1; or make a decision to not allow CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy the first preset condition, where the first preset condition includes a non-split or quadtree splitting mode.
[0242] In a possible embodiment, the size of a chroma coding tree node is MxN, and when the luma coding tree node is not split, determining whether to allow an ISP mode to be used for the corresponding luma block and whether to allow CCLM to be performed on the chroma coding unit contained in the chroma coding tree node based on the size and splitting mode of the chroma coding tree node and the splitting mode of the luma coding tree node corresponding to the chroma coding tree node, the determining unit 802: The control unit is specifically configured to: make a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies any one of the conditions in the third preset conditions; or make a decision to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a second preset condition when the split mode of the chroma coding tree node does not satisfy the third preset condition, N=T1, and M=T1 / 2; or make a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node does not satisfy the second preset condition, wherein the second preset condition includes a non-split or vertical binary split mode.
[0243] In a possible embodiment, the third preset condition includes one or more of condition 1, condition 2, condition 3, condition 4, condition 5, condition 6, condition 7, condition 8, condition 9, condition 10, condition 11, condition 12, and condition 13 in the example shown in FIG. 6.
[0244] In a possible embodiment, the third preset condition includes:
[0245] The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, the ISP prediction mode is used for the luma block of the luma coding tree node, and the size of the luma coding tree node and the size of the luma block are both T1xT1.
[0246] In a possible embodiment, the third preset condition includes:
[0247] The splitting mode of the luma coding tree node corresponding to the chroma coding tree node is non-split, the ISP mode is used for the luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1.
[0248] In a possible embodiment, the third preset condition includes conditions 1 and 13 in the example shown in FIG.
[0249] In a possible embodiment, the third preset condition includes conditions 2 and 13 in the example shown in FIG.
[0250] In a possible embodiment, the third preset condition includes:
[0251] The partitioning mode of a luma coding tree node corresponding to a chroma coding tree node is one of non-partitioned, quadtree partitioned mode, horizontal binary partitioned mode, and vertical binary partitioned mode, and the size of the luma coding tree node is T1xT1; or The partitioning mode of the luma coding tree node corresponding to the chroma coding tree node is non-partitioned, and an ISP mode is used for the luma block of the luma coding tree node, and the chroma coding tree node is partitioned into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the size of the chroma coding tree node, the size of the luma coding tree node, and the size of the luma block are all T1xT1.
[0252] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 6, condition 8, and condition 13 in the example shown in FIG.
[0253] In a possible embodiment, the third preset condition includes condition 4, condition 5, condition 7, condition 8, and condition 13 in the example shown in FIG.
[0254] In a possible embodiment, the third preset condition includes condition 3, condition 5, condition 7, condition 8, condition 9, condition 10, condition 11, and condition 12 in the example shown in FIG.
[0255] In a possible embodiment, the preset threshold T1 is equal to 64.
[0256] It should be noted that the aforementioned units (obtaining unit 801, determining unit 802, and predicting unit 803) are configured to perform the relevant steps of the aforementioned methods. Specifically, the obtaining unit 801 is configured to perform the relevant contents in steps S601 and S701, the determining unit 802 is configured to perform the relevant contents in steps S602, S603, S702, and S703, and the predicting unit 803 is configured to perform the relevant contents in steps S604 and S704. In other words, the obtaining unit 801 is configured to implement the relevant functions of the entropy decoder 303 and the intra predictor 309 in Fig. 5b, and the determining unit 802 and the predicting unit 803 are configured to implement the relevant functions of the intra predictor 309 in Fig. 5b.
[0257] In this embodiment, the intra prediction apparatus 800 is presented in the form of a unit, where a "unit" may be an application-specific integrated circuit (ASIC), a processor and memory executing one or more software or firmware programs, integrated logic circuitry, and / or other device capable of providing the functionality described above.
[0258] 9 is a schematic structural diagram of an intra prediction device for a video sequence according to an embodiment of the present invention. As shown in FIG. 9, the intra prediction device 900 includes: a decoding unit 901 configured to analyze the bitstream to obtain a first identifier and a second identifier, the first identifier being used to indicate whether a separate tree structure is used for intra pictures in a video sequence, and the second identifier being used to indicate whether CCLM is allowed to be performed on chroma blocks in the video sequence; and The video sequence includes a prediction unit 902 configured to perform all or a portion of the intra prediction method of FIG. 6 when a first identifier indicates that a separate tree structure is used for intra pictures in the video sequence and a second identifier indicates that CCLM is allowed to be performed on chroma blocks in the video sequence.
[0259] It should be noted that the above units (the decoding unit 901 and the prediction unit 903) are configured to perform the relevant steps of the above method, in other words, the decoding unit 901 is configured to implement the relevant functionality of the entropy decoder 303 in Fig. 5b, and the prediction unit 902 is configured to implement the relevant functionality of the intra predictor 309 in Fig. 5b.
[0260] The embodiment of the present invention further provides a computer storage medium. The computer storage medium can store a program; when the program is executed, at least some or all of the steps of any one of the intra prediction methods described in the above method embodiments are included.
[0261] Those skilled in the art will appreciate that the functionality described with reference to the various exemplary logical blocks, modules, and algorithmic steps disclosed and described herein may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, the functionality described with reference to the exemplary logical blocks, modules, and steps may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium, including any medium that facilitates the transmission of a computer program from one place to another (e.g., according to a communication protocol). Thus, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures that implement the techniques described herein. A computer program product may include a computer-readable medium.
[0262] For example, and without limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other media that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is appropriately referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source by coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, and actually refer to non-transitory tangible storage media. As used herein, disc and disk include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs. Discs typically reproduce data magnetically, while discs reproduce data optically by using a laser. Combinations of the above items should also be included within the scope of computer readable media.
[0263] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures, or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described in the exemplary logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a combined codec. Also, all techniques may be implemented in one or more circuits or logic elements.
[0264] The techniques herein may be implemented in a variety of devices or devices, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chip set). To highlight the functional aspects of the apparatus configured to implement the disclosed techniques, various components, modules, or units are described herein, but do not necessarily need to be implemented by different hardware units. Indeed, as described above, the various units may be combined in a codec hardware unit with appropriate software and / or firmware, or may be provided by interoperable hardware units (including one or more processors as described above).
[0265] The above description is merely an example of a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any modifications or replacements that are easily understood by those skilled in the art within the technical scope disclosed in the present application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims
1. 1. A method for intra prediction of a video sequence, comprising: obtaining a size and a division mode of a chroma coding tree node; determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node; determining a prediction mode for the chroma coding unit depending on whether CCLM is allowed to be performed on the chroma coding unit; and processing the chroma coding unit based on the prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit; wherein the size of the chroma coding tree node is MxN, and the step of determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on the size of the chroma coding tree node and the partition mode includes: making a decision not to allow CCLM to be executed in the chroma coding unit if the partitioning mode of the chroma coding tree node does not satisfy a first preset condition when both M and N are equal to a preset threshold T1, the first preset condition including a non-partitioned or quadtree partitioned mode; or determining not to allow CCLM to be executed in the chroma coding unit if the partition mode of the chroma coding tree node does not satisfy a second preset condition when M is equal to a preset threshold T1 and N is equal to T1 / 2, the second preset condition including a no-partition or vertical binary partition mode; A method comprising:
2. Determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the partitioning mode of the chroma coding tree node includes: making a decision not to allow CCLM to be executed in the chroma coding unit if the split mode of the chroma coding tree node satisfies a third preset condition; 2. The method of claim 1, comprising:
3. The third preset condition is: Condition 1: the split mode of a luma coding tree node corresponding to the chroma coding tree node is non-split, an ISP mode is used for a luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1; or Condition 2: the partitioning mode used for the luma coding tree node corresponding to the chroma coding tree node is a partitioning mode other than non-partitioning and quadtree partitioning, and the size of the luma coding tree node is T1xT1; 3. The method of claim 2, comprising:
4. The third preset condition is: the partitioning mode of a luma coding tree node corresponding to the chroma coding tree node is non-split, an ISP prediction mode is used for a luma block of the luma coding tree node, and the chroma coding tree node is split into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1; 3. The method of claim 2, comprising:
5. The method of claim 1 , wherein the preset threshold T1 is equal to 64.
6. 1. A method for intra prediction of a video sequence, comprising: analyzing the bitstream to obtain a first identifier and a second identifier, the first identifier being used to indicate whether a separate tree structure is used for intra pictures in the video sequence, and the second identifier being used to indicate whether Cross-Component Linear Model (CCLM) intra prediction is allowed to be performed on chroma blocks in the video sequence; and performing the method of any one of claims 1 to 5 if the first identifier indicates that the separated tree structure is used for the intra pictures in the video sequence and the second identifier indicates that CCLM is allowed to be performed on the chroma blocks in the video sequence; A method comprising:
7. An apparatus for intra prediction of a video sequence comprising: an acquiring unit configured to acquire a size and a division mode of a chroma coding tree node; a determining unit configured to determine whether to allow a cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on the size and the partition mode of the chroma coding tree node; and to determine a prediction mode of the chroma coding unit depending on whether to allow CCLM to be performed on the chroma coding unit; and a prediction unit configured to process the chroma coding unit based on the prediction mode of the chroma coding unit to obtain a prediction sample of the chroma coding unit; wherein the size of the chroma coding tree node is MxN, and determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed on a chroma coding unit included in the chroma coding tree node based on the size of the chroma coding tree node and the partition mode, The decision unit is specifically configured to: make a decision of not allowing CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy a first preset condition when both M and N are equal to a preset threshold T1, and the first preset condition includes a non-splitting or quadtree splitting mode; or the determining unit is specifically configured to: make a determination of not allowing CCLM to be executed in the chroma coding unit if the splitting mode of the chroma coding tree node does not satisfy a second preset condition when M is equal to a preset threshold T1 and N is equal to T1 / 2, the second preset condition including a non-split or vertical binary split mode.
8. In determining whether to allow a cross-component linear model (CCLM) intra prediction to be performed in a chroma coding unit included in the chroma coding tree node based on the size and the partition mode of the chroma coding tree node, the determining unit:
8. The apparatus of claim 7, specifically configured to: make a decision not to allow CCLM to be performed on the chroma coding unit if the split mode of the chroma coding tree node satisfies a third preset condition.
9. The third preset condition is: Condition 1: the split mode of a luma coding tree node corresponding to the chroma coding tree node is non-split, an ISP mode is used for a luma block of the luma coding tree node, the chroma coding tree node is split into child nodes, and the sizes of the chroma coding tree node, the luma coding tree node, and the luma block are all T1xT1; or Condition 2: the partitioning mode used for the luma coding tree node corresponding to the chroma coding tree node is a partitioning mode other than non-partitioning and quadtree partitioning, and the size of the luma coding tree node is T1xT1; The apparatus of claim 8 , comprising:
10. The third preset condition is: the partitioning mode of a luma coding tree node corresponding to the chroma coding tree node is non-partitioned, an ISP mode is used for a luma block of the luma coding tree node, and the chroma coding tree node is partitioned into child nodes; or the partitioning mode of the luma coding tree node is one of a horizontal binary partitioning mode and a vertical binary partitioning mode, and the size of the chroma coding tree node, the size of the luma coding tree node, and the size of the luma block are all T1xT1; The apparatus of claim 8 , comprising:
11. The apparatus of claim 7 , wherein the preset threshold T1 is equal to 64.
12. An apparatus for intra prediction of a video sequence comprising: a decoding unit configured to analyze the bitstream to obtain a first identifier and a second identifier, the first identifier being used to indicate whether a separate tree structure is used for intra pictures in the video sequence, and the second identifier being used to indicate whether Cross-Component Linear Model (CCLM) intra prediction is allowed to be performed on chroma blocks in the video sequence; and a prediction unit configured to perform the method of any one of claims 1 to 6, when the first identifier indicates that the separated tree structure is used for the intra pictures in the video sequence and the second identifier indicates that CCLM is allowed to be performed on the chroma blocks in the video sequence; An apparatus comprising:
