WO2024113311A1 - 编解码方法、编解码器、码流以及存储介质 - Google Patents

编解码方法、编解码器、码流以及存储介质 Download PDF

Info

Publication number
WO2024113311A1
WO2024113311A1 PCT/CN2022/135906 CN2022135906W WO2024113311A1 WO 2024113311 A1 WO2024113311 A1 WO 2024113311A1 CN 2022135906 W CN2022135906 W CN 2022135906W WO 2024113311 A1 WO2024113311 A1 WO 2024113311A1
Authority
WO
WIPO (PCT)
Prior art keywords
weight
information
pixel
parameter
value
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2022/135906
Other languages
English (en)
French (fr)
Chinese (zh)
Inventor
马彦卓
霍俊彦
邱瑞鹏
张红丽
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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
Priority to JP2025530617A priority Critical patent/JP2025537388A/ja
Priority to PCT/CN2022/135906 priority patent/WO2024113311A1/zh
Priority to CN202280102178.XA priority patent/CN120303924A/zh
Priority to EP22966900.7A priority patent/EP4629614A1/en
Priority to AU2022490380A priority patent/AU2022490380A1/en
Priority to KR1020257021373A priority patent/KR20250113488A/ko
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to TW112145916A priority patent/TW202425649A/zh
Publication of WO2024113311A1 publication Critical patent/WO2024113311A1/zh
Priority to US19/218,998 priority patent/US20250287012A1/en
Priority to MX2025006406A priority patent/MX2025006406A/es
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136—Incoming video signal characteristics or properties
    • H04N19/137—Motion inside a coding unit, e.g. average field, frame or block difference
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
    • H04N19/105—Selection 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
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102—Methods 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/119—Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102—Methods 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/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136—Incoming video signal characteristics or properties
    • H04N19/137—Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139—Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136—Incoming video signal characteristics or properties
    • H04N19/14—Coding unit complexity, e.g. amount of activity or edge presence estimation
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169—Methods 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/17—Methods 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/176—Methods 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
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169—Methods 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/182—Methods 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 a pixel
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70—Methods 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
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51—Motion estimation or motion compensation
    • H04N19/513—Processing of motion vectors
    • H04N19/517—Processing of motion vectors by encoding
    • H04N19/52—Processing of motion vectors by encoding by predictive encoding

Definitions

  • the embodiments of the present application relate to the field of image processing technology, and in particular to a coding and decoding method, a codec, a bit stream, and a storage medium.
  • inter-frame prediction can also be used for the coding and decoding of the current block.
  • inter-frame prediction can include inter-frame geometric partitioning mode (GPM) and translational prediction.
  • the embodiments of the present application provide a coding and decoding method, a codec, a bit stream and a storage medium, which greatly improve the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • an embodiment of the present application provides a decoding method, which is applied to a decoder, and the method includes:
  • Decoding the bitstream determining at least one motion vector information of the current block, and a type indication parameter and/or a geometric mode parameter;
  • a prediction value of the current block is determined.
  • an embodiment of the present application provides an encoding method, which is applied to an encoder, and the method includes:
  • a prediction value of the current block is determined.
  • an encoder comprising: a first determining unit
  • the first determination unit is configured to determine at least one motion vector information, and a type indication parameter and/or a geometric mode parameter of the current block; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • an embodiment of the present application provides an encoder, comprising a first processor and a first memory storing instructions executable by the first processor, wherein when the instructions are executed, the first processor implements the method described in the second aspect.
  • an embodiment of the present application provides a decoder, the decoder comprising: a decoding unit, a second determining unit,
  • the decoding unit is configured to decode the code stream
  • the second determination unit is configured to determine at least one motion vector information, and a type indication parameter and/or a geometric mode parameter of the current block; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • an embodiment of the present application provides a decoder, comprising a second processor and a second memory storing instructions executable by the second processor, wherein when the instructions are executed, the second processor implements the method described in the first aspect.
  • an embodiment of the present application provides a code stream, which is generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least: inter-frame prediction mode parameters of the current block, at least one motion vector information of the current block, type indication parameters and/or geometric mode parameters.
  • an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a first processor, it implements the method as described in the second aspect, or when the computer program is executed by a second processor, it implements the method as described in the first aspect.
  • the embodiment of the present application provides a coding method, a codec, a bitstream and a storage medium, wherein the codec can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameter of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameter. It can be seen that in the embodiment of the present application, the weight used for prediction processing is no longer fixed, but a pixel-level weight value that is adapted to the change of pixel points is selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • FIG1 is a schematic diagram of adjacent blocks
  • FIG2 is a schematic block diagram of the encoder
  • FIG3 is a schematic block diagram of a decoder
  • FIG4 is a schematic diagram of a network architecture of a coding and decoding system provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a decoding method implementation flow chart
  • FIG6 is a schematic diagram of a gradual change mode
  • FIG7 is a second schematic diagram of a gradient mode
  • FIG8 is a third schematic diagram of a gradient mode
  • FIG9 is a fourth schematic diagram of a gradual change mode
  • FIG10 is a fifth schematic diagram of a gradient mode
  • FIG11 is a sixth schematic diagram of the gradient mode
  • FIG12 is a seventh schematic diagram of a gradient mode
  • FIG13 is a schematic diagram eight of the gradient mode
  • FIG14 is a schematic diagram of a pre-stored matrix
  • FIG15 is a second schematic diagram of a pre-stored matrix
  • FIG16 is a schematic diagram of interpolation processing 1
  • FIG17 is a second schematic diagram of interpolation processing
  • FIG18 is a third schematic diagram of interpolation processing
  • FIG19 is a fourth schematic diagram of interpolation processing
  • FIG20 is a schematic diagram of the implementation flow of the encoding method
  • FIG21 is a schematic diagram of the composition structure of the encoder
  • FIG22 is a second schematic diagram of the structure of the encoder
  • FIG23 is a schematic diagram of the structure of a decoder
  • FIG. 24 is a second schematic diagram of the composition structure of the decoder.
  • the common video coding standards are based on the block-based hybrid coding framework.
  • Each frame in the video image is divided into square largest coding units (LCU) or coding tree units (CTU) of the same size (such as 128 ⁇ 128, 64 ⁇ 64, etc.), and each largest coding unit or coding tree unit can also be divided into rectangular coding units (CU) according to rules; and the coding unit may be divided into smaller prediction units (PU).
  • the hybrid coding framework can include prediction, transform, quantization, entropy coding, in-loop filter and other modules; among them, the prediction module can include intra-frame prediction and inter-frame prediction, and inter-frame prediction can include motion estimation and motion compensation.
  • the use of intra-frame prediction in video coding and decoding technology can eliminate the spatial redundancy between adjacent pixels; however, since there is also a strong similarity between adjacent frames in a video image, the use of inter-frame prediction in video coding and decoding technology can eliminate the temporal redundancy between adjacent frames, thereby improving coding and decoding efficiency.
  • the basic process of video codec is as follows: at the encoding end, a frame of image is divided into blocks, intra-frame prediction or inter-frame prediction is used for the current block to generate the prediction block of the current block, the original block of the current block minus the prediction block to obtain the residual block, the residual block is transformed and quantized to obtain the quantization coefficient matrix, and the quantization coefficient matrix is entropy encoded and output to the bitstream.
  • intra-frame prediction or inter-frame prediction is used for the current block to generate the prediction block of the current block, and the bitstream is decoded to obtain the quantization coefficient matrix, the quantization coefficient matrix is inversely quantized and inversely transformed to obtain the residual block, and the prediction block and the residual block are added to obtain the reconstructed block.
  • the reconstructed blocks form a reconstructed image, and the reconstructed image is loop-filtered based on the image or block to obtain the decoded image.
  • the encoding end also needs to perform similar operations as the decoding end to obtain the decoded image.
  • the decoded image can be used as a reference frame for inter-frame prediction for subsequent frames.
  • the decoding end determines the same block division information as the encoding end by parsing and analyzing the existing information, and the mode information or parameter information such as prediction, transformation, quantization, entropy coding, loop filtering, etc., so as to ensure that the decoded image obtained by the encoding end is the same as the decoded image obtained by the decoding end.
  • the decoded image obtained by the encoding end is also usually called a reconstructed image.
  • the current block can be divided into prediction units during prediction, and the current block can be divided into transformation units during transformation.
  • the division of prediction units and transformation units can be different.
  • the above is the basic process of the video codec under the block-based hybrid coding framework. With the development of technology, some modules or steps of the framework or process may be optimized. The embodiment of the present application is applicable to the basic process of the video codec under the block-based hybrid coding framework, but is not limited to the framework and process.
  • the current block can be the current coding unit (CU) or the current prediction unit (PU), etc.
  • VVC Versatile Video Coding
  • BCW CU-level weight
  • the calculated pixel prediction value is also classified as the default weighted prediction (when Slice-level weighted prediction is not enabled).
  • the default weighted prediction method is relatively simple. It does not use weights and offset values. It is divided into three cases based on the different reference lists:
  • the first case is to use only the forward reference list List0, and the predicted pixels are calculated as follows:
  • the second case is to use only the forward reference list List1, and the predicted pixels are calculated as follows:
  • the third case is that both the forward reference list List0 and the backward reference list List1 are used, and the predicted pixel calculation is as follows:
  • PredSamples Clip((PredSampleL0+PredSampleL1+offset2)>>shift2) (3)
  • PredSampleL0 and PredSampleL1 are reference pixel values in reference lists List0 and List1 respectively.
  • slice-level weighted prediction For slice-level weighted prediction (Weighted Prediction), when the light intensity changes, the same scene in the video will experience global or local brightness changes, such as aperture changes during shooting, or artificial fade-in and fade-out effects. In such videos, the content of adjacent images is still similar, but the corresponding pixel values are quite different, and the residual obtained by traditional motion compensation prediction technology is large. Therefore, for such scenes with overall gradual brightness changes, slice-level weighted prediction can effectively deal with it, that is, the predicted value is obtained by performing a linear transformation (a linear function defined by a weight and an offset value) on the reconstructed pixel values of the reference image.
  • a linear transformation a linear function defined by a weight and an offset value
  • H.266/VVC restricts the use of Slice-level weighted prediction technology for the usage conditions and syntax element parsing of Slice-level weighted prediction.
  • CUs that meet the following conditions can use Slice-level weighted prediction:
  • (5)CU does not use decoder motion vector refinement (DMVR).
  • DMVR decoder motion vector refinement
  • each reference picture in the reference picture list L0 can have a set of weighting coefficients.
  • each reference frame in the reference picture list L1 can also have a set of weighting coefficients. Luma components and chroma components have different weighting coefficients.
  • Slice-level weighted prediction can be used for both unidirectional prediction and bidirectional prediction.
  • reference pixel values are acquired in the following three cases: when only the forward reference list List0 is used, the forward motion information MVL0 of the current CU is acquired, and the forward motion vector information MVL0 is used for motion compensation prediction to obtain the forward prediction value PredSampleL0; when only the backward reference list List1 is used, the backward motion information MVL1 of the current CU is acquired, and the backward motion vector information is used for motion compensation prediction to obtain the backward prediction value PredSampleL1; for bidirectional prediction, both the forward reference list List0 and the backward reference list List1 are used, and the forward motion vector information is used for motion compensation prediction to obtain the forward prediction value PredSampleL0, and the backward motion vector information is used for motion compensation prediction to obtain the backward prediction value PredSampleL1.
  • the slice header information includes multiple groups of weighted parameters, and all CUs in the slice use one or two groups of weighted parameters.
  • PredSampleL0 and PredSampleL1 are the reference pixel values in the reference lists list0 and list1 respectively.
  • w L0 and w L1 are the weights of the forward and backward blocks respectively, and o_L0 and o_L0 represent the corresponding offsets.
  • the intermediate operation results have higher accuracy than the reference pixel values, and log2_weight_denom and chroma_log2_weight_denom indicate the improved accuracy of the weighting coefficients.
  • shift1 is the improved accuracy of the reference pixel value during the calculation process of pixel interpolation (the integer pixel value is also amplified).
  • the Clip() operation clamps the pixel value within the valid range, such as the valid value of 8bit is [0, 255], and the valid value of 10bit is [0, 1023].
  • BCW CU-level bidirectional weighted prediction
  • the product of the width and height of the current coding block is not less than 256.
  • BCW uses only a small number of predefined weights, and the weight set is different in different configurations.
  • LLB Low Delay B
  • RA Random Access
  • the weight set is ⁇ 4, 5, 3 ⁇ , where the decoder can use NoBackwardPredFlag to determine whether it is LDB or RA configuration.
  • the weight set of BCW is determined, and only the weight index bcw_idx needs to be encoded. If it does not exist, it defaults to 0, corresponding to the weighted average of the forward and backward bidirectional prediction signals with equal weights.
  • the BCW weight is directly obtained from the Merge candidate; for the CU in Affine Merge mode, the BCW weight corresponding to the first CPMV is used.
  • the BCW index is the default value 0, corresponding to the forward and backward bidirectional prediction signals with equal weights.
  • the weighted prediction value of the CU-level bidirectional weighted prediction is obtained.
  • both the forward reference list List0 and the backward reference list List1 are used.
  • the forward motion vector information MV0 in the forward reference list List0 is used for motion compensation prediction to obtain the forward prediction value PredSampleL0
  • the backward motion vector information MV1 in the backward reference list List1 is used for motion compensation prediction to obtain the backward prediction value PredSampleL1.
  • BCW is only enabled for the bidirectional prediction CU, using only a small number of predefined weights and encoding their indexes.
  • PredSampleL0 and PredSampleL1 are reference pixel values in reference lists List0 and List1 respectively, and w is the weight of the backward reference pixel value.
  • CIIP Combined inter and intra prediction
  • this technology combines intra-frame prediction signals with inter-frame prediction signals, where the intra-frame prediction value P intra is obtained by performing conventional intra-frame prediction processing on the current block through Planar mode, and the inter-frame prediction value P inter is obtained by predicting the current block through conventional Merge mode. Then, the weighted average of the intra-frame and inter-frame prediction values is performed to obtain the final intra-frame and inter-frame joint prediction value.
  • the conditions under which the CIIP technology is allowed to be applied to the current CU are: if the current CU is encoded in Merge mode, if the size of the current CU is greater than 64 and less than 128, the current CU is allowed to indicate the use of CIIP technology.
  • the acquisition of CIIP intra-frame prediction weight wt is related to the coding mode of the adjacent blocks above and to the left of the current CU.
  • the coding mode of the adjacent blocks is identified by two flags, isIntraTop and isIntraLeft. When isIntraTop is 1, the upper adjacent block is available and is in intra-frame mode. When isIntraLeft is 1, it indicates that the left adjacent block is available and is in intra-frame mode.
  • the weight used in the weighted calculation depends on the encoding mode of the adjacent blocks on the upper and left sides of the current CU.
  • Figure 1 is a schematic diagram of adjacent blocks.
  • the specific judgment is as follows: if (isIntraLeft+isIntraLeft) is equal to 2, the weight wt of the intra-frame prediction block is equal to 3; otherwise, if (isIntraLeft+isIntraLeft) is equal to 1, the weight wt of the intra-frame prediction corresponding to the current CU is equal to 2; otherwise, the weight wt of the intra-frame prediction is equal to 1.
  • the final CIIP prediction value is calculated as follows: P intra is the intra prediction value obtained after the current block is processed by the Planar mode through the conventional intra prediction, P inter is the inter prediction value, and wt is the weight of the intra prediction.
  • the weight values for inter-frame weighted prediction are fixed in slices or coding units/coding blocks. Considering that factors such as light changes in sequence content may not follow the influence of overall consistent changes, it is not the best solution to use a fixed weight value for the entire slice or coding block during weighted prediction, resulting in insufficient coding efficiency.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters. It can be seen that in an embodiment of the present application, the weights used for prediction processing are no longer fixed, but pixel-level weight values that adapt to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • the encoder 50 may include a transform and quantization unit 501, an intra-frame estimation unit 502, an intra-frame prediction unit 503, an inter-frame prediction unit 504, a motion estimation unit 505, an inverse transform and inverse quantization unit 506, a filter control analysis unit 507, a filtering unit 508, an encoding unit 509 and a decoded image cache unit 510, etc.
  • the filtering unit 508 may implement deblocking filtering and sample adaptive offset (Sample Adaptive Offset, SAO) filtering
  • the encoding unit 509 may implement header information encoding and context-based adaptive binary arithmetic coding (Context-based Adaptive Binary Arithmetic Coding, CABAC).
  • a video coding block can be obtained by dividing the coding tree unit (CTU), and then the residual pixel information obtained after intra-frame or inter-frame prediction is transformed by the transformation and quantization unit 501 to transform the video coding block, including transforming the residual information from the pixel domain to the transform domain, and quantizing the obtained transform coefficients to further reduce the bit rate;
  • the intra-frame estimation unit 502 and the intra-frame prediction unit 503 are used to perform intra-frame prediction on the video coding block; specifically, the intra-frame estimation unit 502 and the intra-frame prediction unit 503 are used to determine the intra-frame prediction mode to be used to encode the video coding block;
  • the inter-frame prediction unit 504 and the motion estimation unit 505 are used to perform inter-frame prediction coding of the received video coding block relative to one or more blocks in one or more reference frames to provide temporal prediction information;
  • the motion estimation performed by the motion estimation unit 505 is a process of generating a motion vector, The motion vector can estimate the motion of the video coding block,
  • the context content can be based on adjacent coding blocks and can be used to encode information indicating the determined intra-frame prediction mode and output the code stream of the video signal; and the decoded image cache unit 510 is used to store the reconstructed video coding block for prediction reference. As the video image encoding proceeds, new reconstructed video coding blocks will be continuously generated, and these reconstructed video coding blocks will be stored in the decoded image cache unit 510.
  • the decoder 60 includes a decoding unit 601, an inverse transform and inverse quantization unit 602, an intra-frame prediction unit 603, an inter-frame prediction unit 604, a filtering unit 605, and a decoded image cache unit 606, etc., wherein the decoding unit 601 can implement header information decoding and CABAC decoding, and the filtering unit 605 can implement deblocking filtering and SAO filtering.
  • a bit stream of the video signal is output; the bit stream is input into the decoder 60, and first passes through the decoding unit 601 to obtain the decoded transform coefficients; the transform coefficients are processed by the inverse transform and inverse quantization unit 602 to generate residual blocks in the pixel domain; the intra-frame prediction unit 603 can be used to generate prediction data of the current video decoding block based on the determined intra-frame prediction mode and the data of the previously decoded block from the current frame or picture; the inter-frame prediction unit 604 is to determine the prediction information for the video decoding block by parsing the motion vector and other associated syntax elements, and use The prediction information is used to generate a prediction block of the video decoding block being decoded; a decoded video block is formed by summing the residual block from the inverse transform and inverse quantization unit 602 and the corresponding prediction block generated by the intra-frame prediction unit 603 or the inter-frame prediction unit 604; the decoded video signal passes
  • the embodiment of the present application also provides a network architecture of a codec system including an encoder and a decoder
  • FIG4 is a schematic diagram of a network architecture of a codec system provided by the embodiment of the present application.
  • the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01.
  • the electronic device can be various types of devices with video codec functions during implementation.
  • the electronic device can include a smart phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., and the embodiment of the present application is not specifically limited.
  • the decoder or encoder described in the embodiment of the present application can be the above-mentioned electronic device.
  • the coding and decoding method in the embodiment of the present application can be applied to both the video coding system and the video decoding system, and can even be applied to both the video coding system and the video decoding system at the same time, but the embodiment of the present application does not specifically limit it. It should also be noted that when the coding and decoding method is applied to the video coding system, the "current block” specifically refers to the current coding block in the inter-frame prediction; when the coding and decoding method is applied to the video decoding system, the "current block” specifically refers to the current decoding block in the inter-frame prediction.
  • FIG5 is a schematic diagram of an implementation flow of the decoding method.
  • the decoding method performed by the decoder may include the following steps:
  • Step 101 Decode the code stream to determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter.
  • a decoder when decoding a bitstream, may first determine at least one motion vector information of a current block, and may also determine a type indication parameter and/or a geometric mode parameter.
  • the at least one motion vector information of the current block may include a forward motion vector and/or a backward motion vector.
  • the forward motion vector of the current block can perform forward prediction on the prediction value of the current block
  • the backward motion vector of the current block can perform backward prediction on the prediction value of the current block.
  • the forward motion vector may be represented as MVL0
  • the backward motion vector may be represented as MVL1.
  • the type indication parameter is the type index parameter, wherein the type indication parameter can be used to select the type of the pixel-level weighting parameter, that is, it can be used to select the method for determining the pixel-level weighting parameter.
  • the type of pixel-level weighting parameters that is, the method of determining the pixel-level weighting parameters may include but are not limited to the following types (methods): weighting parameters defined by a pre-stored matrix (pre-stored matrix), and weighting parameters defined by geometric pattern parameters.
  • the type indication parameter can be used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters or to use geometric mode parameters to derive pixel-level weighting parameters. It can also be understood that the type indication parameter is used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters, or the type indication parameter is used to determine whether to use geometric mode parameters to derive pixel-level weighting parameters.
  • the geometric pattern parameters may include one or more of the following parameters: gradient pattern information, gradient intensity information, change direction information, change start position information, change center position information, change end position information, gradient upper/lower limit information (i.e., lower limit weight and upper limit weight, which can be derived from other geometric pattern parameters or pre-set), change range width information, and change segment information.
  • the gradient intensity information may also be expressed as change range width information.
  • the gradient mode information may be determined using modeParm, wherein the gradient mode information modeParm may indicate a gradient mode, that is, may indicate a type of gradient mode.
  • the types of gradient patterns may include but are not limited to horizontal gradient weighting, vertical gradient weighting, oblique gradient weighting, radial gradient weighting, affine gradient weighting, and the like.
  • Figure 6 is a schematic diagram of the gradient mode one
  • Figure 7 is a schematic diagram of the gradient mode two
  • the horizontal gradient mode can include two different changing directions
  • Figure 8 is a schematic diagram of the gradient mode three
  • Figure 9 is a schematic diagram of the gradient mode four
  • the vertical gradient mode can include two different changing directions
  • Figure 10 is a schematic diagram of the gradient mode five
  • Figure 11 is a schematic diagram of the gradient mode six
  • the oblique gradient mode not only has multiple different changing directions, but also can include multiple different gradient intensity information
  • Figure 12 is a schematic diagram of the gradient mode seven.
  • the radial gradient mode involves the changing center position
  • Figure 13 is a schematic diagram of the gradient mode eight, as shown in Figure 13, two affine gradient modes.
  • the optimal gradient mode of the current coding unit/coding block can be determined by template matching. Specifically, the upper row and/or left column pixels of the current coding unit/block are taken as templates, and in the process of constructing template predicted pixel values, the predicted values from different sources are subjected to gradient weighting processing, and the most appropriate geometric parameters of the gradient weighting scheme are selected as the parameters of the gradient weighting scheme of the current coding unit/block.
  • some gradient modes with a large gradient width range may be skipped.
  • some gradient modes with a small gradient width range may be skipped.
  • the number of segments of the gradient pattern can be adaptively increased to make the prediction more accurate.
  • the gradient strength information can be determined using slopeParm, wherein the gradient strength information slopeParm can indicate the speed of change, that is, it can indicate the speed of change of the gradient weight parameter as the pixel distance specifies the position (the position of the point or line).
  • the linear gradient intensity information can be indicated by an index method.
  • 0 represents no gradient, a direct jump
  • m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches the specified position of (2m-1)/M pixel positions, a linear gradient is used when the distance is closer, and the maximum or minimum is maintained when the distance is farther, where the value of M can be 2, 1, 1/2, etc.
  • the linear gradient strength information is indicated in an index manner.
  • 0 means that w is a constant, with no gradient or jump;
  • m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches t ⁇ width/(2m-1), where width is the unit corresponding width (slice width or coding block width) for calculating the gradient weight parameter, and t is a constant.
  • the change direction information can be determined by dirParm, wherein the change direction information dirParm can indicate the direction in which the change intensity changes, that is, it can indicate the direction in which the gradient intensity information of the weight parameter for the first predicted pixel changes.
  • the change direction information is indicated in an index manner, for example, 0 represents from minimum to maximum, and 1 represents from maximum to minimum.
  • the change start position information can be determined by startPosParm, wherein the change start position information startPosParm can include different numbers of parameters according to different gradient types. That is, the number of parameters included in the change start position information corresponds to the gradient type (gradient mode information).
  • the change start position information when the gradient mode information indicates a horizontal gradient mode, the change start position information may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change start position information may include a set of Cartesian coordinate system parameters for representing a straight line, one of which represents a slope and the other represents an intercept; for example, in an oblique gradient mode, the change start position information may include a set of polar coordinate system parameters for representing a straight line, one representing an angle and the other representing a distance; when the gradient mode information indicates a radial gradient mode, the change start position information may include a set of parameters representing a radial shape and its corresponding position, for example, in the case of a circle, when the starting position is a point, the Cartesian coordinate system is the horizontal and vertical coordinates, and the polar coordinate system is the angle and distance; when the gradient mode information indicates an affine gradient mode, the change start position information may include a set of parameters representing the positions of multiple control points
  • the change center position information can be determined by centerPosParm, wherein the change center position information centerPosParm is the position of the median value of the weight parameter of the gradient area. For example, when the gradient interval is 0 to 1, the median value is 0.5, and the weight parameter is based on this position and gradually increases or decreases toward both sides.
  • the change center position information centerPosParm may include different numbers of parameters. That is, the number of parameters included in the change center position information corresponds to the gradient type (gradient mode information).
  • the change center position information when the gradient mode information indicates a horizontal gradient mode, may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change center position information may include a set of parameters for a straight line represented by a Cartesian coordinate system, one for a slope and one for an intercept; when the gradient mode information indicates an oblique gradient mode, the change center position information may include a set of parameters for a straight line represented by a polar coordinate system, one for an angle and one for a distance; when the gradient mode information indicates a radial gradient mode, the change center position information may include a set of parameters for a radial shape and its corresponding position, such as in the case of a circle, when the center position is a circle, the Cartesian coordinate system contains the horizontal and vertical coordinates and the radius, and the polar coordinate system contains the center point position information and the radius, and when the center point is aligned with the zero point, only the radius information may be provided;
  • the change end position information endPosParm can be determined by, wherein, depending on the gradient type, the change end position endPosParm can include different numbers of parameters. That is, the number of parameters included in the change end position information corresponds to the gradient type (gradient mode information).
  • the change cutoff position information when the gradient mode information indicates a horizontal gradient mode, may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change cutoff position information may include a set of parameters for a straight line represented by a Cartesian coordinate system, one for a slope and one for an intercept; when the gradient mode information indicates an oblique gradient mode, the change cutoff position information may include a set of parameters for a straight line represented by a polar coordinate system, one for an angle and one for a distance; when the gradient mode information indicates a radial gradient mode, the change cutoff position information may include a set of parameters representing a radial shape and its corresponding position, such as in the case of a circle, when the cutoff position is a circle, in the Cartesian coordinate system, the cutoff position information refers to the horizontal and vertical coordinates and the radius, and in the polar coordinate system, it refers to the center point position information and the radius, and when the
  • the gradient upper/lower limit information (lower limit weight and upper limit weight) can be determined by maxWvalue/minWvalue, wherein the gradient upper/lower limit information maxWvalue/minWvalue can be used to indicate the upper/lower limit information of the weight parameter, which can be derived from other geometric pattern parameters or pre-set.
  • the gradient upper/lower limit information maxWvalue/minWvalue may be the values corresponding to the weights 0 and 1 under the corresponding precision requirements. For example, assuming the precision is 3 digits after the binary decimal point, then the lower limit 0 corresponds to 0 and the upper limit 1 corresponds to 8 after fixed-point conversion; assuming the precision is 5 digits after the binary decimal point, then the lower limit 0 corresponds to 0 and the upper limit 1 corresponds to 32 after fixed-point conversion.
  • the lower limit of the weighting parameter generally corresponds to 0, that is, the reference pixels at the corresponding position are not used during weighting
  • the upper limit of the weighting parameter generally corresponds to 1, that is, all reference pixels at the corresponding position are used during weighting.
  • the gradient upper/lower limit information maxWvalue/minWvalue may not be the weights corresponding to 0 and 1, for example, it may be the values corresponding to 0.2 and 0.4 under the corresponding accuracy requirements.
  • the change segment information may be determined by segParm, wherein the change segment information segParm may indicate relevant information of a continuous gradient consisting of a plurality of segments, and may include information whose meaning covers the aforementioned plurality of parameters.
  • the change segment information segParm may include multiple segments, including the information of the gradient intensity (change range width information), change direction information, change start position information, change end position information, etc. of each segment.
  • the change segment information segParm may include multiple segments, including the information of the gradient direction information, change start position information, change end position information, gradient upper limit information, and gradient lower limit information of each segment.
  • any information in the geometric pattern parameters namely, gradient pattern information, gradient intensity information, change direction information, change start position information, change center position information, change end position information, gradient upper/lower limit information, change range width information, and change segment information, can be converted into an index form through quantization.
  • the geometry mode parameter can be used to indicate a geometry change set, wherein the geometry change set includes change start position information, change center position information, and change end position information.
  • the change start position information, the change center position information, and the change end position information can specify different possibilities, and each possible line is predefined as an ordered set, so these positions can be specified by only one index.
  • one index can correspond to one ordered set, so that the corresponding position information can be specified.
  • the type indication parameter may be used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters or to use a geometric pattern parameter to derive pixel-level weighting parameters.
  • the pre-stored matrix in the weighting mode defined by the pre-stored matrix (pre-stored matrix), the number and dimension of the pre-defined matrix are limited.
  • Figure 14 is a schematic diagram of the pre-stored matrix 1
  • Figure 15 is a schematic diagram of the pre-stored matrix 2.
  • the pre-stored matrix is a pre-defined weighted matrix of two different dimensions. For the weighted matrix of the pre-defined dimension, it can be applied to a variety of regional ranges with different dimensions and different precision requirements by interpolation and other methods.
  • FIG. 16 is a schematic diagram of interpolation processing 1
  • FIG. 17 is a schematic diagram of interpolation processing 2
  • FIG. 18 is a schematic diagram of interpolation processing 3
  • FIG. 19 is a schematic diagram of interpolation processing 4.
  • the weighted matrix obtained by interpolating weighted matrix 1 under a smaller dimension requirement as shown in FIG. 17, the weighted matrix obtained by interpolating weighted matrix 1 under a larger dimension requirement.
  • FIG. 18 the weighted matrix obtained by interpolating weighted matrix 2 under a higher precision requirement
  • FIG. 19 the weighted matrix obtained by interpolating weighted matrix 2 under a lower precision requirement.
  • the weighted parameters defined by the geometric parameters refer to the weighted parameters calculated by the geometric parameters.
  • the weighted parameters on the plane change with the pixel position according to a certain geometric law.
  • the weighted parameter wtParm that changes according to a certain geometric law can be expressed by at least one of the following parameters: gradient mode information modeParm, gradient intensity information slopeParm, change direction information dirParm, change start position information startPosParm, change center position information centerPosParm, change end position information endPosParm, gradient upper/lower limit information minParm/maxParm, and change segment information segParm.
  • the geometric pattern parameters of different image blocks are the same, for example, the geometric pattern parameters such as the gradient intensity information and the change direction information of each CU are basically consistent, then one or more weight matrices can be predefined first, and the coding unit block can upsample, downsample, or truncate the predefined weight matrix based on the pixel-level weighted weights.
  • the mode type for deriving pixel-level weighting parameters can be selected in an indexed manner. For example, the mode index number is determined based on the type indication parameter, and then the mode type for deriving pixel-level weighting parameters is determined according to the mode index number, that is, whether the weighting parameters are defined by a pre-stored matrix or by a geometric parameter.
  • the weighting mode indicated by the index method is shown in the table:
  • Mode index number Mode Type 0 Weighting parameters defined by pre-stored matrices 1 Linear gradient weighting mode defined by geometric parameters 1 ... ... N Linear gradient weighting pattern defined by geometric parameters N
  • the weighting mode indicated by the index method is shown in the table:
  • Mode index number Mode Type 0 Linear gradient weighting mode defined by geometric parameters 1 1 Linear gradient weighting mode defined by geometric parameters 2 ... ... N-1 Linear gradient weighting pattern defined by geometric parameters N
  • the weighting mode indicated by the index method is shown in the table:
  • Nonlinear gradient weighting pattern defined by geometric parameters1 2
  • Nonlinear gradient weighting pattern N defined by geometric parameters
  • the weighting mode indicated by the index method is shown in the table:
  • Mode index number Mode Type 0 Multi-segment gradient weighting pattern defined by geometric parameters1 2 Multi-segment gradient weighting pattern defined by geometric parameters2 ... ... N-1 Multi-segment gradient weighting pattern N defined by geometric parameters
  • the inter-frame prediction mode parameters of the current block when decoding the code stream, can be first determined; if the inter-frame prediction mode parameters indicate the use of pixel-level weight values to determine the inter-frame prediction value of the current block, then the determination process of the execution type indication parameters and/or geometric mode parameters can be selected.
  • an identification information (such as an inter-frame prediction mode parameter) can be used to indicate whether to use the coding and decoding method proposed in the embodiment of the present application that uses pixel-level weight values for prediction processing. If the inter-frame prediction value of the current block is determined based on the inter-frame prediction mode parameter using the pixel-level weight value, then the type indication parameter and/or the geometric mode parameter can be determined, thereby further completing the determination of at least one weight parameter of the current block based on the type indication parameter and/or the geometric mode parameter.
  • Step 102 Determine at least one reference prediction value of the current block according to at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter.
  • At least one reference prediction value of the current block can be further determined based on the at least one motion vector information, and at the same time, at least one weight parameter of the current block can be determined based on the type indication parameters and/or geometric mode parameters.
  • At least one weight parameter of the current block may be a pixel-level weight parameter.
  • at least one weight parameter may include at least one pixel weight value, and may also include at least one pixel offset value. That is, at least one weight parameter may include at least one pixel-level weight coefficient, or may include at least one pixel-level weight coefficient and offset value.
  • the at least one reference prediction value of the current block may include a forward reference value and/or a backward reference value.
  • the forward reference value of the current block may be a prediction result obtained by performing forward prediction on the current block
  • the backward reference value of the current block may be a prediction result obtained by performing backward prediction on the current block.
  • the forward reference value may be represented as PredSamplesL0
  • the backward reference value may be represented as PredSamplesL1.
  • the type indication parameter (type index parameter) can be used to select the type of pixel-level weighting parameters, that is, the weighting parameters defined by the pre-stored matrix can be selected, or the weighting parameters defined by the geometric mode parameters can be selected. Therefore, it can be determined whether to use the geometric mode parameters according to the type indication parameter, that is, based on the type indication parameter, it is determined whether to use the geometric mode parameters to determine the weighting parameters.
  • a pre-stored matrix can be further determined, and then at least one weight parameter can be determined based on the pre-stored matrix; correspondingly, if the type indication parameter indicates that the geometric mode parameters are used, then at least one weight parameter can be directly determined based on the geometric mode parameters.
  • the position information of the sampling point in the current block can be selected in combination with the geometric pattern parameters to further determine at least one weight parameter.
  • At least one pixel weight value may be determined according to the position information and geometric pattern parameters of the sampling points in the current block.
  • weighting parameters at least one weight parameter
  • pixel-level weights may be derived at the slice level, or at the coding unit/coding block level.
  • the weighting parameters have certain precision and upper and lower limits.
  • the weighting parameters of pixel-precision may be obtained by interpolation filtering of the derived integer pixel weighting parameters.
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block at the slice level, can be determined based on the gradient mode information, the change start position information, the change end position information, the change direction information and the predefined calculation accuracy; then, the first distance can be determined based on the position information of the sampling point in the current block and the change start position information, and the second distance can be determined based on the position information of the sampling point in the current block and the change end position information; finally, at least one pixel weight value can be further determined based on the first distance, the second distance, the lower limit weight and the upper limit weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the gradient mode information modeParm when performing slice-level weighting based on pixel-level weights, the gradient mode information modeParm, the slice-level change direction information sliceDirParm, the slice-level change start position information sliceStartPosParm, the slice-level change end position information sliceEndPosParm, the slice-level gradient lower limit information minWvalue, the slice-level gradient upper limit information maxWvalue and other geometric mode parameters related to weights are determined based on the current slice.
  • These geometric mode parameters can be used to determine a comprehensive weight parameter sliceewtParm for the current slice, and the weight wLX ij and offset o_LX ij used in slice-level weighted prediction are derived from this parameter.
  • X is the reference list index, when X is 0, it indicates the forward reference list List0, otherwise it indicates the backward reference list List1.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the slice-level change direction information sliceDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, and other different possibilities, such as gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • the slice-level change starting position information sliceStartPosParm can be used to indicate that the gradient starting position is a straight line with a slope of ⁇ 1 and an intercept of ⁇ 1 (or expressed in polar coordinates as an angle of ⁇ 1 and a distance of d 1 ), that is, the straight line is used as the starting gradient position, and this position takes the upper left as the upper/lower limit weight.
  • the weight of the position specified by the parameter can be determined as the lower limit weight minWvalue, that is, the gradient lower limit information is determined.
  • the slice-level change start and end information sliceEndPosParm can be used to indicate that the gradient end position is a straight line with a slope of ⁇ 2 and an intercept of ⁇ 2 (or expressed in polar coordinates as an angle of ⁇ 2 and a distance of d 2 ), that is, the gradient ends from this straight line, and this position takes the lower right as the lower/upper limit weight.
  • the weight of the position specified by the parameter can be determined as the upper limit weight maxWvalue, that is, the gradient upper limit information is determined.
  • the lower limit weight and the upper limit weight can be determined according to the gradient mode information, the change start position information, the change end position information, the change direction information and the predefined calculation accuracy.
  • the first distance can be determined according to the position information of the sampling point in the current block and the change start position information
  • the second distance can be determined according to the position information of the sampling point in the current block and the change end position information.
  • the first distance d L0s [x0][y0] and the second distance d L0e [x0][y0] between the position information of the sampling point in the current block and the gradient start position sliceStartPosParm and the gradient end position sliceEndPosParm can be calculated respectively, so that the weight parameter w L0 [x0][y0] of the pixel point can be further determined according to the first distance and the second distance.
  • at least one pixel weight value can be determined according to the first distance, the second distance, the lower limit weight and the upper limit weight.
  • maxWvalue is the upper limit weight, that is, the gradient upper limit information
  • minWvalue is the lower limit weight, that is, the gradient lower limit information.
  • the first prediction weight can be first determined based on the first distance, the second distance, the lower limit weight and the upper limit weight; then the weight sum value can be determined based on the lower limit weight and the upper limit weight; finally, the second prediction weight can be determined based on the first prediction weight and the weight sum value.
  • the slice-level weighted prediction is a bidirectional weighted prediction
  • the sum of the forward weight value and the backward weight value of the pixel point is the same as the sum of the upper limit weight value and the lower limit weight value, that is, according to the following formula, after determining the weight sum value sumValue, the weight value of the pixel point that has been determined (such as the forward weight value w L0 [x0][y0]) can be used to determine another weight value of the pixel point (such as the backward weight value w L1 [x0][y0]):
  • At least one weight parameter of the current block may include at least one pixel weight value, and may also include at least one pixel offset value.
  • the pixel offset value may be set as a constant for transmission, or the pixel offset value may be obtained using a determined pixel weight value.
  • At least one pixel offset value of the current block can be determined by decoding the bitstream.
  • the offset parameters (offset values) o_L0[x0][y0] and o_L1[x0][y0] can be constants and transmitted separately.
  • At least one pixel offset value may also be determined according to at least one pixel weight value.
  • the offset parameters (offset values) o_L0[x0][y0] and o_L1[x0][y0] may have a linear relationship with w L0 [x0][y0] and w L1 [x0][y0], respectively.
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block at the CU level, such as BCW weighting based on pixel-level weights, can be first determined based on the gradient pattern information, gradient intensity information, change direction information, change center position information and a predefined calculation accuracy, and the change center position weight can be determined based on the upper limit weight and the lower limit weight; then, the third distance can be determined based on the position information of the sampling point in the current block and the change center position information; finally, at least one pixel point weight value can be determined based on the third distance and the change center position weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the gradient mode information modeParm, the CU-level gradient strength information cbSlopeParm, the CU-level change direction information cbDirParm, the CU-level change center position information cbCenterPosParm and other weight-related geometric mode parameters are determined based on the forward reference block of the current CU, and these geometric mode parameters can be used to determine a comprehensive weight parameter cbwtParm for the current CU.
  • the weights wL0 ij , wL1 ij and offsets o_L0 ij , o_L1 ij used in CU-level bidirectional weighted prediction are derived from this parameter.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the CU-level gradient strength information cbSlopeParm may be used to indicate the gradient strength of the gradient mode.
  • cbSlopeParm may be the gradient weight reaching the maximum or minimum when the distance from the specified position is n pixels.
  • the CU-level change direction information cbDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, and other different possibilities, such as gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • cbDirParm is 1, which means that the weighted value of the first pixel gradually decreases as the distance value changes from negative to positive, and is 0, which means that the weighted value of the first pixel gradually increases as the distance value changes from negative to positive.
  • the value is 0.
  • the CU-level change center position information cbCenterPosParm can be determined according to the slope and intercept of the center position in the oblique gradient mode, for example, a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates).
  • the gradient lower limit information is determined from the straight line -n pixels as the gradient start position, and the left or bottom of this start position is the lower limit weight minWvalue.
  • the gradient lower limit information is determined from the straight line n pixels as the gradient end position, and the right or top of the end position is the upper limit weight maxWvalue. The weight changes gradually within the range from the start to the end position.
  • the gradient range range[-n, n] and the gradient direction can be determined, and then the gradient range range[-n, n] and the gradient direction can be used to determine the lower limit weight minWvalue and the upper limit weight maxWvalue.
  • the change center position weight can be determined according to the upper and lower limits minWvalue, maxWvalue and the change center position information cbCenterPosParm.
  • the weight wCenterPos of the change center position information cbCenterPosParm should be the average of the lower and upper limits minWvalue and maxWvalue of the weight, as shown in the following formula:
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the third distance can be determined according to the position information of the sampling point in the current block and the change center position information.
  • a distance parameter L1 between the point and a determined pixel point of the gradient center position cbCenterPosParm of the forward reference block is calculated according to the position information of the sampling point in the current block, that is, the third distance, as shown in the following formula:
  • ⁇ is the distance between the center of the gradient and the origin. Assuming the origin is at the center of the entire block area, that is, for a block with a width of cbWidth and a height of cbHeight, the distance dx and dy relative to the upper left corner pixel can be expressed as follows:
  • the third distance L1 can be calculated according to the following formula:
  • offset values offsetX and offsetY respectively describe the horizontal and vertical components of the distance between the gradient center position line and the origin.
  • the third distance and the weight of the change center position can be used to ultimately determine at least one pixel weight value, which may include a first prediction weight value (for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L0 [x0][y0] and a second prediction weight value (for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L1 [x0][y0].
  • a first prediction weight value for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • w L0 [x0][y0] for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • the intermediate calculation results of the above calculation process can be appropriately enlarged and restored to an appropriate size before the clip operation, that is, the intermediate calculation process can be fixed-point and the enlargement operation can be performed according to the accuracy requirements.
  • the intermediate calculation process can be fixed-point and the enlargement operation can be performed according to the accuracy requirements.
  • shift0 is a factor related to the amplification of intermediate calculation data in order to retain sufficient accuracy.
  • the intermediate calculation results mentioned are amplified to ensure accuracy, including the weights themselves can also be appropriately amplified, where shift1 corresponds to this amplification operation, and then restored to the appropriate pixel value range when calculating the weighted prediction value below.
  • the second prediction weight value (for example, the weight of the backward reference block pixel or the weight of the reference block pixel for intra-frame prediction, etc.)
  • w L1 [x0][y0] can be further derived using w L0 [x0][y0], as shown in the following formula:
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block, can be first determined according to the gradient pattern information, the gradient intensity information, the change direction information, the change center position information and the predefined calculation accuracy, and the change center position weight can be determined according to the upper limit weight and the lower limit weight; then the fourth distance can be determined according to the position information of the sampling point in the current block and the change center position information; finally, at least one pixel point weight value can be determined based on the fourth distance, the lower limit weight, the upper limit weight and the change center position weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the determination of the pixel-level CIIP intra prediction weight wt is not only related to the modeParm, cbSlopeParm, cbDirParm, and cbCenterPosParm of the current CU, but also related to the coding mode of the upper and left adjacent blocks of the current CU.
  • the coding mode of the adjacent block can be identified by two flags, isIntraTop and isIntraLeft. When isIntraTop is 1, the upper adjacent block is available and is in intra mode, and when isIntraLeft is 1, it indicates that the left adjacent block is available and is in intra mode.
  • a comprehensive parameter cbwtParm is determined by modeParm, cbSlopeParm, cbDirParm, cbCenterPosParm and the coding mode information isIntraTop and isIntraLeft of the adjacent blocks.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the gradient strength information cbSlopeParm may be used to indicate the gradient strength of the gradient mode.
  • cbSlopeParm may be the gradient weight reaching the maximum or minimum when the distance from the specified position is 4 pixels.
  • the change direction information cbDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, etc., for example, gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • cbDirParm is 1, which means that the weighted value of the first pixel gradually decreases as the distance value changes from negative to positive, and is 0, which means that the weighted value of the first pixel gradually increases as the distance value changes from negative to positive.
  • the value is 0.
  • the change center position information cbCenterPosParm can be determined according to the slope and intercept of the center position in the oblique gradient mode, for example, a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates).
  • the gradient lower limit information is determined from the straight line -n pixels as the gradient start position, and the left or bottom of this start position is the lower limit weight minWvalue.
  • the gradient lower limit information is determined from the straight line n pixels as the gradient end position, and the right or top of the end position is the upper limit weight maxWvalue. The weight changes gradually within the range from the start to the end position.
  • the gradient range range[-n, n] and the gradient direction can be determined, and then the gradient range range[-n, n] and the gradient direction can be used to determine the lower limit weight minWvalue and the upper limit weight maxWvalue.
  • the change center position weight can be determined according to the upper and lower limits minWvalue, maxWvalue and the change center position information cbCenterPosParm.
  • the weight wCenterPos of the change center position information cbCenterPosParm should be the average of the lower and upper limits minWvalue and maxWvalue of the weight, as shown in the following formula:
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the fourth distance can be determined according to the position information of the sampling point in the current block and the change center position information.
  • a distance parameter L2 i.e., a fourth distance, between the point and a determined pixel point of the gradient center position cbCenterPosParm of the forward reference block is calculated according to the position information of the sampling point in the current block, as shown in the following formula:
  • ⁇ is the distance between the center of the gradient and the origin. Assuming the origin is at the center of the entire block area, that is, for a block with a width of cbWidth and a height of cbHeight, the distance dx and dy relative to the upper left corner pixel can be expressed as follows:
  • the fourth distance L2 can be calculated according to the following formula:
  • offset values offsetX and offsetY respectively describe the horizontal and vertical components of the distance between the gradient center position line and the origin.
  • the fourth distance, the fourth distance, the upper limit weight, the lower limit weight and the change center position weight can be used to finally determine at least one pixel weight value, which may include a first prediction weight value (for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L0 [x0][y0] and a second prediction weight value (for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L1 [x0][y0].
  • a first prediction weight value for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • w L0 [x0][y0] w L0 [x0][y0]
  • the number of gradient pixels on both sides of the gradient center position is n, and the offset values offsetX and offsetY of the current CU block are determined according to the size and gradient mode of the current CU block.
  • the weights here can be appropriately multiplied by a coefficient, or shifted left by 3 bits to be enlarged. Or when specifying minWvalue and maxWvalue, the enlargement of the weights is considered in advance, such as they are respectively enlarged by 2 shift3 times than the actual weighted weights.
  • the sum of the forward weight value and the backward weight value of the pixel point is the same as the sum of the upper limit weight value and the lower limit weight value, that is, according to the following formula, after determining the weight sum value sumValue, the weight value of the pixel point that has been determined (such as the forward weight value w L0 [x0][y0]) can be used to determine another weight value of the pixel point (such as the backward weight value w L1 [x0][y0]):
  • At least one weight parameter of the current block can be either a pixel-level weight parameter or a weight parameter of at least one sub-block of the current block, that is, at least one weight parameter can also include a weight value of at least one sub-block of the current block.
  • weighted parameters with pixel-level gradients may be selected for calculation for pixels at different positions.
  • a method of using sub-blocks e.g., 2x2 or 4x4 sub-blocks as units to take the same weight may be selected for implementation.
  • the weighting parameters on the plane may vary according to a certain geometric rule with reference to the position of the pixel point, or may vary according to a combination of multiple different geometric rules.
  • the pixel-level weight value may vary with the distance of the pixel point from the center change position. When the distance value is between [0, L1], it is a gradual change; when the distance is between (L1, L2], it is a second gradual change.
  • the pixel-level weight value may not only vary with the distance of the pixel from the center change position, but also determine different linear or nonlinear gradient modes for different positions. For example, when the distance value is between [0, L1], the gradient mode is a linear gradient mode, and when the distance is between (L1, L2], it is a nonlinear gradient mode, etc.
  • the coding method proposed in the embodiment of the present application can be used for unidirectional prediction or bidirectional prediction, and can be used in the case where all predictions are derived from inter-frame prediction or in the case where some or all predicted pixel values are derived from intra-frame prediction.
  • a pixel-level weighting parameter (weight parameter) is derived for only one prediction source, which may include a weighting coefficient (weight value) and an offset.
  • the situation for bidirectional prediction can be similar to the WP mode, and pixel-level weighting parameters (weight parameters) for two prediction sources are derived, which may include weighting coefficients (weight values) and offsets; or it can be similar to BCW or CIIP, and only pixel-level weighting coefficients (weight values) for two prediction sources are derived.
  • weight parameters pixel-level weighting parameters for two prediction sources are derived, which may include weighting coefficients (weight values) and offsets; or it can be similar to BCW or CIIP, and only pixel-level weighting coefficients (weight values) for two prediction sources are derived.
  • the weight of the pixel point when determining at least one weight parameter at the pixel level of the current block, can be calculated using the coordinates of the pixel point, or can be generated by selecting predefined weight parameters using a preset matrix, or can be derived from the weight parameters of the pixel points at the adjacent upper and left positions of the pixel point.
  • the pixel weight of the position information of the sampling point can be determined according to the pixel weights of the position information of other sampling points adjacent to the position information of the sampling point.
  • the weight wc of a pixel point can be derived from the weights wt and wl of the pixel points adjacent to the upper and left positions of the coordinates of the pixel point:
  • Step 103 Determine a prediction value of the current block based on at least one reference prediction value and at least one weight parameter.
  • the prediction value of the current block can be further determined based on at least one reference prediction value and at least one weight parameter.
  • the prediction processing can be completed based on the at least one pixel weight value (at least one pixel weight value and at least one pixel offset value) and further combined with at least one reference prediction value of the current block to obtain the prediction value of the current block.
  • the prediction value of the current block in the process of calculating the prediction value of slice-level weighted prediction, can be determined based on at least one reference prediction value, at least one pixel weight and at least one pixel offset value.
  • weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block:
  • the weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block:
  • weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block:
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists List0 and List1 respectively.
  • w L0 [x0][y0] and w L1 [x0][y0] are the pixel-level weights of the forward and backward reference blocks, i.e., the pixel-level weight values of the current block.
  • o_L0[x0][y0] and o_L1[x0][y0] represent the corresponding offsets, i.e., the pixel-level offset values of the current block.
  • the intermediate operation result in order to improve the prediction accuracy, has a higher accuracy than the reference pixel value, and log2_weight_denom and chroma_log2_weight_denom indicate the improved accuracy of the weighting coefficient.
  • shift1 is the improved accuracy of the reference pixel value during the calculation process of pixel interpolation (the integer pixel value is also amplified).
  • the Clip() operation is to clamp the pixel value within the valid range, such as the valid value of 8bit is [0, 255], and the valid value of 10bit is [0, 1023].
  • the prediction value of the current block can be determined according to at least one reference prediction value and at least one pixel point weight.
  • both the forward reference list List0 and the backward reference list List1 are used, and the forward motion vector information MV0 in the forward reference list List0 is used to perform motion compensation prediction to obtain the forward prediction value (forward reference value) PredSamplesL0, and the backward motion vector information MV1 in the backward reference list List1 is used to perform motion compensation prediction to obtain the backward prediction value (backward reference value) PredSamplesL1.
  • BCW is only enabled for the bidirectional prediction CU, only a small number of predefined weights are used, and their indexes are encoded.
  • the prediction value of the current block is:
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists List0 and List1, respectively.
  • w L1 [x0][y0] is the weight of the backward reference pixel value at the relative position (x0, y0) of the block
  • w L0 [x0][y0] is the weight of the forward reference pixel value at the relative position (x0, y0) of the block
  • x0 0...cbWidth-1
  • y0 0...cbHeight-1.
  • maxTempBitDepth is the maximum bit depth allowed in the intermediate process of the operation.
  • the prediction value of the current block can be determined according to at least one reference prediction value and at least one pixel weight.
  • the P intra used is the intra-frame prediction value obtained after the current block is processed by conventional intra-frame prediction in Planar mode
  • P inter is the inter-frame prediction value
  • wt[x0][y0] is the weight of the intra-frame prediction.
  • the prediction value of the current block that is, the weighted prediction value Predsamples CIIP is:
  • w L0 [x0][y0] is the weight of the forward reference pixel value
  • w L1 [x0][y0] is the weight of the backward reference pixel value
  • shift3 is the parameter used to amplify the weight in the previous step to improve the calculation accuracy
  • the right shift is to restore the predicted pixel value to a reasonable value range. If there is no amplification, it can be simply written as:
  • the weight value of the entire forward reference block or backward reference block is no longer fixed to a fixed value, but the weight parameter of the current Slice or CU can be adaptively adjusted according to factors such as light changes in the sequence content. That is, using pixel-level weight values for inter-frame weighted prediction instead of a fixed value for each reference block level further improves the accuracy of inter-frame weighted prediction, thereby improving the coding efficiency of weighted prediction.
  • the embodiment of the present application proposes a decoding method, in which the decoder can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters.
  • the weights used for prediction processing are no longer fixed, but pixel-level weight values that are adapted to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • FIG20 is a schematic diagram of an implementation flow of the encoding method.
  • the encoding method performed by the encoder may include the following steps:
  • Step 201 Determine at least one motion vector information, type indication parameter and/or geometric mode parameter of the current block.
  • the encoder may first determine at least one motion vector information of the current block, and may also determine a type indication parameter and/or a geometric mode parameter.
  • the at least one motion vector information of the current block may include a forward motion vector and/or a backward motion vector.
  • the forward motion vector of the current block can perform forward prediction on the prediction value of the current block
  • the backward motion vector of the current block can perform backward prediction on the prediction value of the current block.
  • the forward motion vector may be represented as MVL0
  • the backward motion vector may be represented as MVL1.
  • the type indication parameter is a type index parameter, wherein the type indication parameter can be used to select the type of pixel-level weighting parameter, that is, it can be used to select the method for determining the pixel-level weighting parameter.
  • the type of pixel-level weighting parameters that is, the method of determining the pixel-level weighting parameters may include but are not limited to the following types (methods): weighting parameters defined by a pre-stored matrix (pre-stored matrix), and weighting parameters defined by geometric pattern parameters.
  • the type indication parameter can be used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters or to use geometric mode parameters to derive pixel-level weighting parameters. It can also be understood that the type indication parameter is used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters, or the type indication parameter is used to determine whether to use geometric mode parameters to derive pixel-level weighting parameters.
  • the geometric pattern parameters may include one or more of the following parameters: gradient pattern information, gradient intensity information, change direction information, change start position information, change center position information, change end position information, gradient upper/lower limit information (i.e., lower limit weight and upper limit weight, which can be derived from other geometric pattern parameters or pre-set), change range width information, and change segment information.
  • the gradient intensity information may also be expressed as change range width information.
  • the gradient mode information may be determined using modeParm, wherein the gradient mode information modeParm may indicate a gradient mode, that is, may indicate a type of gradient mode.
  • the types of gradient patterns may include but are not limited to horizontal gradient weighting, vertical gradient weighting, oblique gradient weighting, radial gradient weighting, affine gradient weighting, and the like.
  • the horizontal gradient mode may include two different change directions; the vertical gradient mode may include two different change directions; the oblique gradient mode may not only have multiple different change directions, but may also include multiple different gradient intensity information; the radial gradient mode involves the change center position.
  • the optimal gradient mode of the current coding unit/coding block can be determined by template matching. Specifically, the upper row and/or left column pixels of the current coding unit/block are taken as templates, and in the process of constructing template predicted pixel values, the predicted values from different sources are subjected to gradient weighting processing, and the most appropriate geometric parameters of the gradient weighting scheme are selected as the parameters of the gradient weighting scheme of the current coding unit/block.
  • some gradient modes with a large gradient width range may be skipped.
  • some gradient modes with a small gradient width range may be skipped.
  • the number of segments of the gradient pattern can be adaptively increased to make the prediction more accurate.
  • the gradient strength information can be determined using slopeParm, wherein the gradient strength information slopeParm can indicate the speed of change, that is, it can indicate the speed of change of the gradient weight parameter as the pixel distance specifies the position (the position of the point or line).
  • the linear gradient intensity information can be indicated by an index method.
  • 0 represents no gradient, a direct jump
  • m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches the specified position of (2m-1)/M pixel positions, a linear gradient is used when the distance is closer, and the maximum or minimum is maintained when the distance is farther, where the value of M can be 2, 1, 1/2, etc.
  • the linear gradient strength information is indicated in an index manner.
  • 0 means that w is a constant, with no gradient or jump;
  • m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches t ⁇ width/(2m-1), where width is the unit corresponding width (slice width or coding block width) for calculating the gradient weight parameter, and t is a constant.
  • the change direction information can be determined by dirParm, wherein the change direction information dirParm can indicate the direction in which the change intensity changes, that is, it can indicate the direction in which the gradient intensity information of the weight parameter for the first predicted pixel changes.
  • the change direction information is indicated in an index manner, for example, 0 represents from minimum to maximum, and 1 represents from maximum to minimum.
  • the change start position information can be determined by startPosParm, wherein the change start position information startPosParm can include different numbers of parameters according to different gradient types. That is, the number of parameters included in the change start position information corresponds to the gradient type (gradient mode information).
  • the change start position information when the gradient mode information indicates a horizontal gradient mode, the change start position information may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change start position information may include a set of Cartesian coordinate system parameters for representing a straight line, one of which represents a slope and the other represents an intercept; for example, in an oblique gradient mode, the change start position information may include a set of polar coordinate system parameters for representing a straight line, one representing an angle and the other representing a distance; when the gradient mode information indicates a radial gradient mode, the change start position information may include a set of parameters representing a radial shape and its corresponding position, for example, in the case of a circle, when the starting position is a point, the Cartesian coordinate system is the horizontal and vertical coordinates, and the polar coordinate system is the angle and distance; when the gradient mode information indicates an affine gradient mode, the change start position information may include a set of parameters representing the positions of multiple control points
  • the change center position information can be determined by centerPosParm, wherein the change center position information centerPosParm is the position of the median value of the weight parameter of the gradient area. For example, when the gradient interval is 0 to 1, the median value is 0.5, and the weight parameter is based on this position and gradually increases or decreases toward both sides.
  • the change center position information centerPosParm may include different numbers of parameters. That is, the number of parameters included in the change center position information corresponds to the gradient type (gradient mode information).
  • the change center position information when the gradient mode information indicates a horizontal gradient mode, may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change center position information may include a set of parameters for a straight line represented by a Cartesian coordinate system, one for a slope and one for an intercept; when the gradient mode information indicates an oblique gradient mode, the change center position information may include a set of parameters for a straight line represented by a polar coordinate system, one for an angle and one for a distance; when the gradient mode information indicates a radial gradient mode, the change center position information may include a set of parameters representing radial shapes and their corresponding positions, such as in the case of a circle, when the center position is a circle, the Cartesian coordinate system contains horizontal and vertical coordinates and a radius, and the polar coordinate system contains center point position information and a radius, and when the center point is aligned with the zero point, only radius information may be provided; when the gradient mode information indicates a horizontal gradient mode, the
  • the change end position information endPosParm can be determined by, wherein, depending on the gradient type, the change end position endPosParm can include different numbers of parameters. That is, the number of parameters included in the change end position information corresponds to the gradient type (gradient mode information).
  • the change cutoff position information when the gradient mode information indicates a horizontal gradient mode, may include a horizontal axis coordinate position; when the gradient mode information indicates an oblique gradient mode, the change cutoff position information may include a set of parameters for a straight line represented by a Cartesian coordinate system, one for a slope and one for an intercept; when the gradient mode information indicates an oblique gradient mode, the change cutoff position information may include a set of parameters for a straight line represented by a polar coordinate system, one for an angle and one for a distance; when the gradient mode information indicates a radial gradient mode, the change cutoff position information may include a set of parameters representing a radial shape and its corresponding position, such as in the case of a circle, when the cutoff position is a circle, in the Cartesian coordinate system, the cutoff position information refers to the horizontal and vertical coordinates and the radius, and in the polar coordinate system, it refers to the center point position information and the radius, and when the
  • the gradient upper/lower limit information (lower limit weight and upper limit weight) can be determined by maxWvalue/minWvalue, wherein the gradient upper/lower limit information maxWvalue/minWvalue can be used to indicate the upper/lower limit information of the weight parameter, which can be derived from other geometric pattern parameters or pre-set.
  • the gradient upper/lower limit information maxWvalue/minWvalue may be the values corresponding to the weights 0 and 1 under the corresponding precision requirements. For example, assuming the precision is 3 digits after the binary decimal point, then the lower limit 0 corresponds to 0 and the upper limit 1 corresponds to 8 after fixed-point conversion; assuming the precision is 5 digits after the binary decimal point, then the lower limit 0 corresponds to 0 and the upper limit 1 corresponds to 32 after fixed-point conversion.
  • the lower limit of the weighting parameter generally corresponds to 0, that is, the reference pixels at the corresponding position are not used during weighting
  • the upper limit of the weighting parameter generally corresponds to 1, that is, all reference pixels at the corresponding position are used during weighting.
  • the gradient upper/lower limit information maxWvalue/minWvalue may not be the weights corresponding to 0 and 1, for example, it may be the values corresponding to 0.2 and 0.4 under the corresponding accuracy requirements.
  • the change segment information may be determined by segParm, wherein the change segment information segParm may indicate relevant information of a continuous gradient consisting of a plurality of segments, and may include information whose meaning covers the aforementioned plurality of parameters.
  • the change segment information segParm may include multiple segments, including information such as the gradient intensity information, the change direction information, the change start position information, the change end position information, etc. of each segment.
  • the change segment information segParm may include multiple segments, including information such as the change direction information, the change start position information, the change end position information, the gradient upper limit information, and the gradient lower limit information of each segment.
  • any information in the geometric pattern parameters namely, gradient pattern information, gradient intensity information (change range width information), change direction information, change start position information, change center position information, change end position information, gradient upper/lower limit information, and change segment information, can be converted into index form through quantization.
  • the geometry mode parameter can be used to indicate a geometry change set, wherein the geometry change set includes change start position information, change center position information, and change end position information.
  • the change start position information, the change center position information, and the change end position information can specify different possibilities, and each possible line is predefined as an ordered set, so these positions can be specified by only one index.
  • one index can correspond to one ordered set, so that the corresponding position information can be specified.
  • the type indication parameter may be used to determine whether to use a pre-stored matrix to derive pixel-level weighting parameters or to use a geometric pattern parameter to derive pixel-level weighting parameters.
  • the number and dimension of the pre-defined matrix are limited.
  • the weighted matrix of the pre-defined dimension it can be applied to a variety of regions with different dimensions and different precision requirements by interpolation and other methods.
  • the weighted parameters defined by the geometric parameters refer to the weighted parameters calculated by the geometric parameters.
  • the weighted parameters on the plane change with the pixel position according to a certain geometric law.
  • the weighted parameter wtParm that changes according to a certain geometric law can be expressed by at least one of the following parameters: gradient mode information modeParm, gradient intensity information slopeParm, change direction information dirParm, change start position information startPosParm, change center position information centerPosParm, change end position information endPosParm, gradient upper/lower limit information minParm/maxParm, and change segment information segParm.
  • the geometric pattern parameters of different image blocks are the same, for example, the geometric pattern parameters such as the gradient intensity information and the change direction information of each CU are basically consistent, then one or more weight matrices can be predefined first, and the coding unit block can upsample, downsample, or truncate the predefined weight matrix based on the pixel-level weighted weights.
  • the mode type for deriving pixel-level weighting parameters can be selected in an indexed manner. For example, the mode index number is determined based on the type indication parameter, and then the mode type for deriving pixel-level weighting parameters is determined according to the mode index number, that is, whether the weighting parameters are defined by a pre-stored matrix or by a geometric parameter.
  • the weighting mode indicated by the index method is shown in Table 1.
  • the weighting mode indicated by the index method is shown in Table 2.
  • the weighting mode indicated by the index method is shown in Table 3.
  • the weighting mode indicated by the index method is shown in Table 4.
  • the inter-frame prediction mode parameters of the current block can be determined first; if the inter-frame prediction mode parameters indicate the use of pixel-level weight values to determine the inter-frame prediction value of the current block, then the determination process of the execution type indication parameters and/or geometric mode parameters can be selected.
  • an identification information (such as an inter-frame prediction mode parameter) can be used to indicate whether to use the coding and decoding method proposed in the embodiment of the present application that uses pixel-level weight values for prediction processing. If the inter-frame prediction value of the current block is determined based on the inter-frame prediction mode parameter using the pixel-level weight value, then the type indication parameter and/or the geometric mode parameter can be determined, thereby further completing the determination of at least one weight parameter of the current block based on the type indication parameter and/or the geometric mode parameter.
  • Step 202 Determine at least one reference prediction value of the current block according to at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter.
  • At least one reference prediction value of the current block can be further determined based on the at least one motion vector information, and at the same time, at least one weight parameter of the current block can be determined based on the type indication parameters and/or geometric mode parameters.
  • At least one weight parameter of the current block may be a pixel-level weight parameter.
  • at least one weight parameter may include at least one pixel weight value, and may also include at least one pixel offset value. That is, at least one weight parameter may include at least one pixel-level weight coefficient, or may include at least one pixel-level weight coefficient and offset value.
  • the at least one reference prediction value of the current block may include a forward reference value and/or a backward reference value.
  • the forward reference value of the current block may be a prediction result obtained by performing forward prediction on the current block
  • the backward reference value of the current block may be a prediction result obtained by performing backward prediction on the current block.
  • the forward reference value may be represented as PredSamplesL0
  • the backward reference value may be represented as PredSamplesL1.
  • the type indication parameter (type index parameter) can be used to select the type of pixel-level weighting parameters, that is, the weighting parameters defined by the pre-stored matrix can be selected, or the weighting parameters defined by the geometric mode parameters can be selected. Therefore, it can be determined whether to use the geometric mode parameters according to the type indication parameter, that is, based on the type indication parameter, it is determined whether to use the geometric mode parameters to determine the weighting parameters.
  • a pre-stored matrix can be further determined, and then at least one weight parameter can be determined based on the pre-stored matrix; correspondingly, if the type indication parameter indicates that the geometric mode parameters are used, then at least one weight parameter can be directly determined based on the geometric mode parameters.
  • the position information of the sampling point in the current block can be selected in combination with the geometric pattern parameters to further determine at least one weight parameter.
  • At least one pixel weight value may be determined according to the position information and geometric pattern parameters of the sampling points in the current block.
  • weighting parameters at least one weight parameter
  • pixel-level weights may be derived at the slice level, or at the coding unit/coding block level.
  • the weighting parameters have certain precision and upper and lower limits.
  • the weighting parameters of pixel-precision may be obtained by interpolation filtering of the derived integer pixel weighting parameters.
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block at the slice level, can be determined based on the gradient mode information, the change start position information, the change end position information, the change direction information and the predefined calculation accuracy; then, the first distance can be determined based on the position information of the sampling point in the current block and the change start position information, and the second distance can be determined based on the position information of the sampling point in the current block and the change end position information; finally, at least one pixel weight value can be further determined based on the first distance, the second distance, the lower limit weight and the upper limit weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the gradient mode information modeParm when performing slice-level weighting based on pixel-level weights, the gradient mode information modeParm, the slice-level change direction information sliceDirParm, the slice-level change start position information sliceStartPosParm, the slice-level change end position information sliceEndPosParm, the slice-level gradient lower limit information minWvalue, the slice-level gradient upper limit information maxWvalue and other geometric mode parameters related to weights are determined based on the current slice.
  • These geometric mode parameters can be used to determine a comprehensive weight parameter sliceewtParm for the current slice, and the weight wLX ij and offset o_LX ij used in slice-level weighted prediction are derived from this parameter.
  • X is the reference list index, when X is 0, it indicates the forward reference list List0, otherwise it is the backward reference list List1.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the slice-level change direction information sliceDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, and other different possibilities, such as gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • the slice-level change starting position information sliceStartPosParm can be used to indicate that the gradient starting position is a straight line with a slope of ⁇ 1 and an intercept of ⁇ 1 (or expressed in polar coordinates as an angle of ⁇ 1 and a distance of d 1 ), that is, the straight line is used as the starting gradient position, and this position takes the upper left as the upper/lower limit weight.
  • the weight of the position specified by the parameter can be determined as the lower limit weight minWvalue, that is, the gradient lower limit information is determined.
  • the slice-level change start and end information sliceEndPosParm can be used to indicate that the gradient end position is a straight line with a slope of ⁇ 2 and an intercept of ⁇ 2 (or expressed in polar coordinates as an angle of ⁇ 2 and a distance of d 2 ), that is, the gradient ends from this straight line, and this position takes the lower right as the lower/upper limit weight.
  • the weight of the position specified by the parameter can be determined as the upper limit weight maxWvalue, that is, the gradient upper limit information is determined.
  • the lower limit weight and the upper limit weight can be determined according to the gradient mode information, the change start position information, the change end position information, the change direction information and the predefined calculation accuracy.
  • the first distance can be determined according to the position information of the sampling point in the current block and the change start position information
  • the second distance can be determined according to the position information of the sampling point in the current block and the change end position information.
  • the first distance d L0s [x0][y0] and the second distance d L0e [x0][y0] between the position information of the sampling point in the current block and the gradient start position sliceStartPosParm and the gradient end position sliceEndPosParm can be calculated respectively, so that the weight parameter w L0 [x0][y0] of the pixel point can be further determined according to the first distance and the second distance.
  • at least one pixel weight value can be determined according to the first distance, the second distance, the lower limit weight and the upper limit weight.
  • the first prediction weight can be first determined based on the first distance, the second distance, the lower limit weight and the upper limit weight; then the weight sum value can be determined based on the lower limit weight and the upper limit weight; finally, the second prediction weight can be determined based on the first prediction weight and the weight sum value.
  • the slice-level weighted prediction is a bidirectional weighted prediction
  • the sum of the forward weight value and the backward weight value of the pixel point is the same as the sum of the upper limit weight value and the lower limit weight value, that is, according to the following formula, after determining the weight sum value sumValue, a weight value of the pixel point that has been determined (such as the forward weight value w L0 [x0][y0]) can be used to determine another weight value of the pixel point (such as the backward weight value w L1 [x0][y0]), as shown in formulas (13) and (14).
  • At least one weight parameter of the current block may include at least one pixel weight value, and may also include at least one pixel offset value.
  • the pixel offset value may be set as a constant for transmission, or the pixel offset value may be obtained using a determined pixel weight value.
  • At least one pixel offset value of the current block can be determined.
  • the offset parameters (offset values) o_L0[x0][y0] and o_L1[x0][y0] can be constants and transmitted separately.
  • At least one pixel offset value may also be determined according to at least one pixel weight value.
  • the offset parameters (offset values) o_L0[x0][y0] and o_L1[x0][y0] may have a linear relationship with w L0 [x0][y0] and w L1 [x0][y0], respectively.
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block at the CU level, such as BCW weighting based on pixel-level weights, can be first determined based on the gradient pattern information, gradient intensity information, change direction information, change center position information and a predefined calculation accuracy, and the change center position weight can be determined based on the upper limit weight and the lower limit weight; then, the third distance can be determined based on the position information of the sampling point in the current block and the change center position information; finally, at least one pixel point weight value can be determined based on the third distance and the change center position weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the gradient mode information modeParm, the CU-level gradient strength information cbSlopeParm, the CU-level change direction information cbDirParm, the CU-level change center position information cbCenterPosParm and other weight-related geometric mode parameters are determined based on the forward reference block of the current CU, and these geometric mode parameters can be used to determine a comprehensive weight parameter cbwtParm for the current CU.
  • the weights wL0 ij , wL1 ij and offsets o_L0 ij , o_L1 ij used in CU-level bidirectional weighted prediction are derived from this parameter.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the CU-level gradient strength information cbSlopeParm may be used to indicate the gradient strength of the gradient mode.
  • cbSlopeParm may be the gradient weight reaching the maximum or minimum when the distance from the specified position is n pixels.
  • the CU-level change direction information cbDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, and other different possibilities, such as gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • cbDirParm is 1, which means that the weighted value of the first pixel gradually decreases as the distance value changes from negative to positive, and is 0, which means that the weighted value of the first pixel gradually increases as the distance value changes from negative to positive.
  • the value is 0.
  • the CU-level change center position information cbCenterPosParm can be determined according to the slope and intercept of the center position in the oblique gradient mode, for example, a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates).
  • the gradient lower limit information is determined from the straight line -n pixels as the gradient start position, and the left or bottom of this start position is the lower limit weight minWvalue.
  • the gradient lower limit information is determined from the straight line n pixels as the gradient end position, and the right or top of the end position is the upper limit weight maxWvalue. The weight changes gradually within the range from the start to the end position.
  • the gradient range range[-n, n] and the gradient direction can be determined, and then the gradient range range[-n, n] and the gradient direction can be used to determine the lower limit weight minWvalue and the upper limit weight maxWvalue.
  • the change center position weight can be determined according to the upper and lower limits minWvalue, maxWvalue and the change center position information cbCenterPosParm.
  • the weight wCenterPos of the change center position information cbCenterPosParm should be the average of the weight lower limit and upper limit minWvalue, maxWvalue, as shown in formula (15).
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the third distance can be determined according to the position information of the sampling point in the current block and the change center position information.
  • the distance parameter L1 between the point and the determined pixel point of the gradient center position cbCenterPosParm of the forward reference block is calculated based on the position information of the sampling point in the current block, that is, the third distance, as shown in formula (16).
  • ⁇ is the distance between the gradient center and the origin. Assuming the origin is at the center of the entire block area, that is, for a block with a width of cbWidth and a height of cbHeight, the distances dx and dy relative to the upper left corner pixel can be as shown in formulas (17) and (18).
  • the third distance L1 can be determined by calculation according to formula (19): wherein the offset values offsetX and offsetY respectively describe the horizontal and vertical components of the distance between the gradient center position line and the origin.
  • the third distance and the weight of the change center position can be used to ultimately determine at least one pixel weight value, which may include a first prediction weight value (for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L0 [x0][y0] and a second prediction weight value (for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L1 [x0][y0].
  • a first prediction weight value for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • w L0 [x0][y0] for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • the intermediate calculation results of the above calculation process can be appropriately enlarged and restored to an appropriate size before the clip operation, that is, the intermediate calculation process can be fixed-point, and the enlargement operation is performed according to the accuracy requirements.
  • formulas (22) to (24) shift0 is a factor related to the enlargement of the intermediate calculation data to retain sufficient accuracy.
  • the intermediate calculation results mentioned are amplified to ensure accuracy, including the weights themselves can also be appropriately amplified, where shift1 corresponds to this amplification operation, and then restored to the appropriate pixel value range when calculating the weighted prediction value below.
  • the second prediction weight value (for example, the weight of the backward reference block pixel point or the weight of the reference block pixel point for intra-frame prediction, etc.)
  • w L1 [x0][y0] can be further derived using w L0 [x0][y0], as shown in formula (28).
  • the lower limit weight and the upper limit weight when deriving at least one weight parameter of the current block, can be first determined according to the gradient pattern information, the gradient intensity information, the change direction information, the change center position information and the predefined calculation accuracy, and the change center position weight can be determined according to the upper limit weight and the lower limit weight; then the fourth distance can be determined according to the position information of the sampling point in the current block and the change center position information; finally, at least one pixel point weight value can be determined based on the fourth distance, the lower limit weight, the upper limit weight and the change center position weight.
  • the upper limit weight and the lower limit weight can be determined based on the geometric mode parameters in combination with the predefined calculation accuracy.
  • the upper limit weight and the lower limit weight may be determined by one or more parameters in the geometric mode parameters, or may be predefined, that is, the pre-set upper limit weight and lower limit weight may be used directly without referring to the geometric mode parameters.
  • the lower limit weight can be predefined as 0 and the upper limit weight can be predefined as 8; or, the upper limit weight can be determined as 16 based on a predefined calculation accuracy; or, the upper limit weight can be determined as 32 based on geometric mode parameters.
  • the determination of the CIIP intra prediction weight wt based on the pixel level is not only related to the modeParm, cbSlopeParm, cbDirParm, and cbCenterPosParm of the current CU, but also related to the coding mode of the upper and left adjacent blocks of the current CU.
  • the coding mode of the adjacent block can be identified by two flags, isIntraTop and isIntraLeft. Among them, when isIntraTop is 1, the upper adjacent block is available and is in intra mode, and when isIntraLeft is 1, it indicates that the left adjacent block is available and is in intra mode.
  • a comprehensive parameter cbwtParm is determined by modeParm, cbSlopeParm, cbDirParm, cbCenterPosParm and the coding mode information isIntraTop and isIntraLeft of the adjacent blocks.
  • the gradient mode information modeParm may be used to indicate that the gradient mode is a single-segment linear oblique gradient mode defined by geometric parameters.
  • the gradient strength information cbSlopeParm may be used to indicate the gradient strength of the gradient mode.
  • cbSlopeParm may be the gradient weight reaching the maximum or minimum when the distance from the specified position is 4 pixels.
  • the change direction information cbDirParm can be used to indicate that the change direction of the weighted value of the first predicted pixel is from left to right or from right to left, from top to bottom, from bottom to top, etc., for example, gradually increasing from the upper left (calculated distance is negative) to the lower right (calculated distance is positive).
  • cbDirParm is 1, which means that the weighted value of the first pixel gradually decreases as the distance value changes from negative to positive, and is 0, which means that the weighted value of the first pixel gradually increases as the distance value changes from negative to positive.
  • the value is 0.
  • the change center position information cbCenterPosParm can be determined according to the slope and intercept of the center position in the oblique gradient mode, for example, a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates).
  • the gradient lower limit information is determined from the straight line -n pixels as the gradient start position, and the left or bottom of this start position is the lower limit weight minWvalue.
  • the gradient lower limit information is determined from the straight line n pixels as the gradient end position, and the right or top of the end position is the upper limit weight maxWvalue. The weight changes gradually within the range from the start to the end position.
  • the gradient range range[-n, n] and the gradient direction can be determined, and then the gradient range range[-n, n] and the gradient direction can be used to determine the lower limit weight minWvalue and the upper limit weight maxWvalue. Then, in the case of linear gradient, the change center position weight can be determined according to the upper and lower limits minWvalue, maxWvalue and the change center position information cbCenterPosParm.
  • the weight wCenterPos of the change center position information cbCenterPosParm should be the average of the lower and upper limits minWvalue and maxWvalue of the weight, as shown in formula (29). Assume that minWvalue is 0 and maxWvalue is 1.
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the gradient mode information indicates that the gradient mode is a linear oblique gradient mode
  • the fourth distance can be determined according to the position information of the sampling point in the current block and the change center position information.
  • the distance parameter L2 i.e., the fourth distance, between the point and the determined pixel point of the gradient center position cbCenterPosParm of the forward reference block is calculated based on the position information of the sampling point in the current block, as shown in formula (30).
  • ⁇ is the distance between the gradient center and the origin. Assuming the origin is at the center of the entire block area, that is, for a block with a width of cbWidth and a height of cbHeight, the distances dx and dy relative to the upper left corner pixel can be as shown in formulas (31) and (32).
  • the fourth distance L2 can be determined by calculation according to formula (33).
  • offset values offsetX and offsetY respectively describe the horizontal and vertical components of the distance between the gradient center position line and the origin.
  • the fourth distance, the fourth distance, the upper limit weight, the lower limit weight and the change center position weight can be used to finally determine at least one pixel weight value, which may include a first prediction weight value (for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L0 [x0][y0] and a second prediction weight value (for example, the weight of a backward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.) w L1 [x0][y0].
  • a first prediction weight value for example, the weight of a forward reference block pixel or the weight of a reference block pixel predicted within a frame, etc.
  • w L0 [x0][y0] w L0 [x0][y0]
  • the number of gradient pixels on both sides of the gradient center position is n, and the offset values offsetX and offsetY of the current CU block are determined according to the size and gradient mode of the current CU block.
  • the weights here can be appropriately multiplied by a coefficient, or shifted left by 3 bits to be enlarged. Or when specifying minWvalue and maxWvalue, the enlargement of the weights is considered in advance, such as they are respectively enlarged by 2 shift3 times than the actual weighted weights.
  • the sum of the forward weight value and the backward weight value of the pixel point is the same as the sum of the upper limit weight value and the lower limit weight value, that is, according to the following formula, after determining the weight sum value sumValue, the weight value of the pixel point that has been determined (such as the forward weight value w L0 [x0][y0]) can be used to determine another weight value of the pixel point (such as the backward weight value w L1 [x0][y0]), as shown in formulas (36) and (37).
  • At least one weight parameter of the current block can be either a pixel-level weight parameter or a weight parameter of at least one sub-block of the current block, that is, at least one weight parameter can also include a weight value of at least one sub-block of the current block.
  • weighted parameters with pixel-level gradients may be selected for calculation for pixels at different positions.
  • a method of using sub-blocks e.g., 2x2 or 4x4 sub-blocks as units to take the same weight may be selected for implementation.
  • the weighting parameters on the plane may vary according to a certain geometric rule with reference to the position of the pixel point, or may vary according to a combination of multiple different geometric rules.
  • the pixel-level weight value may vary with the distance of the pixel point from the center change position. When the distance value is between [0, L1], it is a gradual change; when the distance is between (L1, L2], it is a second gradual change.
  • the pixel-level weight value may not only vary with the distance of the pixel from the center change position, but also determine different linear or nonlinear gradient modes for different positions. For example, when the distance value is between [0, L1], the gradient mode is a linear gradient mode, and when the distance is between (L1, L2], it is a nonlinear gradient mode, etc.
  • the coding method proposed in the embodiment of the present application can be used for unidirectional prediction or bidirectional prediction, and can be used in the case where all predictions are derived from inter-frame prediction or in the case where some or all predicted pixel values are derived from intra-frame prediction.
  • a pixel-level weighting parameter (weight parameter) is derived for only one prediction source, which may include a weighting coefficient (weight value) and an offset.
  • the situation for bidirectional prediction can be similar to the WP mode, and pixel-level weighting parameters (weight parameters) for two prediction sources are derived, which may include weighting coefficients (weight values) and offsets; or it can be similar to BCW or CIIP, and only pixel-level weighting coefficients (weight values) for two prediction sources are derived.
  • weight parameters pixel-level weighting parameters for two prediction sources are derived, which may include weighting coefficients (weight values) and offsets; or it can be similar to BCW or CIIP, and only pixel-level weighting coefficients (weight values) for two prediction sources are derived.
  • the weight of the pixel point when determining at least one weight parameter at the pixel level of the current block, can be calculated using the coordinates of the pixel point, or can be generated by selecting predefined weight parameters using a preset matrix, or can be derived from the weight parameters of the pixel points at the adjacent upper and left positions of the pixel point.
  • the pixel weight of the position information of the sampling point can be determined according to the pixel weights of the position information of other sampling points adjacent to the position information of the sampling point.
  • the weight wc of a pixel point can be derived from the weights wt and wl of the pixel points adjacent to the upper and left positions of the coordinates of the pixel point, as shown in formula (38).
  • Step 203 Determine a prediction value of the current block based on at least one reference prediction value and at least one weight parameter.
  • the prediction value of the current block can be further determined based on at least one reference prediction value and at least one weight parameter.
  • the prediction processing can be completed based on the at least one pixel weight value (at least one pixel weight value and at least one pixel offset value) and further combined with at least one reference prediction value of the current block to obtain the prediction value of the current block.
  • the prediction value of the current block in the process of calculating the prediction value of slice-level weighted prediction, can be determined based on at least one reference prediction value, at least one pixel weight and at least one pixel offset value.
  • weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block as formula (39).
  • weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block as formula (40).
  • weighted prediction processing can be performed according to the following formula to determine the prediction value Pred WP of the current block as formula (41).
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists List0 and List1 respectively.
  • w L0 [x0][y0] and w L1 [x0][y0] are the pixel-level weights of the forward and backward reference blocks, i.e., the pixel-level weight values of the current block.
  • o_L0[x0][y0] and o_L1[x0][y0] represent the corresponding offsets, i.e., the pixel-level offset values of the current block.
  • the intermediate operation result in order to improve the prediction accuracy, has a higher accuracy than the reference pixel value, and log2_weight_denom and chroma_log2_weight_denom indicate the improved accuracy of the weighting coefficient.
  • shift1 is the improved accuracy of the reference pixel value during the calculation process of pixel interpolation (the integer pixel value is also amplified).
  • the Clip() operation is to clamp the pixel value within the valid range, such as the valid value of 8bit is [0, 255], and the valid value of 10bit is [0, 1023].
  • the prediction value of the current block can be determined according to at least one reference prediction value and at least one pixel point weight.
  • both the forward reference list List0 and the backward reference list List1 are used, and the forward motion vector information MV0 in the forward reference list List0 is used to perform motion compensation prediction to obtain the forward prediction value (forward reference value) PredSamplesL0, and the backward motion vector information MV1 in the backward reference list List1 is used to perform motion compensation prediction to obtain the backward prediction value (backward reference value) PredSamplesL1.
  • BCW is only enabled for the bidirectional prediction CU, only a small number of predefined weights are used, and their indexes are encoded.
  • the prediction value of the current block is formula (44).
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists List0 and List1, respectively.
  • w L1 [x0][y0] is the weight of the backward reference pixel value at the relative position (x0, y0) of the block
  • w L0 [x0][y0] is the weight of the forward reference pixel value at the relative position (x0, y0) of the block
  • x0 0...cbWidth-1
  • y0 0...cbHeight-1.
  • maxTempBitDepth is the maximum bit depth allowed in the intermediate process of the operation.
  • the prediction value of the current block can be determined according to at least one reference prediction value and at least one pixel weight.
  • the P intra used is the intra-frame prediction value obtained after the current block is processed by conventional intra-frame prediction in Planar mode
  • P inter is the inter-frame prediction value
  • wt[x0][y0] is the weight of the intra-frame prediction.
  • the prediction value of the current block that is, the weighted prediction value Predsamples CIIP is formula (45).
  • w L0 [x0][y0] is the weight of the forward reference pixel value
  • w L1 [x0][y0] is the weight of the backward reference pixel value
  • shift3 is the parameter used to amplify the weight in the previous step to improve the calculation accuracy
  • the right shift is to restore the predicted pixel value to a reasonable value range. If there is no amplification, it can be simply written as formula (46).
  • the weight value of the entire forward reference block or backward reference block is no longer fixed to a fixed value, but the weight parameter of the current Slice or CU can be adaptively adjusted according to factors such as light changes in the sequence content. That is, using pixel-level weight values for inter-frame weighted prediction instead of a fixed value for each reference block level further improves the accuracy of inter-frame weighted prediction, thereby improving the coding efficiency of weighted prediction.
  • the embodiment of the present application proposes a coding method, in which the encoder can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters.
  • the weights used for prediction processing are no longer fixed, but pixel-level weight values that are adapted to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • the coding and decoding method proposed in the embodiments of the present application can determine the pixel-level weighting parameters for the reference block during weighted prediction, and the scheme can be applied to a variety of inter-frame weighted prediction technology scenarios.
  • the pixel-level weighting parameters are derived from a small number of control parameters.
  • the control parameters include type indexes (type indication parameters) and/or geometric parameters (type indication parameters).
  • type indication parameters type indication parameters
  • the geometric parameters can be given directly according to the geometric meaning, or an alternative in an optional set can be given in the form of an index.
  • the type index parameter is used to select the type of pixel-level weighting parameter.
  • the type of pixel-level weighting parameter may include but is not limited to the following types: weighting parameters defined by a pre-stored matrix, and weighting parameters defined by geometric parameters.
  • the number and dimension of pre-defined matrices are limited.
  • the weighting matrix of pre-defined dimensions it can be applied to multiple areas with different dimensions and different precision requirements through interpolation and other methods.
  • the weighting parameter defined by the geometric parameters refers to the weighting parameter calculated by the geometric parameters.
  • the weighting parameter on the plane changes with the pixel position according to a certain geometric law.
  • the weighting parameter wtParm that changes according to a certain geometric law can be expressed by at least one of the following parameters: gradient mode information modeParm, gradient intensity information slopeParm, change direction information dirParm, change start position information startPosParm, change center position information centerPosParm, change end position information endPosParm, gradient upper/lower limit information minParm/maxParm, and change segment information segParm.
  • the gradient mode information modeParm may indicate the gradient mode and the type of gradient mode, including but not limited to horizontal gradient weighting, vertical gradient weighting, oblique gradient weighting, radial gradient weighting, affine gradient weighting, etc.
  • the weighting mode indicated by the index method is shown in Table 1.
  • the weighting mode indicated by the index method is shown in Table 2.
  • the weighting mode indicated by the index method is shown in Table 3.
  • the weighting mode indicated by the index method is shown in Table 4.
  • the gradient intensity slopeParm can indicate how fast the gradient weight parameter changes with the distance of the pixel from the specified position (the position of the point or line).
  • the linear gradient intensity is indicated by the index method: 0 means no gradient, direct jump; m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches the specified position (2 m-1 )/M pixel position, linear gradient is used when the distance is closer, and the maximum or minimum is maintained when the distance is farther, where the value of M can be 2, 1, 1/2, etc.
  • the linear gradient intensity is indicated by the index method: 0 means w is a constant, no gradient and no jump; m means that the gradient weight parameter reaches the maximum or minimum when the distance reaches t ⁇ width/(2 m-1 ), where width is the unit corresponding width (slice width or coding block width) for calculating the gradient weight parameter, and t is a constant.
  • the change direction information dirParm may indicate the direction of the gradual change of the intensity of the weight parameter for the first prediction pixel, for example, 0 represents from minimum to maximum, and 1 represents from maximum to minimum.
  • the startPosParm information of the change starting position may contain different numbers of parameters depending on the gradient type. For example, in the horizontal gradient mode, it contains a horizontal axis coordinate position; in the oblique gradient mode, it contains a set of parameters for the straight line represented by the Cartesian coordinate system, one for the slope and one for the intercept; in the oblique gradient mode, it contains a set of parameters for the straight line represented by the polar coordinate system, one for the angle and one for the distance; in the radial gradient mode, it contains a set of parameters for the radial shape and its corresponding position.
  • the Cartesian coordinate system when the starting position is a point, contains the horizontal and vertical coordinates, and the polar coordinate system contains the angle and distance; in the affine gradient mode, it contains a set of parameters for the positions of multiple control points or multiple control lines.
  • oblique gradients can include horizontal and vertical gradient modes.
  • the change center position information centerPosParm is the position of the median of the weight parameter of the gradient area (when the gradient interval is 0 to 1, the median is 0.5).
  • the weight parameter is based on this position and gradually increases or decreases to both sides. Depending on the gradient type, different numbers of parameters can be included.
  • the horizontal gradient mode it contains a horizontal axis coordinate position; for example, in the oblique gradient mode, it contains a set of parameters representing the straight line in the Cartesian coordinate system, one for the slope and one for the intercept; for example, in the oblique gradient mode, it contains a set of parameters representing the straight line in the polar coordinate system, one for the angle and one for the distance; for example, in the radial gradient mode, it contains a set of parameters representing the radial shape and its corresponding position.
  • the Cartesian coordinate system is the horizontal and vertical coordinates and the radius
  • the polar coordinate system is the center point position information and the radius.
  • the center point is aligned with the zero point, there may be only radius information; for example, in the affine gradient mode, it contains a set of parameters representing the positions of multiple control points or multiple control lines.
  • the endPosParm information of the change end position can contain different numbers of parameters according to the different gradient types.
  • the horizontal gradient mode it contains a horizontal axis coordinate position
  • the end position information contains a set of parameters representing the straight line in the Cartesian coordinate system, one for the slope and one for the intercept
  • in the oblique gradient mode it contains a set of parameters representing the straight line in the polar coordinate system, one for the angle and one for the distance
  • the end position information contains a set of parameters representing the radial shape and its corresponding position.
  • the end position information refers to the horizontal and vertical coordinates and the radius, and in the polar coordinate system, it refers to the center point position information and the radius.
  • the center point is aligned with the zero point, there may be only the radius information; in the affine gradient mode, the end position information contains a set of parameters representing the positions of multiple control points or multiple control lines.
  • the gradient upper/lower limit information minWvalue/maxWvalue specifically refers to the upper/lower limit information of the weight parameter, such as the values corresponding to the weights 0 and 1 under the corresponding precision requirements (if the precision is 3 digits after the binary decimal point, the lower limit 0 corresponds to 0 after fixed-point conversion, and the upper limit 1 corresponds to 8; if the precision is 5 digits after the binary decimal point, the lower limit 0 corresponds to 0 after fixed-point conversion, and the upper limit 1 corresponds to 32); the lower limit of the weight parameter generally corresponds to 0, that is, the reference pixel at the corresponding position is not used during weighting, and the upper limit weight parameter generally corresponds to 1, that is, all reference pixels at the corresponding position are used during weighting.
  • the gradient upper/lower limit information minWvalue/maxWvalue may also be weights other than 0 and 1, such as the values corresponding to 0.2 and 0.4 under the corresponding precision requirements.
  • the change segment information segParm may indicate the related information of the continuous gradient composed of multiple segments, and may include information covering the aforementioned multiple parameters. For example, it may include multiple segments, the gradient intensity, change direction, change start position, and change end position of each segment. Or it may include multiple segments, the gradient change direction, change start position, change end position, gradient upper limit, and gradient lower limit of each segment.
  • Each of the above information can be quantified into an index form.
  • the starting, center, and end positions of the change can specify different possibilities.
  • Each possible line is predefined as an ordered set, and these positions can be specified by only one index.
  • the derived weighting parameters can be implemented at different levels, for example, they can be derived at the slice level or at the coding unit/coding block level.
  • the weighting parameters have certain precision and upper and lower limits.
  • the weighting parameters with sub-pixel precision can be obtained by interpolation filtering of the derived integer pixel weighting parameters.
  • This scheme can be used for unidirectional prediction or bidirectional prediction, and can be used in the case where all predictions are derived from inter-frame prediction or in the case where some or all predicted pixel values are derived from intra-frame prediction.
  • unidirectional prediction is similar to the WP mode, and pixel-level weighting parameters for only one prediction source are derived, including weighting coefficients and offsets.
  • bidirectional prediction can be similar to the WP mode, deriving pixel-level weighting coefficients and offsets for two prediction sources, or it can be similar to BCW or CIIP, only deriving pixel-level weighting coefficients for two prediction sources.
  • the codec proposed in the embodiment of the present application takes the bidirectional prediction at the coding unit/coding block level as an example.
  • the weighted prediction process proposed in the embodiment of the present application can first obtain the forward and backward motion vector information MV0 and MV1 of the current block; then use MV0 and MV1 to perform motion compensation respectively to obtain the forward and backward prediction values PredSampleL0 and PredSampleL1 of the current block; then, the set parameters of the current block can be used to determine the weighted weights wL0ij and wL1ij, or wL0ij and wL1ij and the offsets oL0ij and oL1ij at the pixel level of the forward and backward prediction blocks, wherein the gradient can be determined first.
  • One or more parameters including intensity parameter slopeParm, change direction parameter dirParm, change segment parameter segParm, change start position parameter startPosParm, change center position parameter centerPOsParm and change end position parameter endPosParm, and then the forward and backward prediction pixel-level weighted weights wL0ij, wL1ij, or wL0ij, wL1ij and offsets oL0ij, oL1ij are determined by the one or more parameters obtained; finally, weighted prediction processing can be performed, that is, brightness weighted prediction and chrominance weighted prediction are performed in turn.
  • Slice-level weighting based on pixel-level weights determines six weight-related parameters, namely modeParm, sliceDirParm, sliceStartPosParm, sliceEndPosParm, minWvalue and maxWvalue, for the current Slice. These six parameters can be used to determine a comprehensive weight parameter slicewtParm for the current Slice.
  • the weight wLX ij and offset o_LX ij used in Slice-level weighted prediction are derived from this parameter.
  • X is the reference list index. When X is 0, it indicates the forward reference list L0, otherwise it is the backward reference list L1.
  • the obtained parameter indication information is as follows:
  • modeParm specifies the mode as a single-segment linear diagonal gradient mode defined by geometric parameters
  • sliceDirParm specifies that the weighted value of the first predicted pixel has different possibilities such as from left to right or from right to left, from top to bottom, from bottom to top, etc., for example, it gradually increases from the upper left (calculated distance is negative) to the lower right (calculated distance is positive);
  • sliceStartPosParm specifies that the gradient starting position is a straight line with a slope of ⁇ 1 and an intercept of ⁇ 1 (or an angle of ⁇ 1 and a distance of d 1 in polar coordinates), that is, the straight line is the starting gradient position, and the upper left is the upper/lower limit weight of this position.
  • the weight of the position specified by this parameter is the lower limit weight minWvalue;
  • sliceEndPosParm specifies the gradient cutoff position as a straight line with a slope of ⁇ 2 and an intercept of ⁇ 2 (or expressed in polar coordinates as an angle of ⁇ 2 and a distance of d 2 ), that is, the gradient ends from this straight line.
  • This position takes the lower right as the lower/upper limit weight.
  • the weight of the position specified by this parameter is the upper limit weight maxWvalue.
  • the distances d L0s [x0][y0] and d L0e [x0][y0] between the position information of the sampling point in the current block and the gradient start position sliceStartPosParm and the gradient end position sliceEndPosParm are calculated respectively, and the weight parameter w L0 [x0][y0] of the pixel point is determined according to the distance, as shown in the following formula:
  • the offset parameters o_L0[x0][y0] and o_L1[x0][y0] may be constants transmitted separately, or may have a linear relationship with w L0 [x0][y0] and w L1 [x0][y0], respectively.
  • the grammatical elements of slice-level weighted prediction and the acquisition of reference pixel values of each CU of the current slice are not changed, and the process of obtaining the slice weighted prediction value is as follows.
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists list0 and list1 respectively.
  • w L0 [x0][y0] and w L1 [x0][y0] are the weights of the pixel levels of the forward and backward reference blocks respectively
  • o_L0[x0][y0] and o_L1[x0][y0] represent the corresponding offsets.
  • the intermediate operation results have higher accuracy than the reference pixel values.
  • log2_weight_denom and chroma_log2_weight_denom indicate the improved accuracy of the weighting coefficients.
  • the Clip() operation clamps the pixel value within the valid range, such as the valid value of 8bit is [0, 255], and the valid value of 10bit is [0, 1023].
  • BCW weighting based on pixel-level weights determines four weight-related parameters, modeParm, cbSlopeParm, cbDirParm, and cbCenterPosParm, for the current CU. These four parameters can be used to determine a comprehensive weight parameter cbwtParm for the current Slice.
  • the weights wL0 ij , wL1 ij and offsets o_L0 ij , o_L1 ij used in CU-level bidirectional weighted prediction are derived from this parameter.
  • modeParm specifies the mode as single-segment linear diagonal gradient mode
  • cbSlopeParm specifies the gradient strength of the gradient mode.
  • the gradient weight reaches the maximum or minimum when the distance to the specified position is n pixels;
  • cbDirParm specifies that the weighted value of the first predicted pixel increases gradually from the left or bottom (calculated distance is negative) to the right or top (calculated distance is positive).
  • cbDirParm is 1, which means that the weighted value of the first pixel gradually decreases as the distance value changes from negative to positive, and 0 means that the weighted value gradually increases as the distance value changes from negative to positive, and here the value is 0;
  • cbCenterPosParm determines the center position of the gradient according to the slope and intercept of the center position in the oblique gradient mode; it is a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates), combined with the information given by cbDirParm and cbSlopeParm, that is, the straight line - n pixels is the starting gradient position, the starting position has the left or bottom as the lower limit weight, the straight line n pixels is the gradient cutoff position, the cutoff position has the right or top as the upper limit weight, and the weight gradually changes from the starting to the cutoff position;
  • the gradient range range[-n, n] and gradient direction can be determined based on the two parameters cbSlopeParm and cbDirParm.
  • the weight wCenterPos of the gradient center position cbCenterPosParm should be the average of the upper and lower limits minWvalue and maxWvalue, that is
  • a distance parameter L between the point and a determined pixel point at the gradient center position cbCenterPosParm of the forward reference block is calculated according to the position information of the sampling point in the current block.
  • ⁇ is the distance between the center of the gradient and the origin.
  • the distances dx and dy relative to the upper left corner pixel are as follows:
  • the distance can be calculated by the following formula:
  • offset values offsetX and offsetY describe the horizontal and vertical components of the distance between the gradient center line and the origin, respectively.
  • the weight w L0 [x0][y0] of the pixel point of the forward reference block is determined according to the parameter, and the weight is obtained as shown in the following formula:
  • the intermediate calculation results of the above calculation process can be appropriately enlarged and restored to an appropriate size before the clip operation. That is, the intermediate calculation process can be fixed-point and enlarged according to the accuracy requirements.
  • Shift0 is a factor related to data amplification to retain sufficient accuracy for intermediate operations.
  • the intermediate calculation results are amplified to ensure accuracy, including the weights themselves which can also be appropriately amplified.
  • Shift1 in the formula corresponds to this amplification operation, and is restored to the appropriate pixel value range when calculating the weighted prediction value below.
  • the weights of the pixels in the backward reference block can be obtained from the weights of the forward reference block, namely:
  • both the forward reference list List0 and the backward reference list List1 are used.
  • the forward motion vector information MV0 in the forward reference list List0 is used for motion compensation prediction to obtain the forward prediction value PredSamplesL0
  • the backward motion vector information MV1 in the backward reference list List1 is used for motion compensation prediction to obtain the backward prediction value PredSamplesL1.
  • BCW is only enabled for bidirectionally predicted CUs, using only a small number of predefined weights and encoding their indexes.
  • PredSamplesL0 and PredSamplesL1 are the reference pixel values in the reference lists list0 and list1 respectively.
  • w[x0][y0] is the weight of the backward reference pixel value at the relative position (x0, y0) of the block
  • maxTempBitDepth is the maximum bit depth allowed in the intermediate process of the operation.
  • the determination of the pixel-level CIIP intra prediction weight wt is related to the current CU's modeParm, cbSlopeParm, cbDirParm, and cbCenterPosParm, as well as the coding modes of the neighboring blocks on the upper and left sides of the current CU.
  • the coding modes of the neighboring blocks are identified by two flags, isIntraTop and isIntraLeft. When isIntraTop is 1, the upper neighboring block is available and is in intra-frame mode. When isIntraLeft is 1, it indicates that the left neighboring block is available and is in intra-frame mode.
  • a comprehensive parameter cbwtParm is determined by modeParm, cbSlopeParm, cbDirParm, cbCenterPosParm, and the neighboring block's coding mode information isIntraTop and isIntraLeft.
  • the obtained parameter indication information is as follows:
  • modeParm specifies the mode as single-segment linear diagonal gradient mode
  • cbSlopeParm specifies that the gradient strength of the gradient mode is the gradient weight reaching the maximum or minimum when the distance to the specified position is 4 pixels;
  • cbDirParm specifies that the weighted value of the first predicted pixel in the direction gradually increases from the upper left (calculated distance is negative) to the lower right (calculated distance is positive);
  • cbCenterPosParm determines the center position of the gradient according to the slope and intercept of the center position in the oblique gradient mode; it is a straight line with a slope of ⁇ and an intercept of ⁇ (or an angle of ⁇ and a distance of d in polar coordinates), combined with the information given by cbDirParm and cbSlopeParm, that is, the straight line - n pixels is the starting gradient position, the starting position has the left or bottom as the lower limit weight, the straight line n pixels is the gradient cutoff position, the cutoff position has the right or top as the upper limit weight, and the weight gradually changes from the starting to the cutoff position;
  • the weight wCenterPos of the gradient center position cbCenterPosParm is the average of the upper and lower limits of the weight minWvalue and maxWvalue, that is
  • the weights of each pixel are calculated as follows:
  • the distance parameter L between the point and the determined pixel point of the gradient center position cbCenterPosParm of the forward reference block is calculated according to the position information of the sampling point in the current block:
  • ⁇ is the distance between the center of the gradient and the origin. Assume that the origin is at the center of the entire block area, that is, for a block with a width of cbWidth and a height of cbHeight, the distance from the upper left corner pixel is
  • the distance can be calculated by the following formula:
  • the offset values offsetX and offsetY respectively describe the horizontal and vertical components of the distance between the gradient center position line and the origin.
  • the weight w L0 [x0][y0] of the forward reference block pixel is determined based on the parameter.
  • the weight is obtained as shown in the following formula, where the gradient pixels on both sides of the gradient center position are n, and the offset values offsetX and offsetY of the current CU block are determined based on the size and gradient mode of the current CU block;
  • the weights here can be appropriately multiplied by a coefficient, or shifted left by 3 bits to enlarge them. Or when specifying minWvalue and maxWvalue, the enlargement of the weights is considered in advance, such as they are enlarged by 2 shift3 times of the actual weighted weights.
  • the weights of the pixels in the backward reference block can be obtained from the weights of the forward reference block, that is:
  • P intra is the intra prediction value obtained after the current block is processed by the Planar mode for conventional intra prediction
  • P inter is the inter prediction value
  • wt[x0][y0] is the weight of the intra prediction.
  • shift3 is the parameter used in the previous step to amplify the weights to improve the calculation accuracy.
  • the right shift is to restore the predicted pixel value to a reasonable value range. If there is no amplification, it can be simply written as:
  • the above three embodiments respectively introduce different calculation methods with slice level weighting, CU level two Inter prediction amount weighting, and CU level one Inter and one Intra prediction amount weighting.
  • these calculation methods are not actually designed differently for the slice level or CU level alone, nor are they designed differently because each prediction amount involved in the weighting comes from the Inter or Intra prediction method.
  • pixel-level weight values are used in weighted prediction, and the weight values of the entire forward reference block or backward reference block are no longer fixed to a fixed value.
  • the weighting parameters of the current Slice or CU are adjusted according to factors such as light changes in the sequence content, which can further improve the coding efficiency of weighted prediction.
  • pixel-level weight values are used for inter-frame weighted prediction, rather than a fixed value for each reference block level weight, which further improves the accuracy of inter-frame weighted prediction and is beneficial to improving coding efficiency.
  • weighted parameters with pixel-level gradients are calculated for pixels at different positions.
  • a method of taking the same weight value for sub-blocks e.g., 2x2 or 4x4 sub-blocks
  • sub-blocks e.g., 2x2 or 4x4 sub-blocks
  • the weighting parameters on the plane vary with the pixel position according to a certain geometric law, and may also vary by combining multiple different geometric laws.
  • the weight varies with the distance of the pixel point from the center change position. When the distance value is between [0, L1], it is a gradual change mode; when the distance is between (L1, L2], it is a second gradual change mode, and so on.
  • different linear or nonlinear gradient modes can be determined for different positions. For example, when the distance value is between [0, L1], the gradient mode is a linear gradient mode, and when the distance is between (L1, L2], it is a nonlinear gradient mode.
  • one or more weight matrices can be predefined first, and the coding unit block can upsample, downsample, or truncate the predefined weight matrix based on pixel-level weighted weights.
  • the optimal gradient mode of the current coding unit/coding block can be determined by template matching. Specifically, the upper row and/or left column pixels of the current coding unit/block are taken as templates, and in the process of constructing template predicted pixel values, the predicted values from different sources are subjected to gradient weighting processing, and the most appropriate geometric parameters of the gradient weighting scheme are selected as the parameters of the gradient weighting scheme of the current coding unit/block.
  • some gradient modes with a large gradient width range may be skipped.
  • some gradient modes with a small gradient width range may be skipped.
  • the number of segments of the gradient pattern can be adaptively increased to make the prediction more accurate.
  • the embodiment of the present application provides a coding method, in which the codec can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters.
  • the weights used for prediction processing are no longer fixed, but pixel-level weight values that are adapted to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • FIG. 21 is a schematic diagram of a composition structure of an encoder.
  • the encoder 30 may include: a first determining unit 31, wherein:
  • the first determination unit 31 is configured to determine at least one motion vector information, and a type indication parameter and/or a geometric mode parameter of the current block; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular.
  • the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.
  • the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
  • an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 30, and the computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, the method described in any one of the aforementioned embodiments is implemented.
  • Figure 22 is a second schematic diagram of the composition structure of the encoder.
  • the encoder 30 may include: a first memory 32 and a first processor 33, a first communication interface 34 and a first bus system 35.
  • the first memory 32, the first processor 33, and the first communication interface 34 are coupled together through the first bus system 35.
  • the first bus system 35 is used to achieve connection and communication between these components.
  • the first bus system 35 also includes a power bus, a control bus, and a status signal bus.
  • various buses are labeled as the first bus system 35. Among them,
  • a first communication interface 34 used for receiving and sending signals during the process of sending and receiving information with other external network elements
  • the first memory 32 is used to store a computer program that can be run on the first processor
  • the first processor 33 is used to determine at least one motion vector information, as well as a type indication parameter and/or a geometric mode parameter of the current block when running the computer program; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the first memory 32 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
  • the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory can be a random access memory (RAM), which is used as an external cache.
  • RAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate synchronous DRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous link DRAM
  • DRRAM direct RAM bus RAM
  • the first processor 33 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 33.
  • the above-mentioned first processor 33 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the first memory 32, and the first processor 33 reads the information in the first memory 32 and completes the steps of the above method in combination with its hardware.
  • the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device digital signal processing devices
  • PLD programmable logic devices
  • FPGA field programmable gate array
  • general processors controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.
  • the technology described in this application can be implemented by a module (such as a process, function, etc.) that performs the functions described in this application.
  • the software code can be stored in a memory and executed by a processor.
  • the memory can be implemented in the processor or outside the processor.
  • the first processor 33 is further configured to execute the method described in any one of the aforementioned embodiments when running the computer program.
  • FIG. 23 is a schematic diagram of a structure of a decoder.
  • the decoder 40 may include: a decoding unit 41 and a second determining unit 42; wherein,
  • the decoding unit 41 is configured to decode the code stream
  • the second determination unit 42 is configured to determine at least one motion vector information, and a type indication parameter and/or a geometric mode parameter of the current block; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular.
  • the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.
  • the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
  • an embodiment of the present application provides a computer-readable storage medium, which is applied to the decoder 40.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, the method described in any one of the above embodiments is implemented.
  • Figure 24 is a second schematic diagram of the composition structure of the decoder.
  • the decoder 40 may include: a second memory 43 and a second processor 44, a second communication interface 45 and a second bus system 46.
  • the second memory 43 and the second processor 44, and the second communication interface 45 are coupled together through the second bus system 46.
  • the second bus system 46 is used to realize the connection and communication between these components.
  • the second bus system 46 also includes a power bus, a control bus and a status signal bus.
  • various buses are labeled as the second bus system 46. Among them,
  • the second communication interface 45 is used for receiving and sending signals during the process of sending and receiving information with other external network elements
  • the second memory 43 is used to store a computer program that can be run on the second processor
  • the second processor 44 is used to decode the bit stream when running the computer program, determine at least one motion vector information of the current block, and a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the second memory 43 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.
  • the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory can be a random access memory (RAM), which is used as an external cache.
  • RAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate synchronous DRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous link DRAM
  • DRRAM direct RAM bus RAM
  • the second processor 44 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 44.
  • the above-mentioned second processor 44 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general processor can be a microprocessor or the processor can also be any conventional processor, etc.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the second memory 43, and the second processor 44 reads the information in the second memory 43 and completes the steps of the above method in combination with its hardware.
  • the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device digital signal processing devices
  • PLD programmable logic devices
  • FPGA field programmable gate array
  • general processors controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.
  • the technology described in this application can be implemented by a module (such as a process, function, etc.) that performs the functions described in this application.
  • the software code can be stored in a memory and executed by a processor.
  • the memory can be implemented in the processor or outside the processor.
  • the embodiment of the present application provides a codec, at the decoding end, the codec can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters.
  • the weights used for prediction processing are no longer fixed, but pixel-level weight values that are adapted to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.
  • the embodiment of the present application also provides a code stream, which is generated by bit encoding based on the information to be encoded; wherein the information to be encoded may include at least one of the following: inter-frame prediction mode parameters of the current block, at least one motion vector information of the current block, type indication parameters and/or geometric mode parameters.
  • the embodiment of the present application provides a coding method, a codec, a bitstream and a storage medium, wherein the codec can determine at least one motion vector information of the current block, as well as a type indication parameter and/or a geometric mode parameter; determine at least one reference prediction value of the current block according to the at least one motion vector information, and determine at least one weight parameter of the current block according to the type indication parameter and/or the geometric mode parameter; and determine the prediction value of the current block based on the at least one reference prediction value and the at least one weight parameter.
  • the codec can determine the pixel-level weight parameters of the current block through the type indication parameter and/or the geometric mode parameter, and then perform prediction processing on the current block according to the pixel-level weight parameters. It can be seen that in the embodiment of the present application, the weights used for prediction processing are no longer fixed, but pixel-level weight values that are adapted to the changes in pixel points are selected, which greatly improves the accuracy of weighted prediction, thereby improving coding efficiency and compression performance.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
PCT/CN2022/135906 2022-12-01 2022-12-01 编解码方法、编解码器、码流以及存储介质 Ceased WO2024113311A1 (zh)

Priority Applications (9)

Application Number Priority Date Filing Date Title
PCT/CN2022/135906 WO2024113311A1 (zh) 2022-12-01 2022-12-01 编解码方法、编解码器、码流以及存储介质
CN202280102178.XA CN120303924A (zh) 2022-12-01 2022-12-01 编解码方法、编解码器、码流以及存储介质
EP22966900.7A EP4629614A1 (en) 2022-12-01 2022-12-01 Encoding and decoding method, codec, bitstream, and storage medium
AU2022490380A AU2022490380A1 (en) 2022-12-01 2022-12-01 Encoding and decoding method, codec, bitstream, and storage medium
KR1020257021373A KR20250113488A (ko) 2022-12-01 2022-12-01 코딩 및 디코딩 방법, 코덱, 비트 스트림 및 저장 매체
JP2025530617A JP2025537388A (ja) 2022-12-01 2022-12-01 符号化・復号化方法、コーデック、ビットストリーム、並びに記憶媒体
TW112145916A TW202425649A (zh) 2022-12-01 2023-11-27 編解碼方法、編解碼器、碼流以及儲存媒介
US19/218,998 US20250287012A1 (en) 2022-12-01 2025-05-27 Encoding and decoding method, and decoder
MX2025006406A MX2025006406A (es) 2022-12-01 2025-05-30 Metodo de codificacion y decodificacion, codec, flujo de bits y medio de almacenamiento

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/135906 WO2024113311A1 (zh) 2022-12-01 2022-12-01 编解码方法、编解码器、码流以及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US19/218,998 Continuation US20250287012A1 (en) 2022-12-01 2025-05-27 Encoding and decoding method, and decoder

Publications (1)

Publication Number Publication Date
WO2024113311A1 true WO2024113311A1 (zh) 2024-06-06

Family

ID=91322676

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135906 Ceased WO2024113311A1 (zh) 2022-12-01 2022-12-01 编解码方法、编解码器、码流以及存储介质

Country Status (9)

Country Link
US (1) US20250287012A1 (cg-RX-API-DMAC7.html)
EP (1) EP4629614A1 (cg-RX-API-DMAC7.html)
JP (1) JP2025537388A (cg-RX-API-DMAC7.html)
KR (1) KR20250113488A (cg-RX-API-DMAC7.html)
CN (1) CN120303924A (cg-RX-API-DMAC7.html)
AU (1) AU2022490380A1 (cg-RX-API-DMAC7.html)
MX (1) MX2025006406A (cg-RX-API-DMAC7.html)
TW (1) TW202425649A (cg-RX-API-DMAC7.html)
WO (1) WO2024113311A1 (cg-RX-API-DMAC7.html)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810686A (zh) * 2020-06-01 2021-12-17 杭州海康威视数字技术股份有限公司 一种编解码方法、装置及其设备
CN114651447A (zh) * 2019-12-24 2022-06-21 腾讯美国有限责任公司 用于视频编解码的方法和装置
CN114666580A (zh) * 2019-12-31 2022-06-24 Oppo广东移动通信有限公司 一种帧间预测方法、编码器、解码器及存储介质
US20220224923A1 (en) * 2019-09-23 2022-07-14 Huawei Technologies Co., Ltd. Method and Apparatus of Weighted Prediction for Non-Rectangular Partitioning Modes
CN115136601A (zh) * 2020-02-07 2022-09-30 抖音视界有限公司 几何分割模式
CN115315953A (zh) * 2020-04-03 2022-11-08 Oppo广东移动通信有限公司 一种帧间预测方法、编码器、解码器及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12335502B2 (en) * 2022-04-20 2025-06-17 Tencent America LLC Adaptive blending for geometric partition mode (GPM)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220224923A1 (en) * 2019-09-23 2022-07-14 Huawei Technologies Co., Ltd. Method and Apparatus of Weighted Prediction for Non-Rectangular Partitioning Modes
CN114651447A (zh) * 2019-12-24 2022-06-21 腾讯美国有限责任公司 用于视频编解码的方法和装置
CN114666580A (zh) * 2019-12-31 2022-06-24 Oppo广东移动通信有限公司 一种帧间预测方法、编码器、解码器及存储介质
CN115136601A (zh) * 2020-02-07 2022-09-30 抖音视界有限公司 几何分割模式
CN115315953A (zh) * 2020-04-03 2022-11-08 Oppo广东移动通信有限公司 一种帧间预测方法、编码器、解码器及存储介质
CN113810686A (zh) * 2020-06-01 2021-12-17 杭州海康威视数字技术股份有限公司 一种编解码方法、装置及其设备

Also Published As

Publication number Publication date
TW202425649A (zh) 2024-06-16
EP4629614A1 (en) 2025-10-08
CN120303924A (zh) 2025-07-11
US20250287012A1 (en) 2025-09-11
JP2025537388A (ja) 2025-11-14
KR20250113488A (ko) 2025-07-25
AU2022490380A1 (en) 2025-07-17
MX2025006406A (es) 2025-07-01

Similar Documents

Publication Publication Date Title
US12273531B2 (en) Encoding method, decoding method, and decoder
JP2024156976A (ja) 動画処理方法、およびストリーム生成方法
CN113196765A (zh) 图像预测方法、编码器、解码器以及存储介质
CN112470468A (zh) 解码预测方法、装置及计算机存储介质
CN120513634A (zh) 解码方法、编码方法、解码器和编码器
CN113228647A (zh) 图像预测方法、编码器、解码器以及存储介质
CN113840144A (zh) 图像分量的预测方法、编码器、解码器及计算机存储介质
JP2026500444A (ja) 復号方法、符号化方法、復号装置および符号化装置
CN113411588B (zh) 预测方向的确定方法、解码器以及计算机存储介质
EP4629614A1 (en) Encoding and decoding method, codec, bitstream, and storage medium
CN118592023A (zh) 编解码方法、码流、编码器、解码器以及存储介质
CN113261279A (zh) 预测值的确定方法、编码器、解码器以及存储介质
JP2025537388A5 (cg-RX-API-DMAC7.html)
WO2024207136A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2026007113A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2026085791A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2025217773A1 (zh) 一种视频编解码方法、编码器、解码器以及存储介质
WO2026085787A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2026011430A9 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2026007125A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2025213400A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
WO2025217770A1 (zh) 编解码方法、编解码器以及存储介质
WO2025065420A1 (zh) 编解码方法、码流、编码器、解码器以及存储介质
CN122003862A (zh) 编解码方法、码流、编码器、解码器以及存储介质
HK40042297A (en) Decoding prediction method and apparatus, and computer storage medium

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2025530617

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2025530617

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 202280102178.X

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: MX/A/2025/006406

Country of ref document: MX

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112025010639

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 202517060530

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: AU2022490380

Country of ref document: AU

WWE Wipo information: entry into national phase

Ref document number: 2022966900

Country of ref document: EP

Ref document number: 2025117571

Country of ref document: RU

WWP Wipo information: published in national office

Ref document number: MX/A/2025/006406

Country of ref document: MX

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022966900

Country of ref document: EP

Effective date: 20250701

WWP Wipo information: published in national office

Ref document number: 202517060530

Country of ref document: IN

Ref document number: 202280102178.X

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2022490380

Country of ref document: AU

Date of ref document: 20221201

Kind code of ref document: A

WWP Wipo information: published in national office

Ref document number: 1020257021373

Country of ref document: KR

WWP Wipo information: published in national office

Ref document number: 2025117571

Country of ref document: RU

WWP Wipo information: published in national office

Ref document number: 2022966900

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 112025010639

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20250527