WO2024093994A1 - 编解码方法和装置 - Google Patents
编解码方法和装置 Download PDFInfo
- Publication number
- WO2024093994A1 WO2024093994A1 PCT/CN2023/128410 CN2023128410W WO2024093994A1 WO 2024093994 A1 WO2024093994 A1 WO 2024093994A1 CN 2023128410 W CN2023128410 W CN 2023128410W WO 2024093994 A1 WO2024093994 A1 WO 2024093994A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- encoded
- image block
- coding
- prediction
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
- H04L65/762—Media network packet handling at the source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- 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
-
- 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/124—Quantisation
-
- 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/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/146—Data rate or code amount at the encoder output
-
- 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/146—Data rate or code amount at the encoder output
- H04N19/147—Data rate or code amount at the encoder output according to rate distortion criteria
-
- 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/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame 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/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/172—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 picture, frame or field
-
- 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/46—Embedding additional information in the video signal during the compression process
- H04N19/463—Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
-
- 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
-
- 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 media technology, and in particular to a coding and decoding method and device.
- the media device uses the display interface when transmitting media content.
- the display interface transmits media content, it can compress the media content through encoding operations to reduce the bandwidth during the transmission of the media content.
- the receiving end needs to decode the compressed media content through decoding operations to restore the media content.
- Bit rate control can adjust the output bit rate during the encoding process. Different bit rate control methods will have a significant impact on the quality of the decoded image.
- the embodiment of the present application provides a coding and decoding method and device, which can improve the image quality of the image obtained after decoding. To achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
- an embodiment of the present application provides a coding method, the method comprising: first obtaining an image block to be coded, then determining the coding complexity of the image block to be coded according to multiple prediction modes, then determining the quantization parameter of the image block to be coded according to the coding complexity, and then encoding the image block to be coded according to the quantization parameter to generate a bitstream.
- the multiple prediction modes include at least one of block-level prediction, point-level prediction, and intra-frame block copy prediction, and the coding complexity is used to characterize the coding difficulty of the image block to be coded.
- the quantization parameter used in the encoding process will directly affect the image quality of the decoded image.
- the image quality of the decoded image can be improved by adjusting the quantization parameter through the coding complexity of the image.
- the related art uses the horizontal and vertical gradients of the image to calculate the coding complexity of the image.
- the result of the gradient calculation is far different from the prediction error of the weak directional prediction mode.
- the coding complexity calculated by the gradient and the actual coding complexity of the actual current coding block (image block) in the best prediction mode are far different, which leads to the inaccurate derived quantization parameter, affecting the image quality.
- the embodiment of the present application determines the coding complexity of the image block to be encoded through multiple prediction modes.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the accuracy of the improved quantization parameter will make the image quality of the decoded image correspondingly improved.
- a prediction operation can be performed on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode; then, a target parameter corresponding to the image block to be encoded and each prediction mode is determined according to the prediction residual, and the target parameter includes at least one of the sum of absolute errors, the sum of absolute transformation differences, or the number of lossless coding bits; and then, the coding complexity of the image block to be encoded is determined according to the target parameter.
- the method provided in the embodiment of the present application can perform prediction operations on the image block to be encoded through multiple prediction modes to obtain the sum of absolute errors, the sum of absolute transformation differences or the number of lossless coding bits corresponding to the image block to be encoded and each prediction mode, and then determine the coding complexity of the image block to be encoded based on this information.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will make the image quality of the decoded image correspondingly improved.
- the first coding complexity of the image block to be encoded can be determined according to the target parameter; the image block to be encoded is divided into a plurality of sub-blocks. A horizontal difference block and a vertical difference block of each of the plurality of sub-blocks are determined. The horizontal difference block and the vertical difference block of the sub-block determine the second coding complexity of the image block to be coded. The coding complexity of the image block to be coded is determined according to the first coding complexity and the second coding complexity.
- the method provided in the embodiment of the present application can calculate the image coding complexity through multiple prediction modes and the horizontal and vertical gradients of the image. Compared with calculating the image coding complexity only through the horizontal and vertical gradients of the image, the accuracy of the coding complexity of the image block can be improved in the weakly directional prediction mode. By improving the accuracy of the coding complexity, the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will make the image quality of the decoded image correspondingly improved.
- the coding complexity of the image block to be encoded can be determined according to the target absolute error, the target sum of absolute transformation differences or the target number of lossless coding bits
- the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode
- the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode
- the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the embodiment of the present application determines the target absolute error, the target sum of absolute transformation differences or the target number of lossless coding bits through multiple prediction modes, and then determines the coding complexity of the image block to be encoded through the target absolute error, the target sum of absolute transformation differences or the target number of lossless coding bits.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will lead to a corresponding improvement in the image quality of the decoded image.
- the image block to be encoded may be divided into a plurality of sub-blocks. Prediction operations are performed on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Target parameters corresponding to each sub-block and each prediction mode are determined according to the prediction residuals, and the target parameters include at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits. The coding complexity of the image block to be encoded is determined according to the target parameters.
- the method provided in the embodiment of the present application can perform prediction operations on the sub-blocks of the image block to be encoded through multiple prediction modes to obtain the absolute error sum, the absolute transformation difference sum or the number of lossless coding bits corresponding to each sub-block of the image block to be encoded and each prediction mode, and then determine the coding complexity of the image block to be encoded based on this information.
- the best prediction mode of the current image block is a strong directional prediction mode or a weak directional prediction mode
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will make the image quality of the decoded image correspondingly improved.
- the image block to be encoded is divided into multiple sub-blocks, and a prediction operation is performed on the multiple sub-blocks of the image block to be encoded through multiple prediction modes. The accuracy of the obtained coding complexity can be further improved.
- the coding complexity of each sub-block may be determined according to the target parameter.
- the coding complexity of the image block to be encoded may be determined according to the coding complexity of each sub-block.
- the method provided in the embodiment of the present application can perform prediction operations on multiple sub-blocks of the image block to be encoded through multiple prediction modes to obtain the coding complexity of each sub-block of the encoded image block, and then calculate the coding complexity of the image block to be encoded through the coding complexity of each sub-block of the image block to be encoded.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will lead to a corresponding improvement in the image quality of the decoded image.
- a first coding complexity of the image block to be encoded can be determined according to the target parameters; a horizontal difference block and a vertical difference block of each sub-block among the multiple sub-blocks can be determined; a second coding complexity of the image block to be encoded can be determined according to the horizontal difference block and the vertical difference block of each sub-block; and the coding complexity of the image block to be encoded can be determined according to the first coding complexity and the second coding complexity.
- the method provided in the embodiment of the present application can calculate the image coding complexity through multiple prediction modes and the horizontal and vertical gradients of the image. Compared with calculating the image coding complexity only through the horizontal and vertical gradients of the image, the accuracy of the coding complexity of the image block can be improved in the weakly directional prediction mode. By improving the accuracy of the coding complexity, the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will make the decoded image The image quality is improved accordingly.
- the coding complexity may be encoded into the code stream.
- the embodiments of the present application can encode the coding complexity of the image block to be encoded determined by multiple prediction modes into the bitstream, so that the decoding end decodes the bitstream according to the coding complexity in the bitstream to obtain a decoded image.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the improved accuracy of the quantization parameter will lead to a corresponding improvement in the image quality of the decoded image.
- an embodiment of the present application further provides a decoding method, the method comprising: obtaining the coding complexity of an image block to be encoded, the coding complexity being used to characterize the coding difficulty of the image block to be encoded, the coding complexity being determined by a plurality of prediction modes, the plurality of prediction modes comprising at least one of block-level prediction, point-level prediction and intra-frame block copy prediction.
- Decode a bitstream according to the quantization parameter to obtain a decoded image block, the bitstream being generated by encoding the image block to be encoded, the decoded image block being the reconstructed image block to be encoded.
- the quantization parameter used in the encoding process will directly affect the image quality of the decoded image.
- the image quality of the decoded image can be improved by adjusting the quantization parameter through the coding complexity of the image.
- the related art uses the horizontal and vertical gradients of the image to calculate the coding complexity of the image.
- the result of the gradient calculation is far different from the prediction error of the weak directional prediction mode.
- the coding complexity calculated by the gradient and the actual coding complexity of the actual current coding block (image block) in the best prediction mode are far different, which leads to the inaccurate derived quantization parameter, affecting the image quality.
- the embodiment of the present application determines the coding complexity of the image block to be encoded through multiple prediction modes.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the accuracy of the improved quantization parameter will make the image quality of the decoded image correspondingly improved.
- entropy decoding may be performed on the code stream to obtain the coding complexity.
- a prediction operation may be performed on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- a target parameter corresponding to the image block to be encoded and each prediction mode is determined according to the prediction residual, and the target parameter includes at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits.
- the coding complexity of the image block to be encoded is determined according to the target parameter.
- a first coding complexity of the image block to be encoded is determined according to the target parameter.
- the image block to be encoded is divided into a plurality of sub-blocks.
- a horizontal difference block and a vertical difference block of each of the plurality of sub-blocks are determined.
- a second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each sub-block.
- the coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- the coding complexity of the image block to be encoded is determined according to a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the image block to be encoded is divided into a plurality of sub-blocks. Prediction operations are performed on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Target parameters corresponding to each sub-block and each prediction mode are determined according to the prediction residuals, and the target parameters include at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits. The coding complexity of the image block to be encoded is determined according to the target parameters.
- the coding complexity of each sub-block is determined according to the target parameter.
- the coding complexity of the image block to be encoded is determined according to the coding complexity of each sub-block.
- a first coding complexity of the image block to be encoded is determined according to the target parameter.
- a horizontal difference block and a vertical difference block of each of the multiple sub-blocks are determined.
- a second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each sub-block.
- the coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- an embodiment of the present application further provides a coding device, which includes: an acquisition unit, a first determination unit, a second determination unit and a coding unit.
- the acquisition unit is used to acquire an image block to be coded.
- the first determination unit is used to determine the image block according to multiple prediction modes.
- the method comprises: determining a coding complexity of the image block to be coded, wherein the multiple prediction modes include at least one of block-level prediction, point-level prediction and intra-block copy prediction, and the coding complexity is used to characterize the coding difficulty of the image block to be coded.
- the second determining unit is used to determine a quantization parameter of the image block to be coded according to the coding complexity.
- the coding unit is used to encode the image block to be coded according to the quantization parameter to generate a bit stream.
- the first determination unit is specifically configured to: perform a prediction operation on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- the first determination unit is specifically used to: determine a first coding complexity of the image block to be encoded according to the target parameter. Divide the image block to be encoded into a plurality of sub-blocks. Determine a horizontal difference block and a vertical difference block of each of the plurality of sub-blocks. Determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each sub-block. Determine the coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the first determination unit is specifically used to: determine the coding complexity of the image block to be encoded according to a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the first determination unit is specifically configured to: divide the image block to be encoded into a plurality of sub-blocks. Perform prediction operations on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Determine a target parameter corresponding to each sub-block and each prediction mode according to the prediction residual, the target parameter including at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits. Determine the coding complexity of the image block to be encoded according to the target parameter.
- the first determining unit is specifically configured to: determine the coding complexity of each sub-block according to the target parameter, and determine the coding complexity of the to-be-coded image block according to the coding complexity of each sub-block.
- the first determining unit is specifically configured to: determine a first coding complexity of the image block to be encoded according to the target parameter; determine a horizontal difference block and a vertical difference block of each of the multiple sub-blocks; determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each sub-block; and determine a coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the encoding unit is further configured to: encode the encoding complexity into the bitstream.
- an embodiment of the present application further provides a decoding device, which includes: an acquisition unit, a determination unit and a decoding unit.
- the acquisition unit is used to acquire the coding complexity of the image block to be encoded
- the coding complexity is used to characterize the coding difficulty of the image block to be encoded.
- the coding complexity is determined by multiple prediction modes, and the multiple prediction modes include at least one of block-level prediction, point-level prediction and intra-frame block copy prediction.
- the determination unit is used to determine the quantization parameter of the image block to be encoded according to the coding complexity.
- the decoding unit is used to decode the code stream according to the quantization parameter to obtain a decoded image block, and the code stream is generated by encoding the image block to be encoded, and the decoded image block is the reconstructed image block to be encoded.
- the acquisition unit is specifically configured to: perform entropy decoding on the bit stream to obtain the coding complexity.
- the acquisition unit is specifically configured to: perform a prediction operation on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- the acquisition unit is specifically used to: determine a first coding complexity of the image block to be encoded according to the target parameter. Divide the image block to be encoded into a plurality of sub-blocks. Determine a horizontal difference block and a vertical difference block of each of the plurality of sub-blocks. Determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each sub-block. Determine the coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the acquisition unit is specifically used to: determine the coding complexity of the image block to be encoded based on a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the acquisition unit is specifically used to: divide the image block to be encoded into a plurality of sub-blocks. Perform prediction operations on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Determine a target parameter corresponding to each sub-block and each prediction mode according to the prediction residual, the target parameter including at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits. Determine the coding complexity of the image block to be encoded according to the target parameter.
- the acquisition unit is specifically configured to: determine the coding complexity of each sub-block according to the target parameter. Determine the coding complexity of the image block to be encoded according to the coding complexity of each sub-block.
- the acquisition unit is specifically used to: determine a first coding complexity of the image block to be encoded according to the target parameter; determine a horizontal difference block and a vertical difference block of each of the multiple sub-blocks; determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each sub-block; and determine a coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- an embodiment of the present application further provides a coding device, comprising: at least one processor, when the at least one processor executes program code or instructions, it implements the method described in the above first aspect or any possible implementation method thereof.
- the device may further include at least one memory, and the at least one memory is used to store the program code or instruction.
- an embodiment of the present application further provides a decoding device, comprising: at least one processor, when the at least one processor executes program code or instructions, it implements the method described in the above second aspect or any possible implementation method thereof.
- the device may further include at least one memory, and the at least one memory is used to store the program code or instruction.
- an embodiment of the present application further provides a chip, comprising: an input interface, an output interface, and at least one processor.
- the chip further comprises a memory.
- the at least one processor is used to execute the code in the memory, and when the at least one processor executes the code, the chip implements the method described in the first aspect or any possible implementation thereof.
- the above chip may also be an integrated circuit.
- an embodiment of the present application further provides a computer-readable storage medium for storing a computer program, wherein the computer program includes methods for implementing the method described in the above-mentioned first aspect or any possible implementation thereof.
- an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to implement the method described in the first aspect or any possible implementation thereof.
- the encoding and decoding device, computer storage medium, computer program product and chip provided in this embodiment are all used to execute the encoding and decoding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the encoding and decoding method provided above, and will not be repeated here.
- FIG. 1a is an exemplary block diagram of a decoding system provided in an embodiment of the present application.
- FIG. 1b is an exemplary block diagram of a video decoding system provided in an embodiment of the present application.
- FIG2 is an exemplary block diagram of a video encoder provided in an embodiment of the present application.
- FIG3 is an exemplary block diagram of a video decoder provided in an embodiment of the present application.
- FIG4 is an exemplary schematic diagram of a candidate image block provided in an embodiment of the present application.
- FIG5 is an exemplary block diagram of a video decoding device provided in an embodiment of the present application.
- FIG6 is an exemplary block diagram of a device provided in an embodiment of the present application.
- FIG7 is a schematic diagram of an encoding method provided in an embodiment of the present application.
- FIG8 is a schematic diagram of a process for determining coding complexity provided by an embodiment of the present application.
- FIG9 is a schematic diagram of another process for determining coding complexity provided in an embodiment of the present application.
- FIG10 is a schematic diagram of another process for determining coding complexity provided in an embodiment of the present application.
- FIG11 is a schematic diagram of another process for determining coding complexity provided in an embodiment of the present application.
- FIG12 is a schematic diagram of a decoding method provided in an embodiment of the present application.
- FIG13 is a schematic diagram of an encoding device provided in an embodiment of the present application.
- FIG14 is a schematic diagram of a decoding device provided in an embodiment of the present application.
- FIG. 15 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
- a and/or B in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist.
- a and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
- first and second and the like in the description and drawings of the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
- Interface compression Media devices use display interfaces when transmitting images and videos, and encode image and video content through the display interface.
- Bit stream A binary stream generated by encoding the image and video content.
- the input image can be divided into one or more slices. Each slice is divided into one or more coding blocks for encoding.
- Bit rate control The process of adjusting the output bit rate during the encoding process. It is based on the analysis of the current image content, the remaining amount of the bitstream buffer, etc., and adjusts the output bit rate by changing the encoding quantization parameters, encoding mode, etc. The following is abbreviated as.
- Quantization Parameter During the encoding process, the residual value generated by the prediction operation or the coefficient generated by the transform operation is quantized and written to the bitstream; during the decoding process, the syntax elements are dequantized to obtain the residual value or coefficient.
- QP is the parameter used in the quantization process. Generally, the larger the QP value, the more obvious the degree of quantization. Adjusting the QP value will directly affect the length of the encoded bitstream and the quality of the decoded image.
- Constant Bit Rate A strategy in which the length of the bit stream output by the encoder is consistent per unit time.
- Intra Block Copy (IBC) prediction mode The current coding block can be divided into one or more sub-blocks.
- the optimal matching block is found for each sub-block in the search area according to a certain matching criterion.
- the optimal matching block is the prediction block of the current sub-block, and the block vector is calculated.
- the block vector is the position vector of the current block and the optimal matching block.
- Block-level prediction The block is used as the prediction unit.
- the reconstructed value in the current coding block cannot be used as the prediction reference value for subsequent points in the current block.
- Point-level prediction With a point as the prediction unit, the reconstructed value in the current coding block can be used as a prediction operation for the reference value of subsequent point predictions in the current block.
- Data encoding and decoding includes two parts: data encoding and data decoding.
- Data encoding is performed on the source side (or commonly referred to as the encoder side), and generally includes processing (e.g., compressing) the original data to reduce the amount of data required to represent the original data (thereby more efficiently storing and/or transmitting).
- Data decoding is performed on the destination side (or commonly referred to as the decoder side), and generally includes inverse processing relative to the encoder side to reconstruct the original data.
- the "encoding and decoding" of the data involved in the embodiments of the present application should be understood as the "encoding" or "decoding" of the data.
- the encoding part and the decoding part are also collectively referred to as encoding and decoding (encoding and decoding, CODEC).
- the original data can be reconstructed, that is, the reconstructed original data has the same quality as the original data (assuming no transmission loss or other data loss during storage or transmission).
- further compression is performed by quantization, etc. to reduce the amount of data required to represent the original data, but the decoder side cannot completely reconstruct the original data, that is, the quality of the reconstructed original data is lower or worse than the quality of the original data.
- the embodiments of the present application can be applied to video data and other data with compression/decompression requirements.
- the following takes the encoding of video data (referred to as video encoding) as an example to illustrate the embodiments of the present application.
- video encoding For other types of data (such as image data, audio data, integer data and other data with compression/decompression requirements), please refer to the following description, and the embodiments of the present application will not be repeated.
- the encoding process of audio data and integer data does not require the data to be divided into blocks, but the data can be directly encoded. Encode the data.
- Video coding generally refers to processing a sequence of images to form a video or video sequence.
- the terms "picture”, “frame” or “image” can be used as synonyms.
- Video coding standards belong to the category of "lossy hybrid video codecs" (i.e., combining spatial and temporal prediction in the pixel domain with 2D transform coding in the transform domain for applying quantization).
- Each picture in a video sequence is usually divided into a set of non-overlapping blocks, which are usually encoded at the block level.
- the encoder usually processes, i.e., encodes the video at the block (video block) level, for example, by generating a prediction block through spatial (intra-frame) prediction and temporal (inter-frame) prediction; subtracting the prediction block from the current block (currently processed/to be processed block) to obtain a residual block; transforming the residual block in the transform domain and quantizing the residual block to reduce the amount of data to be transmitted (compressed), while the decoder side applies the inverse processing part relative to the encoder to the encoded or compressed block to reconstruct the current block for representation.
- the encoder needs to repeat the processing steps of the decoder so that the encoder and the decoder generate the same predictions (e.g., intra-frame predictions and inter-frame predictions) and/or reconstructed pixels for processing, i.e., encoding subsequent blocks.
- the encoder and the decoder generate the same predictions (e.g., intra-frame predictions and inter-frame predictions) and/or reconstructed pixels for processing, i.e., encoding subsequent blocks.
- the encoder 20 and the decoder 30 are described with reference to FIGS. 1 a to 3 .
- FIG. 1a is an exemplary block diagram of a decoding system 10 provided in an embodiment of the present application, for example, a video decoding system 10 (or simply a decoding system 10) that can utilize the techniques of the embodiments of the present application.
- the video encoder 20 (or simply an encoder 20) and the video decoder 30 (or simply a decoder 30) in the video decoding system 10 represent devices that can be used to perform various techniques according to various examples described in the embodiments of the present application.
- a decoding system 10 includes a source device 12 for providing encoded image data 21 such as an encoded image to a destination device 14 for decoding the encoded image data 21 .
- the source device 12 includes an encoder 20 , and may additionally or optionally include an image source 16 , a preprocessor (or a preprocessing unit) 18 such as an image preprocessor, and a communication interface (or a communication unit) 22 .
- a preprocessor or a preprocessing unit 18 such as an image preprocessor
- a communication interface or a communication unit 22 .
- the image source 16 may include or may be any type of image capture device for capturing real-world images, etc., and/or any type of image generation device, such as a computer graphics processor for generating computer-animated images or any type of device for acquiring and/or providing real-world images, computer-generated images (e.g., screen content, virtual reality (VR) images, and/or any combination thereof (e.g., augmented reality (AR) images).
- the image source may be any type of memory or storage for storing any of the above images.
- the image (or image data) 17 may also be referred to as a raw image (or raw image data) 17 .
- the preprocessor 18 is used to receive the original image data 17 and preprocess the original image data 17 to obtain a preprocessed image (or preprocessed image data) 19.
- the preprocessing performed by the preprocessor 18 may include trimming, color format conversion (e.g., from RGB to YCbCr), color adjustment, or denoising. It is understood that the preprocessing unit 18 may be an optional component.
- the video encoder (or encoder) 20 is used to receive the pre-processed image data 19 and provide encoded image data 21 (which will be further described below with reference to FIG. 2 etc.).
- the communication interface 22 in the source device 12 can be used to receive the encoded image data 21 and send the encoded image data 21 (or any other processed version) to another device such as the destination device 14 or any other device through the communication channel 13 for storage or direct reconstruction.
- the destination device 14 includes a decoder 30 and, in addition or alternatively, may include a communication interface (or communication unit) 28 , a post-processor (or post-processing unit) 32 , and a display device 34 .
- the communication interface 28 in the destination device 14 is used to receive the encoded image data 21 (or any other processed version) directly from the source device 12 or from any other source device such as a storage device, for example, the storage device is a encoded image data storage device, and provide the encoded image data 21 to the decoder 30.
- the communication interface 22 and the communication interface 28 can be used to send or receive encoded image data (or encoded data) 21 through a direct communication link between the source device 12 and the destination device 14, such as a direct wired or wireless connection, or through any type of network, such as a wired network, a wireless network or any combination thereof, any type of private network and public network or any type of combination thereof.
- the communication interface 22 may be used to encapsulate the encoded image data 21 into a suitable format such as a message, and/or process the encoded image data using any type of transmission coding or processing for transmission over a communication link or network.
- the communication interface 28 corresponds to the communication interface 22 , for example, and can be used to receive transmission data and process the transmission data using any type of corresponding transmission decoding or processing and/or decapsulation to obtain the encoded image data 21 .
- Both the communication interface 22 and the communication interface 28 can be configured as a unidirectional communication interface as indicated by the arrow of the corresponding communication channel 13 pointing from the source device 12 to the destination device 14 in Figure 1a, or a bidirectional communication interface, and can be used to send and receive messages, etc. to establish a connection, confirm and exchange any other information related to the communication link and/or data transmission such as encoded image data transmission, etc.
- the video decoder (or decoder) 30 is used to receive the encoded image data 21 and provide decoded image data (or decoded image data) 31 (hereinafter referred to as decoder). The surface will be further described according to Figure 3, etc.).
- the post-processor 32 is used to post-process the decoded image data 31 (also called reconstructed image data) such as the decoded image to obtain the post-processed image data 33 such as the post-processed image.
- the post-processing performed by the post-processing unit 32 may include, for example, color format conversion (e.g., from YCbCr to RGB), color adjustment, cropping or resampling, or any other processing for generating the decoded image data 31 for display by the display device 34 or the like.
- the display device 34 is used to receive the post-processed image data 33 to display the image to a user or viewer, etc.
- the display device 34 can be or include any type of display for displaying the reconstructed image, such as an integrated or external display screen or display.
- the display screen can include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display screen.
- the decoding system 10 also includes a training engine 25, which is used to train the encoder 20 (especially the entropy coding unit 270 in the encoder 20) or the decoder 30 (especially the entropy decoding unit 304 in the decoder 30) to perform entropy coding on the image block to be encoded according to the estimated probability distribution.
- a training engine 25 is used to train the encoder 20 (especially the entropy coding unit 270 in the encoder 20) or the decoder 30 (especially the entropy decoding unit 304 in the decoder 30) to perform entropy coding on the image block to be encoded according to the estimated probability distribution.
- FIG. 1a shows the source device 12 and the destination device 14 as independent devices
- the device embodiment may also include the source device 12 and the destination device 14 or the functions of the source device 12 and the destination device 14 at the same time, that is, the source device 12 or the corresponding function and the destination device 14 or the corresponding function at the same time.
- the source device 12 or the corresponding function and the destination device 14 or the corresponding function may be implemented using the same hardware and/or software or by separate hardware and/or software or any combination thereof.
- the existence and (accurate) division of different units or functions in the source device 12 and/or the destination device 14 shown in FIG. 1 a may vary according to actual devices and applications, which is obvious to technicians.
- FIG. 1b is an exemplary block diagram of a video decoding system 40 provided in an embodiment of the present application.
- the encoder 20 e.g., video encoder 20
- the decoder 30 e.g., video decoder 30
- a processing circuit in the video decoding system 40 such as one or more microprocessors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), discrete logic, hardware, video encoding dedicated processors or any combination thereof.
- DSP digital signal processors
- ASIC application-specific integrated circuits
- FPGA field-programmable gate arrays
- the encoder 20 can be implemented by a processing circuit 46 to include various modules discussed with reference to the encoder 20 of FIG. 2 and/or any other encoder system or subsystem described herein.
- the decoder 30 can be implemented by a processing circuit 46 to include various modules discussed with reference to the decoder 30 of FIG. 3 and/or any other decoder system or subsystem described herein.
- the processing circuit 46 can be used to perform various operations discussed below.
- the device may store the instructions of the software in a suitable non-transitory computer-readable storage medium, and use one or more processors to execute the instructions in hardware, thereby performing the technology of the embodiment of the present application.
- One of the video encoder 20 and the video decoder 30 may be integrated into a single device as part of a combined codec (encoder/decoder, CODEC), as shown in FIG1 b .
- the source device 12 and the destination device 14 may include any of a variety of devices, including any type of handheld or fixed device, such as a notebook or laptop computer, a mobile phone, a smart phone, a tablet or a tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (e.g., a content service server or a content distribution server), a broadcast receiving device, a broadcast transmitting device, and a monitoring device, etc., and may not use or use any type of operating system.
- the source device 12 and the destination device 14 may also be devices in a cloud computing scenario, such as a virtual machine in a cloud computing scenario. In some cases, the source device 12 and the destination device 14 may be equipped with components for wireless communication. Therefore, the source device 12 and the destination device 14 may be wireless communication devices.
- the source device 12 and the destination device 14 may be installed with virtual scene applications (applications, APPs) such as virtual reality (VR) applications, augmented reality (AR) applications, or mixed reality (MR) applications, and may run VR applications, AR applications, or MR applications based on user operations (e.g., click, touch, slide, shake, voice control, etc.).
- the source device 12 and the destination device 14 may collect images/videos of any object in the environment through cameras and/or sensors, and then display virtual objects on the display device based on the collected images/videos.
- the virtual objects may be virtual objects in VR scenes, AR scenes, or MR scenes (i.e., objects in the virtual environment).
- the virtual scene application in the source device 12 and the destination device 14 can be an application built into the source device 12 and the destination device 14 themselves, or it can be an application provided by a third-party service provider and installed by the user. There is no specific limitation on this.
- the source device 12 and the destination device 14 may be installed with a real-time video transmission application, such as a live broadcast application.
- the source device 12 and the destination device 14 may collect images/videos through cameras and then display the collected images/videos on a display device.
- the video decoding system 10 shown in FIG. 1a is merely exemplary, and the techniques provided in the embodiments of the present application may be applicable to video encoding settings (e.g., video encoding or video decoding), which do not necessarily include any data communication between the encoding device and the decoding device.
- data is retrieved from a local memory, sent over a network, and so on.
- the video encoding device can encode the data and store the data in a memory, and/or the video decoding device can retrieve the data from the memory and decode the data.
- encoding and decoding are performed by devices that do not communicate with each other but only encode data to a memory and/or retrieve and decode data from a memory.
- FIG. 1b is an exemplary block diagram of a video decoding system 40 provided in an embodiment of the present application.
- the video decoding system 40 may include an imaging device 41, a video encoder 20, a video decoder 30 (and/or a video encoder/decoder implemented by a processing circuit 46), an antenna 42, one or more processors 43, one or more memory storage devices 44 and/or a display device 45.
- imaging device 41, antenna 42, processing circuit 46, video encoder 20, video decoder 30, processor 43, memory storage 44 and/or display device 45 can communicate with each other.
- video decoding system 40 can include only video encoder 20 or only video decoder 30.
- antenna 42 may be used to transmit or receive a coded bit stream of video data.
- display device 45 may be used to present video data.
- Processing circuit 46 may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general purpose processor, etc.
- Video decoding system 40 may also include an optional processor 43, which may similarly include application-specific integrated circuit (ASIC) logic, a graphics processor, a general purpose processor, etc.
- memory storage 44 may be any type of memory, such as volatile memory (e.g., static random access memory (SRAM), dynamic random access memory (DRAM), etc.) or non-volatile memory (e.g., flash memory, etc.).
- memory storage 44 may be implemented by a cache memory.
- processing circuit 46 may include a memory (e.g., a cache, etc.) for implementing an image buffer, etc.
- the video encoder 20 implemented by logic circuits may include an image buffer (e.g., implemented by processing circuits 46 or memory storage 44) and a graphics processing unit (e.g., implemented by processing circuits 46).
- the graphics processing unit may be communicatively coupled to the image buffer.
- the graphics processing unit may include the video encoder 20 implemented by processing circuits 46 to implement the various modules discussed with reference to FIG. 2 and/or any other encoder system or subsystem described herein.
- Logic circuits may be used to perform the various operations discussed herein.
- the video decoder 30 may be implemented by the processing circuit 46 in a similar manner to implement the various modules discussed with reference to the video decoder 30 of FIG. 3 and/or any other decoder system or subsystem described herein.
- the video decoder 30 implemented by the logic circuit may include an image buffer (implemented by the processing circuit 46 or the memory storage 44) and a graphics processing unit (implemented by the processing circuit 46, for example).
- the graphics processing unit may be communicatively coupled to the image buffer.
- the graphics processing unit may include the video decoder 30 implemented by the processing circuit 46 to implement the various modules discussed with reference to FIG. 3 and/or any other decoder system or subsystem described herein.
- antenna 42 may be used to receive an encoded bitstream of video data.
- the encoded bitstream may include data related to the encoded video frames discussed herein, indicators, index values, mode selection data, etc., such as data related to the encoded partitions (e.g., transform coefficients or quantized transform coefficients, (as discussed) optional indicators, and/or data defining the encoded partitions).
- Video decoding system 40 may also include video decoder 30 coupled to antenna 42 and used to decode the encoded bitstream.
- Display device 45 is used to present the video frames.
- the video decoder 30 can be used to perform the reverse process. With respect to the signaling syntax elements, the video decoder 30 can be used to receive and parse such syntax elements and decode the related video data accordingly. In some examples, the video encoder 20 can entropy encode the syntax elements into an encoded video bitstream. In such examples, the video decoder 30 can parse such syntax elements and decode the related video data accordingly.
- VVC universal video coding
- HEVC high-efficiency video coding
- JCT-VC video coding experts group
- MPEG ISO/IEC motion picture experts group
- the video encoder 20 includes an input end (or input interface) 201, a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a loop filter 220, a decoded picture buffer (DPB) 230, a mode selection unit 260, an entropy coding unit 270 and an output end (or output interface) 272.
- Mode selection unit 260 may include inter prediction unit 244, intra prediction unit 254, and segmentation unit 262.
- Inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown).
- Video encoder 20 shown in FIG. 2 may also be referred to as a hybrid video encoder or a video encoder based on a hybrid video codec.
- the inter-frame prediction unit is a trained target model (also called a neural network) that is used to process an input image or image region or image block to generate a prediction value of the input image block.
- the neural network for inter-frame prediction is used to receive an input image or image region or image block and generate a prediction value of the input image or image region or image block.
- the residual calculation unit 204, the transform processing unit 206, the quantization unit 208 and the mode selection unit 260 constitute the forward signal path of the encoder 20, while the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, the inter-frame prediction unit 244 and the intra-frame prediction unit 254 constitute the backward signal path of the encoder, wherein the backward signal path of the encoder 20 corresponds to the signal path of the decoder (see the decoder 30 in FIG. 3).
- the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the loop filter 220, the decoded picture buffer 230, the inter-frame prediction unit 244 and the intra-frame prediction unit 254 also constitute the "built-in decoder" of the video encoder 20.
- the encoder 20 may be configured to receive, via an input 201 or the like, an image (or image data) 17, e.g., an image in a sequence of images forming a video or a video sequence.
- the received image or image data may also be a pre-processed image (or pre-processed image data) 19.
- image 17 may also be referred to as a current image or an image to be encoded (particularly when the current image is to be distinguished from other images in video encoding, such as previously encoded images and/or decoded images in the same video sequence, i.e., a video sequence also including the current image).
- a (digital) image is or can be considered as a two-dimensional array or matrix of pixels with intensity values.
- the pixels in the array can also be called pixels (pixel or pel) (short for picture elements).
- the number of pixels in the array or image in the horizontal and vertical directions (or axes) determines the size and/or resolution of the image.
- three color components are usually used, that is, the image can be represented as or include three pixel arrays.
- the image includes corresponding red, green and blue pixel arrays.
- each pixel is usually represented in a brightness/chrominance format or color space, such as YCbCr, including a brightness component indicated by Y (sometimes also represented by L) and two chrominance components represented by Cb and Cr.
- the brightness (luma) component Y represents the brightness or grayscale level intensity (for example, the two are the same in grayscale images), while the two chrominance (abbreviated as chroma) components Cb and Cr represent the chrominance or color information components.
- an image in YCbCr format includes a luminance pixel array of luminance pixel values (Y) and two chrominance pixel arrays of chrominance values (Cb and Cr).
- RGB format An image in RGB format can be converted or transformed into YCbCr format and vice versa, a process also referred to as color conversion or conversion. If the image is black and white, the image may include only a luminance pixel array. Accordingly, the image may be, for example, a luminance pixel array in a monochrome format or a luminance pixel array and two corresponding chrominance pixel arrays in 4:2:0, 4:2:2 and 4:4:4 color formats.
- an embodiment of the video encoder 20 may include an image segmentation unit (not shown in FIG. 2 ) for segmenting the image 17 into a plurality of (typically non-overlapping) image blocks 203. These blocks may also be referred to as root blocks, macroblocks (H.264/AVC) or coding tree blocks (CTBs), or coding tree units (CTUs) in the H.265/HEVC and VVC standards.
- the segmentation unit may be used to use the same block size for all images in a video sequence and a corresponding grid of defined block sizes, or to vary the block size between images or subsets or groups of images, and to segment each image into corresponding blocks.
- the video encoder may be configured to directly receive a block 203 of the image 17, for example, one, several or all blocks constituting the image 17.
- the image block 203 may also be referred to as a current image block or an image block to be encoded.
- image block 203 is also or can be considered as a two-dimensional array or matrix composed of pixels with intensity values (pixel values), but image block 203 is smaller than image 17.
- block 203 may include one pixel array (e.g., a brightness array in the case of monochrome image 17 or a brightness array or chrominance array in the case of a color image) or three pixel arrays (e.g., one brightness array and two chrominance arrays in the case of a color image 17) or any other number and/or type of arrays according to the color format adopted.
- the number of pixels in the horizontal and vertical directions (or axes) of block 203 defines the size of block 203. Accordingly, the block can be an M ⁇ N (M columns ⁇ N rows) pixel array, or an M ⁇ N transform coefficient array, etc.
- the video encoder 20 shown in FIG. 2 is used to encode the image 17 block by block, for example, encoding and prediction are performed on each block 203 .
- the video encoder 20 shown in FIG. 2 may also be used to partition and/or encode an image using slices (also referred to as video slices), wherein an image may be partitioned or encoded using one or more slices (usually non-overlapping).
- slices also referred to as video slices
- Each slice may include one or more blocks (e.g., coding tree units CTUs) or one or more block groups (e.g., coding tiles in the H.265/HEVC/VVC standard and bricks in the VVC standard).
- the video encoder 20 shown in Figure 2 can also be used to segment and/or encode an image using slices/coding block groups (also called video coding block groups) and/or coding blocks (also called video coding blocks), wherein the image can be segmented or encoded using one or more slices/coding block groups (usually non-overlapping), each slice/coding block group may include one or more blocks (e.g., CTU) or one or more coding blocks, etc., wherein each coding block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
- slices/coding block groups also called video coding block groups
- coding blocks also called video coding blocks
- each slice/coding block group may include one or more blocks (e.g., CTU) or one or more coding blocks, etc., wherein each coding block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
- the residual calculation unit 204 is used to calculate the residual block 205 (the prediction block 265 is described in detail later) based on the image block (or original block) 203 and the prediction block 265 in the following manner: for example, the pixel value of the prediction block 265 is subtracted from the pixel value of the image block 203 pixel by pixel (pixel by pixel) to obtain the residual block 205 in the pixel domain.
- the transform processing unit 206 is used to perform discrete cosine transform (DCT) or discrete sine transform (DST) on the pixel values of the residual block 205 to obtain a transform coefficient 207 in the transform domain.
- the transform coefficient 207 may also be called a transform residual coefficient, which represents the residual block 205 in the transform domain.
- the transform processing unit 206 may be used to apply an integerized approximation of the DCT/DST, such as the transform specified for H.265/HEVC.
- This integerized approximation is typically scaled by a factor compared to an orthogonal DCT transform.
- other scaling factors are used as part of the transform process.
- the scaling factor is typically selected based on certain constraints, such as whether the scaling factor is a power of 2 for the shift operation, the bit depth of the transform coefficients, a trade-off between accuracy and implementation cost, etc.
- a specific scaling factor is specified for the inverse transform on the encoder 20 side by the inverse transform processing unit 212 (and for the corresponding inverse transform on the decoder 30 side by, for example, the inverse transform processing unit 312), and correspondingly, a corresponding scaling factor may be specified for the forward transform on the encoder 20 side by the transform processing unit 206.
- the video encoder 20 (correspondingly, the transform processing unit 206) may be used to output transform parameters such as one or more transform types, for example, directly output or output after encoding or compression by the entropy coding unit 270, for example, so that the video decoder 30 may receive and use the transform parameters for decoding.
- transform parameters such as one or more transform types, for example, directly output or output after encoding or compression by the entropy coding unit 270, for example, so that the video decoder 30 may receive and use the transform parameters for decoding.
- the quantization unit 208 is used to quantize the transform coefficient 207 by, for example, scalar quantization or vector quantization to obtain a quantized transform coefficient 209 .
- the quantized transform coefficient 209 may also be referred to as a quantized residual coefficient 209 .
- the quantization process may reduce the bit depth associated with some or all of the transform coefficients 207. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m.
- the degree of quantization may be modified by adjusting a quantization parameter (QP). For example, for scalar quantization, different degrees of scaling may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to finer quantization, while a larger quantization step size corresponds to coarser quantization.
- a suitable quantization step size may be indicated by a quantization parameter (QP).
- a quantization parameter may be an index of a predefined set of suitable quantization step sizes.
- Quantization may include dividing by a quantization step size, while a corresponding or inverse dequantization performed by the inverse quantization unit 210 or the like may include multiplying by a quantization step size.
- Embodiments according to some standards, such as HEVC may be used to determine the quantization step size using a quantization parameter.
- the quantization step size may be calculated using a fixed-point approximation of an equation involving division according to the quantization parameter.
- scaling factors may be introduced for quantization and dequantization to recover the norm of the residual block that may be modified due to the scaling used in the fixed-point approximation of the equations for the quantization step size and the quantization parameter.
- the scaling of the inverse transform and dequantization may be combined.
- a custom quantization table may be used and indicated from the encoder to the decoder in the bitstream, etc.
- Quantization is a lossy operation, where the larger the quantization step size, the greater the loss.
- the video encoder 20 may be used to output a quantization parameter (QP), for example, directly output or output after being encoded or compressed by the entropy coding unit 270, such that the video decoder 30 may receive and use the quantization parameter for decoding.
- QP quantization parameter
- the inverse quantization unit 210 is used to perform inverse quantization of the quantization unit 208 on the quantized coefficients to obtain dequantized coefficients 211, for example, performing an inverse quantization scheme of the quantization scheme performed by the quantization unit 208 according to or using the same quantization step size as the quantization unit 208.
- the dequantized coefficients 211 may also be referred to as dequantized residual coefficients 211, corresponding to the transform coefficients 207, but due to the loss caused by quantization, the dequantized coefficients 211 are usually not completely the same as the transform coefficients.
- the inverse transform processing unit 212 is used to perform an inverse transform of the transform performed by the transform processing unit 206, such as an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), to obtain a reconstructed residual in the pixel domain.
- DCT inverse discrete cosine transform
- DST inverse discrete sine transform
- Block 213 (or the corresponding dequantized coefficients 213 ).
- the reconstructed residual block 213 may also be referred to as a transformed block 213 .
- the reconstruction unit 214 (e.g., the summer 214) is used to add the transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 to obtain the reconstructed block 215 in the pixel domain, for example, by adding the pixel point values of the reconstructed residual block 213 and the pixel point values of the prediction block 265.
- the loop filter unit 220 (or simply "loop filter” 220) is used to filter the reconstructed block 215 to obtain the filter block 221, or is generally used to filter the reconstructed pixel points to obtain the filtered pixel point value.
- the loop filter unit is used to smoothly perform pixel conversion or improve video quality.
- the loop filter unit 220 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, such as an adaptive loop filter (ALF), a noise suppression filter (NSF), or any combination.
- the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF filter.
- the order of the filtering process may be a deblocking filter, an SAO filter, and an ALF filter.
- a process called luma mapping with chroma scaling (LMCS) i.e., an adaptive in-loop shaper
- LMCS luma mapping with chroma scaling
- This process is performed before deblocking.
- the deblocking filtering process may also be applied to internal sub-block edges, such as affine sub-block edges, ATMVP sub-block edges, sub-block transform (SBT) edges, and intra sub-partition (ISP) edges.
- the loop filter unit 220 is shown as a loop filter in FIG. 2 , in other configurations, the loop filter unit 220 may be implemented as a post-loop filter.
- the filter block 221 may also be referred to as a filter reconstruction block 221.
- the video encoder 20 may be used to output loop filter parameters (e.g., SAO filter parameters, ALF filter parameters, or LMCS parameters), for example, directly or after being entropy encoded by the entropy encoding unit 270, such that the decoder 30 may receive and use the same or different loop filter parameters for decoding.
- loop filter parameters e.g., SAO filter parameters, ALF filter parameters, or LMCS parameters
- the decoded picture buffer (DPB) 230 may be a reference picture memory that stores reference picture data for use by the video encoder 20 when encoding video data.
- the DPB 230 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of storage devices.
- DRAM dynamic random access memory
- SDRAM synchronous DRAM
- MRAM magnetoresistive RAM
- RRAM resistive RAM
- the decoded picture buffer 230 may be used to store one or more filter blocks 221.
- the decoded picture buffer 230 may also be used to store other previous filter blocks of the same current image or a different image such as a previous reconstructed image, such as a previously reconstructed and filtered block 221, and may provide a complete previously reconstructed, i.e., decoded image (and corresponding reference blocks and pixels) and/or a partially reconstructed current image (and corresponding reference blocks and pixels), such as for inter-frame prediction.
- the decoded image buffer 230 may also be used to store one or more unfiltered reconstructed blocks 215, or generally to store unfiltered reconstructed pixels, for example, reconstructed blocks 215 that have not been filtered by the loop filter unit 220, or reconstructed blocks or reconstructed pixels that have not undergone any other processing.
- the mode selection unit 260 includes a segmentation unit 262, an inter-frame prediction unit 244, and an intra-frame prediction unit 254, which are used to receive or obtain original image data such as an original block 203 (current block 203 of the current image 17) and reconstructed image data from the decoded image buffer 230 or other buffers (e.g., a column buffer, not shown in FIG. 2), such as filtered and/or unfiltered reconstructed pixels or reconstructed blocks of the same (current) image and/or one or more previously decoded images.
- the reconstructed image data is used as reference image data required for prediction such as inter-frame prediction or intra-frame prediction to obtain a prediction block 265 or a prediction value 265.
- the mode selection unit 260 may be used to determine or select a partition for the current block (including no partition) and prediction mode (eg, intra-frame or inter-frame prediction mode), generate a corresponding prediction block 265 , calculate the residual block 205 , and reconstruct the reconstruction block 215 .
- prediction mode eg, intra-frame or inter-frame prediction mode
- the mode selection unit 260 may be used to select a segmentation and prediction mode (e.g., from prediction modes supported or available by the mode selection unit 260) that provides the best match or minimum residual (minimum residual means better compression in transmission or storage), or provides minimum signaling overhead (minimum signaling overhead means better compression in transmission or storage), or considers or balances both of the above.
- the mode selection unit 260 may be used to determine the segmentation and prediction mode based on rate distortion optimization (RDO), that is, select the prediction mode that provides minimum rate distortion optimization.
- RDO rate distortion optimization
- the partitioning unit 262 may be used to partition a picture in a video sequence into a sequence of coding tree units (CTUs), and the CTU 203 may be further partitioned into smaller block portions or sub-blocks (again forming blocks), for example, by iteratively using quad-tree partitioning (QT), binary-tree partitioning (BT) or triple-tree partitioning (TT). Partitioning or any combination thereof, and for performing prediction on each of the block parts or sub-blocks, for example, wherein mode selection includes selecting a tree structure of the partitioned blocks 203 and selecting a prediction mode to be applied to each of the block parts or sub-blocks.
- QT quad-tree partitioning
- BT binary-tree partitioning
- TT triple-tree partitioning
- segmentation eg, performed by segmentation unit 262
- prediction processes eg, performed by inter-prediction unit 244 and intra-prediction unit 254
- the segmentation unit 262 may segment (or divide) an image block (or CTU) 203 into smaller parts, such as small blocks of square or rectangular shape.
- a CTU consists of N ⁇ N luminance pixel blocks and two corresponding chrominance pixel blocks.
- the maximum allowed size of a luminance block in a CTU is specified as 128 ⁇ 128 in the developing universal video coding (VVC) standard, but may be specified as a value different from 128 ⁇ 128 in the future, such as 256 ⁇ 256.
- VVC developing universal video coding
- the CTUs of an image may be concentrated/grouped into slices/coding block groups, coding blocks, or bricks.
- a coding block covers a rectangular area of an image, and a coding block may be divided into one or more bricks.
- a brick consists of multiple CTU rows within a coding block.
- a coding block that is not segmented into multiple bricks may be called a brick.
- a brick is a true subset of a coding block and is therefore not called a coding block.
- VVC supports two coding block group modes, namely raster scan slice/coding block group mode and rectangular slice mode.
- raster scan CBG mode a slice/CBG contains a sequence of CBs in a raster scan of CBs of an image.
- rectangular slice mode a slice contains multiple bricks of an image, which together form a rectangular region of the image. The bricks within a rectangular slice are arranged in the order of the bricks in the slice's raster scan.
- These smaller blocks can be further split into smaller parts.
- This is also called tree partitioning or hierarchical tree partitioning, where a root block at root tree level 0 (hierarchy level 0, depth 0), etc., can be recursively split into two or more blocks at the next lower tree level, such as nodes at tree level 1 (hierarchy level 1, depth 1).
- These blocks can be split into two or more blocks at the next lower level, such as tree level 2 (hierarchy level 2, depth 2), etc., until the partitioning ends (because the end criteria are met, such as reaching the maximum tree depth or minimum block size).
- Blocks that are not further partitioned are also called leaf blocks or leaf nodes of the tree.
- a tree divided into two parts is called a binary tree (BT)
- TT ternary tree
- QT quadtree
- a coding tree unit may be or include a CTB of luma pixels, two corresponding CTBs of chroma pixels of an image with three pixel arrays, or a CTB of pixels of a monochrome image, or a CTB of pixels of an image encoded using three independent color planes and syntax structures (for encoding pixels).
- a coding tree block may be an N ⁇ N pixel block, where N may be set to a value such that the component is divided into CTBs, which is segmentation.
- a coding unit may be or include a coding block of luma pixels, two corresponding coding blocks of chroma pixels of an image with three pixel arrays, or a coding block of pixels of a monochrome image, or a coding block of pixels of an image encoded using three independent color planes and syntax structures (for encoding pixels).
- a coding block may be an M ⁇ N pixel block, where M and N may be set to a value such that the CTB is divided into coding blocks, which is segmentation.
- a coding tree unit may be divided into multiple CUs using a quadtree structure represented as a coding tree.
- a decision is made at the leaf-CU level whether to use inter-frame (temporal) prediction or intra-frame (spatial) prediction to encode an image area.
- Each leaf-CU may be further divided into one, two, or four PUs according to the PU partition type. The same prediction process is used within a PU, and relevant information is transmitted to the decoder in units of PUs. After the prediction process is applied according to the PU partition type to obtain the residual block, the leaf-CU may be partitioned into transform units (TUs) according to other quadtree structures similar to the coding tree for the CU.
- transform units TUs
- VVC Versatile Video Coding
- a segment structure for segmenting a coding tree unit is partitioned using a combined quadtree of nested multi-type trees (e.g., binary and ternary trees).
- the CU may be square or rectangular.
- a coding tree unit (CTU) is first segmented by a quadtree structure.
- the quadtree leaf nodes are further segmented by a multi-type tree structure.
- the multi-type tree structure has four types of segmentation: vertical binary tree segmentation (SPLIT_BT_VER), horizontal binary tree segmentation (SPLIT_BT_HOR), vertical ternary tree segmentation (SPLIT_TT_VER), and horizontal ternary tree segmentation (SPLIT_TT_HOR).
- the multi-type leaf nodes are called coding units (CUs), and unless the CU is too large for the maximum transform length, such segmentation is used for prediction and transform processing without any other segmentation. In most cases, this means that the block sizes of CU, PU, and TU in the coding block structure of the quadtree nested multi-type tree are the same.
- VVC has developed a unique signaling mechanism for segmentation information in a coding structure with a quadtree nested multi-type tree.
- the signaling mechanism the coding tree unit (CTU) is first split by the quadtree structure as the root of the quadtree. Then each quadtree leaf node (when large enough) is further split into a multi-type tree structure.
- the first flag mtt_split_cu_flag is used to indicate whether the node is further split.
- the decoder can derive the multi-type tree division mode (MttSplitMode) of the CU based on predefined rules or tables.
- the 64 ⁇ 64 luma block and 32 ⁇ 32 chroma pipeline design in the hardware decoder does not allow TT splitting when the width or height of the luma coding block is greater than 64. TT splitting is also not allowed when the width or height of the chroma coding block is greater than 32.
- the pipeline design divides the image into multiple virtual pipeline data units (VPDUs), and each VPDU is defined as a non-overlapping unit in the image.
- VPDU size is roughly proportional to the buffer size, so it is necessary to keep the VPDU small.
- the VPDU size can be set to the maximum transform block (TB) size.
- TT ternary tree
- BT binary tree
- the tree node block is forcibly divided until all the pixels of each coding CU are located within the image boundary.
- the intra sub-partitions (ISP) tool can divide the luma intra prediction block vertically or horizontally into two or four sub-partitions according to the block size.
- mode select unit 260 of video encoder 20 may be used to perform any combination of the segmentation techniques described above.
- the video encoder 20 is operable to determine or select the best or optimal prediction mode from a (predetermined) set of prediction modes.
- the set of prediction modes may include, for example, an intra prediction mode and/or an inter prediction mode.
- the intra prediction mode set may include 35 different intra prediction modes, for example, non-directional modes like DC (or mean) mode and planar mode, or directional modes as defined in HEVC, or may include 67 different intra prediction modes, for example, non-directional modes like DC (or mean) mode and planar mode, or directional modes as defined in VVC.
- non-directional modes like DC (or mean) mode and planar mode, or directional modes as defined in VVC.
- several traditional angle intra prediction modes are adaptively replaced with wide-angle intra prediction modes for non-square blocks defined in VVC.
- the intra prediction result of the planar mode can also be modified using the position dependent intra prediction combination (PDPC) method.
- PDPC position dependent intra prediction combination
- the intra prediction unit 254 is configured to generate an intra prediction block 265 by reconstructing pixels in adjacent blocks of the same current image according to an intra prediction mode in the intra prediction mode set.
- the intra-frame prediction unit 254 (or generally the mode selection unit 260) is also used to output intra-frame prediction parameters (or generally information indicating the selected intra-frame prediction mode of the block) in the form of syntax elements 266 to the entropy coding unit 270 for inclusion in the encoded image data 21, so that the video decoder 30 can perform operations, such as receiving and using the prediction parameters for decoding.
- the intra prediction modes in HEVC include DC prediction mode, plane prediction mode and 33 angle prediction modes, with a total of 35 candidate prediction modes.
- the current block can use the pixels of the reconstructed image blocks on the left and above as references for intra prediction.
- the image blocks in the surrounding area of the current block used for intra prediction of the current block are called reference blocks, and the pixels in the reference blocks are called reference pixels.
- the DC prediction mode is applicable to the area with flat texture in the current block, and all pixels in this area use the average value of the reference pixels in the reference block as prediction;
- the plane prediction mode is applicable to image blocks with smoothly changing textures.
- the current block that meets this condition uses the reference pixels in the reference block for bilinear interpolation as the prediction of all pixels in the current block; the angle prediction mode uses the characteristics that the texture of the current block is highly correlated with the texture of the adjacent reconstructed image block, and copies the values of the reference pixels in the corresponding reference block along a certain angle as the prediction of all pixels in the current block.
- the HEVC encoder selects an optimal intra-frame prediction mode for the current block from 35 candidate prediction modes and writes the optimal intra-frame prediction mode into the video bitstream.
- the encoder/decoder derives three most likely modes from the optimal intra-frame prediction modes of the reconstructed image blocks in the surrounding area using intra-frame prediction.
- a first index is encoded to indicate that the selected optimal intra-frame prediction mode is one of the three most likely modes; if the selected optimal intra-frame prediction mode is not one of the three most likely modes, a second index is encoded to indicate that the selected optimal intra-frame prediction mode is one of the other 32 modes (other modes among the 35 candidate prediction modes except the aforementioned three most likely modes).
- the HEVC standard uses a 5-bit fixed-length code as the aforementioned second index.
- the method by which the HEVC encoder derives the three most likely modes includes: selecting the optimal intra-frame prediction modes of the left adjacent image block and the upper adjacent image block of the current block and putting them into a set. If the two optimal intra-frame prediction modes are the same, only one is retained in the set. If the two optimal intra-frame prediction modes are the same and both are angle prediction modes, two angle prediction modes adjacent to the angle direction are selected to be added to the set; otherwise, the plane prediction mode, the DC mode, and the vertical prediction mode are selected in turn to be added to the set until the number of modes in the set reaches 3.
- the HEVC decoder After the HEVC decoder performs entropy decoding on the bitstream, it obtains the mode information of the current block, which includes an indication flag indicating whether the optimal intra-frame prediction mode of the current block is among the three most likely modes, and the index of the optimal intra-frame prediction mode of the current block among the three most likely modes or the index of the optimal intra-frame prediction mode of the current block among the other 32 modes.
- the set of inter-frame prediction modes depends on the available reference image (i.e., at least part of the previously decoded image stored in DBP 230 as mentioned above) and other inter-frame prediction parameters, for example, on whether to use the entire reference image or only a part of the reference image, such as a search window area near the area of the current block, to search for the best matching reference block, and/or on whether to perform pixel interpolation such as half-pixel, quarter-pixel and/or 16th interpolation, for example.
- the available reference image i.e., at least part of the previously decoded image stored in DBP 230 as mentioned above
- other inter-frame prediction parameters for example, on whether to use the entire reference image or only a part of the reference image, such as a search window area near the area of the current block, to search for the best matching reference block, and/or on whether to perform pixel interpolation such as half-pixel, quarter-pixel and/or 16th interpolation, for example.
- skip mode and/or direct mode may also be employed.
- the merge candidate list of this mode consists of the following five candidate types in order: spatial MVP from spatial neighboring CU, temporal MVP from collocated CU, history-based MVP from FIFO table, pairwise average MVP and zero MV.
- Decoder side motion vector refinement (DMVR) based on bilateral matching can be used to increase the accuracy of MV in merge mode.
- Merge mode with MVD (MMVD) is derived from merge mode with motion vector difference. The MMVD flag is sent immediately after the skip flag and merge flag are sent to specify whether the CU uses MMVD mode.
- the CU-level adaptive motion vector resolution (AMVR) scheme can be used. AMVR supports the MVD of the CU to be encoded with different precisions.
- the MVD of the current CU is adaptively selected according to the prediction mode of the current CU.
- the combined inter/intra prediction (CIIP) mode can be applied to the current CU.
- the CIIP prediction is obtained by weighted averaging the inter- and intra-prediction signals.
- the affine motion field of the block is described by the motion information of 2 control points (4 parameters) or 3 control points (6 parameters) motion vectors.
- Subblock-based temporal motion vector prediction (SbTMVP) is similar to temporal motion vector prediction (TMVP) in HEVC, but predicts the motion vector of the sub-CU within the current CU.
- Bidirectional optical flow (BDOF), formerly known as BIO, is a simplified version that reduces calculations, especially in terms of the number of multiplications and the size of the multipliers.
- BDOF Bidirectional optical flow
- the CU In triangle partitioning mode, the CU is evenly divided into two triangular parts in two ways: diagonal partitioning and anti-diagonal partitioning.
- the bidirectional prediction mode is extended on the basis of simple averaging to support weighted averaging of two prediction signals.
- the inter-frame prediction unit 244 may include a motion estimation (ME) unit and a motion compensation (MC) unit (both not shown in FIG. 2 ).
- the motion estimation unit may be used to receive or obtain an image block 203 (a current image block 203 of a current image 17) and a decoded image 231, or at least one or more previously reconstructed blocks, for example, reconstructed blocks of one or more other/different previously decoded images 231, for motion estimation.
- a video sequence may include a current image and a previously decoded image 231, or in other words, the current image and the previously decoded image 231 may be part of or form a sequence of images forming the video sequence.
- the encoder 20 may be configured to select a reference block from a plurality of reference blocks of the same or different images in a plurality of other images, and provide the reference image (or reference image index) and/or the offset (spatial offset) between the position (x, y coordinates) of the reference block and the position of the current block as an inter-frame prediction parameter to the motion estimation unit.
- the offset is also referred to as a motion vector (MV).
- the motion compensation unit is used to obtain, for example, receive, inter-frame prediction parameters, and perform inter-frame prediction based on or using the inter-frame prediction parameters to obtain an inter-frame prediction block 246.
- the motion compensation performed by the motion compensation unit may include extracting or generating a prediction block based on a motion/block vector determined by motion estimation, and may also include performing interpolation with sub-pixel accuracy. Interpolation filtering can generate pixel points of other pixels from pixel points of known pixels, thereby potentially increasing the number of candidate prediction blocks that can be used to encode the image block.
- the motion compensation unit can locate the prediction block pointed to by the motion vector in one of the reference image lists.
- the motion compensation unit may also generate syntax elements associated with blocks and video slices for use by the video decoder 30 when decoding image blocks of the video slice.
- syntax elements associated with blocks and video slices for use by the video decoder 30 when decoding image blocks of the video slice.
- coding block groups and/or coding blocks and corresponding syntax elements may be generated or used.
- motion vectors (MVs) that can be added to the candidate motion vector list as alternatives include MVs of spatially adjacent and temporally adjacent image blocks of the current block, wherein the MVs of spatially adjacent image blocks can include MVs of left candidate image blocks located on the left side of the current block and MVs of upper candidate image blocks located above the current block.
- FIG. 4 is an exemplary schematic diagram of candidate image blocks provided in an embodiment of the present application. As shown in FIG.
- the set of left candidate image blocks includes ⁇ A0, A1 ⁇
- the set of upper candidate image blocks includes ⁇ B0, B1, B2 ⁇
- the set of temporally adjacent candidate image blocks includes ⁇ C, T ⁇ . All three sets can be added to the candidate motion vector list as alternatives.
- the maximum length of the candidate motion vector list of AMVP is 2, so it is necessary to determine the MVs of up to two image blocks to be added to the candidate motion vector list from the three sets according to the prescribed order.
- the order may be to give priority to the set of candidate image blocks to the left of the current block ⁇ A0, A1 ⁇ (consider A0 first, and consider A1 if A0 is not available), then consider the set of candidate image blocks above the current block ⁇ B0, B1, B2 ⁇ (consider B0 first, and consider B1 if B0 is not available, and consider B2 if B1 is not available), and finally consider the set of candidate image blocks adjacent to the current block in the time domain ⁇ C, T ⁇ (consider T first, and consider C if T is not available).
- the rate distortion cost (RD cost) is used to select the candidate motion vector from the candidate motion vector list.
- the optimal MV is determined in the above formula, and the candidate motion vector with the smallest RD cost is used as the motion vector predictor (MVP) of the current block.
- J represents RD cost
- SAD is the sum of absolute differences (SAD) between the pixel value of the predicted block obtained after motion estimation using the candidate motion vector and the pixel value of the current block
- R represents the bit rate
- ⁇ represents the Lagrange multiplier
- the encoder passes the index of the determined MVP in the candidate motion vector list to the decoder. Furthermore, a motion search can be performed in the neighborhood centered on the MVP to obtain the actual motion vector of the current block.
- the encoder calculates the motion vector difference (MVD) between the MVP and the actual motion vector, and also passes the MVD to the decoder.
- the decoder parses the index, finds the corresponding MVP in the candidate motion vector list based on the index, parses the MVD, and adds the MVD to the MVP to obtain the actual motion vector of the current block.
- the motion information that can be added to the candidate motion information list as an alternative includes the motion information of the image blocks adjacent to the current block in the spatial domain or in the temporal domain, wherein the image blocks adjacent to the spatial domain and the image blocks adjacent to the temporal domain can refer to FIG. 4.
- the candidate motion information corresponding to the spatial domain in the candidate motion information list comes from the five spatially adjacent blocks (A0, A1, B0, B1 and B2). If the spatially adjacent block is not available or is intra-predicted, its motion information is not added to the candidate motion information list.
- the candidate motion information in the temporal domain of the current block is obtained by scaling the MV of the block at the corresponding position in the reference frame according to the picture order count (POC) of the reference frame and the current frame. First, it is determined whether the block at position T in the reference frame is available. If not, the block at position C is selected. After obtaining the above candidate motion information list, the optimal motion information is determined from the candidate motion information list through RD cost as the motion information of the current block. The encoder transmits the index value of the position of the optimal motion information in the candidate motion information list (referred to as merge index) to the decoder.
- merge index the index value of the position of the optimal motion information in the candidate motion information list
- the entropy coding unit 270 is used to apply an entropy coding algorithm or scheme (for example, a variable length coding (VLC) scheme, a context adaptive VLC scheme (CALVC), an arithmetic coding scheme, a binarization algorithm, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding or other entropy coding methods or techniques) to the quantized residual coefficients 209, inter-frame prediction parameters, intra-frame prediction parameters, loop filter parameters and/or other syntax elements to obtain the encoded image data 21 that can be output through the output terminal 272 in the form of an encoded bit stream 21, etc., so that the video decoder 30, etc. can receive and use the parameters for decoding.
- the encoded bitstream 21 may be transmitted to the video decoder 30 , or stored in memory for later transmission or retrieval by the video decoder 30 .
- a non-transform based encoder 20 may directly quantize the residual signal without a transform processing unit 206 for certain blocks or frames.
- the encoder 20 may have a quantization unit 208 and an inverse quantization unit 210 combined into a single unit.
- the video decoder 30 is used to receive the coded image data 21 (e.g., the coded bitstream 21) encoded by the encoder 20, and obtain a decoded image 331.
- the coded image data or bitstream includes information for decoding the coded image data, such as data representing image blocks of a coded video slice (and/or a coding block group or coding block) and related syntax elements.
- decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (e.g., summer 314), a loop filter 320, a decoded picture buffer (DBP) 330, a mode application unit 360, an inter-prediction unit 344, and an intra-prediction unit 354.
- Inter-prediction unit 344 may be or include a motion compensation unit.
- video decoder 30 may perform a decoding process that is generally the opposite of the encoding process described with reference to video encoder 100 of FIG. 2.
- inverse quantization unit 210 may be functionally identical to inverse quantization unit 110
- inverse transform processing unit 312 may be functionally identical to inverse transform processing unit 122
- reconstruction unit 314 may be functionally identical to reconstruction unit 214
- loop filter 320 may be functionally identical to loop filter 220
- decoded picture buffer 330 may be functionally identical to decoded picture buffer 230. Therefore, the explanation of the corresponding units and functions of video encoder 20 applies accordingly to the corresponding units and functions of video decoder 30.
- the entropy decoding unit 304 is used to parse the bit stream 21 (or generally the encoded image data 21) and perform entropy decoding on the encoded image data 21 to obtain quantization coefficients 309 and/or decoded encoding parameters (not shown in FIG. 3), such as any one or all of inter-frame prediction parameters (such as reference image index and motion vector), intra-frame prediction parameters (such as intra-frame prediction mode or index), transform parameters, quantization parameters, loop filter parameters and/or other syntax elements.
- the entropy decoding unit 304 can be used to apply the encoding scheme of the entropy encoding unit 270 of the encoder 20 to the encoded image data 21.
- the entropy decoding unit 304 may also be used to provide inter-frame prediction parameters, intra-frame prediction parameters and/or other syntax elements to the mode application unit 360, and to provide other parameters to other units of the decoder 30.
- the video decoder 30 may receive syntax elements at the video slice and/or video block level. In addition, or as an alternative to slices and corresponding syntax elements, coding block groups and/or coding blocks and corresponding syntax elements may be received or used.
- the inverse quantization unit 310 may be configured to receive a quantization parameter (QP) (or generally information related to inverse quantization) and a quantization coefficient from the encoded image data 21 (e.g., parsed and/or decoded by the entropy decoding unit 304), and to inverse quantize the decoded quantization coefficient 309 based on the quantization parameter to obtain an inverse quantization coefficient 311, which may also be referred to as a transform coefficient 311.
- the inverse quantization process may include using the quantization parameter calculated by the video encoder 20 for each video block in the video slice to determine a degree of quantization, and also determine a degree of inverse quantization that needs to be performed.
- the inverse transform processing unit 312 may be configured to receive the dequantized coefficients 311, also referred to as transform coefficients 311, and apply a transform to the dequantized coefficients 311 to obtain a reconstructed residual block 213 in the pixel domain.
- the reconstructed residual block 213 may also be referred to as a transform block 313.
- the transform may be an inverse transform, such as an inverse DCT, an inverse DST, an inverse integer transform, or a conceptually similar inverse transform process.
- the inverse transform processing unit 312 may also be configured to receive transform parameters or corresponding information from the encoded image data 21 (e.g., parsed and/or decoded by the entropy decoding unit 304) to determine the transform applied to the dequantized coefficients 311.
- the reconstruction unit 314 (eg, the summer 314 ) is used to add the reconstructed residual block 313 to the prediction block 365 to obtain the reconstructed block 315 in the pixel domain, for example, by adding the pixel point values of the reconstructed residual block 313 and the pixel point values of the prediction block 365 .
- the loop filter unit 320 (in or after the encoding loop) is used to filter the reconstruction block 315 to obtain a filter block 321, so as to smoothly perform pixel conversion or improve video quality.
- the loop filter unit 320 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, such as an adaptive loop filter (ALF), a noise suppression filter (NSF), or any combination.
- the loop filter unit 220 may include a deblocking filter, an SAO filter, and an ALF filter.
- the order of the filtering process may be a deblocking filter, an SAO filter, and an ALF filter.
- LMCS luma mapping with chroma scaling
- SBT sub-block transform
- ISP intra sub-partition
- the decoded video blocks 321 in one picture are then stored in a decoded picture buffer 330 which stores the decoded pictures 331 as reference pictures for subsequent motion compensation of other pictures and/or for respective output display.
- the decoder 30 is used to output the decoded image 311 through the output terminal 312, etc., to be displayed to the user or for the user to view.
- the inter-frame prediction unit 344 may be functionally the same as the inter-frame prediction unit 244 (particularly the motion compensation unit), and the intra-frame prediction unit 354 may be functionally the same as the inter-frame prediction unit 254, and may determine the division or segmentation and perform prediction based on the segmentation and/or prediction parameters or corresponding information received from the coded image data 21 (e.g., parsed and/or decoded by the entropy decoding unit 304).
- the mode application unit 360 may be used to perform prediction (intra-frame or inter-frame prediction) of each block according to the reconstructed image, block or corresponding pixel point (filtered or unfiltered), and obtain a prediction block 365.
- the intra prediction unit 354 in the mode application unit 360 is used to generate a prediction block 365 for the image block of the current video slice based on the indicated intra prediction mode and data from a previously decoded block of the current image.
- the inter prediction unit 344 e.g., a motion compensation unit
- the mode application unit 360 is used to generate a prediction block 365 for the video block of the current video slice based on the motion vector and other syntax elements received from the entropy decoding unit 304.
- these prediction blocks can be generated from one of the reference images in one of the reference image lists.
- the video decoder 30 can construct reference frame list 0 and list 1 using a default construction technique based on the reference images stored in the DPB 330.
- the same or similar processes may be applied to embodiments of coding block groups (e.g., video coding block groups) and/or coding blocks (e.g., video coding blocks) in addition to or as an alternative to slices (e.g., video slices), for example, a video may be encoded using I, P or B coding block groups and/or coding blocks.
- the mode application unit 360 is used to determine prediction information for a video block of a current video slice by parsing motion vectors and other syntax elements. And use the prediction information to generate a prediction block for the current video block being decoded. For example, the mode application unit 360 uses some of the received syntax elements to determine the prediction mode (e.g., intra-frame prediction or inter-frame prediction) for encoding the video block of the video slice, the inter-frame prediction slice type (e.g., B slice, P slice, or GPB slice), construction information of one or more reference image lists for the slice, motion vectors for each inter-frame coded video block for the slice, inter-frame prediction status for each inter-frame coded video block for the slice, and other information to decode the video block within the current video slice.
- the prediction mode e.g., intra-frame prediction or inter-frame prediction
- the inter-frame prediction slice type e.g., B slice, P slice, or GPB slice
- construction information of one or more reference image lists for the slice motion vectors for each inter
- coding block groups e.g., video coding block groups
- coding blocks e.g., video coding blocks
- a video can be encoded using I, P, or B coding block groups and/or coding blocks.
- the video encoder 30 of FIG. 3 may also be used to segment and/or decode an image using slices (also referred to as video slices), where an image may be segmented or decoded using one or more slices (usually non-overlapping).
- slices also referred to as video slices
- Each slice may include one or more blocks (e.g., CTUs) or one or more block groups (e.g., coding blocks in the H.265/HEVC/VVC standard and bricks in the VVC standard).
- the video decoder 30 shown in Figure 3 can also be used to segment and/or decode an image using slices/coding block groups (also called video coding block groups) and/or coding blocks (also called video coding blocks), wherein the image can be segmented or decoded using one or more slices/coding block groups (usually non-overlapping), each slice/coding block group may include one or more blocks (e.g., CTU) or one or more coding blocks, etc., wherein each coding block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
- slices/coding block groups also called video coding block groups
- coding blocks also called video coding blocks
- each slice/coding block group may include one or more blocks (e.g., CTU) or one or more coding blocks, etc., wherein each coding block may be in a rectangular shape, etc., and may include one or more complete or partial blocks (e.g., CTU).
- the video decoder 30 may be used to decode the encoded image data 21.
- the decoder 30 may generate an output video stream without the loop filter unit 320.
- a non-transform based decoder 30 may directly dequantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames.
- the video decoder 30 may have the dequantization unit 310 and the inverse transform processing unit 312 combined into a single unit.
- processing result of the current step can be further processed in the encoder 20 and the decoder 30 and then output to the next step.
- the processing result of interpolation filtering, motion vector derivation or loop filtering can be further operated, such as clipping or shifting operation.
- the derived motion vector of the current block can be further operated.
- the value of the motion vector is limited to a predefined range according to the representation bit of the motion vector. If the representation bit of the motion vector is bitDepth, the range is -2 ⁇ (bitDepth-1) to 2 ⁇ (bitDepth-1)-1, where " ⁇ " represents the power. For example, if bitDepth is set to 16, the range is -32768 to 32767; if bitDepth is set to 18, the range is -131072 to 131071.
- the value of the derived motion vector (e.g., the MV of 4 4 ⁇ 4 sub-blocks in an 8 ⁇ 8 block) is limited so that the maximum difference between the integer parts of the 4 4 ⁇ 4 sub-block MVs does not exceed N pixels, for example, not more than 1 pixel.
- bitDepth Two methods of limiting motion vectors according to bitDepth are provided here.
- the embodiments of the decoding system 10 can also be used for still image processing or coding and decoding, that is, the processing or coding and decoding of a single image in video coding and decoding that is independent of any previous or consecutive images.
- the inter-frame prediction unit 244 encoder
- the inter-frame prediction unit 344 decoder
- All other functions (also called tools or techniques) of the video encoder 20 and the video decoder 30 can also be used for still image processing, such as residual calculation 204/304, transformation 206, quantization 208, inverse quantization 210/310, (inverse) transformation 212/312, segmentation 262/362, intra-frame prediction 254/354 and/or loop filtering 220/320, entropy coding 270 and entropy decoding 304.
- FIG. 5 is an exemplary block diagram of a video decoding device 500 provided in an embodiment of the present application.
- the video decoding device 500 is suitable for implementing the disclosed embodiments described herein.
- the video decoding device 500 can be a decoder, such as the video decoder 30 in FIG. 1a, or an encoder, such as the video encoder 20 in FIG. 1a.
- the video decoding device 500 includes: an input port 510 (or input port 510) and a receiving unit (receiver unit, Rx) 520 for receiving data; a processor, a logic unit or a central processing unit (CPU) 530 for processing data; for example, the processor 530 here can be a neural network processor 530; a transmitter unit (transmitter unit, Tx) 540 and an output port 550 (or output port 550) for transmitting data; and a memory 560 for storing data.
- the video decoding device 500 may also include an optical-to-electrical (OE) component and an electrical-to-optical (EO) component coupled to the input port 510, the receiving unit 520, the transmitting unit 540 and the output port 550 for the exit or entrance of optical signals or electrical signals.
- OE optical-to-electrical
- EO electrical-to-optical
- the processor 530 is implemented by hardware and software.
- the processor 530 can be implemented as one or more processor chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs.
- the processor 530 communicates with the input port 510, the receiving unit 520, the sending unit 540, the output port 550, and the memory 560.
- the processor 530 includes a decoding module 570 (e.g., a decoding module 570 based on a neural network).
- the decoding module 570 implements the embodiments disclosed above. For example, the decoding module 570 performs, processes, prepares, or provides various encoding operations.
- the decoding module 570 provides substantial improvements to the functions of the video decoding device 500 and affects the switching of the video decoding device 500 to different states.
- the decoding module 570 is implemented by instructions stored in the memory 560 and executed by the processor 530 .
- the memory 560 includes one or more disks, tape drives, and solid-state drives, and can be used as an overflow data storage device for storing programs when such programs are selected for execution, and for storing instructions and data read during program execution.
- the memory 560 can be volatile and/or non-volatile, and can be a read-only memory (ROM), a random access memory (RAM), a ternary content-addressable memory (TCAM), and/or a static random-access memory (SRAM).
- FIG. 6 is an exemplary block diagram of an apparatus 600 provided in an embodiment of the present application.
- the apparatus 600 can be used as either or both of the source device 12 and the destination device 14 in FIG. 1 a .
- the processor 602 in the device 600 may be a central processing unit.
- the processor 602 may be any other type of device or devices that are currently available or will be developed in the future and are capable of manipulating or processing information.
- a single processor such as the processor 602 shown in the figure may be used to implement the disclosed implementation, using more than one processor is faster and more efficient.
- the memory 604 in the apparatus 600 may be a read-only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may be used as the memory 604.
- the memory 604 may include code and data 606 accessed by the processor 602 via a bus 612.
- the memory 604 may also include an operating system 608 and an application 610, which includes at least one program that allows the processor 602 to perform the methods described herein.
- the application 610 may include applications 1 to N, and also include a video decoding application that performs the methods described herein.
- the apparatus 600 may also include one or more output devices, such as a display 618.
- the display 618 may be a touch-sensitive display that combines a display with a touch-sensitive element that may be used to sense touch input.
- the display 618 may be coupled to the processor 602 via the bus 612.
- bus 612 in the device 600 is described herein as a single bus, the bus 612 may include multiple buses.
- the auxiliary storage may be directly coupled to other components of the device 600 or accessed through a network, and may include a single integrated unit such as a memory card or multiple units such as multiple memory cards. Therefore, the device 600 may have a variety of configurations.
- Figure 7 is a coding method provided by an embodiment of the present application. As shown in Figure 7, the coding method may include:
- the image to be encoded may be divided into a plurality of continuous image blocks (encoding blocks), and the image block to be encoded may be any image block among the plurality of image blocks.
- S702 Determine the coding complexity of the image block to be coded according to multiple prediction modes.
- the above-mentioned multiple prediction modes include at least one of block-level prediction, point-level prediction and intra-block copy (IBC) prediction.
- the above-mentioned coding complexity is used to characterize the coding difficulty of the above-mentioned image block to be coded.
- a prediction operation may be performed on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode. Then, a target parameter corresponding to the image block to be encoded and each prediction mode is determined according to the prediction residual. Then, a coding complexity of the image block to be encoded is determined according to the target parameter.
- the target parameter includes at least one of the sum of absolute differences (SAD), the sum of absolute transformed differences (SATD) or the number of lossless coding bits.
- SAD sum of absolute differences
- SATD sum of absolute transformed differences
- the prediction operation can be based on original or reconstructed pixels.
- prediction operations can be performed on the image block to be encoded through block-level prediction, point-level prediction and intra-frame block copy prediction respectively to obtain the prediction block corresponding to the image block to be encoded and the block-level prediction, the prediction block corresponding to the image block to be encoded and the block-level prediction, and the prediction block corresponding to the image block to be encoded and the intra-frame block copy.
- the difference between the prediction block of the image block to be encoded and the original block of the image block to be encoded is calculated to obtain the prediction residual (prediction residual 1) corresponding to the image block to be encoded and the block-level prediction, the prediction residual (prediction residual 2) corresponding to the image block to be encoded and the block-level prediction, and the prediction residual (prediction residual 3) corresponding to the image block to be encoded and the intra-frame block copy.
- target parameters absolute error sum, absolute transform difference sum or lossless coding bit number
- target parameter 1 is determined according to prediction residual 1
- target parameter 2 is determined according to prediction residual 2
- target parameter 3 is determined according to prediction residual 3.
- the coding complexity of the image block to be encoded is determined according to the target parameters corresponding to the image block to be encoded and each prediction mode.
- the coding complexity of the image block to be encoded may be determined according to a target absolute error, a target sum of absolute transform differences, or a target number of lossless coding bits.
- the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode
- the sum of the absolute transformation differences is the minimum sum of the absolute transformation differences corresponding to the image block to be encoded and each prediction mode
- the target lossless coding bit number is the minimum lossless coding bit number among the lossless coding bit numbers corresponding to the image block to be encoded and each prediction mode.
- the image block to be encoded is subjected to block-level prediction, point-level prediction and intra-frame block copy prediction respectively to obtain the absolute error corresponding to the image block to be encoded and the block-level prediction, the absolute error corresponding to the image block to be encoded and the block point-level prediction, and the absolute error corresponding to the image block to be encoded and the intra-frame block copy prediction. Then, the smallest absolute error among the absolute error corresponding to the block-level prediction, the absolute error corresponding to the image block to be encoded and the block point-level prediction, and the absolute error corresponding to the image block to be encoded and the intra-frame block copy prediction is taken as the target absolute error.
- the coding complexity of the image block to be encoded is determined by comparing the target absolute error with a preset absolute error numerical range.
- the preset absolute error numerical range includes multiple numerical ranges, and the multiple numerical ranges correspond one-to-one to multiple coding complexities (i.e., coding complexity levels).
- the coding complexity corresponding to the above-mentioned image block to be encoded and each prediction mode can be determined according to the target parameters corresponding to the above-mentioned image block to be encoded and each prediction mode, and then the coding complexity of the image block to be encoded can be determined according to the coding complexity corresponding to the above-mentioned image block to be encoded and each prediction mode.
- block-level prediction, point-level prediction and intra-block copy prediction are performed on the image block to be encoded respectively to obtain the sum of the absolute transformation differences between the image block to be encoded and the block-level prediction, the sum of the absolute transformation differences between the image block to be encoded and the block point-level prediction, and the sum of the absolute transformation differences between the image block to be encoded and the intra-block copy prediction.
- the preset absolute transformation difference sum value range includes multiple value ranges, and the multiple value ranges correspond to multiple coding complexities (i.e., coding complexity levels) one by one.
- the coding complexity corresponding to the image block to be encoded and the block-level prediction, the coding complexity corresponding to the image block to be encoded and the block point-level prediction, and the coding complexity corresponding to the image block to be encoded and the intra-frame block copy prediction are processed (such as selecting the minimum coding complexity, weighted summation of the coding complexity, etc.) to obtain the coding complexity of the image block to be encoded (i.e., the coding complexity level).
- the first coding complexity of the image block to be encoded can be determined according to the target parameter.
- the image block to be encoded is divided into a plurality of sub-blocks.
- the horizontal difference block and the vertical difference block of each of the plurality of sub-blocks are determined.
- the second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each of the sub-blocks.
- the coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- prediction operations can be performed on the image block to be encoded through block-level prediction, point-level prediction and intra-frame block copy prediction respectively to obtain the prediction block corresponding to the image block to be encoded and the block-level prediction, the prediction block corresponding to the image block to be encoded and the block-level prediction, and the prediction block corresponding to the image block to be encoded and the intra-frame block copy.
- the difference between the prediction block of the image block to be encoded and the original block of the image block to be encoded is calculated to obtain the prediction residual (prediction residual 1) corresponding to the image block to be encoded and the block-level prediction, the prediction residual (prediction residual 2) corresponding to the image block to be encoded and the block-level prediction, and the prediction residual (prediction residual 3) corresponding to the image block to be encoded and the intra-frame block copy.
- the target parameters (the sum of absolute errors, the sum of absolute transformation differences or the number of lossless coding bits) of the above-mentioned image block to be encoded and corresponding to each prediction mode are determined according to the prediction residual.
- the first coding complexity of the image block to be encoded is determined according to the target parameters corresponding to the image block to be encoded and each prediction mode.
- the image block to be encoded is divided into multiple sub-blocks. Assuming that the size of the image block to be encoded is W ⁇ H, where W is the width of the image block and H is the height of the image block, in the embodiment of the present application, the image block to be encoded can be divided into N sub-blocks of (W/N) ⁇ H size.
- horizontal and vertical difference calculations are performed, that is, for each sub-block, the differences between adjacent pixel values are calculated step by step from the horizontal and vertical directions to obtain a horizontal difference block and a vertical difference block of the sub-block.
- the second coding complexity of each sub-block is calculated.
- the SAD values of the horizontal difference block and the vertical difference block of each sub-block are calculated respectively to obtain the horizontal complexity value and the vertical complexity value of each sub-block, and the horizontal complexity value and the vertical complexity value are compared with the preset absolute error and the numerical range respectively to obtain the second coding complexity (second coding complexity level) of the sub-block.
- the second coding complexity of the plurality of sub-blocks of the image to be coded is processed (such as selecting the minimum coding complexity, weighted summing the coding complexity, etc.) to obtain the second coding complexity of the image to be coded
- the first coding complexity of the image to be coded and the second coding complexity of the image to be coded are processed (such as selecting the minimum coding complexity, weighted summing the coding complexities, etc.) to obtain the coding complexity of the image to be coded.
- the above-mentioned image block to be encoded may be divided into a plurality of sub-blocks.
- the plurality of sub-blocks are predicted by performing prediction operations to obtain prediction residuals corresponding to each sub-block and each prediction mode.
- a target parameter corresponding to each sub-block and each prediction mode is determined according to the prediction residuals, wherein the target parameter includes at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits.
- the coding complexity of the image block to be encoded is determined according to the target parameter.
- the image block to be encoded can be divided into N sub-blocks, and each sub-block is predicted by block-level prediction, point-level prediction and intra-block copy prediction to obtain the prediction residual corresponding to each sub-block and each prediction mode.
- the target parameters corresponding to each sub-block and each prediction mode are determined according to the prediction residual.
- the coding complexity of the image block to be encoded is determined according to the target parameters.
- the coding complexity of each of the sub-blocks may be determined according to the target parameter.
- the coding complexity of the image block to be coded may be determined according to the coding complexity of each of the sub-blocks.
- the coding complexity of each sub-block of the image to be encoded can be determined according to the above-mentioned target parameters, and then the coding complexity of each sub-block is processed (such as selecting the minimum coding complexity, weighted summing the coding complexities, etc.) to obtain the coding complexity of the image to be encoded.
- the first coding complexity of the image block to be encoded can be determined according to the target parameter. Then, the horizontal difference block and the vertical difference block of each of the multiple sub-blocks are determined. Then, the second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each of the sub-blocks. The coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- the image block to be encoded may be divided into N sub-blocks.
- each sub-block is predicted by block-level prediction, point-level prediction and intra-block copy prediction to obtain the prediction residual corresponding to each sub-block and each prediction mode.
- the target parameters corresponding to each sub-block and each prediction mode are determined according to the prediction residual.
- the first coding complexity of the image block to be encoded is determined according to the target parameters.
- each sub-block horizontal and vertical difference calculations are performed on each sub-block, that is, for each sub-block, the differences between adjacent pixel values are calculated step by step in both horizontal and vertical directions to obtain a horizontal difference block and a vertical difference block of the sub-block.
- the second coding complexity of each sub-block is calculated.
- the SAD values of the horizontal difference block and the vertical difference block of each sub-block are calculated respectively to obtain the horizontal complexity value and the vertical complexity value of each sub-block, and the horizontal complexity value and the vertical complexity value are compared with the preset absolute error and the numerical range respectively to obtain the second coding complexity (second coding complexity level) of the sub-block.
- the second coding complexity of the plurality of sub-blocks of the image to be coded is processed (such as selecting the minimum coding complexity, weighted summing the coding complexity, etc.) to obtain the second coding complexity of the image to be coded
- the first coding complexity of the image to be coded and the second coding complexity of the image to be coded are processed (such as selecting the minimum coding complexity, weighted summing the coding complexities, etc.) to obtain the coding complexity of the image to be coded.
- the above-mentioned division of the image to be encoded into multiple sub-blocks can be specifically as follows: assuming that the size of the current image block (i.e., the image to be encoded) is W ⁇ H, where W is the width of the image block and H is the height of the image block, in this embodiment, the image block is first divided into 2 small blocks of (W/2) ⁇ (H) size, from left to right, the first sub-block is called the left small block, and the second sub-block is called the right small block.
- the above IBC prediction mode includes an IBC prediction mode applied to image blocks in the first column but not the first row of a slice, an IBC prediction mode applied to image blocks in the non-first column of a slice, and an IBC prediction mode applied to image blocks in the first row and first column of a slice.
- the search area for the N/2 (W/N) ⁇ H sized sub-blocks of the left small block is: the S ⁇ H area to the left of the current (W/2) ⁇ (H) sized left small block
- the search area for the N/2 (W/N) ⁇ H sized sub-blocks of the right small block is: the S ⁇ H area to the left of the current (W/2) ⁇ (H) sized right small block.
- the search area of the N/2 (2*W/N) ⁇ (H/2)-sized sub-blocks of the left and right small blocks is the L ⁇ (H/2) area of the previous row of the current image block;
- the search area of the N/4 (2*W/N) ⁇ H-sized sub-blocks of the left and right small blocks is the L ⁇ 1 area of the previous row of the current image block;
- the search area of the N/2 (W/N) ⁇ H sub-blocks of the right small block is: the (W/2) ⁇ H area to the left of the current (P) ⁇ (H) size right small block.
- the widths of the search areas of the sub-blocks may be the same, different, or partially the same.
- the matching criterion for finding the best matching block in the search area is to minimize SAD, that is, the matching block with the smallest sum of the absolute values of the differences between the original values of the pixels at the corresponding positions in the current sub-block in the search area is the best matching block, wherein the matching block can be the difference between the original value of the pixel and the original value of the pixel of the current sub-block to calculate SAD, and the matching block can also be the difference between the reconstructed pixel value and the original value of the pixel of the current sub-block to calculate SAD.
- the complexity level 1 of the image block is obtained by performing regular operations on the complexity of the N sub-blocks.
- the specific process is as follows:
- the coding complexity (coding complexity level) of the image block can be divided into CL types.
- the group complexity of each group is compared with the agreed threshold, and the first coding complexity of the image block is derived from the CL types of coding complexity (coding complexity level).
- the encoding complexity of the image block in the embodiment of the present application can be divided into five levels, namely 0, 1, 2, 3 and 4.
- the coding complexity of the image block may be obtained according to the following rules.
- the first coding complexity is set to 0
- the first coding complexity is set to 1.
- the first coding complexity is set to 2;
- the first coding complexity is set to 0;
- the first coding complexity is set to 1.
- the first coding complexity is set to 2.
- the first coding complexity is set to 3.
- the first coding complexity is set to 2.
- the first coding complexity is set to 3.
- the first coding complexity is set to 4.
- S703 Determine a quantization parameter of the image block to be encoded according to the encoding complexity of the image to be encoded.
- the quantization parameter of the image block to be encoded may be determined according to the encoding complexity of the image to be encoded according to the following process.
- Step 1 Calculate the buffer fullness.
- the above buffer fullness calculation method can be: take out the physical buffer fullness PhyBufT at the specified time T from the physical buffer fullness record array, and the above physical buffer fullness record array saves the amount of data in the physical buffer when each previous coding block is encoded or decoded.
- RcBufT PhyBufT + X0, where X0 is an agreed parameter.
- F RcBufT/RcBufMAX, where RcBufMAX is the maximum value of the buffer.
- Step 2 Calculate the expected block bit quantity, wherein the expected block bit quantity Bpp represents the expected coding bits of the current coding block without considering the image content.
- Bpp 8 * BppINI + BppADJ.
- BppINI is the initial value of the expected amount, which is obtained by multiplying the original number of bits of the input image block and the target compression rate.
- BppADJ is the adjustment value of the expected amount, which is proportional to (RcBufEND-RcBufT), where RcBufEND is the expected buffer fullness at the end of the encoding or decoding process, and RcBufT is the buffer fullness obtained in the above step 1.
- the expected amount of block bits may not be calculated.
- Step 3 Calculate the information ratio, where the information ratio R represents the ratio of the information retained by the quantized coded block to the original coded block.
- the information ratio is calculated as follows:
- bitsOffset BitsOffset - X1*bpp + X2, where BitsOffset is the initial value of the bit offset, and X1 and X2 are agreed parameters.
- Bpp is the expected amount of block bits obtained in the above step 2
- InvTab is the agreed parameter table
- X3, X4 and X5 are agreed parameters.
- Step 4 Obtain the number of lossless coding bits, wherein the number of lossless coding bits BLL represents an estimated value of the number of coding bits of the coding block in a non-quantized state.
- BLL RecordBLL[T][k], where T represents the specified time, and k represents the coding complexity of the input image block (ie, the coding complexity level).
- Step 5 Calculate the target number of bits, where the target number of bits BTGT represents the number of bits that the coding block should obtain through the code control module.
- R is the information ratio obtained in the above step 3
- BLL is the number of lossless coding bits obtained in the above step 4
- bitsOffset is the bit offset calculated in the above step 3
- X6 and X7 are agreed parameters.
- Step 6 Clamp the target bit number.
- the minimum target bit BMIN and the maximum target bit BMAX can be calculated according to the expected block bit quantity Bpp, the lossless coding bit number BLL and the buffer fullness F, and the target bit number BTGT can be clamped using the range.
- the target bit number may not be clamped.
- Step 7 Calculate the quantization parameters.
- BLL is the number of lossless coding bits obtained in the above step 4
- BTGT is the target number of bits obtained in the above step 5
- X8, X9 and X10 are agreed parameters.
- the encoded image block is predicted, and then the image block to be encoded is quantized by the quantization parameter of the image block to be encoded, and then the image block to be encoded is entropy encoded to obtain a bit stream corresponding to the image block to be encoded.
- the bit streams corresponding to all the encoded image blocks of the image to be encoded can be connected in series to obtain a bit stream corresponding to the image to be encoded.
- the encoded image block is any image block among the multiple image blocks obtained by dividing the image block to be encoded.
- the quantization parameter used in the encoding process will directly affect the image quality of the decoded image.
- the image quality of the decoded image can be improved by adjusting the quantization parameter through the coding complexity of the image.
- the related art uses the horizontal and vertical gradients of the image to calculate the coding complexity of the image.
- the result of the gradient calculation is far different from the prediction error of the weak directional prediction mode.
- the coding complexity calculated by the gradient and the actual coding complexity of the actual current coding block (image block) in the best prediction mode are far different, which leads to the inaccurate derived quantization parameter, affecting the image quality.
- the embodiment of the present application determines the coding complexity of the image block to be encoded through multiple prediction modes.
- the coding complexity of the image block can be accurately obtained based on the prediction effects of multiple prediction modes, thereby improving the accuracy of the coding complexity of the image block.
- the quantization parameter obtained according to the coding complexity can be made more accurate. Since the accuracy of the quantization parameter is positively correlated with the image quality of the decoded image, the accuracy of the improved quantization parameter will make the image quality of the decoded image correspondingly improved.
- the coding control parameter may be updated according to the number of coding bits of the image block to be encoded, wherein the coding control parameter includes at least one of an average lossless coding bit number record table, a lossless coding bit number record table, a physical buffer fullness record table, or a record table position.
- the coding control parameters may be updated according to the number of coding bits of the image block to be coded according to the following process.
- Process 1 Calculate the number of lossless coding bits.
- BCU is the actual number of coding bits obtained after encoding or decoding the current coding block (i.e., the image block to be encoded)
- QP is the quantization parameter used by the current block (i.e., the image block to be encoded)
- X8, X9 and X11 are agreed parameters.
- Process 2 Calculate the location of the record table.
- the record table position TCUR represents the current coding block moment
- the record table position TPRE represents the previous coding block moment
- TPRE (TCUR + N-1)% N, where N is the interval value between the coding block to which the coding bit number in the code control input belongs and the image block to which the image block coding complexity (coding complexity level) belongs.
- Process 3 Update the average lossless coding bit number record table.
- RecordBAVG is an array of length N
- RecordBAVG[t] represents the value of the tth position.
- RecordBAVG[TCUR] (RecordBAVG[TPRE]+X12*BLC)*X13,
- TCUR and TPRE are the record table positions calculated in the above process 2
- BLC is the number of lossless coding bits calculated in the above process 1
- X12 and X13 are agreed parameters.
- Process 4 Update the lossless coding bit number record table.
- the lossless coding bit number record table RecordBLL is a two-dimensional array of size N*K, and RecordBLL[t][k] represents the value of the image block coding complexity (coding complexity level) at the t-th position k.
- TCUR and TPRE are the record table positions calculated in process 2
- BLC is the number of lossless coding bits calculated in process 1
- X14 and X15 are agreed parameters.
- Process 5 Update the physical buffer fullness record table.
- the physical buffer fullness record table RecordPHY is an array of length N, and RecordPHY[t] represents the value of the tth position.
- the value of RecordPHY[TCUR] is updated to the actual value of the current physical buffer fullness.
- the decoding method may include:
- the bitstream may be entropy decoded to obtain the above coding complexity, wherein the bitstream is generated by encoding the above image block to be encoded.
- S1202 Determine a quantization parameter of the image block to be encoded according to the encoding complexity of the image block to be encoded.
- a prediction operation may be performed on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- a target parameter corresponding to the image block to be encoded and each prediction mode is determined according to the prediction residual, and the target parameter includes at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits.
- the coding complexity of the image block to be encoded is determined according to the target parameter.
- the first coding complexity of the image block to be encoded is determined according to the target parameter.
- the image block to be encoded is divided into a plurality of sub-blocks.
- the horizontal difference block and the vertical difference block of each of the plurality of sub-blocks are determined.
- the second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each of the sub-blocks.
- the coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- the coding complexity of the image block to be encoded is determined according to a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the image block to be encoded is divided into a plurality of sub-blocks. Prediction operations are performed on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Target parameters corresponding to each sub-block and each prediction mode are determined according to the prediction residuals, and the target parameters include at least one of the sum of absolute errors, the sum of absolute transformation differences, or the number of lossless coding bits. The coding complexity of the image block to be encoded is determined according to the target parameters.
- the coding complexity of each of the sub-blocks is determined according to the target parameter.
- the coding complexity of the to-be-coded image block is determined according to the coding complexity of each of the sub-blocks.
- a first coding complexity of the image block to be encoded is determined according to the target parameter.
- a horizontal difference block and a vertical difference block of each of the multiple sub-blocks are determined.
- a second coding complexity of the image block to be encoded is determined according to the horizontal difference block and the vertical difference block of each of the sub-blocks.
- the coding complexity of the image block to be encoded is determined according to the first coding complexity and the second coding complexity.
- S1202 can refer to the above S702, which will not be repeated here.
- the code stream is generated by encoding the image block to be encoded.
- the decoded image block is the reconstructed image block to be encoded.
- the above-mentioned code stream can be entropy decoded to obtain the quantization parameters of the image block to be encoded, and then the code stream is dequantized according to the quantization parameters of the image block to be encoded, and then the code stream is decoded, and finally the above-mentioned image block to be encoded is output.
- the encoding device includes hardware and/or software modules corresponding to the execution of each function.
- the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
- the embodiment of the present application can divide the functional modules of the encoding device according to the above method example.
- each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
- Figure 13 shows a possible composition diagram of the encoding device involved in the above embodiment.
- the encoding device 1300 may include: an acquisition unit 1301, a first determination unit 1302, a second determination unit 1303 and an encoding unit 1304.
- the acquisition unit 1301 is used to acquire the image block to be encoded.
- the above-mentioned first determination unit 1302 is used to determine the coding complexity of the above-mentioned image block to be encoded according to multiple prediction modes, and the above-mentioned multiple prediction modes include at least one of block-level prediction, point-level prediction and intra-frame block copy prediction.
- the above-mentioned coding complexity is used to characterize the coding difficulty of the above-mentioned image block to be encoded.
- the second determining unit 1303 is configured to determine the quantization parameter of the to-be-encoded image block according to the encoding complexity.
- the encoding unit 1304 is configured to encode the to-be-encoded image block according to the quantization parameter to generate a bit stream.
- the first determination unit 1302 is specifically used to: perform a prediction operation on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- the first determination unit 1302 is specifically used to: determine the first coding complexity of the image block to be encoded according to the target parameter. Divide the image block to be encoded into a plurality of sub-blocks. Determine a horizontal difference block and a vertical difference block of each of the plurality of sub-blocks. Determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each of the sub-blocks. Determine the coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the first determination unit 1302 is specifically used to determine the coding complexity of the image block to be encoded according to a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the first determination unit 1302 is specifically used to: divide the image block to be encoded into a plurality of sub-blocks. Perform prediction operations on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Determine a target parameter corresponding to each sub-block and each prediction mode according to the prediction residuals, wherein the target parameter includes at least one of a sum of absolute errors, a sum of absolute transformation differences, or a number of lossless coding bits. Determine the coding complexity of the image block to be encoded according to the target parameters.
- the first determining unit 1302 is specifically used to: determine a first coding complexity of the image block to be encoded according to the target parameter; determine a horizontal difference block and a vertical difference block of each of the multiple sub-blocks; determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each of the sub-blocks; and determine a coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the encoding unit 1304 is further configured to: encode the encoding complexity into the bitstream.
- a decoding device for executing the above decoding method will be introduced below in conjunction with FIG. 14 .
- the decoding device includes hardware and/or software modules corresponding to the execution of each function.
- the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
- the embodiment of the present application can divide the functional modules of the decoding device according to the above method example.
- each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
- Figure 14 shows a possible composition diagram of the decoding device involved in the above embodiment.
- the decoding device 1400 may include: an acquisition unit 1401, a determination unit 1402 and a decoding unit 1403.
- the acquisition unit 1401 is used to acquire the coding complexity of the image block to be encoded.
- the coding complexity is used to characterize the coding difficulty of the image block to be encoded.
- the coding complexity is determined by multiple prediction modes, and the multiple prediction modes include at least one of block-level prediction, point-level prediction and intra-frame block copy prediction.
- the determination unit 1402 is configured to determine a quantization parameter of the to-be-encoded image block according to the encoding complexity.
- the decoding unit 1403 is used to decode the code stream according to the quantization parameter to obtain a decoded image block, the code stream is generated by encoding the image block to be encoded, and the decoded image block is the reconstructed image block to be encoded.
- the acquisition unit 1401 is specifically configured to: perform entropy decoding on the bit stream to obtain the coding complexity.
- the acquisition unit 1401 is specifically used to: perform a prediction operation on the image block to be encoded according to the multiple prediction modes to obtain a prediction residual corresponding to the image block to be encoded and each prediction mode.
- the acquisition unit 1401 is specifically used to: determine the first coding complexity of the image block to be encoded according to the target parameter. Divide the image block to be encoded into a plurality of sub-blocks. Determine the horizontal difference block and the vertical difference block of each of the plurality of sub-blocks. Determine the second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each of the sub-blocks. Determine the coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- the acquisition unit 1401 is specifically used to determine the coding complexity of the image block to be encoded according to a target absolute error, a target sum of absolute transformation differences or a target number of lossless coding bits, wherein the target absolute error is the minimum absolute error among the absolute errors corresponding to the image block to be encoded and each prediction mode, the sum of absolute transformation differences is the minimum sum of absolute transformation differences among the sums of absolute transformation differences corresponding to the image block to be encoded and each prediction mode, and the target number of lossless coding bits is the minimum number of lossless coding bits among the numbers of lossless coding bits corresponding to the image block to be encoded and each prediction mode.
- the acquisition unit 1401 is specifically used to: divide the image block to be encoded into a plurality of sub-blocks. Perform prediction operations on the plurality of sub-blocks according to the plurality of prediction modes to obtain prediction residuals corresponding to each sub-block and each prediction mode. Determine target parameters corresponding to each sub-block and each prediction mode according to the prediction residuals, wherein the target parameters include at least one of the sum of absolute errors, the sum of absolute transformation differences, or the number of lossless coding bits. Determine the coding complexity of the image block to be encoded according to the target parameters.
- the acquisition unit 1401 is specifically used to: determine the coding complexity of each sub-block according to the target parameter. Determine the coding complexity of the to-be-coded image block according to the coding complexity of each sub-block.
- the acquisition unit 1401 is specifically used to: determine a first coding complexity of the image block to be encoded according to the target parameter; determine a horizontal difference block and a vertical difference block of each of the multiple sub-blocks; determine a second coding complexity of the image block to be encoded according to the horizontal difference block and the vertical difference block of each of the sub-blocks; and determine a coding complexity of the image block to be encoded according to the first coding complexity and the second coding complexity.
- An embodiment of the present application also provides an encoding device, which includes: at least one processor, when the at least one processor executes program code or instructions, it implements the above-mentioned related method steps to implement the encoding method in the above-mentioned embodiment.
- the device may further include at least one memory, and the at least one memory is used to store the program code or instruction.
- An embodiment of the present application also provides a decoding device, which includes: at least one processor, when the at least one processor executes program code or instructions, it implements the above-mentioned related method steps to implement the decoding method in the above-mentioned embodiment.
- the device may further include at least one memory, and the at least one memory is used to store the program code or instruction.
- An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored.
- the encoding device executes the above-mentioned related method steps to implement the encoding and decoding method in the above-mentioned embodiment.
- the embodiment of the present application also provides a computer program product.
- the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the encoding and decoding method in the above-mentioned embodiment.
- the embodiment of the present application also provides a coding and decoding device, which can be a chip, an integrated circuit, a component or a module.
- the device may include a connected processor and a memory for storing instructions, or the device includes at least one processor for obtaining instructions from an external memory.
- the processor can execute instructions so that the chip executes the coding and decoding methods in the above-mentioned method embodiments.
- FIG15 shows a schematic diagram of the structure of a chip 1500.
- the chip 1500 includes one or more processors 1501 and an interface circuit 1502.
- the chip 1500 may further include a bus 1503.
- the processor 1501 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above encoding and decoding method may be completed by an integrated logic circuit of hardware in the processor 1501 or by instructions in the form of software.
- the processor 1501 may be a general purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- DSP digital signal processing
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the general purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- the interface circuit 1502 can be used to send or receive data, instructions or information.
- the processor 1501 can use the data, instructions or other information received by the interface circuit 1502 to process, and can send the processing completion information through the interface circuit 1502.
- the chip also includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
- a portion of the memory may also include a non-volatile random access memory (NVRAM).
- NVRAM non-volatile random access memory
- the memory stores executable software modules or data structures
- the processor can perform corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).
- the chip can be used in the encoding device or DOP involved in the embodiment of the present application.
- the interface circuit 1502 can be used to output the execution result of the processor 1501.
- processor 1501 and the interface circuit 1502 can be implemented through hardware design, software design, or a combination of hardware and software, and there is no limitation here.
- the device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
- the size of the serial numbers of the above-mentioned processes does not mean the order of execution.
- the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
- the units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple network units. Select some or all of the units to achieve the purpose of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the 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 to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above methods of each embodiment of the embodiment of the present application.
- the aforementioned storage media include: 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.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
J=SAD+λR
Claims (36)
- 一种编码方法,其特征在于,包括:获取待编码图像块;根据多个预测模式确定所述待编码图像块的编码复杂度,所述多个预测模式包括块级预测、点级预测和帧内块复制预测中的至少一项,所述编码复杂度用于表征所述待编码图像块编码难度;根据所述编码复杂度确定所述待编码图像块的量化参数;根据所述量化参数对所述待编码图像块进行编码生成码流。
- 根据权利要求1所述的方法,其特征在于,所述根据多个预测模式确定所述待编码图像块的编码复杂度,包括:根据所述多个预测模式对所述待编码图像块进行预测操作得到所述待编码图像块与每一预测模式对应的预测残差;根据所述预测残差确定所述待编码图像块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求2所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述待编码图像块的第一编码复杂度;将所述待编码图像块划分为多个子块;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求2所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据目标绝对误差、目标绝对变换差之和或目标无损编码比特数确定所述待编码图像块的编码复杂度,所述目标绝对误差为所述待编码图像块与每一预测模式对应的绝对误差中最小的绝对误差,所述绝对变换差之和为所述待编码图像块与每一预测模式对应的绝对变换差之和中最小的绝对变换差之和,所述目标无损编码比特数为所述待编码图像块与每一预测模式对应的无损编码比特数中最小的无损编码比特数。
- 根据权利要求1所述的方法,其特征在于,所述根据多个预测模式确定所述待编码图像块的编码复杂度,包括:将所述待编码图像块划分为多个子块;根据所述多个预测模式对所述多个子块进行预测操作得到每一子块与每一预测模式对应的预测残差;根据所述预测残差确定所述每一子块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求5所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述每一子块的编码复杂度;根据所述每一子块的编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求5所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述待编码图像块的第一编码复杂度;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:将所述编码复杂度编入所述码流。
- 一种解码方法,其特征在于,包括:获取待编码图像块的编码复杂度,所述编码复杂度用于表征待编码图像块编码难度,所述编码复杂度 由多个预测模式确定,所述多个预测模式包括块级预测、点级预测和帧内块复制预测中的至少一项;根据所述编码复杂度确定所述待编码图像块的量化参数;根据所述量化参数对码流进行解码以得到解码图像块,所述码流由所述待编码图像块编码生成,所述解码图像块为重建后的所述待编码图像块。
- 根据权利要求9所述的方法,其特征在于,所述获取编码复杂度,包括:对所述码流进行熵解码以得到所述编码复杂度。
- 根据权利要求9所述的方法,其特征在于,所述获取待编码图像块的编码复杂度,包括:根据所述多个预测模式对所述待编码图像块进行预测操作得到所述待编码图像块与每一预测模式对应的预测残差;根据所述预测残差确定所述待编码图像块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求11所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述待编码图像块的第一编码复杂度;将所述待编码图像块划分为多个子块;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求11所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据目标绝对误差、目标绝对变换差之和或目标无损编码比特数确定所述待编码图像块的编码复杂度,所述目标绝对误差为所述待编码图像块与每一预测模式对应的绝对误差中最小的绝对误差,所述绝对变换差之和为所述待编码图像块与每一预测模式对应的绝对变换差之和中最小的绝对变换差之和,所述目标无损编码比特数为所述待编码图像块与每一预测模式对应的无损编码比特数中最小的无损编码比特数。
- 根据权利要求9所述的方法,其特征在于,所述获取待编码图像块的编码复杂度,包括:将所述待编码图像块划分为多个子块;根据所述多个预测模式对所述多个子块进行预测操作得到每一子块与每一预测模式对应的预测残差;根据所述预测残差确定所述每一子块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求14所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述每一子块的编码复杂度;根据所述每一子块的编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求14所述的方法,其特征在于,所述根据所述目标参数确定所述待编码图像块的编码复杂度,包括:根据所述目标参数确定所述待编码图像块的第一编码复杂度;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 一种编码装置,其特征在于,包括:获取单元,第一确定单元、第二确定单元和编码单元;所述获取单元,用于获取待编码图像块;所述第一确定单元,用于根据多个预测模式确定所述待编码图像块的编码复杂度,所述多个预测模式包括块级预测、点级预测和帧内块复制预测中的至少一项,所述编码复杂度用于表征所述待编码图像块编码难度;所述第二确定单元,用于根据所述编码复杂度确定所述待编码图像块的量化参数;所述编码单元,用于根据所述量化参数对所述待编码图像块进行编码生成码流。
- 根据权利要求17所述的装置,其特征在于,所述第一确定单元具体用于:根据所述多个预测模式对所述待编码图像块进行预测操作得到所述待编码图像块与每一预测模式对应的预测残差;根据所述预测残差确定所述待编码图像块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求18所述的装置,其特征在于,所述第一确定单元具体用于:根据所述目标参数确定所述待编码图像块的第一编码复杂度;将所述待编码图像块划分为多个子块;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求18所述的装置,其特征在于,所述第一确定单元具体用于:根据目标绝对误差、目标绝对变换差之和或目标无损编码比特数确定所述待编码图像块的编码复杂度,所述目标绝对误差为所述待编码图像块与每一预测模式对应的绝对误差中最小的绝对误差,所述绝对变换差之和为所述待编码图像块与每一预测模式对应的绝对变换差之和中最小的绝对变换差之和,所述目标无损编码比特数为所述待编码图像块与每一预测模式对应的无损编码比特数中最小的无损编码比特数。
- 根据权利要求17所述的装置,其特征在于,所述第一确定单元具体用于:将所述待编码图像块划分为多个子块;根据所述多个预测模式对所述多个子块进行预测操作得到每一子块与每一预测模式对应的预测残差;根据所述预测残差确定所述每一子块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求21所述的装置,其特征在于,所述第一确定单元具体用于:根据所述目标参数确定所述每一子块的编码复杂度;根据所述每一子块的编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求21所述的装置,其特征在于,所述第一确定单元具体用于:根据所述目标参数确定所述待编码图像块的第一编码复杂度;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求17至23中任一项所述的装置,其特征在于,所述编码单元还用于:将所述编码复杂度编入所述码流。
- 一种解码装置,其特征在于,包括:获取单元、确定单元和解码单元;所述获取单元,用于获取待编码图像块的编码复杂度,所述编码复杂度用于表征待编码图像块编码难度,所述编码复杂度由多个预测模式确定,所述多个预测模式包括块级预测、点级预测和帧内块复制预测中的至少一项;所述确定单元,用于根据所述编码复杂度确定所述待编码图像块的量化参数;所述解码单元,用于根据所述量化参数对码流进行解码以得到解码图像块,所述码流由所述待编码图像块编码生成,所述解码图像块为重建后的所述待编码图像块。
- 根据权利要求25所述的解码装置,其特征在于,所述获取单元具体用于:对所述码流进行熵解码以得到所述编码复杂度。
- 根据权利要求25所述的解码装置,其特征在于,所述获取单元具体用于:根据所述多个预测模式对所述待编码图像块进行预测操作得到所述待编码图像块与每一预测模式对应的预测残差;根据所述预测残差确定所述待编码图像块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求27所述的解码装置,其特征在于,所述获取单元具体用于:根据所述目标参数确定所述待编码图像块的第一编码复杂度;将所述待编码图像块划分为多个子块;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求27所述的解码装置,其特征在于,所述获取单元具体用于:根据目标绝对误差、目标绝对变换差之和或目标无损编码比特数确定所述待编码图像块的编码复杂度,所述目标绝对误差为所述待编码图像块与每一预测模式对应的绝对误差中最小的绝对误差,所述绝对变换差之和为所述待编码图像块与每一预测模式对应的绝对变换差之和中最小的绝对变换差之和,所述目标无损编码比特数为所述待编码图像块与每一预测模式对应的无损编码比特数中最小的无损编码比特数。
- 根据权利要求25所述的解码装置,其特征在于,所述获取单元具体用于:将所述待编码图像块划分为多个子块;根据所述多个预测模式对所述多个子块进行预测操作得到每一子块与每一预测模式对应的预测残差;根据所述预测残差确定所述每一子块与每一预测模式对应的目标参数,所述目标参数包括绝对误差和、绝对变换差之和或无损编码比特数中的至少一项;根据所述目标参数确定所述待编码图像块的编码复杂度。
- 根据权利要求30所述的解码装置,其特征在于,所述获取单元具体用于:根据所述目标参数确定所述每一子块的编码复杂度;根据所述每一子块的编码复杂度确定所述待编码图像块的编码复杂度。
- 根据权利要求30所述的解码装置,其特征在于,所述获取单元具体用于:根据所述目标参数确定所述待编码图像块的第一编码复杂度;确定所述多个子块中每一子块的水平差值块和垂直差值块;根据所述每一子块的水平差值块和垂直差值块确定所述待编码图像块的第二编码复杂度;根据所述第一编码复杂度和所述第二编码复杂度确定所述待编码图像块的编码复杂度。
- 一种解码装置,包括至少一个处理器和存储器,其特征在于,所述至少一个处理器执行存储在存储器中的程序或指令,以使得所述解码装置实现上述权利要求1至8中任一项所述的方法。
- 一种编码装置,包括至少一个处理器和存储器,其特征在于,所述至少一个处理器执行存储在存储器中的程序或指令,以使得所述编码装置实现上述权利要求9至16中任一项所述的方法。
- 一种计算机可读存储介质,用于存储计算机程序,其特征在于,当所述计算机程序在计算机或处理器运行时,使得所述计算机或所述处理器实现上述权利要求1至8中任一项或权利要求9至16中任一项所述的方法。
- 一种计算机程序产品,所述计算机程序产品中包含指令,其特征在于,当所述指令在计算机或处理器上运行时,使得所述计算机或所述处理器实现上述权利要求1至8中任一项或权利要求9至16中任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP23884924.4A EP4583507A4 (en) | 2022-11-04 | 2023-10-31 | METHOD AND APPARATUS FOR CODING AND DECODING |
| US19/198,294 US20250267280A1 (en) | 2022-11-04 | 2025-05-05 | Encoding and Decoding Method and Apparatus |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211373846.0A CN118042136A (zh) | 2022-11-04 | 2022-11-04 | 编解码方法和装置 |
| CN202211373846.0 | 2022-11-04 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US19/198,294 Continuation US20250267280A1 (en) | 2022-11-04 | 2025-05-05 | Encoding and Decoding Method and Apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024093994A1 true WO2024093994A1 (zh) | 2024-05-10 |
Family
ID=90929801
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/128410 Ceased WO2024093994A1 (zh) | 2022-11-04 | 2023-10-31 | 编解码方法和装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250267280A1 (zh) |
| EP (1) | EP4583507A4 (zh) |
| CN (2) | CN118474373A (zh) |
| WO (1) | WO2024093994A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118972584A (zh) * | 2024-10-16 | 2024-11-15 | 支付宝(杭州)信息技术有限公司 | 一种视频压缩方法、装置、设备及介质 |
| CN120434391A (zh) * | 2025-07-02 | 2025-08-05 | 中科南京人工智能创新研究院 | 码率自适应图像压缩方法及系统 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12284360B2 (en) * | 2023-06-20 | 2025-04-22 | Disney Enterprises, Inc. | Performance optimization of pre-processor using video proxy codec |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103888762A (zh) * | 2014-02-24 | 2014-06-25 | 西南交通大学 | 一种基于hevc标准的视频编码框架 |
| JP2017152851A (ja) * | 2016-02-23 | 2017-08-31 | 富士通株式会社 | 動画像符号化装置、動画像符号化方法および動画像符号化プログラム |
| CN111836046A (zh) * | 2020-06-22 | 2020-10-27 | 腾讯科技(深圳)有限公司 | 视频编码方法及装置、电子设备和计算机可读存储介质 |
| CN113382258A (zh) * | 2021-06-10 | 2021-09-10 | 北京百度网讯科技有限公司 | 视频编码方法、装置、设备和介质 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101855910B (zh) * | 2007-09-28 | 2014-10-29 | 杜比实验室特许公司 | 视频压缩和传送技术 |
| CN101795415B (zh) * | 2010-04-22 | 2012-02-08 | 杭州华三通信技术有限公司 | 一种视频编码中的码率控制方法及其装置 |
| US9930346B2 (en) * | 2014-04-15 | 2018-03-27 | Qualcomm Incorporated | System and method for flatness detection for display stream compression (DSC) |
| JP7125594B2 (ja) * | 2018-04-27 | 2022-08-25 | 富士通株式会社 | 符号化装置、符号化方法、及び符号化プログラム |
-
2022
- 2022-11-04 CN CN202410635866.3A patent/CN118474373A/zh active Pending
- 2022-11-04 CN CN202211373846.0A patent/CN118042136A/zh active Pending
-
2023
- 2023-10-31 EP EP23884924.4A patent/EP4583507A4/en active Pending
- 2023-10-31 WO PCT/CN2023/128410 patent/WO2024093994A1/zh not_active Ceased
-
2025
- 2025-05-05 US US19/198,294 patent/US20250267280A1/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103888762A (zh) * | 2014-02-24 | 2014-06-25 | 西南交通大学 | 一种基于hevc标准的视频编码框架 |
| JP2017152851A (ja) * | 2016-02-23 | 2017-08-31 | 富士通株式会社 | 動画像符号化装置、動画像符号化方法および動画像符号化プログラム |
| CN111836046A (zh) * | 2020-06-22 | 2020-10-27 | 腾讯科技(深圳)有限公司 | 视频编码方法及装置、电子设备和计算机可读存储介质 |
| CN113382258A (zh) * | 2021-06-10 | 2021-09-10 | 北京百度网讯科技有限公司 | 视频编码方法、装置、设备和介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4583507A4 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118972584A (zh) * | 2024-10-16 | 2024-11-15 | 支付宝(杭州)信息技术有限公司 | 一种视频压缩方法、装置、设备及介质 |
| CN120434391A (zh) * | 2025-07-02 | 2025-08-05 | 中科南京人工智能创新研究院 | 码率自适应图像压缩方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4583507A4 (en) | 2026-01-07 |
| US20250267280A1 (en) | 2025-08-21 |
| CN118474373A (zh) | 2024-08-09 |
| CN118042136A (zh) | 2024-05-14 |
| EP4583507A1 (en) | 2025-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7781989B2 (ja) | 画像予測方法、機器、及びシステム、装置、及び記憶媒体 | |
| JP7592968B2 (ja) | エンコーダ、デコーダ、および対応するブロック解除フィルタ適応の方法 | |
| US20250267280A1 (en) | Encoding and Decoding Method and Apparatus | |
| EP4246971A1 (en) | Quantization parameter decoding method and device | |
| WO2020253681A1 (zh) | 融合候选运动信息列表的构建方法、装置及编解码器 | |
| US20240422320A1 (en) | Encoding method and apparatus, and decoding method and apparatus | |
| CN113228632A (zh) | 用于局部亮度补偿的编码器、解码器、以及对应方法 | |
| WO2024093312A1 (zh) | 图像编解码方法和装置 | |
| CN118646901B (zh) | 编解码方法和装置 | |
| CN114930834A (zh) | 编码器、解码器及灵活档次配置的对应方法 | |
| US20250063210A1 (en) | Encoding method and apparatus, and decoding method and apparatus | |
| US20260067476A1 (en) | Encoding and decoding method and apparatus | |
| WO2025148337A1 (zh) | 一种图像处理方法及装置 | |
| WO2025130604A1 (zh) | 一种解码方法及装置 | |
| WO2025091872A1 (zh) | 编解码方法和装置 | |
| WO2025157064A1 (zh) | 一种解码方法及装置 | |
| WO2025148890A1 (zh) | 一种编解码方法及装置 | |
| WO2025123826A9 (zh) | 一种编解码方法及装置 | |
| WO2025156925A1 (zh) | 一种编解码方法及装置 | |
| CN122073610A (zh) | 视频图像处理方法和装置 | |
| WO2024093305A1 (zh) | 图像编解码方法和装置 | |
| CN116647683A (zh) | 量化处理方法和装置 | |
| CN114650425A (zh) | 视频帧格式转换方法和装置 | |
| WO2020119525A1 (zh) | 一种帧间预测的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23884924 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023884924 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023884924 Country of ref document: EP Effective date: 20250401 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 2023884924 Country of ref document: EP |