Method and apparatus for motion vector allocation for geometric partition mode in a video coding system

By using pseudo motion vector or predefined sub-block MV allocation method in the video codec system, the long delay problem on the decoder side in geometric partition mode is solved, and the decoding efficiency and throughput are improved.

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

Patent Information

Application Number
CN202380016925.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-28
Filing Date
2023-01-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In video codec systems, Geometric Partition Mode (GPM) causes long delays in the reconstruction stage on the decoder side because true motion vectors (MVs) cannot be generated in the parsing stage, resulting in reference sample prefetch delays and affecting decoding throughput.

Method used

Allow the pseudo-GPM to be different from the selected GPM by using pseudo motion vectors (pseudo MVs) for sub-block allocation in the parsing stage and using the actual GPM partitioning mode for sample blending during the reconstruction stage, or predefine the sub-block MV allocation method to be independent GPM syntax for parsing, reducing latency.

Benefits of technology

It improves the low-latency performance of the video decoding system, ensures sub-block MV allocation during the parsing stage, reduces external memory access latency, and improves decoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118541972A
    Figure CN118541972A
Patent Text Reader

Abstract

A method and apparatus for video encoding and decoding are disclosed for an encoder end and a decoder end. According to a decoder-side method, encoded data associated with a current block is received. A pseudo GPM in the target GPM group of the current block is determined. The current block is divided into one or more sub-blocks. The allocated MV (Motion Vector) of each sub-block is determined according to a pseudo GPM. And determining the cost of each GPM in the target GPM group according to the decoded data. A selected GPM is determined based on the pattern syntax and the reordered target GPM group, where the reordered target GPM group corresponds to the reordered target GPM group according to the cost, where the pseudo GPM is allowed to be different from the selected GPM. The encoded data is decoded using information that includes the selected GPM.
Need to check novelty before this filing date? Find Prior Art

Description

[0001]

Cross reference

[0002] This non-provisional application claims priority to U.S. Provisional Patent Application No. 63 / 304,012 filed on January 28, 2022. The above-mentioned U.S. Provisional Patent Application is incorporated into this specification by reference in its entirety. [Technical field]

[0003] The present invention relates to video coding and decoding. Specifically, the present invention relates to a video coding and decoding system using a geometric partitioning mode (GPM for short). [Background technology]

[0004] Versatile Video Codec (VVC) is the latest international video codec standard (MPEG) developed by the Joint Video Experts Group (JVET) of the ITU-T Video Codec Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group. The standard has been published as an ISO standard: ISO / IEC 23090-3:2021, Information technology-Coded representation of immersive media-Part 3:Versatile video coding, released in February 2021. VVC was developed by adding more codec tools to improve codec efficiency and handle various types of video sources, including 3D video signals, based on its predecessor HEVC (High Efficiency Video coding).

[0005] Figure 1AAn exemplary adaptive Inter / Intra video coding system including a loop process is described. For intra prediction, prediction data is derived from previously coded video data in the current picture (hereinafter also referred to as a picture). For inter prediction 112, motion estimation (abbreviated as ME) is performed on the encoder side and motion compensation (abbreviated as MC) is performed based on the result of ME to provide prediction data derived from other pictures and motion data. Switch 114 selects intra prediction 110 or inter prediction 112 and the selected prediction data is provided to adder 116 to form a prediction error, also referred to as a residual. The prediction error is then processed by transform (T) 118 and subsequent quantization (Q) 120. The transformed and quantized residual is then encoded by entropy encoder 122 to be included in the video bitstream corresponding to the compressed video data. The bitstream associated with the transform coefficients is then packaged with side information (e.g., motion and decoding modes associated with intra-frame prediction and inter-frame prediction) and other information (e.g., parameters associated with the loop filter applied to the underlying image area). Side information associated with intra-frame prediction 110, inter-frame prediction 112, and loop filter 130 is provided to entropy encoder 122, as shown in FIG. Figure 1A As shown. When using inter-frame prediction mode, one or more reference pictures must also be reconstructed at the encoder end. Therefore, the transformed and quantized residual is processed by inverse quantization (IQ) 124 and inverse transform (IT) 126 to recover the residual. The residual is then added back to the prediction data 136 at reconstruction (REC) 128 to reconstruct the video data. The reconstructed video data can be stored in a reference picture buffer 134 and used to predict other frames.

[0006] like Figure 1AAs shown, the input video data undergoes a series of processes in the encoding system. Due to the series of processes, the reconstructed video data from REC 128 may be subject to various impairments. Therefore, the loop filter 130 is often applied to the reconstructed video data before it is stored in the reference picture buffer 134 to improve the video quality. For example, a deblocking filter (DF), a sample adaptive offset (SAO), and an adaptive loop filter (ALF) may be used. It may be necessary to merge the loop filter information into the bitstream so that the decoder can correctly recover the required information. Therefore, the loop filter information is also provided to the entropy encoder 122 to be merged into the bitstream. Figure 1A In , a loop filter 130 is applied to the reconstructed video before the reconstructed samples are stored in a reference picture buffer 134 . Figure 1A The system in is intended to illustrate an exemplary structure of a typical video encoder. It may correspond to the High Efficiency Video Codec (HEVC) system, VP8, VP9, ​​H.264, or VVC.

[0007] like Figure 1B As shown, except for transform 118 and quantization 120, the decoder can use similar or identical functional blocks as the encoder, because the decoder only needs inverse quantization 124 and inverse transform 126. Instead of entropy encoder 122, the decoder uses entropy decoder 140 to decode the video bitstream into quantized transform coefficients and required coding information (such as ILPF information, intra-frame prediction information, and inter-frame prediction information). Intra-frame prediction 150 on the decoder side does not need to perform mode search. Instead, the decoder only needs to generate intra-frame prediction based on the intra-frame prediction information received from entropy decoder 140. In addition, for inter-frame prediction, the decoder only needs to perform motion compensation (MC 152) based on the inter-frame prediction information received from entropy decoder 140 without motion estimation.

[0008] According to VVC, similar to HEVC, the input picture is partitioned into non-overlapping square block areas called CTUs (Codec Tree Units). Each CTU can be divided into one or more smaller Codec Units (CUs). The generated CU partitions can be square or rectangular. In addition, VVC divides CTUs into Prediction Units (PUs) as units for applying prediction processing, such as inter-frame prediction, intra-frame prediction, etc.

[0009] The VVC standard combines various new coding and decoding tools to further improve the coding and decoding efficiency based on the HEVC standard. Among the various new coding and decoding tools, some coding and decoding tools related to the present invention are summarized as follows.

[0010] Merge Mode with MVD (MMVD)

[0011] In addition to the merge mode in which the implicitly derived motion information is directly used for prediction sample generation of the current CU, a merge mode with motion vector difference (MMVD) is introduced in VVC. The MMVD flag is sent immediately after the regular merge flag is sent to specify whether the MMVD mode is used for the CU.

[0012] In MMVD, after a merge candidate is selected, it is further refined by signaling MVD information. Further information includes a merge candidate flag, an index for specifying the magnitude of motion, and an index for indicating the direction of motion. In MMVD mode, one of the first two candidates in the merge list is selected to be used as the MV basis. The MMVD candidate flag is signaled to specify which one to use between the first and second merge candidates.

[0013] The distance index specifies the motion magnitude information and indicates the predefined offset from the starting point of the L0 reference block and the L1 reference block. The offset is added to the horizontal component or the vertical component of the starting MV, where the small circles of different styles correspond to different offsets from the center. The relationship between the distance index and the predefined offset is specified in Table 1.

[0014] Table 1 – Relationship between distance index and predefined offsets

[0015]

[0016]

[0017] The direction index indicates the direction of the MVD relative to the starting point. The direction index can indicate four directions as shown in Table 2. It should be noted that the meaning of the MVD symbol can change according to the information of the starting MV. When the starting MV is a unidirectional prediction (un-prediction) MV or a bi-prediction (bi-prediction) MV in which both lists point to the same side of the current picture (i.e., the POCs of both references are greater than the POC of the current picture, or both are less than the POC of the current picture), the positive and negative signs of the MV offset added to the starting MV are described in Table 2. When the starting MV is a bi-prediction MV in which two MVs point to different sides of the current picture (i.e., the POC of one reference is greater than the POC of the current picture, and the POC of the other reference is less than the POC of the current picture), and the difference in POC in list 0 is greater than the difference in POC in list 1, the positive and negative signs of the MV offset added to the list0 MV component of the starting MV are described in Table 2, and have opposite values ​​to the positive and negative signs of the MV offset added to the list1MV. Otherwise, if the difference in POC in list 1 is greater than that in list 0, the sign of the MV offset added to the list1 MV component of the starting MV is described in Table 2 and has the opposite value to the sign of the MV offset added to the list0 MV.

[0018] The MVD is scaled by the difference in the POC in each direction. If the difference in the POC is the same in both lists, no scaling is required. Otherwise, if the difference in the POC in list 0 is greater than that in list 1, the MVD of list 1 is scaled by defining the POC difference of L0 as td and the POC difference of L1 as tb, as Figure 5 If the POC difference of L1 is greater than L0, the MVD of list 0 is scaled in the same way. If the starting MV is unidirectionally predicted, the MVD is added to the available MVs.

[0019] Table 2 – MV offset symbols specified by direction index

[0020] Directions to IDX 00 01 10 11 x-axis + - N / A N / A y-axis N / A N / A + -

[0021] Combined Inter and Intra Prediction (CIIP)

[0022] In VVC, when a CU is encoded in merge mode, if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and the CU height are less than 128 luma samples, an additional flag is sent to indicate whether the combined inter / intra prediction (CIIP) mode is applied to the current CU. As its name suggests, CIIP prediction combines the inter prediction signal with the intra prediction signal. CIIP mode P inter The inter-frame prediction signal in is derived using the same inter-frame prediction process applied to the normal merge mode; while the intra-frame prediction signal P intra is derived after the regular intra prediction process with planar mode. Then, the intra and inter prediction signals are combined using weighted averaging, where the weight value wt is calculated based on the codec mode of the top and left neighboring blocks of the current CU as follows:

[0023] If the top neighbor is available and is intra-coded, set isIntraTop to 1, otherwise set isIntraTop to 0;

[0024] If the left neighbor is available and is intra-coded, set isIntraLeft to 1, otherwise set isIntraLeft to 0;

[0025] If (isIntraLeft+isIntraTop) is equal to 2, then wt is set to 3;

[0026] Otherwise, if (isIntraLeft+isIntraTop) is equal to 1, wt is set to 2;

[0027] Otherwise, set wt to 1.

[0028] The CIIP forecast is formed as follows:

[0029] P CIIP =((4-wt)*P inter +wt*P intra +2)>>2 (1)

[0030] Geometric Partitioning Mode (GPM)

[0031] In VVC, geometric partition mode (GPM) is supported for inter-frame prediction as described in JVET-W2002 (Adrian Browne et al., Algorithm description for Versatile Video Coding and Test Model 14 (VTM14), ITU-T / ISO / IEC Joint Video Exploration Team (JVET), 23rd Meeting, Teleconference, July 7-16, 2021, Document: Document JVET-M2002). The geometric partition mode uses a CU-level flag as a merge mode, and other merge modes include normal merge mode, MMVD mode, CIIP mode, and sub-block merge mode. For each possible CU size, the geometric partition mode supports a total of 64 partitions, w×h=2 m ×2 n , where m,n∈{3…6}, excluding 8x64 and 64x8. GPM mode can be applied to CUs with skip or merge sizes within the above limits and with at least two normal merge modes.

[0032] When this mode is used, a CU is divided into two parts by a geometrically positioned straight line at a certain angle. In VVC, a total of 20 angles (reduced from 24 angles in the early draft) and 4 offset distances are used for GPM. The 20 angles used for partitioning are as follows Figure 2 The position of the partition line is derived mathematically from the angle and offset parameters of the specific partition. In VVC, there are 64 partitions, as shown in Figure 3 As shown in Figure 1, where partitions are grouped by angle and dotted lines indicate redundant partitions. Each part of the geometric partition in the CU uses its own motion for inter-frame prediction; each partition only allows unidirectional prediction, that is, each part has a motion vector and a reference index. Figure 3 , each line corresponds to the boundary of a partition. Partitions are grouped according to their angles. For example, partition group 310 consists of three vertical GPM partitions (i.e., 90°). Partition group 320 consists of four inclined GPM partitions at a small angle to the vertical direction. In addition, partition group 330 consists of three vertical GPM partitions (i.e., 270°), similar to group 310, but in the opposite direction. Unidirectional prediction motion constraints are applied to ensure that each CU only requires two motion compensated predictions, the same as traditional bidirectional prediction. The unidirectional prediction motion of each partition is derived using the process described later.

[0033] If the geometry partition mode is used for the current CU, a geometry partition index and two merge indices (one for each partition) indicating the selected partition mode (angle and offset) of the geometry partition are further signaled. As shown in Table 3, the number of maximum GPM candidate sizes is explicitly signaled in the SPS (sequence parameter set) and the syntax binarization of the GPM merge index is specified. The mapping between the GPM partition index, angle index and distance index is shown in Table 4. After predicting each part of the geometry partition, a blending process with adaptive weights is used using the process described later to adjust the sample values ​​along the edges of the geometry partition. This is the prediction signal for the entire CU, and as with other prediction modes, the transform and quantization process will be applied to the entire CU. Finally, the motion field of the CU predicted using the geometry partition mode is stored using the process described later.

[0034] Table 3. Syntax table for the number of maximum GPM candidate sizes

[0035]

[0036] Table 4. Merged GPM partition_Index mapping table

[0037] merge_gpm_partition_idx 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 angleIdx 0 0 2 2 2 2 3 3 3 3 4 4 4 4 5 5 distanceIdx 1 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 merge_gpm_partition_idx 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 angleIdx 5 5 8 8 11 11 11 11 12 12 12 12 13 13 13 13 distanceIdx 2 3 1 3 0 1 2 3 0 1 2 3 0 1 2 3 merge_gpm_partition_idx 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 angleIdx 14 14 14 14 16 16 18 18 18 19 19 19 20 20 20 21 distanceIdx 0 1 2 3 1 3 1 2 3 1 2 3 1 2 3 1 merge_gpm_partition_idx 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 angleIdx 21 21 24 24 27 27 27 28 28 28 29 29 29 30 30 30 distanceIdx 2 3 1 3 1 2 3 1 2 3 1 2 3 1 2 3

[0038] Uni-Prediction Candidate List Construction

[0039] The unidirectional prediction candidate list is derived directly from the merge candidate list constructed according to the extended merge prediction process. Denote n as the index of the unidirectional prediction motion in the geometric unidirectional prediction candidate list. The LX motion vector (X=0 or 1, i.e. LX=L0 or L1) of the nth extended merge candidate, where X is equal to the parity of n, is used as the nth unidirectional prediction motion vector of the geometric partition mode. These motion vectors are Figure 4 If the corresponding LX motion vector of the n-th extended merge candidate does not exist, the L(1-X) motion vector of the same candidate is used instead as the unidirectional prediction motion vector of the geometric partition mode.

[0040] Blending along the edges of geometric partitions

[0041] After predicting each part of the geometric partition using its own motion, blending is applied to the two prediction signals to derive samples around the edges of the geometric partition. The blending weight for each position of the CU is based on the distance between the respective position and the partition edge.

[0042] The distance from position (x,y) to the edge of the partition is derived as:

[0043]

[0044] where i,j are the angle and offset indices of the geometry partition, which depend on the geometry partition index being signaled. x,j and ρ y,j The sign of depends on the angle index i.

[0045] The weight of each part of the geometric partition is derived as follows:

[0046] wIdxL(x,y)=partIdx? 32+d(x,y):32-d(x,y) (6)

[0047]

[0048] w1(x,y)=1-w0(x,y) (8)

[0049] partIdx depends on the angle index i. An example of weight w0 is Figure 5 As shown, the angle and offset ρ i 520 indicates the GPM index i and point 530 corresponds to the center of the block.

[0050] Motion Field Storage in Geometric Partitioning Mode

[0051] Mv1 from the first part of the geometry partition, Mv2 from the second part of the geometry partition, and the combined MV of Mv1 and Mv2 are stored in the motion field of the CU coded in geometry partition mode.

[0052] The type of motion vector stored for each individual position in the motion field is determined as:

[0053] sType=abs(motionIdx)<32?2:(motionIdx≤0?(1-partIdx):partIdx) (9)

[0055] where motionIdx is equal to d(4x+2,4y+2), which is recalculated from equation (2). partIdx depends on the angle index i.

[0056] If sType is equal to 0 or 1, then Mv0 or Mv1 is stored in the corresponding motion field, otherwise if sType is equal to 2, the combined MV from Mv0 and Mv2 is stored. The combined Mv is generated using the following process:

[0057] If Mv1 and Mv2 are from different reference picture lists (one from L0 and the other from L1), then Mv1 and Mv2 are simply combined to form a bi-directional prediction motion vector.

[0058] Otherwise, if Mv1 and Mv2 are from the same list, only the unidirectional predicted motion Mv2 is stored.

[0059] Template Matching-based Reordering of GPM Split Mode

[0060] Recently, Chun-Chi Chen et al. disclosed in JVET-Y0135 (ITU-T / ISO / IEC Joint Video Experts Group (JVET), 25th Meeting, by teleconference, January 12-21, 2022, document: document JVET-Y0135) a reordering of GPM splitting patterns based on template matching to take into account new codec standards. The template matching method matches neighboring templates around a current block with reference templates around a reference block in a reference picture. The neighboring templates typically include a top template corresponding to neighboring pixels at the upper edge of the current block and a left template corresponding to neighboring pixels at the left edge of the current block. The reference template includes each top template and left template of the reference block. Since the reference template and the neighboring template can be provided by both the encoder and decoder sides during the encoding / decoding process of the current block, the matching cost (i.e., a measure of the similarity or dissimilarity between the neighboring template and the reference template) can be evaluated at the encoder and decoder sides. Therefore, the matching cost evaluation is regarded as information derived at the decoder side. According to JVET-Y0135, the reordering method for the GPM split mode is to perform two steps after the respective reference templates of the two GPM partitions in the codec unit are generated, as shown below:

[0061] Mixing the reference templates of the two GPM partitions using the respective weights of the respective splitting modes (i.e., generating 64 mixed reference templates) and calculating the respective template match (TM) costs of these mixed reference templates; and

[0062] Re-sort the TM costs in ascending order and mark the best N candidates as available split patterns.

[0063] like Figure 6 As shown, the edge of the template extends from the edge of the current CU. Figure 6, block 610 corresponds to the current block, block 620 corresponds to the top template, and block 630 corresponds to the left template. The calculation of the corresponding weights used in the template mixing process is similar to the GPM weight derivation process (i.e., subclause 8.5.7.2 in JVET-T2001 (Benjamin Bross et al., Versatile Video Coding Editorial Refinements, Draft 10, ITU-T / ISO / IEC Joint Video Experts Group (JVET), 20th meeting, by telephone conference, October 7-16, 2020, document: Document JVET-T2001)). The only difference is that:

[0064] The sample positions on the template (relative to the original positions of the CU) are used to derive the weights;

[0065] The weights are mapped to 0 and 8 (depending on which is closer) before use so that the edges of the template are clearly segmented to simplify the calculation of the blending process.

[0066] After re-ranking by ascending order of TM cost, the best N GPM splitting patterns are assigned to their respective indexes according to their TM cost from small to large, and the indexes are emitted using the Golomb-Rice code, as shown in Table 5.

[0067] Table 5. Golomb-Rice codes for the best N GPM splitting patterns

[0068]

[0069] The signaling of GPM indexes according to TM-based reordering as disclosed in JVET-Y0135 is more efficient than the original signaling method without TM-based reordering because only the best N GPM splitting patterns are assigned to their respective indexes and the selected indexes are entropy encoded using Golomb-Rice codes. However, the TM-based reordering disclosed in JVET-Y0135 suffers from longer delays as disclosed in the detailed description of the present application. The present invention discloses a method to overcome the long delay problem. [Summary of the invention]

[0070] A method and apparatus for video encoding and decoding are disclosed for an encoder side and a decoder side. According to the method on the decoder side, encoded data associated with a current block is received. A pseudo-GPM in a target GPM group of the current block is determined. The current block is divided into one or more sub-blocks. The assigned MV (motion vector) of each sub-block is determined according to the pseudo-GPM. The cost of each GPM in the target GPM group is determined according to the decoded data. The selected GPM is determined based on a mode syntax and a reordered target GPM group, the reordered target GPM group corresponding to the target GPM group reordered according to the cost, wherein the pseudo-GPM is allowed to be different from the selected GPM. The encoded data is decoded using information including the selected GPM.

[0071] In one embodiment, the method for decoder side may further include parsing a mode syntax from a bitstream including the encoded data of the current block.

[0072] In one embodiment, a cost is derived between a reference template of a reference block of a current block and a neighboring template of the current block using one or more GPM mode selected MV candidates and a target-tested GPM.

[0073] In one embodiment, the target GPM group includes all GPMs in the GPM list.

[0074] In one embodiment, all GPMs in the GPM list are divided into a plurality of GPM groups and the target GPM group corresponds to one of the plurality of GPM groups. In one embodiment, the plurality of GPM groups correspond to M groups, where M is an integer greater than 1. In one embodiment, a GPM group syntax is parsed from a bit stream of encoded data including a current block, and wherein the GPM group syntax indicates a target GPM group among the plurality of GPM groups. In one embodiment, information related to the one GPM group among the plurality of GPM groups is parsed from a bit stream of encoded data including the current block. In one embodiment, a mode syntax is parsed from a bit stream of encoded data including the current block. In one embodiment, the mode syntax is implicitly determined.

[0075] According to the method for the encoder side, pixel data associated with the current block is received. The cost of each GPM in the target GPM group is determined based on the decoded data. A reordered target GPM group is generated for the GPMs in the target GPM group based on the cost. A selected GPM is determined for the current block. A mode syntax is determined based on the position of the selected GPM in the reordered target GPM group. The current block is divided into one or more sub-blocks. A pseudo-GPM in the target GPM group is determined for the current block based on the mode syntax. The allocated MV (motion vector) of each sub-block is determined based on the pseudo-GPM, wherein the pseudo-GPM is allowed to be different from the selected GPM. The current block is then encoded using information including the selected GPM.

Brief Description of the Drawings

[0076] Figure 1A An exemplary adaptive inter / intra video coding system including loop processing is described.

[0077] Figure 1B Pictured Figure 1A The corresponding decoder of the encoder in .

[0078] Figure 2 An example of 20 angles used for geometric partitioning during VVC's early GPM (Geometric Partitioning Mode) development is illustrated.

[0079] Figure 3 An example of 64 partitions used in the VVC standard is illustrated, where the partitions are grouped according to their angles and the dashed lines represent redundant partitions.

[0080] Figure 4 An example of unidirectional prediction MV selection for geometric partitioning mode is illustrated.

[0081] Figure 5 An example of blending weight ω0 using a geometric partitioning pattern is illustrated.

[0082] Figure 6 An example of extending the edges of a geometric partitioning pattern into a template according to a template matching based GPM is illustrated.

[0083] Figure 7 A flowchart of an exemplary video decoding system utilizing a low-delay geometric partitioning mode according to an embodiment of the present invention is shown.

[0084] Figure 8 A flowchart of an exemplary video encoding system utilizing a low-delay geometric partitioning mode according to an embodiment of the present invention is shown. [Specific implementation method]

[0085] It is readily understood that the elements of the present invention as generally described and illustrated in the accompanying drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following more detailed description of the embodiments of the system and method of the present invention as shown in the figures is not intended to limit the scope of the claimed invention, but only represents selected embodiments of the present invention. References throughout this specification to "an embodiment", "one embodiment" or similar language mean that a particular feature, structure or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment" or "in one embodiment" that appear throughout this specification do not necessarily all refer to the same embodiment.

[0086] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. However, those skilled in the relevant art will recognize that the present invention may be practiced without one or more specific details, or using other methods, elements, etc. In other cases, well-known structures or detailed descriptions of operations are not shown or are not shown to avoid obscuring aspects of the present invention. The illustrated embodiments of the present invention will be best understood with reference to the accompanying drawings, in which like parts are represented by like numbers throughout. The following description is intended to be exemplary only and simply illustrates certain selected embodiments of the apparatus and methods consistent with the present invention as claimed herein.

[0087] In the background section, it is described how to store the MV of each sub-block in GPM mode. One of MV1 and MV2 is selected and stored in the sub-block MV buffer according to the GPM partition mode (e.g., partition angle and offset). However, in the method disclosed in JVET-Y0135, the partition modes are reordered according to the template matching cost. However, in the video decoder, in the parsing stage (e.g., Figure 1B The entropy decoder 140 in the parsing stage), the reconstructed adjacent templates are not yet available. Therefore, the reordered GPM partition list cannot be derived in the parsing stage, and the selected partition cannot be determined based on the parsed partition index. Therefore, the MV of the sub-block cannot be assigned to the current block in the parsing stage. Therefore, the sub-block MV cannot be assigned and referenced by subsequent CUs. In addition, the MVP candidate list (such as the merged candidate list and the AMVP candidate list) cannot be generated in the parsing stage. It will cause a reference sample pre-fetch problem in the video decoder, because the decoder usually generates the final MV of each CU in the parsing stage and issues a data fetch instruction to obtain data from the external memory so that the pre-fetched data (such as a reference sample in another picture) can be used in the sample reconstruction stage (such as Figure 1BREC 128 in the decoder is prepared on time. If the reference samples cannot be prepared before the reconstruction phase, a long delay is required to obtain the reference samples from the external memory. The root cause is that the decoder cannot reconstruct the MV of the CU in the parsing phase.

[0088] According to the traditional TM-based GPM process disclosed in JVET-Y0135, the MV of the neighboring blocks (if the neighboring blocks are encoded and decoded in GPM mode) is unknown and the MV of the current block cannot be generated. Therefore, the reference samples cannot be loaded in the parsing stage. As is well known, in the field of video coding and decoding systems, reference pictures are usually stored in offline memories, such as DRAM (Dynamic Random Access Memory). Reference samples must be loaded into internal memory for processing. External memory access is usually slow and causes processing delays. The TM-based GPM must wait for the reconstruction phase to be completed so that the reconstructed adjacent templates are available and GPM reordering can be performed. After the GPM reordering is completed, the GPM selected for the current block can be determined based on the signaled GPM index and the reordered GPM list. After the selected GPM is determined for the current block, MVs can be assigned to the sub-blocks of the current block in the reconstruction phase.

[0089] Therefore, reference sample prefetching cannot be performed in the parsing stage, which results in long delays. In order to improve decoding throughput, the present application discloses a new method.

[0090] As described above, one of the reasons for the long delay in TM-based GPM is that the real MV selected from the merge list of the current block cannot be generated in the parsing phase, but must wait until the reconstruction phase. In the present invention, a method for creating or defining sub-block MV allocation is proposed for a codec tool that uses a decoder-side MV / mode derivation tool with GPM (such as template matching-based reordering in JVET-Y-135) or any MV allocation that depends on a process performed in the sample reconstruction phase. According to an embodiment of the present invention, when parsing the syntax of a GPM mode index that indicates which reordered partition mode to select, a predefined sub-block MV allocation method for a GPM mode can be determined without performing decoder-side MV / mode derivation. The predefined sub-block MV is referred to as a pseudo MV in the present disclosure. For example, Figure 3One of the partition modes in can be assigned to one or more decoded GPM syntaxes. After the GPM syntax is decoded, the pseudo partitions to which the subblock MVs are assigned are determined. Each subblock can select a corresponding MV (e.g., MV1 or MV2) based on the pseudo partition. The assigned MV can be used for MV reconstruction of adjacent blocks. In the sample reconstruction phase, the actual GPM partition is determined by MV / mode derivation at the decoder end. Therefore, in the reconstruction phase, the actual MV and the actual GPM are used. In addition, sample mixing is done using the correct GPM (actual GPM) partition mode, which is derived by MV / mode derivation and / or mode reordering at the decoder end. In the reconstruction phase, the real MV is used to reconstruct the samples of the current block. On the other hand, the MV assigned according to the present invention is a pseudo MV for a pseudo GPM. In other words, the assigned MV may be different from the MV used for reconstruction using motion compensation. However, the stored subblock MV is determined in a pseudo partition manner. In addition, the pseudo GPM may be different from the actual GPM selected according to the reordered GPM list. In another embodiment, the pseudo partition may be a fixed partition independent of the parsed GPM syntax. For example, we always use top-right to bottom-left partitioning, top-left to bottom-right partitioning, horizontally split top-down partitioning, or vertically split left-right partitioning for sub-block MV allocation. In another embodiment, when a decoder-side MV / mode derivation tool with GPM is applied, a fixed partitioning or pseudo-GPM is applied. Otherwise (i.e., when a decoder-side MV / mode derivation tool with GPM is not applied), the sub-block MVs will be allocated according to the selected GPM.

[0091] In another embodiment, for GPM partition signaling, some similar modes can be collected in one group. All GPM partitions can be divided into several groups. For each group, a predefined sub-block MV allocation is designed. The MV / mode derivation at the decoder end can reorder the modes in the same group. The reordered modes in each group can be further reallocated (for example, one or more modes in each group are adopted in an interleaved manner) to the final reordered mode syntax. Therefore, when parsing the GPM syntax, it can be known which group is selected. The corresponding MV allocation is also determined. In one example, the GPM mode syntax / index is divided into different groups (for example, the mode index can be divided into four groups, such as 4n, 4n+1, 4n+2, 4n+3. Or more generally, it is divided into M groups, such as Mn, Mn+1, Mn+2,...Mn+(M-1).). For each group, one or more sub-block MV allocation methods are predefined. Therefore, the sub-block MV can be allocated in the parsing stage or before the sample reconstruction stage. All GPM modes in a group are reordered by the decoder end MV / mode derivation.

[0092] In another embodiment, the GPM partition modes are classified / quantized into several groups. In each group, the exact GPM mode is derived by the MV / mode derivation at the decoder end. Therefore, it only needs to signal which group is selected in the bitstream. The decoder can determine the exact GPM partition mode through the decoder end MV / mode derivation. In each group, one or more sub-block MV allocation methods are predefined. Therefore, the sub-block MVs can be allocated in the parsing stage or before the sample reconstruction stage.

[0093] Any of the aforementioned methods can be implemented in an encoder and / or a decoder. For example, any of the methods proposed can be implemented in an inter-frame coding / decoding module (e.g. Figure 1A Inter-frame prediction 112 in the decoder), motion compensation module, merge / inter-frame candidate derivation module of the decoder (e.g. Figure 1B Alternatively, any one of the proposed methods may be implemented as a circuit coupled to an inter-frame coding and decoding module of an encoder and / or a motion compensation module, a merging / inter-frame candidate derivation module of a decoder.

[0094] Figure 7 A flowchart of an exemplary video decoding system using a low-delay geometric partitioning mode according to an embodiment of the present invention is shown. The steps shown in the flowchart can be implemented as program codes that can be executed on one or more processors (e.g., one or more CPUs) on the encoder 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, encoded data associated with a current block is received in step 710. A pseudo GPM in a target GPM group is determined for the current block in step 720. The current block is divided into one or more sub-blocks in step 730. The assigned MV (motion vector) of each sub-block is determined in step 740 according to the pseudo GPM. The cost of each GPM in the target GPM group is determined according to the decoded data in step 750. In step 760, a selected GPM is determined based on the mode syntax and the reordered target GPM group, the reordered target GPM group corresponding to the target GPM group reordered according to the cost, wherein the pseudo GPM is allowed to be different from the selected GPM. The encoded data is decoded using information including the selected GPM in step 770. In one embodiment, the cost in step 750 may be a template matching (TM) cost, and it may be derived between a reference template of a reference block of a current block using an assigned MV and a neighboring template of the current block. In another embodiment, the cost in step 750 may be a boundary matching cost, and it may be derived between a reference block of a current block and a neighboring template of the current block.

[0095] Figure 8 A flow chart of an exemplary video encoding system using a low-delay geometric partitioning mode according to an embodiment of the present invention is shown. According to the method, pixel data associated with a current block is received in step 810. The cost of each GPM in the target GPM group is determined based on the decoded data in step 820. A reordered target GPM group of the GPMs in the target GPM group is generated based on the cost in step 830. The GPM selected for the current block is determined in step 840. The mode syntax is determined based on the position of the selected GPM in the reordered target GPM group in step 850. The current block is divided into one or more sub-blocks in step 860. A pseudo-GPM in the target GPM group of the current block is determined based on the mode syntax in step 870. In step 880, an assigned MV (motion vector) of each sub-block is determined based on the pseudo-GPM, wherein the pseudo-GPM is allowed to be different from the selected GPM. The current block is encoded using information including the selected GPM in step 890.

[0096] The flowchart shown is intended to illustrate an example of video coding 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 the present disclosure, specific syntax and semantics have been used to illustrate examples to implement embodiments of the present invention. Without departing from the spirit of the present invention, a technician may implement the present invention by replacing syntax and semantics with equivalent syntax and semantics.

[0097] The above description is provided to enable the art to have a person of ordinary knowledge to practice the present invention provided in the context of a specific application and its requirements. Various modifications to the described embodiments will be apparent to the art to have a person of ordinary knowledge, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the specific embodiments shown and described, but to conform to the widest scope consistent with the principles and novel features disclosed herein. In the above detailed description, various specific details are illustrated to provide a thorough understanding of the present invention. However, those skilled in the art will appreciate that the present invention may be implemented.

[0098] The embodiments of the present invention as described above can be implemented in various hardware, software codes or a combination of the two. For example, one embodiment of the present invention can be one or more circuits integrated into a video compression chip or a program code integrated into the video compression software to perform the processing described herein. The embodiments 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 be related to 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 codes or firmware codes that define the specific methods embodied by 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, the different code formats, styles and languages ​​of the software code and other ways of configuring the code to perform tasks according to the present invention will not depart from the spirit and scope of the present invention.

[0099] The invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described examples should be considered in all respects as illustrative and not restrictive. Therefore, the scope of the invention is indicated by the appended claims rather than by the foregoing description. All changes that fall within the meaning and scope of the equivalents of the claims should be included within their scope.

Claims

1. A video decoding method, the method comprising: receiving encoded data associated with a current block; Determine a pseudo GPM in a target GPM group for the current block; Dividing the current block into one or more sub-blocks; Determine an allocated MV for each sub-block according to the pseudo GPM; Determine the cost of each GPM in the target GPM group based on the decoded data; determining a selected GPM based on a pattern syntax and a reordered target GPM group, wherein the reordered target GPM group corresponds to the target GPM group reordered according to the cost, wherein the dummy GPM is allowed to be different from the selected GPM; and The encoded data is decoded using information including the selected GPM. 2 . The video decoding method according to claim 1 , further comprising parsing the mode syntax from a bitstream including the encoded data of the current block.

3. The video decoding method according to claim 1, wherein the cost is derived between the reference template of the reference block of the current block and the neighboring template of the current block using the MV candidates selected by one or more GPM modes and the GPM of the target test.

4. The video decoding method according to claim 1, wherein: The target GPM group includes all GPMs in the GPM list.

5. The video decoding method according to claim 1, wherein: All GPMs in the GPM list are divided into a plurality of GPM groups, and the target GPM group corresponds to one of the plurality of GPM groups.

6. The video decoding method according to claim 5, wherein: The plurality of GPM groups corresponds to M groups, where M is an integer greater than one. 7 . The video decoding method according to claim 5 , wherein a GPM group syntax is parsed from a bit stream of the encoded data including the current block, and wherein the GPM group syntax indicates the target GPM group among the plurality of GPM groups.

8. The video decoding method according to claim 5, wherein the information related to one of the plurality of GPM groups is parsed from a bit stream including the encoded data of the current block.

9. The video decoding method according to claim 1, wherein the mode syntax is parsed from a bit stream of the encoded data including the current block.

10. The video decoding method according to claim 5, wherein the mode syntax is determined implicitly.

11. A video encoding method, the method comprising: receiving pixel data associated with a current block; Determine the cost of each GPM in the target GPM group based on the decoded data; generating a reordered target GPM group for the GPMs in the target GPM group according to the cost; Determine the selected GPM for the current block; determining a pattern syntax according to a position of the selected GPM in the reordered target GPM group; Dividing the current block into one or more sub-blocks; Determine a pseudo GPM in the target GPM group for the current block according to the mode syntax; determining an allocated MV for each sub-block according to the pseudo GPM, wherein the pseudo GPM is allowed to be different from the selected GPM; and The current block is encoded using information including the selected GPM.

12. The video encoding method of claim 11, further comprising signaling the mode syntax from a bitstream comprising encoded data for the current block.

13. A video decoding apparatus, the apparatus comprising one or more electronic devices or processors, configured to: receiving encoded data associated with a current block; Determine a pseudo GPM in a target GPM group for the current block; Dividing the current block into one or more sub-blocks; Determine an allocated MV for each sub-block according to the pseudo GPM; Determine the cost of each GPM in the target GPM group based on the decoded data; determining a selected GPM based on a pattern syntax and a reordered target GPM group, wherein the reordered target GPM group corresponds to the target GPM group reordered according to the cost, wherein the dummy GPM is allowed to be different from the selected GPM; and The encoded data is decoded using information including the selected GPM.

14. The video decoding device of claim 13, wherein: The one or more electronic devices or processors are further arranged to parse the mode syntax from a bitstream comprising the encoded data of the current block.