Method and device for optimizing segmentation structure for video encoding and decoding

By combining ternary tree segmentation and other segmentation methods in the video coding system, and adjusting the inter-frame prediction tool and coding tree structure according to conditions, the problem of MTT block segmentation increasing computational complexity is solved, and efficient video coding is achieved.

CN111819857BActive Publication Date: 2024-08-23MEDIATEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980015725.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-04-30
Filing Date
2019-03-13
Publication Date
2024-08-23
Estimated Expiration
2039-03-13

AI Technical Summary

Technical Problem

In video coding, although multi-type tree (MTT) block segmentation improves flexibility and coding efficiency, it increases computational complexity. How to reduce the complexity when using MTT becomes a challenge.

Method used

By introducing a combination of ternary tree segmentation and other types of segmentation in the video coding system, deciding whether to use ternary tree segmentation based on conditions such as tree depth and block size, and adjusting the inter prediction tool set and coding tree structure when specific test conditions are met to reduce complexity.

Benefits of technology

It effectively reduces the computational complexity of video coding while maintaining coding efficiency and improving the performance of the video coding system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111819857B_ABST
    Figure CN111819857B_ABST
Patent Text Reader

Abstract

In one method, a current block is partitioned into a plurality of final sub-blocks using one or more stages of sub-tree partitioning including a ternary tree partitioning and at least one other type of partitioning, wherein the ternary tree partitioning is excluded from the sub-tree partitioning if a current tree depth associated with the current sub-block is greater than a first threshold, and the first threshold is an integer greater than or equal to 1. In another method, if a test condition is satisfied, the current block is encoded or decoded using a current inter prediction mode selected from a modified inter prediction toolset, wherein the modified inter prediction toolset is derived from the initial inter prediction toolset by removing one or more first inter prediction tools from the initial inter prediction toolset, replacing one or more second inter prediction tools with one or more reduced complexity inter prediction tools, or a combination of both.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This application claims the priority of the U.S. Provisional Patent Application (Application No. 62 / 642661) filed on March 14, 2018, the U.S. Provisional Patent Application (Application No. 62 / 647910) filed on March 26, 2018, the U.S. Provisional Patent Application (Application No. 62 / 647914) filed on March 26, 2018, the U.S. Provisional Patent Application (Application No. 62 / 647917) filed on March 26, 2018, and the U.S. Provisional Patent Application (Application No. 62 / 664382) filed on March 30, 2018. The entire contents of the above-mentioned U.S. Provisional Patent Applications are also incorporated herein by reference. Technical Field

[0003] The present invention relates to video codecs using flexible block partitioning types and / or inter prediction modes, and more particularly to a method and apparatus for reducing complexity by limiting coding tree partitioning when a certain test condition is met. In another aspect, if a certain test condition is met, the complexity of an inter-prediction tool (or simply an inter-prediction tool) is reduced. Background Art

[0004] The High Efficiency Video Coding (HEVC) standard was developed under the Joint Video Project of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) standardization organizations, and High Efficiency Video Coding has a cooperative relationship with the Joint Collaborative Team on Video Coding (JCT-VC). In HEVC, a slice is divided into multiple coding tree units (CTUs). In the main profile, the minimum and maximum sizes of CTUs are specified by syntax elements in the sequence parameter set (SPS). The allowed CTU sizes can be 8x8, 16x16, 32x32, or 64x64. For each slice, the CTUs of the slices within the frame are processed according to the raster scan order.

[0005] The CTU is further partitioned into multiple coding units (CUs) to accommodate various local characteristics. A quadtree, represented as a coding tree, is used to partition a CTU into multiple CUs. Let the CTU size be MxM, where M is one of the values ​​64, 32, or 16. A CTU can be a single CU (i.e., no partitioning) or can be divided into four smaller units of equal size (i.e., each of size M / 2xM / 2), corresponding to the nodes of the coding tree. If the unit is a leaf node of the coding tree, the unit becomes a CU. Otherwise, the quadtree partitioning process can be iterated until the size of the node reaches the minimum allowed CU size specified in the Sequence Parameter Set (SPS). This representation results in Figure 1 The coding tree (also called partition tree structure) 120 in the embodiment specifies the recursive structure. Figure 1 A CTU partition 110 is shown in FIG, where solid lines indicate CU boundaries. The decision to encode an image region using inter (temporal) or intra (spatial) prediction is made at the CU level. Since the minimum CU size can be 8x8, the minimum granularity size for switching between different basic prediction types is 8x8.

[0006] In addition, according to HEVC, each CU can be split into one or more prediction units (PUs). Coupled with the CU, the PU is used as a basic representative block for sharing prediction information. Inside each PU, the same prediction process is applied, and relevant information is sent to the decoder based on the PU. Depending on the PU split type, the CU can be divided into one, two, or four PUs. HEVC defines eight shapes for dividing a CU into PUs, such as Figure 2 As shown, 2Nx2N, 2NxN, Nx2N, NxN, 2NxnU, 2NxnD, nLx2N, and nRx2N partition types are included. Unlike CU, PU can be partitioned only once according to HEVC. The partition shown in the second row corresponds to an asymmetric partition, in which the two partitions have different sizes.

[0007] After obtaining the residual block through the prediction process based on the PU partition type, the prediction residual of the CU can be divided into transform units (TUs) according to another quadtree structure, which is similar to Figure 1 The coding tree of the CU shown in Figure 1. The solid line represents the CU boundary and the dotted line represents the TU boundary. A TU is a basic representative block with residual or transform coefficients for applying integer transform and quantization. For each TU, an integer transform with the same size as the TU is applied to obtain the residual coefficients. After quantization on a TU basis, these coefficients are sent to the decoder.

[0008] The terms coding tree block (CTB), coding block (CB), prediction block (PB), and transform block (TB) are defined to specify a 2-D sample array of one color component associated with a CTU, CU, PU, ​​and TU, respectively. Thus, a CTU consists of one luma CTB, two chroma CTBs, and related syntax elements. Similar relationships apply to CUs, PUs, and TUs. Tree partitioning usually applies to both luma and chroma, but there are exceptions when certain minimum sizes for chroma are reached.

[0009] Alternatively, in the binary tree partitioning structure proposed in JCTVC-P1005 (D. Flynn et al., "HEVC Range Extensions Draft 6", ITU-TSG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Joint Collaboration Team on Video Coding (JCT-VC), 16th Meeting: San Jose, US, 2014.1.9-17, Document: JCTVC-P1005), as Figure 3 As shown in , various binary split types can be used to recursively split a block into two smaller blocks. Figure 3 As shown in the first two partitions, the most efficient and simplest are symmetric horizontal partitioning and symmetric vertical partitioning. For a given block of size M×N, a flag is sent to indicate whether the given block is divided into two smaller blocks. If yes, another syntax element is sent to indicate which partitioning type is used. If horizontal partitioning is used, the given block is divided into two blocks of size M×N / 2. If vertical partitioning is used, the given block is divided into two blocks of size M / 2×N. The binary tree partitioning process can be iterated until the size (width or height) of the partitioned block reaches the minimum allowed block size (width or height). The minimum allowed block size can be defined in a high-level syntax such as SPS. Since the binary tree has two partitioning types (i.e., horizontal and vertical), the minimum allowed block width and height should be indicated. When the partition will result in a block height less than the indicated minimum value, a non-horizontal partition is implicitly implied. When the partition will result in a block width less than the indicated minimum value, a non-vertical partition is implicitly implied. Figure 4 An example of a block partition 410 and its corresponding binary tree 420 is shown. In each partition node (ie, non-leaf node) of the binary tree, a flag is used to indicate which partition type (horizontal or vertical) is used, where 0 indicates horizontal partition and 1 indicates vertical partition.

[0010] The binary tree structure can be used to partition an image area into multiple smaller blocks, such as partitioning a slice into CTUs, partitioning a CTU into CUs, partitioning a CU into PUs, or partitioning a CU into TUs, and so on. A binary tree can be used to partition a CTU into CUs, where the root node of the binary tree is the CTU and the leaf nodes of the binary tree are the CUs. The leaf nodes can be further processed by prediction and transform codecs. For simplicity, there is no further partitioning from CU to PU or from CU to TU, which means that CU equals PU and PU equals TU. So, in other words, the leaf nodes of the binary tree are the basic units for prediction and transform codecs.

[0011] The binary tree structure is more flexible than the quadtree structure because more partition shapes can be supported, which is also the source of improved codec efficiency. However, the codec complexity will also increase in order to select the best partition shape. In order to balance the complexity and codec efficiency, a method of combining quadtree and binary tree structures, also known as a quadtree plus binary tree (QTBT) structure, has been disclosed. According to the QTBT structure, the block is first partitioned through the quadtree structure, and the quadtree partitioning can be iterated until the size of the partition block reaches the minimum allowed quadtree leaf node size. If the leaf quadtree block is not larger than the maximum allowed binary tree root node size, it can be further partitioned through the binary tree structure, and the binary tree partitioning can be iterated until the size (width or height) of the partition block reaches the minimum allowed binary tree leaf node size (width or height) or the binary tree depth reaches the maximum allowed binary tree depth. In the QTBT structure, the minimum allowed quadtree leaf node size, the maximum allowed binary tree root node size, the minimum allowed binary tree leaf node width and height, and the maximum allowed binary tree depth can be indicated in a high-level syntax, such as in SPS. Figure 5 An example of a block partition 510 and its corresponding QTBT 520 is shown. Solid lines represent quadtree partitions and dashed lines represent binary tree partitions. In each partition node (i.e., non-leaf node) of the binary tree, a flag indicates which partition type (horizontal or vertical) is used, 0 may indicate horizontal partitioning and 1 may indicate vertical partitioning.

[0012] The above-mentioned QTBT structure can be used to partition an image area (e.g., a slice, CTU, or CU) into multiple smaller blocks, such as partitioning a slice into CTUs, partitioning a CTU into CUs, partitioning a CU into PUs, or partitioning a CU into multiple smaller TUs, etc. For example, QTBT can be used to partition a CTU into a CU, where the root node of the QTBT is the CTU, which is partitioned into multiple CUs through the QTBT structure, and the CU is further processed through prediction and transform coding. For simplicity, there is no further partitioning from CU to PU or from CU to TU. This means that CU is equal to PU and PU is equal to TU. Therefore, in other words, the leaf nodes of the QTBT structure are the basic units for prediction and transformation.

[0013] For I slices, the QTBT tree structure is usually applied to separate luminance / chrominance encoding. For example, the QTBT tree structure is applied to the luminance and chrominance components of slice I (I-slice) respectively, and is applied to the luminance and chrominance of P- and B-slices at the same time (unless some minimum size of chrominance is reached). In other words, in slice I, the luminance CTB has a block partition of its QTBT structure, and the two chrominance CTBs have a block partition of another QTBT structure. In another example, the two chrominance CTBs can also have their own QTBT structure block partition.

[0014] For block-based codecs, it is always necessary to partition an image into blocks (e.g., CUs, PUs, and TUs) for coding and decoding purposes. As is known in the art, before applying block partitioning, the image can be partitioned into smaller image regions, such as slices, tiles, CTU rows, or CTUs. The process of partitioning an image into blocks for coding and decoding purposes is called partitioning the image using a coding unit (CU) structure. The specific partitioning method used to generate CUs, PUs, and TUs adopted by HEVC is an example of adopting a coding unit (CU) structure. The QTBT tree structure is another example of a coding unit (CU) structure.

[0015] To further support more segmentation shapes for more flexible segmentation, the ternary tree segmentation method is designed to capture objects located at the center of the block, while the quadtree and binary tree segmentation methods always segment along the block center. Figure 6 A vertical ternary tree segmentation (610) and a horizontal ternary tree segmentation (620) are shown. By allowing vertical or horizontal quarter segmentation, the ternary tree segmentation method can provide the ability to locate small objects along block boundaries more quickly.

[0016] Multi-Type-Tree (MTT) block partitioning extends the concept of two-level tree structure in QTBT by allowing binary and ternary tree (or also called ternary tree) partitioning methods in the second level of MTT. The two levels of trees in MTT are called region tree (RT) and prediction tree (PT), respectively. The first level RT is always quad-tree (QT) partitioning, and the second level PT can be binary tree (BT) partitioning or tripletree (TT) partitioning. For example, a CTU is first partitioned by RT, which is a QT partitioning, and each RT leaf node can be further partitioned by PT, which is a BT or TT partitioning. Blocks partitioned by PT can be further partitioned by PT until the maximum PT depth is reached. For example, a block can be first partitioned by vertical BT partitioning to generate left and right subblocks, and the left subblock is further partitioned by horizontal TT partitioning, while the right subblock is further partitioned by horizontal BT partitioning. PT leaf nodes are basic coding units for prediction and transform, and will not be further partitioned.

[0017] Figure 7 An example of tree signaling in MTT is shown. Figure 7 As shown, at node 710, it is checked whether RT segmentation is used to segment the block. A "1" is signaled to indicate that RT segmentation is applied to the current block, as shown in node 720. A "0" is signaled to indicate that RT segmentation is not applied to the current block. In this case, as shown in node 730, it is checked whether BT segmentation or TT segmentation is applied to the current block. If neither BT segmentation nor TT segmentation is applied to the current block (i.e., the "0" branch), the segmentation process reaches a leaf node (e.g., no segmentation), as shown in node 740. If BT segmentation or TT segmentation is applied to the block (i.e., the "1" branch), as shown in node 750, the system will further signal to indicate whether it is a horizontal segmentation or a vertical segmentation. As shown in node 760, a "0" is signaled to indicate that the BT / TT segmentation is horizontal. As shown in node 770, a "1" is signaled to indicate that the BT / TT segmentation is vertical. In this case, an additional bit is sent to indicate whether it is a BT segmentation indicated by node 780 (i.e., the "0" branch) or a TT segmentation indicated by node 790 (i.e., the "1" branch). Similar signaling also applies to the case of horizontal BT / TT split at node 760.

[0018] After constructing the MTT block partition, the MTT leaf node is a CU, which is used for prediction and transform without any further partitioning. In MTT, the proposed tree structure is coded separately for luma and chroma in slice I, and is applied to luma and chroma in slice P and slice B simultaneously (except when certain minimum sizes of chroma are reached). That is, in slice I, the luma CTB has a block partition of a QTBT structure, and the two chroma CTBs have a block partition of another QTBT structure.

[0019] Although MTT can improve performance by adaptively partitioning blocks for prediction and transformation, it is desirable to further improve performance where possible in order to increase overall efficiency.

[0020] Merge Mode

[0021] To improve the coding efficiency of motion vector (MV) coding in HEVC, HEVC has skip and merge modes. Skip mode and merge mode obtain motion information from spatially neighboring blocks (spatial candidates) or temporally co-located blocks (temporal candidates). When the PU is in skip mode and merge mode, motion information is not encoded. Instead, only the index of the selected candidate is encoded. For skip mode, the residual signal is forced to zero and is not encoded. In HEVC, if a particular block is encoded in skip mode or merge mode, a candidate index is sent to indicate which candidate in the candidate set is used for merging. Each merged PU reuses the MV, prediction direction, and reference image index of the selected candidate.

[0022] For the merge mode in HEVC reference software HM-4.0, such as Figure 8 As shown, up to four spatial MV candidates are derived from A0, A1, B0 and B1, and from T BR or T CTR Derive a temporal MV candidate (first use T BR , if T BR If not available, use T CTR instead). Note that if any of the four spatial MV candidates is not available, position B2 is then used to derive an MV candidate as a substitute. After the derivation process of four spatial MV candidates and one temporal MV candidate, redundancy removal (pruning) is applied to remove redundant MV candidates. If the number of available MV candidates is less than 5 after redundancy removal (pruning), three types of additional candidates are derived and added to the candidate set (i.e., candidate list). The encoder selects one final candidate in the candidate set for skip or merge mode based on the rate-distortion optimization (RDO) strategy and sends the index to the decoder.

[0023] Hereinafter, for convenience, both the skip mode and the merge mode may be referred to as the “merge mode.” In other words, the “merge mode” in the present disclosure hereinafter may represent both the skip mode and the merge mode.

[0024] Merge mode and AMVP mode

[0025] In order to achieve the best codec efficiency of the hybrid codec architecture in HEVC, there are two prediction modes (i.e., intra prediction and inter prediction) for each PU inter frame. For the intra prediction mode, spatially adjacent reconstructed pixels can be used to generate directional predictions. HEVC has a maximum of 35 directions. For the inter prediction mode, the temporal reconstructed reference frame can be used to generate motion compensated predictions. There are three different modes, including skip mode, merge mode, and inter advanced motion vector prediction (AMVP) mode.

[0026] When encoding a PU in inter-frame AMVP mode, motion compensated prediction is performed using a transmitted motion vector difference (MVD) that can be used with motion vector prediction (MVP) for deriving a motion vector (MV). In order to determine the MVP in the inter-frame AMVP mode, an advanced motion vector prediction (AMVP) scheme is used to select a motion vector prediction from an AMVP candidate set including two spatial MVPs and one temporal MVP. Therefore, in the AMVP mode, the MVP index and the corresponding MVD of the MVP need to be encoded and transmitted. In addition, the inter-prediction direction used to specify the prediction direction in bidirectional prediction, as well as the unidirectional prediction of list 0 (ie, L0) and list 1 (ie, L1), and the reference frame index of each list should also be encoded and transmitted.

[0027] When a PU is encoded in skip or merge mode, no motion information is sent except the merge index of the selected candidate, because skip mode and merge mode utilize motion inference methods. Since the motion vector difference (MVD) of skip mode and merge mode is zero, the MV of the block encoded in skip mode or merge mode is the same as the motion vector prediction (MVP) (i.e., MV = MVP + MVD = MVP). Therefore, the block encoded in skip mode or merge mode obtains motion information from the spatial neighboring blocks (spatial candidates) or temporal blocks (temporal candidates) in the co-located image. The co-located image is the first reference image in list 0 or list 1, which is sent in the slice header. In the case of skip PU, the residual signal is also omitted. In order to determine the merge index for skip mode and merge mode, a merge scheme is used to select a motion vector prediction from a merge candidate set containing four spatial MVPs and one temporal MVP.

[0028] Figure 8Neighboring PUs for deriving spatial and temporal MVPs for AMVP and merge schemes are shown. In AMVP, the left MVP is the first available MVP from A0, A1, the top MVP is the first available MVP from B0, B1, B2, and the temporal MVP is the first available MVP from T BR or T CTR The first available MVP (first use T BR , if T BR If not available, use T CTR Instead). If the left MVP is not available and the top MVP is not scaled MVP, if there are scaled MVPs in B0, B1, and B2, a second top MVP can be derived. In HEVC, the list size of MVP for AMVP is 2. Therefore, after the derivation process of two spatial MVPs and one temporal MVP, only the first two MVPs can be included in the MVP list. If the number of available MVPs is less than 2 after removing redundancy, a zero vector candidate is added to the candidate list.

[0029] For skip mode and merge mode, such as Figure 8 As shown, up to four spatial merge indices are derived from A0, A1, B0, and B1, and from T BR or T CTR Export a time merge index (first use T BR , if T BR If not available, use T CTR Instead). Note that if any of the four spatial merge indexes is not available, position B2 is used to derive the merge index as a substitute. After the derivation process of the four spatial merge indexes and one temporal merge index, redundancy removal is applied to remove the redundant merge indexes. If the number of available merge indexes is less than 5 after redundancy removal, three types of additional candidates are derived and added to the candidate list.

[0030] Additional bi-predictive merge candidates are created by using the original merge candidates. The additional candidates are divided into three candidate types:

[0031] 1. Combined bidirectional prediction merge candidates (candidate type 1)

[0032] 2. Proportional Bidirectional Prediction Merge Candidates (Candidate Type 2)

[0033] 3. Zero vector merge / AMVP candidate (candidate type 3)

[0034] In candidate type 1, a combined bi-predictive merge candidate is created by combining the original merge candidates. Specifically, two candidates in the original candidates have either mvL0 (motion vector in list 0) and refIdxL0 (reference image index in list 0) or mvL1 (motion vector in list 1) and refIdxL1 (reference image index in list 1) to create the bi-predictive merge candidate. Fig. 9 An example of the derivation process of the combined bi-predictive merge candidate 920 is shown. The candidate group 910 corresponds to the original candidate list, which includes mvL0_A, ref0 (931) in L0 and mvL1_B, ref (932) in L1. The bi-predictive MVP 933 can be formed by combining the candidates in L0 and L1.

[0035] In candidate type 2, a scaled bidirectional prediction merge candidate is created by scaling the original merge candidate. Specifically, the original candidate has mvLX (motion vector in list X) and refIdxLX (reference image index in list X), X can be 0 or 1. One of the original candidates is used to create the bidirectional prediction merge candidate. For example, one candidate A is list 0 unidirectional prediction with mvL0_A and ref0, ref0 is first copied to reference index ref0' in list 1. Afterwards, mvL0'_A is calculated by scaling mvL0_A with ref0 and ref0'. Then, a bidirectional prediction merge candidate with mvL0_A and ref0 in list 0 and mvL0'_A and ref0' in list 1 is created and added to the merge candidate list. Fig.10 An example of a derivation process of scaled bi-predictive merge candidates is shown in , where candidate list 1010 corresponds to an original candidate list, and candidate list 1020 corresponds to an extended candidate list including two generated bi-predictive MVPs.

[0036] In candidate type 3, a zero vector merge / AMVP candidate is created by combining a zero vector that can be referenced and a reference index. Fig.11A An example for adding zero-vector merge candidates is shown, where candidate list 1110 corresponds to an original merge candidate list, and candidate list 1120 corresponds to an extended merge candidate list by adding zero-vector candidates. Fig. 11B An example for adding a zero-vector AMVP candidate is shown, where candidate list 1130 (L0) and candidate list 1132 (L1) correspond to the original AMVP candidate list, and candidate lists 1140 (L0) and 1142 (L1) correspond to the extended AMVP candidates by adding the zero-vector candidate. If the zero-vector candidate is not repeated, it is added to the merge / AMVP candidate list.

[0037] PMVD mode or FRUC mode

[0038] The Pattern-based Motion Vector Derivation (PMVD) mode (also known as Pattern Matched Motion Vector Derivation (PMMVD) or Frame-Rate Up-Conversion (FRUC) mode) is a coding tool disclosed in the JVET Test Model 3 (Joint) (Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: 3rd Meeting: Geneva, CH, 26 May – 1 June 2016, Document Title: Algorithm Description of Joint Exploration Test Model 3), which can use an L-shaped template or a double-sided template to refine the MV of the merge mode and save the bits of the MVD. Summary of the invention

[0039] According to an embodiment of the present invention, a method and apparatus for video encoding in a video encoding system or a video decoding system are proposed. According to the method, a current block is partitioned into a plurality of final sub-blocks using one or more stages of sub-tree partitioning including ternary tree partitioning and at least one other type of partitioning, wherein if a current tree depth associated with the current sub-block is greater than a first threshold, and the first threshold is an integer greater than or equal to 1, the ternary tree partitioning is excluded from the sub-tree partitioning.

[0040] At least one other type of partitioning includes quadtree partitioning, binary tree partitioning, or a combination thereof. The current block may correspond to a coding tree unit (CTB), and each of the plurality of final sub-blocks may correspond to a coding unit (CU), a prediction unit (PU), or a transform unit (TU). The first threshold may be predetermined or inferred at a decoder side.

[0041] If the current subtree depth associated with the current subblock is greater than a first threshold, an indicator for indicating whether the ternary tree partition is selected for the current subblock is selected.

[0042] The first threshold corresponds to a maximum allowed subtree split depth minus a second threshold, wherein the second threshold is less than the maximum allowed subtree split depth and greater than or equal to 0. The value of the second threshold depends on whether the current picture is in an intra picture or an inter picture. The second threshold is sent in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a coding unit, or a combination thereof.

[0043] According to an embodiment of the present invention, a method and apparatus for video encoding using an inter-frame prediction mode are provided. If the test condition is satisfied, the current block is encoded or the current block is decoded at a decoder side using a current inter-frame prediction mode selected from a modified inter-frame prediction tool set, wherein the modified inter-frame prediction tool set is derived from the initial inter-frame prediction tool set by removing one or more first inter-frame prediction tools from the initial inter-frame prediction tool set, replacing one or more second inter-frame prediction tools with one or more reduced complexity inter-frame prediction tools, or a combination thereof.

[0044] The one or more first inter prediction tools are selected from a group consisting of Advanced Motion Vector Prediction (AMVP), merging, pattern matching motion vector derivation (PMVD), local illumination compensation (LIC), affine coding, neighbor derived prediction offset (NPO), overlap block motion compensation (OBMC), or a combination thereof.

[0045] Whether the test condition is satisfied depends on the coding tree depth associated with the current block. Whether the test condition is satisfied depends on the block size of the current block. Whether the test condition is satisfied may also depend on the coding tree depth associated with the current block and the block size of the current block.

[0046] In one embodiment, the test condition is satisfied if the coding tree depth associated with the current block is equal to a predefined value and the block size of the current block is greater than or equal to a threshold.

[0047] In one embodiment, when the target first inter prediction tool is removed from the initial inter prediction tool set, syntax elements associated with the target first inter prediction tool are not sent at the encoder side or parsed at the decoder side for the current block. In another embodiment, when the one or more first inter prediction tools are removed from the initial inter prediction tool set, the current block uses a candidate list having a reduced number of candidates in the candidate list by excluding the one or more first inter prediction tools from the candidate list.

[0048] According to an embodiment of the present invention, a method and apparatus for video encoding using an inter-frame prediction mode are provided. When a test condition is met, a current block is segmented into a plurality of final sub-blocks using a restricted coding tree structure including one or more multi-type segmentations, wherein the restricted coding tree structure terminates the coding tree segmentation of a target sub-block having a coding tree segmentation depth equal to a threshold.

[0049] Whether the test condition is satisfied depends on the block size of the current block. Whether the test condition is satisfied depends on the temporal layer of the current slice, wherein the current slice includes the current block.

[0050] A temporal layer refers to a layer associated with the temporal structure of an image (e.g., image I, image B, and image P). Whether the test condition is satisfied may depend on the best prediction mode of the current block. Whether the test condition is satisfied may depend on the ratio of the width and height of the current block. Whether the test condition is satisfied may depend on a partition decision of a previous sub-block of the target sub-block at a second coding tree partition depth less than a threshold. Whether the test condition is satisfied may also depend on a quantization parameter of a current slice, where the current slice includes the current block.

[0051] If the coding tree partition depth is equal to the threshold, the syntax element used to indicate the partition decision of the target subblock. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 An example of block partitioning of a coding tree unit (CTU) into coding units (CU) using a quadtree structure is shown.

[0053] Figure 2 Asymmetric motion partition (AMP) according to high efficiency video coding (HEVC) is shown, where AMP defines eight shapes for partitioning a CU into PUs.

[0054] Figure 3 Examples of various binary partitioning types used by a binary tree partitioning structure are shown, where a partitioning type may be used to recursively partition a block into two smaller blocks.

[0055] Figure 4 An example of a block partition and its corresponding binary tree is shown, where in each partition node (ie, non-leaf node) of the binary tree, a syntax is used to indicate which partition type (horizontal or vertical) is used, where 0 indicates horizontal partition and 1 indicates vertical partition.

[0056] Figure 5 An example of block partitioning and its corresponding quad-tree plus binarytree structure (QTBT) is shown, where the solid line indicates the quadtree partitioning and the dashed line indicates the binarytree partitioning.

[0057] Figure 6 A vertical ternary tree partition and a horizontal ternary tree partition are shown.

[0058] Figure 7 An example of tree signaling in multi-type tree (MTT) block partitioning is shown.

[0059] Figure 8 Neighboring PUs for deriving spatial and temporal MVPs for AMVP and merging schemes are shown.

[0060] Fig. 9 An example of the derivation process of combined bi-predictive merging candidates is shown.

[0061] Fig.10 An example of a derivation process of scaled bi-predictive merge candidates is shown, where the candidate list on the left corresponds to the original candidate list and the candidate list on the right corresponds to an extended candidate list including two generated bi-predictive MVPs.

[0062] Fig.11A An example of adding zero vector merge candidates is shown, where the candidate list on the left corresponds to the original merge candidate list, and the candidate list on the right corresponds to the expanded merge candidate list obtained by adding zero vector candidates.

[0063] Fig. 11B An example for adding zero-vector AMVP candidates is shown, where the top candidate list corresponds to the original AMVP candidate list (L0 on the left and L1 on the right), and the bottom candidate list corresponds to the extended AMVP candidate list (L0 on the left and L1 on the right) obtained by adding zero-vector candidates.

[0064] Fig.12 An example of a hierarchical segmentation decision tree for MTT is shown, where the maximum PT depth is equal to 3.

[0065] Fig.13 An example of a hierarchical segmentation decision tree for MTT is shown, which has Fig.12The proposed forbidden segmentation of the hierarchical segmentation decision tree of the MTT is shown in FIG.

[0066] Fig.14 An example of a hierarchical segmentation decision tree for MTT is shown, which has Fig.12 The proposed forbidden segmentation of the hierarchical segmentation decision tree of the MTT is shown in FIG.

[0067] Fig.15 Shown based on Fig.12 An example of a hierarchical segmentation decision tree of the MTT with prohibited segmentations is shown in FIG.

[0068] Fig.16A An example of prohibited partitioning is shown, where a solid line indicates a vertical BT partition at a previous partitioning layer (eg, level i) and a dashed line indicates a vertical BT partition of the first sub-block at a current partitioning layer (eg, level i+1).

[0069] Fig. 16B An example of prohibited partitioning is shown, where a solid line indicates a horizontal BT partition at a previous partitioning layer (eg, level i), and a dashed line indicates a horizontal BT partition of the first sub-block at a current partitioning layer (eg, level i+1).

[0070] Fig.17 An example of adaptive block partitioning according to an embodiment of the present invention is shown, where the current CU is marked by a slash-filled area and eight 4×4 neighboring sub-CUs are marked by dot-filled areas.

[0071] 18A to 18E An example of a segmentation cost evaluation associated with a current segmentation type based on an accumulated cost of costs of previously encoded blocks and a cost of a currently encoded sub-block is shown, wherein Fig.18A shows a CTU that is still in the encoding process. FIG. 18B to FIG. 18E The cumulative cost calculations at depths 3, 2, 1, and 0 are shown respectively.

[0072] Fig.19 An example of calculating the weighted average area of ​​the current sub-CU according to an embodiment of the present invention is shown, where the size of each sub-CU is 4×4.

[0073] Fig. 20 A flow chart of an exemplary encoding system with constraints on coding tree partitioning according to an embodiment of the present invention is shown.

[0074] Fig.21 A flow chart of an exemplary encoding system with reduced complexity inter-prediction mode according to an embodiment of the present invention is shown.

[0075] Fig. 22A flowchart of another exemplary encoding and decoding system with coding tree partitioning constraints according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0076] The following description is the best solution for implementing the present invention. This description is made to illustrate the general principles of the present invention and should not be considered as limiting. The scope of the present invention is preferably determined by reference to the attached claims.

[0077] In video coding based on a multi-type tree (MTT) block partitioning structure, coding efficiency has shown significant improvements as more flexible partitioning becomes available. However, MTT block partitioning increases computational complexity. It is desirable to develop methods for reducing computational complexity when using MTT. Therefore, various methods for reducing computational complexity associated with MTT are disclosed.

[0078] Multi-Type Tree (MTT) Block Split Constraints

[0079] In order to reduce the signaling overhead and improve the performance of the multi-type tree (MTT) partitioning method, a constrained block partitioning method is proposed to avoid redundancy or reduce complexity. Depending on the partition type or partition direction of the previous partition, the proposed constrained block partitioning method involves partitioning the current sub-block by prohibiting specific partition types and partition directions, thereby modifying the encoding or decoding process.

[0080] MTT Block Split Constraints - Method 1

[0081] In one embodiment, if the current partition is a ternary tree (TT) partition, only a binary tree (BT) partition is allowed for partitioning a sub-block (i.e., the first sub-block, the middle sub-block, or the third sub-block) from the TT partition. Figure 6 For example, the first sub-block 610a, the middle sub-block 610b and the third sub-block 610c are respectively obtained from the vertical TT partition 610, and the first sub-block 620a. The middle sub-block 620b and the third sub-block 620c are respectively obtained from the horizontal TT partition 620. Fig.12 An example of a hierarchical segmentation decision tree for MTT is shown, where the maximum prediction tree (PT) depth is equal to 3. Fig.13 An example of a hierarchical segmentation decision tree for MTT is shown, where the proposed prohibited segmentation is based on Fig.12 The MTT hierarchical segmentation decision tree shown in Figure 1 is made. Fig.13As shown, when the current partition is TT 1310, only BT 1312 is allowed (ie, TT is prohibited or excluded from use for 1312). When the current partition is TT 1320, only BT 1322 is allowed (ie, TT is prohibited or excluded from use for 1322).

[0082] In another embodiment, if the current partition is a TT partition, and only BT partition is allowed for partitioning the first sub-block, the middle sub-block or the third sub-block is generated by the TT partition, the partition type (BT or TT partition) of the first sub-block, the middle sub-block or the third sub-block generated by the TT partition may not be sent and may be inferred to be a BT partition.

[0083] MTT Block Split Constraints - Method 2

[0084] In one embodiment, if the current partition is partitioned by TT partitioning, only BT partitioning is allowed for partitioning all sub-blocks within the first sub-block, the middle sub-block, or the third sub-block from the TT partitioning. Fig.14 The hierarchical segmentation decision tree of MTT is shown, where Fig.12 The hierarchical segmentation decision tree of MTT shown in Figure 1 proposes prohibited segmentation. Fig.14 As shown, when the current partition is TT 1410, only BT 1412 is allowed (i.e., TT is prohibited or excluded for 1412). For BT 1412, only BT 1414 is allowed (i.e., TT is prohibited or excluded for 1414), because BT 1412 is a sub-block of TT 1410, and BT 1414 is a sub-block of BT 1412. In other words, only BT partition is allowed to partition all sub-blocks 1412 and 1414 within the sub-block 1412 generated by TT partition 1410. When the current partition is TT 1420, only BT 1422 is allowed (i.e., TT is prohibited or excluded for 1422).

[0085] In another embodiment, if the current partition is a TT partition, and only BT partition is allowed for partitioning all sub-blocks within the first sub-block, the middle sub-block, or the third sub-block resulting from the TT partition, the partition type (BT or TT partition) of the first sub-block, the middle sub-block, or the third sub-block resulting from the TT partition may not be sent and may be inferred to be a BT partition.

[0086] MTT Block Split Constraints - Method 3

[0087] In one embodiment, if the current partition is a TT partition, only a single-layer BT partition is allowed to be used to partition the first sub-block, the middle sub-block, or the third sub-block generated by the TT partition. Fig.15 An example of a hierarchical segmentation decision tree for MTT is shown, where the proposed prohibited segmentation is based on Fig.12The MTT hierarchical segmentation decision tree shown in Figure 1 is made. Fig.15 As shown, when the current partition is TT 1510, only BT 1512 is allowed (ie, only single-layer partition 1512, where the partition only allows BT partition but not TT partition). When the current partition is TT 1520, only BT 1522 is allowed.

[0088] In another embodiment, if the current partition is a TT partition and only a single-layer BT partition is allowed for partitioning the first sub-block generated by the TT partition, then the middle sub-block or the third sub-block, the partition type (BT or TT partition) of the first sub-block, the middle sub-block or the third sub-block generated by the TT partition may not be sent and may be inferred to be a BT partition. In addition, the partition decision (partition or non-partition) of the first sub-block or the second block generated by the BT partition may not be sent and may be inferred to be a non-partition case.

[0089] MTT Block Split Constraints - Method 4

[0090] The prohibited partitioning type and partitioning direction for partitioning the current sub-block depend not only on the partitioning type and partitioning direction of the previous partitioning layer, but also on the partitioning type, partitioning direction and position of the current sub-block.

[0091] In one embodiment, if a first sub-block obtained by BT partitioning from a parent block is further partitioned by a first partition type related to a parent partition type and a first partition direction identical to the parent partition direction, a second sub-block partition type and a second sub-block partition direction for partitioning the second sub-block are determined by prohibiting the second sub-block from being partitioned by the first partition type and the first partition direction of the first sub-block.

[0092] Fig.16A An example of prohibiting segmentation is shown. Fig.16A The solid lines in represent the vertical BT partitioning at the previous partitioning layer (e.g., layer i), and the dashed lines represent the vertical BT partitioning of the first sub-block and the vertical BT partitioning of the second sub-block at the current partitioning layer (e.g., layer i + 1), where the vertical BT partitioning is prohibited for partitioning the second sub-block. BT partitioning is prohibited to further partition the second sub-block obtained by BT partitioning in the mother block, because the resulting sub-block will be exactly the same as the result of applying vertical TT partitioning at the previous partitioning layer and then applying vertical BT partitioning to the intermediate sub-block obtained from TT partitioning at the current partitioning layer. Similarly, as Fig. 16B As shown, horizontal BT partitioning is disabled to further partition the second sub-block through horizontal BT partitioning. Fig. 16B The solid lines in FIG. 5 represent horizontal BT partitioning at a previous partitioning layer (e.g., layer i), and the dotted lines represent horizontal BT partitioning of the first sub-block and horizontal BT partitioning of the second sub-block at a current partitioning layer (e.g., layer i + 1), where horizontal BT partitioning is prohibited for partitioning the second sub-block.

[0093] In one embodiment, in the case where the syntax of the current partition direction is sent before the syntax of the current partition type is sent, if the second sub-block partition direction is horizontal partition, the second sub-block partition type may not be sent, and the second sub-block partition type may be inferred to be TT partition. The parent block is partitioned through horizontal BT partition, and the first sub-block is further partitioned through horizontal BT partition. Similarly, if the current partition direction is vertical partition, the second sub-block partition type is not sent, and the second sub-block partition type may be inferred to be TT partition. The parent block is partitioned through vertical BT partition, and the first sub-block is further partitioned through vertical BT partition.

[0094] In another embodiment, in the case where the syntax of the current partition type is sent before the syntax of the current partition direction is sent, if the second sub-block partition direction is BT partition, the second sub-block partition type may not be sent, and the second sub-block partition type may be inferred to be vertical. The mother block is partitioned by horizontal BT partition, and the first sub-block is further partitioned by horizontal BT partition. Similarly, if the second sub-block partition type is BT partition, the second sub-block partition direction may not be sent, and it may be inferred that the second sub-block partition direction is horizontal partition. The mother block is partitioned by vertical BT partition, and the first sub-block is further partitioned by vertical BT partition.

[0095] MTT Block Split Constraints - Method 5

[0096] During subtree splitting, ternary tree splitting is allowed for splitting the current block when the current subtree depth is equal to or less than the maximum allowed subtree split depth minus a threshold N. Again, the threshold N is predetermined and can be inferred at the decoder side. When the current subtree split depth is greater than the maximum allowed subtree split depth minus the threshold N, there is no indicator for selecting the ternary tree split type.

[0097] For example, if the current subtree split depth is S and the maximum allowed subtree split depth is M, then ternary tree splitting is allowed to split the current block when S≤(MN), where M>N≥0. In addition, if the current subtree split depth is greater than (MN), there is no indicator for selecting ternary tree splitting.

[0098] MTT Block Split Constraints - Method 6

[0099] During subtree partitioning, when the current subtree depth is equal to or less than the maximum allowed subtree partition depth minus a threshold value N, ternary tree partitioning is allowed to be used to partition the current block. In addition, the setting of the threshold value N can vary depending on the slice type, the color component of the current slice, or the temporal layer ID of the current slice, or any other test condition (for example, such a variation can be achieved by determining the setting of the threshold value N based on the slice type, the color component of the current slice, or the temporal layer ID of the current slice). In addition, all thresholds are predetermined and inferred at the decoder side, and when the current subtree partition depth is greater than the maximum allowed subtree partition depth minus the corresponding threshold value N, there is no indicator for selecting the ternary tree partition type.

[0100] In another example, the threshold is N1 for intra-slice and N2 for inter-slice. Then, assume that the current subtree partition depth is S and the maximum allowed subtree partition depth is M. If the current slice is an intra-slice, when S ≤ (M - N1), ternary tree partitioning is allowed to be used to partition the current block, and if S> (M-N1), the indicator for selecting ternary tree partitioning is omitted or does not exist (e.g., omitted or does not exist by not signaling or not parsing such an indicator). Similarly, if the current slice is an inter-slice, when S ≤ (M-N2), ternary tree partitioning is allowed to be used to partition the current block, and if S> (M-N1), the indicator for selecting ternary tree partitioning is omitted or does not exist (e.g., omitted or does not exist by not signaling or not parsing such an indicator).

[0101] MTT Block Split Constraints - Method 7

[0102] During subtree partitioning, ternary tree partitioning is allowed for partitioning the current block when the current subtree depth is equal to or less than the maximum allowed subtree partitioning depth minus a threshold N, and N>0. The threshold N may be signaled in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a coding unit, or any combination thereof. For example, sending 0 in an SPS indicates that N is 1, sending 1 in an SPS indicates that N is 2, and so on. Furthermore, when the current subtree partitioning depth is greater than the maximum allowed subtree partitioning depth minus the threshold N, an indicator for selecting a ternary tree partitioning type may be omitted or absent (e.g., omitted or absent by not signaling or not parsing such an indicator).

[0103] In yet another example, the current subtree split depth is S and the maximum allowed subtree split depth is M, then when S≤(MN), ternary tree splitting is allowed for splitting the current block, where M>N>0. In addition, if the current subtree split depth is greater than (MN), the indicator for selecting ternary tree splitting may be omitted or absent (e.g., omitted or absent by not signaling or not parsing such an indicator).

[0104] MTT Block Split Constraints - Method 8.

[0105] During subtree splitting, when the current subtree depth is equal to or less than the maximum allowed ternary tree splitting depth (MaxTTDepth), ternary tree splitting is allowed to be used to split the current block. MaxTTDepth can only be equal to or less than the subtree splitting depth. In addition, MaxTTDepth can be sent in a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, a coding unit, or any combination thereof. In addition, when the current subtree splitting depth is greater than MaxTTDepth, an indicator for selecting the ternary tree splitting type can be omitted or absent (e.g., omitted or absent by not signaling or not parsing such an indicator).

[0106] In yet another example, the current subtree split depth is S, the maximum allowed subtree split depth is M, and MaxTTDepth is N. Then, ternary tree splitting is allowed to be used to split the current block when S≤(MN), where M≤N. Furthermore, if the current subtree split depth is greater than M, then an indicator for selecting ternary tree splitting may be omitted or absent (e.g., omitted or absent by not signaling or parsing such an indicator).

[0107] Any of the aforementioned proposed methods may be implemented in an encoder and / or a decoder. For example, any of the proposed methods may be implemented in an inter / intra / prediction / transform module of an encoder, and / or in an inverse transform / inter / intra / prediction module of a decoder. Alternatively, any of the proposed methods may be implemented as a circuit coupled to an inverse transform / inter / intra / prediction module of an encoder and / or an inter / intra / prediction / transform module of a decoder to provide information required by the inter / intra / prediction / transform module.

[0108] Reduced complexity associated with inter prediction modes

[0109] In this disclosure, QT depth is defined as the depth of a quadtree. BT depth is defined as the partition depth of a binary tree (BT). TT depth is defined as the partition depth of a ternary tree or triple tree.

[0110] CT depth is defined as the partition depth of a binary tree (BT) or a ternary tree (TT). It is the total number of binary tree (BT) or ternary tree (TT) partitions. In other words, if the total number of BT partitions is 3, the coding tree structure is partitioned 3 times by BT. CT depth can also be the number of only binary tree (BT) partitions. CT depth can be the number of only ternary tree (TT) partitions. The larger the maximum CT depth in a video encoder, the greater the coding complexity overhead. Therefore, it is desirable to reduce computational complexity.

[0111] Method 1: Skip some inter prediction modes

[0112] Inter prediction modes include AMVP, Merge mode, FRUC mode, or other inter prediction modes or tools. There are many inter coding tools, such as AMVP, Merge, FRUC / PMVD, LIC (local illumination compensation), affine coding, Neighboring-derived Prediction Offset (NPO), Overlap Block Motion Compensation (OBMC), etc. The initial inter prediction tool set can be determined from these inter coding tools.

[0113] In the proposed method, if a certain condition (or referred to as a test condition) is met, one or more inter-frame prediction modes (or tools) or a part of certain inter-frame prediction modes on the encoder side (or the encoder side and the decoder side) can be skipped or eliminated. Here, "a part of a specific inter-frame prediction mode" means a simplified version of a certain inter-frame prediction mode on the encoder side. For example, if a certain condition is met, part of the process of the merge mode can be skipped in the encoder. In this example, instead of checking the MAX candidate (MAX is the maximum number of merge candidates) in the traditional RDO process, the simplified merge mode can have only 3 candidates (merge candidates 0, 1 and 2), instead of merge candidates 0, 1, 2, ..., (MAX-1)). In another example, if a certain condition is met, part of the process of the FRUC mode can be skipped in the encoder. In this case, instead of a conventional FRUC mode including bilateral FRUC and template matching FRUC, the simplified FRUC mode can have only bilateral FRUC. In another example, the simplified FRUC mode can have only template matching FRUC.

[0114] In the proposed method, if a certain condition (denoted as COND_REDUOFF) is met, one or more inter prediction modes (or tools) or a part of a certain inter prediction mode may be skipped or eliminated at the encoder side (or at the encoder side and the decoder side). In the following embodiments, the term "depth" may refer to CT depth or QT depth or BT depth or TT depth.

[0115] Embodiment 1: When the depth of the current CU is equal to N, the condition is satisfied, where N is a predetermined value.

[0116] Embodiment 2: When the depth of the current CU is greater than a threshold, the condition is met.

[0117] Embodiment 3: When the depth of the current CU is less than a threshold, the condition is met.

[0118] Embodiment 4: When the current CU size (CU size = CU width * CU height) is greater than the threshold, the condition is met.

[0119] Embodiment 5: When the current CU size is smaller than the threshold, the condition is met.

[0120] Embodiment 6: When the QP (quantization control signal) value of the current CU size is greater than a threshold, the condition is met.

[0121] Embodiment 7: When the QP (quantization control signal) value of the current CU size is less than a threshold, the condition is met.

[0122] Embodiment 8: When the depth of the current CU is equal to N and the current CU size is greater than a threshold, the condition is met.

[0123] Embodiment 9: When the depth of the current CU is equal to N and the current CU size is smaller than a threshold, the condition is met.

[0124] Embodiment 10: When the depth of the current CU is equal to N and the current CU QP is greater than a threshold, the condition is met.

[0125] Embodiment 11: When the depth of the current CU is equal to N and the current CU QP is less than a threshold, the condition is met.

[0126] Embodiment 12: When the depth of the current CU is equal to N and the current CU temporal layer is greater than a threshold, the condition is met.

[0127] Embodiment 13: When the depth of the current CU is equal to N and the current CU temporal layer is less than a threshold, the condition is met.

[0128] Embodiment 14: When the depth of the current CU is equal to N and the aspect ratio (width / height or height / width) of the current CU is greater than a threshold, the condition is met.

[0129] Embodiment 15: When the depth of the current CU is equal to N and the aspect ratio of the current CU is less than a threshold, the condition is met.

[0130] Embodiment 16: When the parent block mode of the current CU (ie, the mode of the parent block of the coding tree partition) is the skip mode, the condition is met.

[0131] Embodiment 17: When the parent block mode of the current CU (ie, the mode of the parent block of the coding tree partition) is a certain specific mode, the condition is met.

[0132] Embodiment 18: When the current CU aspect ratio (width / height or height / width) is greater than a threshold, the condition is met.

[0133] Embodiment 19: When the current CU aspect ratio is less than a threshold, the condition is met.

[0134] In addition to the embodiments listed above, the specific conditions for shutting down some inter-frame prediction tools can be a combination of the embodiments listed. For example, embodiment 2 and embodiment 4 can be combined, and the combined conditions are "when the depth of the current CU is greater than a threshold" and / or "when the current CU size (CU size = CU width * CU height) is greater than a threshold".

[0135] If specific conditions for turning off certain inter-frame prediction tools are met, some inter-frame prediction tools can be turned off and / or the complexity of some other inter-frame prediction tools can be reduced. For example, if the conditions of Example 14 are met, the FRUC mode can be turned off, and the merge mode can be modified to have only 2 candidates to reduce the complexity of the merge mode by reducing the number of candidates for the merge mode. In this case, the merge mode with reduced complexity is referred to as a low-complexity merge mode. For convenience, the inter-frame prediction tool with reduced complexity is referred to as a low-complexity inter-frame prediction tool. In another example, if the conditions of Example 15 are met, the FRUC mode can be simplified to include only a bilateral mode, and the merge mode can be modified to have only 2 candidates to reduce the complexity of the merge mode. In this case, FRUC is referred to as a low-complexity FURC.

[0136] In another embodiment, if a specific condition for turning off some inter prediction tools is met (COND_REDUOFF is asserted), the inter prediction tool A can be turned off according to the RD cost of the inter prediction tool B in the encoder. For example, if the AMVP RD cost is lower than a threshold, the FRUC mode can be turned off. In another example, if the RDO cost of low complexity FRUC is lower than the RDO cost of low complexity AMVP, the FRUC mode can be turned off.

[0137] In another embodiment, if specific conditions for turning off some inter-frame prediction tools are met, in addition to turning off some inter-frame prediction tools and / or reducing some other inter-frame prediction tools, related syntax elements can be eliminated (or saved) to improve coding gain. For example, for the condition of CT depth == 3 and CU size >= 4096, FRUC mode and AMVP mode are turned off. Therefore, for any CU with the condition of "CT depth == 3, and CU size >= 4096", the syntax elements of merge mode and FRUC mode can be completely eliminated. In another example, for the condition of CT depth == 3 and CU size >= 4096, the merge mode is modified to have only 2 candidates. In this case, the unary code encoding of the merge index in the traditional method can be modified to reduce the bits of the merge index.

[0138] The proposed method can be extended to turn off some intra-frame tools. If a certain condition is met, some intra-frame tools (e.g., intra-frame prediction or other intra-frame tools) can be turned off and / or some other intra-frame tools can be reduced, so that the mode flag for the CU (e.g., affine merge flag, LIC flag) is eliminated, or the mode index for the unary code (e.g., merge index) can be reduced.

[0139] Method 2: Skip some inter-frame prediction modes based on surrounding conditions or the current CU

[0140] Here, the term "surrounding" refers to the left and / or top neighboring blocks of the current CU. The method first checks the inter-frame prediction mode of the spatial surrounding. In order to check the inter-frame prediction mode of the spatial surrounding CU, according to one embodiment, it can calculate the histogram of the inter-frame prediction mode of the CU surrounding the current CU (i.e., the left and / or top neighboring). In another embodiment, it calculates the histogram of the inter-frame prediction mode of the smallest block (e.g., the smallest block 4×4, or other sizes of different systems or different embodiments) around the current CU (i.e., the left and / or top neighboring), which surrounds the current CU (i.e., the left and / or top neighboring). In yet another embodiment, it calculates the histogram of the inter-frame prediction mode of the surrounding CUs or blocks or pixels.

[0141] After counting (or forming a histogram), if a certain inter-frame prediction mode (e.g., FRUC mode) has the largest number of occurrences among all inter-frame prediction modes (such as merge mode, AMVP mode, FRUC mode or other inter-frame prediction tools), this inter-frame prediction mode can be designated as most_freq_inter_mode. Therefore, some inter-frame prediction modes can be turned off according to most_freq_inter_mode. There are some embodiments as follows.

[0142] Embodiment 1: For the current CU, the inter-frame prediction mode corresponding to most_freq_inter_mode may be turned off.

[0143] Embodiment 2: For the current CU, the inter prediction mode other than the most_freq_inter_mode mode may be disabled.

[0144] The method is not limited to embodiments 1 and 2. In other embodiments, some inter-frame prediction tools may be turned off and / or reduced according to most_freq_inter_mode.

[0145] This method can be added in the size condition where the current CU size (CU width * CU height) is greater than a predetermined threshold or less than a predetermined threshold.

[0146] Method 3: Skip some inter prediction modes based on the parent block mode condition

[0147] In the encoder, for the current sub-block (e.g., CU), the inter-frame prediction mode of its parent sub-block (e.g., CU) is checked during coding tree segmentation. If its parent sub-block (e.g., CU) is a specific inter-frame prediction mode (expressed as inter_mode_parent), the inter-frame prediction mode equal to inter_mode_parent is turned off in the current CU according to embodiment 1. In embodiment 2, the inter-frame prediction mode not equal to inter_mode_parent is turned off in the current CU. The method is not limited to embodiments 1 and 2. According to this method, some inter-frame prediction tools can be turned off and / or reduced according to inter_mode_parent.

[0148] The above-proposed method for reducing the complexity of the coding tree partition structure associated with the inter-frame prediction mode can be implemented in an encoder and / or a decoder. For example, the proposed method can be implemented in an inter-frame prediction module of an encoder and / or an inter-frame prediction module of a decoder.

[0149] Simplification of the coding tree (CT) structure

[0150] In existing implementations, the maximum CT depth of binary tree (BT) partitioning or ternary tree (TT) partitioning is up to 3. Allowing TT partitioning will significantly increase the complexity on the encoder side. Some methods are proposed to reduce the computational complexity, especially for certain specific CT depths equal to X, where X is an integer greater than or equal to 0. In the following, X equals 3 is used as an example for example purposes and the example of CT partitioning terminates (or is referred to as skipping) at a CT depth conditionally equal to 3. In other words, in some cases, the maximum CU depth of BT partitioning or TT partitioning will reach 2. In one embodiment, if the CU size is greater than MxN, where M and N can be any integer, such as 64, 128, 256, etc., the CT partitioning terminates when the CT depth is equal to 3. The values ​​of M and N can be predefined or sent at the sequence level, the picture level, or the slice level. Alternatively, the values ​​of M and N are related to the video resolution or standard profile. In another embodiment, the condition for terminating or skipping the CT partition with a CT depth equal to 3 is based on the temporal layer ID of the coded slice. The temporal layer refers to a layer associated with the temporal structure of a picture (e.g., image I, image B, and image P). For example, an I picture may be assigned to Temporal Layer = 0 because an I picture does not reference any other picture, and a B picture may directly and / or indirectly reference more pictures, and a B picture can be assigned to a temporal layer with a larger value. If the temporal layer of the current slice is equal to K, greater than L, or less than P, the CT segmentation terminates at a CT depth equal to 3. K, L, and P may be any integer, such as 2, 4, 6, and the like. In another embodiment, the condition for allowing a CT depth equal to 3 is based on the best prediction mode of the current CU. If the best mode of the current CU is skip mode, the CT segmentation terminates at a CT depth equal to 3. In another embodiment, for large quadtree (QT) leaves or CUs with large sizes (e.g., 64x64, 128x128), the decision to allow a CT depth equal to 3 is based on the ratio of the width and height of the CU. For example, if the ratio of the width and height of the CU is less than T, the CT segmentation terminates when the CT depth is equal to 3. T may be any integer, such as 2, 4, 8, and the like. The value of T may be predefined or signaled at a sequence level, a picture level, or a slice level. Or the value of T is related to the video resolution or standard profile. In another embodiment, the condition for executing CT depth equal to 3 is based on the decision of CT depth equal to 1 or equal to 2. For example, if TT segmentation was not used in the previous CT depth or the segmentation in CT depth is equal to 1, CT depth equal to 3 is allowed. In another embodiment, the condition for terminating CT segmentation at CT depth 3 is based on the current slice QP. If the current slice QP is greater than a predetermined threshold, CT depth equal to 3 is skipped.

[0151] Furthermore, the proposed methods can be combined to make the decision to terminate at CT depth equal to 3. For example, CT segmentation terminates at CT depth equal to 3 only when the CU size is larger than MxN and the best mode of the CU is skip mode. These methods can be applied as encoder only or as a change to the standard. If these methods are applied as a change to the standard, we can also benefit from some syntax preservation to conditionally encode the segmentation flag when CT depth equals 3.

[0152] Furthermore, the decision to terminate CT segmentation at CT depth equal to 3 can be applied only to TT segmentation or only to BT segmentation. In other words, only TT segmentation or only BT segmentation is terminated at CT depth equal to 3, and the remaining segmentation types can still be applied at CT depth equal to 3.

[0153] The above-mentioned method can be implemented in an encoder and / or a decoder. For example, the above-mentioned method can be implemented in a CU partition process in an encoder and / or in a CU partition process in a decoder.

[0154] Fast CT / CU segmentation

[0155] In another aspect of the present invention, several fast CU splitting decision methods are disclosed for reducing the complexity of the video encoder and also maintaining the coding efficiency. These methods can be designed as fast CU splitting methods for encoders only, or as normative changes for saving signal transmission overhead. The details of these embodiments are described as follows.

[0156] Embodiment 1: Method for allowing / skipping CU partitioning based on weighted adjacent sub-CU regions

[0157] The use of the CU partitioning method for the current CU is based on a weighted neighboring sub-CU area. The neighboring sub-CU can be an upper neighboring sub-CU or / and a left neighboring sub-CU. In addition, only the partitioning method or / and the partitioning direction of the used CU partitioning method are sent.

[0158] In one example, if the current CU area is equal to or larger than the weighted neighboring sub-CU area, only the no partition and QT partition methods are used, and the BT / TT partition method is not used. Fig.17 An example of adaptive block segmentation 1700 according to an embodiment of the present invention is shown in FIG. Fig.17 As shown, the current CU 1710 is marked by a slash filled area, and the eight 4×4 neighboring sub-CUs 1720a and 1720b are marked by dot filled areas. The four 4×4 neighboring sub-CUs 1720a above all belong to the 16×8 CU, and the four 4×4 neighboring sub-CUs 1720b on the left belong to 8×8, 8×4, and 8×4 CUs. Then, the weighted neighboring CU area y is calculated as:

[0159]

[0160] In the above equation, k is a real number and x is the average area of ​​neighboring sub-CUs. Therefore, if the current CU area is represented as a and a ≥ y, only no partitioning or QT partitioning can be selected to divide the current CU into smaller CUs (ie, sub-CUs).

[0161] In another embodiment, if the current CU area is equal to or larger than the weighted left sub-CU area, only the no partition and QT partition methods are used, and the BT / TT partition method is not used. Fig.17 As shown, the weighted left sub-CU area y is calculated as

[0162]

[0163] In the above equation, k is a real number and x is the average area of ​​the left neighboring sub-CU. Therefore, if the current CU area is denoted as a and a≥y, only no partitioning or QT partitioning can be selected to divide the current CU into smaller CUs.

[0164] In yet another embodiment, if the current CU area is equal to or larger than the weighted upper sub-CU area, only no partitioning or QT partitioning is used, and the BT / TT partitioning method is not used. Fig.17 As shown, the weighted upper sub-CU area y is calculated as

[0165]

[0166] In the above equation, k is a real number and x is the average area of ​​the upper neighboring sub-CU. Therefore, if the current CU area is denoted as a and a≥y, only no partitioning or QT partitioning can be selected to divide the current CU into smaller CUs.

[0167] In yet another embodiment, if the current CU area is equal to or smaller than the weighted neighboring sub-CU area, only the non-segmentation segmentation method is used. Figure 3 As shown, the weighted neighboring CU region y is calculated as

[0168]

[0169] In the above equation, k is a real number, x is the average area of ​​the neighboring sub-CUs. If the current CU area is denoted as a and a≤y, only the non-partitioned partitioning method is used.

[0170] In yet another embodiment, if the current CU area is equal to or smaller than the weighted left sub-CU area, only the non-segmentation segmentation method is used. Fig.17 As shown, the weighted neighboring CU region y is calculated as

[0171]

[0172] In the above equation, k is a real number and x is the average area of ​​the left neighboring sub-CU. If the current CU area is denoted as a and a≤y, the CU partitioning method is only used.

[0173] In yet another embodiment, if the current CU area is equal to or smaller than the weighted upper sub-CU area, only the non-segmentation segmentation method is used. Fig.17 As shown, the weighted neighboring CU region y is calculated as

[0174]

[0175]

[0176] In the above equation, k is a real number and x is the average area of ​​the upper neighboring sub-CU. If the current CU area is denoted as a and a≤y, the CU partitioning method is only used.

[0177] Embodiment 2: Skipping CU segmentation method based on weighted edge length ratio

[0178] All available CU partitioning methods are classified into two groups, and if the weighted side ratio is within a given range, only one CU partitioning set is used to divide the current CU into smaller CUs. The side ratio can be the weighted average height of the left adjacent CU on the current CU height, or the weighted average width of the upper adjacent CU on the current CU width. In addition, if the current CU satisfies the side ratio constraint, only the partitioning method or / and partitioning direction of the selected CU partitioning set is sent.

[0179] In one embodiment, Fig.17 As shown, the side ratio is the average width a of the upper adjacent CU on the current CU width, which is calculated as

[0180]

[0181] If a ≥ n, the current CU is split into smaller CUs using only the horizontal BT / TT CU splitting method, where n is a real number.

[0182] In another embodiment, Fig.17 As shown, the side ratio is the average height b of the left adjacent CU relative to the current CU width, which is calculated as follows:

[0183]

[0184] If b ≥ q, the current CU is split into smaller CUs using only the vertical BT / TT CU splitting method, where q is a real number.

[0185] Embodiment 3: Skipping CU segmentation method based on current best sub-CU / CU segmentation direction

[0186] Before testing a CU partitioning method (denoted as P), if the current best CU partitioning direction is different from the partitioning direction of P and its sub-CU is not further partitioned in the P direction, the test of P is skipped.

[0187] In one embodiment, if the current best CU partitioning method is horizontal BT or TT partitioning, and its upper left sub-CU and lower right sub-CU are further partitioned by the horizontal BT or TT partitioning method, the test of the vertical BT / TT partitioning method is skipped.

[0188] In another embodiment, if the current best CU partitioning method is vertical BT or TT partitioning, and its upper left sub-CU and lower right sub-CU are further partitioned by vertical BT or TT partitioning methods, the test of horizontal BT / TT partitioning methods is skipped.

[0189] Embodiment 4: Skipping the CU segmentation method based on the CU segmentation method in other segmentation directions tested earlier

[0190] Before testing a CU partition method (denoted as P), if the current best CU partition direction is different from P, other CU partition methods with the same partition direction as the current best CU partition method are tested before P. That is, if the current best CU partition direction is still not the same as P and a certain proportion of the sub-CUs of the current best CU are not further partitioned, the test of P is skipped.

[0191] In one embodiment, if the current best CU partitioning method is vertical BT partitioning, the vertical TT partitioning method is tested earlier than the horizontal TT partitioning method. Afterwards, if the current best value changes to vertical TT and the middle sub-CU is no longer partitioned further, the test of the horizontal TT partitioning method is skipped.

[0192] In another embodiment, if the current best CU partitioning method is horizontal BT partitioning, the horizontal TT partitioning method is tested earlier than the vertical TT partitioning method. Afterwards, if the current best value changes to horizontal TT and the middle sub-CU is no longer partitioned further, the test of the vertical TT partitioning method is skipped.

[0193] Embodiment 5: Skipping CU partitioning method based on temporary best partitioning cost in each partitioning set

[0194] All available CU segmentation methods are divided into two groups, which are P1 and P2. The classification of segmentation methods can be based on segmentation direction or segmentation type. Assume that only some segmentation methods in P1 and P2 are tested, and the best segmentation cost of the tested segmentation methods in P1 and P2 is c P1 and c P2 If c P1 ≥w×c P2 , then skip the remaining CU partition modes in P1. Or, if c P2 ≥w×c P1 , then skip the remaining CU partition modes in P2.

[0195] In one embodiment, the segmentation methods are classified by segmentation direction, and the two segmentation sets are {horizontal BT, horizontal ABT, horizontal TT} and {vertical BT, vertical ABT, vertical TT}. ABT is an abbreviation for asymmetric BT. If {horizontal BT, horizontal ABT} and {vertical BT, vertical ABT} have been tested, the optimal segmentation cost of these two sets is c P1 and c P2 If c P1 ≥w×c P2 , the segmentation test of the horizontal TT segmentation method is skipped.

[0196] In another embodiment, the segmentation methods are classified by segmentation type, and the two segmentation groups are {horizontal TT, vertical TT, horizontal ABT, vertical ABT} and {horizontal BT, vertical BT}. If {horizontal BT, vertical BT} and {horizontal TT, vertical TT} have been tested, the best segmentation cost of the two groups is c P1 and c P2 If c P1 ≥w×c P2 , the split test of the horizontal / vertical ABT split method is skipped.

[0197] Embodiment 6: Skipping CU segmentation method based on temporary best segmentation cost in early segmentation method

[0198] Assume that the number of total available CU partitioning methods for the current CU is M, and N of the M partitioning methods have been tested, and the partitioning costs of these N partitioning methods are represented as {c1, c2, c3, ..., cN}. Assume that the current best CU partitioning cost is c best And. If c i >w×c best , (where i = 1, ..., N and i ≠ j,) and the current best CU partition method is not partitioned, then the partition test of the remaining (MN) CU partition methods is skipped.

[0199] For example, suppose the available CU partitioning methods are {no partitioning, horizontal BT, vertical BT, QT, horizontal TT, and vertical TT}. Suppose no partitioning, horizontal BT, vertical BT, and QT are tested, and the current best CU partitioning method is the no partitioning partitioning type. If the weighted cost of the no partitioning method is less than the cost of horizontal BT, vertical BT, and QT, the partitioning test of horizontal TT and vertical TT is skipped.

[0200] Example 7: Skipping CU splitting by comparing the cost of the upper depth CU

[0201] According to this embodiment, once the accumulated partition cost is equal to or greater than any optimal partition cost of each partition depth, the CU partition method is skipped in advance. The accumulated partition cost is defined as the sum of the current coded child CU and the parent coded CU in the previous partition depth. For example, Fig.18A A CTU 1820 is shown that is still in the encoding process. The currently encoded CU 1810 is marked by the area filled with diagonal lines, and the fully encoded CU is represented by the area surrounded by thick dashed lines. For the currently encoded CU, there are 4 parent blocks from partition depths 0, 1, 2, and 3, which are represented by Fig.18B - The corresponding thick solid lines in Figure 118E are indicated (i.e., 1836, 1834, 1832, and 1830, respectively). Assume that the current test method is the horizontal BT partitioning method, and the first sub-CU marked as "A" has been encoded. Before encoding the second sub-CU marked as "B", if the partitioning cost of "A" plus the cost of other encoded CUs marked by the backslash line is equal to or greater than the weighted partitioning cost of the parent block at each partition depth, then the CU partitioning method is skipped early. For example, in Fig.18B In , other coded CUs correspond to zero (ie, no other coded CUs are used) for partitioning the block 1830 of depth 3, as shown by the thick line square. Fig.18C In , other coded CUs correspond to the backslash filled area above the area A, which is used to divide the block 1832 with a depth of 2, as shown in the bold rectangle. Fig.18D In , other coded CUs correspond to the backslash filled area above region A, which is used to divide the block 1834 with a depth of 1 as shown by the bold square. Fig.18E In FIG. 1 , other coded CUs correspond to the backslash filled areas, which are used to segment the block 1836 with a depth of 0 as shown by the bold square.

[0202] Embodiment 8: Reusing previous CU split decision of the same position and size

[0203] A CU can be encoded multiple times with different CU partitioning methods or at different CU partitioning depths. Since the spatial position, CU size or even the neighborhood of the CU does not change, the CU partitioning decision can be reused once the CU is revisited.

[0204] In one example, when revisiting a CU, only partitioning methods with partitioning costs less than the best partitioning cost will be weighted.

[0205] In another embodiment, when revisiting a CU, the partitioning method with the best partitioning cost will always be tested, and the partitioning method with the second best partitioning cost less than the weighted best partitioning cost will also be tested. Other tested partitioning methods will be skipped. Note that partitioning methods that were tested on a CU that was not encoded the first time can be tested on revisiting.

[0206] Embodiment 9: CU segmentation skipping method based on weighted average area of ​​current sub-CU

[0207] When the weighted average area of ​​the current sub-CU is equal to or less than TH1 and the current CU area / size is also equal to or greater than TH2, the CU partitioning method is skipped. Fig.19 As shown, if the current best CU is partitioned and each sub-CU size is 4×4. Then, the weighted average area a of the current sub-CU is calculated as,

[0208]

[0209] If a≤TH1 and the current CU region / size is equal to or greater than TH2, the following untested CU partitioning methods are skipped.

[0210] Embodiment 10: Skipping CU segmentation method according to QT segmentation result

[0211] When the QT depth of the best CU is deeper than the current CU and the current CU area is equal to or greater than the threshold, the CU partitioning method is skipped. In one example, when the QT depth of the best CU is deeper than the current CU and the current CU area is equal to or greater than 16384, the TT partitioning method is skipped.

[0212] Fig. 20A flowchart of an exemplary encoding system with constraints on coding tree segmentation according to an embodiment of the present invention is shown. The steps shown in the flowchart and other subsequent flowcharts in the present disclosure can be implemented as executable program codes on one or more processors (e.g., one or more CPUs) on the encoder side and / or the decoder side. The steps shown in the flowchart can also be implemented based on hardware such as one or more electronic devices or processors arranged to perform the steps in the flowchart. According to the method, input data associated with a current block in a current image from a video sequence is received in step 2010. In step 2020, the current block is segmented into a plurality of final sub-blocks using one or more stages of sub-tree segmentation including ternary tree segmentation and at least one other type of segmentation, wherein if the current sub-tree depth associated with the current sub-block is greater than a first threshold and the first threshold is an integer greater than or equal to 1, the ternary tree segmentation is excluded from the sub-tree segmentation. In step 2030, the plurality of final sub-blocks are encoded to generate compressed bits to be included in a video bitstream on the encoder side, or the plurality of final sub-blocks are decoded from the video bitstream on the encoder side.

[0213] Fig.21 A flow chart of an exemplary encoding system with reduced complexity inter-frame prediction modes according to an embodiment of the present invention is shown. According to the method, input data associated with a current block in a current image from a video sequence is received in step 2110. An initial inter-frame prediction toolset is determined in step 2120. A test condition for the current block is then determined in step 2130. In step 2140, when the test condition is met, the current block is encoded or decoded using a current inter-frame prediction mode selected from a modified inter-frame prediction toolset, wherein the modified inter-frame prediction toolset is derived from the initial inter-frame prediction toolset by deleting one or more first inter-frame prediction tools from the initial inter-frame prediction toolset, replacing one or more second inter-frame prediction tools with one or more reduced complexity inter-frame prediction tools, or a combination thereof.

[0214] Fig. 22 A flowchart of another exemplary encoding system with constraints on coding tree segmentation according to an embodiment of the present invention is shown. According to the method, in step 2210, input data associated with a current block in a current image from a video sequence is received. In step 2220, a test condition for the current block is determined. In step 2230, when the test condition is met, the current block is segmented into a plurality of final sub-blocks using a restricted coding tree structure including one or more multi-type segmentations, wherein the restricted coding tree structure terminates the coding tree segmentation of a target sub-block having a coding tree segmentation depth equal to a threshold. In step 2240, the plurality of final sub-blocks are encoded to generate compressed bits to be included in a video bitstream on the encoder side, or the plurality of final sub-blocks are decoded from the video bitstream on the decoder side.

[0215] The flowchart shown is intended to illustrate an example of video encoding according to the present invention. Without departing from the spirit of the present invention, those skilled in the art may modify each step, rearrange the steps, split the steps, or combine the steps to implement the present invention. In this disclosure, specific syntax and semantics have been used to illustrate examples for implementing embodiments of the present invention. Those skilled in the art may practice the present invention by replacing syntax and semantics with equivalent syntax and semantics without departing from the spirit of the present invention.

[0216] The above description is presented to enable those skilled in the art to practice the present invention provided in the context of specific applications and their requirements. Various modifications to the described embodiments will be apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not limited to the specific embodiments shown and described, but is consistent with the widest range of principles and novel features disclosed herein. In the above detailed description, various specific details are shown in order to provide a thorough understanding of the present invention. However, it will be appreciated by those skilled in the art that the present invention may be implemented.

[0217] The embodiments of the present invention as described above can be implemented in various hardware, software codes, or a combination of both. For example, an embodiment of the present invention can be one or more circuits integrated into a video compression chip or a program code integrated into video compression software to perform the processing described herein. An embodiment of the present invention can also be a program code to be executed on a digital signal processor (DSP) to perform the processing described herein. The present invention can also involve many functions performed by a computer processor, a digital signal processor, a microprocessor, or a field programmable gate array (FPGA). These processors can be configured to perform specific tasks according to the present invention by executing machine-readable software code or firmware code that defines the specific method embodied in the present invention. The software code or firmware code can be developed in different programming languages ​​and different formats or styles. The software code can also be compiled for different target platforms. However, different code formats, styles, and languages ​​of the software code and other devices for configuring the code to perform tasks according to the present invention will not depart from the spirit and scope of the present invention.

[0218] The present invention may be implemented in other specific forms without departing from the spirit or essential features of the present invention. The described examples should be considered in all respects as merely illustrative and not restrictive. Therefore, the scope of the present invention is represented by the appended claims rather than the preceding description. All changes within the meaning and equivalent range of the claims are included within their scope.

Claims

1. A video encoding and decoding method using an inter-frame prediction mode, the method comprising: receiving input data associated with a current block in a current image from a video sequence; Determining an initial inter-frame prediction toolset; Determine the test condition for the current block; as well as When the test condition is satisfied, encoding or decoding the current block using a current inter prediction mode selected from a modified inter prediction toolset, wherein the modified inter prediction toolset is derived from the initial inter prediction toolset by removing one or more first inter prediction tools from the initial inter prediction toolset, replacing one or more second inter prediction tools with one or more reduced complexity inter prediction tools, or a combination thereof, wherein the one or more first inter prediction tools are selected from a group consisting of advanced motion vector prediction, merging, pattern matching motion vector derivation, local illumination compensation, affine coding, neighbor-derived prediction offset, overlapped block motion compensation, or a combination thereof, Whether the test condition is satisfied depends on the coding tree depth associated with the current block, or whether the test condition is satisfied depends on the coding tree depth associated with the current block and the block size of the current block.

2. The video encoding and decoding method according to claim 1, characterized in that: The test condition is satisfied if the coding tree depth associated with the current block is equal to a predefined value and the block size of the current block is greater than or equal to a threshold.

3. The video encoding and decoding method according to claim 1, characterized in that: When the target first inter prediction tool is removed from the initial inter prediction tool set, syntax elements associated with the target first inter prediction tool are not sent at the encoder side or parsed at the decoder side for the current block.

4. The video encoding and decoding method according to claim 1, characterized in that: When the one or more first inter prediction tools are removed from the initial inter prediction tool set, the candidate list having a reduced number of candidates is excluded from the one or more first inter prediction tools by excluding the one or more first inter prediction tools from the candidate list, the candidate list having a reduced number of candidates, and the current block uses the candidate list having a reduced number of candidates.

5. A video coding and decoding apparatus using an inter-frame prediction mode, the apparatus comprising one or more electronic circuits or processors arranged to: receiving input data associated with a current block in a current image from a video sequence; Determining an initial inter-frame prediction toolset; determining a test condition for the current block; and When the test condition is met, the current block is encoded or decoded using a current inter-frame prediction mode selected from the modified inter-frame prediction tool group, wherein: deriving the modified inter prediction toolset from the initial inter prediction toolset by removing one or more first inter prediction tools from the initial inter prediction toolset, replacing one or more second inter prediction tools with one or more reduced complexity inter prediction tools, or a combination thereof, wherein the one or more first inter prediction tools are selected from a group consisting of advanced motion vector prediction, merging, pattern matching motion vector derivation, local illumination compensation, affine coding, neighbor-derived prediction offset, overlapped block motion compensation, or a combination thereof, Whether the test condition is satisfied depends on the coding tree depth associated with the current block, or whether the test condition is satisfied depends on the coding tree depth associated with the current block and the block size of the current block.