WO2021052369A1 - 一种解码、编码方法、装置及其设备 - Google Patents

一种解码、编码方法、装置及其设备 Download PDF

Info

Publication number
WO2021052369A1
WO2021052369A1 PCT/CN2020/115634 CN2020115634W WO2021052369A1 WO 2021052369 A1 WO2021052369 A1 WO 2021052369A1 CN 2020115634 W CN2020115634 W CN 2020115634W WO 2021052369 A1 WO2021052369 A1 WO 2021052369A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
value
flag bit
current block
flag
Prior art date
Application number
PCT/CN2020/115634
Other languages
English (en)
French (fr)
Inventor
陈方栋
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Priority to EP20864976.4A priority Critical patent/EP4033759A4/en
Priority to US17/762,003 priority patent/US20220345736A1/en
Publication of WO2021052369A1 publication Critical patent/WO2021052369A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/109Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/184Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being bits, e.g. of the compressed video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding

Definitions

  • This application relates to the field of image processing technology, in particular to a decoding and encoding method, device and equipment.
  • a complete video encoding method can include processes such as prediction, transformation, quantization, entropy encoding, and filtering.
  • predictive coding may include intra-frame coding and inter-frame coding.
  • inter-frame coding utilizes the correlation of the video time domain to predict the current pixel using pixels adjacent to the coded image, so as to effectively remove the video time domain redundancy.
  • Intra-frame coding refers to using the correlation of the video space domain to predict the current pixel using the pixels of the coded block of the current frame image to achieve the purpose of removing the video spatial domain redundancy.
  • the encoding end selects a prediction mode from multiple prediction modes as the target prediction mode, and uses the target prediction mode to encode the current block.
  • the encoded bit stream includes the indication information of the target prediction mode.
  • the decoding end determines the target prediction mode based on the indication information, and decodes the current block according to the target prediction mode.
  • the indication information of the target prediction mode is carried in the coded bitstream, multiple bits may be required to indicate the target prediction mode.
  • the number of bits is large, the coding overhead is relatively large, the coding performance is relatively poor, and the decoding efficiency is relatively low.
  • This application provides a decoding and encoding method, device and equipment, which can improve encoding performance.
  • the present application provides a decoding method, which includes:
  • the prediction mode flag bit information includes the value of the flag bit of at least one of the N candidate prediction modes.
  • the value of the flag bit is the first value
  • use when instructing to enable the candidate prediction mode, when the value of the flag bit is the second value, it is used to indicate not to enable the candidate prediction mode; wherein the flag bit for each candidate prediction mode takes a value, if the The current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, and the value of the flag bit is read from the flag bit indication information carried in the coded bitstream of the current block whether the candidate prediction mode is enabled or not. If the current block does not meet the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit is the derived value of the flag bit of the candidate prediction mode;
  • the current block is decoded according to the target prediction mode.
  • This application provides an encoding method, which includes:
  • the prediction mode flag information includes the value of the flag bit of at least one candidate prediction mode among the N candidate prediction modes, and the flag When the value of the bit is the first value, it is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be enabled;
  • the current block is encoded according to the prediction mode flag bit information; wherein, for the flag bit value of each candidate prediction mode included in the prediction mode flag bit information, if the current block conforms to the candidate prediction mode
  • the decoding condition for the value of the flag bit is carried in the coded bit stream of the current block to indicate whether to enable the flag bit of the candidate prediction mode; if the current block does not conform to the decoding of the flag bit value of the candidate prediction mode Condition, the coding bit stream of the current block does not carry the flag indicating information whether to enable the candidate prediction mode.
  • the present application provides a decoding device, which includes:
  • the first determining module is configured to determine the prediction mode flag information of the current block, where the prediction mode flag information includes the flag bit value of at least one candidate prediction mode among the N candidate prediction modes, and the flag bit value is When the first value is used, it is used to indicate that the candidate prediction mode is enabled, and when the flag bit value is the second value, it is used to indicate that the candidate prediction mode is not to be enabled; wherein, a flag for each candidate prediction mode Bit value, if the current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, the flag bit value is the value of whether the candidate prediction mode is enabled or not carried in the coded bit stream of the current block The flag bit indication information is read; if the current block does not meet the decoding condition of the flag bit value of the candidate prediction mode, the flag bit value is the derived flag bit value of the candidate prediction mode;
  • a second determining module configured to determine the target prediction mode enabled by the current block according to the prediction mode flag information, where the target prediction mode is one of the N candidate prediction modes;
  • the decoding module is configured to decode the current block according to the target prediction mode.
  • the present application provides an encoding device, which includes:
  • the first determining module is configured to determine the target prediction mode enabled for the current block, where the target prediction mode is one of the N candidate prediction modes of the current block;
  • the second determining module is configured to determine the prediction mode flag information of the current block according to the target prediction mode; the prediction mode flag information includes the flag of at least one candidate prediction mode among the N candidate prediction modes When the value of the flag bit is the first value, it is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be enabled ;
  • the encoding module is configured to encode the current block according to the prediction mode flag bit information; wherein, for the flag bit value of each candidate prediction mode included in the prediction mode flag bit information, if the current block matches The decoding condition for the value of the flag bit of the candidate prediction mode is carried in the encoded bit stream of the current block to indicate whether the flag bit of the candidate prediction mode is enabled; if the current block does not meet the flag of the candidate prediction mode The decoding condition of the bit value does not carry the flag indicating information of whether to enable the candidate prediction mode in the coded bit stream of the current block.
  • the present application provides a decoding end device, including: a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor;
  • the processor is used to execute machine executable instructions to implement the following steps:
  • the prediction mode flag bit information includes the value of the flag bit of at least one of the N candidate prediction modes.
  • the value of the flag bit is the first value
  • use when instructing to enable the candidate prediction mode, when the value of the flag bit is the second value, it is used to indicate not to enable the candidate prediction mode; wherein the flag bit for each candidate prediction mode takes a value, if the The current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, and the value of the flag bit is read from the flag bit indication information carried in the coded bitstream of the current block whether the candidate prediction mode is enabled or not. If the current block does not meet the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit is the derived value of the flag bit of the candidate prediction mode;
  • the current block is decoded according to the target prediction mode.
  • the present application provides an encoding terminal device, including: a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor;
  • the processor is used to execute machine executable instructions to implement the following steps:
  • the target prediction mode is one of the N candidate prediction modes of the current block; determine the prediction mode flag information of the current block according to the target prediction mode; the prediction The mode flag information includes the value of the flag bit of at least one of the N candidate prediction modes.
  • the value of the flag bit is the first value, it is used to indicate that the candidate prediction mode is enabled.
  • the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be activated;
  • the current block is encoded according to the prediction mode flag bit information; wherein, for the flag bit value of each candidate prediction mode included in the prediction mode flag bit information, if the current block conforms to the candidate prediction mode
  • the decoding condition for the value of the flag bit is carried in the coded bit stream of the current block to indicate whether to enable the flag bit of the candidate prediction mode; if the current block does not conform to the decoding of the flag bit value of the candidate prediction mode Condition, the coding bit stream of the current block does not carry the flag indicating information whether to enable the candidate prediction mode.
  • the value of the flag bit of each candidate prediction mode is selected. If the current block does not meet the value of the flag bit value of the candidate prediction mode Decoding conditions, the value of the flag bit is derived from the value of the flag bit of the candidate prediction mode, rather than being parsed from the coded bitstream, that is, there is no need to carry the value of the flag bit of the candidate prediction mode in the coded bitstream , Thereby reducing the number of bits in the coded bitstream, reducing coding overhead, improving coding performance, simplifying the process of decoding the prediction mode, and improving the efficiency of the decoding prediction mode.
  • FIG. 1 is a schematic diagram of a video coding framework in an implementation manner of the present application
  • Fig. 2 is a flowchart of a decoding method in an embodiment of the present application
  • Fig. 3 is a flowchart of an encoding method in an embodiment of the present application.
  • 4A-4J are schematic diagrams of a coding and decoding method for a prediction mode flag in an embodiment of the present application.
  • FIG. 5A is a structural diagram of a decoding device in an embodiment of the present application.
  • FIG. 5B is a structural diagram of an encoding device in an embodiment of the present application.
  • FIG. 6A is a structural diagram of a decoding end device in an embodiment of the present application.
  • Fig. 6B is a structural diagram of an encoding end device in an implementation manner of the present application.
  • the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • first information may also be referred to as second information
  • second information may also be referred to as first information.
  • word "if” used can be interpreted as "when", or "when”, or "in response to determination”.
  • Intra prediction and inter prediction refers to the use of the correlation of the video space domain to predict the current pixel using the pixels of the coded block of the current image to achieve the removal of video spatial redundancy purpose.
  • Inter-frame prediction refers to the use of video temporal correlation. Since the video sequence contains strong temporal correlation, the neighboring coded image pixels are used to predict the pixels of the current image to achieve the purpose of effectively removing video temporal redundancy.
  • the inter-frame prediction part of the main video coding standards adopts block-based motion compensation technology. The main principle is to find the best matching block in the previously encoded image for each pixel block of the current image. This process is called Motion Estimation (Motion Estimation). Estimation, ME).
  • Motion Vector In inter-frame coding, a motion vector can be used to represent the relative displacement between the current coding block and the best matching block in the reference image. Each divided block has a corresponding motion vector that needs to be transmitted to the decoding end. If the motion vector of each block is encoded and transmitted independently, especially when it is divided into small-sized blocks, it will consume a lot of bits. In order to reduce the number of bits used to code the motion vector, the spatial correlation between adjacent image blocks can be used to predict the motion vector of the current block to be coded based on the motion vector of the adjacent coded block, and then the prediction difference Encode. In this way, the number of bits representing the motion vector can be effectively reduced.
  • the motion vector of the adjacent coded block is used to predict the motion vector of the current block, and then the motion vector prediction value (MVP, Motion Vector Prediction) and the real motion vector can be predicted.
  • MVP Motion Vector Prediction
  • the difference between the estimates (MVD, Motion Vector Difference) is encoded, thereby effectively reducing the number of MV encoding bits.
  • Motion Information Since the motion vector represents the position offset between the current image block and a reference image block, in order to accurately obtain the information pointing to the image block, in addition to the motion vector, the index information of the reference frame image is also required to indicate the use Which reference frame image.
  • a reference frame image list can usually be established, and the reference frame image index information indicates which reference frame image in the reference frame image list is used by the current image block.
  • many coding technologies also support multiple reference image lists. Therefore, an index value can also be used to indicate which reference image list is used, and this index value can be referred to as a reference direction.
  • motion-related information such as motion vector, reference frame index, and reference direction can be collectively referred to as motion information.
  • SSE refers to the average difference between the reconstructed image block and the source image Square sum; ⁇ is the Lagrangian multiplier, and R is the actual number of bits required for image block coding in this mode, including the sum of the number of bits required for coding mode information, motion information, residuals, etc.
  • Video encoding framework As shown in Figure 1, the video encoding framework can be used to implement the encoding end processing flow of the embodiment of the present application.
  • the schematic diagram of the video decoding framework is similar to that of Figure 1, which will not be repeated here, and the video decoding framework can be used. Realize the decoding end processing flow of the embodiment of the present application.
  • the video coding framework and the video decoding framework it may include intra prediction, motion estimation/motion compensation, reference image buffer, in-loop filtering, reconstruction, transformation, quantization, inverse transformation, inverse quantization, entropy encoder, etc. Module.
  • the encoding end processing flow can be realized, and at the decoding end, through the cooperation between these modules, the decoding end processing flow can be realized.
  • Flag coding In video coding, there are many prediction modes, such as common fusion mode, sub-block fusion mode, etc. For a certain block, a certain prediction mode may be used. In order to indicate which prediction mode is adopted, each block needs to be marked by encoding the corresponding flag bit. That is, at the encoding end, the value of the flag bit can be determined, and then the flag bit can be encoded and passed to the decoding end. At the decoding end, by parsing the flag bit, it is determined whether the corresponding prediction mode is enabled.
  • the fusion mode can include: normal fusion mode (that is, Normal Merge mode), sub-block fusion mode (that is, the fusion mode that uses sub-block motion information, which can be called Subblock fusion mode, which is referred to as sub-block fusion mode in this article) ), MMVD mode (that is, the fusion mode of coded motion difference, which can be called merge with MVD mode, which is referred to as MMVD mode in this article), and CIIP mode (that is, the fusion mode in which new prediction values are jointly generated by inter-frame and intra-frame prediction, which can be called combine inter intraprediciton mode, referred to as CIIP mode in this article), TPM mode (i.e.
  • fusion mode for triangular prediction can be referred to as triangular prediction mode, referred to in this article as TPM mode), GEO mode (i.e. fusion mode based on arbitrary geometrical divisions, which can be It is called Geometrical Partitioning, this article referred to as GEO mode).
  • TPM mode triangular prediction mode
  • GEO mode i.e. fusion mode based on arbitrary geometrical divisions, which can be It is called Geometrical Partitioning, this article referred to as GEO mode).
  • the skip mode is a special fusion mode. The difference between the skip mode and the fusion mode is that the skip mode does not require coding residuals. If the current block is in skip mode, the CIIP mode is closed by default, and the normal fusion mode, sub-block fusion mode, MMVD mode, TPM mode, and GEO mode are still applicable.
  • the predicted value it is possible to determine how to generate the predicted value based on the normal fusion mode, the sub-block fusion mode, the MMVD mode, the CIIP mode, the TPM mode, the GEO mode, etc.
  • the predicted value and residual value can be used to obtain the reconstructed value; for the skip mode, there is no residual value, and the predicted value is directly used to obtain the reconstructed value.
  • the current frame can be an I frame; if the current frame is allowed to reference the information of a certain other frame (but not more than 1 frame) for encoding, the current frame The frame can be a P frame; if the current frame allows reference to the information of a certain 1 frame or a certain 2 frames for encoding, the current frame can be a B frame.
  • Sequence parameter set In the sequence parameter set, there is a flag bit that determines whether certain tool switches are allowed in the entire sequence. If the flag bit is 1, the tool corresponding to the flag bit is allowed to be activated in the video sequence; if the flag bit is 0, the tool corresponding to the flag bit is not allowed to be activated during the encoding process in the video sequence.
  • Normal fusion mode select one motion information from the candidate motion information list, and generate the prediction value of the current block based on the motion information.
  • the candidate motion information list includes: spatial neighboring block candidate motion information, temporal neighboring block candidate motion information, Candidate motion information of spatial non-adjacent blocks, motion information obtained by combining existing motion information, default motion information, etc.
  • MMVD mode Based on the candidate motion information list of the normal fusion mode, select one motion information from the candidate motion information list of the normal fusion mode as the reference motion information, and obtain the difference of the motion information through the table look-up method. The final motion information is obtained based on the difference between the reference motion information and the motion information, and the prediction value of the current block is generated based on the final motion information.
  • Sub-block fusion mode includes Affine fusion mode and sub-block TMVP mode.
  • the Affine (affine) fusion mode similar to the normal fusion mode, also selects a motion information from the candidate motion information list, and generates the prediction value of the current block based on the motion information.
  • the motion information in the candidate motion information list of the normal fusion mode is a 2-parameter translation motion vector
  • the motion information in the candidate motion information list of the Affine fusion mode is 4-parameter Affine motion information, or , 6-parameter Affine motion information.
  • TMVP subblock-based temporal motion vector prediction
  • the new prediction value of the current block is obtained by combining the intra-frame prediction value and the inter-frame prediction value.
  • TPM mode Divide a block into two triangular sub-blocks (there are two triangular sub-blocks of 45 degrees and 135 degrees). The two triangular sub-blocks have different unidirectional motion information.
  • the TPM mode is only used for the prediction process and does not affect In the subsequent transformation and quantization process, the one-way motion information here is also directly obtained from the candidate motion information list.
  • the GEO mode is similar to the TPM mode, but the shape of the division is different.
  • the GEO mode divides a square block into two sub-blocks of any shape (any other shape except the shape of the two triangular sub-blocks of the TPM), such as a triangular sub-block, a pentagonal sub-block; or, a triangular sub-block , One quadrilateral sub-block; or, two trapezoidal sub-blocks, etc. There is no restriction on the shape of this division.
  • the two sub-blocks divided by GEO mode have different unidirectional motion information.
  • the fusion mode and skip mode involved in this embodiment refer to a type of prediction mode that directly selects a motion information from the candidate motion information list to generate the prediction value of the current block.
  • These prediction modes There is no need to perform a motion search process at the encoding end. Except for the MMVD mode, other modes do not need to encode the motion information difference.
  • the encoder needs to select a prediction mode from multiple prediction modes (such as normal fusion mode, MMVD mode, CIIP mode, TPM mode, sub-block fusion mode, etc.) as the target prediction mode.
  • the target prediction mode is Sub-block fusion mode, and use the sub-block fusion mode to encode the current block.
  • the encoded bit stream may include indication information of the sub-block fusion mode, such as 0001, and 0001 indicates the sub-block fusion mode.
  • the decoding end After receiving the coded bitstream, the decoding end parses the indication information 0001 from the coded bitstream, determines that the target prediction mode is the sub-block fusion mode based on the indication information, and decodes the current block according to the sub-block fusion mode.
  • the above method requires 4 bits to indicate the sub-block fusion mode, and the number of bits is large, the coding overhead is large, and the coding performance is poor.
  • a mode may be enabled only when all conditions are met, that is, its flag bits need to be encoded, and these conditions are encoded in the first mode ( That is, when the flag bit in front of the encoding can be known in the normal fusion mode, the encoding of the flag bit of the current mode can be skipped according to these conditions to save the bit rate overhead.
  • Table 1B and Table 1C that the normal fusion mode requires only 1 bit, while the sub-block fusion mode requires 3 bits. According to the inventor’s analysis, the probability of using the sub-block fusion mode is often greater than that of the normal fusion mode. Probability, therefore, performing flag bit encoding in the manner shown in Table 1B or Table 1C will cause the average code length of the flag bit encoding of these modes to be relatively large.
  • MMVD mode flag MMVD mode flag
  • Sub-block fusion mode flag CIIP mode flag Ordinary Fusion Mode 1 - - - MMVD mode 0 1 - - Sub-block fusion mode 0 0 1 - CIIP mode 0 0 0 1 TPM mode 0 0 0 0 0
  • MMVD mode flag MMVD mode flag
  • Sub-block fusion mode flag Ordinary Fusion Mode 1 - - MMVD mode 0 1 -
  • the prediction mode with a higher probability of use is prioritized for encoding, and the prediction mode with a lower probability of use is post-encoded, so that a smaller number of flag bit encoding bits can be used as a whole.
  • the sub-block fusion mode is a prediction mode with a higher probability of use
  • "1" may be used to indicate the sub-block fusion mode. Since the sub-block fusion mode has a high probability of use, the coded bit stream has a high probability of carrying "1", thereby reducing the number of bits in the coded bit stream, reducing coding overhead, and improving coding performance.
  • the CIIP mode is a prediction mode with a low probability of use
  • the CIIP mode can be represented by "0001".
  • the small probability of the coded bitstream carries "0001".
  • a certain prediction mode may be activated only when all the conditions are met, that is, the flag bit needs to be coded, and these conditions can be known when the first prediction mode is coded.
  • the coding of the flag bit of the current prediction mode can be skipped according to these conditions to save bit rate overhead.
  • the flag bit of the normal fusion mode may not be encoded.
  • the decoder knows that the MMVD mode, CIIP mode, TPM mode, and sub-block fusion mode are not supported based on the current conditions, so it can only enable the normal fusion mode.
  • the decoder can push the value of the flag bit of the normal fusion mode to 1, thereby reducing the number of bits in the coded bit stream and improving the coding performance.
  • Embodiment 1 As shown in Figure 2, it is a schematic flowchart of a decoding method, which can be applied to the decoding end, and the method includes:
  • Step 201 Determine prediction mode flag information of the current block.
  • the prediction mode flag information includes the value of the flag bit of at least one of the N candidate prediction modes. When the flag value is the first value, It is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be enabled.
  • Step 201 is equivalent to determining the activation status of at least one candidate prediction mode among the N candidate prediction modes of the current block.
  • the decoding end can predict from the N candidate prediction modes according to the activation status of at least one candidate prediction mode among the N candidate prediction modes.
  • the target prediction mode enabled for the current block is determined in the mode.
  • the activation status of at least one candidate prediction mode among the N candidate prediction modes can be understood as the activation status of one or more candidate prediction modes among the N candidate prediction modes, and is not limited to the activation status of all candidate prediction modes.
  • the value of the flag bit of any candidate prediction mode included in the prediction mode flag bit information if the current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit may be It is read from the flag indicating whether to enable the candidate prediction mode carried in the coded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag of the candidate prediction mode, the value of the flag can be the derived value of the flag bit of the candidate prediction mode, and the derived flag bit of the candidate prediction mode takes The value can be pre-configured on the encoding end and the decoding end.
  • the first value may be 1, which is used to indicate that the candidate prediction mode is enabled, and the second value may be 0, which is used to indicate that the candidate prediction mode is not to be enabled; or conversely, the first value may be 0, It is used to indicate that the candidate prediction mode is enabled, and the second value may be 1, which is used to indicate that the candidate prediction mode is not to be enabled.
  • the first value may be a
  • the second value may be b
  • the first value is 1
  • the second value is 0 as an example. That is, the value of the flag bit in the subsequent embodiments is 1, which means that the value of the flag bit is the first.
  • the value of the flag bit in the subsequent embodiments is 0, which means that the value of the flag bit is the second value.
  • the three candidate prediction modes may be recorded as candidate prediction mode 1, candidate prediction mode 2, and candidate prediction mode 3, respectively.
  • the value of the flag bit of candidate prediction mode 1 if the current block meets the decoding condition for the value of the flag bit of candidate prediction mode 1, the value of the flag bit is whether to enable the candidate prediction mode carried in the coded bit stream of the current block
  • the flag of 1 indicates that the information is read. For example, if the flag indicating whether to enable candidate prediction mode 1 carried in the encoded bitstream includes a value of 0, the value of the flag bit for candidate prediction mode 1 is 0; if the encoded bitstream carries whether to enable candidate prediction mode
  • the flag bit indication information of 1 includes the value 1, and the flag bit of the candidate prediction mode 1 takes the value 1.
  • the value of the flag bit is the derived value of the flag bit of the candidate prediction mode 1.
  • the value of the flag bit of the candidate prediction mode 1 is directly derived to be 1 or 0.
  • the value of the flag bit of candidate prediction mode 2 if the current block meets the decoding condition for the value of the flag bit of candidate prediction mode 2, the value of the flag bit is whether to enable the candidate prediction mode carried in the coded bit stream of the current block The 2 flag indicates the information to be read. If the current block does not meet the decoding condition for the value of the flag bit of the candidate prediction mode 2, the value of the flag bit is the derived value of the flag bit of the candidate prediction mode 2. Regarding the value of the flag bit of candidate prediction mode 3, if the current block meets the decoding condition for the value of the flag bit of candidate prediction mode 3, the value of the flag bit is whether to enable the candidate prediction mode carried in the coded bit stream of the current block The flag of 3 indicates that the information is read. If the current block does not meet the decoding condition for the value of the flag bit of the candidate prediction mode 3, the value of the flag bit is the derived value of the flag bit of the candidate prediction mode 3.
  • the N candidate prediction modes include but are not limited to at least one of the following: sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode.
  • sub-block fusion mode normal fusion mode
  • MMVD mode normal fusion mode
  • CIIP mode CIIP mode
  • TPM mode TPM mode
  • GEO mode GEO mode
  • determining the prediction mode flag information of the current block may include, but is not limited to: determining the prediction mode flag information according to the acquisition order of the flag values of the N candidate prediction modes.
  • the order in which the flag bit values of the N candidate prediction modes are obtained can be sequentially as follows: sub-block fusion The value of the flag bit of the mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • sub-block fusion The value of the flag bit of the mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the acquisition order may also be: the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the acquisition sequence may also be: the value of the flag bit of the MMVD mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the CIIP mode.
  • the order of obtaining flag bit values of the N candidate prediction modes may be as follows: The value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode are only an example, and other acquisition sequences can also be used, which is not limited.
  • the acquisition order from front to back can also be: the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the GEO mode.
  • the value of the flag bit can also be: the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the GEO mode.
  • the N candidate prediction modes may also include other possibilities.
  • the N candidate prediction modes include sub-block fusion mode, normal fusion mode, and MMVD mode; for another example, N candidate prediction modes include sub-block fusion mode, normal Fusion mode, CIIP mode, there is no restriction on the N candidate prediction modes, and can be set according to actual needs.
  • the determination of the prediction mode flag information according to the order in which the values of the flag bits of the N candidate prediction modes are obtained may include, but is not limited to, the following manner: based on the value of the flag bits of the N candidate prediction modes After obtaining the value of the flag bit of the current candidate prediction mode, determine whether to obtain the flag bit value of the candidate prediction mode following the current candidate prediction mode according to the value of the flag bit of the current candidate prediction mode.
  • the flag bit value of candidate prediction mode 1 For example, suppose the order of obtaining the flag bit values of N candidate prediction modes is from front to back: the flag bit value of candidate prediction mode 1, the flag bit value of candidate prediction mode 2 and the flag bit value of candidate prediction mode 3 value. After obtaining the value of the flag bit of the candidate prediction mode 1, it can be determined whether to obtain the flag bit value of the candidate prediction mode 2 and the flag bit value of the candidate prediction mode 3 according to the value of the flag bit of the candidate prediction mode 1. After obtaining the value of the flag bit of the candidate prediction mode 2, according to the value of the flag bit of the candidate prediction mode 2, it is determined whether to obtain the value of the flag bit of the candidate prediction mode 3.
  • the flag bit value of the sub-block fusion mode For another example, suppose the order of obtaining the flag bit values of the N candidate prediction modes is from front to back: the flag bit value of the sub-block fusion mode, the flag bit value of the normal fusion mode, and the flag bit value of the MMVD mode.
  • the value of the flag bit in CIIP mode After obtaining the value of the flag bit of the sub-block fusion mode, you can determine whether to obtain the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the flag bit of the CIIP mode according to the value of the flag bit of the sub-block fusion mode. Value.
  • the value of the flag bit value of the flag bit value of the fusion mode can be determined to determine whether to obtain the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and so on. This will not be repeated here.
  • the value of the flag bit of the sub-block fusion mode if the current block meets the decoding condition for the value of the flag bit of the sub-block fusion mode, the value of the flag bit is whether to enable the sub-block fusion mode carried in the coded bit stream of the current block
  • the flag bit indicates that the information is read. For example, if the flag indicating whether to enable the sub-block fusion mode carried in the coded bit stream includes a value of 0, the value of the flag bit of the sub-block fusion mode is 0; if the bit stream carried in the coded bit stream is whether to enable sub-block fusion
  • the flag bit indication information of the mode includes the value 1, and the flag bit of the sub-block fusion mode takes the value 1.
  • the value of the flag bit is the derived value of the flag bit of the sub-block fusion mode.
  • the value of the flag bit of the sub-block fusion mode is directly derived to be 1 or 0.
  • the value of the flag bit of the sub-block fusion mode is 1, it is used to indicate that the sub-block fusion mode is enabled; when the value of the flag bit of the sub-block fusion mode is 0, it is used to indicate that the sub-block fusion mode is not enabled.
  • the value of the flag bit of the normal fusion mode if the current block meets the decoding conditions for the value of the flag bit of the normal fusion mode, the value of the flag bit is the flag bit carried from the coded bit stream of the current block whether the normal fusion mode is enabled or not. Read in the instructions. For example, if the flag indicating whether to enable the normal fusion mode carried in the coded bitstream includes a value of 0, the flag bit of the normal fusion mode takes the value 0; if the flag carried in the coded bitstream indicates whether the normal fusion mode is enabled If the bit indication information includes the value 1, the flag bit of the normal fusion mode takes the value 1.
  • the value of the flag bit is the derived value of the flag bit of the normal fusion mode.
  • the flag bit of the normal fusion mode is directly derived to be 1 or 0.
  • the flag bit of the normal fusion mode is 1, it is used to indicate that the normal fusion mode is enabled; when the flag bit of the normal fusion mode is 0, it is used to indicate that the normal fusion mode is not enabled.
  • the value of the flag bit of the MMVD mode if the current block meets the decoding condition for the value of the flag bit of the MMVD mode, the value of the flag bit is taken from the flag bit indication information of whether to enable the MMVD mode carried in the coded bit stream of the current block Read. For example, if the flag indicating whether to enable the MMVD mode carried in the encoded bit stream includes a value of 0, the value of the flag bit in the MMVD mode is 0; if the flag indicating whether to enable the MMVD mode carried in the encoded bit stream indicates information If the value 1 is included in the MMVD mode, the value of the flag bit in the MMVD mode is 1.
  • the value of the flag bit is the derived value of the flag bit of the MMVD mode.
  • the value of the flag bit of the MMVD mode is directly derived to be 1 or 0.
  • the value of the flag bit of the MMVD mode is 1, it is used to indicate that the MMVD mode is enabled; when the value of the flag bit of the MMVD mode is 0, it is used to indicate that the MMVD mode is not enabled.
  • the value of the flag bit of the CIIP mode if the current block meets the decoding condition for the value of the flag bit of the CIIP mode, the value of the flag bit can be the flag bit indicating whether the CIIP mode is enabled or not carried from the coded bit stream of the current block Information read. For example, if the flag indicating whether to enable the CIIP mode carried in the coded bit stream includes a value of 0, the value of the flag bit of the CIIP mode can be 0; if the coded bit stream carries the flag of whether to enable the CIIP mode If the bit indication information includes a value of 1, the value of the flag bit of the CIIP mode can be 1.
  • the value of the flag bit is the derived value of the flag bit of the CIIP mode.
  • the value of the flag bit of the CIIP mode is directly derived to be 1 or 0.
  • the value of the flag bit of the CIIP mode is 1, it is used to indicate that the CIIP mode is enabled; when the value of the flag bit of the CIIP mode is 0, it is used to indicate that the CIIP mode is not enabled.
  • the value of the flag bit of GEO mode if the current block meets the decoding condition for the value of the flag bit of GEO mode, the value of the flag bit can be the flag bit indication whether the GEO mode is enabled or not carried from the coded bit stream of the current block. Information read. For example, if the flag indicating whether the GEO mode is enabled in the coded bitstream includes a value of 0, the value of the GEO mode flag can be 0; if the coded bitstream carries the flag of whether to enable the GEO mode If the bit indication information includes the value 1, then the flag bit of the GEO mode can take the value 1.
  • the value of the flag bit is the derived value of the flag bit of the GEO mode.
  • the flag bit of GEO mode is directly derived to be 1 or 0.
  • the value of the flag bit of the GEO mode is 1, it is used to indicate that the GEO mode is enabled; when the value of the flag bit of the GEO mode is 0, it is used to indicate that the GEO mode is not enabled.
  • Step 202 Determine the target prediction mode enabled for the current block according to the prediction mode flag information.
  • the activation status of one or more candidate prediction modes among the N candidate prediction modes can be obtained, and then the activation status of these candidate prediction modes and the pre-configured strategy are used to determine Which candidate prediction mode is the target prediction mode of the current block?
  • step 203 the current block is decoded according to the target prediction mode, and the decoding process is not limited.
  • the value of the flag bit of each candidate prediction mode is selected. If the current block does not meet the value of the flag bit value of the candidate prediction mode Decoding conditions, the value of the flag bit is derived from the value of the flag bit of the candidate prediction mode, rather than being parsed from the coded bitstream, that is, there is no need to carry the value of the flag bit of the candidate prediction mode in the coded bitstream , Thereby reducing the number of bits in the coded bitstream, reducing coding overhead, improving coding performance, simplifying the process of decoding the prediction mode, and improving the efficiency of the decoding prediction mode.
  • Embodiment 2 Refer to Fig. 3, which is a schematic flowchart of an encoding method, which can be applied to the encoding end, and the method includes:
  • Step 301 Determine the target prediction mode enabled for the current block, where the target prediction mode is one of the N candidate prediction modes of the current block.
  • the encoder can determine all candidate prediction modes supported by the current block, such as sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, etc. Then, the encoding end traverses each candidate prediction mode supported by the current block, and determines the rate-distortion cost value of the candidate prediction mode, and there is no restriction on the method for determining the rate-distortion cost value. Then, the encoding end uses the candidate prediction mode with the least cost-distortion cost as the target prediction mode.
  • candidate prediction modes supported by the current block such as sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, etc.
  • the above method for determining the target prediction mode is only an example, and there is no restriction on this.
  • the encoding end can arbitrarily select a candidate prediction mode as the target prediction mode, or use other methods, which will not be repeated here.
  • Step 302 Determine the prediction mode flag information of the current block according to the target prediction mode.
  • the prediction mode flag information includes the value of the flag bit of at least one of the N candidate prediction modes, and the value of the flag bit is the first When the value is selected, it is used to indicate that the candidate prediction mode is enabled, and when the flag bit value is the second value, it is used to indicate that the candidate prediction mode is not to be enabled.
  • the target prediction mode After determining the target prediction mode, it is necessary to clarify the activation of which of the N candidate prediction modes need to inform the decoding end, and after determining one or more candidates among the N candidate prediction modes The decoder needs to be informed whether the prediction mode is enabled or not, and then the relevant candidate prediction modes are encoded according to a certain strategy, so that the decoder can use the same strategy based on one or more candidate prediction modes among the N candidate prediction modes.
  • the target prediction mode is determined from the N candidate prediction modes.
  • the first value may be 1, and the second value may be 0; or, the first value may be 0, and the second value may be 1.
  • the first value may be a
  • the second value may be b
  • the first value is 1 and the second value is 0 as an example. That is, the value of the flag bit in the subsequent embodiments is 1, which means that the value of the flag bit is the first.
  • the value of the flag bit in the subsequent embodiments is 0, which means that the value of the flag bit is the second value.
  • Step 303 Encode the current block according to the prediction mode flag information, and there is no restriction on the encoding process.
  • the value of the flag bit of each candidate prediction mode included in the prediction mode flag bit information is selected. If the current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit in the current block
  • the encoded bitstream of the current block carries the flag indicating whether to enable the candidate prediction mode; if the current block does not meet the decoding conditions for the value of the candidate prediction mode flag, then the encoded bitstream of the current block does not carry whether to enable the candidate
  • the flag of the prediction mode indicates information.
  • the three candidate prediction modes may be recorded as candidate prediction mode 1, candidate prediction mode 2, and candidate prediction mode 3, respectively.
  • the encoded bit stream of the current block carries the flag bit indication information of whether to enable the candidate prediction mode 1 or not. For example, if the flag bit of candidate prediction mode 1 takes the value 1, then the flag bit indication information of candidate prediction mode 1 carried in the coded bitstream of the current block is 1; if the flag bit of candidate prediction mode 1 takes the value 0, Then, the flag indicating information of the candidate prediction mode 1 carried in the coded bit stream of the current block is 0.
  • the encoding bit stream of the current block does not carry the flag indicating whether the candidate prediction mode 1 is enabled, for example, regardless of the candidate prediction mode 1 flag Whether the bit value is 0 or 1, neither the flag bit indication information of the candidate prediction mode 1 is carried in the encoded bit stream, but the value of the flag bit of the candidate prediction mode 1 is derived by the decoder itself.
  • the encoding bit stream of the current block carries the flag bit indication information of whether to enable the candidate prediction mode 2 or not. If the current block does not meet the decoding condition for the value of the candidate prediction mode 2 flag, then the coding bit stream of the current block does not carry the flag indicating information whether to enable the candidate prediction mode 2 or not.
  • the encoded bit stream of the current block carries the flag bit indication information of whether to enable the candidate prediction mode 3 or not. If the current block does not meet the decoding condition for the value of the candidate prediction mode 3 flag, then the encoding bitstream of the current block does not carry the flag indicating whether the candidate prediction mode 3 is enabled.
  • the N candidate prediction modes include but are not limited to at least one of the following: sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode.
  • sub-block fusion mode normal fusion mode
  • MMVD mode normal fusion mode
  • CIIP mode CIIP mode
  • TPM mode TPM mode
  • GEO mode GEO mode
  • the order in which the flag bit values of the N candidate prediction modes are obtained can be sequentially as follows: sub-block fusion The value of the flag bit of the mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • sub-block fusion The value of the flag bit of the mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the order of obtaining the value of the flag bit of the N candidate prediction modes can be as follows: sub-block fusion mode The value of the flag bit of, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • sub-block fusion mode The value of the flag bit of, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the N candidate prediction modes may also include other possibilities.
  • the N candidate prediction modes include sub-block fusion mode, normal fusion mode, and MMVD mode; for another example, N candidate prediction modes include sub-block fusion mode and normal fusion mode.
  • CIIP mode there is no restriction on the N candidate prediction modes, which can be set according to actual needs.
  • the decision whether to carry the flag bit indication information of whether to enable the candidate prediction mode in the coded bitstream of the current block may include: The order in which the flag bit values of the N candidate prediction modes are obtained is determined according to the flag bit value of the current candidate prediction mode to determine whether to carry the flag bit indication information of the candidate prediction mode following the current candidate prediction mode in the coded bitstream of the current block .
  • the flag bit value of candidate prediction mode 1 For example, suppose the order of obtaining the flag bit values of N candidate prediction modes is from front to back: the flag bit value of candidate prediction mode 1, the flag bit value of candidate prediction mode 2 and the flag bit value of candidate prediction mode 3 value. According to the value of the flag bit of the candidate prediction mode 1, it is decided whether to carry the flag bit indication information of the candidate prediction mode 2 and the flag bit indicator information of the candidate prediction mode 3 in the coded bit stream of the current block. According to the value of the flag bit of the candidate prediction mode 2, it is decided whether to carry the flag bit indication information of the candidate prediction mode 3 in the coded bit stream of the current block.
  • the flag bit value of the sub-block fusion mode the flag bit value of the normal fusion mode
  • the flag bit value of the MMVD mode the flag bit value of the MMVD mode.
  • the value of the flag bit in CIIP mode it is decided whether to carry the flag bit indication information of the common fusion mode, the bit indication information of the MMVD mode, and the bit indication information of the CIIP mode in the coded bit stream of the current block.
  • the value of the flag bit of the normal fusion mode it is decided whether to carry the position indication information of the MMVD mode, the position indication information of the CIIP mode, and so on in the coded bit stream of the current block.
  • the coded bit stream of the current block carries flag bit indication information indicating whether the sub-block fusion mode is enabled. For example, if the flag bit of the sub-block fusion mode is set to 1, the flag bit indication information of the sub-block fusion mode is 1; if the flag bit of the sub-block fusion mode is set to 0, the flag bit indicator information of the sub-block fusion mode is 0. If the current block does not meet the decoding condition for the value of the flag bit of the sub-block fusion mode, the coding bit stream of the current block does not carry the flag bit indication information of whether to enable the sub-block fusion mode.
  • the coded bit stream of the current block carries the flag bit indication information of whether the normal fusion mode is enabled. For example, if the flag bit of the normal fusion mode takes the value 1, then the flag bit indication information of the normal fusion mode is 1; if the flag bit of the normal fusion mode takes the value 0, the flag bit indication information of the normal fusion mode is 0. If the current block does not meet the decoding condition for the value of the flag bit of the normal fusion mode, then the coding bit stream of the current block does not carry the flag bit indication information of whether to enable the normal fusion mode.
  • the encoded bit stream of the current block carries flag bit indication information of whether to enable the MMVD mode. For example, if the value of the flag bit of the MMVD mode is 1, the flag bit indication information of the MMVD mode is 1; if the value of the flag bit of the MMVD mode is 0, the flag bit indicator information of the MMVD mode is 0. If the current block does not meet the decoding condition for the value of the flag bit of the MMVD mode, the bit stream of the current block does not carry the flag bit indication information of whether to enable the MMVD mode.
  • the coded bit stream of the current block carries flag bit indication information of whether to enable the CIIP mode. For example, if the flag bit of the CIIP mode takes the value 1, the flag bit indication information of the CIIP mode is 1; if the flag bit of the CIIP mode takes the value 0, the flag bit indicator information of the CIIP mode is 0. If the current block does not meet the decoding condition of the CIIP mode flag value, the coding bit stream of the current block does not carry the flag bit indication information of whether to enable the CIIP mode.
  • the bit stream of the current block carries the flag bit indication information of whether to enable the GEO mode. For example, if the flag bit of the GEO mode has a value of 1, the flag bit indication information of the GEO mode is 1; if the flag bit of the GEO mode has a value of 0, the flag bit indicator information of the GEO mode is 0. If the current block does not meet the decoding condition for the value of the GEO mode flag, then the encoding bit stream of the current block does not carry the flag indicating information whether to enable the GEO mode.
  • the decoding method of Embodiment 1 and the coding method of Embodiment 2 can be applied to the encoding and decoding process of the fusion mode, and can also be applied to the encoding and decoding process of the skip mode.
  • the fusion mode may include but is not limited to: sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode.
  • the skip mode may include but is not limited to: sub-block fusion mode, normal fusion mode, MMVD mode, TPM mode, GEO mode.
  • the decoding method of Embodiment 1 can be used to determine the target prediction mode, and decode the current block according to the target prediction mode.
  • the coding method of Embodiment 2 can be adopted to determine the target prediction mode, and the current block is coded according to the target prediction mode. Refer to Embodiment 2 for the specific process.
  • Embodiment 3 Refer to FIG. 4A, which is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, and the order of obtaining the value of the flag bit of the candidate prediction mode is as follows: flags of the sub-block fusion mode The value of the bit, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag bit information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the flag of the CIIP mode.
  • One or more of the bit values For example, the decoder uses the following method to obtain the value of the flag bit of each prediction mode:
  • the value of the flag bit of the sub-block fusion mode is read from the flag bit indication information of whether to enable the sub-block fusion mode carried in the coded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the sub-block fusion mode, the value of the flag bit is derived.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode.
  • the value of the flag bit of the sub-block fusion mode is 0, then continue to obtain the value of the flag bit of the normal fusion mode. If the current block meets the decoding condition of the flag value of the normal fusion mode, the value of the flag bit of the normal fusion mode is read from the flag indication information of whether the normal fusion mode is enabled or not carried in the coded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the normal fusion mode, the value of the flag bit of the normal fusion mode is deduced.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode and the value of the flag bit of the normal fusion mode.
  • the value of the flag bit of the normal fusion mode is 0, then continue to obtain the value of the flag bit of the MMVD mode. If the current block meets the decoding condition for the value of the flag bit of the MMVD mode, the value of the flag bit of the MMVD mode is read from the flag bit indication information of whether to enable the MMVD mode carried in the coded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the MMVD mode, the value of the flag bit of the MMVD mode is deduced.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the MMVD mode.
  • the CIIP mode flag bit value is read from the flag bit indication information carried in the coded bit stream of the current block whether the CIIP mode is enabled or not. If the current block does not meet the decoding condition of the CIIP mode flag bit value, the CIIP mode flag bit value is deduced.
  • the prediction mode flag bit information may include the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the MMVD mode The value of the flag bit of the CIIP mode, the value of the flag bit of the CIIP mode.
  • the decoder needs to determine whether the current block meets the decoding conditions for the value of the prediction mode flag, and based on the result of the judgment, decide whether the value of the flag bit is read from the encoded bit stream of the current block or to derive the flag bit Value.
  • the decoding condition for the value of the flag bit of the sub-block fusion mode includes the current block’s support for the sub-block fusion mode
  • the value of the flag bit of the sub-block fusion mode is The acquisition method includes: if the current block supports the sub-block fusion mode, reading the value of the flag bit of the sub-block fusion mode from the flag bit indication information of whether to enable the sub-block fusion mode carried in the coded bit stream of the current block, For example, when the flag indication information of the sub-block fusion mode is 0, the flag bit of the sub-block fusion mode takes the value 0, and when the flag bit indication information of the sub-block fusion mode is 1, the flag bit of the sub-block fusion mode is taken The value is 1. Otherwise, the value of the flag bit of the sub-block fusion mode is derived to be 0.
  • the decoding conditions for the value of the flag bit of the normal fusion mode include the current block’s support for MMVD mode, the current block’s support for CIIP mode, and the current block’s support for TPM mode.
  • the method of obtaining the value of the flag bit of the fusion mode includes: if the current block supports the MMVD mode, or the current block supports the CIIP mode, or the current block supports the TPM mode, whether the common fusion mode is enabled from the coded bitstream of the current block
  • the flag bit indication information reads the value of the flag bit of the normal fusion mode.
  • the flag bit of the normal fusion mode takes the value 0, and the flag bit of the normal fusion mode indicates When the information is 1, the value of the flag bit of the normal fusion mode is 1. Otherwise, it is deduced that the value of the flag bit of the normal fusion mode is 1.
  • the decoding condition for the value of the flag bit of the MMVD mode may include the current block's support for the MMVD mode, the current block's support for the CIIP mode, and the current block's support for the TPM mode, for MMVD
  • the mode flag bit value acquisition method may include: if the current block supports the MMVD mode and the current block supports the CIIP mode, or the current block supports the MMVD mode and the current block supports the TPM mode, then carry it from the coded bit stream of the current block Read the value of the flag bit of the MMVD mode in the flag bit indication information of whether to enable the MMVD mode.
  • the flag bit of the MMVD mode takes the value 0, and the flag bit of the MMVD mode
  • the indication information is 1
  • the value of the flag bit of the MMVD mode is 1.
  • the current block supports the MMVD mode, it can be derived that the value of the flag bit of the MMVD mode is 1, and when the current block does not support the MMVD mode, it can be derived that the value of the flag bit of the MMVD mode is 0.
  • the decoding conditions for the value of the flag bit of the CIIP mode include the support of the current block for the CIIP mode, the support status of the current block for the TPM mode, and the method for obtaining the value of the flag bit of the CIIP mode, It may include: if the current block supports the CIIP mode and the current block supports the TPM mode, read the CIIP mode flag value from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block, for example, CIIP When the flag bit indication information of the mode is 0, the flag bit of the CIIP mode takes the value 0, and when the flag bit indicator information of the CIIP mode is 1, the flag bit of the CIIP mode takes the value 1. Otherwise, when the current block supports the CIIP mode, the value of the CIIP mode flag is derived to be 1, and when the current block does not support the CIIP mode, the value of the CIIP mode flag is derived to be 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information.
  • the value of the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode. If the value of the flag bit of the sub-block fusion mode is 0, and the value of the flag bit of the normal fusion mode is 1, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the MMVD mode is 1, it is determined that the target prediction mode enabled for the current block is the MMVD mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 1, the target of the current block is determined The prediction mode is CIIP mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 0, the target of the current block is determined The prediction mode is TPM mode.
  • the encoding end first determines the target prediction mode. For the specific determination method, refer to Embodiment 2, which will not be repeated here. Then, the prediction mode flag information of the current block is determined according to the target prediction mode. As shown in FIG. 4A, assuming that the target prediction mode is the normal fusion mode, the prediction mode flag information includes: the sub-block fusion mode flag has a value of 0, The flag bit of the normal fusion mode takes the value 1.
  • the value of the flag bit for the sub-block fusion mode is 0. If the current block meets the decoding condition for the value of the flag bit of the sub-block fusion mode, the coded bit stream of the current block carries the flag bit indicating information whether the sub-block fusion mode is enabled or not. , That is, the flag indicating information of the sub-block fusion mode is 1. If the current block does not meet the decoding condition for the value of the flag bit of the sub-block fusion mode, the coding bit stream of the current block does not carry the flag bit indication information of whether to enable the sub-block fusion mode.
  • the flag bit value is 1. If the current block meets the decoding conditions for the normal fusion mode flag value, the encoding bit stream of the current block carries the flag indicating whether the normal fusion mode is enabled, that is, normal The flag bit of the fusion mode indicates that the information is 1. If the current block does not meet the decoding condition for the value of the flag bit of the normal fusion mode, then the coding bit stream of the current block does not carry the flag bit indication information of whether to enable the normal fusion mode.
  • the value of the flag bit of each prediction mode in the prediction mode flag bit information is processed in the above-mentioned manner, which is not repeated here.
  • the processing method is similar, and will not be repeated here.
  • Embodiment 4 Refer to FIG. 4B, which is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, and the order of obtaining the value of the flag bit of the candidate prediction mode is as follows: flags of the sub-block fusion mode The value of the bit, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag bit information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the flag of the CIIP mode.
  • One or more of the bit values For example, the decoder uses the following method to obtain the value of the flag bit of each prediction mode:
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the MMVD mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the CIIP mode.
  • the decoder when the decoder obtains the value of the flag bit, if the current block meets the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is read from the encoded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is deduced. Therefore, it is necessary to determine whether the current block meets the decoding condition for the value of the flag bit of the prediction mode. Refer to Table 3, which is an example of the decoding condition for the value of the flag bit of each prediction mode.
  • the decoding condition for the value of the flag bit of the sub-block fusion mode includes the current block’s support for the sub-block fusion mode
  • the value of the flag bit of the sub-block fusion mode is The acquisition method includes: if the current block supports the sub-block fusion mode, reading the value of the flag bit of the sub-block fusion mode from the flag bit indication information of whether to enable the sub-block fusion mode carried in the coded bit stream of the current block. Otherwise, the value of the flag bit of the sub-block fusion mode is derived to be 0.
  • the decoding conditions for the value of the flag bit of the normal fusion mode may include the support status of the current block to the CIIP mode, the support status of the current block to the TPM mode, and the value of the flag bit of the normal fusion mode
  • Obtaining methods can include but are not limited to: if the current block supports CIIP mode, or the current block supports TPM mode, read the normal fusion from the flag indicating whether to enable the normal fusion mode carried in the coded bitstream of the current block The value of the flag bit of the mode; otherwise, it is deduced that the value of the flag bit of the normal fusion mode is 1.
  • the decoding condition for the value of the flag bit of the MMVD mode includes the support of the current block to the MMVD mode.
  • the method for obtaining the value of the flag bit of the MMVD mode may include: if the current block supports the MMVD mode , The value of the flag bit of the MMVD mode is read from the flag bit indication information of whether to enable the MMVD mode carried in the coded bit stream of the current block; otherwise, the value of the flag bit of the MMVD mode is derived to be 0.
  • the decoding conditions for the value of the CIIP mode flag include the current block’s support for the CIIP mode, the current block’s support for the TPM mode, and the method for obtaining the value of the CIIP mode flag can include: if the current block supports the CIIP mode And the current block supports the TPM mode, the value of the flag bit of the CIIP mode is read from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block. Otherwise, when the current block supports the CIIP mode, the value of the CIIP mode flag is derived to be 1, and when the current block does not support the CIIP mode, the value of the CIIP mode flag is derived to be 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information.
  • the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode. If the flag bit of the sub-block fusion mode takes the value 0, the flag bit of the normal fusion mode takes the value 1, and the flag bit of the MMVD mode takes the value 0, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the sub-block fusion mode takes the value 0
  • the flag bit of the normal fusion mode takes the value 1
  • the flag bit of the MMVD mode takes the value 1
  • it is determined that the target prediction mode enabled for the current block is the MMVD mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 1, it is determined that the target prediction mode enabled by the current block is the CIIP mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 0, it is determined that the target prediction mode enabled by the current block is the TPM mode.
  • the encoding end first determines the target prediction mode, and determines the prediction mode flag information of the current block according to the target prediction mode, as shown in FIG. 4B Assuming that the target prediction mode is the normal fusion mode, the prediction mode flag information includes: the flag bit of the sub-block fusion mode takes the value 0, the flag bit of the normal fusion mode takes the value 1, and the flag bit of the MMVD mode takes the value 0.
  • Embodiment 5 Refer to FIG. 4C, which is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, and the order of obtaining the value of the flag bit of the candidate prediction mode is as follows: flag bit of the normal fusion mode Value, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, and the flag of the CIIP mode.
  • One or more of the bit values For example, the decoder uses the following method to obtain the value of the flag bit of each prediction mode:
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode, and the value of the flag bit of the sub-block fusion mode.
  • the prediction mode flag information includes the flag bit value of the normal fusion mode and the flag bit value of the MMVD mode.
  • the prediction mode flag information includes the flag bit value of the normal fusion mode, the flag bit value of the MMVD mode, and the flag bit value of the CIIP mode.
  • the decoder when the decoder obtains the value of the flag bit, if the current block meets the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is read from the encoded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is deduced. Therefore, it is necessary to determine whether the current block meets the decoding condition for the value of the flag bit of the prediction mode. See Table 4, which is an example of the decoding condition for the value of the flag bit of each prediction mode.
  • the decoding conditions for the value of the flag bit of the normal fusion mode may include the current block’s support for the MMVD mode, the current block’s support for the CIIP mode, and the current block’s support for the CIIP mode.
  • the method for obtaining the value of the flag bit of the common fusion mode may include but is not limited to: if the current block supports MMVD mode, or the current block supports CIIP mode, or the current block supports TPM mode, then The value of the flag bit of the normal fusion mode carried in the coded bit stream of the current block indicates whether the normal fusion mode is enabled or not; otherwise, the value of the flag bit of the normal fusion mode can be deduced to be 1.
  • the decoding condition for the value of the flag bit of the sub-block fusion mode includes the support of the current block for the sub-block fusion mode
  • the method for obtaining the value of the flag bit of the sub-block fusion mode includes: The current block supports the sub-block fusion mode, and the value of the flag bit of the sub-block fusion mode is read from the flag indication information of whether to enable the sub-block fusion mode carried in the coded bit stream of the current block. Otherwise, the value of the flag bit of the sub-block fusion mode is derived to be 0.
  • the decoding conditions for the value of the flag bit of the MMVD mode include the current block’s support for the MMVD mode, the current block’s support for the CIIP mode, and the current block’s support for the TPM mode, for MMVD mode.
  • the method for obtaining the value of the flag bit includes: if the current block supports the MMVD mode and the current block supports the CIIP mode, or the current block supports the MMVD mode and the current block supports the TPM mode, whether the current block’s coded bitstream carries The value of the flag bit of the MMVD mode is read in the flag bit indication information of the MMVD mode enabled.
  • the value of the flag bit of the MMVD mode is 1, and when the current block does not support the MMVD mode, it can be derived that the value of the flag bit of the MMVD mode is 0.
  • the decoding conditions for the value of the CIIP mode flag include the current block’s support for the CIIP mode, the current block’s support for the TPM mode, and the method for obtaining the value of the CIIP mode flag can include: if the current block supports the CIIP mode And the current block supports the TPM mode, the value of the flag bit of the CIIP mode is read from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block. Otherwise, when the current block supports the CIIP mode, the value of the CIIP mode flag is derived to be 1, and when the current block does not support the CIIP mode, the value of the CIIP mode flag is derived to be 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information. Referring to FIG. 4C, if the flag bit of the normal fusion mode is 1 and the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode. If the flag bit of the normal fusion mode takes the value 1, and the flag bit of the sub-block fusion mode takes the value 0, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the normal fusion mode takes the value 0 and the flag bit of the MMVD mode takes the value 1, it is determined that the target prediction mode enabled by the current block is the MMVD mode. If the flag bit of the normal fusion mode takes the value 0, the flag bit of the MMVD mode takes the value 0, and the flag bit of the CIIP mode takes the value 1, it is determined that the target prediction mode enabled by the current block is the CIIP mode. If the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 0, it is determined that the target prediction mode of the current block is the TPM mode.
  • the encoding end first determines the target prediction mode, and determines the prediction mode flag information of the current block according to the target prediction mode, as shown in FIG. 4C.
  • the prediction mode flag information includes: the flag bit of the normal fusion mode takes the value 1, and the flag bit of the sub-block fusion mode takes the value 0.
  • Embodiment 6 Refer to FIG. 4D, which is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, and the order of obtaining the value of the flag bit of the candidate prediction mode is as follows: flags of the sub-block fusion mode The value of the bit, the value of the flag bit of the MMVD mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the normal fusion mode, and the flag of the CIIP mode One or more of the bit values.
  • the decoder uses the following method to obtain the value of the flag bit of each prediction mode:
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, and the value of the flag bit of the MMVD mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, and the value of the flag bit of the normal fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the CIIP mode.
  • the decoder when the decoder obtains the value of the flag bit, if the current block meets the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is read from the encoded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is deduced. Therefore, it is necessary to determine whether the current block meets the decoding condition for the value of the flag bit of the prediction mode. Refer to Table 5, which is an example of the decoding condition for the value of the flag bit of each prediction mode.
  • the decoding conditions for the value of the flag bit of the sub-block fusion mode include the current block’s support for the sub-block fusion mode, the current block’s support for the MMVD mode, and the The method for obtaining the value of the flag bit of the sub-block fusion mode may include: if the current block supports the sub-block fusion mode and the current block supports the MMVD mode, the flag bit of whether to enable the sub-block fusion mode is carried from the coded bit stream of the current block Read the value of the flag bit of the sub-block fusion mode in the instruction information.
  • the value of the flag bit of the derived sub-block fusion mode is 1, and when the current block does not support the sub-block fusion mode, the value of the flag bit of the derived sub-block fusion mode is 0. .
  • the decoding conditions for the value of the flag bit of the MMVD mode include the support of the current block to the sub-block fusion mode, the support of the current block to the MMVD mode, and the acquisition of the value of the flag bit of the MMVD mode
  • the method may include: if the current block supports the sub-block fusion mode and the current block supports the MMVD mode, reading the value of the flag bit of the MMVD mode from the flag bit indication information of whether to enable the MMVD mode carried in the coded bitstream of the current block ; Otherwise, when the current block supports the MMVD mode, the value of the flag bit of the MMVD mode is derived to be 1, and when the current block does not support the MMVD mode, the value of the flag bit of the derived MMVD mode is derived to be 0.
  • the decoding conditions for the value of the flag bit of the normal fusion mode may include the support status of the current block to the CIIP mode, the support status of the current block to the TPM mode, and the value of the flag bit of the normal fusion mode
  • Obtaining methods can include but are not limited to: if the current block supports CIIP mode, or the current block supports TPM mode, read the normal fusion from the flag indicating whether to enable the normal fusion mode carried in the coded bitstream of the current block The value of the flag bit of the mode; otherwise, it is deduced that the value of the flag bit of the normal fusion mode is 1.
  • the decoding conditions for the value of the CIIP mode flag include the current block’s support for the CIIP mode, the current block’s support for the TPM mode, and the method for obtaining the value of the CIIP mode flag can include: if the current block supports the CIIP mode And the current block supports the TPM mode, the value of the flag bit of the CIIP mode is read from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block. Otherwise, when the current block supports the CIIP mode, the value of the CIIP mode flag is derived to be 1, and when the current block does not support the CIIP mode, the value of the CIIP mode flag is derived to be 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information. Referring to FIG. 4D, if the value of the flag bit of the sub-block fusion mode is 1, and the value of the flag bit of the MMVD mode is 1, it is determined that the target prediction mode enabled by the current block is the MMVD mode. If the value of the flag bit of the sub-block fusion mode is 1, and the value of the flag bit of the MMVD mode is 0, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode.
  • the flag bit of the sub-block fusion mode is 0, and the value of the flag bit of the normal fusion mode is 1, it is determined that the target prediction mode enabled by the current block is the normal fusion mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 1, it is determined that the target prediction mode enabled for the current block is the CIIP mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 0, it is determined that the target prediction mode enabled by the current block is the TPM mode.
  • the encoding end first determines the target prediction mode, and determines the prediction mode flag information of the current block according to the target prediction mode, as shown in FIG. 4D.
  • the prediction mode flag information includes: the flag bit of the sub-block fusion mode takes the value 0, and the flag bit of the normal fusion mode takes the value 1.
  • Embodiment 7 Refer to FIG. 4E, which is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, and the order of obtaining the value of the flag bit of the candidate prediction mode is as follows: flag bit of the normal fusion mode Value, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, and the flag of the CIIP mode.
  • One or more of the bit values For example, the decoder uses the following method to obtain the value of the flag bit of each prediction mode:
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode and the value of the flag bit of the sub-block fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, and the value of the flag bit of the MMVD mode.
  • the prediction mode flag information includes the flag bit value of the normal fusion mode, the flag bit value of the sub-block fusion mode, the flag bit value of the MMVD mode, and the flag bit value of the CIIP mode.
  • the decoder when the decoder obtains the value of the flag bit, if the current block meets the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is read from the encoded bit stream of the current block. If the current block does not meet the decoding condition for the value of the flag bit of the prediction mode, the value of the flag bit is deduced. Therefore, it is necessary to determine whether the current block meets the decoding condition for the value of the flag bit of the prediction mode. Refer to Table 6, which is an example of the decoding condition for the value of the flag bit of each prediction mode.
  • the decoding conditions for the value of the flag bit of the normal fusion mode include the support of the current block to the sub-block fusion mode, the support of the current block to the MMVD mode, and the support of the current block to the CIIP mode,
  • the current block s support for the TPM mode, the way to obtain the value of the flag bit of the normal fusion mode, including: if the current block supports the sub-block fusion mode, or the current block supports the MMVD mode, or the current block supports the CIIP mode, or ,
  • the current block supports TPM mode then read the value of the flag bit of the normal fusion mode from the flag indication information of whether to enable the normal fusion mode carried in the coded bitstream of the current block; otherwise, the flag bit of the normal fusion mode is derived
  • the value is 1.
  • the decoding conditions for the value of the flag bit of the sub-block fusion mode include the current block’s support for the sub-block fusion mode, the current block’s support for the MMVD mode, and the current block’s support for the CIIP mode.
  • the current block supports for the TPM mode, and the method for obtaining the value of the flag bit of the sub-block fusion mode, including: if the current block supports the sub-block fusion mode and the current block supports the MMVD mode; or, the current block supports the sub-block fusion mode And the current block supports the CIIP mode, or the current block supports the sub-block fusion mode and the current block supports the TPM mode, then the sub-block is read from the flag indicating whether to enable the sub-block fusion mode carried in the coded bitstream of the current block The value of the flag bit of the fusion mode.
  • the value of the flag bit of the sub-block fusion mode can be derived, and when the current block does not support the sub-block fusion mode, the flag bit of the sub-block fusion mode can be derived The value is 0.
  • the decoding conditions for the value of the flag bit of the MMVD mode include the current block’s support for the MMVD mode, the current block’s support for the CIIP mode, and the current block’s support for the TPM mode, for MMVD mode.
  • the method for obtaining the value of the flag bit includes: if the current block supports the MMVD mode and the current block supports the CIIP mode, or the current block supports the MMVD mode and the current block supports the TPM mode, whether the current block’s coded bitstream carries The value of the flag bit of the MMVD mode is read in the flag bit indication information of the MMVD mode enabled.
  • the value of the flag bit of the MMVD mode is 1, and when the current block does not support the MMVD mode, it can be derived that the value of the flag bit of the MMVD mode is 0.
  • the decoding conditions for the value of the CIIP mode flag include the current block’s support for the CIIP mode, the current block’s support for the TPM mode, and the method for obtaining the value of the CIIP mode flag, including: if the current block supports the CIIP mode and The current block supports the TPM mode, and the value of the flag bit of the CIIP mode is read from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block. Otherwise, when the current block supports the CIIP mode, the value of the CIIP mode flag is derived to be 1, and when the current block does not support the CIIP mode, the value of the CIIP mode flag is derived to be 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information.
  • the flag bit of the normal fusion mode is set to 1, it can be determined that the target prediction mode enabled by the current block is the normal fusion mode. If the value of the flag bit of the normal fusion mode is 0 and the value of the flag bit of the sub-block fusion mode is 1, it can be determined that the target prediction mode enabled for the current block is the sub-block fusion mode.
  • the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, and the flag bit of the MMVD mode is 1, it can be determined that the target prediction mode enabled by the current block is the MMVD mode. If the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 1, it can be determined that the current block is enabled The target prediction mode of is CIIP mode. If the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 0, you can determine to enable the current block The target prediction mode is TPM mode.
  • the encoding end first determines the target prediction mode, and determines the prediction mode flag information of the current block according to the target prediction mode, as shown in FIG. 4E.
  • the prediction mode flag information includes: the flag of the normal fusion mode takes a value of 1.
  • a GEO mode can also be added after the TPM mode.
  • the GEO mode is similar to the TPM mode, except that the shape of the division is different.
  • the GEO mode divides a square block into two sub-blocks of any shape (any other shape except the shape of the two triangular sub-blocks in the TPM mode. It can be a triangular sub-block, a pentagonal sub-block, or a triangular sub-block. A block, a quadrilateral sub-block, or two trapezoidal sub-blocks), these two sub-blocks have different unidirectional motion information.
  • the following describes the encoding and decoding method including the GEO mode in conjunction with specific embodiments.
  • Embodiment 8 On the basis of Embodiment 3, a GEO mode can be added after the TPM mode, and the implementation process is similar to Embodiment 3.
  • FIG. 4F is a schematic diagram of the coding and decoding method of the prediction mode flag bit.
  • Candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, and the order of obtaining flag values of candidate prediction modes is the flag bit value of sub-block fusion mode from front to back. , The value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode and the value of the flag bit of the normal fusion mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the MMVD mode.
  • the prediction mode flag information may include the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag information may include the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • Table 7 it is an example of the decoding condition for the value of the flag bit of each prediction mode.
  • the decoding condition of the flag bit value of the sub-block fusion mode For the decoding conditions of the flag bit value of the sub-block fusion mode, the decoding condition of the flag bit value of the normal fusion mode, the decoding condition of the flag bit value of the MMVD mode, and the decoding condition of the flag bit value of the CIIP mode, see Embodiment 3 will not be repeated here.
  • the decoding condition for the value of the flag bit of the GEO mode is additionally added, which will be described below.
  • the decoding conditions for the value of the flag bit of the GEO mode include the support status of the current block for the GEO mode and the support status of the current block for the TPM mode.
  • the method for obtaining the value of the flag bit of the GEO mode may include: if the current block supports the GEO mode and the current block supports the TPM mode, read from the flag bit indication information carried in the coded bit stream of the current block whether the GEO mode is enabled or not. Take the value of the flag bit of GEO mode; otherwise, when the current block supports GEO mode, the value of the flag bit of GEO mode is deduced, and when the current block does not support GEO mode, the value of the flag bit of GEO mode is derived 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information. Referring to FIG. 4F, if the value of the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled by the current block is the sub-block fusion mode. If the value of the flag bit of the sub-block fusion mode is 0 and the value of the flag bit of the normal fusion mode is 1, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the sub-block fusion mode takes the value 0
  • the flag bit of the normal fusion mode takes the value 0
  • the flag bit of the MMVD mode takes the value 1
  • the target prediction mode enabled for the current block is the MMVD mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 1, the target of the current block is determined
  • the prediction mode is CIIP mode. If the flag bit of sub-block fusion mode is 0, the flag bit of normal fusion mode is 0, the flag bit of MMVD mode is 0, the flag bit of CIIP mode is 0, and the flag bit of GEO mode is 0.
  • the target prediction mode enabled for the current block is the TPM mode. If the flag bit of sub-block fusion mode is 0, the flag bit of normal fusion mode is 0, the flag bit of MMVD mode is 0, the flag bit of CIIP mode is 0, and the flag bit of GEO mode is 0. If it is 1, it is determined that the target prediction mode enabled by the current block is the GEO mode.
  • Embodiment 9 On the basis of Embodiment 4, a GEO mode can be added after the TPM mode, and the implementation process is similar to Embodiment 4.
  • FIG. 4G is a schematic diagram of the coding and decoding method of the prediction mode flag bit.
  • the candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, and the order of obtaining the flag value of the candidate prediction mode is from front to back: the flag bit of the sub-block fusion mode Value, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode.
  • the value of the flag bit of the sub-block fusion mode is 0, the value of the flag bit of the normal fusion mode is obtained.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the MMVD mode.
  • the value of the flag bit of the normal fusion mode is 0, the value of the flag bit of the CIIP mode is obtained.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, and the value of the flag bit of the CIIP mode.
  • the prediction mode flag information includes the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the decoding conditions for the value of the flag bit of the GEO mode include the support status of the current block for the GEO mode and the support status of the current block for the TPM mode.
  • the method for obtaining the value of the flag bit of the GEO mode may include: if the current block supports the GEO mode and the current block supports the TPM mode, read from the flag bit indication information carried in the coded bit stream of the current block whether the GEO mode is enabled or not. Take the value of the flag bit of GEO mode; otherwise, when the current block supports GEO mode, the value of the flag bit of GEO mode is deduced, and when the current block does not support GEO mode, the value of the flag bit of GEO mode is derived 0.
  • the prediction mode flag information is obtained, and the target prediction mode enabled for the current block is determined according to the prediction mode flag information. Referring to FIG. 4G, if the value of the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 1, and the flag bit of the MMVD mode is 0, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the sub-block fusion mode takes the value 0
  • the flag bit of the normal fusion mode takes the value 1
  • the flag bit of the MMVD mode takes the value 1
  • it is determined that the target prediction mode enabled for the current block is the MMVD mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 1, it is determined that the target prediction mode enabled by the current block is the CIIP mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 0, determine the target prediction enabled for the current block The mode is TPM mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 1, the target prediction for the current block is determined.
  • the mode is GEO mode.
  • Embodiment 10 On the basis of Embodiment 5, a GEO mode can be added after the TPM mode, and the implementation process is similar to Embodiment 5.
  • FIG. 4H is a schematic diagram of the coding and decoding method of the prediction mode flag bit.
  • Candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, and the order of obtaining flag values of candidate prediction modes from front to back is: flag value of normal fusion mode , The value of the flag bit of the sub-block fusion mode, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the process of obtaining the value of the flag bit is ended. If the value of the flag bit of the CIIP mode is 0, continue to obtain the value of the flag bit of the GEO mode, and end the process of obtaining the value of the flag bit.
  • the decoding condition of the flag bit value of the normal fusion mode the decoding condition of the flag bit value of the sub-block fusion mode, the decoding condition of the flag bit value of the MMVD mode, and the decoding condition of the flag bit value of the CIIP mode, please refer to This is shown in Table 4 of Example 5.
  • a decoding condition for the value of the flag bit of the GEO mode is additionally added.
  • the decoding condition for the value of the flag bit of the GEO mode includes the support status of the current block for the GEO mode and the support status of the current block for the TPM mode.
  • the method for obtaining the value of the flag bit of the GEO mode may include: if the current block supports the GEO mode and the current block supports the TPM mode, read from the flag bit indication information carried in the coded bit stream of the current block whether the GEO mode is enabled or not. Take the value of the flag bit of GEO mode; otherwise, when the current block supports GEO mode, the value of the flag bit of GEO mode is deduced, and when the current block does not support GEO mode, the value of the flag bit of GEO mode is derived 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information. Referring to FIG. 4H, if the flag bit of the normal fusion mode is 1 and the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode. If the flag bit of the normal fusion mode takes the value 1, and the flag bit of the sub-block fusion mode takes the value 0, it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the flag bit of the normal fusion mode takes the value 0 and the flag bit of the MMVD mode takes the value 1, it is determined that the target prediction mode enabled by the current block is the MMVD mode. If the flag bit of the normal fusion mode takes the value 0, the flag bit of the MMVD mode takes the value 0, and the flag bit of the CIIP mode takes the value 1, it is determined that the target prediction mode enabled by the current block is the CIIP mode. If the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 0, determine the target prediction mode enabled for the current block is TPM mode. If the flag bit of the normal fusion mode is 0, the flag bit of the MMVD mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 1, it is determined that the target prediction mode enabled for the current block is GEO mode.
  • Embodiment 11 On the basis of Embodiment 6, a GEO mode can be added after the TPM mode, and the implementation process is similar to Embodiment 6.
  • FIG. 4I is a schematic diagram of a coding and decoding method for a prediction mode flag bit.
  • Candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, and the order of obtaining flag values of candidate prediction modes is from front to back: flag bit of sub-block fusion mode Value, the value of the flag bit of the MMVD mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the CIIP mode, and the value of the flag bit of the GEO mode.
  • the process of obtaining the value of the flag bit is ended. If the value of the flag bit of the CIIP mode is 0, continue to obtain the value of the flag bit of the GEO mode, and end the process of obtaining the value of the flag bit.
  • the decoding condition of the flag bit value of the MMVD mode the decoding condition of the flag bit value of the normal fusion mode, and the decoding condition of the flag bit value of the CIIP mode, please refer to This is shown in Table 5 of Example 6.
  • a decoding condition for the value of the flag bit of the GEO mode is additionally added.
  • the decoding condition for the value of the flag bit of the GEO mode includes the support status of the current block for the GEO mode and the support status of the current block for the TPM mode.
  • the method for obtaining the value of the flag bit of the GEO mode may include: if the current block supports the GEO mode and the current block supports the TPM mode, read from the flag bit indication information carried in the coded bit stream of the current block whether the GEO mode is enabled or not. Take the value of the flag bit of GEO mode; otherwise, when the current block supports GEO mode, the value of the flag bit of GEO mode is deduced, and when the current block does not support GEO mode, the value of the flag bit of GEO mode is derived 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information.
  • the flag bit of the sub-block fusion mode takes a value of 1
  • the flag bit of the MMVD mode takes a value of 1
  • it is determined that the target prediction mode enabled by the current block is the MMVD mode.
  • the value of the flag bit of the sub-block fusion mode is 1, and the value of the flag bit of the MMVD mode is 0, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode.
  • the flag bit of the sub-block fusion mode is 0, and the value of the flag bit of the normal fusion mode is 1, it is determined that the target prediction mode enabled by the current block is the normal fusion mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, and the flag bit of the CIIP mode is 1, it is determined that the target prediction mode enabled for the current block is the CIIP mode. If the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 0, determine the target prediction enabled for the current block The mode is TPM mode.
  • the flag bit of the sub-block fusion mode is 0, the flag bit of the normal fusion mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 1, the target prediction for the current block is determined.
  • the mode is GEO mode.
  • Embodiment 12 On the basis of Embodiment 7, a GEO mode can be added after the TPM mode, and the implementation process is similar to Embodiment 7.
  • FIG. 4J is a schematic diagram of the coding and decoding method of the prediction mode flag bit.
  • Candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode, and the order of obtaining the flag bit values of candidate prediction modes is the flag bit value of the normal fusion mode from front to back.
  • the process of obtaining the value of the flag bit is ended. If the value of the flag bit of the CIIP mode is 0, continue to obtain the value of the flag bit of the GEO mode, and end the process of obtaining the value of the flag bit.
  • the decoding condition of the flag bit value of the normal fusion mode the decoding condition of the flag bit value of the sub-block fusion mode, the decoding condition of the flag bit value of the MMVD mode, and the decoding condition of the flag bit value of the CIIP mode, please refer to This is shown in Table 6 of Example 7.
  • a decoding condition for the value of the flag bit of the GEO mode is additionally added.
  • the decoding condition for the value of the flag bit of the GEO mode includes the support status of the current block for the GEO mode and the support status of the current block for the TPM mode.
  • the method for obtaining the value of the flag bit of the GEO mode may include: if the current block supports the GEO mode and the current block supports the TPM mode, read from the flag bit indication information carried in the coded bit stream of the current block whether the GEO mode is enabled or not. Take the value of the flag bit of GEO mode; otherwise, when the current block supports GEO mode, the value of the flag bit of GEO mode is deduced, and when the current block does not support GEO mode, the value of the flag bit of GEO mode is derived 0.
  • the prediction mode flag information of the current block can be obtained, and the target prediction mode enabled for the current block can be determined according to the prediction mode flag information. Referring to FIG. 4J, if the flag bit of the normal fusion mode takes a value of 1, it is determined that the target prediction mode enabled by the current block is the normal fusion mode. If the flag bit of the normal fusion mode is 0 and the flag bit of the sub-block fusion mode is 1, it is determined that the target prediction mode enabled for the current block is the sub-block fusion mode.
  • the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, and the flag bit of the MMVD mode is 1, it is determined that the target prediction mode enabled by the current block is the MMVD mode. If the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, the flag bit of the MMVD mode is 0, and the flag bit of the CIIP mode is 1, the target of the current block is determined The prediction mode is CIIP mode. If the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, the flag bit of the MMVD mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 0.
  • the value is 0, which determines that the target prediction mode enabled for the current block is the TPM mode. If the flag bit of the normal fusion mode is 0, the flag bit of the sub-block fusion mode is 0, the flag bit of the MMVD mode is 0, the flag bit of the CIIP mode is 0, and the flag bit of the GEO mode is 0. The value is 1, which determines that the target prediction mode enabled for the current block is the GEO mode.
  • Embodiment 3 to Embodiment 12 are just a few examples, and there is no limitation to this.
  • different coding and decoding methods for the flag bit of the prediction mode can be used.
  • the order of obtaining the value of the flag bit of the candidate prediction mode is: the value of the flag bit of the MMVD mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the sub-block fusion mode, and the flag of the CIIP mode. Bit value.
  • Embodiment 3 referring to FIG.
  • the position of the value of the flag bit of the MMVD mode and the value of the flag bit of the sub-block fusion mode can be changed to obtain a new implementation.
  • the position of the value of the flag bit of the MMVD mode and the value of the flag bit of the sub-block fusion mode can be changed to obtain a new implementation.
  • the structure of FIG. 4A to FIG. 4J can be adopted to determine the target prediction mode enabled for the current block.
  • Embodiment 13 Regarding Embodiment 1 to Embodiment 12, it is related to whether the current block supports the sub-block fusion mode, and the current block supports the sub-block fusion mode in the following ways.
  • the current block supports sub-block fusion mode can be determined in the following manner: if the current block is allowed to adopt the affine mode or the current block is allowed to adopt the sub-block TMVP mode according to the sequence-level switch control information, and the size of the current block If the information satisfies the first size restriction condition, it can be determined that the current block supports the sub-block fusion mode.
  • the current block can be determined to support the sub-block fusion mode in the following manner: if the current block is allowed to adopt the affine mode or the current block is allowed to adopt the sub-block TMVP mode according to the sequence level switch control information, and according to the sequence level
  • the switch control information allows the length of the motion information list of the sub-block fusion mode to be greater than 0, and the size information of the current block meets the first size restriction condition, then it can be determined that the current block supports the sub-block fusion mode.
  • the first size restriction condition can be arbitrarily configured as required. For example, when the width value of the current block is greater than or equal to 8, and the height value of the current block is greater than or equal to 8, the size information of the current block meets the first size restriction condition .
  • the above is only an example of the first size restriction condition, and there is no restriction on this.
  • the width value of the current block is greater than or equal to 16, and the height value of the current block is greater than or equal to 16, then the size information of the current block satisfies the first Size restrictions.
  • the width value of the current block is greater than or equal to 8 and less than or equal to 64, and the height value of the current block is greater than or equal to 8 and less than or equal to 64, the size information of the current block meets the first size restriction condition.
  • the current block For Embodiment 1 to Embodiment 12, it relates to whether the current block supports the MMVD mode. In a possible implementation manner, it may be determined that the current block supports the MMVD mode in the following manner: if the current block is allowed to adopt the MMVD mode according to the sequence-level switch control information, it is determined that the current block supports the MMVD mode.
  • the above method is only an example, and other factors can also be referred to to determine that the current block supports the MMVD mode, and there is no restriction on this.
  • the current block supports MMVD mode.
  • the current block For Embodiment 1 to Embodiment 12, it relates to whether the current block supports the CIIP mode. In a possible implementation manner, it can be determined that the current block supports the CIIP mode in the following manner: if the current block is allowed to adopt the CIIP mode according to the sequence-level switch control information, and the skip mode is not enabled for the current block, and the size information of the current block satisfies The second size restriction condition determines that the current block supports the CIIP mode.
  • the above method is only an example, and there is no restriction on this.
  • the second size restriction condition can be configured arbitrarily as required. For example, when the product of the width value and the height value of the current block is greater than or equal to 64, the width value of the current block is less than 128, and the height value of the current block is less than 128, then The size information of the current block satisfies the second size restriction condition.
  • the above is only an example of the second size restriction condition, and there is no restriction on this.
  • the size information of the current block meets the second size restriction condition.
  • the width value of the current block is greater than or equal to 8 and less than 128, and the height value of the current block is greater than or equal to 8 and less than 128, the size information of the current block meets the second size restriction condition.
  • the width value of the current block is greater than or equal to 64, and the height value of the current block is greater than or equal to 64, the size information of the current block meets the second size restriction condition.
  • the width value of the current block is less than 128 and the height value of the current block is less than 128, the size information of the current block meets the second size restriction condition.
  • Embodiment 1 to Embodiment 7 concerning whether the current block supports the TPM mode, the following methods can be used to determine that the current block supports the TPM mode.
  • the current block supports the TPM mode in the following manner: if the current block is allowed to adopt the TPM mode according to the sequence-level switch control information, and the frame type of the image frame where the current block is located is frame B, and the current block If the size information meets the third size restriction condition, it is determined that the current block supports the TPM mode.
  • the current block can be determined to support the TPM mode in the following manner: if the current block is allowed to adopt the TPM mode according to the sequence-level switch control information, and the motion information list length of the TPM mode is allowed according to the sequence-level switch control information If it is greater than or equal to 2, and the frame type of the image frame where the current block is located is B frame, and the size information of the current block meets the third size restriction condition, it can be determined that the current block supports the TPM mode.
  • Embodiment 1 For Embodiment 1, Embodiment 2, Embodiment 8-Embodiment 12, concerning whether the current block supports the TPM mode, the following methods can be used to determine that the current block supports the TPM mode.
  • the current block supports the TPM mode in the following manner: if the current block is allowed to adopt the TPM mode according to the sequence-level switch control information or the sequence-level switch control information allows the current block to adopt the GEO mode, and the current block is located
  • the frame type of the image frame is a B frame, and the size information of the current block meets the third size restriction condition, it is determined that the current block supports the TPM mode.
  • the current block supports the TPM mode in the following way: if the current block is allowed to adopt the TPM mode according to the sequence-level switch control information, and the motion information list length of the TPM mode is allowed to be greater than the sequence-level switch control information according to the sequence-level switch control information Or equal to 2; or, allow the current block to adopt the GEO mode according to the sequence-level switch control information and allow the length of the motion information list of the GEO mode to be greater than or equal to 2 according to the sequence-level switch control information.
  • the frame type of the image frame where the current block is located is a B frame, and the size information of the current block meets the third size restriction condition. After the above conditions are met, it can be determined that the current block supports the TPM mode.
  • the third size restriction condition can be arbitrarily configured as required. For example, when the product of the width value of the current block and the height value of the current block is greater than or equal to 64, the size information of the current block meets the third size restriction condition.
  • the above is only an example of the third size restriction condition, and there is no restriction on this.
  • the size information of the current block may satisfy the third size restriction condition.
  • the width value of the current block is greater than or equal to 8 and less than 128, and the height value of the current block is greater than or equal to 8 and less than 128, the size information of the current block may satisfy the third size restriction condition.
  • Embodiment 8 to Embodiment 12 it relates to whether the current block supports GEO mode.
  • the current block supports the GEO mode in the following manner: if the current block is allowed to adopt the GEO mode according to the sequence-level switch control information, and the frame type of the image frame where the current block is located is B frame, and the current block If the size information meets the fourth size restriction condition, it is determined that the current block supports the GEO mode.
  • the fourth size restriction condition can be arbitrarily configured as required. For example, when the product of the width value of the current block and the height value of the current block is greater than or equal to 64, the size information of the current block meets the fourth size restriction condition.
  • the above is only an example of the fourth size restriction condition, and there is no restriction on this.
  • the size information of the current block may satisfy the fourth size restriction condition.
  • the width value of the current block is greater than or equal to 8 and less than 128, and the height value of the current block is greater than or equal to 8 and less than 128, the size information of the current block may satisfy the fourth size restriction condition.
  • an embodiment of the application also proposes a decoding device applied to the decoding end.
  • the device may include:
  • the first determining module 511 is configured to determine prediction mode flag information of the current block, where the prediction mode flag information includes the value of the flag bit of at least one candidate prediction mode among the N candidate prediction modes, and the value of the flag bit When the value is the first value, it is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be enabled;
  • the value of the flag bit if the current block meets the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit is whether to enable the candidate prediction mode carried in the encoded bit stream of the current block If the current block does not meet the decoding condition for the value of the flag bit of the candidate prediction mode, the value of the flag bit is the derived value of the flag bit of the candidate prediction mode;
  • the second determining module 512 is configured to determine the target prediction mode enabled by the current block according to the prediction mode flag information, where the target prediction mode is one of the N candidate prediction modes;
  • the decoding module 513 is configured to decode the current block according to the target prediction mode.
  • the N candidate prediction modes include at least one of the following: sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, TPM mode, GEO mode.
  • the first determining module 511 is specifically configured to: determine the prediction mode flag information according to the acquisition order of the flag bit values of the N candidate prediction modes; if the N candidate prediction modes include the sub-block fusion mode , Normal fusion mode, MMVD mode, CIIP mode, the order of obtaining the flag bit values of the N candidate prediction modes is from front to back: the flag bit value of the sub-block fusion mode, the flag bit value of the normal fusion mode Value, the value of the flag bit of the MMVD mode, the value of the flag bit of the CIIP mode; or, if the N candidate prediction modes include sub-block fusion mode, normal fusion mode, MMVD mode, CIIP mode, GEO mode, then The order of obtaining the value of the flag bits of the N candidate prediction modes is from front to back: the value of the flag bit of the sub-block fusion mode, the value of the flag bit of the normal fusion mode, the value of the flag bit of the MMVD mode, the flag of the CIIP mode Bit value, the flag bit
  • the first determining module 511 is specifically configured to: based on the acquisition order of the flag bit values of the N candidate prediction modes, after obtaining the flag bit value of the current candidate prediction mode, take the value according to the flag bit of the current candidate prediction mode Value to determine whether to obtain the value of the flag bit of the candidate prediction mode following the current candidate prediction mode.
  • the first determining module 511 obtains the value of the flag bit of the candidate prediction mode in the following manner:
  • Get the value of the flag bit of the sub-block fusion mode if the flag bit of the sub-block fusion mode takes the first value, the process of obtaining the value of the flag bit ends; if the flag bit of the sub-block fusion mode takes the second value , The value of the flag bit of the normal fusion mode is obtained; if the value of the flag bit of the normal fusion mode is the first value, the value of the flag bit of the MMVD mode is obtained, and the process of obtaining the value of the flag bit is ended; If the value of the flag bit of the mode is the second value, the value of the flag bit of the CIIP mode is obtained, and the process of obtaining the value of the flag bit is ended.
  • the flag bit values of the N candidate prediction modes are obtained in order from front to back, the flag bit values of the sub-block fusion mode, the flag bit values of the normal fusion mode, the flag bit values of the MMVD mode, and the flag bit of the CIIP mode are obtained from front to back.
  • the first determining module 511 obtains the value of the flag bit of the candidate prediction mode in the following manner:
  • the decoding condition for the value of the flag bit of the sub-block fusion mode includes the support of the current block to the sub-block fusion mode, and the first determining module 511 is further configured to: if the current block supports the sub-block fusion mode, start from the Read the value of the flag bit of the sub-block fusion mode in the flag indication information of whether to enable the sub-block fusion mode carried in the coded bitstream of the current block; otherwise, derive the value of the flag bit of the sub-block fusion mode Take the second value.
  • the decoding conditions for the value of the flag bit of the normal fusion mode include the current block's support for MMVD mode, the current block's support for CIIP mode, and the current block's support for TPM mode.
  • the first determining module 511 is also used to: If the current block supports the MMVD mode, or the current block supports the CIIP mode, or the current block supports the TPM mode, then the flag indicating information whether the normal fusion mode is enabled is carried from the coded bitstream of the current block Read the value of the flag bit of the normal fusion mode; otherwise, deduce the value of the flag bit of the normal fusion mode to the first value;
  • the decoding condition for the value of the flag bit of the normal fusion mode includes the support status of the current block for CIIP mode and the support status of the current block for TPM mode
  • the first determining module 511 is further configured to: if the current block supports CIIP Mode, or the current block supports the TPM mode, read the value of the flag bit of the normal fusion mode from the flag bit indication information of whether to enable the normal fusion mode carried in the coded bitstream of the current block; otherwise, It is deduced that the value of the flag bit of the normal fusion mode is the first value.
  • the decoding conditions for the value of the flag bit of the MMVD mode include the current block’s support for the MMVD mode, the current block’s support for the CIIP mode, and the current block’s support for the TPM mode.
  • the first determining module 511 is further configured to: If the current block supports the MMVD mode and the current block supports the CIIP mode, or, the current block supports the MMVD mode and the current block supports the TPM mode, whether to enable MMVD is carried in the coded bitstream of the current block
  • the value of the flag bit of the MMVD mode is read from the flag bit indication information of the mode; otherwise, when the current block supports the MMVD mode, it is deduced that the value of the flag bit of the MMVD mode is the first value. When the current block does not support the MMVD mode, it is deduced that the value of the flag bit of the MMVD mode is the second value;
  • the decoding condition for the value of the flag bit of the MMVD mode includes the current block’s support for the MMVD mode
  • the first determining module 511 is further configured to: if the current block supports the MMVD mode, start from the encoding of the current block
  • the value of the flag bit of the MMVD mode is read from the flag bit indication information of whether to enable the MMVD mode carried in the bit stream; otherwise, the value of the flag bit of the MMVD mode is deduced to be the second value.
  • the decoding conditions for the value of the CIIP mode flag include the current block’s support for the CIIP mode and the current block’s support for the TPM mode.
  • the first determining module 511 is further configured to: if the current block supports the CIIP mode and all If the current block supports the TPM mode, the CIIP mode flag value is read from the flag bit indication information of whether to enable the CIIP mode carried in the coded bit stream of the current block; otherwise, when the current block When the block supports the CIIP mode, the value of the flag bit of the CIIP mode is deduced to be the first value, and when the current block does not support the CIIP mode, the value of the flag bit of the CIIP mode is deduced to be the second value .
  • the decoding conditions for the value of the flag bit of the GEO mode include the support of the current block to the GEO mode and the support of the current block to the TPM mode.
  • the first determining module 511 is further configured to: if the current block supports the GEO mode and all If the current block supports the TPM mode, the value of the flag bit of the GEO mode is read from the flag bit indication information of whether to enable the GEO mode carried in the coded bit stream of the current block; otherwise, when the current block When the block supports the GEO mode, the value of the flag bit of the GEO mode is deduced to be the first value, and when the current block does not support the GEO mode, the value of the flag bit of the GEO mode is derived to the second value .
  • the second determining module 512 is specifically configured to: if the value of the flag bit of the sub-block fusion mode is the first value, determine that the target prediction mode enabled by the current block is the sub-block fusion mode.
  • the second determining module 512 is specifically configured to: if the flag bit of the sub-block fusion mode takes the second value, and the flag bit of the normal fusion mode takes the first value, then determine the target prediction enabled by the current block The mode is the normal fusion mode; or, if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the first value, and the flag bit of the MMVD mode takes the second value. Then it is determined that the target prediction mode enabled by the current block is the normal fusion mode.
  • the second determining module 512 is specifically configured to: if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the second value, and the flag bit of the MMVD mode takes the first value. Value, it is determined that the target prediction mode enabled by the current block is the MMVD mode; or, if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the first value, and MMVD If the value of the flag bit of the mode is the first value, it is determined that the target prediction mode enabled by the current block is the MMVD mode.
  • the second determining module 512 is specifically configured to: if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the second value, and the flag bit of the MMVD mode takes the second value. If the value of the flag bit of the CIIP mode is the first value, it is determined that the target prediction mode enabled by the current block is the CIIP mode; or, if the flag bit of the sub-block fusion mode is the second value, the normal fusion If the value of the flag bit of the mode is the second value, and the value of the flag bit of the CIIP mode is the first value, it is determined that the target prediction mode enabled by the current block is the CIIP mode.
  • the second determining module 512 is specifically configured to: if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the second value, and the flag bit of the MMVD mode takes the second value. If the flag bit of the CIIP mode takes the second value, it is determined that the target prediction mode enabled by the current block is the TPM mode; or, if the flag bit of the sub-block fusion mode takes the second value, the normal fusion If the flag bit of the mode takes the second value, and the flag bit of the CIIP mode takes the second value, it is determined that the target prediction mode enabled by the current block is the TPM mode; or, if the flag bit of the sub-block fusion mode takes The value is the second value, the flag bit of the normal fusion mode is the second value, the flag bit of the MMVD mode is the second value, the flag bit of the CIIP mode is the second value, and the flag bit of the GEO mode is the second value.
  • the flag bit of the flag bit is the second value, it is determined that the target prediction mode enabled by the current block is the TPM mode; or, if the flag bit of the sub-block fusion mode is the second value, the flag bit of the normal fusion mode is the value Is the second value, the flag bit of the CIIP mode takes the second value, and the flag bit of the GEO mode takes the second value, then it is determined that the target prediction mode enabled by the current block is the TPM mode.
  • the second determining module 512 is specifically configured to: if the flag bit of the sub-block fusion mode takes the second value, the flag bit of the normal fusion mode takes the second value, and the flag bit of the MMVD mode takes the second value. If the value of the CIIP mode flag bit is the second value, and the GEO mode flag bit value is the first value, it is determined that the target prediction mode enabled by the current block is the GEO mode; or, if the sub-block fusion mode The value of the flag bit is the second value, the flag bit of the normal fusion mode is the second value, the flag bit of the CIIP mode is the second value, and the flag bit of the GEO mode is the first value , It is determined that the target prediction mode enabled by the current block is the GEO mode.
  • the first determining module 511 is further configured to determine that the current block supports the sub-block fusion mode in the following manner: if the current block is allowed to adopt the affine mode or the current block is allowed to adopt the sub-block TMVP mode according to the sequence-level switch control information , And the size information of the current block satisfies the first size restriction condition, it is determined that the current block supports the sub-block fusion mode.
  • the first determining module 511 is further configured to determine that the current block supports the MMVD mode in the following manner: if the current block is allowed to adopt the MMVD mode according to the sequence-level switch control information, it is determined that the current block supports the MMVD mode.
  • the first determining module 511 is further configured to determine that the current block supports the CIIP mode in the following manner: if the current block is allowed to adopt the CIIP mode according to the sequence-level switch control information, and the skip mode is not enabled for the current block, and If the size information of the current block satisfies the second size restriction condition, it is determined that the current block supports the CIIP mode.
  • the first determining module 511 is further configured to determine that the current block supports the TPM mode in the following manner: if the current block is allowed to adopt the TPM mode according to the sequence-level switch control information, and the frame type of the image frame where the current block is located is B frame, and the size information of the current block meets the third size restriction condition, it is determined that the current block supports the TPM mode; or, if the current block is allowed to adopt the TPM mode or the sequence-level switch control according to the sequence-level switch control information
  • the information allows the current block to adopt the GEO mode, and the frame type of the image frame where the current block is located is a B frame, and the size information of the current block satisfies the third size restriction condition, then it is determined that the current block supports the TPM mode.
  • the first determining module 511 is further configured to determine that the current block supports the GEO mode in the following manner: if the current block is allowed to adopt the GEO mode according to sequence-level switch control information, and the frame type of the image frame where the current block is located is B frame, and the size information of the current block satisfies the fourth size restriction condition, it is determined that the current block supports the GEO mode.
  • an embodiment of the application also proposes an encoding device applied to the encoding end.
  • FIG. 5B it is a structural diagram of the encoding device.
  • the encoding device may include:
  • the first determining module 521 is configured to determine the target prediction mode enabled for the current block, where the target prediction mode is one of the N candidate prediction modes of the current block;
  • the second determining module 522 is configured to determine the prediction mode flag information of the current block according to the target prediction mode; the prediction mode flag information includes the information of at least one candidate prediction mode among the N candidate prediction modes The value of the flag bit, when the value of the flag bit is the first value, is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction is not to be enabled mode;
  • the encoding module 523 is configured to encode the current block according to the prediction mode flag information; wherein, for each candidate prediction mode flag value included in the prediction mode flag information, if the current block If the decoding condition for the value of the flag bit of the candidate prediction mode is met, then the flag bit indicating information of whether to enable the candidate prediction mode is carried in the coded bitstream of the current block; if the current block does not meet the flag bit of the candidate prediction mode The decoding condition for the value of the flag bit does not carry the flag bit indication information of whether to enable the candidate prediction mode in the coded bit stream of the current block.
  • the decoding terminal device has a schematic diagram of its hardware architecture as shown in FIG. 6A. It includes: a processor 611 and a machine-readable storage medium 612.
  • the machine-readable storage medium 612 stores machine-executable instructions that can be executed by the processor 611; the processor 611 is configured to execute machine-executable instructions, In order to realize the method disclosed in the above example of this application.
  • the processor 611 is configured to execute machine-executable instructions to implement the following steps: determine prediction mode flag information of the current block, where the prediction mode flag information includes at least one candidate prediction mode among the N candidate prediction modes When the value of the flag bit is the first value, it is used to indicate that the candidate prediction mode is enabled, and when the value of the flag bit is the second value, it is used to indicate that the candidate prediction mode is not to be enabled Prediction mode; wherein, for the flag bit value of each candidate prediction mode, if the current block meets the decoding condition for the flag bit value of the candidate prediction mode, the flag bit value is from the current block
  • the encoded bit stream is read from the flag indicating whether the candidate prediction mode is enabled or not; if the current block does not meet the decoding condition for the flag bit value of the candidate prediction mode, the flag bit value is derived The value of the flag bit of the candidate prediction mode obtained; determining the target prediction mode enabled by the current block according to the prediction mode flag bit information, and the target prediction mode is one of the N candidate prediction modes; according to The
  • the encoding terminal device has a schematic diagram of its hardware architecture as shown in FIG. 6B. It includes a processor 621 and a machine-readable storage medium 622, where the machine-readable storage medium 622 stores machine-executable instructions that can be executed by the processor 621; the processor 621 is configured to execute machine-executable instructions, In order to realize the method disclosed in the above example of this application.
  • the processor 621 is configured to execute machine executable instructions to implement the following steps: determine the target prediction mode enabled for the current block, where the target prediction mode is one of the N candidate prediction modes of the current block;
  • the target prediction mode determines the prediction mode flag information of the current block;
  • the prediction mode flag information includes the value of the flag bit of at least one candidate prediction mode among the N candidate prediction modes, and the flag bit takes When the value is the first value, it is used to indicate that the candidate prediction mode is enabled; when the flag bit value is the second value, it is used to indicate that the candidate prediction mode is not to be enabled; according to the prediction mode flag bit information Encoding the current block; wherein, for the flag bit value of each candidate prediction mode included in the prediction mode flag bit information, if the current block meets the decoding condition for the flag bit value of the candidate prediction mode, The encoding bitstream of the current block carries the flag indicating information whether to enable the candidate prediction mode; if the current block does not meet the decoding conditions for the value of the candidate prediction mode, it is not in the current
  • an embodiment of the application also provides a machine-readable storage medium having a number of computer instructions stored on the machine-readable storage medium.
  • the computer instructions When executed by a processor, the present invention can be realized.
  • the aforementioned machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device, and may contain or store information, such as executable instructions, data, and so on.
  • the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (Such as CD, DVD, etc.), or similar storage media, or a combination of them.
  • a typical implementation device is a computer.
  • the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a tablet computer. , Wearable devices, or a combination of any of these devices.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请提供一种解码、编码方法、装置及其设备,该方法包括:确定当前块的预测模式标志位信息,预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,标志位取值为第一取值时,用于指示启用候选预测模式,标志位取值为第二取值时,用于指示不启用候选预测模式;针对每个候选预测模式的标志位取值,若当前块不符合该候选预测模式的标志位取值的解码条件,则标志位取值是推导出的该候选预测模式的标志位取值;根据预测模式标志位信息确定当前块启用的目标预测模式,目标预测模式是N个候选预测模式中的其中一个;根据目标预测模式对当前块进行解码。通过本申请可以提高编码性能。

Description

一种解码、编码方法、装置及其设备 技术领域
本申请涉及图像处理技术领域,尤其是涉及一种解码、编码方法、装置及其设备。
背景技术
为了达到节约空间的目的,视频图像都是经过编码后才传输的,完整的视频编码方法可以包括预测、变换、量化、熵编码、滤波等过程。其中,预测编码可以包括帧内编码和帧间编码。进一步的,帧间编码是利用视频时间域的相关性,使用邻近已编码图像的像素预测当前像素,以达到有效去除视频时域冗余的目的。帧内编码是指利用视频空间域的相关性,使用当前帧图像的已经编码块的像素预测当前像素,以达到去除视频空域冗余的目的。
相关技术中,为了实现帧间编码,提出了多种预测模式。编码端从多种预测模式中选择一种预测模式作为目标预测模式,并采用目标预测模式对当前块进行编码。编码端向解码端发送编码比特流时,该编码比特流包括目标预测模式的指示信息。解码端接收到编码比特流后,基于该指示信息确定目标预测模式,并根据目标预测模式对当前块进行解码。
但是,在编码比特流中携带目标预测模式的指示信息时,可能需要多个比特来表示目标预测模式,比特数量较多,编码开销比较大,编码性能比较差,解码效率比较低。
发明内容
本申请提供了一种解码、编码方法、装置及其设备,可以提高编码性能。
本申请提供一种解码方法,所述方法包括:
确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;
根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
根据所述目标预测模式对所述当前块进行解码。
本申请提供一种编码方法,所述方法包括:
确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;
根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
本申请提供一种解码装置,所述装置包括:
第一确定模块,用于确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;
第二确定模块,用于根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
解码模块,用于根据所述目标预测模式对所述当前块进行解码。
本申请提供一种编码装置,所述装置包括:
第一确定模块,用于确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
第二确定模块,用于根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括 所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;
编码模块,用于根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
本申请提供一种解码端设备,包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;
所述处理器用于执行机器可执行指令,以实现如下步骤:
确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;
根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
根据所述目标预测模式对所述当前块进行解码。
本申请提供一种编码端设备,包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;
所述处理器用于执行机器可执行指令,以实现如下步骤:
确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;
根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
由以上方案可见,本申请实施例中,在确定当前块的预测模式标志位信息时,针对每个候选预测模式的标志位取值,若当前块不符合该候选预测模式的标志位取值的解码条件,则标志位取值是推导出的该候选预测模式的标志位取值,而不是从编码比特流中解析,即,不需要在编码比特流中携带该候选预测模式的标志位取值,从而减少编码比特流中的比特数量,降低编码开销,提高编码性能,简化解码预测模式的流程,提高解码预测模式的效率。
附图说明
图1是本申请一种实施方式中的视频编码框架的示意图;
图2是本申请一种实施方式中的解码方法的流程图;
图3是本申请一种实施方式中的编码方法的流程图;
图4A-图4J是本申请一种实施方式中的预测模式标志位的编解码方法的示意图;
图5A是本申请一种实施方式中的解码装置的结构图;
图5B是本申请一种实施方式中的编码装置的结构图;
图6A是本申请一种实施方式中的解码端设备的结构图;
图6B是本申请一种实施方式中的编码端设备的结构图。
具体实施方式
在本申请实施例使用的术语仅仅是出于描述特定实施例的目的,而非限制本申请的各个实施例。本申请和权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。还应当理解,本文中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。应当理解,尽管在本申请实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,此外,所使用的词语“如果”可以被解释成为“在……时”、或者“当……时”、或者“响应于确定”。
本申请实施例中提出一种解码方法、装置及其设备,可以涉及如下概念:
帧内预测与帧间预测(intra prediction and inter prediction)技术:帧内预测是指,利用视频空间域的相关性,使用当前图像已经编码块的像素预测当前像素,以达到去除视频空域冗余的目的。帧间预测是指,利用视频时域的相关性,由于视频序列包含有较强的时域相关性,使用邻近已编码图像像素预测当前图像的像素,达到有效去除视频时域冗余的目的。主要视频编码标准帧间预测部分都采用了基于块的运动补偿技术,主要原理是为当前图像的每一像素块在之前的已编码图像中寻找最佳匹配块,该过程称为运动估计(Motion Estimation,ME)。
运动矢量(Motion Vector,MV):在帧间编码中,可以使用运动矢量表示当前编码块与其参考图像中的最佳匹配块之间的相对位移。每个划分的块都有相应的运动矢量需要传输到解码端,如果对每个块的运动矢量进行独立编码和传输,特别是划分成小尺寸的块时,则需要消耗相当多的比特。为了降低用于编码运动矢量的比特数,则可以利用相邻图像块之间的空间相关性,根据相邻已编码块的运动矢量对当前待编码块的运动矢量进行预测,然后,对预测差进行编码。这样,可以有效地降低表示运动矢量的比特数。在对当前块的运动矢量编码过程中,首先,使用相邻已编码块的运动矢量预测当前块的运动矢量,然后,可以对运动矢量的预测值(MVP,Motion Vector Prediction)与运动矢量的真正估值之间的差值(MVD,MotionVector Difference)进行编码,从而有效降低MV的编码比特数。
运动信息(Motion Information):由于运动矢量表示当前图像块与某个参考图像块的位置偏移,为了准确的获取指向图像块的信息,除了运动矢量,还需要参考帧图像的索引信息来表示使用哪个参考帧图像。在视频编码技术中,对于当前帧图像,通常可以建立一个参考帧图像列表,参考帧图像索引信息则表示当前图像块采用了参考帧图像列表中的第几个参考帧图像。此外,很多编码技术还支持多个参考图像列表,因此,还可以使用一个索引值来表示使用了哪一个参考图像列表,这个索引值可以称为参考方向。在视频编码技术中,可以将运动矢量,参考帧索引,参考方向等与运动相关的信息统称为运动信息。
率失真原则(Rate-Distortion Optimized):评价编码效率的有两大指标:码率和PSNR(Peak Signal to Noise Ratio,峰值信噪比),比特流越小,则压缩率越大,PSNR越大,则重建图像质量越好,在模式选择时,判别公式实质上也就是对二者的综合评价。例如,模式对应的代价:J(mode)=D+λ*R,其中,D表示Distortion(失真),通常可以使用SSE指标来进行衡量,SSE是指重建图像块与源图像的差值的均方和;λ是拉格朗日乘子,R就是该模式下图像块编码所需的实际比特数,包括编码模式信息,运动信息,残差等所需的比特数总和。
视频编码框架:参见图1所示,可以使用视频编码框架实现本申请实施例的编码端处理流程,此外,视频解码框架的示意图与图1类似,在此不再重复赘述,可以使用视频解码框架实现本申请实施例的解码端处理流程。具体的,在视频编码框架和视频解码框架中,可以包括帧内预测、运动估计/运动补偿、参考图像缓冲器、环内滤波、重建、变换、量化、反变换、反量化、熵编码器等模块。在编码端,通过这些模块之间的配合,可以实现编码端处理流程,在解码端,通过这些模块之间的配合,可以实现解码端处理流程。
标志位编码(flag coding):在视频编码中,存在很多预测模式,如普通融合模式、子块融合模式等,对于某个块来说,可能采用某种预测模式。为了表示采用何种预测模式,每个块需要编码对应标志位来进行标记。即,在编码端,可以确定标志位的值,然后对标志位进行编码传递到解码端。在解码端,通过解析标志位,确定对应的预测模式是否启用。
融合模式(Merge mode):融合模式可以包括:普通融合模式(即Normal Merge模式),子块融合模式(即采用子块运动信息的融合模式,可以称为Subblock融合模式,本文简称子块融合模式),MMVD模式(即编码运动差的融合模式,可以称为merge with MVD模式,本文简称MMVD模式),CIIP模式(即帧间帧内预测联合生成新的预测值的融合模式,可以称为combine inter intra prediciton mode,本文简称CIIP模式),TPM模式(即用于三角预测的融合模式,可以称为triangular prediction mode,本文简称TPM模式),GEO模式(即基于任意几何划分形状的融合模式,可以称为Geometrical Partitioning,本文简称GEO模式)。
跳过模式(skip mode):跳过模式是一种特殊的融合模式,跳过模式与融合模式不同的是,跳过模式不需要编码残差。若当前块为跳过模式时,则CIIP模式默认为关闭,而普通融合模式,子块融合模式,MMVD模式,TPM模式,GEO模式仍然可以适用。
示例性的,可以基于普通融合模式,子块融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式等,确定如何生成预测值。在生成预测值后,对于融合模式,可以利用预测值和残差值来获取重建值;对于跳过模式,不存在残差值,直接利用预测值来获取重建值。
帧类型(frame type):若当前帧不可参考其它帧的信息进行编码,则当前帧可以为I帧;若当前帧允许参考其它某1帧(但不能超过1帧)的信息进行编码,则当前帧可以为P帧;若当前帧允许参考其它某1帧或某2帧的信息进行编码,则当前帧可以为B帧。
序列参数集(SPS,sequence parameter set):在序列参数集中,存在确定整个序列中是否允许某些工具开关的标志位。若标志位为1,则视频序列中,允许启用该标志位对应的工具;若标志位为0,则视频序列中,不允许该标志位对应的工具在编码过程中启用。
普通融合模式:从候选运动信息列表中选择一个运动信息,基于该运动信息生成当前块的预测值,该候选运动信息列表包括:空域相邻块候选运动信息,时域相邻块候选运动信息,空域非相邻块候选运动信息,基于已有运动信息进行组合获取的运动信息,默认运动信息等。
MMVD模式:基于普通融合模式的候选运动信息列表,从普通融合模式的候选运动信息列表中选择一个运动信息作为基准运动信息,通过查表方法获取运动信息差。基于基准运动信息和运动信息差获取最终的运动信息,基于该最终的运动信 息生成当前块的预测值。
子块融合模式:子块融合模式包括Affine融合模式和子块TMVP模式。
Affine(仿射)融合模式,类似于普通融合模式,也是从候选运动信息列表中选择一个运动信息,基于该运动信息生成当前块的预测值。与普通融合模式不同的是,普通融合模式的候选运动信息列表中的运动信息是2参数的平移运动矢量,而Affine融合模式的候选运动信息列表中的运动信息是4参数的Affine运动信息,或者,6参数的Affine运动信息。
子块TMVP(subblock-based temporal motion vector prediction)模式,在时域参考帧中,直接复用某块运动信息用于生成当前块的预测值,该块内的各子块的运动信息可不相同。
CIIP模式:通过结合帧内预测值和帧间预测值获取当前块新的预测值。
TPM模式:将一个块分成两个三角子块(存在45度和135度两种三角子块),这两个三角子块拥有不同的单向运动信息,TPM模式仅用于预测过程,不影响后续的变换、量化过程,这里的单向运动信息也是直接从候选运动信息列表中获取的。
GEO模式:GEO模式与TPM模式类似,只是划分形状不同。GEO模式将一个方形块分成任意形状的两个子块(除了TPM的两个三角子块的形状外的任意其它形状),如一个三角子块,一个五边形子块;或者,一个三角子块,一个四边形子块;或者,两个梯形子块等,对此划分形状不做限制。GEO模式划分的这两个子块拥有不同的单向运动信息。
从上述例子可以看出,本实施例涉及的融合模式和跳过模式,是指一类直接从候选运动信息列表中选择一个运动信息,生成当前块的预测值的一类预测模式,这些预测模式在编码端不需要进行运动搜索过程,除了MMVD模式外,其它模式都不需要编码运动信息差。
相关技术中,编码端需要从多种预测模式(如普通融合模式,MMVD模式,CIIP模式,TPM模式,子块融合模式等)中选择一种预测模式作为目标预测模式,例如,目标预测模式为子块融合模式,并采用子块融合模式对当前块进行编码。编码端向解码端发送编码比特流时,该编码比特流可以包括子块融合模式的指示信息,如0001,通过0001表示子块融合模式。解码端接收到编码比特流后,从编码比特流中解析出指示信息0001,基于该指示信息确定目标预测模式为子块融合模式,并根据子块融合模式对当前块进行解码。但是,上述方式需要4个比特来表示子块融合模式,比特数量多,编码开销大,编码性能差。
例如,参见表1A所示,为了节省编码标志位的开销,每个标志位的编码往往存在一些限制,只有当某些限定条件满足时才进行对应标志位的编码。参见表1B所示,为融合模式的标志位的示例,参见表1C所示,为跳过模式的标志位的示例。从表1A可以看出,由于每个模式的标志位的编码存在限制条件,只有所有条件满足时某个模式才可能启用,即其标志位才需要编码,而这些条件在编码第一个模式(即普通融合模式)时即可知道在编码前面的标志位时,则可根据这些条件跳过当前模式标志位的编码,以节省码率开销。从表1B和表1C可以看出,普通融合模式仅需要1个比特,而子块融合模式需要3个比特,而通过发明人的分析,子块融合模式的使用概率往往大于普通融合模式的使用概率,因此,按照表1B或表1C所示的方式进行标志位编码会导致这几种模式的标志位编码的平均码长比较大。
表1A
Figure PCTCN2020115634-appb-000001
表1B
  普通融合模式标志位 MMVD模式标志位 子块融合模式标志位 CIIP模式标志位
普通融合模式 1 - - -
MMVD模式 0 1 - -
子块融合模式 0 0 1 -
CIIP模式 0 0 0 1
TPM模式 0 0 0 0
表1C
  普通融合模式标志位 MMVD模式标志位 子块融合模式标志位
普通融合模式 1 - -
MMVD模式 0 1 -
子块融合模式 0 0 1
TPM模式 0 0 0
针对上述发现,本申请实施例中,对于使用概率较大的预测模式优先编码,对于使用概率较小的预测模式后编码,就能够整体上使用较少的标志位编码比特数。例如,假设子块融合模式是使用概率较大的预测模式,则可以通过“1”表示子块融合模式。由于子块融合模式的使用概率较大,因此,编码比特流大概率携带的是“1”,从而减少编码比特流中的比特数量,降低编码开销,提高编码性能。假设CIIP模式是使用概率较小的预测模式,则可以通过“0001”表示CIIP模式。显然,由于CIIP模式的使用概率较小,编码比特流小概率携带的是“0001”。
由于每个预测模式的标志位的编码存在限制条件,只有所有条件满足时某个预测模式才可能启用,即标志位才需要编码,而这些条件在编码第一个预测模式时即可获知。在编码前面的标志位时,则可以根据这些条件跳过当前预测模式的标志位的编码,以节省码率开销。
例如,当编码普通融合模式时,假设基于当前条件可知MMVD模式,CIIP模式,TPM模式,子块融合模式均不支持,则可以不编码普通融合模式的标志位。在这种情况下,解码端基于当前条件可知MMVD模式,CIIP模式,TPM模式,子块融合模式均不支持,因此只能启用普通融合模式。综上所述,不需要解码普通融合模式的标志位,解码端就可以推到出普通融合模式的标志位取值为1,从而减少编码比特流中的比特数量,提高编码性能。
以下结合几个具体实施例,对本申请实施例的解码方法、编码方法进行说明。
实施例1:参见图2所示,为解码方法的流程示意图,可以应用于解码端,该方法包括:
步骤201,确定当前块的预测模式标志位信息,该预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,该标志位取值为第一取值时,用于指示启用该候选预测模式,该标志位取值为第二取值时,用于指示不启用该候选预测模式。
步骤201等价于确定当前块的N个候选预测模式中的至少一个候选预测模式的启用情况,解码端根据N个候选预测模式中的至少一个候选预测模式的启用情况,能够从N个候选预测模式中确定出当前块启用的目标预测模式。N个候选预测模式中的至少一个候选预测模式的启用情况,可以理解为,N个候选预测模式中的一个或多个候选预测模式的启用情况,并不局限于全部候选预测模式的启用情况。
示例性的,针对预测模式标志位信息中包括的任一个候选预测模式的标志位取值来说,若当前块符合该候选预测模式的标志位取值的解码条件,则该标志位取值可以是从当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取。若当前块不符合该候选预测模式的标志位取值的解码条件,则该标志位取值可以是推导出的该候选预测模式的标志位取值,推导出的该候选预测模式的标志位取值可以在编码端和解码端预先配置好。
示例性的,第一取值可以为1,用于指示启用候选预测模式,第二取值可以为0,用于指示不启用该候选预测模式;或者反过来,第一取值可以为0,用于指示启用候选预测模式,第二取值可以为1,用于指示不启用该候选预测模式。当然,上述只是示例,对此不做限制,例如,第一取值可以为a,第二取值可以为b等。为了方便描述,在后续实施例中,以第一取值为1,第二取值为0为例,即,后续实施例中的标志位取值为1,均是指标志位取值为第一取值,后续实施例中的标志位取值为0,均是指标志位取值为第二取值。
示例性的,假设预测模式标志位信息包括3个候选预测模式的标志位取值,则可以将这3个候选预测模式分别记为候选预测模式1,候选预测模式2和候选预测模式3。
针对候选预测模式1的标志位取值,若当前块符合候选预测模式1的标志位取值的解码条件,则该标志位取值是从当前块的编码比特流中携带的是否启用候选预测模式1的标志位指示信息中读取。例如,若编码比特流中携带的是否启用候选预测模式1的标志位指示信息中包括数值0,则候选预测模式1的标志位取值为0;若编码比特流中携带的是否启用候选预测模式1的标志位指示信息中包括数值1,则候选预测模式1的标志位取值为1。若当前块不符合候选预测模式1的标志位取值的解码条件,则该标志位取值是推导出的候选预测模式1的标志位取值。例如,直接推导候选预测模式1的标志位取值为1或者0。
针对候选预测模式2的标志位取值,若当前块符合候选预测模式2的标志位取值的解码条件,则该标志位取值是从当前块的编码比特流中携带的是否启用候选预测模式2的标志位指示信息中读取。若当前块不符合候选预测模式2的标志位取值的解码条件,则该标志位取值是推导出的候选预测模式2的标志位取值。针对候选预测模式3的标志位取值,若当前块符合候选预测模式3的标志位取值的解码条件,则该标志位取值是从当前块的编码比特流中携带的是否启用候选预测模式3的标志位指示信息中读取。若当前块不符合候选预测模式3的标志位取值的解码条件,则该标志位取值是推导出的候选预测模式3的标志位取值。
在一种可能的实施方式中,N个候选预测模式包括但不限于以下至少一种:子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式。当然,上述只是候选预测模式的示例,对此候选预测模式不做限制,可以是任意的候选预测模式。
在一种可能的实施方式中,确定当前块的预测模式标志位信息,可以包括但不限于:按照N个候选预测模式的标志位 取值的获取顺序,确定预测模式标志位信息。
示例性的,若N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,则N个候选预测模式的标志位取值的获取顺序从前到后可以依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。当然,上述只是示例,还可以采用其它获取顺序,对此不做限制。例如,获取顺序还可以依次为:普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。又例如,获取顺序还可以依次为:MMVD模式的标志位取值,子块融合模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值。
示例性的,若N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,GEO模式,则N个候选预测模式的标志位取值的获取顺序从前到后可以依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。当然,上述只是示例,还可以采用其它获取顺序,对此不做限制。例如,获取顺序从前到后还可以依次为:普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
示例性的,N个候选预测模式还可以包括其它可能,例如,N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式;又例如,N个候选预测模式包括子块融合模式,普通融合模式,CIIP模式,对此N个候选预测模式不做限制,可以根据实际需要设置。
在一种可能的实施方式中,按照N个候选预测模式的标志位取值的获取顺序,确定预测模式标志位信息,可以包括但不限于如下方式:基于N个候选预测模式的标志位取值的获取顺序,在得到当前候选预测模式的标志位取值之后,可以根据当前候选预测模式的标志位取值,确定是否获取当前候选预测模式后面的候选预测模式的标志位取值。
例如,假设N个候选预测模式的标志位取值的获取顺序从前到后依次为:候选预测模式1的标志位取值,候选预测模式2的标志位取值和候选预测模式3的标志位取值。在得到候选预测模式1的标志位取值后,可以根据候选预测模式1的标志位取值,确定是否获取候选预测模式2的标志位取值和候选预测模式3的标志位取值。在得到候选预测模式2的标志位取值后,根据候选预测模式2的标志位取值,确定是否获取候选预测模式3的标志位取值。
又例如,假设N个候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。在得到子块融合模式的标志位取值后,可以根据子块融合模式的标志位取值,确定是否获取普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。在得到普通融合模式的标志位取值后,可以融合模式的标志位取值的标志位取值,确定是否获取MMVD模式的标志位取值,CIIP模式的标志位取值,以此类推,在此不再赘述。
针对子块融合模式的标志位取值,若当前块符合子块融合模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取。例如,若编码比特流中携带的是否启用子块融合模式的标志位指示信息中包括数值0,则子块融合模式的标志位取值为0;若编码比特流中携带的是否启用子块融合模式的标志位指示信息中包括数值1,则子块融合模式的标志位取值为1。若当前块不符合子块融合模式的标志位取值的解码条件,则标志位取值是推导出的子块融合模式的标志位取值。例如,直接推导子块融合模式的标志位取值为1或者0。当子块融合模式的标志位取值为1时,用于指示启用子块融合模式;当子块融合模式的标志位取值为0时,用于指示不启用子块融合模式。
针对普通融合模式的标志位取值,若当前块符合普通融合模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取。例如,若编码比特流中携带的是否启用普通融合模式的标志位指示信息中包括数值0,则普通融合模式的标志位取值为0;若编码比特流中携带的是否启用普通融合模式的标志位指示信息中包括数值1,则普通融合模式的标志位取值为1。若当前块不符合普通融合模式的标志位取值的解码条件,则标志位取值是推导出的普通融合模式的标志位取值。例如,直接推导普通融合模式的标志位取值为1或者0。当普通融合模式的标志位取值为1时,用于指示启用普通融合模式;当普通融合模式的标志位取值为0时,用于指示不启用普通融合模式。
针对MMVD模式的标志位取值,若当前块符合MMVD模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取。例如,若编码比特流中携带的是否启用MMVD模式的标志位指示信息中包括数值0,则MMVD模式的标志位取值为0;若编码比特流中携带的是否启用MMVD模式的标志位指示信息中包括数值1,则MMVD模式的标志位取值为1。若当前块不符合MMVD模式的标志位取值的解码条件,则标志位取值是推导出的MMVD模式的标志位取值。例如,直接推导MMVD模式的标志位取值为1或者0。当MMVD模式的标志位取值为1时,用于指示启用MMVD模式;当MMVD模式的标志位取值为0时,用于指示不启用MMVD模式。
针对CIIP模式的标志位取值,若当前块符合CIIP模式的标志位取值的解码条件,则该标志位取值可以是从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取。例如,若该编码比特流中携带的是否启用CIIP模式的标志位指示信息中包括数值0,则CIIP模式的标志位取值可以为0;若该编码比特流中携带的是否启用CIIP模式的标志位指示信息中包括数值1,则CIIP模式的标志位取值可以为1。若当前块不符合CIIP模式的标志位取值的解码条件,则标志位取值是推导出的CIIP模式的标志位取值。例如,直接推导CIIP模式的标志位取值为1或者0。示例性的,当CIIP模式的标志位取值为1时,用于指示启用CIIP模式;当CIIP模式的标志位取值为0时,用于指示不启用CIIP模式。
针对GEO模式的标志位取值,若当前块符合GEO模式的标志位取值的解码条件,则该标志位取值可以是从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取。例如,若该编码比特流中携带的是否启用GEO模式的标志位指示信息中包括数值0,则GEO模式的标志位取值可以为0;若该编码比特流中携带的是否启用GEO模式的标志位指示信息中包括数值1,则GEO模式的标志位取值可以为1。若当前块不符合GEO模式的标志位取值的解码条件,则标志位取值是推导出的GEO模式的标志位取值。例如,直接推导GEO模式的标志位取值为1或者0。示例性的,当GEO模式 的标志位取值为1时,用于指示启用GEO模式;当GEO模式的标志位取值为0时,用于指示不启用GEO模式。
步骤202,根据预测模式标志位信息确定当前块启用的目标预测模式。
对于解码端来说,根据预测模式标志位信息,可以获取N个候选预测模式中的一个或多个候选预测模式的启用情况,然后根据这些候选预测模式的启用情况和预先配置的策略,来确定当前块的目标预测模式是哪一个候选预测模式。
步骤203,根据目标预测模式对当前块进行解码,对此解码过程不做限制。
由以上方案可见,本申请实施例中,在确定当前块的预测模式标志位信息时,针对每个候选预测模式的标志位取值,若当前块不符合该候选预测模式的标志位取值的解码条件,则标志位取值是推导出的该候选预测模式的标志位取值,而不是从编码比特流中解析,即,不需要在编码比特流中携带该候选预测模式的标志位取值,从而减少编码比特流中的比特数量,降低编码开销,提高编码性能,简化解码预测模式的流程,提高解码预测模式的效率。
实施例2:参见图3所示,为编码方法的流程示意图,可以应用于编码端,该方法包括:
步骤301,确定当前块启用的目标预测模式,目标预测模式是当前块的N个候选预测模式中的其中一个。
示例性的,编码端可以确定当前块支持的所有候选预测模式,如子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式等。然后,编码端遍历当前块支持的每个候选预测模式,并确定该候选预测模式的率失真代价值,对此率失真代价值的确定方式不做限制。然后,编码端将率失真代价值最小的候选预测模式作为目标预测模式。
当然,上述目标预测模式的确定方式只是一个示例,对此不做限制,例如,编码端可以任意选择一个候选预测模式作为目标预测模式,或者采用其它方式,在此不再赘述。
步骤302,根据目标预测模式,确定当前块的预测模式标志位信息,该预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,标志位取值为第一取值时,用于指示启用该候选预测模式,标志位取值为第二取值时,用于指示不启用该候选预测模式。
对于编码端来说,确定目标预测模式之后,需要明确出,N个候选预测模式中的哪些候选预测模式的启用情况需要告知解码端,在确定出N个候选预测模式中的一个或多个候选预测模式是否启用需要告知解码端之后,按照一定的策略对这些相关的候选预测模式是否启用进行编码,以便解码端根据相同的策略,基于N个候选预测模式中的一个或多个候选预测模式的启用情况,从N个候选预测模式中确定出目标预测模式。
示例性的,第一取值可以为1,第二取值可以为0;或者,第一取值可以为0,第二取值可以为1。当然,上述只是示例,对此不做限制,例如,第一取值可以为a,第二取值可以为b等。为了方便描述,在后续实施例中,以第一取值为1,第二取值为0为例,即,后续实施例中的标志位取值为1,均是指标志位取值为第一取值,后续实施例中的标志位取值为0,均是指标志位取值为第二取值。
步骤303,根据预测模式标志位信息对当前块进行编码,对此编码过程不做限制。在对当前块进行编码的过程中,针对预测模式标志位信息包括的每个候选预测模式的标志位取值,若当前块符合该候选预测模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若当前块不符合该候选预测模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
示例性的,假设预测模式标志位信息包括3个候选预测模式的标志位取值,则可以将这3个候选预测模式分别记为候选预测模式1,候选预测模式2和候选预测模式3。
针对候选预测模式1的标志位取值,若当前块符合候选预测模式1的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用候选预测模式1的标志位指示信息。例如,若候选预测模式1的标志位取值为1,则当前块的编码比特流中携带的候选预测模式1的标志位指示信息为1;若候选预测模式1的标志位取值为0,则当前块的编码比特流中携带的候选预测模式1的标志位指示信息为0。若当前块不符合候选预测模式1的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用候选预测模式1的标志位指示信息,比如说,无论候选预测模式1的标志位取值为0还是1,均不在编码比特流中携带候选预测模式1的标志位指示信息,而是由解码端自身推导出候选预测模式1的标志位取值。
针对候选预测模式2的标志位取值,若当前块符合候选预测模式2的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用候选预测模式2的标志位指示信息。若当前块不符合候选预测模式2的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用候选预测模式2的标志位指示信息。针对候选预测模式3的标志位取值,若当前块符合候选预测模式3的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用候选预测模式3的标志位指示信息。若当前块不符合候选预测模式3的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用候选预测模式3的标志位指示信息。
在一种可能的实施方式中,N个候选预测模式包括但不限于以下至少一种:子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式。当然,上述只是候选预测模式的示例,对此候选预测模式不做限制,可以是任意的候选预测模式。
在一种可能的实施方式中,可以按照N个候选预测模式的标志位取值的获取顺序,决策是否在当前块的编码比特流中携带是否启用候选预测模式的标志位指示信息。
示例性的,若N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,则N个候选预测模式的标志位取值的获取顺序从前到后可以依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。当然,上述只是一个示例,还可以采用其它获取顺序,对此获取顺序不做限制。
若N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,GEO模式,则N个候选预测模式的标志位取值的获取顺序从前到后可以依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。当然,上述只是示例,还可采用其它获取顺序,对此不做限制。
当然,N个候选预测模式还可以包括其它可能,例如,N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式;又例如,N个候选预测模式包括子块融合模式,普通融合模式,CIIP模式,对此N个候选预测模式不做限制,可以根据实际需要设置。
在一种可能的实施方式中,按照N个候选预测模式的标志位取值的获取顺序,决策是否在当前块的编码比特流中携带是否启用候选预测模式的标志位指示信息,可以包括:基于N个候选预测模式的标志位取值的获取顺序,根据当前候选预测模式的标志位取值,决策是否在当前块的编码比特流中携带当前候选预测模式后面的候选预测模式的标志位指示信息。
例如,假设N个候选预测模式的标志位取值的获取顺序从前到后依次为:候选预测模式1的标志位取值,候选预测模式2的标志位取值和候选预测模式3的标志位取值。根据候选预测模式1的标志位取值,决策是否在当前块的编码比特流中携带候选预测模式2的标志位指示信息和候选预测模式3的标志位指示信息。根据候选预测模式2的标志位取值,决策是否在当前块的编码比特流中携带候选预测模式3的标志位指示信息。又例如,假设N个候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。根据子块融合模式的标志位取值,决策是否在当前块的编码比特流中携带普通融合模式的标志位指示信息,MMVD模式的记位指示信息,CIIP模式的记位指示信息。根据普通融合模式的标志位取值,决策是否在当前块的编码比特流中携带MMVD模式的记位指示信息,CIIP模式的记位指示信息,以此类推。
针对子块融合模式的标志位取值,若当前块符合子块融合模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用子块融合模式的标志位指示信息。例如,若子块融合模式的标志位取值为1,则子块融合模式的标志位指示信息为1;若子块融合模式的标志位取值为0,则子块融合模式的标志位指示信息为0。若当前块不符合子块融合模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用子块融合模式的标志位指示信息。
针对普通融合模式的标志位取值,若当前块符合普通融合模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用普通融合模式的标志位指示信息。例如,若普通融合模式的标志位取值为1,则普通融合模式的标志位指示信息为1;若普通融合模式的标志位取值为0,则普通融合模式的标志位指示信息为0。若当前块不符合普通融合模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用普通融合模式的标志位指示信息。
针对MMVD模式的标志位取值,若当前块符合MMVD模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用MMVD模式的标志位指示信息。例如,若MMVD模式的标志位取值为1,则MMVD模式的标志位指示信息为1;若MMVD模式的标志位取值为0,则MMVD模式的标志位指示信息为0。若当前块不符合MMVD模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用MMVD模式的标志位指示信息。
针对CIIP模式的标志位取值,若当前块符合CIIP模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用CIIP模式的标志位指示信息。例如,若CIIP模式的标志位取值为1,则CIIP模式的标志位指示信息为1;若CIIP模式的标志位取值为0,则CIIP模式的标志位指示信息为0。若当前块不符合CIIP模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用CIIP模式的标志位指示信息。
针对GEO模式的标志位取值,若当前块符合GEO模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用GEO模式的标志位指示信息。例如,若GEO模式的标志位取值为1,则GEO模式的标志位指示信息为1;若GEO模式的标志位取值为0,则GEO模式的标志位指示信息为0。若当前块不符合GEO模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用GEO模式的标志位指示信息。
由以上方案可见,本申请实施例中,针对每个候选预测模式的标志位取值,若当前块不符合该候选预测模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息,从而可以减少编码比特流中的比特数量,降低编码开销,提高编码性能,简化解码预测模式的流程,提高解码预测模式的效率。
针对实施例1的解码方法和实施例2的编码方法,可以适用于融合模式的编解码过程,也可以适用于跳过模式的编解码过程。参见上述实施例,融合模式可以包括但不限于:子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式。跳过模式可以包括但不限于:子块融合模式,普通融合模式,MMVD模式,TPM模式,GEO模式。
在融合模式或者跳过模式中,可以采用实施例1的解码方法,确定目标预测模式,并根据目标预测模式对当前块进行解码,具体过程参见实施例1。可以采用实施例2的编码方法,确定目标预测模式,并根据目标预测模式对当前块进行编码,具体过程参见实施例2。
以下结合几个具体实施例,对上述解码方法和编码方法进行进一步的说明。
实施例3:参见图4A所示,为预测模式标志位的编解码方法的示意图。
本实施例中,候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在确定当前块的预测模式标志位信息时,该预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值中的一个或者多种。例如,解码端采用如下方式获取各预测 模式的标志位取值:
获取子块融合模式的标志位取值。若当前块符合子块融合模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取。若当前块不符合子块融合模式的标志位取值的解码条件,则标志位取值是推导出的。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值。
若子块融合模式的标志位取值为0,则继续获取普通融合模式的标志位取值。若当前块符合普通融合模式的标志位取值的解码条件,则普通融合模式的标志位取值是从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取。若当前块不符合普通融合模式的标志位取值的解码条件,则普通融合模式的标志位取值是推导出的。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值和普通融合模式的标志位取值。
若普通融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。若当前块符合MMVD模式的标志位取值的解码条件,则MMVD模式的标志位取值是从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取。若当前块不符合MMVD模式的标志位取值的解码条件,则MMVD模式的标志位取值是推导出的。
若MMVD模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值。
若MMVD模式的标志位取值为0,则继续获取CIIP模式的标志位取值。若当前块符合CIIP模式的标志位取值的解码条件,则CIIP模式的标志位取值是从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取。若当前块不符合CIIP模式的标志位取值的解码条件,则CIIP模式的标志位取值是推导出的。
在获取CIIP模式的标志位取值后,则结束标志位取值的获取过程,且预测模式标志位信息可以包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在上述实施例中,解码端需要判断当前块是否符合预测模式的标志位取值的解码条件,并基于判断结果决策标志位取值是从当前块的编码比特流中读取,还是推导标志位取值。
参见表2所示,为各预测模式的标志位取值的解码条件的一个示例。
表2
Figure PCTCN2020115634-appb-000002
从表2可以看出,在一种可能的实施方式中,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,针对子块融合模式的标志位取值的获取方式,包括:若当前块支持子块融合模式,则从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取子块融合模式的标志位取值,例如,子块融合模式的标志位指示信息为0时,则子块融合模式的标志位取值为0,子块融合模式的标志位指示信息为1时,则子块融合模式的标志位取值为1。否则,推导出子块融合模式的标志位取值为0。
在一种可能的实施方式中,普通融合模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对普通融合模式的标志位取值的获取方式,包括:若当前块支持MMVD模式,或当前块支持CIIP模式,或当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取普通融合模式的标志位取值,例如,普通融合模式的标志位指示信息为0时,则普通融合模式的标志位取值为0,普通融合模式的标志位指示信息为1时,则普通融合模式的标志位取值为1。否则,推导出普通融合模式的标志位取值为1。
在一种可能的实施方式中,MMVD模式的标志位取值的解码条件可以包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对MMVD模式的标志位取值的获取方式,可以包括:若当前块支持MMVD模式且当前块支持CIIP模式,或者,当前块支持MMVD模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取MMVD模式的标志位取值,例如,MMVD模式的标志位指示信息为0时,则MMVD模式的标志位取值为0,MMVD模式的标志位指示信息为1时,则MMVD模式的标志位取值为1。否则,在当前块支持MMVD模式时,则可以推导出MMVD模式的标志位取值为1,在当前块不支持MMVD模式时,则可以推导出MMVD模式的标志位取值为0。
在一种可能的实施方式中,CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对CIIP模式的标志位取值的获取方式,可以包括:若当前块支持CIIP模式且当前块支持TPM模式,则 从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取CIIP模式的标志位取值,例如,CIIP模式的标志位指示信息为0时,则CIIP模式的标志位取值为0,CIIP模式的标志位指示信息为1时,则CIIP模式的标志位取值为1。否则,在当前块支持CIIP模式时,推导出CIIP模式的标志位取值为1,在当前块不支持CIIP模式时,推导出CIIP模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。在一种可能的实施方式中,参见图4A所示,若子块融合模式的标志位取值为1,则确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,则确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,则确定当前块启用的目标预测模式为TPM模式。
在一种可能的实施方式中,与上述解码端处理流程对应的,针对编码端来说,编码端先确定目标预测模式,具体确定方式参见实施例2,在此不再赘述。然后,根据目标预测模式确定当前块的预测模式标志位信息,参见图4A所示,假设目标预测模式为普通融合模式,则预测模式标志位信息包括:子块融合模式的标志位取值0,普通融合模式的标志位取值1。
针对子块融合模式的标志位取值0,若当前块符合子块融合模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用子块融合模式的标志位指示信息,即子块融合模式的标志位指示信息为1。若当前块不符合子块融合模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用子块融合模式的标志位指示信息。
针对普通融合模式的标志位取值1,若当前块符合普通融合模式的标志位取值的解码条件,则在当前块的编码比特流中携带是否启用普通融合模式的标志位指示信息,即普通融合模式的标志位指示信息为1。若当前块不符合普通融合模式的标志位取值的解码条件,则不在当前块的编码比特流中携带是否启用普通融合模式的标志位指示信息。
以此类推,针对预测模式标志位信息中的每个预测模式的标志位取值,均采用上述方式处理,在此不再赘述。当预测模式标志位信息为其它情况时,处理方式类似,在此不再赘述。
实施例4:参见图4B所示,为预测模式标志位的编解码方法的示意图。
本实施例中,候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在确定当前块的预测模式标志位信息时,该预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值中的一个或者多种。例如,解码端采用如下方式获取各预测模式的标志位取值:
获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值。
若子块融合模式的标志位取值为0,则继续获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则继续获取MMVD模式的标志位取值,结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值。
若普通融合模式的标志位取值为0,则继续获取CIIP模式的标志位取值,结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值。
在上述实施例中,解码端获取标志位取值时,若当前块符合预测模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中读取。若当前块不符合预测模式的标志位取值的解码条件,则标志位取值是推导出的。因此,需要判断当前块是否符合预测模式的标志位取值的解码条件。参见表3所示,为各预测模式的标志位取值的解码条件的一个示例。
表3
Figure PCTCN2020115634-appb-000003
从表3可以看出,在一种可能的实施方式中,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,针对子块融合模式的标志位取值的获取方式,包括:若当前块支持子块融合模式,从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取子块融合模式的标志位取值。否则推导出子块融合模式的标志位取值为0。
在一种可能的实施方式中,普通融合模式的标志位取值的解码条件可以包括当前块对CIIP模式的支持情况,当前块对 TPM模式的支持情况,针对普通融合模式的标志位取值的获取方式,可以包括但不限于:若当前块支持CIIP模式,或者,当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取普通融合模式的标志位取值;否则,推导出普通融合模式的标志位取值为1。
在一种可能的实施方式中,MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,针对MMVD模式的标志位取值的获取方式,可以包括:若当前块支持MMVD模式,则从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取MMVD模式的标志位取值;否则,推导出MMVD模式的标志位取值为0。
CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对CIIP模式的标志位取值的获取方式,可以包括:若当前块支持CIIP模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取CIIP模式的标志位取值。否则,在当前块支持CIIP模式时,推导出CIIP模式的标志位取值为1,在当前块不支持CIIP模式时,推导出CIIP模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4B所示,若子块融合模式的标志位取值为1,则确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,MMVD模式的标志位取值为0,则确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位为1,则确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,则确定当前块启用的目标预测模式为TPM模式。
在一种可能的实施方式中,与上述解码端处理流程对应的,针对编码端来说,编码端先确定目标预测模式,根据目标预测模式确定当前块的预测模式标志位信息,参见图4B所示,假设目标预测模式为普通融合模式,则预测模式标志位信息包括:子块融合模式的标志位取值0,普通融合模式的标志位取值1,MMVD模式的标志位取值0。
其它实现过程参见上述实施例3,只是解码条件参见表3所示,在此不再赘述。
实施例5:参见图4C所示,为预测模式标志位的编解码方法的示意图。
本实施例中,候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,候选预测模式的标志位取值的获取顺序从前到后依次为:普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在确定当前块的预测模式标志位信息时,该预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值中的一个或者多种。例如,解码端采用如下方式获取各预测模式的标志位取值:
获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则继续获取子块融合模式的标志位取值,并结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值。
若普通融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。
若MMVD模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括普通融合模式的标志位取值,MMVD模式的标志位取值。
若MMVD模式的标志位取值为0,继续获取CIIP模式的标志位取值,结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在上述实施例中,解码端获取标志位取值时,若当前块符合预测模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中读取。若当前块不符合预测模式的标志位取值的解码条件,则标志位取值是推导出的。因此,需要判断当前块是否符合预测模式的标志位取值的解码条件。参见表4所示,为各预测模式的标志位取值的解码条件的一个示例。
表4
Figure PCTCN2020115634-appb-000004
从表4可以看出,在一种可能的实施方式中,普通融合模式的标志位取值的解码条件可以包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对普通融合模式的标志位取值的获取方式,可以包括但不限于:若当前块支持MMVD模式,或者,当前块支持CIIP模式,或者,当前块支持TPM模式,则从当前块 的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取普通融合模式的标志位取值;否则,可以推导出普通融合模式的标志位取值为1。
在一种可能的实施方式中,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,针对子块融合模式的标志位取值的获取方式,包括:若当前块支持子块融合模式,从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取子块融合模式的标志位取值。否则,推导出子块融合模式的标志位取值为0。
在一种可能的实施方式中,MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对MMVD模式的标志位取值的获取方式,包括:若当前块支持MMVD模式且当前块支持CIIP模式,或者,当前块支持MMVD模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取MMVD模式的标志位取值。否则,在当前块支持MMVD模式时,则可以推导出MMVD模式的标志位取值为1,在当前块不支持MMVD模式时,则可以推导出MMVD模式的标志位取值为0。
CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对CIIP模式的标志位取值的获取方式,可以包括:若当前块支持CIIP模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取CIIP模式的标志位取值。否则,在当前块支持CIIP模式时,推导出CIIP模式的标志位取值为1,在当前块不支持CIIP模式时,推导出CIIP模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4C所示,若普通融合模式的标志位取值为1,子块融合模式的标志位取值为1,则确定当前块启用的目标预测模式为子块融合模式。若普通融合模式的标志位取值为1,子块融合模式的标志位取值为0,则确定当前块启用的目标预测模式为普通融合模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位为0,则确定当前块的目标预测模式为TPM模式。
在一种可能的实施方式中,与上述解码端处理流程对应的,针对编码端来说,编码端先确定目标预测模式,根据目标预测模式确定当前块的预测模式标志位信息,参见图4C所示,假设目标预测模式为普通融合模式,则预测模式标志位信息包括:普通融合模式的标志位取值1,子块融合模式的标志位取值0。
其它实现过程参见上述实施例3,只是解码条件参见表4所示,在此不再赘述。
实施例6:参见图4D所示,为预测模式标志位的编解码方法的示意图。
本实施例中,候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,MMVD模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值。
在确定当前块的预测模式标志位信息时,该预测模式标志位信息包括子块融合模式的标志位取值,MMVD模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值中的一个或者多种。例如,解码端采用如下方式获取各预测模式的标志位取值:
获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则继续获取MMVD模式的标志位取值,并结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,MMVD模式的标志位取值。
若子块融合模式的标志位取值为0,则继续获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值。
若普通融合模式的标志位取值为0,继续获取CIIP模式的标志位取值,结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值。
在上述实施例中,解码端获取标志位取值时,若当前块符合预测模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中读取。若当前块不符合预测模式的标志位取值的解码条件,则标志位取值是推导出的。因此,需要判断当前块是否符合预测模式的标志位取值的解码条件。参见表5所示,为各预测模式的标志位取值的解码条件的一个示例。
表5
Figure PCTCN2020115634-appb-000005
从表5可以看出,在一种可能的实施方式中,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,当前块对MMVD模式的支持情况,针对子块融合模式的标志位取值的获取方式,可以包括:若当前块支持子块融合模式且当前块支持MMVD模式,从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取子块融合模式的标志位取值。否则,在当前块支持子块融合模式时,推导出子块融合模式的标志位取值为1,在当前块不支持子块融合模式时,推导出子块融合模式的标志位取值为0。
在一种可能的实施方式中,MMVD模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,当前块对MMVD模式的支持情况,针对MMVD模式的标志位取值的获取方式,可以包括:若当前块支持子块融合模式且当前块支持MMVD模式,则从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取MMVD模式的标志位取值;否则,在当前块支持MMVD模式时,推导出MMVD模式的标志位取值为1,在当前块不支持MMVD模式时,推导出MMVD模式的标志位取值为0。
在一种可能的实施方式中,普通融合模式的标志位取值的解码条件可以包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对普通融合模式的标志位取值的获取方式,可以包括但不限于:若当前块支持CIIP模式,或者,当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取普通融合模式的标志位取值;否则,推导出普通融合模式的标志位取值为1。
CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对CIIP模式的标志位取值的获取方式,可以包括:若当前块支持CIIP模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取CIIP模式的标志位取值。否则,在当前块支持CIIP模式时,推导出CIIP模式的标志位取值为1,在当前块不支持CIIP模式时,推导出CIIP模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4D所示,若子块融合模式的标志位取值为1,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为1,MMVD模式的标志位取值为0,则确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,则确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,则确定当前块启用的目标预测模式为TPM模式。
在一种可能的实施方式中,与上述解码端处理流程对应的,针对编码端来说,编码端先确定目标预测模式,根据目标预测模式确定当前块的预测模式标志位信息,参见图4D所示,假设目标预测模式为普通融合模式,则预测模式标志位信息包括:子块融合模式的标志位取值0,普通融合模式的标志位取值1。
其它实现过程参见上述实施例3,只是解码条件参见表5所示,在此不再赘述。
实施例7:参见图4E所示,为预测模式标志位的编解码方法的示意图。
本实施例中,候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,候选预测模式的标志位取值的获取顺序从前到后依次为:普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在确定当前块的预测模式标志位信息时,该预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值中的一个或者多种。例如,解码端采用如下方式获取各预测模式的标志位取值:
获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括普通融合模式的标志位取值。
若普通融合模式的标志位取值为0,则继续获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值。
若子块融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。
若MMVD模式的标志位取值1,则结束标志位取值的获取过程。预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值。
若MMVD模式的标志位取值为0,则继续获取CIIP模式的标志位取值,结束标志位取值的获取过程。预测模式标志位信息包括普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
在上述实施例中,解码端获取标志位取值时,若当前块符合预测模式的标志位取值的解码条件,则标志位取值是从当前块的编码比特流中读取。若当前块不符合预测模式的标志位取值的解码条件,则标志位取值是推导出的。因此,需要判断当前块是否符合预测模式的标志位取值的解码条件。参见表6所示,为各预测模式的标志位取值的解码条件的一个示例。
表6
Figure PCTCN2020115634-appb-000006
在一种可能的实施方式中,普通融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对普通融合模式的标志位取值的获取方式,包括:若当前块支持子块融合模式,或者,当前块支持MMVD模式,或者,当前块支持CIIP模式,或者,当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取普通融合模式的标志位取值;否则,推导出普通融合模式的标志位取值为1。
在一种可能的实施方式中,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对子块融合模式的标志位取值的获取方式,包括:若当前块支持子块融合模式且当前块支持MMVD模式;或者,当前块支持子块融合模式且当前块支持CIIP模式,或者,当前块支持子块融合模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取子块融合模式的标志位取值。否则,在当前块支持子块融合模式时,则可以推导出子块融合模式的标志位取值为1,在当前块不支持子块融合模式时,则可以推导出子块融合模式的标志位取值为0。
在一种可能的实施方式中,MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对MMVD模式的标志位取值的获取方式,包括:若当前块支持MMVD模式且当前块支持CIIP模式,或者,当前块支持MMVD模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取MMVD模式的标志位取值。否则,在当前块支持MMVD模式时,则可以推导出MMVD模式的标志位取值为1,在当前块不支持MMVD模式时,则可以推导出MMVD模式的标志位取值为0。
CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,针对CIIP模式的标志位取值的获取方式,包括:若当前块支持CIIP模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用CIIP模式的标志位指示信息中读取CIIP模式的标志位取值。否则,在当前块支持CIIP模式时,推导出CIIP模式的标志位取值为1,在当前块不支持CIIP模式时,推导出CIIP模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4E所示,若普通融合模式的标志位取值为1,则可以确定当前块启用的目标预测模式为普通融合模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为1,则可以确定当前块启用的目标预测模式为子块融合模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为1,则可以确定当前块启用的目标预测模式为MMVD模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,则可以确定当前块启用的目标预测模式为CIIP模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,则可以确定启用当前块的目标预测模式为TPM模式。
在一种可能的实施方式中,与上述解码端处理流程对应的,针对编码端来说,编码端先确定目标预测模式,根据目标预测模式确定当前块的预测模式标志位信息,参见图4E所示,假设目标预测模式为普通融合模式,则预测模式标志位信息包括:普通融合模式的标志位取值1。其它实现过程参见上述实施例3,只是解码条件参见表6所示。
在上述实施例3-实施例7的基础上,还可以在TPM模式后面增加一个GEO模式。GEO模式与TPM模式类似,只是划分形状不同。GEO模式将一个方形块分成任意形状的两个子块(除了TPM模式的两个三角子块的形状外的任意其它形状, 可以是一个三角子块,一个五边形子块,可以是一个三角子块,一个四边形子块,也可以是两个梯形子块),这两个子块拥有不同的单向运动信息。以下结合具体实施例,对包括GEO模式的编解码方法进行说明。
实施例8:在实施例3的基础上,可以在TPM模式后面增加GEO模式,实现过程与实施例3类似。参见图4F所示,为预测模式标志位的编解码方法的示意图。候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式,候选预测模式的标志位取值的获取顺序从前到后依次为子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在确定当前块的预测模式标志位信息时,采用如下方式获取各预测模式的标志位取值:
获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值。
若子块融合模式的标志位取值为0,则继续获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值和普通融合模式的标志位取值。
若普通融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。
若MMVD模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值。
若MMVD模式的标志位取值为0,则继续获取CIIP模式的标志位取值。
若CIIP模式的标志位取值为1,则结束标志位取值的获取过程。预测模式标志位信息可以包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值。
若CIIP模式的标志位取值为0,则继续获取GEO模式的标志位取值,在获取GEO模式的标志位取值之后,结束标志位取值的获取过程。预测模式标志位信息可以包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在本实施例中,参见表7所示,为各预测模式的标志位取值的解码条件的一个示例。
表7
Figure PCTCN2020115634-appb-000007
关于子块融合模式的标志位取值的解码条件,普通融合模式的标志位取值的解码条件,MMVD模式的标志位取值的解码条件,CIIP模式的标志位取值的解码条件,均参见实施例3,在此不再赘述。本实施例中,额外增加GEO模式的标志位取值的解码条件,以下进行说明。
GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况。针对GEO模式的标志位取值的获取方式,可以包括:若当前块支持GEO模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取GEO模式的标志位取值;否则,在当前块支持GEO模式时,推导出GEO模式的标志位取值为1,在当前块不支持GEO模式时,推导出GEO模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4F所示,若子块融合模式的标志位取值为1,确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为1,确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为0,则确定当前块启用的目标预测模式为TPM模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为1,则确定当前块启用的目标预测模式为GEO模式。
实施例9:在实施例4的基础上,可以在TPM模式后面增加GEO模式,实现过程与实施例4类似。参见图4G所示,为预测模式标志位的编解码方法的示意图。候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM 模式,GEO模式,候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在确定当前块的预测模式标志位信息时,采用如下方式获取各预测模式的标志位取值:
获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值。
若子块融合模式的标志位取值为0,则获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则获取MMVD模式的标志位取值,并结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值。
若普通融合模式的标志位取值为0,则获取CIIP模式的标志位取值。
若CIIP模式的标志位取值为1,则结束标志位取值的获取过程。在此情况下,预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值。
若CIIP模式的标志位取值为0,则获取GEO模式的标志位取值,结束标志位取值的获取过程。预测模式标志位信息包括子块融合模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在本实施例中,参见表8所示,为各预测模式的标志位取值的解码条件的一个示例。
表8
Figure PCTCN2020115634-appb-000008
在实施例4的基础上,额外增加GEO模式的标志位取值的解码条件,以下进行说明。
GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况。针对GEO模式的标志位取值的获取方式,可以包括:若当前块支持GEO模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取GEO模式的标志位取值;否则,在当前块支持GEO模式时,推导出GEO模式的标志位取值为1,在当前块不支持GEO模式时,推导出GEO模式的标志位取值为0。
基于上述处理,得到预测模式标志位信息,根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4G所示,若子块融合模式的标志位取值为1,确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,MMVD模式的标志位取值为0,确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,MMVD模式的标志位取值为1,确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位为1,确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为0,确定当前块启用的目标预测模式为TPM模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为1,确定当前块启用的目标预测模式为GEO模式。
实施例10:在实施例5的基础上,可以在TPM模式后面增加GEO模式,实现过程与实施例5类似。参见图4H所示,为预测模式标志位的编解码方法的示意图。候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式,候选预测模式的标志位取值的获取顺序从前到后依次为:普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在确定当前块的预测模式标志位信息时,采用如下方式获取各预测模式的标志位取值:
获取普通融合模式的标志位取值。若普通融合模式的标志位取值为1,则继续获取子块融合模式的标志位取值,并结束标志位取值的获取过程。
若普通融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。
若MMVD模式的标志位取值为1,则结束标志位取值的获取过程。
若MMVD模式的标志位取值为0,继续获取CIIP模式的标志位取值。
若CIIP模式的标志位取值为1,则结束标志位取值的获取过程。若CIIP模式的标志位取值为0,则继续获取GEO模式的标志位取值,结束标志位取值的获取过程。
关于普通融合模式的标志位取值的解码条件,子块融合模式的标志位取值的解码条件,MMVD模式的标志位取值的解码条件,CIIP模式的标志位取值的解码条件,可以参见实施例5的表4所示。本实施例中,额外增加GEO模式的标志位取值的解码条件。示例性的,GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况。针对GEO模式的标志位取值的获取方式,可以包括:若当前块支持GEO模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取GEO模式的标志位取值;否则,在当前块支持GEO模式时,推导出GEO模式的标志位取值为1,在当前块不支持GEO模式时,推导出GEO模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4H所示,若普通融合模式的标志位取值为1,子块融合模式的标志位取值为1,则确定当前块启用的目标预测模式为子块融合模式。若普通融合模式的标志位取值为1,子块融合模式的标志位取值为0,则确定当前块启用的目标预测模式为普通融合模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位为0,GEO模式的标志位取值为0,确定当前块启用的目标预测模式为TPM模式。若普通融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位为0,GEO模式的标志位取值为1,确定当前块启用的目标预测模式为GEO模式。
实施例11:在实施例6的基础上,可以在TPM模式后面增加GEO模式,实现过程与实施例6类似。参见图4I所示,为预测模式标志位的编解码方法的示意图。候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式,候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,MMVD模式的标志位取值,普通融合模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在确定当前块的预测模式标志位信息时,采用如下方式获取各预测模式的标志位取值:
获取子块融合模式的标志位取值。若子块融合模式的标志位取值为1,则继续获取MMVD模式的标志位取值,并结束标志位取值的获取过程。
若子块融合模式的标志位取值为0,则继续获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。
若普通融合模式的标志位取值为0,则继续获取CIIP模式的标志位取值。
若CIIP模式的标志位取值为1,则结束标志位取值的获取过程。若CIIP模式的标志位取值为0,则继续获取GEO模式的标志位取值,结束标志位取值的获取过程。
关于子块融合模式的标志位取值的解码条件,MMVD模式的标志位取值的解码条件,普通融合模式的标志位取值的解码条件,CIIP模式的标志位取值的解码条件,可以参见实施例6的表5所示。本实施例中,额外增加GEO模式的标志位取值的解码条件。示例性的,GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况。针对GEO模式的标志位取值的获取方式,可以包括:若当前块支持GEO模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取GEO模式的标志位取值;否则,在当前块支持GEO模式时,推导出GEO模式的标志位取值为1,在当前块不支持GEO模式时,推导出GEO模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4I所示,若子块融合模式的标志位取值为1,MMVD模式的标志位取值为1,则确定当前块启用的目标预测模式为MMVD模式。若子块融合模式的标志位取值为1,MMVD模式的标志位取值为0,则确定当前块启用的目标预测模式为子块融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为1,则确定当前块启用的目标预测模式为普通融合模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为1,则确定当前块启用的目标预测模式为CIIP模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为0,确定当前块启用的目标预测模式为TPM模式。若子块融合模式的标志位取值为0,普通融合模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为1,确定当前块启用的目标预测模式为GEO模式。
实施例12:在实施例7的基础上,可以在TPM模式后面增加GEO模式,实现过程与实施例7类似。参见图4J所示,为预测模式标志位的编解码方法的示意图。候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式,候选预测模式的标志位取值的获取顺序从前到后依次为普通融合模式的标志位取值,子块融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
在确定当前块的预测模式标志位信息时,采用如下方式获取各预测模式的标志位取值:
获取普通融合模式的标志位取值。
若普通融合模式的标志位取值为1,则结束标志位取值的获取过程。
若普通融合模式的标志位取值为0,则继续获取子块融合模式的标志位取值。
若子块融合模式的标志位取值为1,则结束标志位取值的获取过程。
若子块融合模式的标志位取值为0,则继续获取MMVD模式的标志位取值。
若MMVD模式的标志位取值1,则结束标志位取值的获取过程。
若MMVD模式的标志位取值为0,则继续获取CIIP模式的标志位取值。
若CIIP模式的标志位取值为1,则结束标志位取值的获取过程。若CIIP模式的标志位取值为0,则继续获取GEO模式的标志位取值,结束标志位取值的获取过程。
关于普通融合模式的标志位取值的解码条件,子块融合模式的标志位取值的解码条件,MMVD模式的标志位取值的解码条件,CIIP模式的标志位取值的解码条件,可以参见实施例7的表6所示。本实施例中,额外增加GEO模式的标志位取值的解码条件。示例性的,GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况。针对GEO模式的标志位取值的获取方式,可以包括:若当前块支持GEO模式且当前块支持TPM模式,则从当前块的编码比特流中携带的是否启用GEO模式的标志位指示信息中读取GEO模式的标志位取值;否则,在当前块支持GEO模式时,推导出GEO模式的标志位取值为1,在当前块不支持GEO模式时,推导出GEO模式的标志位取值为0。
基于上述处理,可以得到当前块的预测模式标志位信息,并根据预测模式标志位信息确定当前块启用的目标预测模式。参见图4J所示,若普通融合模式的标志位取值为1,则确定当前块启用的目标预测模式为普通融合模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为1,则确定当前块启用的目标预测模式为子块融合模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为1,确定当前块启用的目标预测模式为MMVD模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为1,确定当前块启用的目标预测模式为CIIP模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为0,确定当前块启用的目标预测模式为TPM模式。若普通融合模式的标志位取值为0,子块融合模式的标志位取值为0,MMVD模式的标志位取值为0,CIIP模式的标志位取值为0,GEO模式的标志位取值为1,确定当前块启用的目标预测模式为GEO模式。
当然,上述实施例3-实施例12只是几个示例,对此不做限制,在候选预测模式的标志位取值的获取顺序不同时,则可以采用不同的预测模式标志位的编解码方法。例如,候选预测模式的标志位取值的获取顺序从前到后依次为:MMVD模式的标志位取值,普通融合模式的标志位取值,子块融合模式的标志位取值,CIIP模式的标志位取值,针对实施例3,参见图4A所示,可以更换MMVD模式的标志位取值与子块融合模式的标志位取值的位置,得到一个新的实现方式。针对实施例4,参见图4B所示,可以更换MMVD模式的标志位取值与子块融合模式的标志位取值的位置,得到一个新的实现方式。总之,基于候选预测模式的标志位取值的获取顺序,可以采用图4A-图4J的结构,确定当前块启用的目标预测模式。
实施例13:针对实施例1-实施例12,涉及当前块是否支持子块融合模式,可以通过以下几种方式确定当前块支持子块融合模式。
在一种可能的实施方式中,可以通过以下方式确定当前块支持子块融合模式:若根据序列级开关控制信息允许当前块采用affine模式或者允许当前块采用子块TMVP模式,且当前块的尺寸信息满足第一尺寸限制条件,则可以确定当前块支持子块融合模式。
在另一种可能的实施方式中,可以通过以下方式确定当前块支持子块融合模式:若根据序列级开关控制信息允许当前块采用affine模式或者允许当前块采用子块TMVP模式,且根据序列级开关控制信息允许子块融合模式的运动信息列表长度大于0,且当前块的尺寸信息满足第一尺寸限制条件,则可以确定当前块支持子块融合模式。
示例性的,第一尺寸限制条件可以根据需要任意配置,例如,当前块的宽度值大于或者等于8,当前块的高度值大于或者等于8时,则当前块的尺寸信息满足第一尺寸限制条件。
当然,上述只是第一尺寸限制条件的示例,对此不做限制,例如,当前块的宽度值大于或者等于16,当前块的高度值大于或者等于16时,则当前块的尺寸信息满足第一尺寸限制条件。又例如,当前块的宽度值大于或者等于8,且小于或者等于64,当前块的高度值大于或者等于8,且小于或者等于64时,则当前块的尺寸信息满足第一尺寸限制条件。
针对实施例1-实施例12,涉及当前块是否支持MMVD模式。在一种可能的实施方式中,可以通过以下方式确定当前块支持MMVD模式:若根据序列级开关控制信息允许当前块采用MMVD模式,则确定当前块支持MMVD模式。当然,上述方式只是一个示例,还可以参考其它因素确定当前块支持MMVD模式,对此不做限制。例如,若根据序列级开关控制信息允许当前块采用MMVD模式,且当前块的尺寸信息满足尺寸限制条件,如当前块的宽度值大于或者等于8,当前块的高度值大于或者等于8,则确定当前块支持MMVD模式。
针对实施例1-实施例12,涉及当前块是否支持CIIP模式。在一种可能的实施方式中,可以通过以下方式确定当前块支持CIIP模式:若根据序列级开关控制信息允许当前块采用CIIP模式,且当前块不启用跳过模式,并且当前块的尺寸信息满足第二尺寸限制条件,则确定当前块支持CIIP模式。当然,上述方式只是一个示例,对此不做限制。
示例性的,第二尺寸限制条件可以根据需要任意配置,例如,当前块的宽度值与高度值的乘积大于或等于64,当前块的宽度值小于128,当前块的高度值小于128时,则当前块的尺寸信息满足第二尺寸限制条件。当然,上述只是第二尺寸限制条件的示例,对此不做限制。
例如,当前块的宽度值大于或者等于64,且小于128,当前块的高度值大于或者等于64,且小于128时,则当前块的尺寸信息满足第二尺寸限制条件。又例如,当前块的宽度值大于或者等于8,且小于128,当前块的高度值大于或者等于8,且小于128时,则当前块的尺寸信息满足第二尺寸限制条件。又例如,当前块的宽度值大于或者等于64,当前块的高度值大于或者等于64时,则当前块的尺寸信息满足第二尺寸限制条件。又例如,当前块的宽度值小于128,当前块的高度值小于128时,则当前块的尺寸信息满足第二尺寸限制条件。
针对实施例1-实施例7,涉及当前块是否支持TPM模式,可以通过以下几种方式确定当前块支持TPM模式。
在一种可能的实施方式中,可以通过以下方式确定当前块支持TPM模式:若根据序列级开关控制信息允许当前块采用TPM模式,且当前块所在图像帧的帧类型为B帧,且当前块的尺寸信息满足第三尺寸限制条件,则确定当前块支持TPM模式。
在另一种可能的实施方式中,可以通过以下方式确定当前块支持TPM模式:若根据序列级开关控制信息允许当前块采用TPM模式,且根据序列级开关控制信息允许TPM模式的运动信息列表长度大于或者等于2,且当前块所在图像帧的帧类型为B帧,且当前块的尺寸信息满足第三尺寸限制条件,则可以确定当前块支持TPM模式。
针对实施例1、实施例2、实施例8-实施例12,涉及当前块是否支持TPM模式,可以通过以下几种方式确定当前块支持TPM模式。
在一种可能的实施方式中,可以通过以下方式确定当前块支持TPM模式:若根据序列级开关控制信息允许当前块采用TPM模式或者序列级开关控制信息允许当前块采用GEO模式,且当前块所在图像帧的帧类型为B帧,且当前块的尺寸信息满足第三尺寸限制条件,则确定当前块支持TPM模式。
在另一种可能的实施方式中,可以通过以下方式确定当前块支持TPM模式:若根据序列级开关控制信息允许当前块采用TPM模式且根据序列级开关控制信息允许TPM模式的运动信息列表长度大于或者等于2;或者,根据序列级开关控制信息允许当前块采用GEO模式且根据序列级开关控制信息允许GEO模式的运动信息列表长度大于或者等于2。在上述条件满足的基础上,还需要满足以下条件,当前块所在图像帧的帧类型为B帧,且当前块的尺寸信息满足第三尺寸限制条件。在满足上述条件后,则可以确定当前块支持TPM模式。
示例性的,第三尺寸限制条件可以根据需要任意配置,例如,当前块的宽度值与当前块的高度值的乘积大于或者等于64时,则当前块的尺寸信息满足第三尺寸限制条件。
当然,上述只是第三尺寸限制条件的示例,对此不做限制。例如,当前块的宽度值大于或者等于8,当前块的高度值大于或者等于8时,则当前块的尺寸信息可以满足第三尺寸限制条件。又例如,当前块的宽度值大于或者等于8,且小于128,当前块的高度值大于或者等于8,且小于128时,则当前块的尺寸信息可以满足第三尺寸限制条件。
针对实施例8-实施例12,涉及当前块是否支持GEO模式。
在一种可能的实施方式中,可以通过以下方式确定当前块支持GEO模式:若根据序列级开关控制信息允许当前块采用GEO模式,且当前块所在图像帧的帧类型为B帧,且当前块的尺寸信息满足第四尺寸限制条件,则确定当前块支持GEO模式。
示例性的,第四尺寸限制条件可以根据需要任意配置,例如,当前块的宽度值与当前块的高度值的乘积大于或者等于64时,则当前块的尺寸信息满足第四尺寸限制条件。
当然,上述只是第四尺寸限制条件的示例,对此不做限制。例如,当前块的宽度值大于或者等于8,当前块的高度值大于或者等于8时,则当前块的尺寸信息可以满足第四尺寸限制条件。又例如,当前块的宽度值大于或者等于8,且小于128,当前块的高度值大于或者等于8,且小于128时,则当前块的尺寸信息可以满足第四尺寸限制条件。
实施例14:
基于与上述方法同样的申请构思,本申请实施例还提出一种解码装置,应用于解码端,如图5A所示,为所述装置的结构图,所述装置可以包括:
第一确定模块511,用于确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;
第二确定模块512,用于根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
解码模块513,用于根据所述目标预测模式对所述当前块进行解码。
所述N个候选预测模式包括以下至少一种:子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式。
所述第一确定模块511具体用于:按照所述N个候选预测模式的标志位取值的获取顺序,确定所述预测模式标志位信息;若所述N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,则所述N个候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值;或者,若所述N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,GEO模式,则所述N个候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
所述第一确定模块511具体用于:基于所述N个候选预测模式的标志位取值的获取顺序,在得到当前候选预测模式的标志位取值后,根据当前候选预测模式的标志位取值,确定是否获取当前候选预测模式后面的候选预测模式的标志位取值。
当所述N个候选预测模式的标志位取值的获取顺序从前到后依次为子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值时,所述第一确定模块511采用如下方式获取候选预测模式的标志位取值:
获取子块融合模式的标志位取值;若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;若普通融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若普通融合模式的标志位取值为第二取值,则获取MMVD模式的标志位取值;若MMVD模式的标志位取值为第一取值,则结束标志位取值的获取过程;若MMVD模式的标志位取值为第二取值,则获取CIIP模式的标志位取值,并结束标志位取值的获取过程;或者,
获取子块融合模式的标志位取值;若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;若普通融合模式的标志位取值为第一取值,则获取MMVD模式的标志位取值,并结束标志位取值的获取过程;若普通融合模式的标志位取值为第二取值,则获取CIIP模式的标志位取值,并结束标志位取值的获取过程。
当N个候选预测模式的标志位取值的获取顺序从前到后依次为子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值时,所述第一确定模块511采用如下方式获取候选预测模式的标志位取值:
获取子块融合模式的标志位取值;若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;若普通融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若普通融合模式的标志位取值为第二取值,则获取MMVD模式的标志位取值;若MMVD模式的标志位取值为第一取值,则结束标志位取值的获取过程;若MMVD模式的标志位取值为第二取值,则获取CIIP模式的标志位取值;若CIIP模式的标志位取值为第一取值,则结束标志位取值的获取过程;若CIIP模式的标志位取值为第二取值,则获取GEO模式的标志位取值,并结束标志位取值的获取过程;或者,获取子块融合模式的标志位取值;若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;若普通融合模式的标志位取值为第一取值,则获取MMVD模式的标志位取值,并结束标志位取值的获取过程;若普通融合模式的标志位取值为第二取值,则获取CIIP模式的标志位取值;若CIIP模式的标志位取值为第一取值,则结束标志位取值的获取过程;若CIIP模式的标志位取值为第二取值,则获取GEO模式的标志位取值,并结束标志位取值的获取过程。
子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,所述第一确定模块511还用于:若所述当前块支持子块融合模式,则从所述当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取所述子块融合模式的标志位取值;否则,推导出所述子块融合模式的标志位取值为第二取值。
普通融合模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述第一确定模块511还用于:若所述当前块支持MMVD模式,或所述当前块支持CIIP模式,或所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取所述普通融合模式的标志位取值;否则,推导出所述普通融合模式的标志位取值为第一取值;
或者,普通融合模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述第一确定模块511还用于:若所述当前块支持CIIP模式,或所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取所述普通融合模式的标志位取值;否则,推导出所述普通融合模式的标志位取值为第一取值。
MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述第一确定模块511还用于:若所述当前块支持MMVD模式且所述当前块支持CIIP模式,或者,所述当前块支持MMVD模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取所述MMVD模式的标志位取值;否则,当所述当前块支持MMVD模式时,推导出所述MMVD模式的标志位取值为第一取值,当所述当前块不支持MMVD模式时,推导出所述MMVD模式的标志位取值为第二取值;
或者,MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,所述第一确定模块511还用于:若所述当前块支持MMVD模式,则从所述当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取所述MMVD模式的标志位取值;否则,推导出所述MMVD模式的标志位取值为第二取值。
CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述第一确定模块511还用于:若所述当前块支持CIIP模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用所述CIIP模式的标志位指示信息中读取所述CIIP模式的标志位取值;否则,当所述当前块支持CIIP模式时,推导出所述CIIP模式的标志位取值为第一取值,当所述当前块不支持CIIP模式时,推导出所述CIIP模式的标志位取值为第二取值。
GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况,所述第一确定模块511还用于:若所述当前块支持GEO模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用所述GEO模式的标志位指示信息中读取所述GEO模式的标志位取值;否则,当所述当前块支持GEO模式时,推导出所述GEO模式的标志位取值为第一取值,当所述当前块不支持GEO模式时,推导出所述GEO模式的标志位取值为第二取值。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式 为子块融合模式。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为普通融合模式;或,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,MMVD模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为普通融合模式。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为MMVD模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,MMVD模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为MMVD模式。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为CIIP模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为CIIP模式。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式。
所述第二确定模块512具体用于:若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为GEO模式;或者,若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为GEO模式。
所述第一确定模块511还用于通过以下方式确定所述当前块支持子块融合模式:若根据序列级开关控制信息允许所述当前块采用affine模式或者允许所述当前块采用子块TMVP模式,且所述当前块的尺寸信息满足第一尺寸限制条件,则确定所述当前块支持子块融合模式。
所述第一确定模块511还用于通过以下方式确定所述当前块支持MMVD模式:若根据序列级开关控制信息允许所述当前块采用MMVD模式,则确定所述当前块支持MMVD模式。
所述第一确定模块511还用于通过以下方式确定所述当前块支持CIIP模式:若根据序列级开关控制信息允许所述当前块采用CIIP模式,且所述当前块不启用跳过模式,并且所述当前块的尺寸信息满足第二尺寸限制条件,则确定所述当前块支持CIIP模式。
所述第一确定模块511还用于通过以下方式确定所述当前块支持TPM模式:若根据序列级开关控制信息允许所述当前块采用TPM模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第三尺寸限制条件,则确定所述当前块支持TPM模式;或者,若根据序列级开关控制信息允许所述当前块采用TPM模式或者序列级开关控制信息允许所述当前块采用GEO模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第三尺寸限制条件,则确定所述当前块支持TPM模式。
所述第一确定模块511还用于通过以下方式确定所述当前块支持GEO模式:若根据序列级开关控制信息允许所述当前块采用GEO模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第四尺寸限制条件,则确定所述当前块支持GEO模式。
基于与上述方法同样的申请构思,本申请实施例还提出一种编码装置,应用于编码端,如图5B所示,为所述编码装置的结构图,所述编码装置可以包括:
第一确定模块521,用于确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
第二确定模块522,用于根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;
编码模块523,用于根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
本申请实施例提供的解码端设备,从硬件层面而言,其硬件架构示意图可以参见图6A所示。包括:处理器611和机器可读存储介质612,所述机器可读存储介质612存储有能够被所述处理器611执行的机器可执行指令;所述处理器611用 于执行机器可执行指令,以实现本申请上述示例公开的方法。例如,所述处理器611用于执行机器可执行指令,以实现如下步骤:确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;根据所述目标预测模式对所述当前块进行解码。
本申请实施例提供的编码端设备,从硬件层面而言,其硬件架构示意图可以参见图6B所示。包括:处理器621和机器可读存储介质622,所述机器可读存储介质622存储有能够被所述处理器621执行的机器可执行指令;所述处理器621用于执行机器可执行指令,以实现本申请上述示例公开的方法。例如,所述处理器621用于执行机器可执行指令,以实现如下步骤:确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
基于与上述方法同样的申请构思,本申请实施例还提供一种机器可读存储介质,所述机器可读存储介质上存储有若干计算机指令,所述计算机指令被处理器执行时,能够实现本申请上述示例公开的解码方法或者编码方法。其中,上述机器可读存储介质可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,机器可读存储介质可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、固态硬盘、任何类型的存储盘(如光盘、dvd等),或者类似的存储介质,或者它们的组合。
上述实施例阐明的系统、装置、模块或单元,可以由计算机芯片或实体实现,或由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可以由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可以存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得在计算机或者其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (27)

  1. 一种解码方法,其特征在于,所述方法包括:
    确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,针对所述至少一个候选预测模式中的每一个候选预测模式,当所述候选预测模式的标志位取值为第一取值时,用于指示启用所述候选预测模式,当所述候选预测模式的标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是推导出的该候选预测模式的标志位取值;
    根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
    根据所述目标预测模式对所述当前块进行解码。
  2. 根据权利要求1所述的方法,其特征在于,所述N个候选预测模式包括以下至少一种:子块融合模式,普通融合模式,MMVD模式,CIIP模式,TPM模式,GEO模式。
  3. 根据权利要求2所述的方法,其特征在于,所述确定当前块的预测模式标志位信息,包括:按照所述N个候选预测模式的标志位取值的获取顺序,确定所述预测模式标志位信息;
    若所述N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,则所述N个候选预测模式的标志位取值的获取顺序从前到后依次为:子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值;
    或者,
    若所述N个候选预测模式包括子块融合模式,普通融合模式,MMVD模式,CIIP模式,GEO模式,则所述N个候选预测模式的标志位取值的获取顺序从前到后依次为:
    子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值。
  4. 根据权利要求3所述的方法,其特征在于,所述按照所述N个候选预测模式的标志位取值的获取顺序,确定所述预测模式标志位信息,包括:
    基于所述N个候选预测模式的标志位取值的获取顺序,在得到当前候选预测模式的标志位取值后,根据当前候选预测模式的标志位取值,确定是否获取当前候选预测模式后面的候选预测模式的标志位取值。
  5. 根据权利要求4所述的方法,其特征在于,当所述N个候选预测模式的标志位取值的获取顺序从前到后依次为子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值时,采用如下方式获取候选预测模式的标志位取值:
    获取子块融合模式的标志位取值;
    若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;
    若普通融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若普通融合模式的标志位取值为第二取值,则获取MMVD模式的标志位取值;
    若MMVD模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若MMVD模式的标志位取值为第二取值,则获取CIIP模式的标志位取值,并结束标志位取值的获取过程;
    或者,
    获取子块融合模式的标志位取值;
    若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;
    若普通融合模式的标志位取值为第一取值,则获取MMVD模式的标志位取值,并结束标志位取值的获取过程;
    若普通融合模式的标志位取值为第二取值,则获取CIIP模式的标志位取值,并结束标志位取值的获取过程。
  6. 根据权利要求4所述的方法,其特征在于,
    当所述N个候选预测模式的标志位取值的获取顺序从前到后依次为子块融合模式的标志位取值,普通融合模式的标志位取值,MMVD模式的标志位取值,CIIP模式的标志位取值,GEO模式的标志位取值时,采用如下方式获取候选预测模式的标志位取值:
    获取子块融合模式的标志位取值;
    若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;
    若普通融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若普通融合模式的标志位取值为第二取值,则获取MMVD模式的标志位取值;
    若MMVD模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若MMVD模式的标志位取值为第二取值,则获取CIIP模式的标志位取值;
    若CIIP模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若CIIP模式的标志位取值为第二取值,则获取GEO模式的标志位取值,并结束标志位取值的获取过程;
    或者,
    获取子块融合模式的标志位取值;
    若子块融合模式的标志位取值为第一取值,则结束标志位取值的获取过程;
    若子块融合模式的标志位取值为第二取值,则获取普通融合模式的标志位取值;
    若普通融合模式的标志位取值为第一取值,则获取MMVD模式的标志位取值,并结束标志位取值的获取过程;
    若普通融合模式的标志位取值为第二取值,则获取CIIP模式的标志位取值;
    若CIIP模式的标志位取值为第一取值,则结束标志位取值的获取过程;若CIIP模式的标志位取值为第二取值,则获取GEO模式的标志位取值,并结束标志位取值的获取过程。
  7. 根据权利要求1-6任一所述的方法,其特征在于,子块融合模式的标志位取值的解码条件包括当前块对子块融合模式的支持情况,所述子块融合模式的标志位取值的获取方式,包括:
    若所述当前块支持子块融合模式,则从所述当前块的编码比特流中携带的是否启用子块融合模式的标志位指示信息中读取所述子块融合模式的标志位取值;否则,推导出所述子块融合模式的标志位取值为第二取值。
  8. 根据权利要求1-6任一所述的方法,其特征在于,普通融合模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述普通融合模式的标志位取值的获取方式,包括:
    若所述当前块支持MMVD模式,或所述当前块支持CIIP模式,或所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取所述普通融合模式的标志位取值;否则,推导出所述普通融合模式的标志位取值为第一取值;
    或者,
    普通融合模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述普通融合模式的标志位取值的获取方式,包括:
    若所述当前块支持CIIP模式,或所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用普通融合模式的标志位指示信息中读取所述普通融合模式的标志位取值;否则,推导出所述普通融合模式的标志位取值为第一取值。
  9. 根据权利要求1-6任一所述的方法,其特征在于,MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述MMVD模式的标志位取值的获取方式,包括:
    若所述当前块支持MMVD模式且所述当前块支持CIIP模式,或者,所述当前块支持MMVD模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取所述MMVD模式的标志位取值;否则,当所述当前块支持MMVD模式时,推导出所述MMVD模式的标志位取值为第一取值,当所述当前块不支持MMVD模式时,推导出所述MMVD模式的标志位取值为第二取值;
    或者,
    MMVD模式的标志位取值的解码条件包括当前块对MMVD模式的支持情况,所述MMVD模式的标志位取值的获取方式,包括:
    若所述当前块支持MMVD模式,则从所述当前块的编码比特流中携带的是否启用MMVD模式的标志位指示信息中读取所述MMVD模式的标志位取值;否则,推导出所述MMVD模式的标志位取值为第二取值。
  10. 根据权利要求1-6任一所述的方法,其特征在于,CIIP模式的标志位取值的解码条件包括当前块对CIIP模式的支持情况,当前块对TPM模式的支持情况,所述CIIP模式的标志位取值的获取方式,包括:
    若所述当前块支持CIIP模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用所述CIIP模式的标志位指示信息中读取所述CIIP模式的标志位取值;否则,当所述当前块支持CIIP模式时,推导出所述CIIP模式的标志位取值为第一取值,当所述当前块不支持CIIP模式时,推导出所述CIIP模式的标志位取值为第二取值。
  11. 根据权利要求1-6任一所述的方法,其特征在于,GEO模式的标志位取值的解码条件包括当前块对GEO模式的支持情况,当前块对TPM模式的支持情况,所述GEO模式的标志位取值的获取方式,包括:
    若所述当前块支持GEO模式且所述当前块支持TPM模式,则从所述当前块的编码比特流中携带的是否启用所述GEO模式的标志位指示信息中读取所述GEO模式的标志位取值;否则,当所述当前块支持GEO模式时,推导出所述GEO模式的标志位取值为第一取值,当所述当前块不支持GEO模式时,推导出所述GEO模式的标志位取值为第二取值。
  12. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:若子块融合模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为子块融合模式。
  13. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为普通融合模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,MMVD模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为普通融合模式。
  14. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为MMVD模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第一取值,MMVD模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为MMVD模式。
  15. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为CIIP模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为CIIP模式。
  16. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第二取值,则确定所述当前块启用的目标预测模式为TPM模式。
  17. 根据权利要求1-6任一所述的方法,其特征在于,
    所述根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,包括:
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,MMVD模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为GEO模式;
    或者,
    若子块融合模式的标志位取值为第二取值,普通融合模式的标志位取值为第二取值,CIIP模式的标志位取值为第二取值,GEO模式的标志位取值为第一取值,则确定所述当前块启用的目标预测模式为GEO模式。
  18. 根据权利要求1-17任一项所述的方法,其特征在于,通过以下方式确定所述当前块支持子块融合模式:
    若根据序列级开关控制信息允许所述当前块采用affine模式或者允许所述当前块采用子块TMVP模式,且所述当前块的尺寸信息满足第一尺寸限制条件,则确定所述当前块支持子块融合模式。
  19. 根据权利要求1-17任一项所述的方法,其特征在于,通过以下方式确定所述当前块支持MMVD模式:
    若根据序列级开关控制信息允许所述当前块采用MMVD模式,则确定所述当前块支持MMVD模式。
  20. 根据权利要求1-17任一项所述的方法,其特征在于,通过以下方式确定所述当前块支持CIIP模式:
    若根据序列级开关控制信息允许所述当前块采用CIIP模式,且所述当前块不启用跳过模式,并且所述当前块的尺寸信息满足第二尺寸限制条件,则确定所述当前块支持CIIP模式。
  21. 根据权利要求1-17任一项所述的方法,其特征在于,通过以下方式确定所述当前块支持TPM模式:
    若根据序列级开关控制信息允许所述当前块采用TPM模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第三尺寸限制条件,则确定所述当前块支持TPM模式;
    或者,
    若根据序列级开关控制信息允许所述当前块采用TPM模式或者序列级开关控制信息允许所述当前块采用GEO模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第三尺寸限制条件,则确定所述当前块支持TPM模式。
  22. 根据权利要求1-17任一项所述的方法,其特征在于,通过以下方式确定所述当前块支持GEO模式:
    若根据序列级开关控制信息允许所述当前块采用GEO模式,且所述当前块所在图像帧的帧类型为B帧,且所述当前块的尺寸信息满足第四尺寸限制条件,则确定所述当前块支持GEO模式。
  23. 一种编码方法,其特征在于,所述方法包括:
    确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
    根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,针对所述至少一个候选预测模式中的每一个候选预测模式,当所述候选预测模式的标志位取值为第一取值时,用于指示启用所述候选预测模式,当所述候选预测模式的标志位取值为第二取值时,用于指示不启用所述候选预测模式;
    根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
  24. 一种解码装置,其特征在于,所述装置包括:
    第一确定模块,用于确定当前块的预测模式标志位信息,所述预测模式标志位信息包括N个候选预测模式中的至少一个候选预测模式的标志位取值,针对所述至少一个候选预测模式中的每一个候选预测模式,当所述候选预测模式的标志位取值为第一取值时,用于指示启用所述候选预测模式,当所述候选预测模式的标志位取值为第二取值时,用于指示不启用所述候选预测模式;其中,针对每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是从所述当前块的编码比特流中携带的是否启用该候选预测模式的标志位指示信息中读取;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则所述标志位取值是 推导出的该候选预测模式的标志位取值;
    第二确定模块,用于根据所述预测模式标志位信息确定所述当前块启用的目标预测模式,所述目标预测模式是所述N个候选预测模式中的其中一个;
    解码模块,用于根据所述目标预测模式对所述当前块进行解码。
  25. 一种编码装置,其特征在于,所述装置包括:
    第一确定模块,用于确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
    第二确定模块,用于根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,所述标志位取值为第一取值时,用于指示启用所述候选预测模式,所述标志位取值为第二取值时,用于指示不启用所述候选预测模式;
    编码模块,用于根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
  26. 一种解码端设备,其特征在于,包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;
    所述处理器用于执行机器可执行指令,以实现权利要求1-22任一所述的解码方法。
  27. 一种编码端设备,其特征在于,包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;
    所述处理器用于执行机器可执行指令,以实现如下步骤:
    确定当前块启用的目标预测模式,所述目标预测模式是当前块的N个候选预测模式中的其中一个;
    根据所述目标预测模式,确定所述当前块的预测模式标志位信息;所述预测模式标志位信息包括所述N个候选预测模式中的至少一个候选预测模式的标志位取值,针对所述至少一个候选预测模式中的每一个候选预测模式,当所述候选预测模式的标志位取值为第一取值时,用于指示启用所述候选预测模式,当所述候选预测模式的标志位取值为第二取值时,用于指示不启用所述候选预测模式;
    根据所述预测模式标志位信息对所述当前块进行编码;其中,针对所述预测模式标志位信息包括的每个候选预测模式的标志位取值,若所述当前块符合该候选预测模式的标志位取值的解码条件,则在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息;若所述当前块不符合该候选预测模式的标志位取值的解码条件,则不在所述当前块的编码比特流中携带是否启用该候选预测模式的标志位指示信息。
PCT/CN2020/115634 2019-09-20 2020-09-16 一种解码、编码方法、装置及其设备 WO2021052369A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20864976.4A EP4033759A4 (en) 2019-09-20 2020-09-16 DECODING METHOD AND APPARATUS, CODING METHOD AND APPARATUS, AND DEVICE
US17/762,003 US20220345736A1 (en) 2019-09-20 2020-09-16 Decoding method and apparatus, encoding method and apparatus, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910894595.2A CN112543322B (zh) 2019-09-20 2019-09-20 一种解码、编码方法、装置及其设备
CN201910894595.2 2019-09-20

Publications (1)

Publication Number Publication Date
WO2021052369A1 true WO2021052369A1 (zh) 2021-03-25

Family

ID=74884325

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115634 WO2021052369A1 (zh) 2019-09-20 2020-09-16 一种解码、编码方法、装置及其设备

Country Status (4)

Country Link
US (1) US20220345736A1 (zh)
EP (1) EP4033759A4 (zh)
CN (7) CN114710665A (zh)
WO (1) WO2021052369A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120320984A1 (en) * 2011-06-14 2012-12-20 Minhua Zhou Inter-Prediction Candidate Index Coding Independent of Inter-Prediction Candidate List Construction in Video Coding
CN107925774A (zh) * 2015-08-24 2018-04-17 Lg 电子株式会社 基于间预测模式的图像处理方法及其装置
CN109587479A (zh) * 2017-09-29 2019-04-05 华为技术有限公司 视频图像的帧间预测方法、装置及编解码器
CN110234008A (zh) * 2019-03-11 2019-09-13 杭州海康威视数字技术股份有限公司 编码方法、解码方法及装置
CN110933408A (zh) * 2019-06-21 2020-03-27 杭州海康威视数字技术股份有限公司 预测模式的解码、编码方法及装置

Family Cites Families (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957350B1 (en) * 1996-01-30 2005-10-18 Dolby Laboratories Licensing Corporation Encrypted and watermarked temporal and resolution layering in advanced television
US5790839A (en) * 1996-12-20 1998-08-04 International Business Machines Corporation System integration of DRAM macros and logic cores in a single chip architecture
US5901304A (en) * 1997-03-13 1999-05-04 International Business Machines Corporation Emulating quasi-synchronous DRAM with asynchronous DRAM
KR100244769B1 (ko) * 1997-06-26 2000-02-15 전주범 스케일러빌리티를 갖는 간 윤곽선 부호화 방법 및 장치
KR100240770B1 (ko) * 1997-07-11 2000-01-15 이형도 에너지보상/역보상기능을개선한스케러블부호화기및그방법
US6765962B1 (en) * 1999-12-02 2004-07-20 Sarnoff Corporation Adaptive selection of quantization scales for video encoding
US6826232B2 (en) * 1999-12-20 2004-11-30 Koninklijke Philips Electronics N.V. Fine granular scalable video with embedded DCT coding of the enhancement layer
AU4338800A (en) * 1999-12-22 2001-07-03 General Instrument Corporation Video compression for multicast environments using spatial scalability and simulcast coding
US7477688B1 (en) * 2000-01-26 2009-01-13 Cisco Technology, Inc. Methods for efficient bandwidth scaling of compressed video data
US7095782B1 (en) * 2000-03-01 2006-08-22 Koninklijke Philips Electronics N.V. Method and apparatus for streaming scalable video
US6771703B1 (en) * 2000-06-30 2004-08-03 Emc Corporation Efficient scaling of nonscalable MPEG-2 Video
US7016412B1 (en) * 2000-08-29 2006-03-21 Koninklijke Philips Electronics N.V. System and method for dynamic adaptive decoding of scalable video to balance CPU load
WO2002035854A1 (en) * 2000-10-24 2002-05-02 Eyeball Networks Inc. Dct-based scalable video compression
US7386046B2 (en) * 2001-02-13 2008-06-10 Realtime Data Llc Bandwidth sensitive data compression and decompression
US7263124B2 (en) * 2001-09-26 2007-08-28 Intel Corporation Scalable coding scheme for low latency applications
US7729421B2 (en) * 2002-02-20 2010-06-01 International Business Machines Corporation Low latency video decoder with high-quality, variable scaling and minimal frame buffer memory
US7391807B2 (en) * 2002-04-24 2008-06-24 Mitsubishi Electric Research Laboratories, Inc. Video transcoding of scalable multi-layer videos to single layer video
KR20060105407A (ko) * 2005-04-01 2006-10-11 엘지전자 주식회사 영상 신호의 스케일러블 인코딩 및 디코딩 방법
US7369610B2 (en) * 2003-12-01 2008-05-06 Microsoft Corporation Enhancement layer switching for scalable video coding
US7697608B2 (en) * 2004-02-03 2010-04-13 Sony Corporation Scalable MPEG video/macro block rate control
EP1849303A2 (en) * 2005-02-18 2007-10-31 THOMSON Licensing Method for deriving coding information for high resolution pictures from low resolution pictures
KR100732961B1 (ko) * 2005-04-01 2007-06-27 경희대학교 산학협력단 다시점 영상의 스케일러블 부호화, 복호화 방법 및 장치
WO2007073362A1 (en) * 2005-08-30 2007-06-28 Thomson Licensing Cross-layer optimization for scalable video multicast over ieee 802.11 wireless local area networks
JP2007081720A (ja) * 2005-09-13 2007-03-29 Sanyo Electric Co Ltd 符号化方法
EP1977608B1 (en) * 2006-01-09 2020-01-01 LG Electronics, Inc. Inter-layer prediction method for video signal
TWI416961B (zh) * 2010-04-02 2013-11-21 Univ Nat Chiao Tung 用於可調式視訊編碼系統之選擇性移動向量預測方法、移動估測方法及其裝置
US20110268175A1 (en) * 2010-04-30 2011-11-03 Wai-Tian Tan Differential protection of a live scalable media
WO2013002620A2 (ko) * 2011-06-30 2013-01-03 삼성전자 주식회사 스킵 모드를 이용한 모션 정보 부호화 방법 및 장치, 그 복호화 방법 및 장치
US20130028324A1 (en) * 2011-07-29 2013-01-31 National Chiao Tung University Method and device for decoding a scalable video signal utilizing an inter-layer prediction
CN103096047B (zh) * 2011-11-01 2018-06-19 中兴通讯股份有限公司 一种分片层参数集解码及编码方法和装置
CN103096053B (zh) * 2011-11-04 2015-10-07 华为技术有限公司 一种变换模式的编解码方法和装置
JP5959311B2 (ja) * 2012-05-25 2016-08-02 富士通テン株式会社 データ導出装置、及び、データ導出方法
US9124899B2 (en) * 2012-09-28 2015-09-01 Sharp Laboratories Of America, Inc. Motion derivation and coding for scaling video
US9189379B2 (en) * 2013-02-06 2015-11-17 Avago Technologies General Ip (Singapore) Pte. Ltd. Buffer for managing data samples in a read channel
US9491490B1 (en) * 2015-06-12 2016-11-08 Intel Corporation Facilitating environment-based lossy compression of data for efficient rendering of contents at computing devices
CN107333139B (zh) * 2017-06-27 2019-12-13 郑州师范学院 一种基于帧内预测模式的h.265半可逆视频隐写信息方法
CN108924551B (zh) * 2018-08-29 2022-01-07 腾讯科技(深圳)有限公司 视频图像编码模式的预测方法及相关设备
CN111385569B (zh) * 2018-12-28 2022-04-26 杭州海康威视数字技术股份有限公司 一种编解码方法及其设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120320984A1 (en) * 2011-06-14 2012-12-20 Minhua Zhou Inter-Prediction Candidate Index Coding Independent of Inter-Prediction Candidate List Construction in Video Coding
CN107925774A (zh) * 2015-08-24 2018-04-17 Lg 电子株式会社 基于间预测模式的图像处理方法及其装置
CN109587479A (zh) * 2017-09-29 2019-04-05 华为技术有限公司 视频图像的帧间预测方法、装置及编解码器
CN110234008A (zh) * 2019-03-11 2019-09-13 杭州海康威视数字技术股份有限公司 编码方法、解码方法及装置
CN110933408A (zh) * 2019-06-21 2020-03-27 杭州海康威视数字技术股份有限公司 预测模式的解码、编码方法及装置

Also Published As

Publication number Publication date
CN114710665A (zh) 2022-07-05
EP4033759A4 (en) 2022-11-23
CN113422951A (zh) 2021-09-21
CN114710663A (zh) 2022-07-05
CN112543322B (zh) 2022-04-15
CN114710661A (zh) 2022-07-05
CN114710664A (zh) 2022-07-05
CN113422951B (zh) 2022-05-31
CN112543322A (zh) 2021-03-23
CN114710662A (zh) 2022-07-05
US20220345736A1 (en) 2022-10-27
EP4033759A1 (en) 2022-07-27

Similar Documents

Publication Publication Date Title
WO2020134968A1 (zh) 一种编解码方法及其设备
US10075707B2 (en) Video encoding and decoding
KR101617740B1 (ko) 이미지들의 시퀀스를 인코딩하기 위한 방법 및 디바이스 및 이미지들의 시퀀스를 디코딩하기 위한 방법 및 디바이스
GB2492778A (en) Motion compensated image coding by combining motion information predictors
WO2020259372A1 (zh) 一种编解码方法、装置及其设备
CN115348443A (zh) 一种运动信息确定方法、装置及其设备
WO2021052369A1 (zh) 一种解码、编码方法、装置及其设备
US20150036752A1 (en) Method for storing movement prediction-related information in an interscreen prediction method, and method for calculating the movement prediction-related information in the inter-screen prediction method
CN112449180B (zh) 一种编解码方法、装置及其设备
CN111510726B (zh) 一种编解码方法及其设备
WO2020244425A1 (zh) 一种编解码方法、装置及其设备
WO2020177747A1 (zh) 编解码方法与装置、编码端设备和解码端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20864976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020864976

Country of ref document: EP

Effective date: 20220420