WO2021013153A1 - Procédé, dispositif de codage et de décodage et appareil associé - Google Patents

Procédé, dispositif de codage et de décodage et appareil associé Download PDF

Info

Publication number
WO2021013153A1
WO2021013153A1 PCT/CN2020/103326 CN2020103326W WO2021013153A1 WO 2021013153 A1 WO2021013153 A1 WO 2021013153A1 CN 2020103326 W CN2020103326 W CN 2020103326W WO 2021013153 A1 WO2021013153 A1 WO 2021013153A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
block
prediction mode
intra
information
Prior art date
Application number
PCT/CN2020/103326
Other languages
English (en)
Chinese (zh)
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 杭州海康威视数字技术股份有限公司
Publication of WO2021013153A1 publication Critical patent/WO2021013153A1/fr

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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/136Incoming video signal characteristics or properties
    • 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/146Data rate or code amount at the encoder output
    • H04N19/147Data rate or code amount at the encoder output according to rate distortion criteria
    • 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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness

Definitions

  • This application relates to the field of coding and decoding technologies, and in particular to a coding and decoding method, device and equipment.
  • Video encoding can include processes such as prediction, transformation, quantization, entropy encoding, and filtering.
  • the prediction may include intra prediction and inter prediction.
  • Inter-frame coding uses the correlation of the video time domain to predict the current pixel by using the pixels adjacent to the coded image 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.
  • a motion vector (Motion Vector, MV) can be used to represent the relative displacement of the current block of the current frame image and the reference block of the reference frame image.
  • the current frame image A and the reference frame image B have a strong temporal correlation.
  • a motion search can be performed in the image B to find the reference block that best matches the current block A1 B1, and determine the relative displacement between the current block A1 and the reference block B1, that is, the motion vector of the current block A1.
  • the current block is a rectangle, and the edge of the actual object is often not a rectangle.
  • the edge of the actual object is often not a rectangle.
  • there are often two different objects such as a foreground object and a background.
  • only a single prediction mode is used to predict the current block, and there are problems such as poor prediction effect, large coding residuals, and poor coding performance.
  • This application provides an encoding and decoding method, device and equipment, which improve the accuracy of prediction.
  • the present application provides a coding and decoding method, the method includes: when it is determined to start sub-block-based joint prediction for the current block, obtaining block division information of the current block; dividing the current block according to the block division information Is at least two sub-blocks; obtaining prediction mode information corresponding to the at least two sub-blocks; obtaining prediction values corresponding to the at least two sub-blocks according to the prediction mode information; according to predictions corresponding to the at least two sub-blocks, respectively Value to obtain the predicted value of the current block.
  • This application provides an encoding and decoding method, the method includes: when determining that the current block starts target weighted prediction, obtaining the target prediction value of the current block through the following steps, the target prediction value being used for encoding or Decoding: Obtain the first prediction mode and the second prediction mode corresponding to the current block; determine the first prediction value corresponding to the current block according to the first prediction mode; determine the current block according to the second prediction mode The corresponding second predicted value is weighted according to the first predicted value and the second predicted value to obtain the target predicted value of the current block.
  • the present application provides an encoding and decoding device.
  • the device includes: an acquisition module, configured to acquire block division information of the current block when it is determined to initiate sub-block-based joint prediction for the current block; The division information divides the current block into at least two sub-blocks; the obtaining module is further configured to obtain the prediction mode information corresponding to the at least two sub-blocks respectively; and obtain the at least two sub-blocks respectively according to the prediction mode information. Corresponding predicted value; obtaining the predicted value of the current block according to the predicted values respectively corresponding to the at least two sub-blocks.
  • the present application provides an encoding and decoding device, the device includes: an acquisition module, configured to acquire a first prediction mode and a second prediction mode corresponding to the current block when it is determined that the current block starts target weighted prediction; the determination module uses The first prediction value corresponding to the current block is determined according to the first prediction mode; the second prediction value corresponding to the current block is determined according to the second prediction mode; the processing module is configured to determine the first prediction value corresponding to the current block according to the first prediction mode. And the second predicted value are weighted to obtain the target predicted value of the current block, and the target predicted value is used for encoding or decoding 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 the machine-readable Executing instructions to implement the following steps: when it is determined to start sub-block-based joint prediction for the current block, obtain block division information of the current block; divide the current block into at least two sub-blocks according to the block division information; Obtain prediction mode information corresponding to each of the at least two sub-blocks; obtain prediction values corresponding to the at least two sub-blocks respectively according to the prediction mode information; obtain the current block according to prediction values respectively corresponding to the at least two sub-blocks Or, when determining that the current block starts target weighted prediction, obtain the first prediction mode and the second prediction mode corresponding to the current block; determine the first prediction value corresponding to the current block according to the first prediction mode Determine the second prediction value corresponding to the current block according to the second prediction mode; perform weighting processing according to the first prediction value and the second
  • the present application provides an encoding terminal device, a processor, and a machine-readable storage medium.
  • 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 , In order to achieve the following steps: when it is determined to start the sub-block-based joint prediction for the current block, obtain the block division information of the current block; divide the current block into at least two sub-blocks according to the block division information; The prediction mode information corresponding to the at least two sub-blocks respectively; the prediction values corresponding to the at least two sub-blocks are obtained according to the prediction mode information; the prediction values of the current block are obtained according to the prediction values respectively corresponding to the at least two sub-blocks Value; or, when determining that the current block starts target weighted prediction, obtain the first prediction mode and the second prediction mode corresponding to the current block; determine the first prediction value corresponding to the current block according to the first prediction mode; according to The second prediction mode determines the second prediction value corresponding to the current block
  • the current block when it is determined to start the sub-block-based joint prediction for the current block, the current block can be divided into at least two sub-blocks, and the prediction values corresponding to the at least two sub-blocks can be obtained. , And obtain the predicted value of the current block according to the predicted values respectively corresponding to the at least two sub-blocks.
  • prediction can be performed separately for at least two sub-blocks, which can improve prediction accuracy, improve prediction performance, improve coding performance, and reduce coding residuals.
  • Fig. 1 is a schematic diagram of a video coding framework in an embodiment of the present application.
  • Fig. 2 is a flowchart of a coding and decoding method in an embodiment of the present application.
  • 3A-3H are schematic diagrams of dividing a current block in an embodiment of the present application.
  • 4A-4D are schematic diagrams of intra-frame copy prediction mode and intra-frame copy prediction mode.
  • 5A-5H are schematic diagrams of intra-frame copy prediction mode and inter-frame prediction mode.
  • 5I-5L are schematic diagrams of determining the intra-frame copy prediction mode and the inter-frame prediction mode based on the surrounding block prediction mode.
  • 6A-6H are schematic diagrams of intra-frame copy prediction mode and intra-frame prediction mode.
  • 7A-7D are schematic diagrams of determining the intra-frame copy prediction mode and the intra-frame prediction mode based on the surrounding block prediction mode.
  • 8A-8D are schematic diagrams of intra prediction mode and intra prediction mode.
  • 9A-9D are schematic diagrams of intra prediction mode and inter prediction mode.
  • 10A-10D are schematic diagrams of determining the intra prediction mode and the inter prediction mode based on the surrounding block prediction mode.
  • 11A-11D are schematic diagrams of the inter prediction mode and the inter prediction mode.
  • 12A-12F are schematic diagrams of the process of obtaining the predicted value in an embodiment of the present application.
  • FIG. 13 is a flowchart of a coding and decoding method in an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a coding and decoding device in an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a coding and decoding device in an embodiment of the present application.
  • FIG. 16 is a hardware structure diagram of a decoding end device in an embodiment of the present application.
  • Fig. 17 is a hardware structure diagram of an encoding end device in an embodiment 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.
  • the term "if” used can be interpreted as "when” or "when” or "in response to certainty.”
  • An encoding and decoding method, device, and equipment proposed in the embodiments of the present application may involve the following concepts:
  • Intra prediction Intra prediction
  • inter prediction inter prediction
  • IBC intra block copy
  • Intra-frame prediction refers to using the correlation of the video space to predict the current pixel using the pixels of the coded block of the current image to achieve the purpose of removing the video space redundancy.
  • Multiple prediction modes are specified in intra prediction, and each prediction mode corresponds to a texture direction (except for DC mode).
  • the predicted pixel value of the current block is predicted from the boundary reconstruction pixel value of the neighboring block. For example, if the texture of the image is arranged horizontally, the horizontal prediction mode can better predict image information.
  • Inter-frame prediction means that based on the correlation of the video time domain, because the video sequence has a strong time domain correlation, the pixels of the adjacent encoded image are used to predict the pixels of the current image, which can effectively remove the video time domain redundancy.
  • the block-based motion compensation technology is used for inter-frame prediction.
  • the basic 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).
  • Intra block copy means that same frame reference is allowed, and the reference data of the current block comes from the same frame. Intra block copy can also be called intra block copy.
  • HEVC High Efficiency Video Coding
  • Screen content coding Small Content Coding
  • the intra-frame block copy technology is proposed, and the block vector is used to obtain the prediction value of the current block. Based on the characteristic of a large number of repetitive textures in the same frame of the screen content, when the block vector is used to obtain the prediction value of the current block, the compression efficiency of the screen content sequence can be significantly improved.
  • VVC Very Video Coding
  • Motion Vector In inter-frame coding, a motion vector can be used to represent the relative displacement between the current block of the current frame video image and the reference block of the reference frame video image. If the motion vector of each divided block is independently coded and transmitted, especially in the case where the image is divided into a large number of small-sized blocks, considerable bits are consumed. In order to reduce the number of bits used to code the motion vector, the spatial correlation of adjacent blocks can be used to predict the motion vector of the current block to be coded according to the motion vector of the adjacent coded block, and then the prediction difference can be coded. Effectively reduce the number of bits representing the motion vector.
  • the motion vector of the adjacent encoded block can be used to predict the motion vector of the current block, and then the prediction value (MVP, Motion Vector Prediction) of the motion vector can be compared with The difference (MVD, Motion Vector Difference) between the true estimates of the motion vector is encoded, thereby effectively reducing the number of coding bits of the motion vector.
  • MVP Motion Vector Prediction
  • MVP Motion Vector Prediction
  • Motion Information Since the motion vector represents the position offset between the current block and a reference block, in order to accurately obtain the information pointing to the block, in addition to the motion vector, the index information of the reference frame image is also needed to indicate the current block Which reference frame image to use.
  • a reference frame image list can usually be established, and the reference frame index indicates which reference frame image in the reference frame image list is used by the current block.
  • many coding technologies also support multiple reference frame image lists. Therefore, an index value can also be used to indicate which reference frame image list is used, and this index value can be called a reference direction.
  • motion-related information such as motion vector, reference frame index, and reference direction can be collectively referred to as motion information.
  • Block Vector The block vector is applied to the intra block copy technology.
  • the intra block copy technology uses the block vector for motion compensation, that is, the block vector is used to obtain the prediction value of the current block. Different from the motion vector, the block vector represents the relative displacement between the current block and the best matching block in the coded block of the current frame. Based on the characteristic of a large number of repeated textures in the same frame, the compression efficiency can be significantly improved when the block vector is used to obtain the predicted value of the current block.
  • Intra-frame prediction mode In intra-frame coding, the intra-frame prediction mode can be used for motion compensation, that is, the intra-frame prediction mode is used to obtain the prediction value of the current block.
  • the intra prediction mode can include Planar mode, DC mode, and 33 angle modes. Refer to Table 1, which is an example of intra prediction modes. Planar mode corresponds to mode 0, DC mode corresponds to mode 1, and the remaining 33 angle modes correspond to mode 2 to mode 34. Planar mode is suitable for areas where the pixel value changes slowly. Two linear filters in the horizontal and vertical directions are used, and the average value of the output of the two linear filters is used as the predicted value of the current block of pixels.
  • the DC mode is suitable for a large flat area, and the average value of the surrounding pixels of the current block is used as the predicted pixel value of the current block.
  • Mode 26 indicates the vertical direction, and mode 10 indicates the horizontal direction.
  • a more detailed angle direction is adopted, such as a total of 67 angle modes.
  • Rate-Distortion Optimized There are two major indicators for evaluating coding efficiency: code rate and PSNR (Peak Signal to Noise Ratio). The smaller the bit stream, the greater the compression rate and the greater the PSNR. , The better the quality of the reconstructed image is.
  • 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 this application.
  • the schematic diagram of the video decoding framework is similar to that of Figure 1, and will not be repeated here, and the video decoding framework can be used Realize the decoding end processing flow of the embodiment of this application.
  • the intra prediction unit 101, motion estimation/motion compensation 102, reference image buffer 103, in-loop filtering 104, reconstruction 105, transformation 106, quantization 107, inverse transformation can be included.
  • Inverse quantization 109 entropy encoder 110 and other modules.
  • Embodiment 1 As shown in FIG. 2, which is a schematic flowchart of the encoding and decoding method in an embodiment of this application, the encoding and decoding method may be applied to the decoding end or the encoding end, and the encoding and decoding method may include the following steps.
  • Step 201 When it is determined to start the sub-block-based joint prediction for the current block, obtain block division information of the current block.
  • Step 202 Divide the current block into at least two sub-blocks according to the block division information.
  • the current block is divided into two sub-blocks as an example for description, that is, the current block is divided into the first sub-block and the second sub-block according to the block division information.
  • the implementation process is similar to that of two sub-blocks, and will not be described in detail later.
  • Step 203 Obtain prediction mode information corresponding to at least two sub-blocks respectively.
  • the prediction mode information corresponding to the first sub-block is obtained, and the prediction mode information corresponding to the second sub-block is obtained.
  • Step 204 Obtain prediction values corresponding to the at least two sub-blocks according to the prediction mode information respectively corresponding to the at least two sub-blocks. For example, the prediction value corresponding to the first sub-block is obtained according to the prediction mode information corresponding to the first sub-block, and the prediction value corresponding to the second sub-block is obtained according to the prediction mode information corresponding to the second sub-block.
  • Step 205 Obtain the predicted value of the current block according to the predicted values respectively corresponding to the at least two sub-blocks.
  • the current block when it is determined to start the sub-block-based joint prediction for the current block, the current block can be divided into at least two sub-blocks, and the prediction values corresponding to the at least two sub-blocks can be obtained. And obtain the prediction value of the current block according to the prediction values respectively corresponding to the at least two sub-blocks.
  • prediction can be performed separately for at least two sub-blocks, which can improve prediction accuracy, improve prediction performance, improve coding performance, and reduce coding residuals.
  • step 201 the decoder or the encoder needs to determine whether to initiate sub-block-based joint prediction for the current block. If the sub-block-based joint prediction is started for the current block, the coding and decoding method in the embodiment of the present application can be used. If the sub-block-based joint prediction is not activated for the current block, the coding and decoding method in the embodiment of the present application may not be used.
  • the characteristic information of the current block meets a specific condition; if so, it is determined to start the sub-block-based joint prediction for the current block; if not, it is determined not to start the sub-block-based joint prediction for the current block.
  • the characteristic information may include, but is not limited to, one or any combination of the following: the frame type of the current frame where the current block is located, the size information of the current block, and switch control information.
  • the switch control information may be SPS (sequence level) switch control information, or PPS (picture parameter level) switch control information, or TILE (chip level) switch control information.
  • the frame type of the current frame where the current block is located satisfies certain conditions, including but not limited to: if the frame type of the current frame where the current block is located is a B frame, then determine The frame type meets a specific condition; or, if the frame type of the current frame where the current block is located is an I frame, it is determined that the frame type meets the specific condition.
  • the size information of the current block meets certain conditions, including but not limited to: if the width of the current block is greater than or If it is equal to the first value and the height of the current block is greater than or equal to the second value, it is determined that the size information of the current block satisfies a specific condition. Or, if the width of the current block is greater than or equal to the third value, the height of the current block is greater than or equal to the fourth value, the width of the current block is less than or equal to the fifth value, and the height of the current block is less than or equal to the sixth value, determine the current block The size information meets certain conditions.
  • the aforementioned values can be configured based on experience, such as 8, 16, 32, 64, 128 (pixels), etc., which is not limited.
  • the first value may be 8
  • the second value may be 8
  • the third value may be 8
  • the fourth value may be 8
  • the fifth value may be 64
  • the sixth value may be 64 .
  • the above is only an example, and there is no restriction on this. To sum up, if the width of the current block is greater than or equal to 8, and the height of the current block is greater than or equal to 8, it is determined that the size information of the current block meets a specific condition.
  • the width of the current block is greater than or equal to 8
  • the height of the current block is greater than or equal to 8
  • the width of the current block is less than or equal to 64
  • the height of the current block is less than or equal to 64
  • the switch control information satisfies a specific condition, which may include but is not limited to: if the switch control information is enabled, it is determined that the switch control information satisfies the specific condition.
  • a specific condition which may include but is not limited to: if the switch control information is enabled, it is determined that the switch control information satisfies the specific condition.
  • one switch control information can be added for the geometric division mode. If the switch control information is enabled, it means that the geometric division mode is allowed to be enabled. At this time, the switch control information satisfies certain conditions and can initiate sub-block-based union for the current block. prediction.
  • the feature information includes the frame type of the current frame where the current block is located, and the size information of the current block, then the frame type meets a specific condition and the size information meets the specific condition, it is determined that the feature information of the current block meets the specific condition . If the feature information includes the frame type and switch control information of the current frame where the current block is located, then the frame type meets a specific condition and the switch control information meets the specific condition, it is determined that the feature information of the current block meets the specific condition. If the feature information includes the size information and switch control information of the current block, then the size information meets a specific condition and the switch control information meets the specific condition, it is determined that the feature information of the current block meets the specific condition.
  • the feature information includes the frame type of the current frame where the current block is located, the size information of the current block, and switch control information, then the frame type meets a specific condition, the size information meets the specific condition, and the switch control information meets the specific condition. In condition, it is determined that the characteristic information of the current block meets a specific condition.
  • step 201 and step 202 the decoding end or the encoding end needs to obtain the block division information of the current block, and divide the current block into at least two sub-blocks according to the block division information, the at least two sub-blocks including the first sub-block and The second sub-block.
  • the shape of the first sub-block and the shape of the second sub-block may be the same; or, the shape of the first sub-block and the shape of the second sub-block may be different.
  • the first sub-block may include, but is not limited to, one of the following sub-blocks: triangular sub-block, ladder-shaped sub-block, and pentagonal sub-block;
  • the second sub-block may include but not limited to one of the following sub-blocks: triangle sub-block, Ladder-shaped sub-block, pentagonal sub-block.
  • the current block in the Triangle Partition Mode (TPM), can be divided into two triangular sub-blocks.
  • TPM Triangle Partition Mode
  • the first sub-block can be a triangular sub-block
  • the second sub-block can also be a triangular sub-block.
  • the first sub-block can be a triangular sub-block
  • the second sub-block can also be a triangular sub-block.
  • GEO Geometrical Partitioning
  • the current block can be divided into a triangular sub-block and a ladder-shaped sub-block, the current block can also be divided into two ladder-shaped sub-blocks, and the current block can also be divided into a triangular sub-block and a pentagonal sub-block.
  • the above are just a few examples of division in more directions, and there is no restriction on the division direction.
  • the current block can also be divided into two sub-blocks of any shape. This article only introduces some division possibilities.
  • the current block is divided into a triangular sub-block and a ladder-shaped sub-block, that is, the first sub-block is a triangular sub-block and the second sub-block is a ladder-shaped sub-block.
  • the current block is divided into two ladder-shaped sub-blocks, that is, the first sub-block is a ladder-shaped sub-block and the second sub-block is a ladder-shaped sub-block.
  • the current block is divided into a triangular sub-block and a pentagonal sub-block, that is, the first sub-block is a triangular sub-block and the second sub-block is a pentagonal sub-block.
  • a switch decision can be added to use the triangular prediction mode or the geometric division mode.
  • the decoding end or the encoding end can select a piece of block division information from the block division information corresponding to Figs. 3A to 3H respectively.
  • the block division information shown in Fig. 3A is used to change the current block Divided into a first triangle sub-block and a second triangle sub-block.
  • the decoding end and the encoding end may obtain the block division information of the current block in the following manner.
  • Method 1 The encoding end uses a certain block division information by default through an agreement, and the decoder uses the block division information by default through an agreement.
  • the encoding end uses the block division information shown in FIG. 3A by default through a protocol agreement
  • the decoder uses the block division information shown in FIG. 3A by default through a protocol agreement
  • the encoding end divides the current block according to the block division information shown in FIG. 3A
  • the decoding end divides the current block into the first triangle sub-block and the second triangle sub-block according to the block division information shown in FIG. 3A.
  • the encoding end uses the block division information shown in FIG.
  • the decoding end uses the block division information shown in FIG. 3C by default through the protocol agreement
  • the encoding end uses the block division information shown in FIG. 3C by default.
  • Divided into a first triangular sub-block and a second trapezoidal sub-block the decoding end divides the current block into a first triangular sub-block and a second trapezoidal sub-block according to the block division information shown in FIG. 3A.
  • the above is only an example, and there is no restriction on this.
  • Manner 2 Several pieces of block division information are agreed upon by agreement, such as partial block division information or all block division information in Figures 3A-3H, and the encoding end determines the rate distortion cost corresponding to each block division information. For example, based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information, the current block is jointly predicted to obtain the prediction information of the current block, and the utilization rate distortion principle and the prediction information are determined The rate-distortion cost of the current block does not limit this process.
  • the encoding end selects the smallest rate-distortion cost from all rate-distortion costs, uses the block division information corresponding to the smallest rate-distortion cost as the target block division information, and divides the current block into at least two sub-blocks based on the target block division information . For example, if the rate-distortion cost of the block division information shown in FIG. 3A is the smallest, the encoding end divides the current block into the first triangle sub-block and the second triangle sub-block according to the block division information shown in FIG. 3A. If the rate-distortion cost of the block division information shown in FIG. 3C is the smallest, the encoding end divides the current block into the first triangular sub-block and the second ladder sub-block according to the block division information shown in FIG. 3C.
  • the encoded bit stream may carry indication information of block division information, and the indication information is used to indicate the block division information of the current block.
  • the decoding end may obtain the indication information of the block division information from the coded bit stream, and determine the block division information of the current block according to the indication information. For example, if the indication information is used to indicate the block division information shown in FIG. 3A, the decoding end divides the current block into the first triangle sub-block and the second triangle sub-block according to the block division information shown in FIG. 3A. If the indication information is used to indicate the block division information shown in FIG. 3C, the decoding end divides the current block into the first triangular sub-block and the second ladder sub-block according to the block division information shown in FIG. 3C.
  • the prediction mode information corresponding to the at least two sub-blocks may be obtained.
  • the prediction mode information may include, but is not limited to: intra-block copy prediction Mode (ie IBC mode), intra prediction mode, inter prediction mode.
  • IBC mode intra-block copy prediction Mode
  • the prediction mode information of the first sub-block may be obtained, and the prediction mode information of the second sub-block may be obtained.
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode
  • the prediction mode information of the second sub-block may be an intra prediction mode
  • the prediction mode information of the second sub-block may be an inter prediction mode
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode
  • the prediction mode information of the second sub-block may be an intra block copy prediction mode
  • the prediction mode information of the first sub-block may be an intra prediction mode
  • the prediction mode information of the second sub-block may be an intra prediction mode.
  • the prediction mode information of the first sub-block may be an intra prediction mode
  • the prediction mode information of the second sub-block may be an inter prediction mode
  • the prediction mode information of the first sub-block is an inter prediction mode
  • the prediction mode information of the second sub-block is an inter prediction mode
  • the prediction mode information of the first sub-block may be an intra prediction mode
  • the prediction mode information of the second sub-block may be an intra block copy prediction mode.
  • the prediction mode information of the first sub-block may be an inter prediction mode
  • the prediction mode information of the second sub-block may be an intra-block copy prediction mode.
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode
  • the prediction mode information of the second sub-block may be an intra block copy prediction mode.
  • the prediction mode information of the first sub-block may be an intra prediction mode
  • the prediction mode information of the second sub-block may be an intra prediction mode.
  • the prediction mode information of the first sub-block may be an inter prediction mode
  • the prediction mode information of the second sub-block may be an intra prediction mode
  • the prediction mode information of the first sub-block is an inter prediction mode
  • the prediction mode information of the second sub-block is an inter prediction mode
  • the prediction mode information of the first sub-block may be an intra-block copy prediction mode, or an intra-frame prediction mode, or an inter-prediction mode
  • the prediction mode information of the second sub-block may be an intra-block copy prediction mode , Or intra prediction mode, or inter prediction mode.
  • Manner 1 The encoding end uses the prediction mode information A as the prediction mode information of the first sub-block and uses the prediction mode information B (same or different from the prediction mode information A) as the prediction mode information of the second sub-block by default through a protocol agreement.
  • the decoding end uses the prediction mode information A as the prediction mode information of the first sub-block and the prediction mode information B as the prediction mode information of the second sub-block by default by agreement.
  • the encoding end uses the intra-block copy prediction mode as the prediction mode information of the first sub-block and the intra-frame prediction mode as the prediction mode information of the second sub-block by default through the agreement;
  • the copy prediction mode is used as the prediction mode information of the first sub-block
  • the intra prediction mode is used as the prediction mode information of the second sub-block.
  • the prediction mode information of the first sub-block may be an intra-block copy prediction mode
  • the prediction mode information of the second sub-block may be an intra-frame prediction mode.
  • Method 2 Several sets of prediction mode information are agreed upon by agreement, for example, the following 6 sets of prediction mode information are agreed: the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-frame prediction Mode; the prediction mode information of the first sub-block is the intra-block copy prediction mode, the prediction mode information of the second sub-block is the inter-prediction mode; the prediction mode information of the first sub-block is the intra-block copy prediction mode, the second The prediction mode information of the sub-block is the intra-block copy prediction mode; the prediction mode information of the first sub-block is the intra-frame prediction mode, and the prediction mode information of the second sub-block is the intra-frame prediction mode; the prediction mode information of the first sub-block It is an intra prediction mode, the prediction mode information of the second sub-block is the inter prediction mode; the prediction mode information of the first sub-block is the inter prediction mode, and the prediction mode information of the second sub-block is the inter prediction mode.
  • the encoding end determines the rate distortion cost corresponding to each group of prediction mode information. For example, based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information, the current block is jointly predicted to obtain the prediction information of the current block, and the utilization rate distortion principle and the prediction information are determined The rate-distortion cost of the current block does not limit this process. Then, select the smallest rate-distortion cost from all rate-distortion costs, use the group of prediction mode information corresponding to the smallest rate-distortion cost as the target prediction mode information, and obtain the prediction mode information of the first sub-block through the target prediction mode information And the prediction mode information of the second sub-block.
  • the encoding end determines that the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-prediction mode.
  • the block division information includes block division information A1 and block division information A2, and the prediction mode information includes the above 6 sets of prediction mode information.
  • intra block copy prediction mode + intra prediction mode traverse a candidate of the intra block copy prediction mode (ie, block vector, block vector acquisition method, see Subsequent embodiments, which will not be repeated here) and a candidate of the intra prediction mode (that is, the intra sub-prediction mode.
  • a candidate of the intra prediction mode that is, the intra sub-prediction mode.
  • the operator performs joint prediction on the current block to obtain the prediction information of the current block; and the utilization rate distortion principle and the prediction information determine the rate distortion cost of the current block.
  • the current block can be jointly predicted to obtain the prediction information of the current block, and finally the current block is obtained based on the rate-distortion principle The rate-distortion cost.
  • the current block is jointly predicted to obtain the prediction information of the current block; and the principle of utilization distortion And the prediction information determine the rate-distortion cost of the current block.
  • the current block can be jointly predicted to obtain the prediction information of the current block, and finally the rate distortion cost of the current block .
  • block division information A1 and the third group of prediction mode information For block division information A1 and the third group of prediction mode information, block division information A1 and the fourth group of prediction mode information, block division information A1 and the fifth group of prediction mode information, block division information A1 and the sixth group of prediction mode information, block Division information A2 and the first group of prediction mode information, block division information A2 and the second group of prediction mode information, block division information A2 and the third group of prediction mode information, block division information A2 and the fourth group of prediction mode information, block division information
  • the A2 and the fifth group of prediction mode information, the block division information A2, and the sixth group of prediction mode information all perform the above processing to obtain the rate distortion cost of the current block.
  • the smallest rate-distortion cost can be selected from all the rate-distortion costs.
  • the minimum rate-distortion cost is the block division information A1
  • the first group of prediction mode information, the rate-distortion cost corresponding to the first candidate of the intra-block copy prediction mode and the second candidate of the intra-prediction mode then the minimum The block division information corresponding to the rate-distortion cost is the block division information A1, and the current block is divided into the first sub-block and the second sub-block based on the block division information A1.
  • the prediction mode information corresponding to the smallest rate-distortion cost is the first group of prediction mode information, that is, the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-prediction mode.
  • the target candidates corresponding to the smallest rate-distortion cost are the first candidate of the intra-block copy prediction mode (ie, block vector) and the second candidate of the intra-prediction mode (ie, the intra sub-prediction mode).
  • the above is only an example of determining the rate-distortion cost, and there is no restriction on this.
  • the encoded bit stream may carry indication information of prediction mode information.
  • the decoding end may obtain the indication information of prediction mode information from the encoded bitstream, and obtain the prediction mode information of the first sub-block and the prediction mode information of the second sub-block according to the indication information. For example, if the indication information is used to indicate the first group of prediction mode information in the 6 groups of prediction mode information, the decoding end determines that the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction of the second sub-block is The mode information is an intra prediction mode.
  • Embodiment 2 For step 204 in embodiment 1, if the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-block copy prediction mode, the implementation can be adopted Example 2 is implemented, and other processes refer to Example 1.
  • a block vector candidate list is constructed, and the block vector candidate list includes a plurality of candidate block vectors; a candidate block vector is selected from the block vector candidate list as the first target block vector of the first sub-block, and Select another candidate block vector in the block vector candidate list as the second target block vector of the second sub-block; then, obtain the predicted value corresponding to the first sub-block according to the first target block vector, and obtain according to the second target block vector The predicted value corresponding to the second sub-block.
  • a block vector candidate list is constructed for the current block.
  • the candidate block vectors in the block vector candidate list include but are not limited to: the block vector of the spatial neighboring block of the current block, and the HMVP (History-based motion vector prediction) corresponding to the current block.
  • the historical block vector, default block vector, etc. in the historical information (motion vector prediction) list are not limited to the construction process of this block vector candidate list.
  • the historical block vector in the HMVP list refers to: in the HMVP mode, multiple block vectors corresponding to the current block need to be obtained.
  • the block vector in the HMVP mode is called the historical block vector, and the number of historical block vectors is determined according to needs. There is no restriction on this.
  • the HMVP mode is a technology adopted in the new generation of video coding standards. Its principle is to use the block vector of the coded block to predict the block vector of the current block. For example, an HMVP list can be established for the current block, and the HMVP list is used to store the block vectors of the coded blocks. These block vectors can be called historical block vectors.
  • the block vector candidate list for the current block, you can select a candidate block vector from the block vector candidate list as the first target block vector of the first sub-block, and select another candidate block vector from the block vector candidate list as the first target block vector.
  • the second target block vector of the two sub-blocks for example, the first target block vector and the second target block vector may be different.
  • the predicted value corresponding to the first sub-block can be obtained according to the first target block vector, and there is no restriction on the process of obtaining the predicted value.
  • the predicted value corresponding to the second sub-block can be obtained according to the second target block vector, and there is no restriction on the process of obtaining the predicted value.
  • the block vector candidate list may include the block vector candidate list of the MMVD sub-mode.
  • the block vector candidate list includes block vectors obtained by offsetting the original block vectors.
  • the original block vector may include, but is not limited to: the block vector of the spatial neighboring block of the current block, the historical block vector in the HMVP list corresponding to the current block, the default block vector, etc.
  • the block vector A1 of the spatial neighboring block 1 of the current block can be obtained, the block vector A2 of the spatial neighboring block 2 and the historical block vectors B1-B3 in the HMVP list, and the block vector A1, block vector A2, and historical block
  • the vector B1, the historical block vector B2, and the historical block vector B3' obtained by offsetting the historical block vector B3 are added to the block vector candidate list.
  • the above methods are only two examples, and there is no restriction on this, as long as the block vector candidate list includes at least one block vector obtained by offsetting the original block vector.
  • the original block vector can be offset with a fixed direction and a fixed vector difference to obtain a new block vector.
  • a new block vector can be obtained by the following method, and the new block vector can be added to the block vector candidate List, participate in the process of determining the target block vector.
  • BV (new) represents the new block vector obtained after offset
  • BV (original) represents the original block vector
  • offset represents the fixed vector difference
  • the value of offset can be arbitrarily configured, such as +1, -1, +2, -2, etc. There is no restriction on this.
  • the encoder/decoder selects a candidate block vector from the block vector candidate list as the first target block vector of the first sub-block, and selects another candidate block vector from the block vector candidate list as the second target block of the second sub-block Vector can include the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block.
  • the group of prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-block copy prediction mode, for the block vector
  • the candidate block vector with the smallest rate-distortion cost is used as the first target block vector of the first sub-block.
  • the candidate block vector with the second lowest rate-distortion cost is used as the second target block vector of the second sub-block.
  • the encoded bit stream carries indication information of the target block vector, and the indication information is used to indicate the index information of the first target block vector and the index information of the second target block vector.
  • the index information of the first target block vector is used to indicate that the first target block vector is the candidate block vector in the block vector candidate list
  • the index information of the second target block vector is used to indicate that the second target block vector is a block vector candidate Which candidate block vector in the list.
  • the decoding end receives the coded bit stream from the coding end, and parses the indication information of the target block vector from the coded bit stream. Based on the index information of the first target block vector, a candidate block vector corresponding to the index information is selected from the block vector candidate list, and the candidate block vector is the first target block vector of the first sub-block. Based on the index information of the second target block vector, a candidate block vector corresponding to the index information is selected from the block vector candidate list, and the candidate block vector is the second target block vector of the second sub-block.
  • Method 2 The encoding end agrees to default the first target block vector and the second target block vector through the agreement, and the decoding end also agrees to use the first target block vector and the second target block vector through the agreement, so that the encoded bit stream does not need to be carried
  • the indication information of the target block vector can save the coding overhead of transmitting the indication information of the target block vector.
  • the encoding end agrees through the agreement that the first candidate block vector of the default block vector candidate list is used as the first target block vector of the first sub-block, and the second candidate block vector of the block vector candidate list is used as the first target block vector of the second sub-block.
  • Two target block vector The decoder agrees through the agreement that the first candidate block vector of the default block vector candidate list is used as the first target block vector of the first sub-block, and the second candidate block vector of the block vector candidate list is used as the second target of the second sub-block. Block vector.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode
  • the prediction mode information of the second sub-block may be an intra block copy prediction mode.
  • the first sub-block adopts the intra-block copy prediction mode
  • the second sub-block adopts the intra-block copy prediction mode.
  • the shapes of the first sub-block and the second sub-block are not made. Limitations, Figures 4A-4D are just examples.
  • the current block has two areas, one area 1 is the screen content, and the other area 2 is also the screen content.
  • area 1 needs to refer to reference block A in the current frame where the current block is located, and area 2 needs to be referenced Reference block B in the current frame where the current block is located.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is the intra-block copy prediction mode.
  • the prediction mode information of the second sub-block is the intra-block copy prediction mode.
  • the first sub-block and the second sub-block All adopt intra-frame block copy prediction mode, which can improve the coding effect.
  • Embodiment 3 For step 204 in embodiment 1, if the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the inter-prediction mode, embodiment 3 can be adopted To achieve, see Example 1 for other processes.
  • a block vector candidate list is constructed, and the block vector candidate list includes a plurality of candidate block vectors; a candidate block vector is selected from the block vector candidate list as the target block vector of the first sub-block.
  • a motion information candidate list is constructed, the motion information candidate list includes at least one candidate motion information; one candidate motion information is selected from the motion information candidate list as the target motion information of the second sub-block. Obtain the predicted value corresponding to the first sub-block according to the target block vector; obtain the predicted value corresponding to the second sub-block according to the target motion information.
  • the candidate block vectors in the block vector candidate list include but are not limited to: the block vector of the spatial neighboring block of the current block, the historical block vector in the HMVP list corresponding to the current block, and the default block Vector, etc., there is no restriction on the construction process of this block vector candidate list.
  • a candidate block vector is selected from the block vector candidate list as the target block vector of the first sub-block.
  • the predicted value corresponding to the first sub-block can be obtained according to the target block vector, and the process of obtaining the predicted value is not limited.
  • the block vector candidate list may include the block vector candidate list of the MMVD sub-mode. That is to say, the block vector candidate list includes at least one block vector obtained by offsetting the original block vector.
  • the original block vector may include, but is not limited to: the block vector of the spatial neighboring block of the current block, and the HMVP corresponding to the current block.
  • the encoding end/decoding end obtains the target block vector of the first sub-block from the block vector candidate list, which may include but is not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the inter-prediction mode. For each candidate block vector, the candidate block vector with the smallest rate-distortion cost is used as the target block vector of the first sub-block.
  • the encoded bit stream may carry indication information of the target block vector, the indication information is used to indicate the index information of the target block vector, and the index information is used to indicate that the target block vector is Which candidate block vector in the block vector candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target block vector, a candidate block vector corresponding to the index information is selected from the block vector candidate list, and the candidate block vector is the target block vector of the first sub-block.
  • Manner 2 The encoding end agrees to a default target block vector through an agreement, and the decoding end agrees to a default target block vector through an agreement.
  • the encoded bitstream does not carry the indication information of the target block vector, thereby saving encoding overhead.
  • the encoding end agrees through the agreement that the first candidate block vector of the default block vector candidate list is used as the target block vector of the first sub-block
  • the decoding end agrees through the agreement that the first candidate block vector of the default block vector candidate list is used as the first sub-block vector.
  • the target block vector of the block The target block vector of the block.
  • a motion information candidate list is constructed for the current block, and the motion information candidate list includes at least one candidate motion information, and the construction process of this motion information candidate list is not limited.
  • the construction process of this motion information candidate list is not limited.
  • the motion information candidate list includes the motion information candidate list of the conventional merge sub-mode.
  • a motion information candidate list can be established for the second sub-block.
  • candidate motion information such as motion vectors and reference frame information
  • spatial candidate motion information such as spatial candidate motion information and time domain candidate motion information.
  • Information historical exercise information, default exercise information, etc.
  • the motion information candidate list may include the motion information candidate list of the MMVD sub-mode. That is, the motion information candidate list may include motion information obtained by offsetting the original motion information, and the original motion information may include, but is not limited to: motion information of the spatial neighboring block of the current block, and temporal block of the current block.
  • the time domain block of the current block refers to the image block at the adjacent position of the current block in the reference image.
  • obtain the motion information of multiple spatial neighboring blocks such as motion information C1-motion information C4, and move the motion information C1, the motion information C2, and the motion information C3' obtained by offsetting the motion information C3, and the motion information
  • the motion information C4' obtained after the offset of C4 is added to the motion information candidate list.
  • the foregoing manner is only an example, and there is no limitation on this, as long as the motion information candidate list includes at least one motion information obtained by offsetting the original motion information.
  • the original motion information can be offset with a fixed direction and a fixed vector difference to obtain new operating information. For example, by obtaining new motion information in the following manner, the new motion information can be added to the motion information candidate list.
  • MV (new) represents the new motion vector obtained after the offset (based on this new motion vector, new motion information can be obtained)
  • MV (original) represents the original motion vector (that is, the original motion vector included in the original motion information)
  • Offset represents the fixed vector difference
  • the value of the offset can be arbitrarily configured, such as +1, -1, +2, -2, etc. There is no restriction on the value of this offset.
  • the motion information candidate list may include the motion information candidate list of the affine merge sub-mode. That is, the affine merge sub-mode is used to create the motion information candidate list of the current block, and the candidate motion information in the motion information candidate list may include, but is not limited to: motion information constructed based on the motion information of the spatial neighboring blocks of the current block , Motion information constructed based on the motion information of the time domain block of the current block, motion information constructed using a fixed rule, default motion information, etc., there is no restriction on this.
  • the affine merge sub-mode is a prediction technology based on sub-blocks, and the motion information of each sub-block can be derived through the motion parameter model. Based on this, after selecting a candidate motion information from the motion information candidate list as the target motion information of the second sub-block, for each sub-block of the second sub-block, the second sub-block can be derived based on the target motion information and the motion parameter model. And determine the prediction value of each sub-block according to the motion information of each sub-block of the second sub-block, and then obtain the prediction value of the second sub-block.
  • the second sub-block is divided into sub-block 1 and sub-block 2, and the motion information of sub-block 1 and the motion information of sub-block 2 can be derived based on the target motion information and motion parameter model of the second sub-block.
  • the predicted value of sub-block 1 may be determined according to the motion information of sub-block 1
  • the predicted value of sub-block 2 may be determined according to the motion information of sub-block 2
  • the predicted value of sub-block 1 and the predicted value of sub-block 2 can be combined into the The predicted value of the second sub-block.
  • the motion information candidate list may include the motion information candidate list of the ATMVP sub-mode.
  • the ATMVP sub-mode is used to obtain candidate motion information.
  • the reference frame corresponding to the current block is determined by specifying the motion information, and the reference block corresponding to the current block is obtained from the reference frame, and then the motion information of the reference block is used to determine the candidate motion information of the current block, such as the motion to the reference block
  • the information undergoes scaling changes, and the changed motion information is used as the candidate motion information of the current block, and there is no restriction on this.
  • the candidate motion information may be added to the motion information candidate list of the ATMVP sub-mode. If the motion information candidate list of the ATMVP sub-mode includes only one of the candidate motion information, then the candidate motion information is used as the target motion information of the second sub-block; if the motion information candidate list of the ATMVP sub-mode includes one of the candidate motion information Information, and includes other candidate motion information (the way of adding other candidate motion information is not limited), then one candidate motion information can be selected from the motion information candidate list of the ATMVP sub-mode as the target motion information of the second sub-block.
  • the reference frame corresponding to the current block can be determined by specifying the motion information, and the reference block corresponding to the current block can be obtained from the reference frame, and then use The motion information of the reference block determines the candidate motion information of the current block.
  • the motion information of the reference block is changed by expansion and contraction, and the changed motion information is used as the candidate motion information of the current block, which is not limited.
  • the candidate motion information can be directly used as the target motion information of the second sub-block.
  • the ATMVP sub-mode may also be referred to as the SBTMVP (sub-block TMVP) sub-mode.
  • the encoder/decoder obtains the target motion information of the second sub-block from the motion information candidate list, including but not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the inter-prediction mode. For each candidate motion information, the candidate motion information with the smallest rate-distortion cost is used as the target motion information of the second sub-block.
  • the encoded bit stream carries indication information of the target motion information, and the indication information is used to indicate index information of the target motion information, and the index information is used to indicate that the target motion information is motion Which candidate motion information is in the information candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target motion information, the candidate motion information corresponding to the index information is selected from the motion information candidate list, and the candidate motion information is the target motion information of the second sub-block.
  • Method 2 The encoding end agrees to default target motion information through a protocol, and the decoding end agrees to default target motion information through a protocol. In this way, the target motion information indication information may not be carried in the encoded bitstream, thereby saving encoding overhead.
  • the encoding end may agree through the agreement that the first candidate motion information of the default motion information candidate list is used as the target motion information of the second sub-block, and the decoding end may agree through the agreement that the first candidate motion information of the default motion information candidate list is used as the first candidate motion information.
  • Target motion information of the two sub-blocks may be agreed through the agreement that the first candidate motion information of the default motion information candidate list is used as the first candidate motion information.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode (IBC), and the prediction mode information of the second sub-block may be an inter prediction mode (Inter).
  • IBC intra block copy prediction mode
  • Inter inter prediction mode
  • the first sub-block adopts the intra-block copy prediction mode
  • the second sub-block adopts the inter-frame prediction mode.
  • the shapes of the first sub-block and the second sub-block are not limited. Figures 5A-5H are just examples.
  • the sub-block division direction and which one can be determined by the prediction mode information of the surrounding blocks of the current block The sub-block adopts the intra-block copy prediction mode, which sub-block adopts the inter-frame prediction mode, that is, which sub-block is the first sub-block and which sub-block is the second sub-block.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is The prediction mode information is the intra-block copy prediction mode, and the prediction mode information of N1 is the intra-block copy prediction mode. Any one of the three division directions shown in FIG. 5I can be used, and FIG. 5I shows Which sub-block adopts the intra-block copy prediction mode, and which sub-block adopts the inter-frame prediction mode.
  • N0 and N1 are the two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is not the intra-block copy prediction mode, and the prediction mode information of N1 is not the intra-block copy prediction mode, any one of the three division directions shown in FIG. 5J is used, and FIG. 5J shows Which sub-block adopts the intra-block copy prediction mode and which sub-block adopts the inter-frame prediction mode.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is The prediction mode information is the intra-block copy prediction mode. If the prediction mode information of N1 is not the intra-block copy prediction mode, any one of the three division directions shown in Figure 5K is used. Figure 5K shows which One sub-block adopts the intra-block copy prediction mode, and which sub-block adopts the inter-frame prediction mode.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is The prediction mode information is not the intra-block copy prediction mode, and the prediction mode information of N1 is the intra-block copy prediction mode. Any one of the three division directions shown in FIG. 5L is used. FIG. 5L shows which One sub-block adopts the intra-block copy prediction mode, and which sub-block adopts the inter-frame prediction mode.
  • Figures 5I-5L are just examples.
  • the first sub-block and the second sub-block adopt other shapes, for example, the first sub-block and the second sub-block are respectively triangular sub-blocks and ladder-shaped sub-blocks, or the first sub-block Both the second sub-block and the second sub-block are trapezoidal sub-blocks, or the first sub-block and the second sub-block are triangular sub-blocks and pentagonal sub-blocks, respectively.
  • the implementation mode can be seen in Fig. 5I-Fig. 5L. Repeat it.
  • Embodiment 3 it is assumed that there are two areas in the current block, one area 1 is the screen content, and the other area 2 has a strong time domain correlation.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is the intra-block copy prediction mode.
  • the prediction mode information of the second sub-block is the inter-prediction mode.
  • the first sub-block uses intra-block copy prediction Mode, can improve the coding effect. Since the second sub-block uses the inter-frame prediction mode, the purpose of effectively removing video temporal redundancy can be achieved, and the coding effect can be improved.
  • Embodiment 4 For step 204 in embodiment 1, if the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-prediction mode, embodiment 4 can be adopted To achieve, see Example 1 for other processes.
  • a block vector candidate list is constructed, and the block vector candidate list includes a plurality of candidate block vectors; a candidate block vector is selected from the block vector candidate list as the target block vector of the first sub-block.
  • Acquire the target intra sub-prediction mode of the second sub-block Obtain the predicted value corresponding to the first sub-block according to the target block vector; obtain the predicted value corresponding to the second sub-block according to the target intra-frame sub-prediction mode.
  • the candidate block vectors in the block vector candidate list include but are not limited to: the block vector of the spatial neighboring block of the current block, the historical block vector in the HMVP list corresponding to the current block, and the default block Vector, etc., there is no restriction on the construction process of this block vector candidate list.
  • a candidate block vector is selected from the block vector candidate list as the target block vector of the first sub-block.
  • the predicted value corresponding to the first sub-block can be obtained according to the target block vector, and the process of obtaining the predicted value is not limited.
  • the block vector candidate list may include the block vector candidate list of the MMVD sub-mode. That is to say, the block vector candidate list includes at least one block vector obtained by offsetting the original block vector.
  • the original block vector may include, but is not limited to: the block vector of the spatial neighboring block of the current block, and the HMVP corresponding to the current block.
  • the target intra sub-prediction mode of the second sub-block may be obtained.
  • the predicted value corresponding to the second sub-block may be obtained according to the target intra-sub-prediction mode.
  • the method of obtaining the predicted value is different. Do restrictions.
  • acquiring the target intra-frame sub-prediction mode of the second sub-block may include but is not limited to the following manners.
  • Manner 1 Determine the designated intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block. That is, the encoding end determines the designated intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block, and the decoding end determines the designated intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block. For example, the encoding end determines the Planar mode as the target intra sub-prediction mode of the second sub-block by default through a protocol agreement, and the decoding end determines the Planar mode as the target intra sub-prediction mode of the second sub-block by default through a protocol agreement.
  • the encoding end determines the DC mode as the target intra sub-prediction mode of the second sub-block by default through a protocol agreement
  • the decoder determines the DC mode as the target intra sub-prediction mode of the second sub-block by default through a protocol agreement.
  • Planar mode and DC mode are just examples, and various angle prediction modes may be determined as the target intra-frame sub-prediction mode of the second sub-block by default through agreement, and there is no restriction on this.
  • Manner 2 Build an intra sub-prediction mode candidate list, which may include multiple candidate intra sub-prediction modes; select one candidate intra sub-prediction mode from the intra sub-prediction mode candidate list as the target of the second sub-block Intra sub-prediction mode.
  • a candidate list of intra sub prediction modes is constructed for the current block.
  • the candidate intra sub prediction modes in the candidate list of intra sub prediction modes include but are not limited to: Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc.
  • the construction process of the prediction mode candidate list is not limited, and the intra-frame sub-prediction mode candidate list may also include candidate intra-frame sub-prediction modes from other angles.
  • the intra-sub-prediction mode candidate list for the current block After constructing the intra-sub-prediction mode candidate list for the current block, select a candidate intra-sub-prediction mode from the intra-sub-prediction mode candidate list as the target intra-sub-prediction mode of the second sub-block, and obtain the sub-prediction mode according to the target intra-sub-prediction mode.
  • the predicted value corresponding to the two sub-blocks is not limited to this acquisition process.
  • the encoding end/decoding end obtains the target intra sub prediction mode from the intra sub prediction mode candidate list, including but not limited to the following methods.
  • the coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block.
  • the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-prediction mode, for the intra-sub-prediction mode candidate list For each candidate intra sub-prediction mode in, the candidate intra sub-prediction mode with the least rate-distortion cost is used as the target intra sub-prediction mode of the second sub-block.
  • the encoded bitstream carries indication information of the target intra-frame sub-prediction mode, and the indication information is used to indicate the index information of the target intra-frame sub-prediction mode, and the index information is used to indicate the target intra-frame sub-prediction mode.
  • the prediction mode is the number of candidate intra sub prediction modes in the intra sub prediction mode candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target intra sub prediction mode, a candidate intra sub prediction mode corresponding to the index information is selected from the intra sub prediction mode candidate list, and the candidate intra sub prediction mode is the target intra sub prediction mode of the second sub block.
  • Method B The encoding end agrees to the default target intra sub-prediction mode through the protocol, and the decoder agrees to the default target intra sub-prediction mode through the protocol. In this way, the encoded bitstream does not carry the indication information of the target intra sub-prediction mode, thereby saving encoding overhead.
  • the encoding end agrees through the agreement that the first candidate intra sub-prediction mode in the default intra-sub-prediction mode candidate list is used as the target intra-sub-prediction mode of the second sub-block, and the decoder agrees through the agreement that The first candidate intra sub-prediction mode is used as the target intra sub-prediction mode of the second sub-block.
  • Manner 3 Determine the intra-frame sub-prediction mode of the neighboring block of the second sub-block as the target intra-frame sub-prediction mode of the second sub-block. For example, for the encoding end, if the first neighboring block of the second sub-block adopts a certain intra sub-prediction mode for prediction, the encoding end may obtain the intra sub-prediction mode of the first neighboring block of the second sub-block, And determine the intra sub prediction mode of the first neighboring block of the second sub block as the target intra sub prediction mode of the second sub block.
  • the decoding end can obtain the intra sub-prediction mode of the first neighboring block of the second sub-block, and The intra sub-prediction mode of the first neighboring block of the second sub-block is determined as the target intra sub-prediction mode of the second sub-block.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an intra block copy prediction mode (IBC), and the prediction mode information of the second sub-block may be an intra prediction mode (Intra).
  • IBC intra block copy prediction mode
  • Intra intra prediction mode
  • 6A-6H the first sub-block adopts the intra-frame copy prediction mode
  • the second sub-block adopts the intra-frame prediction mode.
  • Figures 6A-6H are just examples.
  • the sub-block division direction and which one can be determined by the prediction mode information of the surrounding blocks of the current block The sub-block adopts the intra-block copy prediction mode, which sub-block adopts the intra-frame prediction mode, that is, which sub-block is the first sub-block and which sub-block is the second sub-block.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is The prediction mode information is the intra prediction mode, and the prediction mode information of N1 is the intra prediction mode. Any one of the three division directions shown in FIG. 7A may be used, and FIG. 7A shows which sub-block Intra-block copy prediction mode is adopted, which sub-block adopts intra-frame prediction mode.
  • N0 and N1 are the two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is not an intra prediction mode, and the prediction mode information of N1 is not an intra prediction mode, any one of the three division directions shown in FIG. 7B can be used, and which one is shown in FIG. 7B The sub-block adopts the intra-block copy prediction mode, and which sub-block adopts the intra-prediction mode.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is an intra prediction mode, and the prediction mode information of N1 is not an intra prediction mode, any one of the three division directions shown in Fig. 7C can be used, and Fig. 7C shows which sub The block adopts the intra-block copy prediction mode, and which sub-block adopts the intra-prediction mode.
  • N0 and N1 are the two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is not an intra prediction mode, and the prediction mode information of N1 is an intra prediction mode, any one of the three division directions shown in FIG. 7D can be used, and which sub-frame is shown in FIG. 7D The block adopts the intra-block copy prediction mode, and which sub-block adopts the intra-prediction mode.
  • FIGS. 7A-7D are only examples.
  • the first sub-block and the second sub-block adopt other shapes, for example, the first sub-block and the second sub-block are respectively triangular sub-blocks and ladder-shaped sub-blocks, or the first sub-block Both the second sub-block and the second sub-block are trapezoidal sub-blocks, or the first sub-block and the second sub-block are respectively triangular sub-blocks and pentagonal sub-blocks.
  • the implementation mode can be seen in FIGS. 7A-7D, which will not be repeated here. Repeat it.
  • Embodiment 4 it is assumed that there are two areas in the current block, one area 1 is the screen content, and the other area 2 has a natural texture.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is the intra-block copy prediction mode, and the prediction mode information of the second sub-block is the intra-prediction mode.
  • the first sub-block uses intra-block copy prediction Mode, can improve the coding effect. Since the intra-frame prediction mode corresponds to the texture direction, when the second sub-block uses the intra-frame prediction mode, the purpose of effectively removing video redundancy can be achieved, and the coding effect can be improved.
  • Embodiment 5 Regarding step 204 in Embodiment 1, if the prediction mode information of the first sub-block is an intra-frame prediction mode, and the prediction mode information of the second sub-block is an intra-frame prediction mode, it can be implemented in Embodiment 5. See Example 1 for other procedures.
  • the first target intra sub-prediction mode of the first sub-block, the second target intra sub-prediction mode of the second sub-block, the first target intra sub-prediction mode and the second target intra sub-prediction mode The modes are different; the predicted value corresponding to the first sub-block is obtained according to the first target intra sub-prediction mode; the predicted value corresponding to the second sub-block is obtained according to the second target intra sub-prediction mode.
  • obtaining the first target intra sub-prediction mode of the first sub-block and the second target intra sub-prediction mode of the second sub-block, and obtaining the prediction value corresponding to the first sub-block according to the first target intra sub-prediction mode The prediction value corresponding to the second sub-block is obtained according to the second target intra-frame sub-prediction mode, and there is no restriction on the method for obtaining the prediction value.
  • acquiring the first target intra sub-prediction mode and the second target intra sub-prediction mode may include but is not limited to the following manners.
  • Manner 1 Determine the designated first intra sub-prediction mode as the first target intra sub-prediction mode of the first sub-block, and determine the designated second intra sub-prediction mode as the second target intra sub-prediction mode of the second sub-block. That is, the encoder can determine the designated first intra sub-prediction mode as the first target intra sub-prediction mode of the first sub-block, and determine the designated second intra sub-prediction mode as the second target frame of the second sub-block.
  • Intra sub-prediction mode the decoder can determine the designated first intra sub-prediction mode as the first target intra sub-prediction mode of the first sub-block, and determine the designated second intra sub-prediction mode as the second target frame of the second sub-block Endon prediction mode.
  • the encoding end may determine the Planar mode as the first target intra sub-prediction mode of the first sub-block by default through a protocol agreement, and determine the DC mode as the second target intra sub-prediction mode of the second sub-block by default through a protocol agreement.
  • the decoding end may determine the Planar mode as the first target intra sub-prediction mode of the first sub-block by default through a protocol agreement, and determine the DC mode as the second target intra sub-prediction mode of the second sub-block by default through a protocol agreement.
  • the above method is only an example, and other agreements can also be made, and there is no restriction on this.
  • the intra sub-prediction mode candidate list may include multiple candidate intra sub-prediction modes; one candidate intra sub-prediction mode is selected from the intra sub-prediction mode candidate list as the first sub-block A target intra sub prediction mode, and another candidate intra sub prediction mode is selected from the intra sub prediction mode candidate list as the second target intra sub prediction mode of the second sub block.
  • a candidate list of intra sub prediction modes is constructed for the current block.
  • the candidate intra sub prediction modes in the candidate list of intra sub prediction modes include but are not limited to: Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc.
  • the construction process of the prediction mode candidate list is not limited, and the intra-frame sub-prediction mode candidate list may also include candidate intra-frame sub-prediction modes from other angles.
  • the intra-sub-prediction mode candidate list After constructing the intra-sub-prediction mode candidate list for the current block, select a candidate intra-sub-prediction mode from the intra-sub-prediction mode candidate list as the first target intra-sub-prediction mode of the first sub-block, and according to the first target intra-sub-prediction The mode obtains the predicted value corresponding to the first sub-block, and the obtaining process is not limited.
  • the encoding end/decoding end obtains the target intra sub prediction mode from the intra sub prediction mode candidate list, including but not limited to the following methods.
  • the coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said
  • the prediction information determines the rate-distortion cost of the current block.
  • the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the intra-frame prediction mode, and the prediction mode information of the second sub-block is the intra-frame prediction mode.
  • the candidate intra sub-prediction mode with the least rate-distortion cost is used as the first target intra sub-prediction mode of the first sub-block.
  • the candidate intra sub-prediction mode with the second lowest rate-distortion cost is used as the second target intra sub-prediction mode of the second sub-block.
  • the encoded bitstream carries indication information of the target intra-frame sub-prediction mode, and the indication information is used to indicate the index information of the first target intra-frame sub-prediction mode, and the index information is used to indicate the first target intra-frame sub-prediction mode.
  • a target intra-frame sub-prediction mode is the number of candidate intra-frame sub-prediction modes in the intra-frame sub-prediction mode candidate list.
  • the indication information is also used to indicate index information of the second target intra sub-prediction mode, and the index information is used to indicate which candidate intra sub-prediction mode of the second target intra sub-prediction mode is in the intra sub-prediction mode candidate list.
  • the decoding end receives the coded bit stream from the coding end, and parses the indication information of the target intra-frame sub-prediction mode from the coded bit stream. Based on the index information of the first target intra sub-prediction mode, the candidate intra sub-prediction mode corresponding to the index information is selected from the intra-sub-prediction mode candidate list, and the candidate intra sub-prediction mode is the first target intra sub-prediction of the first sub-block. Forecast mode. Based on the index information of the second target intra sub-prediction mode, the candidate intra sub-prediction mode corresponding to the index information is selected from the intra-sub-prediction mode candidate list, and the candidate intra sub-prediction mode is the second target intra sub-prediction of the second sub-block. Forecast mode.
  • Method B The encoding end agrees to default the first target intra sub-prediction mode and the second target intra sub-prediction mode through the agreement, and the decoder agrees to default the first target intra sub-prediction mode and the second target intra sub-prediction mode through the agreement. In this way, the coded bitstream does not carry the indication information of the target intra-frame sub-prediction mode, thereby saving coding overhead.
  • the encoder agrees through the agreement that the first candidate intra sub-prediction mode in the intra-sub-prediction mode candidate list is the first target intra-sub-prediction mode of the first sub-block, and the second candidate in the intra-sub-prediction mode candidate list is The intra sub-prediction mode is used as the second target intra sub-prediction mode of the second sub-block.
  • the decoder agrees through the agreement that the first candidate intra sub-prediction mode in the intra-sub-prediction mode candidate list is the first target intra-sub-prediction mode of the first sub-block, and the second candidate intra-sub-prediction mode in the intra-sub-prediction mode candidate list
  • the prediction mode is used as the second target intra sub-prediction mode of the second sub-block.
  • the intra sub-prediction mode of the first neighboring block of the first sub-block is different from the intra sub-prediction mode of the second neighboring block of the second sub-block, the intra sub-prediction mode of the first neighboring block can be changed Determine the first target intra sub-prediction mode of the first sub-block, and determine the intra sub-prediction mode of the second neighboring block as the second target intra sub-prediction mode of the second sub-block.
  • the intra sub-prediction mode of the first neighboring block may be determined as the first target frame of the first sub-block Intra sub prediction mode, and another intra sub prediction mode different from the first target intra sub prediction mode is determined as the second target intra sub prediction mode of the second sub block.
  • the intra sub-prediction mode of the first neighboring block may be determined as the second target frame of the second sub-block Intra sub prediction mode, and another intra sub prediction mode different from the second target intra sub prediction mode is determined as the first target intra sub prediction mode of the first sub block.
  • the second neighboring block of the second sub-block adopts intra sub-prediction mode B for prediction.
  • Prediction if the first neighboring block of the first sub-block adopts intra sub-prediction mode A for prediction, the second neighboring block of the second sub-block adopts intra sub-prediction mode B for prediction.
  • the intra sub-prediction mode A is different from the intra sub-prediction mode B, the intra sub-prediction mode A can be determined as the first target intra sub-prediction mode of the first sub-block, and the intra sub-prediction mode B can be determined as the first target intra sub-prediction mode.
  • the intra sub-prediction mode A is determined as the first target intra sub-prediction mode of the first sub-block, and another frame different from the intra sub-prediction mode A
  • the intra sub prediction mode C is determined as the second target intra sub prediction mode of the second sub block.
  • the intra sub-prediction mode C may be the intra sub-prediction mode of the neighboring block of the second neighboring block.
  • the intra sub-prediction mode A is the Planar mode
  • the intra sub-prediction mode C may be the DC mode.
  • the intra sub-prediction mode B is determined as the second target intra sub-prediction mode of the second sub-block, and another frame different from the intra sub-prediction mode B
  • the intra sub-prediction mode D is determined as the first target intra sub-prediction mode of the first sub-block.
  • the intra sub-prediction mode D may be the intra sub-prediction mode of the neighboring block of the first neighboring block.
  • the intra sub-prediction mode B is the Planar mode
  • the intra sub-prediction mode D may be the DC mode.
  • the intra sub-prediction mode A is determined as the first target intra sub-prediction mode of the first sub-block
  • another intra sub-prediction mode C different from the intra sub-prediction mode A is determined as the second target of the second sub-block Intra sub-prediction mode.
  • the intra sub-prediction mode C is the intra-sub-prediction mode of the neighboring block of the second neighboring block.
  • the intra-sub-prediction mode A is the Planar mode
  • the intra-sub-prediction mode C can be the DC mode.
  • the limitation is as long as the intra sub-prediction mode C is different from the intra sub-prediction mode A.
  • the intra sub-prediction mode B is determined as the second target intra sub-prediction mode of the second sub-block
  • another intra sub-prediction mode D different from the intra sub-prediction mode B is determined as the first target of the first sub-block Intra sub-prediction mode.
  • the intra sub-prediction mode D is the intra-sub-prediction mode of the neighboring block of the first neighboring block.
  • the intra-sub-prediction mode B is the Planar mode
  • the intra-sub-prediction mode D can be the DC mode. The limitation is as long as the intra sub-prediction mode D is different from the intra sub-prediction mode B.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an intra prediction mode (Intra), and the prediction mode information of the second sub-block may be an intra prediction mode (Intra), but the first target of the first sub-block
  • the intra sub prediction mode is different from the second target intra sub prediction mode of the second sub block.
  • the first target intra sub prediction mode and the second target intra sub prediction mode can be fixed or derived from surrounding blocks. Referring to Figures 8A-8D, it is an example in which the first sub-block adopts the intra prediction mode and the second sub-block adopts the intra prediction mode.
  • the shapes of the first sub-block and the second sub-block are not limited, as shown in Figure 8A - Figure 8D is just an example.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is an intra prediction mode, and the prediction mode information of the second sub-block is an intra prediction mode. Since the first sub-block uses the intra-frame prediction mode and the second sub-block uses the intra-frame prediction mode, the purpose of effectively removing video redundancy can be achieved, and the coding effect can be improved.
  • Embodiment 6 Regarding step 204 in Embodiment 1, if the prediction mode information of the first sub-block is an inter prediction mode, and the prediction mode information of the second sub-block is an intra prediction mode, it can be implemented in Embodiment 6. See Example 1 for other procedures.
  • a motion information candidate list is constructed, and the motion information candidate list includes at least one candidate motion information; one candidate motion information is selected from the motion information candidate list as the target motion information of the first sub-block; the second sub-block is obtained The target intra-frame sub-prediction mode; obtain the predicted value corresponding to the first sub-block according to the target motion information; obtain the predicted value corresponding to the second sub-block according to the target intra-frame sub-prediction mode.
  • a motion information candidate list is constructed for the current block, and the motion information candidate list includes at least one candidate motion information, and the construction process of this motion information candidate list is not limited.
  • the construction process of this motion information candidate list is not limited.
  • the motion information candidate list when the first sub-block adopts the regular merging sub-mode in the inter prediction mode, includes the motion information candidate list of the regular merging sub-mode.
  • the motion information candidate list may include the motion information candidate list of the MMVD sub-mode.
  • the motion information candidate list may include the motion information candidate list of the affine merge sub-mode.
  • the motion information candidate list includes the motion information candidate list of the ATMVP sub-mode.
  • the encoding end/decoding end obtains the target motion information of the first sub-block from the motion information candidate list, including but not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the inter prediction mode, and the prediction mode information of the second sub-block is the intra prediction mode, for each of the motion information candidate lists For candidate motion information, the candidate motion information with the smallest rate-distortion cost is used as the target motion information of the first sub-block.
  • the encoded bit stream may carry indication information of the target motion information, and the indication information is used to indicate index information of the target motion information, and the index information is used to indicate that the target motion information is The number of candidate motion information in the motion information candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target motion information, the candidate motion information corresponding to the index information is selected from the motion information candidate list, and the candidate motion information is the target motion information of the first sub-block.
  • Method 2 The encoding end agrees to default target motion information through a protocol, and the decoding end agrees to default target motion information through a protocol. In this way, the target motion information indication information may not be carried in the encoded bitstream, thereby saving encoding overhead.
  • the encoding end may agree through the agreement that the first candidate motion information of the default motion information candidate list is used as the target motion information of the first sub-block, and the decoding end may agree through the agreement that the first candidate motion information of the default motion information candidate list shall be the first candidate motion information.
  • Target motion information of a sub-block may be used as the target motion information of the first sub-block.
  • the target intra sub-prediction mode of the second sub-block may be obtained.
  • the predicted value corresponding to the second sub-block may be obtained according to the target intra-sub-prediction mode.
  • the method of obtaining the predicted value is different. Do restrictions.
  • acquiring the target intra-frame sub-prediction mode of the second sub-block may include but is not limited to the following manners.
  • Manner 1 Determine the designated intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block.
  • the encoding end determines the specified intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block, and the decoding end determines the specified intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block.
  • Manner 2 Build an intra sub-prediction mode candidate list, which may include multiple candidate intra sub-prediction modes; select one candidate intra sub-prediction mode from the intra sub-prediction mode candidate list as the target of the second sub-block Intra sub-prediction mode.
  • the candidate intra sub-prediction modes in the intra sub-prediction mode candidate list include but are not limited to: Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc.
  • a candidate intra sub prediction mode is selected from the intra sub prediction mode candidate list as the target intra sub prediction mode of the second sub block, and the prediction value corresponding to the second sub block is obtained according to the target intra sub prediction mode.
  • the encoding end/decoding end obtains the target intra sub prediction mode from the intra sub prediction mode candidate list, including but not limited to the following methods.
  • the coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said
  • the prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the inter prediction mode, and the prediction mode information of the second sub-block is the intra prediction mode. For each candidate intra sub-prediction mode, the candidate intra sub-prediction mode with the smallest rate-distortion cost is used as the target intra sub-prediction mode of the second sub-block.
  • the encoded bitstream carries indication information of the target intra-frame sub-prediction mode, and the indication information is used to indicate the index information of the target intra-frame sub-prediction mode, and the index information is used to indicate the target intra-frame sub-prediction mode.
  • the prediction mode is the number of candidate intra sub prediction modes in the intra sub prediction mode candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target intra sub prediction mode, a candidate intra sub prediction mode corresponding to the index information is selected from the intra sub prediction mode candidate list, and the candidate intra sub prediction mode is the target intra sub prediction mode of the second sub block.
  • Method B The encoding end agrees on a default target intra sub-prediction mode through a protocol, and the decoding end agrees on a default target intra sub-prediction mode through a protocol.
  • the encoding end agrees through the agreement that the first candidate intra sub-prediction mode in the default intra-sub-prediction mode candidate list is used as the target intra-sub-prediction mode of the second sub-block, and the decoder agrees through the agreement that The first candidate intra sub-prediction mode is used as the target intra sub-prediction mode of the second sub-block.
  • Manner 3 Determine the intra-frame sub-prediction mode of the neighboring block of the second sub-block as the target intra-frame sub-prediction mode of the second sub-block.
  • the encoding end obtains the intra sub-prediction mode of the first neighboring block of the second sub-block, and determines the intra sub-prediction mode of the first neighboring block of the second sub-block as the target intra sub-prediction mode of the second sub-block .
  • the decoding end obtains the intra sub-prediction mode of the first neighboring block of the second sub-block, and determines the intra sub-prediction mode of the first neighboring block of the second sub-block as the target intra sub-prediction mode of the second sub-block.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an inter prediction mode (Inter)
  • the prediction mode information of the second sub-block may be an intra prediction mode (Intra).
  • the first sub-block adopts the inter-frame prediction mode
  • the second sub-block adopts the intra-frame prediction mode.
  • the shapes of the first sub-block and the second sub-block are not limited, as shown in Figure 9A -FIG. 9D is only an example, showing an example in which the first sub-block and the second sub-block are both ladder-shaped sub-blocks, and other cases such as the first sub-block and the second sub-block being both triangular sub-blocks are not shown.
  • the division direction of the sub-block and which sub-block can also be determined through the prediction mode information of the surrounding blocks of the current block In the inter-frame prediction mode, which sub-block adopts the intra-frame prediction mode, that is, which sub-block is the first sub-block and which sub-block is the second sub-block.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is an intra prediction mode, and the prediction mode information of N1 is an intra prediction mode, any one of the three division directions shown in FIG. 10A may be used, and FIG. 10A shows which sub-block In the inter-frame prediction mode, which sub-block adopts the intra-frame prediction mode.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is not an intra prediction mode, and the prediction mode information of N1 is not an intra prediction mode, any one of the three division directions shown in FIG. 10B can be used, and which one is shown in FIG. 10B The sub-block adopts the inter-frame prediction mode, and which sub-block adopts the intra-frame prediction mode.
  • N0 and N1 are two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is The prediction mode information is an intra prediction mode, and the prediction mode information of N1 is not an intra prediction mode. Any one of the three division directions shown in FIG. 10C can be used, and which sub-prediction mode is shown in FIG. 10C. The block adopts the inter-frame prediction mode, and which sub-block adopts the intra-frame prediction mode.
  • N0 and N1 are the two surrounding blocks of the current block. Based on the prediction mode information of the two surrounding blocks, when the first sub-block and the second sub-block are both triangular sub-blocks, if the value of N0 is If the prediction mode information is not an intra prediction mode, and the prediction mode information of N1 is an intra prediction mode, any one of the three division directions shown in Fig. 10D can be used, and Fig. 10D shows which sub The block adopts the inter-frame prediction mode, and which sub-block adopts the intra-frame prediction mode.
  • FIGS. 10A-10D are only examples.
  • the first sub-block and the second sub-block adopt other shapes, for example, the first sub-block and the second sub-block are respectively triangular sub-blocks and ladder-shaped sub-blocks, or the first sub-block Both the second sub-block and the second sub-block are trapezoidal sub-blocks, or the first sub-block and the second sub-block are respectively triangular sub-blocks and pentagonal sub-blocks.
  • the implementation manners can be seen in FIGS. 10A-10D, which will not be omitted here. Repeat it.
  • Embodiment 6 it is assumed that there are two regions in the current block, one region 1 has a strong temporal correlation, and the other region 2 has a natural texture.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is an inter prediction mode, and the prediction mode information of the second sub-block is an intra prediction mode. Since the first sub-block uses the inter-frame prediction mode, the purpose of effectively removing video temporal redundancy can be achieved, and the coding effect can be improved. Since the second sub-block uses the intra prediction mode, the coding effect can be improved.
  • Embodiment 7 Regarding step 204 in Embodiment 1, if the prediction mode information of the first sub-block is an inter prediction mode, and the prediction mode information of the second sub-block is an inter prediction mode, it can be implemented in Embodiment 7. See Example 1 for other procedures.
  • the first motion information candidate list of the first sub-mode in the inter prediction mode is constructed, the first motion information candidate list includes at least one candidate motion information; one candidate motion is selected from the first motion information candidate list The information is used as the target motion information of the first sub-block.
  • the first sub-mode includes but is not limited to one of the following sub-modes: conventional merge sub-mode, MMVD sub-mode, affine merge sub-mode, ATMVP sub-mode;
  • the second sub-mode includes but is not limited to one of the following sub-modes: regular Merge sub mode, MMVD sub mode, affine merge sub mode, ATMVP sub mode.
  • regular Merge sub mode MMVD sub mode
  • affine merge sub mode affine merge sub mode
  • ATMVP sub mode ATMVP sub mode
  • the second sub-mode is not a regular merge sub-mode, but is MMVD sub-mode, affine merge sub-mode, ATMVP sub-mode One of the modes.
  • the first sub mode is the MMVD sub mode
  • the second sub mode is not the MMVD sub mode, but is one of the conventional merge sub mode, the affine merge sub mode, the ATMVP sub mode, and so on.
  • the first motion information candidate list of the first sub-mode in the inter prediction mode is constructed for the current block, and the first motion information candidate list includes at least one candidate motion information; the construction process is not limited.
  • a candidate motion information is selected from the first motion information candidate list as the target motion information of the first sub-block, and the target motion information corresponding to the first sub-block is obtained according to the target motion information.
  • the predicted value does not limit this process.
  • the first motion information candidate list includes the motion information candidate list of the regular merge sub-mode.
  • the first motion information candidate list includes the motion information candidate list of the MMVD submode.
  • the first motion information candidate list includes the motion information candidate list of the affine merge sub-mode.
  • the first motion information candidate list includes the motion information candidate list of the ATMVP sub-mode.
  • the encoding end/decoding end obtains the target motion information of the first sub-block from the first motion information candidate list, including but not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the inter-frame prediction mode, and the prediction mode information of the second sub-block is the inter-frame prediction mode. For each candidate motion information, the candidate motion information with the smallest rate-distortion cost is used as the target motion information of the first sub-block.
  • the encoded bit stream may carry indication information of target motion information, and the indication information is used to indicate index information of the target motion information of the first sub-block, and the index information is used for Indicates that the target motion information is the number one candidate motion information in the first motion information candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target motion information, the candidate motion information corresponding to the index information is selected from the first motion information candidate list, and the candidate motion information is the target motion information of the first sub-block.
  • Manner 2 The encoding end agrees to default target motion information through a protocol, and the decoding end agrees to default target motion information through a protocol.
  • the encoding end can default the first candidate motion information of the first motion information candidate list as the target motion information of the first sub-block through a protocol agreement
  • the decoding end can default the first candidate of the first motion information candidate list through a protocol agreement
  • the motion information is used as the target motion information of the first sub-block.
  • the above method is only an example, and there is no restriction on this.
  • the second motion information candidate list of the second sub-mode in the inter prediction mode is constructed for the current block, and the second motion information candidate list includes at least one candidate motion information; the construction process is not limited. After constructing the second motion information candidate list for the current block, select one candidate motion information from the second motion information candidate list as the target motion information of the second sub-block, and obtain the corresponding motion information of the second sub-block according to the target motion information. The predicted value does not limit this process.
  • the second motion information candidate list includes the motion information candidate list of the regular merge sub-mode.
  • the second motion information candidate list includes the motion information candidate list of the MMVD sub-mode.
  • the second motion information candidate list includes the motion information candidate list of the affine merge sub-mode.
  • the second motion information candidate list includes the motion information candidate list of the ATMVP sub-mode.
  • the encoding end/decoding end obtains the target motion information of the second sub-block from the second motion information candidate list, including but not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the inter-frame prediction mode, and the prediction mode information of the second sub-block is the inter-frame prediction mode. For each candidate motion information, the candidate motion information with the smallest rate-distortion cost is used as the target motion information of the second sub-block.
  • the encoded bit stream may carry indication information of the target motion information, and the indication information is used to indicate the index information of the target motion information of the second sub-block, and the index information is used for Indicates that the target motion information is the candidate motion information in the second motion information candidate list.
  • the decoding end receives the encoded bit stream from the encoding end, and parses the indication information from the encoded bit stream. Based on the index information of the target motion information, the candidate motion information corresponding to the index information is selected from the second motion information candidate list, and the candidate motion information is the target motion information of the second sub-block.
  • Manner 2 The encoding end agrees to default target motion information through a protocol, and the decoding end agrees to default target motion information through a protocol.
  • the encoding end can default the second candidate motion information of the second motion information candidate list as the target motion information of the second sub-block through a protocol agreement, and the decoding end can default the second candidate of the second motion information candidate list through a protocol agreement
  • the motion information is used as the target motion information of the second sub-block.
  • the above method is only an example, and there is no restriction on this.
  • the current block when the current frame where the current block is located is a B frame or an I frame, the current block can be divided into a first sub-block and a second sub-block according to a fixed direction, and the first sub-block and the second sub-block can both be Triangular sub-blocks, or the first sub-block and the second sub-block may be triangle sub-blocks and ladder-shaped sub-blocks, or the first sub-block and the second sub-block may both be ladder-shaped sub-blocks, or the first and second sub-blocks
  • the sub-blocks can be respectively triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an inter prediction mode (Inter)
  • the prediction mode information of the second sub-block may be an inter prediction mode (Inter).
  • the first sub-block adopts the inter-frame prediction mode
  • the second sub-block adopts the inter-frame prediction mode.
  • the shapes of the first sub-block and the second sub-block are not limited, as shown in Figure 11A -FIG. 11D is only an example, showing an example in which the first sub-block and the second sub-block are both trapezoidal sub-blocks, and it does not show other situations such as the first sub-block and the second sub-block being triangular sub-blocks.
  • the first sub-block adopts the inter-frame prediction mode and the second sub-block adopts the inter-frame prediction mode
  • it can be selected from the conventional merge sub-mode, the triangular prediction sub-mode, the MMVD sub-mode, the affine merge sub-mode, and the ATMVP sub-mode.
  • One sub-mode can be selected as the second sub-mode of the second sub-block from the regular merge sub-mode, the triangular prediction sub-mode, the MMVD sub-mode, the affine merge sub-mode, and the ATMVP sub-mode.
  • the first sub-mode of the first sub-block and the second sub-mode of the second sub-block may be different.
  • Embodiment 7 it is assumed that there are two regions in the current block.
  • One region 1 has a strong time domain correlation
  • the other region 2 also has a strong time domain correlation.
  • the reference block corresponding to the region 1 and the region 2 The corresponding reference blocks are different and need to correspond to different motion information.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is an inter prediction mode, and the prediction mode information of the second sub-block is the inter prediction mode. Since the first sub-block uses the inter-frame prediction mode, and the second sub-block uses the inter-frame prediction mode, the purpose of effectively removing video temporal redundancy can be achieved, and the coding effect can be improved.
  • Embodiment 8 For step 204 in Embodiment 1, if the prediction mode information of the first sub-block is the inter prediction mode, the prediction mode information of the second sub-block is the inter prediction mode, and the inter-frame of the first sub-block is The prediction mode and the inter-frame prediction mode of the second sub-block adopt the same sub-mode, which can be implemented in Embodiment 8. For other processes, refer to Embodiment 1. In Embodiment 8, the motion information candidate list of the inter prediction mode is constructed for the current block.
  • the motion information candidate list includes at least one candidate motion information, and the construction process is not limited; select one candidate motion information from the motion information candidate list As the target motion information of the first sub-block, and select another candidate motion information from the motion information candidate list as the target motion information of the second sub-block, the target motion information of the first sub-block and the target motion information of the second sub-block different. Obtain the predicted value corresponding to the first sub-block according to the target motion information of the first sub-block; obtain the predicted value corresponding to the second sub-block according to the target motion information of the second sub-block.
  • the motion information candidate list may include, but is not limited to, the motion information candidate list based on the following sub-modes: conventional merge sub-mode, MMVD sub-mode, affine merge sub-mode, ATMVP sub-mode; of course, the above are just a few examples of sub-modes.
  • This sub-mode is not limited, as long as it is a sub-mode in the inter prediction mode.
  • the motion information candidate list includes the motion information candidate list of the regular merge sub-mode.
  • the motion information candidate list includes the motion information candidate list of the MMVD sub-mode.
  • the motion information candidate list includes the motion information candidate list of the affine merge sub-mode.
  • the motion information candidate list includes the motion information candidate list of the ATMVP sub-mode.
  • the encoder/decoder obtains the target motion information from the motion information candidate list, which may include but is not limited to the following methods.
  • Method 1 The coding end performs joint prediction on the current block based on each block division information, each group of prediction mode information, and each group of candidates in the prediction mode information to obtain the prediction information of the current block, and the utilization rate distortion principle and the said The prediction information determines the rate-distortion cost of the current block. It is assumed that the prediction mode information corresponding to the smallest rate-distortion cost includes: the prediction mode information of the first sub-block is the inter-frame prediction mode, and the prediction mode information of the second sub-block is the inter-frame prediction mode, for each of the motion information candidate lists For candidate motion information, the candidate motion information with the smallest rate-distortion cost is used as the target motion information of the first sub-block.
  • the candidate motion information with the second lowest rate-distortion cost is used as the target motion information of the second sub-block.
  • the encoded bit stream may carry indication information of the target motion information, and the indication information is used to indicate the index information of the target motion information of the first sub-block and the index information of the second sub-block.
  • the index information of the target motion information, the index information of the target motion information of the first sub-block is used to indicate the target motion information of the first sub-block is the number of candidate motion information in the motion information candidate list, and the target motion of the second sub-block
  • the index information of the information is used to indicate that the target motion information of the second sub-block is the number of candidate motion information in the motion information candidate list.
  • the decoding end receives the coded bit stream from the coding end, and parses the indication information of the target motion information from the coded bit stream. Based on the index information of the target motion information of the first sub-block, the decoder selects candidate motion information corresponding to the index information from the motion information candidate list, and the candidate motion information is the target motion information of the first sub-block.
  • the decoder Based on the index information of the target motion information of the second sub-block, the decoder selects candidate motion information corresponding to the index information from the motion information candidate list, and the candidate motion information is the target motion information of the second sub-block.
  • Manner 2 The encoding end agrees to default target motion information through a protocol, and the decoding end agrees to default target motion information through a protocol.
  • the encoder can agree through the agreement that the first candidate motion information of the default motion information candidate list is used as the target motion information of the first sub-block, and the second candidate motion information of the motion information candidate list is used as the target motion information of the second sub-block.
  • the decoder can agree through the agreement that the first candidate motion information of the default motion information candidate list is used as the target motion information of the first sub-block, and the second candidate motion information of the motion information candidate list is used as the target motion information of the second sub-block.
  • the current block where the current block is located is a B frame or an I frame
  • the current block is divided into the first sub-block and the second sub-block according to a fixed direction
  • the first sub-block and the second sub-block may both be triangular Sub-block
  • the first sub-block and the second sub-block may be triangular sub-blocks and ladder-shaped sub-blocks
  • the first sub-block and the second sub-block may both be ladder-shaped sub-blocks
  • the first sub-block and the second sub-block can be divided into triangular sub-blocks and pentagonal sub-blocks, and there is no restriction on the division method of the current block.
  • the prediction mode information of the first sub-block may be an inter prediction mode (Inter)
  • the prediction mode information of the second sub-block may be an inter prediction mode (Inter).
  • the first sub-block adopts the inter-frame prediction mode
  • the second sub-block adopts the inter-frame prediction mode.
  • the shapes of the first sub-block and the second sub-block are not limited, as shown in Figure 11A -FIG. 11D is only an example, showing an example in which the first sub-block and the second sub-block are both trapezoidal sub-blocks, and it does not show other situations such as the first sub-block and the second sub-block being triangular sub-blocks.
  • the first sub-block adopts the inter-frame prediction mode and the second sub-block adopts the inter-frame prediction mode
  • it can be selected from the conventional merge sub-mode, the triangular prediction sub-mode, the MMVD sub-mode, the affine merge sub-mode, and the ATMVP sub-mode.
  • One sub-mode can be selected as the second sub-mode of the second sub-block from the regular merge sub-mode, the triangular prediction sub-mode, the MMVD sub-mode, the affine merge sub-mode, and the ATMVP sub-mode.
  • the first sub-mode of the first sub-block and the second sub-mode of the second sub-block may be the same.
  • the first sub-mode of the first sub-block and the second sub-mode of the second sub-block are both conventional merge sub-modes, and the target motion information of the first sub-block is different from the target motion information of the second sub-block.
  • the first sub-mode of the first sub-block and the second sub-mode of the second sub-block are both MMVD sub-modes, and the target motion information of the first sub-block is different from the target motion information of the second sub-block, and so on .
  • Embodiment 8 it is assumed that there are two regions in the current block.
  • One region 1 has a strong time domain correlation
  • the other region 2 also has a strong time domain correlation.
  • the reference block and the region corresponding to the region 1 2 The corresponding reference blocks are different and need to correspond to different motion information.
  • the current block is divided into the first sub-block (that is, the sub-block corresponding to region 1) and the second sub-block (that is, the sub-block corresponding to region 2), and the prediction mode information of the first sub-block It is an inter prediction mode, and the prediction mode information of the second sub-block is the inter prediction mode. Since the first sub-block uses the inter-frame prediction mode, and the second sub-block uses the inter-frame prediction mode, the purpose of effectively removing video temporal redundancy can be achieved, and the coding effect can be improved.
  • the current block in order to obtain the predicted value of the first sub-block and the predicted value of the second sub-block, the current block may be divided into a first area, a second area, and a third area.
  • the first area is located in the first sub-block.
  • the second area is located in the second sub-block, the distance between the center of each sub-area in the third area and the dividing line is less than a preset threshold, and the dividing line is determined based on the block dividing information. For example, referring to FIG.
  • the division line determined based on the block division information is from the upper left corner to the lower right corner.
  • the triangle sub-block in the upper right corner is the first sub-block
  • the triangle sub-block in the lower left corner is the second sub-block.
  • the first area is located in the first sub-block
  • the second area is located in the second sub-block
  • every area in the third area is The distance between the center of the sub-regions (such as the sub-blocks shown in the sub-region 1, the sub-region 2, the sub-region 4, the sub-region 6, and the sub-region 7) and the dividing line is less than a preset threshold (which can be configured according to experience).
  • the prediction value corresponding to the first sub-block is obtained according to the first prediction mode information corresponding to the first sub-block
  • the prediction value corresponding to the second sub-block is obtained according to the second prediction mode information corresponding to the second sub-block.
  • the target prediction value corresponding to the first area is obtained according to the first prediction mode information
  • the target prediction value corresponding to the second area is obtained according to the second prediction mode information
  • the second prediction mode information obtains the target prediction value corresponding to the third area.
  • obtaining the target prediction value corresponding to the third region according to the first prediction mode information and/or the second prediction mode information includes: obtaining the target prediction value corresponding to the third region according to the first prediction mode information; or, according to the first prediction mode information Second, the prediction mode information obtains the target prediction value corresponding to the third area; or, obtains the first prediction value corresponding to the third area according to the first prediction mode information, and obtains the second prediction value corresponding to the third area according to the second prediction mode information, The first predicted value and the second predicted value are weighted to obtain the target predicted value corresponding to the third area.
  • the prediction value corresponding to the first sub-block may be obtained according to the first prediction mode information corresponding to the first sub-block.
  • the first prediction mode information corresponding to the first sub-block.
  • the prediction value corresponding to the second sub-block may be obtained according to the second prediction mode information corresponding to the second sub-block.
  • the second prediction mode information corresponding to the second sub-block.
  • the third region (such as subregion 1, subregion 2, subregion 4, subregion 6, and subregion 7), in order to obtain the target predicted value corresponding to the third region, The following way.
  • Manner 1 Obtain the target predicted value corresponding to the third area according to the first prediction mode information.
  • partial area A part of the sub-area in the third area (such as all sub-area 6, sub-area 7, and sub-area 4 in the upper right corner, for convenience of description, will be referred to as partial area A in the following) is located in the first sub-block.
  • the prediction mode information obtains the predicted value corresponding to the first sub-block
  • the predicted value corresponding to the partial area A can be obtained, that is, the predicted value of each pixel in the partial area A.
  • the predicted value corresponding to the partial area A can be The value is called the target predicted value.
  • the remaining areas in the third area (such as all sub-area 1, sub-area 2, and sub-area 4 in the lower left corner, for convenience of description, will be referred to as partial area B in the following) are located in the second sub-block.
  • the prediction mode information obtains the predicted value corresponding to the partial area B, that is, the predicted value of each pixel in the partial area B.
  • the predicted value corresponding to the partial area B may be called the target predicted value.
  • Manner 2 Obtain the target predicted value corresponding to the third area according to the second prediction mode information.
  • a part of area B in the third area (such as all sub-area 1, sub-area 2, and sub-area 4 in the lower left corner) is located in the second sub-block, and the prediction corresponding to the second sub-block is obtained according to the second prediction mode information.
  • the predicted value corresponding to the partial area B can be obtained, that is, the predicted value of each pixel in the partial area B.
  • the predicted value corresponding to the partial area B is called the target predicted value.
  • the remaining area A in the third area (such as all sub-area 6, sub-area 7, sub-area 4 in the upper right corner) is located in the first sub-block, and the prediction value corresponding to partial area A can be obtained according to the second prediction mode information, namely For the predicted value of each pixel in the partial area A, for the convenience of distinguishing, the predicted value corresponding to the partial area A may be called the target predicted value.
  • the target prediction value corresponding to the partial area A according to the second prediction mode information refer to the method of “obtaining the prediction value corresponding to the second sub-block according to the second prediction mode information” for the implementation manner, which will not be repeated here.
  • Manner 3 Obtain the first predicted value corresponding to the third area according to the first prediction mode information (the predicted value of the third area obtained according to the first prediction mode information is called the first predicted value), and obtain according to the second prediction mode information The second predicted value corresponding to the third area (the predicted value of the third area obtained according to the second prediction mode information is called the second predicted value), and the first predicted value and the second predicted value are weighted to obtain the first predicted value Target predicted value corresponding to the three regions.
  • a partial area A in the third area is located in the first sub-block
  • a partial area B in the third area is located in the second sub-block.
  • the second prediction value corresponding to the partial area A can be obtained according to the second prediction mode information, that is, the second prediction value of each pixel in the partial area A.
  • the second prediction mode information that is, the second prediction value of each pixel in the partial area A.
  • the first predicted value of each pixel in the third area (ie, partial area A and partial area B) can be obtained, and the second predicted value of each pixel in the third area can be obtained,
  • the first predicted value and the second predicted value are weighted to obtain the target predicted value corresponding to the third area.
  • the first predicted value of the pixel and the second predicted value of the pixel may be weighted to obtain the target predicted value of the pixel.
  • the weight value of the first predicted value and the weight value of the second predicted value may be the same, or Can be different.
  • the weight value of the first predicted value may be greater than the weight value of the second predicted value; if the pixel is located in the second sub-block, the weight value of the first predicted value may be less than The weight value of the second predicted value; if the pixel is located on the dividing line, the weight value of the first predicted value may be equal to the weight value of the second predicted value.
  • the above is only an example of the size of the weight value, and there is no restriction on this.
  • each sub-region in the third region may be a 1*1 sub-region, that is, a single pixel block, or it may be a N*M sub-region, where N is greater than or equal to 1, and M is greater than or equal to 1.
  • the third region includes a subregion labeled 1, a subregion labeled 2, a subregion labeled 4, a subregion labeled 6, and a subregion labeled 7.
  • the predicted value P1 of sub-region 7 can be determined according to the first prediction mode information, and the predicted value P2 of sub-region 7 can be determined according to the second prediction mode information.
  • the weight value of the value P1 is a
  • the weight value of the predicted value P2 is b
  • the target predicted value of the subregion 7 is: P1*a+P2*b.
  • Sub-region 7 is located in the first sub-block, and the weight value a is greater than the weight value b. Assuming that a is 7/8 and b is 1/8, the target prediction value is: P1*7/8+P2*1/8.
  • the predicted value P1 of sub-region 6 can be determined according to the first prediction mode information, and the predicted value P2 of sub-region 6 can be determined according to the second prediction mode information.
  • the weight value of the value P1 is a
  • the weight value of the predicted value P2 is b
  • the target predicted value of the sub-region 6 is: P1*a+P2*b.
  • the sub-region 6 is located in the first sub-block, and the weight value a is greater than the weight value b.
  • the weight value a of the sub-region 6 may be smaller than the sub-region 7 If a is 6/8 and b is 2/8, the target prediction value is: P1*6/8+P2*2/8.
  • the predicted value P1 of sub-region 4 can be determined according to the first prediction mode information, and the predicted value P2 of sub-region 4 can be determined according to the second prediction mode information.
  • the weight value of the value P1 is a
  • the weight value of the predicted value P2 is b
  • the target predicted value of the subregion 4 is: P1*a+P2*b.
  • Sub-region 4 is located on the dividing line, and the weight value a is equal to the weight value b. Assuming that a is 4/8 and b is 4/8, the target prediction value is: P1*4/8+P2*4/8.
  • the predicted value P1 of sub-region 2 can be determined according to the first prediction mode information, and the predicted value P2 of sub-region 2 can be determined according to the second prediction mode information.
  • the weight value of the value P1 is a
  • the weight value of the predicted value P2 is b
  • the target predicted value of the sub-region 2 is: P1*a+P2*b.
  • Sub-region 2 is located in the second sub-block, and the weight value a is less than the weight value b. Assuming that a is 2/8 and b is 6/8, the target prediction value is: P1*2/8+P2*6/8.
  • the predicted value P1 of sub-region 1 can be determined according to the first prediction mode information, and the predicted value P2 of sub-region 1 can be determined according to the second prediction mode information.
  • the weight value of the value P1 is a
  • the weight value of the predicted value P2 is b
  • the target predicted value of the subregion 1 is: P1*a+P2*b.
  • Sub-region 1 is located in the second sub-block, and the weight value a is less than the weight value b. Since sub-region 1 is closer to the first sub-block than sub-region 2, the weight value a of sub-region 1 is smaller than that of sub-region 1.
  • the weight value a of area 2 assuming that a is 1/8 and b is 7/8, the target prediction value is: P1*1/8+P2*7/8.
  • the sum of the weight value a and the weight value b of each sub-region may be 1. The closer to the first sub-block, the larger the weight value a and the smaller the weight value b. The closer to the second sub-block, the smaller the weight value a and the larger the weight value b.
  • weight value a and weight value b are just an example, and there is no restriction on the weight value a and weight value b.
  • the aforementioned predicted value P1 and predicted value P2 may be brightness predicted values, and the target predicted value may be a brightness target predicted value.
  • the chrominance prediction value P3 of the sub-region can also be determined according to the first prediction mode information, and the chrominance prediction value of the sub-region can be determined according to the second prediction mode information.
  • Value P4 For each sub-region, the chromaticity target predicted value of the sub-region is P3*c+P4*d.
  • the weight value c of subregion 7 is 7/8
  • the weight value d of subregion 7 is 1/8
  • the weight value c of subregion 4 is 4/8
  • the weight value d of subregion 4 is 4/ 8.
  • the weight value c of sub-region 1 is 1/8, and the weight value d of sub-region 1 is 7/8.
  • the above are only examples of the weight value c and the weight value d, and there is no restriction on this.
  • the magnitude relationship of the weight value may also be determined according to the prediction mode information of the neighboring block of the current block. For example, if the prediction mode information of the neighboring block of the current block is the same as the prediction mode information of the first sub-block (or the second sub-block), the corresponding prediction value of the first sub-block (or the second sub-block) can be increased The weight value of.
  • the foregoing weight value that is, the determination method of the weight value a and the weight value b
  • the first sub-block adopts the intra-frame copy prediction mode
  • the second sub-block adopts the intra-frame prediction mode
  • the adjacent blocks of the first sub-block and the second sub-block both adopt the intra-frame copy prediction mode Then the weight value corresponding to the predicted value of the first sub-block can be increased.
  • the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block both adopt the intra-frame prediction mode the weight value corresponding to the predicted value of the second sub-block can be increased.
  • the weight value corresponding to the prediction value of the first sub-block can be increased. If the neighboring block of the first sub-block and the neighboring block of the second sub-block adopt the intra prediction mode and the inter prediction mode, respectively, the weight value corresponding to the prediction value of the second sub-block can be increased. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block respectively adopt the intra-block copy prediction mode and the intra-prediction mode, the weight value can be kept unchanged. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block both adopt the inter-frame prediction mode, the weight value can be kept unchanged. Of course, the above are just a few examples, and there is no restriction on this.
  • the second sub-block adopts the inter-frame prediction mode, and if the adjacent blocks of the first sub-block and the second sub-block both adopt the intra-frame copy prediction mode, Then the weight value corresponding to the predicted value of the first sub-block can be increased. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block both adopt the inter-frame prediction mode, the weight value corresponding to the predicted value of the second sub-block can be increased. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block adopt the intra-block copy prediction mode and the intra-prediction mode, respectively, the weight value corresponding to the prediction value of the first sub-block can be increased.
  • the weight value corresponding to the prediction value of the second sub-block can be increased. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block respectively adopt the intra-block copy prediction mode and the inter-prediction mode, the weight value can be kept unchanged. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block both adopt the intra prediction mode, the weight value can be kept unchanged.
  • the above are just a few examples, and there is no restriction on this.
  • the second sub-block can be increased.
  • the weight value corresponding to the predicted value of a sub-block If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block both adopt the intra-frame prediction mode, the weight value corresponding to the predicted value of the second sub-block can be increased.
  • the weight value corresponding to the prediction value of the first sub-block may be increased. If the neighboring block of the first sub-block and the neighboring block of the second sub-block adopt the intra prediction mode and the intra-block copy prediction mode, respectively, the weight value corresponding to the prediction value of the second sub-block can be increased. If the neighboring blocks of the first sub-block and the neighboring blocks of the second sub-block respectively adopt the inter prediction mode and the intra prediction mode, the weight value can be kept unchanged.
  • the weight value can be kept unchanged.
  • the above are only a few examples of the size of the weight value, and there is no restriction on this.
  • the target prediction value can be obtained by weighting based on the prediction values obtained by the two prediction mode information (ie, the first prediction mode information and the second prediction mode information), or the prediction value obtained by selecting a certain prediction mode information according to a fixed rule
  • the target predicted value will be described below.
  • Case 1 as shown in FIG. 12C, suppose that the current block is divided into a first sub-block and a second sub-block, and the first sub-block and the second sub-block are both triangular sub-blocks.
  • the first prediction value of the sub-region is determined according to the first prediction mode information
  • the first prediction value of the sub-region is determined according to the second prediction mode.
  • the prediction mode information determines the second predicted value of the sub-region, and weights the first predicted value of the sub-region and the second predicted value of the sub-region to obtain the target predicted value of the sub-region.
  • the current block is divided into a first sub-block and a second sub-block, and the first sub-block and the second sub-block are both triangular sub-blocks.
  • the target prediction value of the sub-region can be determined according to the first prediction mode information.
  • the sub-region marked P2 in FIG. 12D is to determine the target prediction value of the sub-region based on the first prediction mode information. value.
  • the target prediction value of the sub-region can be determined according to the second prediction mode information.
  • the sub-region marked P1 in Figure 12D is to determine the target prediction of the sub-region based on the second prediction mode information. value.
  • the current block is divided into a first sub-block and a second sub-block
  • the first sub-block is a triangular sub-block
  • the second sub-block is a pentagonal sub-block.
  • the first prediction value of the sub-region is determined according to the first prediction mode information
  • the second prediction mode information is determined
  • the second predicted value of the subregion is weighted by the first predicted value of the subregion and the second predicted value of the subregion to obtain the target predicted value of the subregion.
  • the current block is divided into a first sub-block and a second sub-block, the first sub-block is a triangular sub-block, and the second sub-block is a pentagonal sub-block.
  • the target prediction value of the sub-region can be determined according to the first prediction mode information.
  • the sub-region marked P2 in Figure 12F determines the target prediction of the sub-region based on the first prediction mode information. value.
  • the target prediction value of the sub-region can be determined according to the second prediction mode information.
  • the sub-region marked as P1 in Figure 12F determines the target prediction of the sub-region based on the second prediction mode information. value.
  • case 1 to case 4 are just examples, not the only process of predicting pixels.
  • the predicted value of the current block may be obtained according to the predicted values respectively corresponding to the at least two sub-blocks.
  • the encoder/decoder can combine the target predicted value of the first region, the target predicted value of the second region, and the target predicted value of the third region to form the predicted value of the current block. This process will not be described in detail. Repeat.
  • Embodiment 9 Refer to Figure 13, which is a schematic flow diagram of the coding and decoding method in the embodiment of this application.
  • the coding and decoding method can be applied to the decoding end or the coding end.
  • the following steps are taken
  • Obtaining the target prediction value of the current block, the target prediction value being used for encoding or decoding of the current block, the method may include the following steps.
  • Step 1301 Obtain the first prediction mode and the second prediction mode corresponding to the current block.
  • Step 1302 Determine the first prediction value corresponding to the current block according to the first prediction mode.
  • Step 1303 Determine the second prediction value corresponding to the current block according to the second prediction mode.
  • Step 1304 Perform weighting processing according to the first predicted value and the second predicted value to obtain the target predicted value of the current block.
  • two prediction modes of the current block can be obtained, the prediction values of the two prediction modes are obtained respectively, and the prediction value of the current block is obtained according to the two prediction values.
  • two prediction modes can be used to respectively perform prediction, which can improve prediction accuracy, improve prediction performance, improve coding performance, and reduce coding residuals.
  • the method of using two prediction modes to perform weighted prediction on the current block in this embodiment can be applied to the above embodiments 1 to 8. That is, the method of using two prediction modes to perform weighted prediction on the current block can be combined with the sub-block-based joint Combination of forecasting methods. For example, the predicted value based on the first sub-block and the predicted value of the second sub-block obtained in Embodiments 1 to 8 may be weighted.
  • step 1301 the decoding end or the encoding end needs to determine whether to start target weighted prediction for the current block. If the target weighted prediction is activated for the current block, the coding and decoding method in the embodiment of the present application can be used. If the target weighted prediction is not activated for the current block, the coding and decoding method of the embodiment of the present application may not be used, and the implementation manner in this case is not limited.
  • the characteristic information of the current block meets a specific condition; if so, it is determined to start the target weighted prediction for the current block. If not, it is determined not to start the target weighted prediction for the current block.
  • the characteristic information may include, but is not limited to, one or any combination of the following: the frame type of the current frame where the current block is located, the size information of the current block, and switch control information.
  • the switch control information may be SPS (sequence level) switch control information, or PPS (picture parameter level) switch control information, or TILE (chip level) switch control information.
  • the frame type of the current frame where the current block is located satisfies certain conditions, including but not limited to: if the frame type of the current frame where the current block is located is a B frame, then determine The frame type meets a specific condition; or, if the frame type of the current frame where the current block is located is an I frame, it is determined that the frame type meets the specific condition.
  • the size information of the current block meets certain conditions, including but not limited to: if the width of the current block is greater than or If it is equal to the first value and the height of the current block is greater than or equal to the second value, it is determined that the size information of the current block meets a specific condition. Or, if the width of the current block is greater than or equal to the third value, the height of the current block is greater than or equal to the fourth value, the width of the current block is less than or equal to the fifth value, and the height of the current block is less than or equal to the sixth value, determine the current block The size information meets certain conditions.
  • the above-mentioned value can be configured according to experience, such as 8, 16, 32, 64, 128, etc., which is not limited.
  • the first value may be 8
  • the second value may be 8
  • the third value may be 8
  • the fourth value may be 8
  • the fifth value may be 64
  • the sixth value may be 64 .
  • the above is only an example, and there is no restriction on this. To sum up, if the width of the current block is greater than or equal to 8, and the height of the current block is greater than or equal to 8, it is determined that the size information of the current block meets a specific condition.
  • the width of the current block is greater than or equal to 8
  • the height of the current block is greater than or equal to 8
  • the width of the current block is less than or equal to 64
  • the height of the current block is less than or equal to 64
  • the switch control information satisfies a specific condition, which may include but is not limited to: if the switch control information is enabled, it is determined that the switch control information satisfies the specific condition.
  • the feature information includes the frame type of the current frame where the current block is located, and the size information of the current block, then the frame type meets a specific condition and the size information meets the specific condition, it is determined that the feature information of the current block meets the specific condition . If the feature information includes the frame type and switch control information of the current frame where the current block is located, then the frame type meets a specific condition and the switch control information meets the specific condition, it is determined that the feature information of the current block meets the specific condition. If the feature information includes the size information and switch control information of the current block, then the size information meets a specific condition and the switch control information meets the specific condition, it is determined that the feature information of the current block meets the specific condition.
  • the feature information includes the frame type of the current frame where the current block is located, the size information of the current block, and switch control information, then the frame type meets a specific condition, the size information meets the specific condition, and the switch control information meets the specific condition. In condition, it is determined that the characteristic information of the current block meets a specific condition.
  • the decoding end or the encoding end obtains the first prediction mode and the second prediction mode corresponding to the current block.
  • the first prediction mode and the second prediction mode may be the same, and the first prediction mode and the second prediction mode may also be different.
  • the first prediction mode may include, but is not limited to, one of the following prediction modes: conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction Mode, affine merge inter prediction mode, ATMVP inter prediction mode.
  • the second prediction mode may include but is not limited to one of the following prediction modes: conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, affine Combine inter-frame prediction mode, ATMVP inter-frame prediction mode.
  • the second prediction mode may be triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, affine combined frame Inter prediction mode, one of ATMVP inter prediction modes.
  • the first prediction mode is triangular inter prediction mode
  • the second prediction mode can be conventional combined inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, affine combined inter prediction Mode, one of the ATMVP inter-frame prediction modes.
  • the second prediction mode can be the conventional combined inter prediction mode, triangular inter prediction mode, intra prediction mode, MMVD inter prediction mode, affine combined inter prediction Mode, one of the ATMVP inter prediction modes.
  • the second prediction mode can be the conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, MMVD inter prediction mode, affine combined inter prediction Mode, one of the ATMVP inter-frame prediction modes.
  • the first prediction mode is MMVD inter prediction mode
  • the second prediction mode can be conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, affine combined inter prediction Mode, one of the ATMVP inter-frame prediction modes.
  • the first prediction mode is the affine combined inter prediction mode
  • the second prediction mode can be the conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction Mode, one of the ATMVP inter-frame prediction modes.
  • the first prediction mode is the ATMVP inter prediction mode
  • the second prediction mode can be the conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, One of the affine merge inter prediction modes.
  • the second prediction mode may be a conventional combined inter prediction mode.
  • the first prediction mode is a triangular inter prediction mode
  • the second prediction mode may be a triangular inter prediction mode.
  • the first prediction mode is an intra block copy prediction mode
  • the second prediction mode may be an intra block copy prediction mode.
  • the first prediction mode is an intra prediction mode
  • the second prediction mode may be an intra prediction mode.
  • the first prediction mode is the MMVD inter prediction mode
  • the second prediction mode may be the MMVD inter prediction mode.
  • the first prediction mode is an affine combined inter prediction mode
  • the second prediction mode may be an affine combined inter prediction mode.
  • the first prediction mode is the ATMVP inter prediction mode
  • the second prediction mode may be the ATMVP inter prediction mode.
  • the determination process of the first prediction value is related to the first prediction mode.
  • the encoding end/decoding end determines the predicted value of the current block.
  • the determination process of the second prediction value is related to the second prediction mode.
  • the specific determination process please refer to the above-mentioned embodiment, which will not be described in detail. It is only in the above-mentioned embodiment that the prediction values of two sub-blocks are determined, and this embodiment Among them, the encoding end/decoding end determines the predicted value of the current block.
  • the process of determining the first prediction value corresponding to the current block according to the first prediction mode and determining the second prediction value corresponding to the current block according to the second prediction mode may include Do as follows.
  • a motion information candidate list of the conventional combined inter prediction mode can be constructed for the current block.
  • candidate motion information such as motion vectors and reference frames
  • Information such as spatial candidate motion information, temporal candidate motion information, historical motion information, default motion information, etc.
  • a motion information candidate list of the triangular inter prediction mode is constructed for the current block.
  • the motion information candidate list includes multiple candidate motion information (such as one-way motion information).
  • the construction process of the information candidate list is not restricted. Divide the current block into a first triangle sub-block and a second triangle sub-block, select one candidate motion information from the motion information candidate list as the target motion information of the first triangle sub-block, and select another candidate from the motion information candidate list
  • the motion information is used as the target motion information of the second triangle sub-block, and the target motion information of the first triangle sub-block is different from the target motion information of the second triangle sub-block.
  • the prediction value of the second triangle sub-block obtains the first prediction value corresponding to the current block, and this process will not be repeated.
  • a block vector candidate list is constructed for the current block.
  • the block vector candidate list includes multiple candidate block vectors.
  • the candidate block vectors in the block vector candidate list include but are not limited to: the current block The block vector of the neighboring block in the spatial domain, the historical block vector in the HMVP list corresponding to the current block, the default block vector, etc., there is no restriction on the construction process of this block vector candidate list. Then, a candidate block vector is selected from the block vector candidate list as the target block vector of the current block, and the first predictive value corresponding to the current block is obtained according to the target block vector. This process will not be repeated.
  • the target intra sub-prediction mode of the current block is obtained, and the first prediction value corresponding to the current block is obtained according to the target intra sub-prediction mode. This process will not be repeated.
  • the target intra sub-prediction mode of the current block the following manner may be adopted: the designated intra sub-prediction mode is determined as the target intra sub-prediction mode of the current block.
  • the intra-sub-prediction mode candidate list includes multiple candidate intra sub-prediction modes, such as Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc., which is not limited;
  • a candidate intra sub prediction mode is selected from the intra sub prediction mode candidate list as the target intra sub prediction mode of the current block.
  • a motion information candidate list of the MMVD inter prediction mode can be constructed for the current block.
  • the motion information candidate list includes multiple candidate motion information, and the motion information candidate list includes a reference to the original motion information.
  • the motion information obtained after offsetting does not limit the construction process of this motion information candidate list.
  • the original motion information may include but is not limited to: motion information of the spatial neighboring block of the current block, motion information of the time domain block of the current block, default motion information, etc. The original motion information is not limited.
  • the motion information of multiple spatial neighboring blocks such as motion information C1-motion information C4, and move the motion information C1, the motion information C2, and the motion information C3' obtained by offsetting the motion information C3, and the motion information
  • the motion information C4' obtained after the offset of C4 is added to the motion information candidate list.
  • a candidate motion information is selected from the motion information candidate list as the target motion information of the current block, and the first prediction value corresponding to the current block is obtained according to the target motion information, and this process will not be repeated.
  • a motion information candidate list of the affine merge inter prediction mode may be constructed for the current block.
  • the motion information candidate list includes multiple candidate motion information, and the motion information candidate list Including but not limited to: motion information constructed based on the motion information of the spatial neighboring block of the current block, motion information constructed based on the motion information of the time domain block of the current block, motion information constructed using fixed rules, default motion information, etc.
  • the construction process of this motion information candidate list is not limited.
  • a candidate motion information is selected from the motion information candidate list as the target motion information of the current block.
  • the affine merge inter prediction mode is a sub-block-based prediction technology. The motion information of each sub-block can be derived through the motion parameter model.
  • the target motion information for the current block For each sub-block, the motion information of each sub-block of the current block can be derived based on the target motion information and the motion parameter model. For each sub-block, the motion information of the sub-block can be used to determine the predicted value of the sub-block. Further, based on the predicted value of each sub-block, the first predicted value corresponding to the current block can be obtained.
  • the reference frame corresponding to the current block is determined by specifying the motion information, and the reference block corresponding to the current block is obtained from the reference frame, and then the current block is determined according to the motion information of the reference block For example, the motion information of the reference block is changed by expansion and contraction, and the changed motion information is used as the target motion information of the current block.
  • the first prediction value corresponding to the current block is obtained according to the target motion information, and this process will not be repeated.
  • the second prediction mode is the conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, affine combined inter prediction mode or ATMVP inter prediction mode
  • the process of obtaining the second predicted value corresponding to the current block refer to the above-mentioned embodiment, which will not be repeated here.
  • Case 2 Assuming that the first prediction mode is the same as the second prediction mode, the process of determining the first prediction value corresponding to the current block according to the first prediction mode and determining the second prediction value corresponding to the current block according to the second prediction mode may include Do as follows.
  • a motion information candidate list of the conventional combined inter prediction mode can be constructed for the current block, and the motion information candidate list includes multiple candidate motion information. Select one candidate motion information from the motion information candidate list as the first target motion information of the current block, and select another candidate motion information from the motion information candidate list as the second target motion information of the current block, according to the first target motion information The first prediction value corresponding to the current block is obtained, and the second prediction value corresponding to the current block is obtained according to the second target motion information.
  • a block vector candidate list can be constructed for the current block.
  • the block vector candidate list includes multiple candidate block vectors, and the candidate block vectors in the block vector candidate list Including but not limited to: the block vector of the spatial neighboring block of the current block, the historical block vector in the HMVP list corresponding to the current block, the default block vector, etc. Select a candidate block vector from the block vector candidate list as the first target block vector of the current block, and select another candidate block vector from the block vector candidate list as the second target block vector of the current block, and according to the first target block The vector obtains the first prediction value corresponding to the current block, and the second prediction value corresponding to the current block is obtained according to the second target block vector.
  • the first prediction mode and the second prediction mode are both intra prediction modes
  • the first target intra sub prediction mode and the second target intra sub prediction mode of the current block can be obtained, and the current target intra sub prediction mode is obtained according to the first target intra sub prediction mode.
  • the first prediction value corresponding to the block is obtained, and the second prediction value corresponding to the current block is obtained according to the second target intra-frame sub-prediction mode.
  • the method for acquiring the first target intra sub-prediction mode and the second target intra sub-prediction mode may include, but is not limited to, the following: determine the specified first intra sub-prediction mode as the first target intra sub-prediction mode of the current block, and The designated second intra sub-prediction mode is determined as the second target intra sub-prediction mode of the current block.
  • construct an intra sub-prediction mode candidate list for the current block may include multiple candidate intra sub-prediction modes, such as Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc.; from intra sub-prediction Select a candidate intra sub-prediction mode from the mode candidate list as the first target intra sub-prediction mode of the current block, and select another candidate intra sub-prediction mode from the intra sub-prediction mode candidate list as the second target intra sub-prediction of the current block mode.
  • candidate intra sub-prediction modes such as Planar mode, DC mode, vertical angle mode, horizontal angle mode, etc.
  • the prediction mode is determined as the first target intra sub-prediction mode of the current block, and the intra sub-prediction mode of the second neighboring block is determined as the second target intra sub-prediction mode of the current block; if the intra sub-prediction mode of the first neighboring block is If the mode is the same as the intra sub-prediction mode of the second neighboring block, the intra sub-prediction mode of the first neighboring block is determined as the first target intra sub-prediction mode of the current block, and will be different from the first target intra sub-prediction mode The other intra sub-prediction mode of is determined as the second target intra sub-prediction mode of the current block.
  • the above methods are just a few examples, and there is no restriction on this.
  • the above is only an example.
  • the method for determining the prediction value of the current block is different, which will not be repeated here.
  • the first prediction mode and the second prediction mode are affine combined inter prediction modes
  • the first prediction mode and the second prediction mode are MMVD inter prediction modes, etc.
  • the prediction value determination process refers to the above example.
  • the encoding end/decoding end may perform weighting processing according to the first predicted value and the second predicted value to obtain the target predicted value of the current block. For example, weighting is performed according to the first predicted value, the first weight value corresponding to the first predicted value, the second predicted value, and the second weight value corresponding to the second predicted value to obtain the target predicted value of the current block.
  • the first weight value and the second weight value may be different or the same. There is no restriction on the method for determining the first weight value and the second weight value.
  • the magnitude relationship of the weight value may be determined according to the prediction mode information of the neighboring block of the current block. For example, if the prediction mode information of the neighboring block of the current block is the same as the first prediction mode, the first weight value may be increased. If the prediction mode information of the neighboring block of the current block is the same as the second prediction mode, the second weight value may be increased.
  • the first prediction mode is the regular merge mode and the second prediction mode is the intra prediction mode
  • the prediction mode information of the neighboring block of the current block is the regular merge mode
  • the first weight value is increased
  • the prediction mode information of the neighboring block is the intra prediction mode
  • the second weight value is added; of course, the above are only a few examples, and there is no restriction on this.
  • an embodiment of the application also proposes an encoding and decoding device, which is applied to the encoding end or the decoding end.
  • FIG. 14 which is a structural diagram of the device, including: an acquisition module 1401, configured to obtain block division information of the current block when it is determined to initiate sub-block-based joint prediction for the current block; a processing module 1402, configured to divide the current block into at least two sub-blocks according to the block division information; The obtaining module 1401 is further configured to obtain prediction mode information corresponding to each of the at least two sub-blocks; obtain prediction values corresponding to the at least two sub-blocks respectively according to the prediction mode information; The corresponding predicted value obtains the predicted value of the current block.
  • the at least two sub-blocks include a first sub-block and a second sub-block; wherein the prediction mode information of the first sub-block is an intra-block copy prediction mode; the prediction mode of the second sub-block The information is an intra prediction mode, or an inter prediction mode, or an intra block copy prediction mode.
  • the obtaining module 1401 obtains the prediction mode according to the prediction mode information.
  • the respective predicted values of the at least two sub-blocks are specifically used to: construct a block vector candidate list, the block vector candidate list includes a plurality of candidate block vectors; select a candidate block vector from the block vector candidate list as the The first target block vector of the first sub-block, another candidate block vector is selected from the block vector candidate list as the second target block vector of the second sub-block; The predicted value corresponding to the first sub-block; and the predicted value corresponding to the second sub-block is obtained according to the second target block vector.
  • the obtaining module 1401 obtains the at least one according to the prediction mode information.
  • the prediction values corresponding to the two sub-blocks are specifically used to: construct a block vector candidate list, the block vector candidate list includes a plurality of candidate block vectors; select a candidate block vector from the block vector candidate list as the first The target block vector of the sub-block; construct a motion information candidate list, the motion information candidate list including at least one candidate motion information; select one candidate motion information from the motion information candidate list as the target motion information of the second sub-block Obtain the predicted value corresponding to the first sub-block according to the target block vector; obtain the predicted value corresponding to the second sub-block according to the target motion information.
  • the obtaining module 1401 obtains the at least one according to the prediction mode information.
  • the prediction values corresponding to the two sub-blocks are specifically used to: construct a block vector candidate list, the block vector candidate list includes a plurality of candidate block vectors; select a candidate block vector from the block vector candidate list as the first The target block vector of the sub-block; obtain the target intra sub-prediction mode of the second sub-block; obtain the prediction value corresponding to the first sub-block according to the target block vector; obtain the prediction value corresponding to the first sub-block according to the target intra sub-prediction mode The predicted value corresponding to the second sub-block.
  • the at least two sub-blocks include a first sub-block and a second sub-block; the prediction mode information of the first sub-block is an intra-frame prediction mode, and the prediction mode information of the second sub-block is an intra-frame prediction mode, so
  • the obtaining module 1401 is specifically configured to obtain the prediction values corresponding to the at least two sub-blocks according to the prediction mode information: obtain the first target intra sub-prediction mode of the first sub-block and the prediction value of the second sub-block A second target intra sub-prediction mode, where the first target intra sub-prediction mode is different from the second target intra sub-prediction mode; the prediction corresponding to the first sub-block is obtained according to the first target intra sub-prediction mode Value; obtaining the predicted value corresponding to the second sub-block according to the second target intra-frame sub-prediction mode.
  • the acquiring module 1401 acquires the first target intra sub-prediction mode of the first sub-block and the second target intra sub-prediction mode of the second sub-block, it is specifically configured to: determine the designated first intra sub-prediction mode as The first target intra sub-prediction mode of the first sub-block, and the designated second intra sub-prediction mode is determined as the second target intra sub-prediction mode of the second sub-block; or, an intra sub-prediction mode candidate list is constructed
  • the intra sub-prediction mode candidate list includes a plurality of candidate intra sub-prediction modes; one candidate intra sub-prediction mode is selected from the intra sub-prediction mode candidate list as the first target intra sub-prediction mode of the first sub-block , And select another candidate intra sub-prediction mode from the intra-sub-prediction mode candidate list as the second target intra-sub-prediction mode of the second sub-block; or, if the first neighboring block of the first sub-block is The intra sub prediction mode is different from the intra sub prediction mode of the second neighboring block of the
  • the at least two sub-blocks include a first sub-block and a second sub-block; the prediction mode information of the first sub-block is an inter prediction mode, and the prediction mode information of the second sub-block is an intra prediction mode, so
  • the obtaining module 1401 obtains the prediction values corresponding to the at least two sub-blocks according to the prediction mode information, and is specifically used to: construct a motion information candidate list, the motion information candidate list including at least one candidate motion information; In the information candidate list, select one candidate motion information as the target motion information of the first sub-block; obtain the target intra-frame sub-prediction mode of the second sub-block; obtain corresponding to the first sub-block according to the target motion information The predicted value of; obtain the predicted value corresponding to the second sub-block according to the target intra-frame sub-prediction mode.
  • the obtaining module 1401 obtains the target intra sub-prediction mode of the second sub-block, it is specifically used to: determine the specified intra sub-prediction mode as the target intra sub-prediction mode of the second sub-block; or, construct intra sub-prediction A mode candidate list, where the intra sub-prediction mode candidate list includes a plurality of candidate intra sub-prediction modes; one candidate intra sub-prediction mode is selected from the intra sub-prediction mode candidate list as the target intra sub-prediction of the second sub-block Mode; or, determining the intra sub-prediction mode of the neighboring block of the second sub-block as the target intra sub-prediction mode of the second sub-block.
  • the at least two sub-blocks include a first sub-block and a second sub-block; the prediction mode information of the first sub-block is an inter-frame prediction mode, and the prediction mode information of the second sub-block is an inter-frame prediction mode, so
  • the acquiring module 1401 acquires the prediction values corresponding to the at least two sub-blocks according to the prediction mode information, it is specifically used to: construct the first motion information candidate list of the first sub-mode in the inter prediction mode, and the first motion information
  • the candidate list includes at least one candidate motion information; one candidate motion information is selected from the first motion information candidate list as the target motion information of the first sub-block; the second sub-mode of the second sub-mode in the inter prediction mode is constructed A motion information candidate list, the second motion information candidate list includes at least one candidate motion information; one candidate motion information is selected from the second motion information candidate list as the target motion information of the second sub-block; the first sub-block The mode is different from the second sub-mode; the predicted value corresponding to the first sub-block is obtained according to
  • the first sub-mode is one of the following sub-modes: conventional merge sub-mode, MMVD sub-mode, affine merge sub-mode, ATMVP sub-mode;
  • the second sub-mode is One of the following sub-modes: conventional merge sub-mode, MMVD sub-mode, affine merge sub-mode, ATMVP sub-mode.
  • the shape of the first sub-block is the same as the shape of the second sub-block; or, the shape of the first sub-block is different from the shape of the second sub-block.
  • the first sub-block is one of the following sub-blocks: triangular sub-block, ladder-shaped sub-block, and pentagonal sub-block;
  • the second sub-block is one of the following sub-blocks: triangular sub-block, ladder-shaped sub-block, Pentagonal sub-block.
  • the block vector candidate list includes a block vector candidate list in the MMVD sub-mode.
  • the motion information candidate list when the second sub-block or the first sub-block adopts the regular merge sub-mode in the inter prediction mode, includes the motion information candidate list of the regular merge sub-mode; or, When the second sub-block or the first sub-block adopts the MMVD sub-mode in the inter prediction mode, the motion information candidate list includes the motion information candidate list of the MMVD sub-mode; or, in the second sub-block When the block or the first sub-block adopts the affine merge sub-mode in the inter prediction mode, the motion information candidate list includes the motion information candidate list of the affine merge sub-mode; or, in the second sub-block or When the first sub-block adopts the ATMVP sub-mode in the inter prediction mode, the motion information candidate list includes a motion information candidate list of the ATMVP sub-mode.
  • the at least two sub-blocks include a first sub-block and a second sub-block, the first sub-block corresponds to the first prediction mode information, the second sub-block corresponds to the second prediction mode information, and the acquisition module 1401
  • the prediction mode information obtains the prediction values corresponding to the at least two sub-blocks, it is specifically used to: divide the current block into a first area, a second area, and a third area; wherein, the first area is located in the In the first sub-block, the second area is located in the second sub-block, the distance between the center of each sub-area in the third area and the dividing line is less than a preset threshold, and the dividing line is used for Divide the current block into the first sub-block and the second sub-block and determine based on the block division information; obtain the target prediction value corresponding to the first region according to the first prediction mode information Obtain the target prediction value corresponding to the second region according to the second prediction mode information; obtain the target prediction value corresponding to the third region according to the first prediction mode information
  • the obtaining module 1401 obtains the target prediction value corresponding to the third region according to the first prediction mode information and/or the second prediction mode information, it is specifically configured to: obtain the corresponding third region according to the first prediction mode information. Or, obtain the target prediction value corresponding to the third area according to the second prediction mode information; or obtain the first prediction value corresponding to the third area according to the first prediction mode information, Obtain the second prediction value corresponding to the third region according to the second prediction mode information, and perform weighting processing on the first prediction value and the second prediction value to obtain the target prediction corresponding to the third region value.
  • an embodiment of the present application also proposes an encoding and decoding device, which is applied to the encoding end or the decoding end. See FIG. 15, which is a structural diagram of the device, including: an acquisition module 1501, configured to obtain a first prediction mode and a second prediction mode corresponding to the current block when it is determined that the current block starts target weighted prediction; a determining module 1502, configured to determine the current block corresponding to the current block according to the first prediction mode Determine the second predicted value corresponding to the current block according to the second prediction mode; processing module 1503, configured to perform weighting processing according to the first predicted value and the second predicted value to obtain The target predicted value of the current block, and the target predicted value is used for encoding or decoding of the current block.
  • an acquisition module 1501 configured to obtain a first prediction mode and a second prediction mode corresponding to the current block when it is determined that the current block starts target weighted prediction
  • a determining module 1502 configured to determine the current block corresponding to the current block according to the first prediction mode Determine the second
  • the first prediction mode is one of the following prediction modes: conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, intra prediction mode, MMVD inter prediction mode, Affine combined inter prediction mode, ATMVP inter prediction mode;
  • the second prediction mode is one of the following prediction modes: conventional combined inter prediction mode, triangular inter prediction mode, intra block copy prediction mode, frame Intra prediction mode, MMVD inter prediction mode, affine merge inter prediction mode, ATMVP inter prediction mode.
  • the decoding end device includes: a processor 1601 and a machine-readable storage medium 1602, wherein: the machine-readable storage medium 1602 stores machine executable instructions that can be executed by the processor 1601; the processor 1601 is used for The machine executable instructions are executed to implement the methods disclosed in the above examples of this application.
  • processor 1601 is used to execute machine executable instructions to implement the following steps:
  • the first prediction mode and the second prediction mode corresponding to the current block When determining that the current block starts target weighted prediction, obtain the first prediction mode and the second prediction mode corresponding to the current block; determine the first prediction value corresponding to the current block according to the first prediction mode; The prediction mode determines the second predicted value corresponding to the current block; weighting is performed according to the first predicted value and the second predicted value to obtain the target predicted value of the current block, and the target predicted value is used for all Describe the decoding of the current block.
  • the encoding end device includes: a processor 1701 and a machine-readable storage medium 1702, wherein: the machine-readable storage medium 1702 stores machine executable instructions that can be executed by the processor 1701; the processor 1701 is used for The machine executable instructions are executed to implement the methods disclosed in the above examples of this application.
  • processor 1701 is used to execute machine executable instructions to implement the following steps:
  • the first prediction mode and the second prediction mode corresponding to the current block When determining that the current block starts target weighted prediction, obtain the first prediction mode and the second prediction mode corresponding to the current block; determine the first prediction value corresponding to the current block according to the first prediction mode; The prediction mode determines the second predicted value corresponding to the current block; weighting is performed according to the first predicted value and the second predicted value to obtain the target predicted value of the current block, and the target predicted value is used for all Describe the encoding of the current block.
  • an embodiment of the application also provides a machine-readable storage medium.
  • the machine-readable storage medium stores a number of computer instructions. When the computer instructions are executed by a processor, the present invention can be realized. Apply the method disclosed in the above example.
  • the above-mentioned 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 may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard drives), solid state drives, and 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 game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
  • the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in the same one or more software and/or hardware.
  • the embodiments of the present application can be provided as methods, systems, or computer program products.
  • This application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.
  • the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • 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.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operating steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so that the computer or other programmable equipment is executed
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a 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

L'invention concerne un procédé et un dispositif de codage et de décodage, ainsi qu'un appareil associé. Le procédé consiste : lors de la détermination de l'exécution d'une opération de prédiction conjointe fondée sur des sous-blocs par rapport à un bloc en cours, à acquérir des informations de division de bloc du bloc en cours ; à diviser, en fonction des informations de division de bloc, le bloc en cours en au moins deux sous-blocs ; à acquérir des informations de mode de prédiction correspondant respectivement auxdits sous-blocs ; à acquérir, en fonction des informations de mode de prédiction, des valeurs prédites correspondant respectivement auxdits sous-blocs ; à acquérir une valeur prédite du bloc en cours en fonction des valeurs prédites correspondant respectivement auxdits sous-blocs.
PCT/CN2020/103326 2019-07-23 2020-07-21 Procédé, dispositif de codage et de décodage et appareil associé WO2021013153A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910668356.5 2019-07-23
CN201910668356.5A CN112291558B (zh) 2019-07-23 2019-07-23 一种编解码方法、装置及其设备

Publications (1)

Publication Number Publication Date
WO2021013153A1 true WO2021013153A1 (fr) 2021-01-28

Family

ID=74192832

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103326 WO2021013153A1 (fr) 2019-07-23 2020-07-21 Procédé, dispositif de codage et de décodage et appareil associé

Country Status (2)

Country Link
CN (2) CN112291558B (fr)
WO (1) WO2021013153A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002463B (zh) * 2022-07-15 2023-01-13 深圳传音控股股份有限公司 图像处理方法、智能终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150222906A1 (en) * 2014-02-04 2015-08-06 Panasonic Intellectual Property Management Co., Ltd. Video coding apparatus and video coding method
CN106101705A (zh) * 2009-02-23 2016-11-09 韩国科学技术院 用于对分割块进行编码的视频编码方法、用于对分割块进行解码的视频解码方法以及用于实施上述方法的记录媒体
WO2018237295A1 (fr) * 2017-06-23 2018-12-27 Qualcomm Incorporated Combinaison d'inter-prédiction et d'intra-prédiction dans un codage vidéo
CN109417641A (zh) * 2016-07-05 2019-03-01 株式会社Kt 用于处理视频信号的方法和装置
WO2019098758A1 (fr) * 2017-11-16 2019-05-23 한국전자통신연구원 Procédé et dispositif de codage/décodage d'images et flux binaire stockant un support d'enregistrement

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100716999B1 (ko) * 2005-06-03 2007-05-10 삼성전자주식회사 영상의 대칭성을 이용한 인트라 예측 방법, 이를 이용한영상의 복호화, 부호화 방법 및 장치
KR100750128B1 (ko) * 2005-09-06 2007-08-21 삼성전자주식회사 영상의 인트라 예측 부호화, 복호화 방법 및 장치
CN101415121B (zh) * 2007-10-15 2010-09-29 华为技术有限公司 一种自适应的帧预测的方法及装置
KR101379188B1 (ko) * 2010-05-17 2014-04-18 에스케이 텔레콤주식회사 인트라 블록 및 인터 블록이 혼합된 코딩블록을 이용하는 영상 부호화/복호화 장치 및 그 방법
WO2015133866A1 (fr) * 2014-03-06 2015-09-11 삼성전자 주식회사 Procédé de décodage de vidéo inter-couche et appareil associé effectuant une prédiction par sous-blocs, et procédé de codage de vidéo inter-couche et appareil associé effectuant une prédiction par sous-blocs
CN115914625A (zh) * 2016-08-01 2023-04-04 韩国电子通信研究院 图像编码/解码方法
CN117041570A (zh) * 2016-11-29 2023-11-10 韩国电子通信研究院 图像编码/解码方法和用于存储比特流的记录介质
CN117041558A (zh) * 2016-12-07 2023-11-10 株式会社Kt 对视频进行解码或编码的方法和存储视频数据的设备
JP2019017002A (ja) * 2017-07-05 2019-01-31 財團法人工業技術研究院Industrial Technology Research Institute 映像符号化方法、映像復号方法、映像符号器及び映像復号器
US10567772B2 (en) * 2017-07-11 2020-02-18 Google Llc Sub8×8 block processing
EP3484148A1 (fr) * 2017-11-09 2019-05-15 Thomson Licensing Ordre de balayage automatisé de blocs subdivisés
CN112565787B (zh) * 2018-12-28 2022-05-31 杭州海康威视数字技术股份有限公司 一种编解码方法及其设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101705A (zh) * 2009-02-23 2016-11-09 韩国科学技术院 用于对分割块进行编码的视频编码方法、用于对分割块进行解码的视频解码方法以及用于实施上述方法的记录媒体
US20150222906A1 (en) * 2014-02-04 2015-08-06 Panasonic Intellectual Property Management Co., Ltd. Video coding apparatus and video coding method
CN109417641A (zh) * 2016-07-05 2019-03-01 株式会社Kt 用于处理视频信号的方法和装置
WO2018237295A1 (fr) * 2017-06-23 2018-12-27 Qualcomm Incorporated Combinaison d'inter-prédiction et d'intra-prédiction dans un codage vidéo
WO2019098758A1 (fr) * 2017-11-16 2019-05-23 한국전자통신연구원 Procédé et dispositif de codage/décodage d'images et flux binaire stockant un support d'enregistrement

Also Published As

Publication number Publication date
CN112291558A (zh) 2021-01-29
CN112291558B (zh) 2023-06-27
CN116405697A (zh) 2023-07-07

Similar Documents

Publication Publication Date Title
WO2020134968A1 (fr) Procédé de codage et de décodage et dispositif correspondant
CN112543323B (zh) 一种编解码方法、装置及其设备
WO2021190515A1 (fr) Procédé et appareil de codage et de décodage, et dispositif associé
WO2020259372A1 (fr) Procédé et appareil de codage et décodage et dispositif associé
WO2021244496A1 (fr) Appareil et procédé de codage et décodage, et dispositif associé
WO2021013153A1 (fr) Procédé, dispositif de codage et de décodage et appareil associé
CN112449181B (zh) 一种编解码方法、装置及其设备
WO2020177747A1 (fr) Procédé et appareil de codage et de décodage, dispositif de fin de codage et dispositif de fin de décodage
WO2020244425A1 (fr) Procédé et appareil de codage et de décodage, et dispositifs associés

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: 20843120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20843120

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20843120

Country of ref document: EP

Kind code of ref document: A1