WO2020135615A1 - Procédé et appareil de décodage d'images vidéo - Google Patents

Procédé et appareil de décodage d'images vidéo Download PDF

Info

Publication number
WO2020135615A1
WO2020135615A1 PCT/CN2019/128793 CN2019128793W WO2020135615A1 WO 2020135615 A1 WO2020135615 A1 WO 2020135615A1 CN 2019128793 W CN2019128793 W CN 2019128793W WO 2020135615 A1 WO2020135615 A1 WO 2020135615A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
processed
prediction
current image
image block
Prior art date
Application number
PCT/CN2019/128793
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 WO2020135615A1 publication Critical patent/WO2020135615A1/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/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/124Quantisation
    • 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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/567Motion estimation based on 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/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/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Definitions

  • the embodiments of the present application relate to the field of video encoding and decoding, and in particular to a video image decoding method and device.
  • Video signals have become the most important way for people to obtain information in their daily lives due to their intuitive and efficient advantages. Due to the large amount of data contained in the video signal, a large amount of transmission bandwidth and storage space are required. In order to effectively transmit and store video signals, it is necessary to compress and encode video signals. Video compression technology is increasingly becoming an indispensable key technology in the field of video applications.
  • video compression coding is to use the correlation between the video sequence in the space domain, time domain and codeword to encode, so as to remove the redundancy between the video sequences as much as possible.
  • video compression coding is realized mainly through the steps of prediction (including intra prediction and inter prediction), transformation, quantization, and entropy coding according to the hybrid video coding framework of image blocks.
  • inter prediction can be used in combination with intra prediction, which is called intra prediction mode.
  • intra prediction mode In practical applications, you can choose between inter prediction, intra prediction, and intra prediction.
  • One of the prediction modes performs encoding/decoding.
  • the sub-block fusion mode is introduced in the inter prediction
  • the triangle PU method is introduced in the intra prediction.
  • the sub-block fusion mode and the intra prediction mode are not compatible.
  • Embodiments of the present application provide a video image decoding method and device, which can achieve compatibility of multiple prediction modes, thereby improving decoding efficiency.
  • an embodiment of the present application provides a video image decoding method, including:
  • the first identifier is used to indicate whether the current block to be processed adopts the sub-block prediction mode for inter prediction
  • the second flag is used to indicate whether the current block to be processed uses the intra inter prediction mode
  • the above condition for parsing the second identifier may further include:
  • parsing of the first logo and parsing of the second logo are independent processes.
  • the order of parsing the first logo and parsing the second logo is not limited.
  • the third identifier is used to indicate the intra prediction mode adopted by the current image block to be processed.
  • the third identifier may be a combination of one or more identifiers in the intra prediction mode. In other words, parsing the third identifier may include parsing the third identifier.
  • the third one flag when the third one flag is true, the third second flag is further parsed. By analyzing the third one flag and the third second flag, the intra prediction mode adopted by the current image block to be processed can be determined.
  • the above condition for parsing the third identifier may further include:
  • the width of the current image block to be processed is less than or equal to 2 times its height or the height of the current image block to be processed is less than or equal to 2 times its width .
  • an embodiment of the present application provides a video image decoding method further including: when the first identifier indicates that inter prediction is not performed in the sub-block prediction mode for the current image block to be processed , Parsing a fourth identifier from the code stream; when the fourth identifier indicates that the inter prediction of the current image block to be processed adopts a triangular prediction unit method, according to the triangular prediction unit method, the current identifier The image block to be processed performs inter prediction to obtain the inter prediction block of the current image block to be processed.
  • the inter-prediction blocks used for weighted summation are obtained by using the triangular prediction unit, and are no longer obtained by using the sub-block prediction mode.
  • the above fourth flag is used to indicate whether the inter prediction of the current image block to be processed adopts the triangle prediction unit (triangle PU) mode.
  • the third flag is used to indicate whether the current image block to be inter predicted allows triangle PU mode.
  • the fourth identifier may be represented by the syntax elements skip_triangle_flag[x0][y0] or triangle_flag[x0][y0] or merge_triangle_flag[x0][y0].
  • the analysis of the fourth identification condition may include:
  • the first identifier needs to be parsed first.
  • the slave code stream is executed. Parse the fourth logo.
  • the above-mentioned weighted summation of the inter prediction block and the intra prediction block includes weighting and summing the pixel values of the inter prediction block and the co-located pixel values of the intra prediction block in sequence.
  • the fourth flag indicates that inter prediction of the current image block to be processed does not use the triangular prediction unit mode
  • the current image block to be processed meets the first condition
  • Parsing a fifth identifier from the code stream includes at least: the first identifier indicates that inter prediction of the current image block to be processed does not use a sub-block prediction mode; according to the fifth Identify the indicated first inter prediction mode, perform inter prediction on the current image block to be processed, to obtain an inter prediction block of the current image block to be processed.
  • the inter prediction block used for weighted summation is obtained by using the first inter prediction mode, and is no longer obtained by using the triangular prediction unit.
  • the first condition may further include: the length of the candidate list is greater than 1, for example, MaxNumMergeCand>1.
  • the fifth identifier is used to indicate the first inter prediction mode.
  • the first inter prediction mode may be a merge mode or an AMVP mode, or other prediction modes different from the above sub-block prediction mode and triangle PU mode.
  • the fifth identifier may be an index of target motion information in a candidate list (including a candidate motion information multi-group of control points), for example, the fifth identifier may be merge_ixd.
  • the triangular prediction unit method is designed in the grammatical structure, and the triangular prediction unit method is allowed.
  • the fourth logo needs to be parsed (of course, when parsing the fourth logo,
  • the first indicator needs to be parsed first, and the first indicator indicates that inter-prediction is not used for the current image block to be processed.
  • the fourth indicator indicates that inter-prediction is not used for the current image block to be processed, triangular prediction is not used.
  • the fifth identifier is parsed from the code stream.
  • a fifth identifier is parsed from the code stream, and the first condition includes at least: the first identifier indicates The inter prediction of the current image block to be processed does not adopt the sub-block prediction mode; according to the first inter prediction mode indicated by the fifth identifier, perform inter prediction on the current image block to be processed to obtain the current Process inter prediction blocks of image blocks.
  • the first condition for parsing the fifth identifier from the code stream may further include that the length of the candidate list is greater than 1, for example, MaxNumMergeCand>1.
  • the design of the grammatical elements does not consider the triangle PU method (that is, the triangle PU method is not designed), or does not satisfy the permission of the triangle PU method.
  • the fifth flag still needs to be parsed, which causes decoding redundancy.
  • the fifth flag is parsed, otherwise the first flag is not parsed Five signs, so you can avoid decoding redundancy.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • any seed block prediction mode can be selected from the above sub-block prediction modes to perform inter prediction on the current image block to be processed, which is not limited in this embodiment of the present application.
  • the sub-block prediction mode is the sub-block fusion mode, and when the first identifier indicates that inter prediction is performed on the current image block to be processed, the sub-block prediction mode is used.
  • the method further includes: parsing a sixth identifier from the code stream, where the sixth identifier is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode.
  • the above-mentioned first identifier indicates that the sub-block prediction mode is adopted for inter prediction of the current image block to be processed, and a sixth identifier needs to be parsed.
  • the sixth identifier may be corresponding to the target candidate motion information in the sub-block fusion mode The index in the candidate list.
  • the above condition for parsing the sixth identifier from the code stream may include: the first identifier indicates that the inter prediction of the current image block to be processed adopts the sub-block prediction mode, and the candidate list corresponding to the sub-block fusion mode
  • the length of is greater than 1, for example, MaxNumSubblockMergeCand>1, that is, if the first indicator indicates that the current image block to be inter-frame predicted adopts the sub-block prediction mode, it is determined whether the length of the candidate list is greater than 1, and the length of the candidate list is greater than At 1 o'clock, the sixth mark is parsed.
  • the first identifier indicates that the sub-block prediction mode is adopted for the inter prediction of the current image block to be processed, and the length of the above candidate list is equal to 1, there is no need to parse the sixth identifier (also It is understood that the sixth identifier does not exist). At this time, one candidate motion information in the candidate list is directly used as the target candidate motion information.
  • Performing inter prediction on the current image block to be processed according to the sub-block prediction mode to obtain the inter prediction block of the current image block to be processed includes: in the sub-block fusion mode, according to The target candidate motion information performs inter prediction on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • performing inter prediction on the current image block to be processed according to the triangular prediction unit mode to obtain an inter prediction block of the current image block to be processed includes: The first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current image block to be processed and the second unidirectional candidate motion information list corresponding to the second triangular prediction unit of the current image block to be processed; A first one-way candidate motion information list, determining target motion information of the first triangular prediction unit, and determining a prediction value of the first triangular prediction unit according to target motion information of the first triangular prediction unit; The second unidirectional candidate motion information list, determining target motion information of the second triangular prediction unit, and determining the predicted value of the second triangular prediction unit based on the target motion information of the second triangular prediction unit; and Adaptively weighting the hypotenuse region of the current image block to be processed according to the prediction value of the first triangle prediction unit and the prediction value of the second triangle prediction unit to obtain the frame of the current image block
  • the first set of weighting coefficients are: ⁇ 7/8,6/8,4/8,2/8,1/8 ⁇ and ⁇ 7/8,4/8,1/8 ⁇ , which are used for brightness points and colors, respectively Degree point.
  • the second set of weighting coefficients ⁇ 7/8, 6/8, 5/8, 4/8, 3/8, 2/8, 1/8 ⁇ and ⁇ 6/8, 4/8, 2/8 ⁇ respectively Used for luma and chroma points.
  • one of the above two weighting coefficients can be used for encoding/decoding.
  • the second group of weights is selected Coefficient, otherwise the first set of weighting coefficients is used.
  • the weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed includes: The image block satisfies one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, the height of the current image block to be processed is less than M pixels, and the current image block to be processed When the width is less than N pixels, the current weight is determined based on the sum of the product of the intra-weighted coefficient and all pixel values of the intra-predicted block and the product of the inter-weighted coefficient and all pixel values of the inter-predicted block The prediction block of the image block to be processed, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are positive integers, and M and N are the same or different.
  • M may be 4, and N may also be 4.
  • M and N may also be other positive integers, which are not limited in the embodiments of the present application.
  • the weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed includes: The image block satisfies one or more of the following conditions: the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than or equal to N pixels; if the frame If the intra prediction mode is a horizontal prediction mode, based on the product of the intra-weighted coefficients in the i-th weighted coefficient pair and all pixel values corresponding to the i-th partition of the intra-predicted block, and the i-th weighted coefficient pair The sum of the product of the inter-frame weighting coefficient in and the pixel values corresponding to the i-th partition of the inter-prediction block to determine the predicted value of the i-th partition of the image block to be processed, thereby obtaining the current to-be-processed
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • the height of the i-th partition is the same as the height of the current image block to be processed, which means that the n partitions are divided into n vertically divided partitions, that is, when the intra prediction mode is a horizontal prediction mode, The intra prediction block and the inter prediction block are divided into n partitions in a vertical manner.
  • the width of the jth partition is the same as the width of the current image block to be processed, which means that the m partitions are divided into m horizontal partitions, that is, when the intra prediction mode is the vertical prediction mode, the intra The prediction block and the inter prediction block are divided into m partitions respectively in a horizontal manner.
  • n may be 4, that is, the intra prediction block and the inter prediction block respectively include 4 partitions.
  • n may also be other values, which is not limited in this embodiment of the present application.
  • m may be 4, that is, the intra prediction block and the inter prediction block respectively include 4 partitions.
  • the value of m may also be other values, which is not limited in this embodiment of the present application.
  • the size of the n partitions may be the same.
  • the intra prediction block and the inter prediction block include four partitions of the same size.
  • the size of the n partitions may be different.
  • the embodiments of the present application are not limited.
  • the size of the m partitions may be the same.
  • the intra prediction block and the inter prediction block include four partitions of the same size.
  • the size of the m partitions may be different. This embodiment of the present application Not limited.
  • an embodiment of the present application provides a video image decoding method, the method includes: parsing a code stream to obtain identification information, where the identification information includes a first identification, a second identification, and a third identification, the first The identifier is used to indicate whether to use the sub-block prediction mode for the inter prediction of the current image block to be processed; the second flag is used to indicate that the current image block to be processed adopts the intra inter prediction mode, and the third identifier is used To indicate the intra-prediction mode used by the current image block to be processed; when the first identifier indicates that inter-prediction is to be performed for the current image block to use the sub-block prediction mode, according to the sub-block prediction mode The prediction mode performs inter prediction on the current image block to be processed to obtain an inter prediction block of the current image block to be processed; and according to the intra prediction mode indicated by the third identifier, the current image block to be processed Performing intra prediction to obtain an intra prediction block of the current image block to be processed; and performing weighted summ
  • the identifier information further includes a fourth identifier, the fourth The identifier is used to indicate whether the inter prediction of the current image block to be processed adopts the triangular prediction unit method; when the fourth identifier indicates that the inter prediction of the current image block to be processed adopts the triangular prediction unit method, according to In the triangular prediction unit mode, inter prediction is performed on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the identification information further includes a fifth identification, which is used to indicate a first inter prediction mode used for inter prediction of the current image block to be processed, and the first condition includes at least: the first The indicator indicates that the inter prediction of the current image block to be processed does not use the sub-block prediction mode; the video image decoding method provided in this embodiment of the present application further includes: according to the first inter prediction mode indicated by the fifth identifier, The current image block to be processed performs inter prediction to obtain an inter prediction block of the current image block to be processed.
  • the identification information further includes a fifth identification
  • the fifth identification is used to instruct the current image block to be processed
  • the first condition includes at least: the first identifier indicates that inter prediction is not performed on the current image block to be processed, and a sub-block prediction mode is not used; an embodiment of the present application provides
  • the video image decoding method further includes: performing inter prediction on the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier, to obtain an inter prediction block of the current image block to be processed.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • the sub-block prediction mode is a sub-block fusion mode
  • the The identification information further includes a sixth identification, which is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode.
  • performing inter prediction on the current image block to be processed according to the triangular prediction unit mode to obtain an inter prediction block of the current image block to be processed includes: The first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current image block to be processed and the second unidirectional candidate motion information list corresponding to the second triangular prediction unit of the current image block to be processed; A first one-way candidate motion information list, determining target motion information of the first triangular prediction unit, and determining a prediction value of the first triangular prediction unit according to target motion information of the first triangular prediction unit; The second unidirectional candidate motion information list, determining target motion information of the second triangular prediction unit, and determining the predicted value of the second triangular prediction unit based on the target motion information of the second triangular prediction unit; and Adaptively weighting the hypotenuse region of the current image block to be processed according to the prediction value of the first triangle prediction unit and the prediction value of the second triangle prediction unit to obtain the frame of the current image block
  • the weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed includes: The image block satisfies one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, the height of the current image block to be processed is less than M pixels, and the current image block to be processed When the width is less than N pixels, the sum of the product of the intra-weighting coefficient and all pixel values of the intra-prediction block and the inter-weighting coefficient and all pixel values of the inter-frame prediction are determined as the current pending Processing the prediction block of the image block, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are both positive integers, and M and N are the same or different.
  • the weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed includes:
  • the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than or equal to N pixels
  • the intra prediction mode is a horizontal prediction mode
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • an embodiment of the present application provides a video image decoding method.
  • the method includes: parsing a code stream to obtain identification information, where the identification information includes a first identification, a second identification, and a third identification.
  • the first The identifier is used to indicate the sub-block prediction mode adopted by the current image block to be processed
  • the second identifier is used to indicate that the current image block to be processed adopts the intra-frame prediction mode
  • the third identifier is used to indicate the The intra prediction mode adopted by the current image block to be processed; performing inter prediction on the current image block to be processed according to the sub-block inter prediction mode indicated by the first identifier to obtain the current image block to be processed Inter prediction block; according to the intra prediction mode indicated by the third identifier, perform intra prediction on the current image block to be processed to obtain an intra prediction block of the current image block to be processed; for the inter frame
  • the prediction block and the intra prediction block are weighted and summed to obtain the prediction block of the current image block to be processed.
  • the first identifier indicates the sub-block prediction mode adopted by the current image block to be processed, that is, it can be understood that the first identifier has only one value, and specifically indicates a sub-block prediction mode, such as a sub-block fusion mode.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • an embodiment of the present application provides a video image decoding device, including several functional units for implementing any one of the methods of the first aspect.
  • the video image decoding device includes an entropy decoding unit and an inter-frame Prediction unit and inter prediction unit.
  • the entropy decoding unit is used to parse the first identifier from the code stream; the entropy decoding unit is also used to parse the second identifier from the code stream; the entropy decoding unit is also used to When the flag indicates that the current image block to be processed adopts the intra-frame prediction mode, a third flag is parsed from the code stream, and the third flag is used to indicate the intra-frame prediction used by the current image block to be processed
  • the inter prediction unit is used to interpolate the current block to be processed according to the sub-block prediction mode when the first identifier indicates that the current block to be processed is inter-predicted Performing inter prediction to obtain an inter prediction block of the current to-be-processed image block; the intra prediction unit is used to perform a frame on the current to-be-processed image block according to the intra prediction mode indicated by the third identifier Intra prediction, to obtain an intra prediction block of the current image block to be processed; the inter prediction unit is also used to perform weighted summ
  • the entropy decoding unit is further configured to remove the code stream from the code stream when the first identifier indicates that inter prediction is not performed for the current image block to be processed. Parsing the fourth identification; the inter prediction unit is also used to, when the fourth identification indicates that the inter prediction of the current image block to be processed adopts the triangular prediction unit method, according to the triangular prediction unit method, Performing inter prediction on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the entropy decoding unit is further used when the fourth flag indicates that inter prediction of the current image block to be processed does not use the triangular prediction unit method, and the current When the processed image block satisfies the first condition, the fifth identifier is parsed from the code stream.
  • the first condition at least includes: the first identifier indicates that inter prediction is not performed on the current image block to be processed without using a sub-block Prediction mode; the inter prediction unit is further configured to perform inter prediction on the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier to obtain a frame of the current image block to be processed Inter prediction block.
  • the entropy decoding unit is further configured to parse a fifth identifier from the code stream when the current image block to be processed meets a first condition.
  • the first condition includes at least: The first identifier indicates that inter-prediction is not performed for the current image block to be processed.
  • the inter-prediction unit is further configured to use the first inter-prediction mode indicated by the fifth identifier.
  • the current image block to be processed performs inter prediction to obtain an inter prediction block of the current image block to be processed.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • the sub-block prediction mode is the sub-block fusion mode, and when the first identifier indicates that the sub-block prediction mode is adopted for inter prediction of the current image block to be processed;
  • the entropy decoding unit is also used to parse a sixth identifier from the code stream, the sixth identifier is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode; the inter prediction unit Specifically, in the sub-block fusion mode, according to the target candidate motion information, performing inter prediction on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the inter prediction unit is specifically configured to: construct a first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current to-be-processed image block and a third corresponding to the second triangular prediction unit of the current to-be-processed image block Two unidirectional candidate motion information lists; according to the first unidirectional candidate motion information list, target motion information of the first triangular prediction unit is determined, and based on target motion information of the first triangular prediction unit, the The prediction value of the first triangular prediction unit; according to the second unidirectional candidate motion information list, the target motion information of the second triangular prediction unit is determined, and based on the target motion information of the second triangular prediction unit, the The predicted value of the second triangular prediction unit; adaptively weighting the hypotenuse region of the current image block to be processed according to
  • the inter prediction The unit is specifically used when the current image block to be processed meets one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, and the height of the current image block to be processed is less than M Pixels, when the width of the current image block to be processed is less than N pixels, based on the product of the intra-weighting coefficient and all pixel values of the intra-prediction block and the inter-weighting coefficient and all pixels of the inter-prediction block The sum of the products of the values determines the prediction block of the current image block to be processed, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are positive integers, and M and N are the same or different.
  • the inter prediction The unit is specifically used when the current image block to be processed meets one or more of the following conditions: the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than Or equal to N pixels; if the intra-prediction mode is a horizontal prediction mode, based on the intra-weighted coefficients in the i-th weighted coefficient pair and all pixel values corresponding to the i-th partition of the intra-predicted block The product of and the product of the inter-frame weighting coefficients in the i-th weighting coefficient pair and all pixel values corresponding to the i-th partition of the inter-prediction block to determine the i-th partition of the image block to be processed The predicted value of the current image block to be processed, wherein the height of the i-th partition is the same as the height
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • an embodiment of the present application provides a video image decoding device, including several functional units for implementing any method of the second aspect.
  • the video image decoding device may include: an entropy decoding unit, an inter prediction unit, and an intra prediction unit; the entropy decoding unit is used to parse the code stream to obtain identification information, and the identification information includes the first An identifier, a second identifier, and a third identifier, where the first identifier is used to indicate whether to use sub-block prediction mode for the inter prediction of the current image block to be processed; the second identifier is used to indicate the current image block to be processed Intra-frame inter-prediction mode is used, and the third flag is used to indicate the intra-frame prediction mode used by the current image block to be processed; the inter-frame prediction unit is used when the first flag indicates the current prediction mode.
  • inter prediction is performed on the current image block to be processed according to the sub-block prediction mode to obtain an inter prediction block of the current image block to be processed
  • the intra prediction unit is used to perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain an intra prediction block of the current image block to be processed;
  • the inter prediction unit is also used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed.
  • the identifier information further includes a fourth identifier, the fourth The identifier is used to indicate whether the inter prediction for the current image block to be processed adopts the triangular prediction unit method; the inter prediction unit is also used when the fourth identifier indicates to inter frame the current image block to be processed.
  • a triangular prediction unit method is used for prediction, according to the triangular prediction unit method, inter prediction is performed on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the identification information further includes a fifth identification, which is used to indicate a first inter prediction mode used for inter prediction of the current image block to be processed, and the first condition includes at least: the first The indicator indicates that the inter prediction for the current image block to be processed does not adopt a sub-block prediction mode; the inter prediction unit is further configured to check the current target according to the first inter prediction mode indicated by the fifth identifier The processed image block performs inter prediction to obtain the inter prediction block of the current image block to be processed.
  • the identification information further includes a fifth identification, and the fifth identification is used to instruct the current image block to be processed
  • the first inter prediction mode used in inter prediction the first condition at least includes: the first identifier indicates that inter prediction is not performed on the current image block to be processed, and the sub block prediction mode is not used; the inter prediction The unit is further configured to perform inter prediction on the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier, to obtain an inter prediction block of the current image block to be processed.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • the sub-block prediction mode is a sub-block fusion mode
  • the The identification information further includes a sixth identification, which is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode.
  • the inter prediction unit is specifically configured to: construct a first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current to-be-processed image block and a third corresponding to the second triangular prediction unit of the current to-be-processed image block Two unidirectional candidate motion information lists; according to the first unidirectional candidate motion information list, target motion information of the first triangular prediction unit is determined, and based on target motion information of the first triangular prediction unit, the The prediction value of the first triangular prediction unit; according to the second unidirectional candidate motion information list, the target motion information of the second triangular prediction unit is determined, and based on the target motion information of the second triangular prediction unit, the The prediction value of the second triangular prediction unit; and adaptively weighting the hypotenuse region of the current image block to be processed according
  • the inter prediction The unit is specifically used when the current image block to be processed meets one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, and the height of the current image block to be processed is less than M Pixels, when the width of the current image block to be processed is less than N pixels, the product of the intra-weighting coefficient and all pixel values of the intra-prediction block and the inter-weighting coefficient and all pixels of the inter-frame prediction are fast The sum of the values is determined to be the prediction block of the current image block to be processed, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are positive integers, and M and N are the same or different.
  • the inter prediction The unit is specifically used when the current image block to be processed meets one or more of the following conditions: the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than Or equal to N pixels; if the intra-prediction mode is a horizontal prediction mode, then the intra-weighted coefficients in the i-th weighted coefficient pair and all pixel values corresponding to the i-th partition of the intra-predicted block The product of and the product of the inter-frame weighting coefficients in the i-th weighting coefficient pair and all pixel values corresponding to the i-th partition of the inter-prediction block is determined as the i-th of the image block to be processed The prediction value of the partition, thereby obtaining the prediction block of the current image block to be processed, wherein the height of the i
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • an embodiment of the present application provides a video image decoding device, including several functional units for implementing any one of the methods of the first aspect.
  • the video image decoding device includes an entropy decoding unit and an inter-frame Prediction unit and inter prediction unit.
  • the entropy decoding unit is used to parse the code stream to obtain identification information.
  • the identification information includes a first identification, a second identification, and a third identification.
  • the first identification is used to indicate the current image block to be processed.
  • the sub-block prediction mode, the second identifier is used to indicate that the current image block to be processed adopts the intra inter prediction mode; the third identifier is used to indicate the intra prediction mode used by the current image block to be processed;
  • the inter prediction unit is configured to perform inter prediction on the current to-be-processed image block according to the sub-block inter prediction mode indicated by the first identifier, to obtain an inter-prediction block of the current to-be-processed image block;
  • the intra prediction unit is configured to perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain an intra prediction block of the current image block to be processed;
  • the inter prediction unit is also used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • an embodiment of the present application provides an apparatus for decoding video data.
  • the apparatus includes:
  • Memory used to store video data in the form of code stream
  • Video decoder for decoding the first identifier from the code stream; and parsing the second identifier from the code stream; when the second identifier indicates that the current image block to be processed adopts the intra prediction mode , Parse a third identifier from the code stream, the third identifier is used to indicate the intra prediction mode used by the current image block to be processed; when the first identifier indicates to frame the current image block to be processed
  • the sub-block prediction mode is used for inter prediction
  • the sub-block prediction mode perform inter prediction on the current image block to be processed to obtain an inter prediction block of the current image block to be processed
  • the third identifier Indicated intra prediction mode, performing intra prediction on the current image block to be processed to obtain an intra prediction block of the current image block to be processed; weighting the inter prediction block and the intra prediction block Sum up to obtain the prediction block of the current image block to be processed.
  • an embodiment of the present application provides an apparatus for decoding video data.
  • the apparatus includes:
  • Memory used to store video data in the form of code stream
  • the video decoder is used to parse out the identification information from the code stream.
  • the identification information includes a first identification, a second identification, and a third identification.
  • the first identification is used to indicate the inter prediction of the current image block to be processed Whether to use the sub-block prediction mode;
  • the second flag is used to indicate that the current image block to be processed uses the intra-frame prediction mode, and
  • the third flag is used to indicate the intra frame used by the current image block to be processed Prediction mode; when the first flag indicates that inter prediction is performed on the current to-be-processed image block using the sub-block prediction mode, performing inter prediction on the current to-be-processed image block according to the sub-block prediction mode To obtain an inter prediction block of the current image block to be processed; perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier to obtain a frame of the current image block to be processed An intra prediction block; and performing weighted summation of the inter prediction block and the intra prediction block to obtain
  • an embodiment of the present application provides an apparatus for decoding video data.
  • the apparatus includes:
  • Memory used to store video data in the form of code stream
  • the video decoder is used to parse out the identification information from the code stream.
  • the identification information includes a first identification, a second identification, and a third identification.
  • the first identification is used to indicate the current image block to be processed.
  • the second identifier is used to indicate that the current image block to be processed adopts the intra prediction mode;
  • the third identifier is used to indicate the intra prediction mode used by the current image block to be processed;
  • the sub-block inter prediction mode indicated by the first identifier performing inter prediction on the current to-be-processed image block to obtain an inter prediction block of the current to-be-processed image block; according to the frame indicated by the third identifier
  • In the intra prediction mode perform intra prediction on the current image block to be processed to obtain an intra prediction block of the current image block to be processed; perform weighted summation on the inter prediction block and the intra prediction block, Obtain the prediction block of the current image block to be processed.
  • an embodiment of the present application provides a decoding device, including: a nonvolatile memory and a processor coupled to each other, and the processor calls program codes stored in the memory to perform the first aspect or the second aspect Part or all of the steps of any method of the aspect.
  • an embodiment of the present application provides a computer-readable storage medium that stores program code, where the program code includes any one for performing the first aspect or the second aspect Instructions for some or all steps of this method.
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on a computer, causes the computer to perform part or all of the steps of any method of the first aspect or the second aspect .
  • the video decoding apparatus can parse the identifier indicating the prediction mode of the sub-block (the above-mentioned first identifier) and the identifier of the inter prediction mode (the above-mentioned second identifier).
  • the first indicator indicates that the sub-block fusion mode is used for the current image block to be processed, and the sub-block prediction mode is used to perform inter prediction on the current image block to obtain an inter prediction block; and the second indicator indicates the current image to be processed
  • the identifier of the intra prediction mode (the third identifier above) is parsed, and according to the intra prediction mode indicated by the third identifier, the current image block to be processed is intra predicted to obtain the intra frame Prediction block; weighted summation of the intra prediction block and the inter prediction block to obtain the inter prediction block of the current image block to be processed.
  • the sub-block prediction mode can be applied to intra inter prediction In the method, compatibility of multiple prediction modes can be achieved, thereby improving decoding efficiency.
  • FIG. 1A is a block diagram of an example of a video encoding and decoding system 10 for implementing embodiments of the present application;
  • FIG. 1B is a block diagram of an example of a video decoding system 40 for implementing embodiments of the present application
  • FIG. 2 is a block diagram of an example structure of an encoder 20 for implementing an embodiment of the present application
  • FIG. 3 is a block diagram of an example structure of a decoder 30 for implementing an embodiment of the present application
  • FIG. 4 is a block diagram of an example of a video decoding device 400 for implementing an embodiment of the present application
  • FIG. 5 is a block diagram of another example of an encoding device or a decoding device used to implement an embodiment of the present application
  • FIG. 6 is a schematic diagram of spatial and temporal candidate blocks for realizing the image block to be processed in the embodiment of the present application
  • FIG. 7 is a schematic diagram of a control point used to implement the current image block to be processed in the embodiment of the present application.
  • FIG. 8 is a schematic diagram of neighboring image blocks used to implement the current image block to be processed in the embodiment of the present application.
  • FIG. 9 is a schematic diagram 1 of neighboring image blocks used to implement the control point of the embodiment of the present application.
  • FIG. 10 is a second schematic diagram of neighboring image blocks used to implement a control point according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a division method of a triangular prediction unit for implementing an embodiment of the present application.
  • FIG. 12 is a schematic diagram of weighting calculation of the hypotenuse region in the triangular prediction unit mode according to an embodiment of the present application.
  • FIG. 13 is a schematic flowchart 1 of a video image decoding method for implementing an embodiment of the present application
  • FIG. 14 is a schematic diagram of the structure of an inter prediction block for implementing a triangular prediction unit mode according to an embodiment of the present application
  • 15 is a schematic diagram of partitioning of an inter prediction block in a sub-block prediction mode according to an embodiment of the present application.
  • 16 is a schematic diagram of partitioning of inter prediction blocks in a triangular prediction unit mode according to an embodiment of the present application.
  • 17 is a second schematic flowchart of a video image decoding method for implementing an embodiment of the present application.
  • FIG. 18 is a third schematic flowchart of a video image decoding method for implementing an embodiment of the present application.
  • 19 is a fourth schematic flowchart of a video image decoding method for implementing an embodiment of the present application.
  • 20 is a schematic flowchart 5 of a video image decoding method for implementing an embodiment of the present application
  • 21 is a structural block diagram 1 for implementing a video image decoding device according to an embodiment of the present application.
  • FIG. 22 is a second structural block diagram of a video image decoding device for implementing an embodiment of the present application.
  • the corresponding device may contain one or more units such as functional units to perform the one or more method steps described (eg, one unit performs one or more steps , Or multiple units, each of which performs one or more of multiple steps), even if such one or more units are not explicitly described or illustrated in the drawings.
  • the corresponding method may include a step to perform the functionality of one or more units (eg, one step executes one or more units Functionality, or multiple steps, each of which performs the functionality of one or more of the multiple units), even if such one or more steps are not explicitly described or illustrated in the drawings.
  • the features of the exemplary embodiments and/or aspects described herein may be combined with each other.
  • Video coding generally refers to processing a sequence of pictures that form a video or video sequence.
  • picture In the field of video coding, the terms “picture”, “frame” or “image” may be used as synonyms.
  • Video coding as used herein means video coding or video decoding.
  • Video encoding is performed on the source side, and usually includes processing (eg, by compressing) the original video picture to reduce the amount of data required to represent the video picture, thereby storing and/or transmitting more efficiently.
  • Video decoding is performed on the destination side and usually involves inverse processing relative to the encoder to reconstruct the video picture.
  • the “encoding” of video pictures involved in the embodiments should be understood as referring to the “encoding” or “decoding” of video sequences.
  • the combination of the encoding part and the decoding part is also called codec (encoding and decoding).
  • the video sequence includes a series of pictures, which are further divided into slices, and the slices are further divided into blocks, which may also be called image blocks.
  • Video coding is performed in units of blocks.
  • the concept of blocks is further expanded.
  • macroblock macroblock, MB
  • HEVC high-efficiency video coding
  • basic concepts such as coding unit (CU), prediction unit (PU) and transform unit (TU) are adopted.
  • CU coding unit
  • PU prediction unit
  • TU transform unit
  • the CU can be divided into smaller CUs according to the quadtree, and the smaller CU can be further divided to form a quadtree structure.
  • the CU is the basic unit for dividing and coding the coded image.
  • PU can correspond to the prediction block and is the basic unit of predictive coding.
  • the CU is further divided into multiple PUs according to the division mode.
  • the TU can correspond to the transform block and is the basic unit for transforming the prediction residual.
  • PU or TU they all belong to the concept of block (or image block) in essence.
  • the CTU is split into multiple CUs by using a quadtree structure represented as a coding tree.
  • a decision is made at the CU level whether to use inter-picture (temporal) or intra-picture (spatial) prediction to encode picture regions.
  • Each CU can be further split into one, two, or four PUs according to the PU split type.
  • the same prediction process is applied within a PU, and related information is transmitted to the decoder on the basis of the PU.
  • the CU may be divided into transform units (TU) according to other quadtree structures similar to the coding tree used for the CU.
  • quad-tree and binary-tree (Quad-tree and binary tree, QTBT) split frames are used to split the coding blocks.
  • the CU may have a square or rectangular shape.
  • the prediction block of the image block needs to be obtained, and for the same image block, the method of obtaining the prediction block of the image block when encoding the video stream and the image block when decoding the video stream
  • the method of predicting blocks is the same.
  • the method of determining the prediction block may include intra prediction and inter prediction.
  • the image blocks to be encoded or decoded (collectively referred to as current image blocks to be processed, which may be a CU) are used as examples to illustrate the concepts of intra prediction and inter prediction.
  • Intra prediction refers to the current to-be-processed image block, which can be reconstructed in the video frame (referred to as the first video frame) where the current to-be-processed image block is located to predict the current to-be-processed image block, usually according to The reconstruction information of the image block adjacent to the current image block to be processed (that is, adjacent to the spatial domain) (the coding unit adjacent to the current image block to be processed has been encoded) determines the prediction information of the current image block to be processed, that is, prediction The pixel value of the current image block to be processed.
  • Inter prediction refers to the video frame (may be called the second video) adjacent to the video frame (may be called the first video frame) where the current image block is to be encoded when encoding the current image block to be processed Frame) determine the prediction information of the current image block to be processed (that is, use the second video frame as the reference frame of the first video frame, and then determine the image block most similar to the current image block to be processed in this second video frame (it can be called Is a reference block), and the reference block is used as prediction information of the current image block to be processed).
  • inter prediction includes prediction modes such as forward prediction, backward prediction, and bidirectional prediction.
  • forward prediction refers to selecting a reference frame (which may be called a forward reference frame) from the forward reference frame set to obtain the reference block of the current image block to be processed, and using the pixel value of the reference block as the current to be processed
  • backward prediction refers to selecting a reference frame ((may be referred to as a backward reference frame)) from the set of backward reference frames to obtain the reference block of the current image block to be processed, and the reference block
  • the pixel value of is used as the pixel value of the current image block to be processed
  • bidirectional prediction refers to selecting a reference frame from the forward reference frame set and the backward reference frame set to obtain the reference block of the current image block to be processed, to obtain two references Block, and then determine the pixel value of the current image block to be processed according to the pixel values corresponding to the two reference blocks.
  • the prediction method in the video codec may further include intra-frame prediction.
  • Intra-frame prediction refers to a prediction method that combines intra-frame prediction and inter-frame prediction.
  • the specific process of the above inter prediction method is: determining the prediction value of the current image block to be processed (including all pixel values of the current image block to be processed) according to the motion information of the current image block to be processed, and the motion information of the current image block to be processed Including prediction direction indication information, one or more motion vectors pointing to the reference block, and indication information of the video frame where the reference block is located (here, the video frame where the reference block is located is the reference frame), where the prediction direction indication information is used to Indicates the prediction direction of inter prediction, for example, the prediction direction includes forward prediction, backward prediction, or bidirectional prediction; the motion vector is used to indicate the displacement of the reference block relative to the current image block to be processed; the indication information of the video frame where the reference block is located is used In order to indicate the position of the reference block in the video stream, that is, to which video frame the reference block is located, the indication information of the video frame where the reference block is located may be the index of the reference frame.
  • the motion vector is an important parameter in the inter
  • the image block to be encoded in the current encoded image may be referred to as the current image block to be processed, for example, in encoding, the image block currently being encoded; in decoding, the current block being decoded Image block.
  • the decoded image block used to predict the current image block to be processed in the reference image is called the reference block of the current image block to be processed, that is, the reference block is an image block that provides a reference signal for the current image block to be processed, where , The reference signal represents the pixel value within the image block.
  • a block in the reference image that provides a prediction signal for the current image block to be processed may be referred to as a prediction block, where the prediction signal represents a pixel value or a sample value or a sample signal within the prediction block.
  • the best reference block is found. This best reference block will provide a prediction for the current image block to be processed.
  • This image block block is called the prediction block of the current image block to be processed.
  • the original video picture can be reconstructed, that is, the reconstructed video picture has the same quality as the original video picture (assuming no transmission loss or other data loss during storage or transmission).
  • further compression is performed by, for example, quantization to reduce the amount of data required to represent the video picture, but the decoder side cannot fully reconstruct the video picture, that is, the quality of the reconstructed video picture is better than the original video picture. The quality is lower or worse.
  • Several video coding standards of H.261 belong to "lossy hybrid video codec” (ie, combining spatial and temporal prediction in the sample domain with 2D transform coding for applying quantization in the transform domain).
  • Each picture of a video sequence is usually divided into non-overlapping block sets, which are usually encoded at the block level.
  • the encoder side usually processes the encoded video at the block (video block) level.
  • the prediction block is generated by spatial (intra-picture) prediction and temporal (inter-picture) prediction.
  • the encoder duplicates the decoder processing loop so that the encoder and decoder generate the same prediction (eg, intra prediction and inter prediction) and/or reconstruction for processing, ie, encoding subsequent blocks.
  • FIG. 1A exemplarily shows a schematic block diagram of a video encoding and decoding system 10 applied in an embodiment of the present application.
  • the video encoding and decoding system 10 may include a source device 12 and a destination device 14, the source device 12 generates encoded video data, and therefore, the source device 12 may be referred to as a video encoding device.
  • the destination device 14 may decode the encoded video data generated by the source device 12, and therefore, the destination device 14 may be referred to as a video decoding device.
  • Various implementations of source device 12, destination device 14, or both may include one or more processors and memory coupled to the one or more processors.
  • Source device 12 and destination device 14 may include various devices, including desktop computers, mobile computing devices, notebook (eg, laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, etc. Devices, televisions, cameras, display devices, digital media players, video game consoles, in-vehicle computers, wireless communication devices, or the like.
  • FIG. 1A illustrates the source device 12 and the destination device 14 as separate devices
  • device embodiments may also include the functionality of the source device 12 and the destination device 14 or both, ie the source device 12 or the corresponding Functionality of the destination device 14 or the corresponding functionality.
  • the same hardware and/or software may be used, or separate hardware and/or software, or any combination thereof may be used to implement the source device 12 or corresponding functionality and the destination device 14 or corresponding functionality .
  • the communication connection between the source device 12 and the destination device 14 may be via a link 13, and the destination device 14 may receive the encoded video data from the source device 12 via the link 13.
  • Link 13 may include one or more media or devices capable of moving encoded video data from source device 12 to destination device 14.
  • link 13 may include one or more communication media that enable source device 12 to transmit encoded video data directly to destination device 14 in real time.
  • the source device 12 may modulate the encoded video data according to a communication standard (eg, a wireless communication protocol), and may transmit the modulated video data to the destination device 14.
  • the one or more communication media may include wireless and/or wired communication media, such as a radio frequency (RF) spectrum or one or more physical transmission lines.
  • RF radio frequency
  • the one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (eg, the Internet).
  • the one or more communication media may include routers, switches, base stations, or other devices that facilitate communication from source device 12 to destination device 14.
  • the source device 12 includes an encoder 20.
  • the source device 12 may further include a picture source 16, a picture pre-processor 18, and a communication interface 22.
  • the encoder 20, the picture source 16, the picture preprocessor 18, and the communication interface 22 may be hardware components in the source device 12, or may be software programs in the source device 12. They are described as follows:
  • Picture source 16 which can include or can be any type of picture capture device, for example to capture real-world pictures, and/or any type of picture or comment (for screen content encoding, some text on the screen is also considered to be encoded Part of the picture or image) generation device, for example, a computer graphics processor for generating computer animation pictures, or for acquiring and/or providing real-world pictures, computer animation pictures (for example, screen content, virtual reality, VR) pictures) in any category of equipment, and/or any combination thereof (eg, augmented reality (AR) pictures).
  • the picture source 16 may be a camera for capturing pictures or a memory for storing pictures.
  • the picture source 16 may also include any type of (internal or external) interface that stores previously captured or generated pictures and/or acquires or receives pictures.
  • the picture source 16 When the picture source 16 is a camera, the picture source 16 may be, for example, a local or integrated camera integrated in the source device; when the picture source 16 is a memory, the picture source 16 may be a local or integrated, for example, integrated in the source device Memory.
  • the interface When the picture source 16 includes an interface, the interface may be, for example, an external interface that receives pictures from an external video source.
  • the external video source is, for example, an external picture capture device, such as a camera, an external memory, or an external picture generation device.
  • the external picture generation device for example It is an external computer graphics processor, computer or server.
  • the interface may be any type of interface according to any proprietary or standardized interface protocol, such as a wired or wireless interface, an optical interface.
  • the picture can be regarded as a two-dimensional array or matrix of picture elements.
  • the pixels in the array can also be called sampling points.
  • the number of sampling points in the horizontal and vertical directions (or axes) of the array or picture defines the size and/or resolution of the picture.
  • three color components are usually used, that is, a picture can be represented or contain three sampling arrays.
  • the picture includes corresponding red, green, and blue sampling arrays.
  • each pixel is usually expressed in a luminance/chrominance format or color space. For example, for a picture in YUV format, it includes the luminance component indicated by Y (sometimes also indicated by L) and the two indicated by U and V. Chroma components.
  • the luma component Y represents luminance or gray-scale horizontal intensity (for example, both are the same in gray-scale pictures), and the two chroma components U and V represent chroma or color information components.
  • the picture in the YUV format includes a luminance sampling array of luminance sampling values (Y), and two chrominance sampling arrays of chrominance values (U and V). RGB format pictures can be converted or transformed into YUV format and vice versa, this process is also called color transformation or conversion. If the picture is black and white, the picture may include only the brightness sampling array.
  • the picture transmitted from the picture source 16 to the picture processor may also be referred to as original picture data 17.
  • the picture pre-processor 18 is configured to receive the original picture data 17 and perform pre-processing on the original picture data 17 to obtain the pre-processed picture 19 or the pre-processed picture data 19.
  • the pre-processing performed by the picture pre-processor 18 may include trimming, color format conversion (eg, conversion from RGB format to YUV format), color grading, or denoising.
  • the encoder 20 (or video encoder 20) is used to receive the pre-processed picture data 19, and process the pre-processed picture data 19 in a related prediction mode (such as the prediction mode in various embodiments herein), thereby
  • the encoded picture data 21 is provided (the structural details of the encoder 20 will be further described below based on FIG. 2 or FIG. 4 or FIG. 5).
  • the encoder 20 may be used to implement various embodiments described below to implement the application of the chroma block prediction method described in the present invention on the encoding side.
  • the communication interface 22 can be used to receive the encoded picture data 21, and can transmit the encoded picture data 21 to the destination device 14 or any other device (such as a memory) via the link 13 for storage or direct reconstruction.
  • the other device may be any device used for decoding or storage.
  • the communication interface 22 may be used, for example, to encapsulate the encoded picture data 21 into a suitable format, such as a data packet, for transmission on the link 13.
  • the destination device 14 includes a decoder 30, and optionally, the destination device 14 may further include a communication interface 28, a post-picture processor 32, and a display device 34. They are described as follows:
  • the communication interface 28 may be used to receive the encoded picture data 21 from the source device 12 or any other source, such as a storage device, such as an encoded picture data storage device.
  • the communication interface 28 can be used to transmit or receive the encoded picture data 21 through the link 13 between the source device 12 and the destination device 14 or through any type of network.
  • the link 13 is, for example, a direct wired or wireless connection.
  • a network of a category is, for example, a wired or wireless network or any combination thereof, or a private network and a public network of any category, or any combination thereof.
  • the communication interface 28 may be used, for example, to decapsulate the data packet transmitted by the communication interface 22 to obtain the encoded picture data 21.
  • Both the communication interface 28 and the communication interface 22 may be configured as a one-way communication interface or a two-way communication interface, and may be used, for example, to send and receive messages to establish a connection, confirm and exchange any other communication link and/or for example encoded picture data Information about data transmission.
  • the decoder 30 (or referred to as the decoder 30) is used to receive the encoded picture data 21 and provide the decoded picture data 31 or the decoded picture 31 (hereinafter, the decoder 30 will be further described based on FIG. 3 or FIG. 4 or FIG. 5 Structural details). In some embodiments, the decoder 30 may be used to implement various embodiments described later to implement the application of the chroma block prediction method described in the present invention on the decoding side.
  • the post-picture processor 32 is configured to perform post-processing on the decoded picture data 31 (also referred to as reconstructed picture data) to obtain post-processed picture data 33.
  • the post-processing performed by the image post-processor 32 may include: color format conversion (for example, conversion from YUV format to RGB format), color adjustment, retouching or resampling, or any other processing, and may also be used to convert the post-processed image data 33transmitted to the display device 34.
  • the display device 34 is used to receive post-processed picture data 33 to display pictures to, for example, a user or a viewer.
  • the display device 34 may be or may include any type of display for presenting reconstructed pictures, for example, an integrated or external display or monitor.
  • the display may include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), Digital light processor (digital light processor, DLP) or any other type of display.
  • FIG. 1A illustrates the source device 12 and the destination device 14 as separate devices
  • device embodiments may also include the functionality of the source device 12 and the destination device 14 or both, ie, the source device 12 or The corresponding functionality and the destination device 14 or corresponding functionality.
  • the same hardware and/or software may be used, or separate hardware and/or software, or any combination thereof may be used to implement the source device 12 or corresponding functionality and the destination device 14 or corresponding functionality .
  • Source device 12 and destination device 14 may include any of a variety of devices, including any type of handheld or stationary devices, such as notebook or laptop computers, mobile phones, smartphones, tablets or tablet computers, cameras, desktops Computers, set-top boxes, televisions, cameras, in-vehicle devices, display devices, digital media players, video game consoles, video streaming devices (such as content service servers or content distribution servers), broadcast receiver devices, broadcast transmitter devices And so on, and can not use or use any kind of operating system.
  • handheld or stationary devices such as notebook or laptop computers, mobile phones, smartphones, tablets or tablet computers, cameras, desktops Computers, set-top boxes, televisions, cameras, in-vehicle devices, display devices, digital media players, video game consoles, video streaming devices (such as content service servers or content distribution servers), broadcast receiver devices, broadcast transmitter devices And so on, and can not use or use any kind of operating system.
  • Both the encoder 20 and the decoder 30 can be implemented as any of various suitable circuits, for example, one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (application-specific integrated circuits) circuit, ASIC), field-programmable gate array (FPGA), discrete logic, hardware, or any combination thereof.
  • DSPs digital signal processors
  • ASIC application-specific integrated circuits
  • FPGA field-programmable gate array
  • the device may store the instructions of the software in a suitable non-transitory computer-readable storage medium, and may use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure . Any one of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be regarded as one or more processors.
  • the video encoding and decoding system 10 shown in FIG. 1A is only an example, and the technology of the present application may be applied to video encoding settings that do not necessarily include any data communication between encoding and decoding devices (eg, video encoding or video decoding).
  • data can be retrieved from local storage, streamed on the network, and so on.
  • the video encoding device may encode the data and store the data to the memory, and/or the video decoding device may retrieve the data from the memory and decode the data.
  • encoding and decoding are performed by devices that do not communicate with each other but only encode data to and/or retrieve data from memory and decode the data.
  • FIG. 1B is an explanatory diagram of an example of a video coding system 40 including the encoder 20 of FIG. 2 and/or the decoder 30 of FIG. 3, according to an exemplary embodiment.
  • the video decoding system 40 can implement a combination of various technologies in the embodiments of the present application.
  • the video decoding system 40 may include an imaging device 41, an encoder 20, a decoder 30 (and/or a video encoder/decoder implemented by the logic circuit 47 of the processing unit 46), an antenna 42 , One or more processors 43, one or more memories 44, and/or display devices 45.
  • the imaging device 41, the antenna 42, the processing unit 46, the logic circuit 47, the encoder 20, the decoder 30, the processor 43, the memory 44, and/or the display device 45 can communicate with each other.
  • the video coding system 40 is shown with the encoder 20 and the decoder 30, in different examples, the video coding system 40 may include only the encoder 20 or only the decoder 30.
  • antenna 42 may be used to transmit or receive an encoded bitstream of video data.
  • the display device 45 may be used to present video data.
  • the logic circuit 47 may be implemented by the processing unit 46.
  • the processing unit 46 may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like.
  • the video decoding system 40 may also include an optional processor 43, which may similarly include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like.
  • the logic circuit 47 may be implemented by hardware, such as dedicated hardware for video encoding, etc., and the processor 43 may be implemented by general-purpose software, an operating system, or the like.
  • the memory 44 may be any type of memory, such as volatile memory (for example, static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.) or non-volatile Memory (for example, flash memory, etc.), etc.
  • volatile memory for example, static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
  • non-volatile Memory for example, flash memory, etc.
  • the memory 44 may be implemented by cache memory.
  • the logic circuit 47 can access the memory 44 (eg, to implement an image buffer).
  • the logic circuit 47 and/or the processing unit 46 may include memory (eg, cache, etc.) for implementing image buffers and the like.
  • the encoder 20 implemented by logic circuits may include an image buffer (e.g., implemented by the processing unit 46 or the memory 44) and a graphics processing unit (e.g., implemented by the processing unit 46).
  • the graphics processing unit may be communicatively coupled to the image buffer.
  • the graphics processing unit may include the encoder 20 implemented by a logic circuit 47 to implement the various modules discussed with reference to FIG. 2 and/or any other encoder system or subsystem described herein.
  • Logic circuits can be used to perform the various operations discussed herein.
  • decoder 30 may be implemented by logic circuit 47 in a similar manner to implement the various modules discussed with reference to decoder 30 of FIG. 3 and/or any other decoder systems or subsystems described herein.
  • the decoder 30 implemented by the logic circuit may include an image buffer (implemented by the processing unit 2820 or the memory 44) and a graphics processing unit (for example, implemented by the processing unit 46).
  • the graphics processing unit may be communicatively coupled to the image buffer.
  • the graphics processing unit may include a decoder 30 implemented by a logic circuit 47 to implement various modules discussed with reference to FIG. 3 and/or any other decoder system or subsystem described herein.
  • antenna 42 may be used to receive an encoded bitstream of video data.
  • the encoded bitstream may include data related to encoded video frames, indicators, index values, mode selection data, etc. discussed herein, such as data related to encoded partitions (eg, transform coefficients or quantized transform coefficients , (As discussed) optional indicators, and/or data defining the code segmentation).
  • the video coding system 40 may also include a decoder 30 coupled to the antenna 42 and used to decode the encoded bitstream.
  • the display device 45 is used to present video frames.
  • the decoder 30 may be used to perform the reverse process.
  • the decoder 30 may be used to receive and parse such syntax elements and decode the relevant video data accordingly.
  • encoder 20 may entropy encode syntax elements into an encoded video bitstream. In such instances, decoder 30 may parse such syntax elements and decode the relevant video data accordingly.
  • the video image decoding method described in the embodiment of the present application is mainly used for intra prediction and inter prediction processes. This process exists in both the encoder 20 and the decoder 30.
  • the encoder 20 and the decoder 20 in the embodiment of the present application The decoder 30 may be a codec corresponding to a video standard protocol such as H.263, H.264, HEVV, MPEG-2, MPEG-4, VP8, VP9, or a next-generation video standard protocol (such as H.266, etc.) .
  • FIG. 2 shows a schematic/conceptual block diagram of an example of an encoder 20 for implementing an embodiment of the present application.
  • the encoder 20 includes a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a buffer 216, a loop filter Unit 220, decoded picture buffer (DPB) 230, prediction processing unit 260, and entropy encoding unit 270.
  • the prediction processing unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a mode selection unit 262.
  • the inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown).
  • the encoder 20 shown in FIG. 2 may also be referred to as a hybrid video encoder or a video encoder based on a hybrid video codec.
  • the residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 260, and the entropy encoding unit 270 form the forward signal path of the encoder 20, while, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the heavy
  • the structure unit 214, the buffer 216, the loop filter unit 220, the decoded picture buffer (DPB) 230, and the prediction processing unit 260 form a backward signal path of the encoder, wherein the backward signal path of the encoder Corresponds to the signal path of the decoder (see decoder 30 in FIG. 3).
  • the encoder 20 receives a picture 201 or an image block 203 of the picture 201 through, for example, an input 202, for example, a picture in a picture sequence forming a video or a video sequence.
  • the image block 203 may also be called a current picture block or a picture block to be encoded
  • the picture 201 may be called a current picture or a picture to be encoded (especially when the current picture is distinguished from other pictures in video encoding, the other pictures are the same video sequence, for example That is, the previously encoded and/or decoded pictures in the video sequence of the current picture are also included).
  • An embodiment of the encoder 20 may include a division unit (not shown in FIG. 2) for dividing the picture 201 into a plurality of blocks such as image blocks 203, usually into a plurality of non-overlapping blocks.
  • the segmentation unit can be used to use the same block size and corresponding grids that define the block size for all pictures in the video sequence, or to change the block size between pictures or subsets or picture groups, and divide each picture into The corresponding block.
  • the prediction processing unit 260 of the encoder 20 may be used to perform any combination of the above-mentioned segmentation techniques.
  • image block 203 is also or can be regarded as a two-dimensional array or matrix of sampling points with sample values, although its size is smaller than picture 201.
  • the image block 203 may include, for example, one sampling array (for example, the brightness array in the case of black and white picture 201) or three sampling arrays (for example, one brightness array and two chroma arrays in the case of color picture) or An array of any other number and/or category depending on the color format applied.
  • the number of sampling points in the horizontal and vertical directions (or axes) of the image block 203 defines the size of the image block 203.
  • the encoder 20 shown in FIG. 2 is used to encode the picture 201 block by block, for example, to perform encoding and prediction on each image block 203.
  • the residual calculation unit 204 is used to calculate the residual block 205 based on the picture image block 203 and the prediction block 265 (other details of the prediction block 265 are provided below), for example, by subtracting the sample value of the picture image block 203 sample by sample (pixel by pixel) The sample values of the block 265 are depredicted to obtain the residual block 205 in the sample domain.
  • the transform processing unit 206 is used to apply a transform such as discrete cosine transform (DCT) or discrete sine transform (DST) on the sample values of the residual block 205 to obtain transform coefficients 207 in the transform domain .
  • the transform coefficient 207 may also be called a transform residual coefficient, and represents a residual block 205 in the transform domain.
  • the transform processing unit 206 may be used to apply integer approximations of DCT/DST, such as the transform specified by HEVC/H.265. Compared with the orthogonal DCT transform, this integer approximation is usually scaled by a factor. In order to maintain the norm of the residual block processed by the forward and inverse transform, an additional scaling factor is applied as part of the transform process.
  • the scaling factor is usually selected based on certain constraints. For example, the scaling factor is a power of two used for the shift operation, the bit depth of the transform coefficient, the accuracy, and the trade-off between implementation cost, and so on.
  • a specific scaling factor can be specified for the inverse transform by the inverse transform processing unit 212 on the decoder 30 side (and corresponding inverse transform by the inverse transform processing unit 212 on the encoder 20 side), and accordingly, the encoder can be The 20 side specifies a corresponding scaling factor for the positive transform through the transform processing unit 206.
  • the quantization unit 208 is used to quantize the transform coefficient 207 by, for example, applying scalar quantization or vector quantization to obtain the quantized transform coefficient 209.
  • the quantized transform coefficient 209 may also be referred to as a quantized residual coefficient 209.
  • the quantization process can reduce the bit depth associated with some or all of the transform coefficients 207. For example, n-bit transform coefficients can be rounded down to m-bit transform coefficients during quantization, where n is greater than m.
  • the degree of quantization can be modified by adjusting quantization parameters (QP). For example, for scalar quantization, different scales can be applied to achieve thinner or coarser quantization.
  • QP quantization parameters
  • a smaller quantization step size corresponds to a finer quantization
  • a larger quantization step size corresponds to a coarser quantization.
  • a suitable quantization step size can be indicated by a quantization parameter (QP).
  • the quantization parameter may be an index of a predefined set of suitable quantization steps.
  • smaller quantization parameters may correspond to fine quantization (smaller quantization step size)
  • larger quantization parameters may correspond to coarse quantization (larger quantization step size)
  • the quantization may include dividing by the quantization step size and the corresponding quantization or inverse quantization performed by the inverse quantization unit 210, for example, or may include multiplying the quantization step size.
  • Embodiments according to some standards such as HEVC may use quantization parameters to determine the quantization step size.
  • the quantization step size can be calculated based on the quantization parameter using a fixed-point approximation including an equation of division. Additional scaling factors can be introduced for quantization and inverse quantization to restore the norm of the residual block that may be modified due to the scale used in fixed-point approximation of the equations for quantization step size and quantization parameter.
  • the scale of inverse transform and inverse quantization may be combined.
  • a custom quantization table can be used and signaled from the encoder to the decoder in the bitstream, for example.
  • Quantization is a lossy operation, where the larger the quantization step, the greater the loss.
  • the inverse quantization unit 210 is used to apply the inverse quantization of the quantization unit 208 on the quantized coefficients to obtain the inverse quantization coefficients 211, for example, based on or using the same quantization step size as the quantization unit 208, apply the quantization scheme applied by the quantization unit 208 Inverse quantization scheme.
  • the inverse quantized coefficient 211 may also be referred to as an inverse quantized residual coefficient, corresponding to the transform coefficient 207, although the loss due to quantization is usually not the same as the transform coefficient.
  • the inverse transform processing unit 212 is used to apply the inverse transform of the transform applied by the transform processing unit 206, for example, an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), in the sample domain
  • the inverse transform block 213 is obtained.
  • the inverse transform block 213 may also be referred to as an inverse transform dequantized block 213 or an inverse transform residual block 213.
  • the reconstruction unit 214 (for example, a summer) is used to add the inverse transform block 213 (that is, the reconstructed residual block 213) to the prediction block 265 to obtain the reconstructed block 215 in the sample domain.
  • the sample value of the reconstructed residual block 213 and the sample value of the prediction block 265 are added.
  • a buffer unit such as buffer 216 (or simply “buffer” 216) is used to buffer or store the reconstructed block 215 and corresponding sample values for, for example, intra prediction.
  • the encoder may be used to use the unfiltered reconstructed blocks and/or corresponding sample values stored in the buffer 216 for any type of estimation and/or prediction, such as intra prediction .
  • an embodiment of the encoder 20 may be configured such that the buffer 216 is used not only for storing the reconstructed block 215 for the intra prediction unit 254, but also for the loop filter unit 220 (not shown in FIG. 2) Out), and/or, for example, causing the buffer 216 and the decoded picture buffer unit 230 to form a buffer.
  • Other embodiments may be used to use the filtered block 221 and/or blocks or samples from the decoded picture buffer 230 (neither shown in FIG. 2) as an input or basis for the intra prediction unit 254.
  • the loop filter unit 220 (or simply "loop filter” 220) is used to filter the reconstructed block 215 to obtain the filtered block 221, so as to smoothly perform pixel conversion or improve video quality.
  • the loop filter unit 220 is intended to represent one or more loop filters, such as deblocking filters, sample-adaptive offset (SAO) filters, or other filters, such as bilateral filters, Adaptive loop filter (adaptive loop filter, ALF), or sharpening or smoothing filter, or collaborative filter.
  • the loop filter unit 220 is shown as an in-loop filter in FIG. 2, in other configurations, the loop filter unit 220 may be implemented as a post-loop filter.
  • the filtered block 221 may also be referred to as the filtered reconstructed block 221.
  • the decoded picture buffer 230 may store the reconstructed encoding block after the loop filter unit 220 performs a filtering operation on the reconstructed encoding block.
  • Embodiments of the encoder 20 may be used to output loop filter parameters (eg, sample adaptive offset information), for example, directly output or by the entropy encoding unit 270 or any other
  • the entropy coding unit outputs after entropy coding, for example, so that the decoder 30 can receive and apply the same loop filter parameters for decoding.
  • the decoded picture buffer (decoded picture buffer, DPB) 230 may be a reference picture memory for storing reference picture data for the encoder 20 to encode video data.
  • DPB 230 can be formed by any of a variety of memory devices, such as dynamic random access memory (dynamic random access memory, DRAM) (including synchronous DRAM (synchronous DRAM, SDRAM), magnetoresistive RAM (magnetoresistive RAM, MRAM), resistive RAM (resistive RAM, RRAM)) or other types of memory devices.
  • DRAM dynamic random access memory
  • DRAM dynamic random access memory
  • MRAM magnetoresistive RAM
  • RRAM resistive RAM
  • the DPB 230 and the buffer 216 may be provided by the same memory device or separate memory devices.
  • a decoded picture buffer (DPB) 230 is used to store the filtered block 221.
  • the decoded picture buffer 230 may be further used to store other previous filtered blocks of the same current picture or different pictures such as previous reconstructed pictures, such as the previously reconstructed and filtered block 221, and may provide the complete previous The reconstructed ie decoded pictures (and corresponding reference blocks and samples) and/or partially reconstructed current pictures (and corresponding reference blocks and samples), for example for inter prediction.
  • a decoded picture buffer (DPB) 230 is used to store the reconstructed block 215.
  • the prediction processing unit 260 also known as the block prediction processing unit 260, is used to receive or acquire the image block 203 (current image block 203 of the current picture 201) and the reconstructed picture data, for example, the same (current ) Reference samples of pictures and/or reference picture data of one or more previously decoded pictures 231 from the decoded picture buffer 230, and used to process such data for prediction, that is, to provide an inter prediction block 245 Or the prediction block 265 via the intra prediction block 255.
  • the mode selection unit 262 may be used to select a prediction mode (eg, intra or inter prediction mode) and/or the corresponding 245 or 255 used as the prediction block 265 to calculate the residual block 205 and reconstruct the reconstructed block 215.
  • a prediction mode eg, intra or inter prediction mode
  • the corresponding 245 or 255 used as the prediction block 265 to calculate the residual block 205 and reconstruct the reconstructed block 215.
  • An embodiment of the mode selection unit 262 may be used to select a prediction mode (for example, from those prediction modes supported by the prediction processing unit 260), which provides the best match or the minimum residual (the minimum residual means Better compression in transmission or storage), or provide minimum signaling overhead (minimum signaling overhead means better compression in transmission or storage), or consider or balance both at the same time.
  • the mode selection unit 262 may be used to determine a prediction mode based on rate distortion optimization (RDO), that is, to select a prediction mode that provides minimum bit rate distortion optimization, or to select a prediction mode in which the related bit rate distortion at least meets the prediction mode selection criteria .
  • RDO rate distortion optimization
  • the encoder 20 is used to determine or select the best or optimal prediction mode from the (predetermined) prediction mode set.
  • the set of prediction modes may include, for example, intra prediction modes and/or inter prediction modes.
  • the intra prediction mode set may include 35 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in H.265, or may include 67 Different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in the developing H.266.
  • non-directional modes such as DC (or mean) mode and planar mode
  • directional modes as defined in the developing H.266.
  • the set of inter prediction modes depends on the available reference pictures (ie, for example, the aforementioned at least partially decoded pictures stored in DBP 230) and other inter prediction parameters, for example, depending on whether the entire reference picture is used or only Use a part of the reference picture, for example the search window area surrounding the area of the current block, to search for the best matching reference block, and/or for example depending on whether pixel interpolation such as half-pixel and/or quarter-pixel interpolation is applied
  • the set of inter prediction modes may include advanced motion vector (Advanced Motion Vector Prediction, AMVP) mode and merge mode.
  • AMVP Advanced Motion Vector Prediction
  • the set of inter prediction modes may include an improved control point-based AMVP mode according to an embodiment of the present application, and an improved control point-based merge mode.
  • the intra prediction unit 254 may be used to perform any combination of inter prediction techniques described below.
  • the embodiments of the present application may also apply skip mode and/or direct mode.
  • the prediction processing unit 260 may be further used to split the image block 203 into smaller block partitions or sub-blocks, for example, iteratively using quad-tree (QT) segmentation, binary-tree (BT) segmentation Or triple-tree (TT) partitioning, or any combination thereof, and for performing prediction for each of block partitions or sub-blocks, for example, where mode selection includes selecting the tree structure of the divided image block 203 and selecting the application The prediction mode for each of the block partitions or sub-blocks.
  • QT quad-tree
  • BT binary-tree
  • TT triple-tree
  • the inter prediction unit 244 may include a motion estimation (ME) unit (not shown in FIG. 2) and a motion compensation (MC) unit (not shown in FIG. 2).
  • the motion estimation unit is used to receive or acquire a picture image block 203 (current picture image block 203 of the current picture 201) and a decoded picture 231, or at least one or more previously reconstructed blocks, for example, one or more other/different
  • the reconstructed block of the previously decoded picture 231 is used for motion estimation.
  • the video sequence may include the current picture and the previously decoded picture 31, or in other words, the current picture and the previously decoded picture 31 may be part of the picture sequence forming the video sequence, or form the picture sequence.
  • the encoder 20 may be used to select a reference block from multiple reference blocks of the same or different pictures in multiple other pictures, and provide a reference picture and/or provide a reference to a motion estimation unit (not shown in FIG. 2)
  • the offset (spatial offset) between the position of the block (X, Y coordinates) and the position of the current block is used as an inter prediction parameter.
  • This offset is also called a motion vector (MV).
  • the motion compensation unit is used to acquire inter prediction parameters, and perform inter prediction based on or using inter prediction parameters to obtain inter prediction blocks 245.
  • the motion compensation performed by the motion compensation unit may include extracting or generating a prediction block based on a motion/block vector determined by motion estimation (possibly performing interpolation of sub-pixel accuracy). Interpolation filtering can generate additional pixel samples from known pixel samples, potentially increasing the number of candidate prediction blocks that can be used to encode picture blocks.
  • the motion compensation unit 246 may locate the prediction block pointed to by the motion vector in a reference picture list. Motion compensation unit 246 may also generate syntax elements associated with blocks and video slices for use by decoder 30 when decoding picture blocks of video slices.
  • the above inter prediction unit 244 may transmit a syntax element to the entropy encoding unit 270, where the syntax element includes inter prediction parameters (such as an inter prediction mode selected for the current block prediction after traversing multiple inter prediction modes Instructions).
  • inter prediction parameters such as an inter prediction mode selected for the current block prediction after traversing multiple inter prediction modes Instructions.
  • the decoding terminal 30 may directly use the default prediction mode for decoding. It can be understood that the inter prediction unit 244 may be used to perform any combination of inter prediction techniques.
  • the intra prediction unit 254 is used to acquire, for example, a picture block 203 (current picture block) that receives the same picture and one or more previously reconstructed blocks, such as reconstructed neighboring blocks, for intra estimation.
  • the encoder 20 may be used to select an intra prediction mode from multiple (predetermined) intra prediction modes.
  • Embodiments of the encoder 20 may be used to select an intra prediction mode based on optimization criteria, for example, based on a minimum residual (for example, an intra prediction mode that provides the intra prediction block 255 most similar to the current image block 203) or a minimum code rate distortion.
  • a minimum residual for example, an intra prediction mode that provides the intra prediction block 255 most similar to the current image block 203
  • a minimum code rate distortion for example, a code rate distortion.
  • the intra prediction unit 254 is further used to determine the intra prediction block 255 based on the intra prediction parameters of the intra prediction mode as selected. In any case, after selecting the intra-prediction mode for the block, the intra-prediction unit 254 is also used to provide the intra-prediction parameters to the entropy encoding unit 270, that is, to provide an indication of the selected intra-prediction mode for the block Information. In one example, the intra prediction unit 254 may be used to perform any combination of intra prediction techniques.
  • the above-mentioned intra-prediction unit 254 may transmit a syntax element to the entropy encoding unit 270, where the syntax element includes intra-prediction parameters (such as an intra-prediction mode selected for the current block prediction after traversing multiple intra-prediction modes) Instructions).
  • the intra prediction parameters may not be carried in the syntax element.
  • the decoding terminal 30 may directly use the default prediction mode for decoding.
  • the entropy coding unit 270 is used to convert the entropy coding algorithm or scheme (for example, variable length coding (VLC) scheme, context adaptive VLC (context adaptive VLC, CAVLC) scheme, arithmetic coding scheme, context adaptive binary arithmetic) Coding (context adaptive) binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partition entropy (probability interval interpartitioning entropy, PIPE) coding or other entropy Coding method or technique) applied to a single or all of the quantized residual coefficients 209, inter prediction parameters, intra prediction parameters, and/or loop filter parameters (or not applied) to obtain the output 272 to For example, the encoded picture data 21 output in the form of an encoded bit stream.
  • VLC variable length coding
  • CABAC context adaptive binary arithmetic) Coding
  • SBAC syntax-based context-adaptive binary arithmetic
  • the encoded bitstream may be transmitted to the video decoder 30 or archived for later transmission or retrieval by the video decoder 30.
  • the entropy encoding unit 270 may also be used to entropy encode other syntax elements of the current video slice being encoded.
  • video encoder 20 may be used to encode video streams.
  • the non-transform based encoder 20 may directly quantize the residual signal without the transform processing unit 206 for certain blocks or frames.
  • the encoder 20 may have a quantization unit 208 and an inverse quantization unit 210 combined into a single unit.
  • the video encoder 20 can directly quantize the residual signal without processing by the transform processing unit 206, and accordingly, without processing by the inverse transform processing unit 212; or, for some For image blocks or image frames, the video encoder 20 does not generate residual data, and accordingly does not need to be processed by the transform processing unit 206, quantization unit 208, inverse quantization unit 210, and inverse transform processing unit 212; or, the video encoder 20 may convert The reconstructed image block is directly stored as a reference block without being processed by the filter 220; alternatively, the quantization unit 208 and the inverse quantization unit 210 in the video encoder 20 may be merged together.
  • the loop filter unit 220 is optional, and in the case of lossless compression coding, the transform processing unit 206, quantization unit 208, inverse quantization unit 210, and inverse transform processing unit 212 are optional. It should be understood that the inter prediction unit 244 and the intra prediction unit 254 may be selectively enabled according to different application scenarios.
  • FIG. 3 shows a schematic/conceptual block diagram of an example of a decoder 30 for implementing an embodiment of the present application.
  • the video decoder 30 is used to receive encoded picture data (eg, encoded bitstream) 21, for example, encoded by the encoder 20, to obtain the decoded picture 231.
  • encoded picture data eg, encoded bitstream
  • video decoder 30 receives video data from video encoder 20, such as an encoded video bitstream and associated syntax elements representing picture blocks of the encoded video slice.
  • the decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (eg, a summer 314), a buffer 316, a loop filter unit 320, The decoded picture buffer (DBP) 330 and the prediction processing unit 360.
  • the prediction processing unit 360 may include an inter prediction unit 344, an intra prediction unit 354, and a mode selection unit 362.
  • video decoder 30 may perform a decoding pass that is generally inverse to the encoding pass described with reference to video encoder 20 of FIG. 2.
  • the entropy decoding unit 304 is used to perform entropy decoding on the encoded picture data 21 to obtain, for example, quantized coefficients 309 and/or decoded encoding parameters (not shown in FIG. 3), for example, inter prediction, intra prediction parameters , Any or all of the loop filter parameters and/or other syntax elements (decoded).
  • the entropy decoding unit 304 is further used to forward inter prediction parameters, intra prediction parameters, and/or other syntax elements to the prediction processing unit 360.
  • Video decoder 30 may receive syntax elements at the video slice level and/or the video block level.
  • the inverse quantization unit 310 may be functionally the same as the inverse quantization unit 110
  • the inverse transform processing unit 312 may be functionally the same as the inverse transform processing unit 212
  • the reconstruction unit 314 may be functionally the same as the reconstruction unit 214
  • the buffer 316 may be functionally
  • the loop filter unit 320 may be functionally the same as the loop filter unit 220
  • the decoded picture buffer 330 may be functionally the same as the decoded picture buffer 230.
  • the prediction processing unit 360 may include an inter prediction unit 344 and an intra prediction unit 354, wherein the inter prediction unit 344 may be similar in function to the inter prediction unit 244, and the intra prediction unit 354 may be similar in function to the intra prediction unit 254 .
  • the prediction processing unit 360 is generally used to perform block prediction and/or obtain the prediction block 365 from the encoded data 21, and receive or obtain prediction-related parameters and/or information about the entropy decoding unit 304 (explicitly or implicitly). Information about the selected prediction mode.
  • the intra prediction unit 354 of the prediction processing unit 360 is used to signal-based the intra prediction mode and the previous decoded block from the current frame or picture. Data to generate a prediction block 365 for the picture block of the current video slice.
  • the inter prediction unit 344 eg, motion compensation unit
  • Other syntax elements generate a prediction block 365 for the video block of the current video slice.
  • a prediction block may be generated from a reference picture in a reference picture list.
  • Video decoder 30 may construct the reference frame lists: list 0 and list 1 based on the reference pictures stored in decoded picture buffer 330 using default construction techniques.
  • the prediction processing unit 360 is used to determine the prediction information for the video block of the current video slice by parsing the motion vector and other syntax elements, and use the prediction information to generate the prediction block for the current video block being decoded.
  • the prediction processing unit 360 uses some received syntax elements to determine the prediction mode (e.g., intra or inter prediction) of the video block used to encode the video slice, and the inter prediction slice type ( For example, B slice, P slice, or GPB slice), construction information of one or more of the reference picture lists for slices, motion vectors for each inter-coded video block for slices, The inter prediction status and other information of each inter-coded video block of the slice to decode the video block of the current video slice.
  • the prediction mode e.g., intra or inter prediction
  • the inter prediction slice type For example, B slice, P slice, or GPB slice
  • the syntax elements received by the video decoder 30 from the bitstream include an adaptive parameter set (adaptive parameter set, APS), sequence parameter set (SPS), and picture parameter set (picture parameter (set, PPS) or the syntax element in one or more of the stripe headers.
  • adaptive parameter set adaptive parameter set
  • SPS sequence parameter set
  • PPS picture parameter set
  • the inverse quantization unit 310 may be used to inverse quantize (ie, inverse quantize) the quantized transform coefficients provided in the bitstream and decoded by the entropy decoding unit 304.
  • the inverse quantization process may include using the quantization parameters calculated by the video encoder 20 for each video block in the video slice to determine the degree of quantization that should be applied and also determine the degree of inverse quantization that should be applied.
  • the inverse transform processing unit 312 is used to apply an inverse transform (eg, inverse DCT, inverse integer transform, or conceptually similar inverse transform process) to the transform coefficients, so as to generate a residual block in the pixel domain.
  • an inverse transform eg, inverse DCT, inverse integer transform, or conceptually similar inverse transform process
  • the reconstruction unit 314 (eg, summer 314) is used to add the inverse transform block 313 (ie, the reconstructed residual block 313) to the prediction block 365 to obtain the reconstructed block 315 in the sample domain, for example by The sample values of the reconstructed residual block 313 are added to the sample values of the prediction block 365.
  • the loop filter unit 320 (during the encoding loop or after the encoding loop) is used to filter the reconstructed block 315 to obtain the filtered block 321 to smoothly perform pixel conversion or improve video quality.
  • the loop filter unit 320 may be used to perform any combination of filtering techniques described below.
  • the loop filter unit 320 is intended to represent one or more loop filters, such as deblocking filters, sample-adaptive offset (SAO) filters, or other filters, such as bilateral filters, self-adaptive filters Adaptive loop filter (adaptive loop filter, ALF), or sharpening or smoothing filter, or collaborative filter.
  • the loop filter unit 320 is shown as an in-loop filter in FIG. 3, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.
  • the filtered block 321 in a given frame or picture is then stored in a decoded picture buffer 330 that stores reference pictures for subsequent motion compensation.
  • the decoder 30 is used, for example, to output the decoded picture 31 through the output 332 for presentation to the user or for the user to view.
  • video decoder 30 may be used to decode the compressed bitstream.
  • the decoder 30 may generate the output video stream without the loop filter unit 320.
  • the non-transform based decoder 30 may directly inversely quantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames.
  • the video decoder 30 may have an inverse quantization unit 310 and an inverse transform processing unit 312 combined into a single unit.
  • the decoder 30 is used to implement the video image decoding method described in the embodiment below.
  • video decoder 30 may be used to decode the encoded video bitstream.
  • the video decoder 30 may generate an output video stream without being processed by the loop filter unit 320; or, for certain image blocks or image frames, the entropy decoding unit 304 of the video decoder 30 does not decode the quantized coefficients, Accordingly, no processing by the inverse quantization unit 310 and the inverse transform processing unit 312 is required.
  • the loop filter unit 320 is optional; and in the case of lossless compression, the inverse quantization unit 310 and the inverse transform processing unit 312 are optional.
  • the inter prediction unit and the intra prediction unit may be selectively enabled.
  • the processing results for a certain link can be further processed and output to the next link, for example, in interpolation filtering, motion vector derivation or loop filtering, etc. After the link, the results of the corresponding link are further clipped or shift shifted.
  • the motion vector of the control point of the current image block to be derived according to the motion vector of the adjacent affine coding block, or the motion vector of the sub-block of the current image block to be derived may be further processed.
  • the value range of the motion vector is constrained to be within a certain bit width. Assuming that the allowed bit width of the motion vector is bitDepth, the range of the motion vector is -2 ⁇ (bitDepth-1) ⁇ 2 ⁇ (bitDepth-1)-1, where the " ⁇ " symbol represents a power. If bitDepth is 16, the value ranges from -32768 to 32767. If bitDepth is 18, the value ranges from -131072 to 131071.
  • the values of the motion vectors are constrained so that the maximum difference between the integer parts of the four 4x4 sub-blocks MV does not exceed N pixels, for example no more than one pixel.
  • ux (vx+2 bitDepth )%2 bitDepth
  • vx is the horizontal component of the motion vector of the image block or the sub-block of the image block
  • vy is the vertical component of the motion vector of the image block or the sub-block of the image block
  • ux and uy are intermediate values
  • bitDepth represents the bit width
  • the value of vx is -32769, and the value obtained by the above formula is 32767. Because in the computer, the value is stored in the form of two's complement, the complement of -32769 is 1,0111,1111,1111,1111 (17 bits), the computer handles the overflow as discarding the high bit, then the value of vx If it is 0111,1111,1111,1111, it is 32767, which is consistent with the result obtained by formula processing.
  • vx Clip3(-2bitDepth-1,2bitDepth-1-1,vx)
  • vx is the horizontal component of the motion vector of the image block or the sub-block of the image block
  • vy is the vertical component of the motion vector of the image block or the sub-block of the image block
  • x, y, and z correspond to the MV clamp
  • FIG. 4 is a schematic structural diagram of a video decoding device 400 (for example, a video encoding device 400 or a video decoding device 400) provided by an embodiment of the present application.
  • the video coding apparatus 400 is suitable for implementing the embodiments described herein.
  • the video coding device 400 may be a video decoder (eg, decoder 30 of FIG. 1A) or a video encoder (eg, encoder 20 of FIG. 1A).
  • the video decoding device 400 may be one or more components in the decoder 30 of FIG. 1A or the encoder 20 of FIG. 1A described above.
  • the video decoding device 400 includes: an inlet port 410 for receiving data and a receiver unit (Rx) 420, a processor for processing data, a logic unit or a central processing unit (CPU) 430, and a transmitter for transmitting data A unit (Tx) 440 and an exit port 450, and a memory 460 for storing data.
  • the video decoding device 400 may further include a photoelectric conversion component and an electro-optical (EO) component coupled to the inlet port 410, the receiver unit 420, the transmitter unit 440, and the outlet port 450 for the outlet or inlet of the optical signal or the electrical signal.
  • EO electro-optical
  • the processor 430 is implemented by hardware and software.
  • the processor 430 may be implemented as one or more CPU chips, cores (eg, multi-core processors), FPGA, ASIC, and DSP.
  • the processor 430 communicates with the inlet port 410, the receiver unit 420, the transmitter unit 440, the outlet port 450, and the memory 460.
  • the processor 430 includes a decoding module 470 (for example, an encoding module 470 or a decoding module 470).
  • the encoding/decoding module 470 implements the embodiments disclosed herein to implement the chroma block prediction method provided by the embodiments of the present application. For example, the encoding/decoding module 470 implements, processes, or provides various encoding operations.
  • the encoding/decoding module 470 provides a substantial improvement to the function of the video decoding device 400 and affects the conversion of the video decoding device 400 to different states.
  • the encoding/decoding module 470 is implemented with instructions stored in the memory 460 and executed by the processor 430.
  • the memory 460 includes one or more magnetic disks, tape drives, and solid-state hard disks, and can be used as an overflow data storage device for storing programs when these programs are selectively executed, as well as instructions and data read during program execution.
  • the memory 460 may be volatile and/or non-volatile, and may be read only memory (ROM), random access memory (RAM), random access memory (ternary content-addressable memory (TCAM), and/or static Random Access Memory (SRAM).
  • FIG. 5 is a simplified block diagram of an apparatus 500 that can be used as either or both of the source device 12 and the destination device 14 in FIG. 1A according to an exemplary embodiment.
  • the device 500 can implement the technology of the present application.
  • FIG. 5 is a schematic block diagram of an implementation manner of an encoding device or a decoding device (referred to simply as a decoding device 500) according to an embodiment of the present application.
  • the decoding device 500 may include a processor 510, a memory 530, and a bus system 550.
  • the processor and the memory are connected through a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory.
  • the memory of the decoding device stores the program code, and the processor can call the program code stored in the memory to perform various video encoding or decoding methods described in this application, especially various new intra-frame methods. In order to avoid repetition, they are not described in detail here.
  • the processor 510 may be a central processing unit (Central Processing Unit, referred to as "CPU"), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs), and dedicated integrated Circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 530 may include a read only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may also be used as the memory 530.
  • the memory 530 may include code and data 531 accessed by the processor 510 using the bus system 550.
  • the memory 530 may further include an operating system 533 and an application program 535 including at least one program that allows the processor 510 to perform the video encoding or decoding method described in this application (in particular, the video image decoding method described in this application).
  • the application program 535 may include applications 1 to N, which further include a video encoding or decoding application (referred to as a video coding application for short) that performs the video encoding or decoding method described in this application.
  • the bus system 550 may also include a power bus, a control bus, and a status signal bus. However, for clarity, various buses are marked as the bus system 550 in FIG. 5.
  • the decoding device 500 may also include one or more output devices, such as a display 570.
  • the display 570 may be a tactile display that merges the display with a tactile unit that operably senses touch input.
  • the display 570 may be connected to the processor 510 via the bus system 550.
  • the prediction unit (prediction unit, PU) can be called the current image block to be processed, based on the translational motion model .
  • merge mode also called merge mode, where skip mode is regarded as a special case of fusion mode
  • advanced motion vector prediction advanced motion vector prediction (AMVP) mode.
  • AMVP advanced motion vector prediction
  • affine merge mode affine merge mode
  • affine advanced motion vector prediction mode affine AMVP mode
  • sub-block The prediction modes also include advanced temporal motion vector prediction (advanced temporal motion vector prediction, ATMVP) mode, PLANAER mode, sub-block fusion mode (sub-block based based merging mode), and triangle prediction unit (triangle prediction unit, triangle PU) mode.
  • Inter prediction modes based on translational motion models include:
  • the process of predicting the current image block to be processed by the encoding end includes:
  • Step 1 The encoding end constructs a candidate motion vector list by using motion information (referred to as adjacent image blocks for short) of encoded image blocks adjacent to the spatial or temporal domain of the current image block to be processed.
  • motion information referred to as adjacent image blocks for short
  • the candidate motion vector list includes one or more candidate motion vectors of the current image block to be processed.
  • the spatial candidate motion vectors of the current image block to be processed are determined by the motion vectors of the 5 image blocks (A0, A1, B0, B1, and B2) that are spatially adjacent to the current image block to be processed. If the image block is not available, the candidate motion vector list is not added, and the position and traversal order of adjacent image blocks are also predefined.
  • the time-domain candidate motion vector of the current image block to be processed is obtained according to the motion vector of the time-domain adjacent image block of the current image block to be processed (for example, by scaling the motion vector of the time-domain adjacent image block to obtain the current image to be processed Time-domain candidate motion vector of the block), where the time-domain adjacent image block refers to the image block at the corresponding position in the reference frame of the current image block to be processed, as shown in FIG. 6, the reference of the current image block to be processed is first determined Whether the image block at position T0 in the frame is available, and if it is not available, the image block at position C is selected as the time-domain neighboring image block of the current image block to be processed.
  • the image block (or sub-block) means that the image block (or sub-block) exists or has been reconstructed, that is, has been encoded or decoded, and its prediction mode is the inter prediction mode, otherwise It is considered that the image block (or sub-block) is not available, that is, the image block does not exist or the image block is not encoded or the prediction mode adopted by the adjacent image block is not an inter prediction mode.
  • Step 2 The encoding end determines the optimal motion vector from the candidate motion vector list as the motion vector predictor (MVP) of the current image block to be processed.
  • MVP motion vector predictor
  • the rate-distortion optimization technique may be adopted to determine the optimal motion vector.
  • the following formula (1) can be used to calculate the rate-distortion cost corresponding to each motion vector, and then select the motion vector with the lowest rate-distortion cost (that is, the smallest rate-distortion The motion vector corresponding to the cost) is used as the motion vector prediction value of the current image block to be processed:
  • J represents the rate-distortion cost
  • SAD represents the sum of absolute errors between the predicted pixel value of the current image block to be processed and the original pixel value determined by the predicted value of the motion vector in the candidate motion vector list (sum of of absolute differences, SAD )
  • R represents the bit rate of the video stream
  • represents the Lagrange multiplier ( ⁇ can be a preset constant).
  • Step 3 The encoding end performs a motion search in the neighborhood centered on the MVP to obtain the actual motion vector of the current image block to be processed.
  • Step 4 The encoding end performs motion compensation on the current image block to be processed according to the actual motion vector of the current image block to be processed, to obtain a prediction block of the current image block to be processed.
  • Step 5 The encoding end passes the index value of the selected motion vector prediction value in the candidate motion vector list and the index value of the reference frame to the decoding end. Further, the encoding end transmits the difference between the MVP and the actual motion vector (motion vector difference, MVD) is also passed to the decoder.
  • the candidate motion vector list is constructed in the same way as the encoding end, and the index value, MVD, and reference frame of the position of the motion loss prediction value of the current image block in the candidate motion vector list are obtained by parsing the code stream Index value, the MVP is determined according to the index value of the position of the motion loss prediction value in the candidate motion vector list, and then the actual motion vector of the current image block to be processed is obtained according to the MVP and MVD, and according to the actual value of the current image block to be processed The motion vector determines the prediction block of the current image block to be processed.
  • the process of predicting the current image block to be processed by the encoding end includes:
  • Step 1 The encoding end constructs a candidate motion vector list through the motion information of the encoded image blocks adjacent to the spatial domain or the temporal domain of the current image block to be processed.
  • the method of constructing the candidate motion vector list by the encoding end in the Merge mode is similar to the method of constructing the candidate motion vector list by the encoding end in the AMVP mode.
  • Step 2 The encoding end determines the optimal motion vector from the candidate motion vector list as the motion vector of the current image block to be processed.
  • Step 3 The encoding end performs motion compensation on the current image block to be processed according to the motion vector of the current image block to be processed, to obtain a prediction block of the current image block to be processed.
  • Step 4 The encoding end transmits the index value of the optimal motion vector position in the candidate motion vector list (recorded as merge index) and the index value of the reference frame to the decoding end.
  • the decoding end constructs the candidate motion vector list in the same way as the encoding end, and obtains the index value of the optimal motion loss position in the candidate motion vector list by parsing the code stream, and indicates the index value
  • the optimal motion vector is used as the motion vector of the current image block to be processed.
  • the position and traversal order of adjacent image blocks in the Merge mode are also predefined, and the position and traversal order of adjacent image blocks may be different in different modes.
  • the sub-block prediction mode for the current image block to be processed, it is considered that not all pixels have the same motion characteristics, and the same motion information may be used It leads to inaccurate motion compensation prediction.
  • the current image block to be processed is further divided into smaller image blocks (hereinafter referred to as sub-blocks), and motion compensation is performed according to the motion information of all sub-blocks. Obtain the prediction block of the current image block to be processed, thereby improving prediction efficiency.
  • the merge mode and the AMVP mode mentioned in the above embodiments are both motion compensation technologies based on the translational motion model, that is, it is assumed that all pixels in the image block have the same motion.
  • non-translational motion objects such as rotating objects, roller coasters rotating in different directions, fireworks, and some stunts in the movie.
  • non-translational motion is also It means that the motion of all pixels in the image block is not completely consistent. If the motion compensation technology based on the translational motion model in the current coding standard is used, the coding efficiency will be greatly affected. Therefore, the industry has studied the non-translational motion model.
  • This inter prediction mode is a sub-block inter prediction mode, which can be specifically referred to as an affine prediction mode (including the affine merge mode and the affine AMVP mode below).
  • the process of performing inter prediction on the current image block to be processed using the affine merge mode includes:
  • Step 1 Construct a candidate motion information list of the control points of the current image block to be processed.
  • the candidate motion information list includes one or more candidate motion information multi-groups, and the candidate motion information multi-group includes candidate motion information of n1 control points of the current image block to be processed, n1 is a positive integer greater than or equal to 2 .
  • the current image block to be processed is a CU
  • the control points of the current image block to be processed may include the upper left vertex, the upper right vertex, the lower left vertex, and the lower right vertex control points of the current image block, for example, FIG. 7
  • the control points in can be P1, P2, P3, and P4.
  • the above candidate motion information multi-group includes the motion information of n control points.
  • the value of n can be 2, 3, 4.
  • the two control points of the current image block to be processed It can be any of the following situations: P1 and P2, P1 and P3, P1 and P4, P2 and P3, P2 and P4, P3 and P4; when the value of n is 3, 3 controls of the current image block to be processed
  • the point can be any of the following situations: P1, P2 and P3, P1, P2 and P4, P1, P3 and P4, P2, P3 and P4; when the value of n is 4, the current image block to be processed is 4 These are P1, P2, P3, and P4.
  • the above-mentioned candidate motion information list for constructing control points of the current image block is to determine one or more candidate motion information multi-groups of the current image block to be processed.
  • the inherited control point motion can be used Vector prediction method (inherited control point motion vectors) and/or constructed control point motion vector prediction method (constructed control point motion vectors), construct control point candidate motion information list.
  • the first type: adopting the inherited control point motion vector prediction method to construct the candidate motion information list of the control point includes: determining the candidate of the current block according to the motion model of the adjacent reconstructed affine coding block of the current image block to be processed Control point motion vector.
  • the above method for determining candidate motion information of the control point of the current image block to be processed specifically includes: performing a first processing procedure on one or more adjacent image blocks of the current image block to be processed according to a preset order until the control point
  • the number of candidate motion information multi-groups in the candidate motion information list is equal to the first preset value or until all adjacent image blocks are traversed.
  • the above first processing procedure is: according to the motion information of the n1 control points of the affine coding block where the i-th adjacent image block is located, determine the candidate motion information of the n1 control points of the current image block to be processed, and A candidate motion information multi-group including candidate motion information of n1 control points of the current image block to be processed is stored in the control point candidate motion information list, and n1 is a positive integer greater than or equal to 2.
  • one or more adjacent image blocks of the current image block to be processed may be traversed to obtain the motion of the control point of the affine coding block from the affine coding block where the one or more adjacent image blocks are located Vector, and then based on the motion information of the n1 control points of the affine coding block, using the motion model of the affine coding block to derive the candidate motion information of the n1 control points of the current image block to be processed.
  • the motion information includes a motion vector
  • the foregoing candidate motion information for determining n1 control points of the current image block to be processed is a candidate motion vector for determining n1 control points of the current image block to be processed.
  • the five adjacent image blocks of the current image block to be processed are A1, B1, C1, D1, and E1, respectively, which can be in the first preset order (for example, A1 ⁇ B1 ⁇ C1 ⁇ D1 ⁇ E1 Sequence) Traverse the adjacent image blocks of the current image block to find the affine coding block where the adjacent image blocks are located, obtain the motion information of n1 control points of the affine coding block, and according to the motion model of the affine coding block (For example, a 4-parameter (corresponding to 2 control points) motion model or a 6-parameter (corresponding to 3 control points) motion model) to determine the motion information of n1 control points of the current image block to be processed.
  • the motion model of the affine coding block For example, a 4-parameter (corresponding to 2 control points) motion model or a 6-parameter (corresponding to 3 control points) motion model
  • the control points of the current image block to be processed are respectively denoted as M0, M1, M2, and M3, where the coordinates of M0 Is (x 0 , y 0 ), the coordinate of M1 is (x 1 , y 1 ), the coordinate of M2 is (x 2 , y 2 ), the coordinate of M3 is (x 4 , y 4 ), the adjacent image block A1
  • the affine coding block is denoted as affine coding block 1
  • the control points of the affine coding block 1 are respectively denoted as N0, N1, N2, and N3, where the coordinates of N0 are (x 4 , y 4 ), and N0
  • the motion vector is (vx 4 , vy 4 ), the coordinate of N1 is (x 5 , y 5 ), the motion vector of N1 is (vx 5 , vy 5 ), the coordinate of N2 is (x
  • the two control points of the current image block to be processed are M1 and M2
  • the following formula (2) can be used to calculate the candidate motion vector of the control point M1
  • the formula (3) can be used to calculate the candidate motion vector of the control point M2:
  • the candidate motion vector of the control point M1 is (vx 0 , vy 0 ).
  • the candidate motion vector of the control point M2 is (vx 1 ,vy 1 ).
  • the candidate motion vectors of the control points M1 and M2 of the current image block to be processed are (vx 0 ,vy 0 ) and (vx 1 ,vy 1 ), that is, a candidate motion information binary is obtained, and the candidate motion The information dual is stored in the candidate motion information list of the control point.
  • other candidate motion information of the control points M1 and M2 can also be obtained by using formula (2) and formula (3), and the candidate motion information binary is stored in Control point candidate motion information list.
  • the motion parameters of the control points N1, N2, and N3 of the above-mentioned affine coding block 1 can be used to determine the three control points using the 6-parameter motion model.
  • the candidate motion information of the control point specifically, the following formula (4) can be used to calculate the candidate motion vector of the control point M1, the formula (5) can be used to calculate the candidate motion vector of the control point M2, and the formula (6) can be used to calculate the control point M3
  • the candidate motion vector of the control point M1 is (vx 0 , vy 0 ).
  • the candidate motion vector of the control point M2 is (vx 1 ,vy 1 ).
  • the candidate motion vector of the control point M3 is (vx 2 , vy 2 ).
  • the motion vectors of the control points M1, M2, and M3 of the current image block to be processed are (vx 0 ,vy 0 ), (vx 1 ,vy 1 ), and (vx 2 ,vy 2 ), that is, a candidate motion information is obtained Triplet, and store the candidate motion information triplet in the candidate motion information list of the control point.
  • other candidate motion information of the control points M1, M2, and M3 can also be obtained by using formula (4), formula (5), and formula (6), and the candidate The motion information triplet is stored in the candidate motion information list of the control point.
  • the motion information of the n1 control points of the current image block to be processed is determined according to the above method. Among them, if a neighboring image block among the neighboring image blocks A1, B1, C1, D1, and E1 is not available, skip the neighboring image block and continue according to the affine coding block where the next neighboring image block is located The motion information of the control points determines the motion information of the n control points of the current image block to be processed.
  • the positions of the adjacent image blocks A1, B1, C1, D1, and E1 the traversal order of the adjacent image blocks (that is, the above-mentioned preset order), and the affine where the adjacent image blocks are located
  • the motion model of the coding block is not limited. In practical applications, adjacent image blocks at other positions, other traversal sequences, and other motion models may also be used.
  • the second type: adopting the constructed control point motion vector prediction method, the candidate motion information list for constructing the control point includes:
  • adjacent coded blocks The motion information of the coded blocks adjacent to the control point of the current image block to be processed (hereinafter referred to as adjacent coded blocks) are combined to serve as the motion vector of the control point of the current image block to be processed.
  • the motion vector prediction method of the constructed control point has the following two implementations.
  • the motion information of the adjacent coded blocks of the control points is determined as the candidate motion information of the control points of the current image block to be processed.
  • the candidate motion information of n1 control points is combined to obtain an n1 tuple queue of candidate motion information of n1 control points of the current image block to be processed.
  • control points of the current image block Take the 2 control points of the current image block to be processed as an example, such as the control point of the upper left vertex and the control point of the upper right vertex.
  • the control point of the upper left vertex of the current image block is marked as M0
  • the control point The adjacent image blocks of M0 are A2, B2, and C2
  • A2, B2, and C2 are adjacent image blocks in the spatial domain of the control point M0.
  • the control point of the upper right vertex is denoted as M1, and the adjacent image block of the control point M1. D2 and E2, respectively, and the adjacent image blocks on the spatial domain of the control point M1 of the D2 and E2.
  • the candidate motion information of the two control points of the current image block to be processed includes the candidate motion information of the control point M0 and the control point M1.
  • Candidate motion information Record the motion vector of control point M0 as v 0 (specifically (vx 0 ,vy 0 )), record the motion vector of control point M1 as v 1 (specifically (vx 1 ,vy 1 )), and record the adjacent image blocks
  • the motion vectors of A2, B2 and C2 are used as the candidate motion vectors of the control point M0
  • the motion vectors of the adjacent image blocks D and E are used as the candidate motion vectors of the control point M1
  • the candidate motion vectors of the control point M0 and the control point M1 Candidate motion vectors are combined to obtain a two-element queue of candidate motion vectors for the 2 control points of the current image block to be processed:
  • the motion information of the control points may be determined in a similar control point combination manner.
  • the motion information of the adjacent image block is determined to be the motion information of the corresponding control point of the current image block to be processed, and then the motion information of the control point is combined to obtain all the motion information of the n control points of the current image block to be processed combination.
  • the adjacent image blocks of the control point CP1 are C3, F3, and G3. These three adjacent image blocks are used to determine the motion information of the control point CP1.
  • the adjacent image blocks of the control point CP2 are D3 and E3. These two adjacent images
  • the block is used to determine the motion information of the control point CP2.
  • the adjacent image blocks of the control point CP3 are A3 and B3.
  • the two adjacent image blocks are used to determine the motion information of the control point CP3.
  • the adjacent image blocks of the control point CP4 are T1 is used to determine the motion information of the control point CP4, where A3, B3, C3, D3, E3, F3, and G3 are all adjacent image blocks in space, and T1 is adjacent image blocks in time domain.
  • the motion information of each adjacent image block can be acquired in the order of F3 ⁇ C3 ⁇ G3, and the detected motion information of the first available adjacent image block is used as the motion information of the control point M0.
  • the process of determining the motion information of the control point CP1 is as follows:
  • the motion information of the adjacent image block F3 is used as the motion information vcp1 of the control point CP1, and there is no need to judge whether the adjacent image block C3 and the adjacent image block G3 are available;
  • the motion information of the adjacent image block C3 is used as the motion information vcp1 of the control point CP1, and there is no need to judge whether the adjacent image block G3 is available;
  • the motion information of the adjacent image block G3 is used as the motion information vcp1 of the control point CP1;
  • the motion information of each adjacent image block can be acquired in the order of D3 ⁇ E3, and the detected motion information of the first available adjacent image block is used as the motion information vcp2 of the control point CP2.
  • the motion information of each adjacent image block can be acquired in the order of A3 ⁇ B3, and the detected motion information of the first available adjacent image block is used as the motion information vcp3 of the control point CP3.
  • the process of determining the motion information of the control point CP2 and the control point CP3 is similar to the process of determining the motion information of the control point CP1. For details, refer to the description of the determination of the motion information of the control point CP3.
  • the motion information of the adjacent image block T1 is used as the motion information vcp4 of the control point CP4.
  • control points of the current image block to be processed are combined to obtain a multi-group of motion information of n control points.
  • the motion information of the two control points is constructed, the motion information of the two control points CP1, CP2, CP3, and CP4 are combined, and the resulting control point motion information binary includes: (vcp1, vcp2), (vcp1, vcp3), (vcp1, vcp4), (vcp2, vcp3), (vcp2, vcp4), (vcp3, vcp4).
  • the motion information of the three control points is constructed, the motion information of the three control points in the above control points CP1, CP2, CP3, and CP4 are combined, and the resulting triple of motion information of the control points includes: (vcp1, vcp2, vcp3), (vcp1, vcp2, vcp4), (vcp2, vcp3, vcp4), (vcp1, vcp3, vcp4).
  • control point motion information is constructed, the motion information of the three control points in the above control points CP1, CP2, CP3, and CP4 are combined, and the resulting quaternion of control point motion information is: (vcp1, vcp2 , Vcp3, vcp4).
  • the candidate motion vector list of control points constructed by the above method is used to determine the motion information of the sub-blocks of the current image block to be processed.
  • the method of constructing the candidate motion information list of the control point at the encoding end is the same as that at the decoding end.
  • Step 2 Determine the target motion information of the n1 control points of the current image block to be processed from the candidate motion information list of the current image block to be processed.
  • each candidate motion information multi-group in the candidate motion information list is used to adopt the above affine motion model (refer to the following (Related description) Obtain the motion vector of each sub-block in the current image block to be processed, and then obtain the pixel value of the position in the reference frame pointed by the motion vector of each sub-block as its predicted value, and perform affine transformation motion compensation.
  • the encoding end calculates the average value of the difference between the original value and the predicted value of each pixel in the current image block to be selected, and selects the candidate motion information multiple group corresponding to the smallest average value as the optimal candidate motion information combination, In other words, the encoding end determines an optimal candidate motion information multi-group from the candidate motion information list, and uses the optimal candidate motion information multi-group as the target motion information of n1 control points of the current image block to be processed, Further, the encoding end transmits the index number (denoted as affine, Merge, index) in the candidate motion information list of the optimal candidate motion information multi-group to the decoding end.
  • the decoding end parses the code stream to obtain the optimal index of the candidate motion information multi-group in the candidate motion information list, so that the decoding end combines the optimal candidate motion information corresponding to the index in the candidate motion information list of n1 control points Multivariate groups serve as target candidate motion information for n2 control points.
  • Step 3 According to the target motion information of the n1 control points of the current image block to be processed, adopt the affine motion model to determine the motion information of one or more sub-blocks of the current image block to be processed.
  • commonly used non-translational motion models include a 4-parameter affine motion model or a 6-parameter affine motion model.
  • the 4-parameter affine motion model is:
  • (vx, vy) composed of vx and vy is the motion vector of the sub-block
  • (x, y) is the coordinates of the sub-block (specifically the coordinates relative to the upper left vertex pixel of the current image block to be processed)
  • a 1 , a 2 , a 3 , and a 4 are the four parameters of the affine motion model.
  • This parameter is related to the motion information of the two control points of the current image block to be processed.
  • the two control points are control points, respectively M0 and M1 according to the motion information of the control point M1 and the control point M2, the motion information of the sub-block is:
  • (vx 0 , vy 0 ) is the motion vector of the control point M1
  • (vx 1 , vy 1 ) is the motion vector of the control point M2
  • w is the width of the current image block to be processed.
  • the 6-parameter affine motion model is:
  • a 1 , a 2 , a 3 , a 4 , a 5 , and a 6 are the parameters of the affine transformation model. This parameter is related to the motion information of the target control point. If the above target control point includes three control points Respectively for the above control points M0, M1 and M3, according to the motion information of the control point M1, the control point M2 and the control point M3, the motion information of the target pixel in the first sub-block is:
  • (vx 0 , vy 0 ) is the motion vector of the control point M1
  • (vx 1 , vy 1 ) is the motion vector of the control point M2
  • (vx 2 , vy 2 ) is the motion vector of the control point M3.
  • Step 4 Determine the prediction blocks of the one or more sub-blocks according to the motion information of the one or more sub-blocks of the current image block to be processed, and then obtain the inter prediction block of the current to-be-processed image block.
  • the motion information of the sub-blocks can represent that the sub-blocks of the current image block to be processed can be obtained by offsetting the sub-blocks of the reconstructed image block, therefore, each sub-block in the current image block to be processed
  • the motion information of each block quickly determines the prediction information (ie, prediction block) of each sub-block.
  • the current image block to be processed is determined
  • the reference block pointed to by the motion vector in the motion information of the sub-block, and the reference block is used as the prediction block of the sub-block of the current image block to be processed, and all the sub-blocks are obtained according to the above prediction method for all sub-blocks of the current image block to be processed
  • the prediction block of is the inter prediction block of the current image block to be processed.
  • the affine AMVP mode is used to perform inter prediction on the current image block to be processed:
  • Step 1 Construct a candidate motion information list of the control points of the current image block to be processed.
  • the method of constructing the candidate motion information list of the control point in the affine AMVP mode is similar to the method of constructing the candidate motion information list of the control point in the above affine merge mode.
  • the relevant description of the above embodiment please refer to the relevant description of the above embodiment. Repeat again.
  • Step 2 According to the candidate motion information list of the current image block to be processed, determine the target motion information of the n1 control points of the current image block to be processed.
  • each candidate motion information multi-group in the candidate motion information list is used to adopt the above affine motion model (refer to the following (Related description) Obtain the motion vector of each sub-block in the current image block to be processed, and then obtain the pixel value of the position in the reference frame pointed by the motion vector of each sub-block as its predicted value, and perform affine transformation motion compensation.
  • the encoding end calculates the average value of the difference between the original value and the predicted value of each pixel in the current image block to be selected, and selects the candidate motion information multiple group corresponding to the smallest average value as the optimal candidate motion information combination,
  • the optimal candidate motion information multi-group is used as the predicted value of the motion information of the n1 control points of the current image block to be processed, and the encoding end uses the motion vector (referred to as the control point's) in the predicted value of the motion information of the control point.
  • Motion vector prediction value as a search starting point to perform motion search within a certain search range to obtain the motion vectors (CPMV) of the n1 control points, and obtain the motion vectors of the control points and the motion vector predictions of the control points
  • the difference between the values (control points, motions, vectors, differences, CPMVD), and then the encoding end transmits the index of the optimal candidate motion information multi-group in the candidate motion information list and the CPMVD to the decoding end.
  • the decoder parses the code stream to obtain the optimal index and CPMVD of the candidate motion information multi-group in the candidate motion information list, so that the decoder ends the optimal candidate corresponding to the index in the candidate motion information list of n1 control points
  • the motion information multi-group is used as the candidate motion information prediction value of n1 control points
  • the sum of the candidate motion information prediction value of n1 control points and CPMVD is used as the target motion information of n1 control points.
  • Step 3 According to the target motion information of the n1 control points of the current image block to be processed, adopt the affine motion model to determine the motion information of one or more sub-blocks of the current image block to be processed.
  • Step 4 Determine the prediction blocks of the one or more sub-blocks according to the motion information of the one or more sub-blocks of the current image block to be processed, and then obtain the inter prediction block of the current to-be-processed image block.
  • Step 3 and step 4 can refer to the description of step 3 and step 4 in the above affiliate mode, which will not be repeated here.
  • the process of performing inter prediction on the current image block to be processed using the ATMVP mode includes:
  • Step 1 Determine the motion information of the current image block to be processed.
  • Step 2 According to the motion information of the current image block to be processed and the sub-block to be processed in the image block to be processed, determine the corresponding sub-block of the sub-block to be processed in the reference image;
  • Step 3 Determine the motion information of the current sub-block according to the motion information of the corresponding sub-block.
  • the motion information of the corresponding sub-block is determined, and the current motion information of the sub-block to be processed is determined.
  • Step 4 Perform motion compensation prediction on the sub-block to be processed according to the motion information of the sub-block to be processed to obtain the prediction block of the sub-block to be processed, and obtain the frame of the current image block to be processed based on the prediction blocks of all sub-blocks of the current image block to be processed Inter prediction block.
  • the average value is obtained and converted into the current motion information of each sub-block.
  • the sub-block motion vector P(x, y) is calculated using the horizontal interpolation motion vector and the horizontal interpolation motion vector:
  • the horizontal interpolation motion vector and the horizontal interpolation motion vector are calculated by using the motion vectors on the left, right, upper and lower sides of the current sub-block:
  • L(-1, y) and R(W, y) represent the motion vectors at the left and right positions of the current sub-block
  • A(x, -1) and B(x, H) represent above and below the current sub-block Motion vector in side position.
  • the left motion vector L and the upper motion vector A are obtained from the spatial neighboring blocks of the current image block to be processed.
  • the motion vectors L(-1, y) and A(x, -1) of the image block at preset positions (-1, y) and (x, -1) are obtained according to the sub-block coordinates (x, y).
  • the right motion vector R(W, y) and the lower motion vector B(x, H) are extracted by the following methods:
  • All motion vectors used in the calculation are scaled to point to the first reference frame in a specific reference frame queue.
  • the sub-block fusion mode refers to the mixed use of the above-mentioned motion information, for example, the above-mentioned inherited control point motion vector prediction method, constructed control point motion vector prediction method, motion vector prediction method in ATMVP mode or motion vector in PLANER mode Two or more of the prediction methods are used to construct a sub-block fusion candidate list (sub-block based candidate list).
  • Step 1 Construct a candidate list of the current image blocks to be processed.
  • the sub-block fusion candidate list (which may be referred to as the candidate list for short) is introduced ) Construction process.
  • the motion information obtained by the motion vector prediction method in the above ATMVP mode (the motion information is the motion information of the sub-block), and the inherited control point motion vector prediction method obtained the motion information (the motion information includes multiple candidate motion information multi-groups)
  • the control point motion vector prediction method constructed above (the motion information includes multiple candidate motion information multi-groups) is stored in the candidate list in a preset order (for example, ATMVP first, then inherited, and then constructed).
  • the sub-block fusion candidate list is pruned and sorted according to specific rules, and it can be truncated or filled to a specific number.
  • Step 2 Determine target candidate motion information from the candidate list.
  • the encoding end use the motion information of each candidate in the fusion candidate list to obtain the predicted value of the pixel of the current image block to be processed, and calculate the difference between the original value and the predicted value of each pixel in the current image block to be processed The average value of, selects the candidate motion information corresponding to the smallest average value of the difference, encodes the index number indicating the position of the candidate motion information in the candidate motion information list into the code stream and sends it to the decoding end.
  • the index number is parsed, and the motion information of the control point or the motion information of the sub-block (if in the ATMVP or PLANAR mode) is determined as the target candidate motion information from the candidate list according to the index number.
  • Step 3 According to the target candidate motion information, each prediction block of one or more sub-blocks of the current image block to be processed is obtained, and then an inter prediction block of the current image block to be processed is obtained.
  • the motion information of one or more sub-blocks is determined according to the affine motion model in the above affine merge mode, and based on the motion information of one or more sub-blocks, a Or prediction blocks of multiple sub-blocks, and then an inter prediction block of the current image block to be processed is obtained. If the target candidate motion information is the motion information of the sub-block, the prediction block of the sub-block is obtained based on the motion information of the sub-block, and then the inter prediction block of the current image block to be processed is obtained.
  • the triangle PU method refers to dividing the current image block to be processed into two triangle prediction units, and encoding and decoding to construct a unidirectional candidate motion information list corresponding to each triangular prediction unit, and then based on each triangle in the unidirectional candidate motion information list For the candidate motion information of the prediction unit, perform motion compensation on each triangle prediction unit to obtain the prediction value of each triangle prediction unit, and adaptively weight the pixels included in the hypotenuse region to obtain the prediction block of the current image block to be processed.
  • the triangular prediction unit method is generally only applicable to skip mode or merge mode.
  • the method for dividing the current image block to be processed into two triangular prediction units may include a division method of upper left and lower right and a division method of upper right and lower left.
  • (a) in FIG. 11 is a division method of upper left and lower right (that is, from upper left to right) (Bottom division)
  • (b) in FIG. 11 is a division method of upper right and lower left (that is, division from upper right to lower left).
  • the process of performing inter prediction on the current image block to be processed by using the triangle PU method includes:
  • Step 1 Construct a first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current image block to be processed and a second unidirectional candidate motion information list corresponding to the second triangular prediction unit of the current image block to be processed.
  • the unidirectional candidate motion information list in the triangular prediction unit mode may generally include 5 candidate motion information, and these candidate motion information may be passed through 7 neighboring neighboring blocks (5 space neighbors) as shown in FIG. 6 Block, 2 time-domain neighboring blocks), where the neighboring blocks numbered 1, 2, 3, 4, and 5 are airspace neighboring blocks, and the neighboring blocks numbered 6 and 7 are time-domain neighboring blocks .
  • the preset order may be the bidirectional prediction motion vector of L0, the bidirectional prediction motion vector of L1 and the motion of L0 and L1
  • the vector average value is used to obtain a first unidirectional candidate motion information list corresponding to the first triangular prediction unit and a second unidirectional candidate motion information list corresponding to the second triangular prediction unit.
  • the supplementary zero motion vector 0 is added to the one-way candidate motion information list.
  • the motion information predicted by the forward direction is used to predict the predicted value of the pixel of one triangular prediction unit
  • the motion information predicted by the backward direction is used to predict the predicted value of the pixel of another triangular prediction unit.
  • the encoder selects the best motion information through traversal. For example, it can be achieved by the following ⁇ m,i,j ⁇ method:
  • the first m represents the upper left to lower right division or the lower left to upper right division.
  • the second i means that the first triangle prediction unit uses the forward motion information of the i-th candidate motion information
  • the third bit j means that the second triangle prediction unit uses the rear of the j-th candidate prediction motion vector.
  • Step 2. Determine the target motion information of the first triangular prediction unit according to the first unidirectional candidate motion information list, and determine the prediction value of the first triangular prediction unit according to the target motion information of the first triangular prediction unit.
  • Step 3 Determine the target motion information of the second triangle prediction unit according to the second unidirectional candidate motion information list, and determine the prediction value of the second triangle prediction unit according to the target motion information of the second triangle prediction unit.
  • Step 4 According to the prediction value of the first triangular prediction unit and the prediction value of the second triangular prediction unit, adaptively weight the hypotenuse region of the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the pixels included in the hypotenuse region are adaptively weighted to obtain the final predicted value of the current image block to be processed. For example, in the left image in FIG.
  • the predicted value of the pixel at the 2 position may be 2/8 ⁇ P_1+6/8 ⁇ P_2, where 2/8 corresponds to the pixel at the 2 position in P1 (upper right area)
  • the weighted coefficient of the predicted value, 6/8 corresponds to the weighted coefficient of the predicted value of the pixel at the 2 position in P2 (lower left area)
  • P_1 represents the predicted value of the pixel at the 2 position in P1
  • P_2 represents the prediction of the pixel at the 2 position in P2 value.
  • two sets of weighting coefficients are available for the size of the hypotenuse region, for example:
  • the first set of weighting coefficients are: ⁇ 7/8,6/8,4/8,2/8,1/8 ⁇ and ⁇ 7/8,4/8,1/8 ⁇ , which are used for brightness points and colors, respectively Degree point.
  • the second set of weighting coefficients ⁇ 7/8, 6/8, 5/8, 4/8, 3/8, 2/8, 1/8 ⁇ and ⁇ 6/8, 4/8, 2/8 ⁇ respectively Used for luma and chroma points.
  • one of the above two weighting coefficients can be used for encoding/decoding.
  • the second group of weights is selected Coefficient, otherwise the first set of weighting coefficients is used.
  • the intra-inter prediction mode may be used to predict the current image block to be processed.
  • the inter prediction mode in the existing intra prediction modes may be the merge mode.
  • the inter prediction mode may also be any of the inter prediction modes mentioned in the above embodiments, which is not limited in the embodiments of the present application. The following briefly introduces the intra prediction mode.
  • an identification bit for example, mh_intra_luma_mpm_flag[x0][y0]
  • this identification bit indicates from the intra-candidate list (also called the candidate intra-prediction mode list)
  • One of the intra prediction modes is selected in the screen, and an intra prediction mode is selected from the intra candidate list according to the intra mode index, and the current image block to be processed is intra predicted based on the selected intra prediction mode Obtain the intra prediction block of the current block to be processed.
  • the candidate prediction modes in the intra candidate list are derived from four intra prediction modes, which are a direct current mode (DC mode), a plane (PLANAR) mode, a horizontal mode, and a vertical mode.
  • the length of the intra-candidate list can be set to 3 or 4.
  • the horizontal candidate mode is excluded from the intra-candidate list.
  • the length of the intra-candidate list is 3, and the intra-candidate list includes the DC mode, PLAnar mode, and vertical mode.
  • the vertical mode is excluded from the intra-candidate list.
  • the length of the intra-candidate list is 3, and the intra-candidate list includes the DC mode, PLAnar mode, and horizontal mode.
  • the sub-block fusion mode is introduced in inter prediction, and the triangle PU method is introduced in intra prediction.
  • the code stream is parsed to obtain the identification of the sub-block fusion mode. If it is determined that the current image block to be processed adopts the inter-frame prediction of the sub-block fusion mode, the sub-block fusion mode is used to inter-frame predict the current image block to be processed There is no need to use the intra prediction mode. Only when it is determined that the current image block to be processed does not use the sub-block fusion mode of inter prediction, the intra frame prediction mode is used to perform intra prediction on the current image block to be processed.
  • the embodiments of the present application provide a video image decoding and device, which can apply a sub-block fusion mode to an intra-frame inter prediction method, and can achieve compatibility of multiple prediction modes, thereby improving decoding efficiency.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repetition is not repeated.
  • the video image decoding method provided by the present application will be described in detail from the perspective of decoding based on the above introduction to the multiple prediction modes in the inter prediction mode and with reference to the drawings. Specifically, it may be executed by the decoder 30, or implemented by the entropy decoding unit and the prediction processing unit in the decoder, or executed by the processor.
  • the video image decoding method provided by the embodiment of the present application may include:
  • the sub-block prediction mode may include a sub-block fusion mode (Sub-block based merger mode), an affine merge prediction mode (affine merge mode), an affine advanced motion vector prediction mode (affine AMVP mode), advanced Any one of the time domain motion vector prediction modes (ATMVP mode), in practical applications, any seed block prediction mode can be selected from the above modes to perform inter prediction on the current image block to be processed.
  • a sub-block fusion mode sub-block based merger mode
  • an affine merge prediction mode affine merge mode
  • affine AMVP mode affine advanced motion vector prediction mode
  • ATMVP mode advanced Any one of the time domain motion vector prediction modes
  • the second identifier is used to indicate whether the current image block to be processed adopts the intra inter prediction mode.
  • the second flag is used to indicate whether the current image block to be processed is allowed to adopt the intra inter prediction mode.
  • the above condition for parsing the second identifier may further include:
  • the above analysis of the first identification and the analysis of the second identification are independent processes.
  • the order of parsing the first identification and the second identification is not limited, that is, the foregoing S101 may be executed first, and then S102 may be executed. , Or execute S102 first, and then execute S101, or execute S101 and S102 at the same time.
  • the third identifier is used to indicate the intra prediction mode adopted by the current image block to be processed. It should be understood that the third identifier may be a combination of one or more identifiers in the intra prediction mode. In other words, parsing the third identifier may It includes parsing the third one identification. When the third one identification is true, the third second identification is further analyzed. By analyzing the third one identification and the third second identification, the intra prediction mode used by the current image block to be processed can be determined.
  • the third A flag is used to indicate whether an intra-frame mode is selected from the intra-candidate list. For example, the third flag is mh_intra_luma_mpm_flag[x0][y0].
  • An intra-prediction mode is selected in the intra-candidate list, and then a third second identifier is parsed, and the third second identifier is an intra-mode index used to indicate an intra-target prediction mode in the intra-candidate list, for example, the third second The identifier is mh_intra_luma_mpm_idx[x0][y0].
  • the above condition for parsing the third identifier may further include:
  • the width of the current image block to be processed is less than or equal to 2 times its height or the height of the current image block to be processed is less than or equal to 2 times its width .
  • any one of the five seed block prediction modes described in the above embodiments may be used to perform inter prediction on the current image block to be processed, and the specific prediction process will not be described in detail here.
  • S105 Perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain an intra prediction block of the current image block to be processed.
  • the intra prediction mode indicated by the third identifier when the length of the intra candidate list is 3, the intra prediction mode indicated by the third identifier may be one of the DC mode, PLANER mode, or vertical mode, or DC mode, PLANOR One of the mode or the horizontal mode; when the length of the intra candidate list is 4, the intra prediction mode indicated by the third identifier may be one of the DC mode, PLANER mode, vertical mode, or horizontal mode.
  • the process of performing intra prediction on the current image block to be processed can refer to related existing technologies, and the embodiments of the present application will not describe them in detail.
  • S104 may be executed first, and then S105, or S105 may be executed first, and then S104, or S104 and S105 may be executed simultaneously.
  • S106 Perform weighted summation on the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed.
  • weighting and summing the inter prediction block and the intra prediction block includes: weighting and summing the pixel values of the inter prediction block and the co-located pixel values of the intra prediction block, that is,
  • PredB(i,j) ⁇ 0 PredA(i,j)+ ⁇ 1 PredC(i,j)
  • PredB(i,j) represents the predicted value of the pixel at the position of the coordinate (i,j) in the prediction block of the current image block
  • PredA(i,j) represents the position of the coordinate (i,j) in the intra prediction block
  • the predicted value of the pixel of PredC(i,j) represents the predicted value of the pixel at the position of the coordinate (i,j) in the inter prediction block
  • the weighted summation of the inter prediction block and the intra prediction block may include the following two cases:
  • the intra prediction mode is DC prediction mode or Planar prediction mode
  • the height of the current image block to be processed is less than M pixels
  • the current image to be processed When the width of the image block is less than N pixels, the inter prediction block and the intra prediction block are weighted and summed according to the following S1061 to determine the prediction block of the current image block to be processed.
  • S1061 Determine the prediction block of the current image block to be processed based on the sum of the product of the intra-weighted coefficient and all pixel values of the intra-predicted block and the product of the inter-weighted coefficient and all pixel values of the inter-predicted block, where the frame
  • the inner weighting coefficient is the same as the inter-frame weighting coefficient
  • M and N are positive integers
  • M and N are the same or different.
  • the inter prediction mode (for example, the sub-block prediction mode and the triangle PU method) may be used.
  • Each prediction pixel value in the block has the same weighting coefficient, which is the above-mentioned inter-frame weighting coefficient; the weighting coefficient of each prediction pixel value in the intra-prediction block obtained by using the intra-prediction mode indicated by the third flag is the same.
  • the weighting coefficient is the aforementioned intra-frame weighting coefficient, and the intra-frame weighting coefficient is equal to the inter-frame weighting coefficient.
  • M may be 4, and N may also be 4.
  • M and N may also be other positive integers, which are not limited in the embodiments of the present application.
  • the sub-block fusion mode is used to obtain the inter prediction block of the current image block to be processed, it can be seen that the current image block to be processed is divided into multiple sub blocks, that is, the inter prediction block includes the prediction blocks of multiple sub blocks, and the inter prediction block Each sub-block in the weighting coefficient is the same (both inter-frame weighting coefficients).
  • triangle prediction unit triangle PU
  • division method of the upper left and the lower right is used to divide the current image block to be processed as shown in (a) in FIG. 14
  • Two triangular prediction units PU1 and PU2 (using the predicted luminance point as an example for illustration), after obtaining the prediction block of PU1 and the prediction block of PU2, according to the prediction value of PU1 and the prediction value of PU2, the slope of the current image block to be processed
  • the side regions are adaptively weighted.
  • the obtained inter prediction block includes three regions, which are denoted as P1, P2, and P3, respectively.
  • P1 is a part of PU1, and all predicted pixel values of P1 are equal to the pixel values of the corresponding region in PU1;
  • P2 is a part of PU2, and all pixel values of P2 are equal to the pixel values of the corresponding region in PU2;
  • P3 is For the hypotenuse area, the pixel value of P3 is the weighted result of the pixel value of the corresponding area in PU1 and the pixel value of the corresponding area in PU2 (the weighting coefficients of the pixels in PU1 and the pixels in the same position in PU2 may be different or the same, specific (For the weighting process, refer to the detailed description of the triangle PU method in the above embodiment).
  • the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than or equal to N pixels , Performing weighted summation on the inter prediction block and the intra prediction block according to the following S1062a or S1062b.
  • the intra prediction mode is the horizontal prediction mode, based on the product of the intra-weighted coefficients in the i-th weighted coefficient pair and all pixel values corresponding to the i-th partition of the intra-predicted block and the i-th weighted coefficient pair
  • the intra prediction block includes n partitions
  • the inter prediction block also includes n partitions.
  • the i th partition of the intra prediction block and the i th partition of the inter prediction block have the same size and position Corresponding (that is, co-located), the i-th weighting coefficient pair corresponds to the i-th partition, and performs weighted summation on each sub-region in the n partitions of the intra prediction block and the co-located partitions in the n partitions of the inter prediction block, namely The weighted sum of intra prediction block and inter prediction is obtained quickly.
  • the weighting coefficient pair corresponding to partition 1 is (w1, w2), where w1 is the weighting coefficient corresponding to partition 1 in the intra prediction block, and w2 is the partition in the inter prediction block
  • the weighting coefficient corresponding to 1 the process of weighting and summing the weighting coefficient pairs (w1, w2) respectively corresponding to partition 1 in the intra prediction block and partition 1 in the inter prediction block is similar to the principle described in the above formula (11).
  • the height of the i-th partition is the same as the height of the current image block to be processed, which means that the n partitions are divided into n vertically divided partitions, that is, when the intra prediction mode is a horizontal prediction mode, The intra prediction block and the inter prediction block are divided into n partitions in a vertical manner.
  • n may be 4, that is, the intra prediction block and the inter prediction block respectively include 4 partitions.
  • the value of n may also be other values, which is not limited in this embodiment of the present application.
  • the size of the n partitions may be the same.
  • the intra prediction block and the inter prediction block include four partitions of the same size.
  • the size of the n partitions may be different. The embodiments of the present application are not limited.
  • the intra prediction block and the inter prediction block respectively include 4 partitions of the same size
  • there are corresponding 4 weighting coefficient pairs and the 4 weighting coefficient pairs are sequentially written as: (w_intra 1 , w_inter 1 ) , (W_intra 2 , w_inter 2 ), (w_intra 3 , w_inter 3 ) and (w_intra 4 , w_inter 4 ), where (w_intra 1 , w_inter 1 ) is used for the area closest to the reference point, (w_intra 4 , w_inter 4 ) In the area farthest from the reference point.
  • the four weighting coefficient pairs are:
  • the inter prediction block includes 4 partitions of the same size (the first partition is illustrated in FIG. 15 , Denoted as partition 1), and this partition 1 includes one or more sub-blocks.
  • the inter-prediction block obtained by combining the sub-block fusion mode and the intra-prediction block obtained by the intra-prediction mode indicated by the third identifier is weighted And, get the predicted pixel value of partition 1 (may be called the composite prediction value of partition 1), and similarly get the composite prediction values of partition 2, partition 3, and partition 4, and combine the composite prediction values of the four partitions to get the current The prediction block of the image block.
  • the triangle prediction unit (triangle PU) method is used to obtain the inter prediction block of the current image block to be processed, and if the division method of upper left and lower right is adopted, it is divided into two triangular prediction units PU1 and PU2 as shown in FIG. 16 ( Taking the predicted luminance point as an example), suppose the inter prediction block includes 4 partitions of the same size (the second partition is shown in FIG. 15 and is denoted as partition 2).
  • partition 2 includes Partial area of P1, partial area of P2 and partial area of P3, it should be understood that P1 is a part of PU1, and all predicted pixel values of P1 are equal to pixel values of corresponding areas in PU1; P2 is a part of PU2, P2 All pixel values are equal to the pixel values of the corresponding area in PU2; P3 is the hypotenuse area, and the pixel value of P3 is the weighted result of the pixel value of the corresponding area in PU1 and the pixel value of the corresponding area in PU2 (pixels in PU1 and PU2
  • the weighting coefficients of the co-located pixels may be different or the same. For the specific weighting process, refer to the detailed description of the triangle PU method in the foregoing embodiment).
  • the intra prediction mode is the vertical prediction mode, based on the product of the intra-weighted coefficients in the j-th weighted coefficient pair and all pixel values corresponding to the j-th partition of the intra-predicted block and the j-th weighted coefficient pair The sum of the product of the inter-frame weighting coefficients and all the pixel values corresponding to the j-th partition of the inter-predicted block in to determine the predicted value of the j-th partition of the image block to be processed, thereby obtaining the predicted block of the current image block to be processed,
  • the intra prediction block includes m partitions
  • the inter prediction block also includes m partitions.
  • the jth partition of the intra prediction block and the jth partition of the inter prediction block have the same size and position Corresponding (that is, co-located), the jth weighting coefficient pair corresponds to the j-th partition, and performs a weighted summation on each sub-region in the n partitions of the intra prediction block and the co-located partitions in the n partitions of the inter prediction block, namely The weighted sum of intra prediction block and inter prediction is obtained quickly.
  • the width of the jth partition is the same as the width of the current image block to be processed, which means that the m partitions are divided into m horizontal partitions, that is, when the intra prediction mode is the vertical prediction mode, The intra prediction block and the inter prediction block are respectively divided into m partitions in a horizontal manner.
  • the above m may be 4, that is, the intra prediction block and the inter prediction block respectively include 4 partitions.
  • the value of m may also be other values, which is not limited in this embodiment of the present application.
  • the size of the m partitions may be the same.
  • the intra prediction block and the inter prediction block include four partitions of the same size.
  • the size of the m partitions may be different. The embodiments of the present application are not limited.
  • the video image decoding method provided by the embodiment of the present application further includes:
  • the fourth flag is used to indicate whether the inter prediction of the current image block to be processed adopts a triangle prediction unit (triangle PU) mode.
  • the third flag is used to indicate whether the current to-be-processed image block allows inter prediction.
  • PU mode exemplary, in standard text or code, the fourth identifier may be represented by the syntax elements skip_triangle_flag[x0][y0] or triangle_flag[x0][y0] or merge_triangle_flag[x0][y0]. Take merge_triangle_flag[x0][y0] as an example.
  • it indicates that the inter prediction of the current image block to be processed does not use the triangle PU method.
  • the analysis of the fourth identification condition may include:
  • the first identifier needs to be parsed first, and the slave code is executed only when the first identifier indicates that inter prediction is not performed for the current image block to be processed and the sub-block prediction mode is not used. Parse the fourth identifier in the stream. That is, when the first indicator indicates that inter prediction of the current image block to be processed does not adopt the sub-block prediction mode, the video image decoding process shown in FIG. 13 is performed, and when the first indicator indicates that the current image block to be processed is inter-framed When the prediction uses the sub-block prediction mode, the operation of parsing the fourth flag is not performed, that is, the video image decoding process shown in FIG. 14 is not performed, but the video image decoding process shown in FIG. 13 is performed.
  • the first indicator indicates that the sub-block prediction mode is used for the inter prediction of the current image block to be processed
  • the sub-block prediction mode is used to perform the inter prediction on the current image block to be obtained, and the inter prediction block is obtained;
  • the first indicator indicates that the inter prediction of the current image block to be processed does not use the sub-block prediction mode, and the fourth indicator is parsed to obtain, and when the fourth indicator indicates that the inter prediction of the current image block to be processed adopts the triangular prediction unit method, then Using the triangle prediction unit method to perform inter prediction on the current image block to be obtained, the inter prediction block is obtained.
  • the video image decoding process shown in FIG. 17 is used for weighted summation.
  • the inter prediction block is obtained by using the triangular prediction unit, and is no longer obtained by using the sub-block prediction mode, that is, S104 in FIG. 13 is replaced with S107 and S108 in FIG. 17.
  • the video image decoding method provided in this embodiment of the present application further includes:
  • the first condition may further include: the length of the candidate list is greater than 1, for example, MaxNumMergeCand>1.
  • the fifth identifier is used to indicate the first inter prediction mode.
  • the first inter prediction mode may be a merge mode or an AMVP mode, or other prediction modes different from the above sub-block prediction mode and triangle PU mode.
  • the fifth identifier may be an index of target motion information in a candidate list (including a candidate motion information multi-group of control points), for example, the fifth identifier may be merge_ixd.
  • the current image block to be processed is predicted according to the fifth identifier (exemplarily, the fifth identifier in standard text or code can be represented by a syntax element such as merge_idx)
  • the fifth identifier in standard text or code can be represented by a syntax element such as merge_idx
  • the triangular prediction unit method is designed in the grammatical structure, and the triangular prediction unit method is allowed.
  • the fourth logo needs to be parsed (of course, when parsing the fourth logo,
  • the first indicator needs to be parsed first, and the first indicator indicates that inter-prediction is not used for the current image block to be processed.
  • the fourth indicator indicates that inter-prediction is not used for the current image block to be processed, triangular prediction is not used.
  • the fifth identifier is parsed from the code stream. That is, when the fourth flag indicates that inter prediction of the current image block to be processed does not use the sub-block prediction mode, the video image decoding process shown in FIG.
  • the fourth indicator indicates that the inter prediction for the current image block to be processed adopts the triangular prediction unit method
  • the inter prediction of the current image block to be processed is performed using the triangular prediction unit method to obtain the inter prediction block;
  • the fourth indicator indicates that the inter prediction of the current image block to be processed does not use the triangular prediction unit method
  • the fifth indicator is parsed, and the first inter prediction mode (such as merge mode) indicated by the fifth indicator indicates the current pending Processing image blocks to perform inter prediction to obtain inter prediction blocks.
  • the inter prediction block used for weighted summation is the first The inter-prediction mode is obtained without using the triangular prediction unit, that is, S108 in FIG. 18 is replaced with S109 and S110 in FIG. 17.
  • the video image decoding method provided in this embodiment of the present application may further include:
  • the above-mentioned first condition includes at least: the first identifier indicates that the inter prediction of the current image block to be processed does not adopt the sub-block prediction mode.
  • the first condition for parsing the fifth identifier from the code stream may further include that the length of the candidate list is greater than 1, for example, MaxNumMergeCand>1.
  • the design of the grammatical elements does not consider the triangle PU method (that is, the triangle PU method is not designed), or does not satisfy the permission of the triangle PU method.
  • the fifth flag still needs to be parsed, which causes decoding redundancy.
  • the fifth flag is parsed, otherwise the first flag is not parsed Five signs, so you can avoid decoding redundancy.
  • the video image decoding method may further include S104a:
  • the above-mentioned first identifier indicates that the sub-block prediction mode is adopted for inter prediction of the current image block to be processed, and a sixth identifier needs to be parsed.
  • the sixth identifier may be corresponding to the target candidate motion information in the sub-block fusion mode The index in the candidate list.
  • the above condition for parsing the sixth identifier from the code stream may include: the first identifier indicates that the inter prediction of the current image block to be processed adopts the sub-block prediction mode, and the candidate list corresponding to the sub-block fusion mode
  • the length of is greater than 1, for example, MaxNumSubblockMergeCand>1, that is, if the first indicator indicates that the current image block to be inter-frame predicted adopts the sub-block prediction mode, it is determined whether the length of the candidate list is greater than 1, and the length of the candidate list is greater than At 1 o'clock, the sixth mark is parsed.
  • the first identifier indicates that the sub-block prediction mode is adopted for the inter prediction of the current image block to be processed, and the length of the above candidate list is equal to 1, there is no need to parse the sixth identifier (also It is understood that the sixth identifier does not exist). At this time, one candidate motion information in the candidate list is directly used as the target candidate motion information.
  • S104 may specifically include S1041-S1042:
  • S1041 In the sub-block fusion mode, determine target candidate motion information from the candidate list corresponding to the sub-block fusion mode according to the sixth identifier.
  • S1042 Perform inter prediction on the current image block to be processed according to the target candidate motion information to obtain an inter prediction block of the current image block to be processed.
  • the operation of parsing the fourth identifier is no longer performed.
  • the first identifier indicates that the inter prediction of the current image block to be processed adopts the sub-block prediction mode, it can be directly determined or inferred that the inter prediction of the current image block to be processed does not use a triangular prediction unit (triangle PU) )the way.
  • the current identifier is determined according to the sixth identifier in the sub-block fusion mode Process image blocks for inter prediction. That is to say, when the first indicator indicates that the sub-block prediction mode is used for the inter-frame prediction of the current image block to be processed, the relevant identification of parsing triangle PU mode is not performed, and the current image block to be processed is directly framed according to the sub-block prediction mode Forecast.
  • the first identifier indicates that the inter prediction of the current image block to be processed does not use the sub-block prediction mode
  • the parsed fourth identifier indicates that the inter prediction of the current image block is not to use the triangle PU method.
  • Parse the fifth logo otherwise, the fifth logo is not parsed, that is, the relevant logo of the merge mode is not executed, but the triangle PU method is used to perform inter prediction on the current image block to be processed; or the triangle PU method is not considered (such as not When the triangle PU method is designed or the condition of using the triangle PU method is not satisfied)
  • the first indicator indicates that the fifth indicator is only parsed when the inter prediction of the current image block to be processed does not use the sub-block prediction mode, otherwise the fifth Flag, that is, the relevant flag of parsing merge mode is not executed, but the sub-block prediction mode is directly adopted to perform inter prediction on the current image block to be processed.
  • the decoding order of the first logo, the second logo, the third logo, the fourth logo, the fifth logo, and the sixth logo may not be limited on the decoding side.
  • the video image decoding methods involved in the related content of FIG. 13, FIG. 17 and FIG. 18 are based on the same inventive concept. The embodiments of the method can refer to each other, and the repetition is not repeated here.
  • the video image decoding method may include:
  • S201 Parse the code stream to obtain identification information, where the identification information includes a first identification, a second identification, and a third identification.
  • the first identifier is used to indicate whether the sub-block prediction mode is used for inter prediction of the current image block to be processed; the second identifier is used to indicate that the current image block to be processed adopts the intra inter prediction mode, and the third identifier is used to indicate The intra prediction mode used by the current image block to be processed.
  • S202 may be executed first and then S203, or S203 may be executed first, and then S202 may be executed, or S202 and S203 may be executed simultaneously.
  • the video image decoding method provided in this embodiment of the present application may further include:
  • the identification information further includes a fourth identifier, and when the fourth identifier indicates that the inter prediction of the current image block is to be adopted
  • the inter prediction is performed on the current image block to be processed to obtain the inter prediction block of the current image block to be processed.
  • the fourth identifier is used to indicate whether the inter prediction of the current image block to be processed adopts the triangular prediction unit mode.
  • the video image decoding process shown in FIG. 19 when the first indicator indicates that inter prediction is performed on the current image block to be processed using the sub-block prediction mode, the video image decoding process shown in FIG. 19 is performed, and when the first indicator indicates that the current image block to be processed When inter prediction does not use the sub-block prediction mode, the video image decoding process shown in FIG. 20 is performed. Compared to the video image decoding process in FIG. 19, the video image decoding process shown in FIG. 20 is used for weighted summation.
  • the inter prediction block is obtained by using the triangular prediction unit, and the sub-block prediction mode is no longer used, that is, S202 in FIG. 19 is replaced with S205 in FIG. 20.
  • S203 may be executed first, and then S205, or S205 may be executed first, and then S203, or S203 and S205 may be executed simultaneously.
  • the video image decoding method provided in this embodiment of the present application may further include:
  • the identification information further includes a fourth identifier, and when the fourth identifier indicates that the inter prediction of the current image block to be processed does not When the triangular prediction unit method is used, and the current image block to be processed meets the first condition, the identification information further includes a fifth identification, and inter prediction is performed on the current image block to be processed according to the first inter prediction mode indicated by the fifth identification To obtain the inter prediction block of the current image block to be processed.
  • the fifth identifier is used to indicate the first inter prediction mode used for inter prediction of the current image block to be processed, and the first condition at least includes: the first identifier indicates that inter prediction of the current image block to be processed is not Use sub-block prediction mode.
  • the fourth flag indicates that the inter prediction of the current image block to be processed does not use the triangular prediction unit method
  • the inter prediction block used for weighted summation is obtained by using the first inter prediction mode, not It is obtained by using the triangular prediction unit, that is, S205 in FIG. 20 is replaced with S206 in FIG. 20.
  • S203 may be executed first and then S206, or S206 may be executed first, and then S203 may be executed, or S203 and S206 may be executed simultaneously.
  • the triangular prediction unit method when the triangular prediction unit method is not considered (for example, the triangular prediction unit method is not designed or the condition of using the triangle PU method is not satisfied), after parsing the code stream to obtain the first identifier, the following S207 may be performed:
  • the identification information further includes a fifth identification. According to the first inter prediction mode indicated by the fifth identification, perform inter prediction on the current image block to be processed to obtain the current image Process inter prediction blocks of image blocks.
  • the fifth flag is used to indicate the first inter prediction mode used for inter prediction of the current image block to be processed, and the first condition at least includes: the first flag indicates that inter prediction is not used for the current image block to be processed Sub-block prediction mode.
  • the identification information obtained by parsing the code stream also includes the first Six marks, which are used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode.
  • an embodiment of the present application exemplifies a method for parsing a prediction mode adopted by an image block to be processed (including parsing the first logo, the second logo, the third logo, the fourth logo, the fifth logo, or the sixth logo Partial identification) for the partial grammatical structure, see Table 1.
  • merge_subblock_idx[x0][y0] is used to indicate the index of candidate motion information of the candidate list corresponding to the selected sub-block fusion mode.
  • merge_triangle_idx[x0][y0] is used to indicate the index of candidate motion information in the candidate list corresponding to the selected triangle PU mode.
  • merge_idx[x0][y0] is used to indicate the index of candidate motion information in the candidate list corresponding to the merge mode.
  • MaxNumSubblockMergeCand indicates the maximum degree of the candidate list corresponding to the sub-block fusion mode. MaxNumMergeCand indicates the maximum length of the candidate list corresponding to the merge mode.
  • merge_subblock_flag[x0][y0] corresponds to the first identification
  • mh_intra_flag[x0][y0] corresponds to the second identification
  • the third identification may include mh_intra_luma_mpm_flag[x0][y0] in Table 1.
  • mh_intra_luma_mpm_idx[x0][y0] corresponds to merge_triangle_flag[x0][y0]
  • the fifth mark corresponds to merge_idx[x0][y0]
  • the sixth mark corresponds to merge_subblock_idx[x0][y0].
  • the video image decoding method provided by the embodiment of the present application can parse the identifier indicating the prediction mode of the sub-block (the above-mentioned first identifier) and the identifier of the inter prediction mode (the above-mentioned second identifier), and indicate at the first identifier the current image to be processed
  • the block adopts the sub-block fusion mode, and uses the sub-block prediction mode to perform inter prediction on the current image block to obtain an inter prediction block; and when the second flag indicates that the current image block to be processed adopts the intra inter prediction mode , Parsing the identifier of the intra prediction mode (the third identifier above), and performing intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain the intra prediction block; and to the intra prediction block Perform weighted summation with the inter prediction block to obtain the inter prediction block of the current image block to be processed.
  • the sub-block prediction mode can be applied to the intra prediction method, which can implement multiple prediction
  • an embodiment of the present application further provides a video image decoding device 1000, which includes an entropy decoding unit 1001, an inter prediction unit 1002, and an intra frame.
  • Prediction unit 1003 where:
  • the entropy decoding unit 1001 is used to parse the first identifier from the code stream;
  • the entropy decoding unit 1001 is also used to parse the second identifier from the code stream;
  • the entropy decoding unit 1001 is further configured to parse a third identifier from the code stream when the second identifier indicates that the current image block to be processed uses intra-frame prediction mode, and the third identifier is used to Indicating the intra prediction mode adopted by the current image block to be processed;
  • the inter prediction unit 1002 is configured to execute the current block to be processed according to the sub-block prediction mode when the first flag indicates that the sub-block prediction mode is used for the inter prediction of the current block to be processed Inter prediction, to obtain the inter prediction block of the current image block to be processed;
  • the intra prediction unit 1003 is configured to perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain an intra prediction block of the current image block to be processed;
  • the inter prediction unit 1002 is further configured to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed.
  • the entropy decoding unit 1001 is further configured to parse a fourth identifier from the code stream when the first identifier indicates that inter prediction of the current image block to be processed does not adopt a sub-block prediction mode ;
  • the inter prediction unit 1002 is further configured to: when the fourth flag indicates that the inter prediction of the current image block to be processed adopts the triangular prediction unit method, according to the triangular prediction unit method, the current to be processed The image block performs inter prediction to obtain the inter prediction block of the current image block to be processed.
  • the entropy decoding unit 1001 is also used when the fourth flag indicates that inter prediction of the current image block to be processed does not adopt the triangular prediction unit mode, and the current image block to be processed satisfies
  • a fifth identifier is parsed from the code stream.
  • the first condition includes at least: the first identifier indicates that inter prediction of the current image block to be processed does not use a sub-block prediction mode;
  • the inter prediction unit 1002 is further configured to perform inter prediction on the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier, to obtain inter prediction of the current image block to be processed Piece.
  • the entropy decoding unit 1001 is further configured to parse a fifth identifier from the code stream when the current image block to be processed meets a first condition, the first condition includes at least: the first The indicator indicates that the inter prediction of the current image block to be processed does not adopt the sub-block prediction mode;
  • the inter prediction unit 1002 is further configured to perform inter prediction on the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier, to obtain inter prediction of the current image block to be processed Piece.
  • the sub-block prediction mode includes any one of a sub-block fusion mode, an affine merge prediction mode, an affine advanced motion vector prediction mode, and an advanced time-domain motion vector prediction mode.
  • the sub-block prediction mode is the sub-block fusion mode, and when the first identifier indicates that the sub-block prediction mode is adopted for inter prediction of the current image block to be processed; the entropy decoding unit 1001 is also used to parse a sixth identifier from the code stream, and the sixth identifier is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode;
  • the inter prediction unit 1002 is specifically configured to perform inter prediction on the current image block to be processed according to the target candidate motion information in the sub-block fusion mode to obtain a frame of the current image block to be processed Inter prediction block.
  • the inter-prediction unit 1002 is specifically used to construct a first unidirectional candidate motion information list corresponding to the first triangular prediction unit of the current image block to be processed and a second unidirectional candidate corresponding to the second triangular prediction unit of the current image block to be processed Motion information list; according to the first unidirectional candidate motion information list, determine target motion information of the first triangular prediction unit, and according to target motion information of the first triangular prediction unit, determine the first triangular prediction The prediction value of the unit; according to the second unidirectional candidate motion information list, determine the target motion information of the second triangle prediction unit, and according to the target motion information of the second triangle prediction unit, determine the second triangle The prediction value of the prediction unit; based on the prediction value of the first triangle prediction unit and the prediction value of the second triangle prediction unit, adaptively weighting the hypo
  • the inter prediction unit 1002 is specifically used for When the current image block to be processed meets one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, the height of the current image block to be processed is less than M pixels, the When the width of the current image block to be processed is less than N pixels, based on the product of the intra-weighted coefficient and all pixel values of the intra-predicted block and the product of the inter-weighted coefficient and all pixel values of the inter-predicted block And, determine the prediction block of the current image block to be processed, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are both positive integers, and M and N are the same or different.
  • the inter prediction unit 1002 is specifically used for :
  • the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than or equal to N Pixels;
  • the intra-prediction mode is a horizontal prediction mode, based on the product of the intra-weighted coefficients in the i-th weighting coefficient pair and all pixel values corresponding to the i-th partition of the intra-predicted block.
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • the position of the entropy decoding unit 1001 corresponds to the position of the entropy decoding unit 304 in FIG. 3.
  • the position of the inter prediction unit 1002 corresponds to the position of the inter prediction unit 344 in FIG. 3.
  • the position of the intra prediction unit 1003 corresponds to the position of the intra prediction unit 354 in FIG. 3.
  • the inter prediction unit 344 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed;
  • the mode selection unit 362 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed;
  • the intra prediction unit 344 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed ; This application does not limit this.
  • an embodiment of the present application further provides a video image decoding device 2000, which includes an entropy decoding unit 2001, an inter prediction unit 2002, and an intra frame Prediction unit 2003, in which:
  • the entropy decoding unit 2001 is used to parse the code stream to obtain identification information, and the identification information includes a first identification, a second identification, and a third identification, and the first identification is used to instruct the current image block to be processed Whether the inter prediction uses the sub-block prediction mode; the second identifier is used to indicate that the current image block to be processed uses the intra-frame prediction mode, and the third identifier is used to indicate the current image block to be processed Intra prediction mode;
  • the inter prediction unit 2002 is configured to, when the first indicator indicates that the sub-block prediction mode is adopted for inter-prediction of the current image block to be processed, to perform the current prediction on the sub-block prediction mode Performing inter prediction on the image block to obtain the inter prediction block of the current image block to be processed;
  • the intra prediction unit 2003 is configured to perform intra prediction on the current image block to be processed according to the intra prediction mode indicated by the third identifier, to obtain an intra prediction block of the current image block to be processed;
  • the inter prediction unit 2002 is used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed.
  • the identifier information further includes a fourth identifier, and the fourth identifier is used to indicate Whether the current image block to be processed adopts the triangle prediction unit mode for inter prediction; the inter prediction unit 2002 is further used to indicate that the fourth flag indicates that the current image block to be inter processed uses triangle prediction In the unit mode, according to the triangular prediction unit mode, inter prediction is performed on the current image block to be processed to obtain an inter prediction block of the current image block to be processed.
  • the identification information further includes A fifth identifier, where the fifth identifier is used to indicate a first inter prediction mode used for inter prediction of the current image block to be processed, and the first condition includes at least: the first identifier indicates that the The inter prediction of the current image block to be processed does not adopt the sub-block prediction mode; the inter prediction unit 2002 is further used to perform the current image block to be processed according to the first inter prediction mode indicated by the fifth identifier Inter prediction, to obtain an inter prediction block of the current image block to be processed.
  • the identification information further includes a fifth identification, which is used to indicate that the current image block to be processed is used for inter prediction
  • the first condition at least includes: the first identifier indicates that inter prediction is not performed on the current image block to be processed without using a sub-block prediction mode; the inter prediction unit 2002 is further used According to the first inter prediction mode indicated by the fifth identifier, perform inter prediction on the current image block to be processed, to obtain an inter prediction block of the current image block to be processed.
  • the sub-block prediction mode is a sub-block fusion mode
  • the identification information further includes Six identifiers, the sixth identifier is used to indicate target candidate motion information in the candidate list corresponding to the sub-block fusion mode.
  • the inter prediction unit 2002 is specifically configured to: construct a first unidirectional candidate motion information list corresponding to the first triangle prediction unit of the current image block to be processed and a second triangle prediction unit corresponding to the current image block to be processed A second unidirectional candidate motion information list; according to the first unidirectional candidate motion information list, target motion information of the first triangular prediction unit is determined, and based on target motion information of the first triangular prediction unit, the The prediction value of the first triangular prediction unit; determining the target motion information of the second triangular prediction unit according to the second unidirectional candidate motion information list, and determining the target motion information of the second triangular prediction unit A prediction value of the second triangular prediction unit; and according to the prediction value of the first triangular prediction unit and the prediction value of the second triangular prediction unit, adapting the hypotenuse region of the
  • the inter prediction unit 2002 is specifically used for When the current image block to be processed meets one or more of the following conditions: the intra prediction mode is a DC prediction mode or a Planar prediction mode, the height of the current image block to be processed is less than M pixels, the When the width of the current image block to be processed is less than N pixels, the product of the intra-weighted coefficient and all pixel values of the intra-predicted block and the sum of the inter-weighted coefficient and all pixel values of the inter-frame prediction are fast, Determined as the prediction block of the current image block to be processed, wherein the intra-frame weighting coefficient is the same as the inter-frame weighting coefficient, M and N are positive integers, and M and N are the same or different.
  • the inter prediction unit 2002 is specifically used for :
  • the height of the current image block to be processed is greater than or equal to M pixels, and the width of the current image block to be processed is greater than or equal to N pixels Time;
  • the intra prediction mode is a horizontal prediction mode
  • the intra prediction mode is a vertical prediction mode
  • the i-th weighting coefficient pair corresponds to the i-th partition
  • the j-th weighting coefficient pair corresponds to the j-th partition
  • the position of the entropy decoding unit 2001 corresponds to the position of the entropy decoding unit 304 in FIG. 3, in other words, the specific implementation of the function of the entropy decoding unit 2001 may refer to the entropy decoding unit in FIG. 3. 304 specific details.
  • the position of the inter prediction unit 2002 corresponds to the position of the inter prediction unit 344 in FIG. 3. In other words, the specific implementation of the function of the inter prediction unit 2002 can be referred to the specific details of the inter prediction unit 344 in FIG. 3.
  • the position of the intra prediction unit 2003 corresponds to the position of the intra prediction unit 354 in FIG. 3.
  • the inter prediction unit 344 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed;
  • the mode selection unit 362 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed;
  • the intra prediction unit 344 in FIG. 3 may be used to perform weighted summation of the inter prediction block and the intra prediction block to obtain the prediction block of the current image block to be processed ; This application does not limit this.
  • Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another (eg, according to a communication protocol).
  • computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves.
  • Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this application.
  • the computer program product may include a computer-readable medium.
  • Such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM, or other optical disk storage devices, magnetic disk storage devices, or other magnetic storage devices, flash memory, or may be used to store instructions or data structures
  • the desired program code in the form of and any other medium that can be accessed by the computer. And, any connection is properly called a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave is used to transmit instructions from a website, server, or other remote source
  • coaxial cable Wire, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of media.
  • the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other temporary media, but are actually directed to non-transitory tangible storage media.
  • magnetic disks and optical discs include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs, where magnetic discs typically reproduce data magnetically, while optical discs reproduce optically using lasers data. Combinations of the above should also be included in the scope of computer-readable media.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs field programmable logic arrays
  • processors may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein.
  • the functions described in the various illustrative logical blocks, modules, and steps described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or in combination Into the combined codec.
  • the techniques can be fully implemented in one or more circuits or logic elements.
  • the technology of the present application may be implemented in a variety of devices or equipment, including wireless handsets, integrated circuits (ICs), or a set of ICs (eg, chipsets).
  • ICs integrated circuits
  • a set of ICs eg, chipsets
  • Various components, modules or units are described in this application to emphasize the functional aspects of the device for performing the disclosed technology, but do not necessarily need to be implemented by different hardware units.
  • various units may be combined in a codec hardware unit in combination with suitable software and/or firmware, or by interoperating hardware units (including one or more processors as described above) provide.

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 appareil de décodage d'images vidéo. Le procédé consiste : à analyser un premier identifiant issu d'un flux de code ; et à analyser un deuxième identifiant issu du flux de code ; lorsque le deuxième identifiant ordonne au bloc d'image à traiter actuel d'utiliser un mode de prédiction intra-trame/inter-trames, à analyser un troisième identifiant issu du flux de code, le troisième identifiant étant utilisé pour indiquer le mode de prédiction intra-trame utilisé par le bloc d'image à traiter actuel ; lorsque le premier identifiant ordonne l'utilisation d'un mode de prédiction de sous-bloc pour effectuer une prédiction inter-trames sur le bloc d'image à traiter actuel, à exécuter la prédiction inter-trames sur le bloc d'image à traiter actuel selon le mode de prédiction de sous-bloc pour obtenir un bloc de prédiction inter-trames du bloc d'image à traiter actuel ; à exécuter une prédiction intra-trame sur le bloc d'image à traiter actuel selon le mode de prédiction intra-trame indiqué par le troisième identifiant pour obtenir un bloc de prédiction intra-trame du bloc d'image à traiter actuel ; et à effectuer un cumul pondéré sur le bloc de prédiction inter-trames et le bloc de prédiction intra-trame pour obtenir un bloc de prédiction du bloc d'image à traiter actuel. La mise en œuvre de la présente invention peut rendre de multiples modes de prédiction compatibles, ce qui améliore l'efficacité du décodage.
PCT/CN2019/128793 2018-12-26 2019-12-26 Procédé et appareil de décodage d'images vidéo WO2020135615A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811605593.9A CN111372086B (zh) 2018-12-26 2018-12-26 视频图像解码方法及装置
CN201811605593.9 2018-12-26

Publications (1)

Publication Number Publication Date
WO2020135615A1 true WO2020135615A1 (fr) 2020-07-02

Family

ID=71129153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/128793 WO2020135615A1 (fr) 2018-12-26 2019-12-26 Procédé et appareil de décodage d'images vidéo

Country Status (2)

Country Link
CN (1) CN111372086B (fr)
WO (1) WO2020135615A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979627A (zh) * 2021-02-24 2022-08-30 华为技术有限公司 视频编码中的运动矢量(mv)约束和变换约束

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238391A (zh) * 2011-05-25 2011-11-09 深圳市融创天下科技股份有限公司 一种预测编码方法、装置
CN102907100A (zh) * 2010-05-17 2013-01-30 Sk电信有限公司 使用帧内块和帧间块相混合的编码块的视频编码/解码设备及其方法
CN107113425A (zh) * 2014-11-06 2017-08-29 三星电子株式会社 视频编码方法和设备以及视频解码方法和设备
US20170251213A1 (en) * 2016-02-25 2017-08-31 Mediatek Inc. Method and apparatus of video coding
CN107995489A (zh) * 2017-12-20 2018-05-04 北京大学深圳研究生院 一种用于p帧或b帧的帧内帧间组合预测方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102907100A (zh) * 2010-05-17 2013-01-30 Sk电信有限公司 使用帧内块和帧间块相混合的编码块的视频编码/解码设备及其方法
CN102238391A (zh) * 2011-05-25 2011-11-09 深圳市融创天下科技股份有限公司 一种预测编码方法、装置
CN107113425A (zh) * 2014-11-06 2017-08-29 三星电子株式会社 视频编码方法和设备以及视频解码方法和设备
US20170251213A1 (en) * 2016-02-25 2017-08-31 Mediatek Inc. Method and apparatus of video coding
CN107995489A (zh) * 2017-12-20 2018-05-04 北京大学深圳研究生院 一种用于p帧或b帧的帧内帧间组合预测方法

Also Published As

Publication number Publication date
CN111372086B (zh) 2021-08-03
CN111372086A (zh) 2020-07-03

Similar Documents

Publication Publication Date Title
CN111107356B (zh) 图像预测方法及装置
US11438578B2 (en) Video picture prediction method and apparatus
CN113545040B (zh) 用于多假设编码的加权预测方法及装置
CN115243048B (zh) 视频图像解码、编码方法及装置
WO2020228560A1 (fr) Procédé et dispositif d'obtention d'une liste de vecteurs de mouvement candidats, et codec
WO2020114394A1 (fr) Procédé de codage/décodage vidéo, codeur vidéo et décodeur vidéo
CN111385572B (zh) 预测模式确定方法、装置及编码设备和解码设备
CN111355951A (zh) 视频解码方法、装置及解码设备
CN112055200A (zh) Mpm列表构建方法、色度块的帧内预测模式获取方法及装置
WO2020143589A1 (fr) Procédé et appareil de décodage vidéo, procédé et appareil de codage vidéo
WO2020135467A1 (fr) Procédé de prédiction inter-trames, dispositif et codeur et décodeur correspondants
CN111432219B (zh) 一种帧间预测方法及装置
EP3910955A1 (fr) Procédé et dispositif de prédiction inter-trames
US20210344899A1 (en) Video encoder, video decoder, and corresponding methods
WO2020135615A1 (fr) Procédé et appareil de décodage d'images vidéo
WO2020134817A1 (fr) Procédé et dispositif de détermination d'un mode de prédiction, dispositif de codage et dispositif de décodage
WO2020114509A1 (fr) Procédé et appareil d'encodage et de décodage d'image de vidéo
WO2020114508A1 (fr) Procédé et appareil de codage/décodage de vidéo
WO2020114393A1 (fr) Procédé de transformée, procédé de transformée inverse, codeur vidéo, et décodeur vidéo
WO2020135371A1 (fr) Procédé et dispositif de modélisation de contextes de bits indicateurs
WO2020181476A1 (fr) Procédé et dispositif de prédiction d'image vidéo
CN111901593A (zh) 一种图像划分方法、装置及设备
CN113615191B (zh) 图像显示顺序的确定方法、装置和视频编解码设备
WO2020143292A1 (fr) Procédé et appareil de prédiction inter-trames
WO2020186882A1 (fr) Procédé et dispositif de traitement basé sur un mode d'unité de prédiction de triangle

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

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

Country of ref document: EP

Kind code of ref document: A1