WO2024140500A1 - 量化参数调整方法、装置、设备及存储介质 - Google Patents

量化参数调整方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2024140500A1
WO2024140500A1 PCT/CN2023/141199 CN2023141199W WO2024140500A1 WO 2024140500 A1 WO2024140500 A1 WO 2024140500A1 CN 2023141199 W CN2023141199 W CN 2023141199W WO 2024140500 A1 WO2024140500 A1 WO 2024140500A1
Authority
WO
WIPO (PCT)
Prior art keywords
quantization parameter
coding block
current coding
parameter adjustment
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2023/141199
Other languages
English (en)
French (fr)
Inventor
孙煜程
王岩
陈方栋
王莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to EP23910426.8A priority Critical patent/EP4645855A4/en
Publication of WO2024140500A1 publication Critical patent/WO2024140500A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Definitions

  • bitstream buffer when the bitstream buffer is tight (full), the quantization parameter is generally increased to reduce the risk of bitstream buffer overflow.
  • visually simple and simple coding blocks such as completely flat blocks
  • visually complex but simple coding blocks such as intra block copy (IBC block)
  • the visually simple areas often compromise by using larger quantization parameters due to the presence of visually complex areas, resulting in a subjectively lossy effect.
  • the main purpose of the present application is to provide a quantization parameter adjustment method, device, equipment and storage medium, aiming to solve the technical problem that the prior art cannot dynamically adjust the quantization parameter according to the content of the coding block, which easily leads to subjective lossy effects.
  • the present application provides a quantization parameter adjustment method, comprising the following steps:
  • the quantization parameter of the current coding block is adjusted.
  • FIG13 is a flowchart of a sixth embodiment of a quantization parameter adjustment method of the present application.
  • determining the quantization parameter of the current coding block based on the visual complexity information and/or the coding complexity information may be directly obtaining the quantization parameter of the current coding block based on at least one of the visual complexity information and the coding complexity information. For example: if the visual complexity information corresponds to the simplest vision, then the value of the quantization parameter of the current coding block is directly derived as BitDepth-7, where BitDepth is the bit depth of the coding channel.
  • the quantization parameter of the current coding block is reduced or increased by para1; if the current coding block is located in the first column of the slice, the quantization parameter of the current coding block is reduced or increased by para2, wherein para1 and para2 are both preset values pre-set by the administrator of the quantization parameter adjustment device.
  • Step S30' adjusting the quantization parameter of the current coding block according to the parameter threshold.
  • Step S30" adjusting the quantization parameter of the current coding block according to the visual complexity information and/or the coding complexity information and the complexity threshold.
  • the complexity threshold may be a preset fixed threshold, or a value read from a high-level syntax, wherein the high-level syntax may at least include a sequence level, a picture level, or a slice level.
  • the quantization step size is appropriately increased (that is, the quantization parameter is appropriately increased).
  • the fifth complexity threshold and the sixth complexity threshold can be pre-set. If the visual complexity information is greater than the fifth complexity threshold, and the coding complexity information is greater than the sixth complexity threshold, it means that the current coding block is a visually complex and coding complex image coding block.
  • the quantization parameter of the current coding block can be increased, wherein the increase range of the quantization parameter can be pre-set by the management personnel of the quantization parameter adjustment device, and the fourth complexity threshold is less than the fifth complexity threshold.
  • the quantization parameter of the current coding block can be reduced, wherein the reduction range of the quantization parameter can be pre-set by the administrator of the quantization parameter adjustment device, the fourth complexity threshold is greater than the seventh complexity threshold, the fifth complexity threshold is greater than the seventh complexity threshold, and the sixth complexity threshold is greater than the eighth complexity threshold.
  • This embodiment adjusts the quantization parameter of the current coding block according to the visual complexity information and/or the coding complexity information, and the complexity threshold. Since the quantization parameter of the current coding block is adjusted according to the visual complexity information and/or the coding complexity information, and the complexity threshold, it is ensured that when the quantization parameter is adjusted, a variety of different adjustment methods can be set, so that the adjustment mechanism of the quantization parameter is enriched, so that it can better meet the adjustment requirements in actual use.
  • FIG. 6 is a flowchart of a fourth embodiment of a quantization parameter adjustment method of the present application.
  • Step S301 Determine the measurement value of the target sample in the current coding block.
  • the measurement values such as gradient value, variance, and absolute value between maximum value and minimum value may be used. Of course, other similar measurement values may also be used, and this embodiment does not limit this.
  • the gradient value is used as the measurement value for illustration.
  • the target sample may be a sample in the current coding block that is designated to have a quantization parameter adjusted.
  • the sub-block division of the current coding block may be a 2x2 sub-block division of the current coding block, the current coding block is divided into a plurality of sub-blocks, and then the portion of the current coding block belonging to the same sub-block is taken as a sample, thereby dividing the current coding block into a plurality of samples.
  • the samples belonging to the same sub-block share a measurement value, that is, the measurement values of the samples belonging to the same sub-block are the same.
  • other sub-block division methods such as 3x3 specifications
  • this embodiment is not limited to this.
  • FIG7 is a schematic diagram of sub-block division of this embodiment.
  • the step of calculating the measurement value of the target sample in the current coding block according to the reconstructed samples around the current coding block in this embodiment may include:
  • a measure value of a target sample in the current coding block is determined according to the reconstructed sample position.
  • one or more different prediction modes may be applied simultaneously in the same current coding block (for example, the prediction modes of each sub-block of the current coding block may be different), and the sample may select the position of the surrounding reconstructed samples according to the prediction mode to which it belongs. Determining the reconstructed sample position corresponding to the sample according to the prediction mode of the sample may be determining the position of the reconstructed samples existing around the sample according to the prediction method of the prediction mode used by the sample.
  • FIGS. 8 and 9 are schematic diagrams of positioning the reconstructed sample positions in the vertical prediction mode and the horizontal prediction mode of this embodiment.
  • the prediction mode is a vertical prediction mode
  • its prediction direction is shown by the arrow in FIG8 .
  • the prediction mode is a horizontal prediction mode
  • its prediction direction is shown by the arrow in FIG9 .
  • the prediction direction is shown by the arrow in FIG10 .
  • the prediction direction is shown by the arrow in FIG11 .
  • Step S302 adjusting the quantization parameter of the current coding block according to the measurement value.
  • adjusting the quantization parameter of the current coding block according to the measurement value may be adjusting the quantization parameter of the current coding block according to the interval to which the corresponding measurement value belongs.
  • the quantization parameters of samples whose corresponding measurement values are within a certain range may not be adjusted, the quantization parameters of samples whose measurement values are too small may be reduced, and the quantization parameters of samples whose measurement values are too large may be increased.
  • the first measurement threshold and the second measurement threshold may be set according to the range (the second measurement threshold is greater than the first measurement threshold). If the measurement value corresponding to the sample is greater than the first measurement threshold and less than the second measurement threshold, the quantization parameter of the sample may not be adjusted. If the measurement value corresponding to the sample is less than the first measurement threshold, it means that the measurement value of the sample is too small. In this case, the quantization parameter of the sample may be reduced by the first step. if the measurement value corresponding to the sample is greater than the second measurement threshold, it means that the measurement value of the sample is too large, and the quantization parameter of the sample can be increased by the second gradient adjustment value.
  • the third measurement threshold and the fourth measurement threshold can be set at this time, if the measurement values corresponding to the target samples in the current coding block are all smaller than the third measurement threshold, then it means that the measurement values of the target samples in the current coding block are all small, then the quantization parameter of the current coding block does not need to be adjusted at this time; if the measurement values corresponding to the target samples in the current coding block are all greater than the fourth measurement threshold, then it means that the measurement values of the target samples in the current coding block are all large, then the quantization parameter of the current coding block does not need to be adjusted at this time.
  • This embodiment divides the current coding block into sub-blocks, and determines the measurement value corresponding to the target sample in the current coding block based on the sub-block division result; and adjusts the quantization parameter of the current coding block according to the measurement value. Since the measurement value is calculated in advance, and then it is determined whether the quantization parameter of the sample needs to be adjusted and the adjustment range when adjusting according to the measurement value, the rationality of the process of adjusting the quantization parameter is guaranteed.
  • FIG. 12 is a flowchart of a fifth embodiment of a quantization parameter adjustment method of the present application.
  • step S302 of the quantization parameter adjustment method of this embodiment includes:
  • Step S302' adjusting the quantization parameter of the current coding block according to the measurement value and the visual complexity information and/or the coding complexity information.
  • the quantization parameter of the current coding block can also be adjusted in combination with the measurement value, visual complexity information and/or coding complexity information.
  • the quantization parameters of some samples with larger measurement values can be increased or decreased.
  • the first visual complexity interval and the fifth measurement threshold can be pre-set. If the visual complexity information of the current coding block is in the first visual complexity interval, the quantization parameters of the samples with corresponding measurement values greater than the fifth measurement threshold are increased or decreased by the first sub-block adjustment value, wherein the first sub-block adjustment value can be pre-set by the administrator of the quantization parameter adjustment device.
  • the quantization parameter of the sample whose corresponding sub-block measurement threshold in the current coding block is greater than para11 can be increased or decreased by the first sub-block adjustment value.
  • the quantization parameters of some samples with smaller measurement values can be increased or decreased.
  • the first coding complexity interval and the sixth measurement threshold can be set. If the coding complexity information is in the first coding complexity interval, the quantization parameters of the samples with corresponding measurement values less than the sixth measurement threshold are adjusted according to the second sub-block adjustment value.
  • adjusting the quantization parameter according to the second sub-block adjustment value can be to reduce or increase the quantization parameter by the second sub-block adjustment value.
  • it can also be detected whether it is within the adjustable range, which will not be repeated here.
  • This embodiment adjusts the quantization parameter of the current coding block according to the measurement value and the visual complexity information and/or the coding complexity information. Since in the process of adjusting the quantization parameter, whether the quantization parameter needs to be adjusted and how to adjust it are determined according to the measurement value combined with the visual complexity information and/or the coding complexity information, the flexibility and rationality of the adjustment of the quantization parameter are guaranteed.
  • FIG. 13 is a flowchart of a sixth embodiment of a quantization parameter adjustment method of the present application.
  • step S30 of the quantization parameter adjustment method of this embodiment includes:
  • Step S30'' adjusting the quantization parameter of the current coding block according to the position information of the current coding block, the visual complexity information and/or the coding complexity information.
  • the quantization parameter of the current coding block can be adjusted comprehensively in combination with the position information, visual complexity information and coding complexity information of the current coding block.
  • the quantization parameter of the current coding block when the current coding block is in a specific position and the visual complexity is low, the quantization parameter of the current coding block can be appropriately reduced.
  • the preset designated position and the preset visual complexity threshold can be pre-set. If the current coding block is in the preset designated position and the visual complexity information is less than the preset visual complexity threshold, the quantization parameter of the current coding block is reduced by the first adjustment value.
  • the preset designated position, the preset visual complexity threshold and the first adjustment value can all be pre-set by the administrator of the quantization parameter adjustment device. For example: set the preset designated position to the first row or first column of the slice, set the preset visual complexity threshold to 1, and set the first adjustment value to 2.
  • the quantization parameter of the current coding block when the current coding block is at a specific position and the coding complexity is low, the quantization parameter of the current coding block can be appropriately reduced.
  • a preset designated position and a preset coding complexity threshold can be pre-set. If the current coding block is at a preset designated position and the coding complexity information is less than the preset coding complexity threshold, the quantization parameter of the current coding block is reduced by a second adjustment value.
  • the preset designated position, the preset coding complexity threshold and the second adjustment value can all be pre-set by the administrator of the quantization parameter adjustment device.
  • the quantization parameter of the current coding block when the current coding block is in a specific position, and the visual complexity and coding complexity are both low, the quantization parameter of the current coding block can be appropriately reduced.
  • a preset designated position, a preset visual complexity threshold, and a preset coding complexity threshold can be pre-set. If the current coding block is in a preset designated position, the visual complexity information is less than the preset visual complexity threshold, and the coding complexity information is less than the preset coding complexity threshold, the quantization parameter of the current coding block is reduced by a third adjustment value.
  • the preset designated position, the preset visual complexity threshold, the preset coding complexity threshold, and the third adjustment value can all be pre-set by the administrator of the quantization parameter adjustment device.
  • the quantization parameter of the current coding block when the current coding block is not in a specific position, and the visual complexity and coding complexity are both low, the quantization parameter of the current coding block can be appropriately reduced.
  • the preset designated position, the preset visual complexity threshold and the preset coding complexity threshold can be pre-set. If the current coding block is not in the preset designated position, the visual complexity information is less than the preset visual complexity threshold, and the coding complexity information is less than the preset coding complexity threshold, the quantization parameter of the current coding block is reduced by a fourth adjustment value.
  • the preset designated position, the preset visual complexity threshold, the preset coding complexity threshold and the fourth adjustment value can all be pre-set by the administrator of the quantization parameter adjustment device.
  • At least two of the various embodiments of the above-mentioned quantization parameter adjustment method may be randomly combined to obtain a new embodiment for execution, and the present application does not impose any limitation on this.
  • This embodiment adjusts the quantization parameter of the current coding block according to the position information of the current coding block, the visual complexity information and/or the coding complexity information. Since the quantization parameter of the current coding block is adjusted in combination with the position information, the visual complexity information and/or the coding complexity information of the current coding block, it is ensured that when the quantization parameter is adjusted, the adjustment strategy of the quantization parameter can be set from multiple different dimensions, so that the adjustment of the quantization parameter is more in line with the actual situation, and the rationality of the adjustment of the quantization parameter is improved.
  • an embodiment of the present application further proposes a storage medium, on which a quantization parameter adjustment program is stored.
  • the quantization parameter adjustment program is executed by a processor, the steps of the quantization parameter adjustment method described above are implemented.
  • FIG. 14 is a structural block diagram of the first embodiment of the quantization parameter adjustment device of the present application.
  • the quantization parameter adjustment device proposed in the embodiment of the present application includes:
  • An information acquisition module 10 configured to determine visual complexity information and/or coding complexity information corresponding to a current coding block
  • a parameter determination module 20 configured to determine a quantization parameter of the current coding block according to the visual complexity information and/or the coding complexity information;
  • the parameter adjustment module 30 is used to adjust the quantization parameter of the current coding block.
  • This embodiment determines the visual complexity information and/or coding complexity information corresponding to the current coding block, where the current coding block is the image coding block currently being coded; determines the quantization parameter of the current coding block based on the visual complexity information and/or coding complexity information; and adjusts the quantization parameter of the current coding block. Since the quantization parameter of the current coding block can be determined based on the visual complexity information and/or coding complexity information of the current coding block, and the quantization parameter of the current coding block can be adjusted, it is ensured that the quantization parameter can be dynamically adjusted as the content of the current coding block is coded, thereby avoiding the occurrence of subjective lossy effects.
  • the parameter adjustment module 30 is further configured to adjust the quantization parameter of the current coding block according to a parameter threshold.
  • the parameter adjustment module 30 is further configured to adjust the quantization parameter of the current coding block according to the visual complexity information and/or the coding complexity information and a complexity threshold.
  • the parameter adjustment module 30 is also used for not adjusting the quantization parameter of the current coding block if the visual complexity information or the coding complexity information is less than a first complexity threshold; or, if the visual complexity information is less than a second complexity threshold and the coding complexity information is greater than a third complexity threshold, not adjusting the quantization parameter of the current coding block, and the second complexity threshold is less than the third complexity threshold.
  • the parameter adjustment module 30 is also used to reduce the quantization parameter of the current coding block if the visual complexity information is equal to a fourth complexity threshold; or, if the visual complexity information is greater than the fifth complexity threshold, and the coding complexity information is greater than the sixth complexity threshold, then increase the quantization parameter of the current coding block, and the fourth complexity threshold is less than the fifth complexity threshold; or, if the visual complexity information is less than the seventh complexity threshold, and the coding complexity information is less than the eighth complexity threshold, then reduce the quantization parameter of the current coding block, and the fourth complexity threshold is greater than the seventh complexity threshold, the fifth complexity threshold is greater than the seventh complexity threshold, and the sixth complexity threshold is greater than the eighth complexity threshold.
  • the parameter adjustment module 30 is further used to reduce or increase the quantization parameter of the current coding block if the current coding block is in a preset specified position; or, if the current coding block is in a preset specified position, not adjust the quantization parameter of the current coding block.
  • the parameter adjustment module 30 is further configured to determine a measurement value of a target sample in a current coding block; and adjust a quantization parameter of the current coding block according to the measurement value.
  • the parameter adjustment module 30 is further configured to calculate a measurement value of a target sample in the current coding block according to reconstructed samples around the current coding block.
  • the parameter adjustment module 30 is further used to determine the reconstructed sample position corresponding to the target sample in the current coding block according to the prediction mode of the target sample; and determine the measurement value of the target sample in the current coding block according to the reconstructed sample position.
  • the parameter adjustment module 30 is further used to divide the current coding block into sub-blocks, and divide the current coding block into multiple samples according to the sub-block division result, and the measurement values of samples belonging to the same sub-block are the same.
  • the parameter adjustment module 30 is also used to reduce the quantization parameter of the sample whose corresponding measurement value is less than the first measurement threshold by a first gradient adjustment value; or, to increase the quantization parameter of the sample whose corresponding measurement value is greater than the second measurement threshold by a second gradient adjustment value; or, to not adjust the quantization parameter of the sample whose corresponding measurement value is greater than the first measurement threshold and less than the second measurement threshold, and the second measurement threshold is greater than the first measurement threshold.
  • the parameter adjustment module 30 is also used for not adjusting the quantization parameter of the current coding block if the measurement values corresponding to the target samples are all less than a third measurement threshold; or, not adjusting the quantization parameter of the current coding block if the measurement values corresponding to the target samples are all greater than a fourth measurement threshold, and the fourth measurement threshold is greater than the third measurement threshold.
  • the parameter adjustment module 30 is further configured to adjust the quantization parameter of the current coding block according to the measurement value and the visual complexity information and/or the coding complexity information.
  • the parameter adjustment module 30 is also used to increase or decrease the quantization parameter of the sample whose corresponding measurement value is greater than the fifth measurement threshold by the first sub-block adjustment value if the visual complexity information is in the first visual complexity interval; or, if the coding complexity information is in the first coding complexity interval, adjust the quantization parameter of the sample whose corresponding measurement value is less than the sixth measurement threshold according to the second sub-block adjustment value; or, if the coding complexity information is in the second coding complexity interval and the visual complexity information is in the second visual complexity interval, adjust the quantization parameter of the sample whose corresponding measurement value is less than the seventh measurement threshold according to the third sub-block adjustment value.
  • the parameter adjustment module 30 is further used to reduce the quantization parameter of the current coding block by a first adjustment value if the current coding block is in a preset designated position and the visual complexity information is less than a preset visual complexity threshold; or, if the current coding block is in a preset designated position and the coding complexity information is less than a preset coding complexity threshold, reduce the quantization parameter of the current coding block by a second adjustment value; or, if the current coding block is in a preset designated position, the visual complexity information is less than a preset visual complexity threshold, and the coding complexity information is less than a preset coding complexity threshold, reduce the quantization parameter of the current coding block by a third adjustment value; or, if the current coding block is not in a preset designated position, the visual complexity information is less than the preset visual complexity threshold, and the coding complexity information is less than the preset coding complexity threshold, then reduce the quantization parameter of the current coding block by a first adjustment value if the current coding block
  • At least one of the parameter threshold, the complexity threshold, the preset designated position, and the measurement threshold is a preset value, or a value read from a high-level syntax
  • the high-level syntax includes a sequence level, an image level, or a slice level.

Landscapes

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

Abstract

本申请属于图像编码技术领域,公开了一种量化参数调整方法、装置、设备及存储介质。该量化参数调整方法包括:确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,当前编码块为当前进行编码处理的图像编码块;根据视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数;对当前编码块的量化参数进行调整。

Description

量化参数调整方法、装置、设备及存储介质
相关申请
本申请要求于2022年12月30日申请的、申请号为202211741038.5的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图像编码技术领域,尤其涉及一种量化参数调整方法、装置、设备及存储介质。
背景技术
在对图像数据进行浅编码的编码过程中,现有的编码技术,针对视觉简单区域会给出较小的量化参数,针对视觉复杂区域会给出较大的量化参数。
但是,在码流缓冲区紧张(较満)的情况下,一般会增大量化参数来降低码流缓冲区的上溢风险,然而,若此时需要编码视觉简单且编码简单的编码块(如完全平坦块),或者此时需要编码视觉复杂但编码简单的编码块(如帧内块复制(Intra Block Copy,IBC块),会产生码控过度干预而造成主观有损的效果。
并且,如果编码块同时包含了视觉简单区域以及视觉复杂区域,则其视觉简单区域往往因为视觉复杂区域的存在而妥协采用较大的量化参数,导致主观有损的效果。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
发明内容
本申请的主要目的在于提供一种量化参数调整方法、装置、设备及存储介质,旨在解决现有技术无法根据编码块的内容动态调整量化参数,容易导致主观有损的效果的技术问题。
为实现上述目的,本申请提供了一种量化参数调整方法,包括以下步骤:
确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
根据所述视觉复杂度信息和/或所述编码复杂度信息确定所述当前编码块的量化参数;
对所述当前编码块的量化参数进行调整。
为实现上述目的,本申请提供了一种量化参数调整方法,包括以下步骤:
确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
根据所述编码复杂度信息确定所述当前编码块的量化参数;
确定当前编码块中目标样本的测度值;
根据所述测度值对所述当前编码块的量化参数进行调整。
为实现上述目的,本申请提供了一种量化参数调整装置,包括:
信息获取模块,用于确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
参数确定模块,用于根据所述编码复杂度信息确定所述当前编码块的量化参数;
参数调整模块,用于对当前编码块的量化参数进行调整。
为实现上述目的,本申请提供了一种量化参数调整装置,包括:
信息获取模块,用于确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
参数确定模块,用于根据所述编码复杂度信息确定所述当前编码块的量化参数;
参数调整模块,用于确定当前编码块中目标样本的测度值;根据所述测度值对所述当前编码块的量化参数进行调整。
此外,为实现上述目的,本申请还提出一种量化参数调整设备,所述量化参数调整设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的量化参数调整程序,所述量化参数调整程序配置为实现如上所述的量化参数调整方法。
此外,为实现上述目的,本申请还提出一种编码设备,所述编码设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的编码程序,所述编码程序配置为实现如上所述的量化参数调整方法。
此外,为实现上述目的,本申请还提出一种解码设备,所述解码设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的解码程序,所述解码程序配置为实现如上所述的量化参数调整 方法。
此外,为实现上述目的,本申请还提出一种存储介质,所述存储介质上存储有量化参数调整程序,所述量化参数调整程序被处理器执行时实现如上所述的量化参数调整方法。
本申请通过确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,当前编码块为当前进行编码处理的图像编码块;根据视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数;对当前编码块的量化参数进行调整。由于是可根据当前编码块的视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数,并对当前编码块的量化参数进行调整,保证可随着当前编码块的内容编码动态调整量化参数,从而避免出现主观有损的效果。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的电子设备的结构示意图;
图2为本申请量化参数调整方法第一实施例的流程示意图;
图3为本申请一实施例的浅编码框架执行流程示意图;
图4为本申请量化参数调整方法第二实施例的流程示意图;
图5为本申请量化参数调整方法第三实施例的流程示意图;
图6为本申请量化参数调整方法第四实施例的流程示意图;
图7为本申请一实施例的子块划分示意图;
图8为本申请一实施例的垂直预测模式已重建样本位置定位示意图;
图9为本申请一实施例的水平预测模式已重建样本位置定位示意图;
图10为本申请一实施例的左上至右下预测模式已重建样本位置定位示意图;
图11为本申请一实施例的右上至左下预测模式已重建样本位置定位示意图;
图12为本申请量化参数调整方法第五实施例的流程示意图;
图13为本申请量化参数调整方法第六实施例的流程示意图;
图14为本申请量化参数调整装置第一实施例的结构框图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的量化参数调整设备结构示意图。
如图1所示,该电子设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM),也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及量化参数调整程序。
在图1所示的电子设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本申请电子设备中的处理器1001、存储器1005可以设置在量化参数调整设备中,所述电子设备通过处理器1001调用存储器1005中存储的量化参数调整程序,并执行本申请实施例提供的量化参数调整方法。
本申请实施例提供了一种量化参数调整方法,参照图2,图2为本申请一种量化参数调整方法第一实施例的流程示意图。
本实施例中,所述量化参数调整方法包括以下步骤:
步骤S10:确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块。
需要说明的是,本实施例的执行主体可以是所述量化参数调整设备,也可以是对图像数据进行编码处理时的编码设备或解码设备,所述量化参数调整设备可以是个人电脑、服务器等电子设备,当然,也可以是其他可实现相同或相似功能的其他设备,本实施例对此不加以限制,在本实施例及下述各实施例中,以量化参数调整设备为例对本申请量化参数调整方法进行说明。
需要说明的是,在对图像数据进行浅编码处理时,浅编码框架一般会具有包括块划分、码控、预测、 变换、量化、熵编码等模块,其中,块划分模块会将图像数据划分为一个个的图像编码块,然后依次对划分的图像编码块进行编码处理,当前编码块可以是当前正在被进行编码处理的图像编码块。
视觉复杂度信息可以是当前编码块区域的人眼敏感程度,人眼往往对复杂区域的敏感度较低,对简单区域的敏感度较高。编码复杂度信息可以是编码当前编码块所需要花费的代价,往往视觉复杂块因为较难预测所以会花费更多的代价,而视觉简单块因为容易预测所以少的代价,因此在本申请的一些应用中,可以令编码复杂度信息等于视觉复杂度信息来简化操作,因为往往视觉简单的区域容易编码。
然而,在特殊情况下,例如预测模式的缺失或者系数编码算法不匹配等,导致视觉简单块也可能造成较大的编码代价,此时,也可以不再直接将编码复杂度信息等于视觉复杂度信息,而是单独进行编码复杂度的分析,计算编码复杂度信息。
在本申请的一种可能的实施方式中,量化参数调整设备可以是在对图像数据进行浅编码处理的编码端,则此时确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息可以是根据纹理复杂度计算视觉复杂度,获得视觉复杂度信息,根据预编码模式计算当前编码块的编码复杂度,获得编码复杂度信息,并将视觉复杂度信息及编码复杂度信息编入码流中。
当然,量化参数调整设备也可以是在对图像数据进行浅编码处理的解码端,由于编码端会预先计算视觉复杂度信息和/或编码复杂度信息,并将视觉复杂度信息和/或编码复杂度信息编入码流中,则此时确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息可以是从码流中读取当前编码块对应的视觉复杂度信息和/或编码复杂度信息。当然,若有必要,也可以通过当前编码块周边已重建像素导出视觉复杂度信息。
步骤S20:根据所述视觉复杂度信息和/或所述编码复杂度信息确定所述当前编码块的量化参数。
需要说明的是,根据视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数可以是根据视觉复杂度信息和编码复杂度信息中的至少一个直接获取当前编码块的量化参数,例如:若视觉复杂度信息对应视觉最简单,则直接导出当前编码块的量化参数的值为BitDepth-7,其中,BitDepth为编码通道的比特位深。
当然,在确定量化参数时,还可以根据实际的量化设计进行调整,例如:假设量化设计采用8点分数量化,此时若视觉复杂度信息对应视觉最简单,则当前编码块的量化参数的值为(BitDepth-7)*8。
步骤S30:对所述当前编码块的量化参数进行调整。
需要说明的是,在获取到当前编码块的量化参数之后,为了保证尽可能避免出现主观有损的现象,可以对当前编码块的量化参数进行调整。
在实际使用中,对当前编码块的量化参数进行调整时,可以有多种不同的调整方式,例如:根据预设的参数阈值对量化参数进行调整、根据视觉复杂度信息和/或编码复杂度信息的不同进行不同的调整、根据当前编码块在编码过程中所处的位置进行调整、根据周边样本进行量化参数的调整等。
在本申请一种可能的实现方式中,量化参数调整设备的管理人员可以预先设置局部指示信息,根据局部指示信息指定当前编码块中需要进行量化参数调整的区域,则此时本实施例所述步骤S30,可以包括:
对所述当前编码块中所有区域的量化参数均进行调整;或,
对所述当前编码块中预设区域的量化参数进行调整;或,
对所述当前编码块中所有区域的量化参数均不进行调整。
在实际使用中,量化参数调整设备的管理人员可以预先设置局部指示信息,若在局部指示信息中指示均调整,则此时可以对当前编码块中所有区域的量化参数均进行调整。若在局部指示信息中指示均不调整,则此时可以对当前编码块中所有区域的量化参数均不进行调整。
而若是在局部指示信息中指定预设区域,则此时可以仅对当前编码块中预设区域的量化参数进行调整。例如:量化参数调整设备的管理人员在知道当前编码块的视觉简单区域位置之后,可以将该视觉简单区域作为预设区域,基于该视觉简单区域位置设置局部指示信息,则此时量化参数调整设备仅会对当前编码块中视觉简单区域进行量化参数调整。
在本申请的一种可能的实施方式中,可以设置在当前编码块处于特定的位置时,对当前编码块的量化参数进行特殊处理,则此时本实施例所述步骤S30,可以包括:
若所述当前编码块处于预设指定位置,则减小或增大所述当前编码块的量化参数。
需要说明的是,预设指定位置可以由量化参数调整设备的管理人员预先进行设置,量化参数减小或增大的幅度也可以由量化参数调整设备的管理人员预先进行设置。
例如:若当前编码块位于片首行,则将当前编码块的量化参数减小或增大para1;若当前编码块位于片首列,则将当前编码块的量化参数减小或增大para2,其中,para1与para2均为由量化参数调整设备的管理人员预先进行设置的预设值。
在本申请的一种可能的实施方式中,还可以设置在当前编码块处于特定的位置时,不对当前编码块的量化参数进行调整,则此时本实施例所述步骤S30,可以包括:
若所述当前编码块处于预设指定位置,则不对所述当前编码块的量化参数进行调整。
例如:若当前编码块位于片首行,则不对当前编码块的量化参数进行调整;若当前编码块位于片首列,则不对当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,为了保证可对后续的其他编码块的量化参数也可以合理进行调整,本实施例所述步骤S30之后,还可以包括:
根据调整后的量化参数更新码控参数,所述码控参数用于计算编码块的量化参数。
需要说明的是,根据调整后的量化参数更新码控参数可以是检测调整后的量化参数是否处于预设范围内,若是,则调用浅编码框架中的码控模块进行码控参数更新。其中,码控参数用于计算编码块的量化参数,若码控参数进行更新,则计算编码块的量化参数的计算依据,也会发生更新。
为了便于理解,现结合图3进行说明,但不对本方案进行限定。图3为本实施例的浅编码框架执行流程示意图,如图3所示,浅编码框架由编码器及解码器构成,其中,编码器包括:划分模块(片划分及块划分)、预测模块、量化系数编码模块、码流交织模块等多个模块;解码器包括:解交织模块、复杂度解析模块、其他语法解析模块、预测模块、反量化模块、重建模块等,其中,编码器或解码器中的码控模块均可用于执行本申请的实施例中的量化参数调整方法。
预测像素(Prediction Signal)是指从已经编解码的像素中导出的像素值,通过原始像素与预测像素之差获得残差,进而进行残差变换量化以及系数编码。特别的,帧间的预测像素指的是当前块从参考帧(重建像素帧)导出的像素值,由于像素位置离散,需要通过插值运算来获取最终的预测像素。预测像素与原始像素越接近,两者相减得到的残差能量越小,编码压缩性能越高。
评价编码效率的有两大指标:码率和峰值信噪比(Peak Signal to Noise Ratio,PSNR)。比特流越小,则压缩率越大;PSNR越大,重建图像质量越好。在模式选择的时候,判别公式实质上也就是对二者的综合评价。模式对应的代价:J(mode)=D+λ*R。其中,D表示Distortion,通常使用误差平方和(Sum of the Squared Errors,SSE)指标来衡量,SSE是指重建块与源图像的差值均方和;λ是拉格朗日乘子;R就是该模式下图像块编码所需的实际比特数,包括编码模式信息、运动信息、残差等所需的比特总和。在模式选择时,若使用远程数据对象(Remote Data Object,RDO)原则去对编码模式做比较决策,通常可以保证编码性能最佳。帧内预测(Intra Prediction)指利用当前块的空域相邻块(与当前块处于同一帧图像)的重建像素值进行预测编码。码控(Rate Control)指控制码率平稳性,一般是通过对量化步长的调整来达到码率平稳的目的。
在浅压缩场景下,存在码流缓冲区用于存放每个编码单元的比特,在定比特码率控制场景下,码流缓冲区在每个码控单元编码完后会将该码控单元的比特放入码流缓冲区,同时从码流缓冲区移走一定数量的比特。浅压缩的码控目的是使得码流缓冲区不上溢且不下溢。其中,上溢是指码流缓冲区已经充满但仍有比特未放入该缓冲区,下溢是指码流缓冲区内没有比特但已经移走的比特数量未达到要求的数量。
回退模式(Fallback Mode)主要是为了保证码流缓冲区不发生上溢,采用该模式编码得到的比特数一定小于或等于码流缓冲区需要移走的固定比特数量。在编码/解码完回退模式后,码流缓冲区的“水位”不会上升,进而使得不发生上溢。
熵编码(Entropy Coding)是指按照信息熵的原理进行的无损编码方式,它处于视频压缩的最后一个处理模块,把一系列用来表示视频序列的元素符号转变为一个用来传输或存储的二进制码流,熵编码模块的输出数据即原始视频压缩后的最终码流。熵编码可以有效地去除这些视频元素符号的统计冗余,是保证视频编码压缩效率的重要工具之一。
本实施例通过确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,当前编码块为当前进行编码处理的图像编码块;根据视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数;对当前编码块的量化参数进行调整。由于是可根据当前编码块的视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数,并对当前编码块的量化参数进行调整,保证可随着当前编码块的内容编码动态调整量化参数,从而避免出现主观有损的效果。
参考图4,图4为本申请一种量化参数调整方法第二实施例的流程示意图。
基于上述第一实施例,本实施例量化参数调整方法的所述步骤S30,包括:
步骤S30':根据参数阈值对所述当前编码块的量化参数进行调整。
需要说明的是,参数阈值可以是预先设置的固定阈值,也可以是从高层语法中读取到的值,其中,高层语法至少可以包括序列级、图像级或片级。根据参数阈值对当前编码块的量化参数进行调整可以是将当前编码块的量化参数与参数阈值进行比较,根据比较结果对当前编码块的量化参数进行调整。
在实际使用中,可以在当前编码块的量化参数处于一定范围内时,才进行逆行量化参数调整,则此时可以根据该范围预先设定第一参数阈值及第二参数阈值(第一参数阈值小于第二参数阈值),若是当前编码块的量化参数小于第二参数阈值,或大于第二参数阈值,则表示当前编码块的量化参数不处于该范围内,可以不对当前编码块的量化参数进行调整。
而若是当前编码块的量化参数大于第一参数阈值,且小于第二参数阈值,则此时可以将当前编码块的量化参数调整为预设量化参数。其中,预设量化参数可以是由量化参数调整设备的管理人员预先设置的固定值。
当然,为了调整量化参数时更加的合理,还可以设置第三参数阈值,第一参数阈值小于第三参数阈值,第三参数阈值小于第二参数阈值,在确定当前编码块的量化参数大于第一参数阈值,且小于第二参数阈值之后,还可以将当前编码块的量化参数与第三参数阈值进行比较,若当前编码块的量化参数小于第三参数阈值,则直接将量化参数设置为第三参数阈值或将量化参数减小。其中,将量化参数减小时的减小幅度,可以由量化参数调整设备的管理人员预先设置。
本实施例通过将预设的参数阈值与当前编码块的量化参数进行比较,确定当前编码块的量化参数所处的区间,然后根据所处的区间对当前编码块的量化参数进行调整。保证了在对量化参数调整过程中自由度及合理性。
参考图5,图5为本申请一种量化参数调整方法第三实施例的流程示意图。
基于上述第一实施例,本实施例量化参数调整方法的所述步骤S30,包括:
步骤S30”:根据所述视觉复杂度信息和/或所述编码复杂度信息、以及复杂度阈值对所述当前编码块的量化参数进行调整。
需要说明的是,复杂度阈值可以是预先设置的固定阈值,也可以是从高层语法中读取到的值,其中,高层语法至少可以包括序列级、图像级或片级。
在实际使用中,可以在视觉复杂度信息或编码复杂度信息过小时,可以不必对当前编码块的量化参数进行调整。则此时可以设置第一复杂度阈值,若视觉复杂度信息或编码复杂度信息小于第一复杂度阈值时,可以不对当前编码块的量化参数进行调整。
例如:假设第一复杂度阈值为para1,视觉复杂度信息为A1,编码复杂度信息为A2,此时若A1或A2中的任意一个等于0或小于para1,则表示此时当前编码块的区域为视觉最简单区域,此时可以不对当前编码块进行量化参数调整。
当然,若当前编码块为视觉简单,但编码复杂的图像编码块,此时若过渡保护会导致编码过程中码流缓冲区的上溢风险增加,此时可以不对该当前编码块的量化参数进行调整,此时可以预先设置第二复杂度阈值及第三复杂度阈值(第二复杂度阈值小于第三复杂度阈值),若当前编码块的视觉复杂度信息小于第二复杂度阈值,且编码复杂度信息大于第三复杂度阈值,则表示当前编码块为视觉简单,但编码复杂的图像编码块,此时可以不对当前编码块进行量化参数调整。由于此种调整方式主要是避免码流缓冲区的上溢风险,可以仅在码流缓冲区的满度较高的情况下使用。
在本申请的一种可能的实施方式中,可以设置在视觉复杂度信息为特定值时,采取特殊的调整方式调整量化参数,则此时可以设置第四复杂度阈值,若视觉复杂度信息等于第四复杂度阈值,则减小当前编码块的量化参数。例如:若视觉复杂度信息等于1,则将量化参数减小para2,其中,para2为预设的减小值,可以由量化参数调整设备的管理人员预先进行设置。
在本申请的一种可能的实施方式中,还可以设置在当前编码块的视觉复杂,且编码复杂时,适当增大量化步长(即适当增大量化参数),则此时可以预先设置第五复杂度阈值及第六复杂度阈值,若视觉复杂度信息大于第五复杂度阈值,且编码复杂度信息大于第六复杂度阈值,则表示当前编码块为视觉复杂,且编码也复杂的图像编码块,此时可以增大当前编码块的量化参数,其中,量化参数的增大幅度可以由量化参数调整设备的管理人员预先进行设置,第四复杂度阈值小于第五复杂度阈值。
在本申请的一种可能的实施方式中,还可以设置在当前编码块的视觉简单,且编码也简单时,适当减小量化步长,则此时可以预先设置第七复杂度阈值及第八复杂度阈值,若视觉复杂度信息小于第七复杂度阈值,且编码复杂度信息小于第八复杂度阈值,则表示当前编码块为视觉简单,且编码也简单的图像编码块,此时可以减小当前编码块的量化参数,其中,量化参数的减小幅度可以由量化参数调整设备的管理人员预先进行设置,第四复杂度阈值大于第七复杂度阈值,第五复杂度阈值大于第七复杂度阈值,第六复杂度阈值大于第八复杂度阈值。
本实施例通过根据所述视觉复杂度信息和/或所述编码复杂度信息、以及复杂度阈值对所述当前编码块的量化参数进行调整。由于是根据视觉复杂度信息和/或编码复杂度信息,以及复杂度阈值对当前编码块的量化参数进行调整,保证在对量化参数进行调整时,可以设置多种不同的调整方式,使丰富了对量化参数的调整机制,使其可以更加符合实际使用中的调整需求。
参考图6,图6为本申请一种量化参数调整方法第四实施例的流程示意图。
基于上述第一实施例,本实施例量化参数调整方法的所述步骤S30,包括:
步骤S301:确定当前编码块中目标样本的测度值。
需要说明的是,可以采用梯度值、方差、最大值与最小值之间的绝对值等测度值,当然,也可以是采用其他类似的测度值,本实施例对此不加以限制。在本实施例中,以梯度值作为测度值进行说明。目标样本可以是当前编码块中被指定需要进行量化参数调整的样本。
在本申请的一种可能的实施方式中,可以采用子块划分的方式将当前编码块划分为多个样本,则此时,本实施例所述步骤S301之前,还可以包括:
对所述当前编码块进行子块划分,根据子块划分结果将所述当前编码块划分为多个样本。
需要说明的是,对当前编码块进行子块划分可以是对当前编码块进行2x2规格的子块划分,将当前编码块划分为多个子块,然后将当前编码块中归属于同一子块的部分作为一个样本,从而将当前编码块划分为多个样本。其中,归属于同一个子块的样本共享一个测度值,即归属于同一个子块的样本的测度值相同。当然,也可以采用其他规格的子块划分方式(如3x3规格),本实施例对此不加以限制。
为了便于理解,现结合图7进行说明,但不对本方案进行限定,图7为本实施例的子块划分示意图。如图7所示,当前编码块被划分为多个子块,从而将其划分为多个样本,其中,针对2x2子块形成的样本(BC),可以利用其周边已重建样本计算梯度值作为测度值,则其梯度值grad2x2=(gradB+gradC)/2,其中,gradB=(abs(A-B)+abs(B-C))/2,gradC=(abs(B-C)+abs(C-D))/2。其中,abs为绝对值求取函数。
在本申请的一种可能的实施方式中,可以利用当前编码块周边已重建样本来计算当前编码块中目标样本的测度值,则此时本实施例所述步骤S301,可以包括:
根据所述当前编码块周边已重建样本计算所述当前编码块中目标样本的测度值。
在实际使用中,计算测度值时,由于编码时采用不同的预测模式进行像素重建,当前编码块周边已重建样本的位置可能不同,为了保证计算得到的测度值的合理性,本实施例所述根据当前编码块周边已重建样本计算当前编码块中目标样本的测度值的步骤,可以包括:
根据所述目标样本的预测模式确定所述当前编码块中目标样本对应的已重建样本位置;
根据所述已重建样本位置确定所述当前编码块中目标样本的测度值。
需要说明的是,同一当前编码块中可能同时应用一种或多种不同的预测模式(例如当前编码块的每个子块的预测模式可以不同),样本可根据自己所属的预测模式进行周边已重建样本位置的选择。根据样本的预测模式确定样本对应的已重建样本位置可以是根据样本所使用的预测模式的预测方式确定该样本周边存在的已重建样本所处的位置。
在根据目标样本的预测模式确定好当前编码块中目标样本对应的已重建样本位置之后,即可根据已重建样本计算当前编码块中目标样本的测度值。
为了便于理解,现结合图8和9进行说明,但不对本方案进行限定,图8和图9为本实施例的垂直预测模式及水平预测模式下已重建样本位置定位示意图。
若预测模式为垂直预测模式,其预测方向如图8中箭头所示,则针对2x2子块构建的样本(图中加重阴影部分的2x2子块),此时,可以采用梯度值作为测度值,则样本的梯度值grad2x2=abs(B-C),而若预测模式为水平预测模式,则其预测方向如图9中的箭头所示,此时2x2子块构建的样本(图中加重阴影部分的2x2子块)的梯度值grad2x2=abs(E-F)。
同理,还会存在其他预测模式,如果采用从左上至右下的预测模式,则其预测方向如图10中的箭头所示,此时2x2子块构建的样本(图中加重阴影部分的2x2子块)的梯度值grad2x2=abs(A-B)或者grad2x2=(abs(A-B)+abs(B-C))/2,或者grad2x2=(abs(A-B)+3*abs(B-C))/4。
如果采用从右上至左下的预测模式,则其预测方向如图11中的箭头所示,此时2x2子块构建的样本(图中加重阴影部分的2x2子块)的梯度值grad2x2=abs(C-D)或者grad2x2=(abs(C-D)+abs(B-C))/2,或者grad2x2=(3*abs(C-D)+abs(B-C))/4。
步骤S302:根据所述测度值对所述当前编码块的量化参数进行调整。
需要说明的是,根据测度值对当前编码块的量化参数进行调整可以是根据对应的测度值的所属区间对当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,可以不对对应的测度值处于一定范围内的样本的量化参数进行调整,对测度值过小的样本的量化参数进行减小,对测度值过大的样本的量化参数进行增大,则此时可以根据该范围设置第一测度阈值及第二测度阈值(第二测度阈值大于第一测度阈值),若样本对应的测度值大于第一测度阈值,且小于第二测度阈值,则此时可以不对该样本的量化参数进行调整;若样本对应的测度值小于第一测度阈值,则表示该样本的测度值过小,此时可以将该样本的量化参数减小第一梯 度调整值;若样本对应的测度值大于第二测度阈值,则表示该样本的测度值过大,此时可以将该样本的量化参数增大第二梯度调整值。
在本申请的一种可能的实施方式中,若当前编码块中目标样本的测度值均较小或均较大,则此时可以不对当前编码块的量化参数进行调整,则此时可以设置第三测度阈值及第四测度阈值(第四测度阈值大于第三测度阈值),若当前编码块中目标样本对应的测度值均小于第三测度阈值,则表示当前编码块中目标样本的测度值均较小,此时可以不对当前编码块的量化参数进行调整;若当前编码块中目标样本对应的测度值均大于第四测度阈值,则表示当前编码块中目标样本的测度值均较大,此时可以不对当前编码块的量化参数进行调整。
本实施例通过对所述当前编码块进行子块划分,并基于子块划分结果确定所述当前编码块中目标样本对应的测度值;根据所述测度值对所述当前编码块的量化参数进行调整。由于是预先计算测度值,然后根据测度值确定是否需要对样本的量化参数进行调整,以及调整时的调整幅度,从而保证了对量化参数进行调整过程中的合理性。
参考图12,图12为本申请一种量化参数调整方法第五实施例的流程示意图。
基于上述第四实施例,本实施例量化参数调整方法的所述步骤S302,包括:
步骤S302':根据测度值及所述视觉复杂度信息和/或所述编码复杂度信息对所述当前编码块的量化参数进行调整。
需要说明的是,在对当前编码块的量化参数进行调整时,为了尽可能保证量化参数调整的合理性,还可以结合测度值、视觉复杂度信息和/或编码复杂度信息一同对当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,可以在当前编码块的视觉复杂度信息处于一定范围内时,对部分测度值较大的样本的量化参数增大或减小,则此时可以预先设置第一视觉复杂度区间及第五测度阈值,若当前编码块的视觉复杂度信息处于第一视觉复杂度区间,则将对应的测度值大于第五测度阈值的样本的量化参数增大或减小第一子块调整值,其中,第一子块调整值可以由量化参数调整设备的管理人员预先进行设置。
例如:假设视觉复杂度信息为A1,第一视觉复杂度区间为小于1,第五测度阈值为para11,则若当前编码块的A1等于0,处于第一视觉复杂度区间内,则此时可以将当前编码块中对应的子块测度阈值大于para11的样本的量化参数增大或减小第一子块调整值。
其中,量化参数调整设备的管理人员还可以预先为目标样本的量化参数设置可调整范围,在根据第一子块调整值对量化参数进行增大或减小之后,检测调整后的值是否处于可调整范围内,若不是,则自动将量化参数修正为可调整范围相应的范围边界值,例如:假设可调整范围为[min,max],调整后的量化参数为Qc,若Qc大于max,则会将量化参数修改为max,若Qc小于min,则会将量化参数修改为min。
在本申请的一种可能的实施方式中,可以在当前编码块的编码复杂度信息处于一定范围内时,对部分测度值较小的样本的量化参数增大或减小,则此时可以设置第一编码复杂度区间及第六测度阈值,若所述编码复杂度信息处于第一编码复杂度区间,则根据第二子块调整值对对应的测度值小于第六测度阈值的样本的量化参数进行调整。其中,根据第二子块调整值对量化参数进行调整可以是将量化参数减小或增大第二子块调整值。同理,在根据第二子块调整值对量化参数进行调整之后,也可以检测是否处于可调整范围内,此处不再赘述。
在本申请的一种可能的实施方式中,还可以在当前编码块的编码复杂度信息及视觉复杂度信息均处于一定范围内时,对部分测度值较小的样本的量化参数进行增大或减小,则此时可以设置第二编码复杂度区间、第二视觉复杂度区间及第七测度阈值,若编码复杂度信息处于第二编码复杂度区间,且视觉复杂度信息处于第二视觉复杂度区间,则根据第三子块调整值对对应的测度值小于第七测度阈值的样本的量化参数进行调整。其中,根据第三子块调整值对量化参数进行调整可以是将量化参数减小或增大第三子块调整值。同理,在根据第三子块调整值对量化参数进行调整之后,也可以检测是否处于可调整范围内,此处不再赘述。
本实施例通过根据测度值及所述视觉复杂度信息和/或所述编码复杂度信息对所述当前编码块的量化参数进行调整。由于在对量化参数进行调整过程中,是根据测度值结合视觉复杂度信息和/或编码复杂度信息确定是否需要对量化参数进行调整,以及如何进行调整,保证了对量化参数的调整的灵活性及合理性。
参考图13,图13为本申请一种量化参数调整方法第六实施例的流程示意图。
基于上述第一实施例,本实施例量化参数调整方法的所述步骤S30,包括:
步骤S30”':根据所述当前编码块的位置信息、所述视觉复杂度信息和/或所述编码复杂度信息对所述当前编码块的量化参数进行调整。
需要说明的是,为了合理的调整量化参数,在对当前编码块的量化参数进行调整时,可以结合当前编码块的位置信息、视觉复杂度信息及编码复杂度信息综合对当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,可以在当前编码块处于特定位置,且视觉复杂度较低时,将当前编码块的量化参数适当减小,则此时可以预先设置预设指定位置及预设视觉复杂度阈值,若当前编码块处于预设指定位置,且视觉复杂度信息小于预设视觉复杂度阈值,则将当前编码块的量化参数减小第一调整值。其中,预设指定位置、预设视觉复杂度阈值及第一调整值均可以由量化参数调整设备的管理人员预先进行设置。例如:将预设指定位置设置为片首行或片首列,将预设视觉复杂度阈值设置为1,将第一调整值设置为2。
在本申请的一种可能的实施方式中,可以在当前编码块处于特定位置,且编码复杂度较低时,将当前编码块的量化参数适当减小,则此时可以预先设置预设指定位置及预设编码复杂度阈值,若当前编码块处于预设指定位置,且编码复杂度信息小于预设编码复杂度阈值,则将当前编码块的量化参数减小第二调整值。其中,预设指定位置、预设编码复杂度阈值及第二调整值均可以由量化参数调整设备的管理人员预先进行设置。
在本申请的一种可能的实施方式中,可以在当前编码块处于特定位置、视觉复杂度及编码复杂度均较低时,将当前编码块的量化参数适当减小,则此时可以预先设置预设指定位置、预设视觉复杂度阈值及预设编码复杂度阈值,若当前编码块处于预设指定位置,视觉复杂度信息小于预设视觉复杂度阈值,且编码复杂度信息小于预设编码复杂度阈值,则将当前编码块的量化参数减小第三调整值。其中,预设指定位置、预设视觉复杂度阈值、预设编码复杂度阈值及第三调整值均可以由量化参数调整设备的管理人员预先进行设置。
在本申请的一种可能的实施方式中,可以在当前编码块不处于特定位置、视觉复杂度及编码复杂度均较低时,将当前编码块的量化参数适当减小,则此时可以预先设置预设指定位置、预设视觉复杂度阈值及预设编码复杂度阈值,若当前编码块不处于预设指定位置,视觉复杂度信息小于预设视觉复杂度阈值,且编码复杂度信息小于预设编码复杂度阈值,则将当前编码块的量化参数减小第四调整值。其中,预设指定位置、预设视觉复杂度阈值、预设编码复杂度阈值及第四调整值均可以由量化参数调整设备的管理人员预先进行设置。
在本申请的一种可能的实现方式中,还可以将上述量化参数调整方法的各个实施例中的至少两个实施例的方式进行随机组合,以得到新的实施例进行执行,本申请对此不加以限制。
本实施例通过根据所述当前编码块的位置信息、所述视觉复杂度信息和/或所述编码复杂度信息对所述当前编码块的量化参数进行调整。由于是结合当前编码块的位置信息、视觉复杂度信息和/或编码复杂度信息对当前编码块的量化参数进行调整,保证了在对量化参数进行调整时,可从多个不同维度设置量化参数的调整策略,使其对量化参数的调整更加符合实际情况,提高了对量化参数进行调整的合理性。
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有量化参数调整程序,所述量化参数调整程序被处理器执行时实现如上文所述的量化参数调整方法的步骤。
参照图14,图14为本申请量化参数调整装置第一实施例的结构框图。
如图14所示,本申请实施例提出的量化参数调整装置包括:
信息获取模块10,用于确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息;
参数确定模块20,用于根据所述视觉复杂度信息和/或所述编码复杂度信息确定所述当前编码块的量化参数;
参数调整模块30,用于对当前编码块的量化参数进行调整。
本实施例通过确定当前编码块对应的视觉复杂度信息和/或编码复杂度信息,当前编码块为当前进行编码处理的图像编码块;根据视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数;对当前编码块的量化参数进行调整。由于是可根据当前编码块的视觉复杂度信息和/或编码复杂度信息确定当前编码块的量化参数,并对当前编码块的量化参数进行调整,保证可随着当前编码块的内容编码动态调整量化参数,从而避免出现主观有损的效果。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据参数阈值对所述当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述量化参数大于第一参数阈值,且小于第二参数阈值,则将所述量化参数设置为预设量化参数;或,若所述量化参数小于第一参数阈值或大于第二参数阈值,则不对所述当前编码块的量化参数进行调整;或,若所述量化参数小于第三参数阈值,则将所述量化参数设置为所述第三参数阈值或减小所述量化参数,所述第一参数阈值小于第三参数阈值,所述第三参数阈值小于所述第二参数阈值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据所述视觉复杂度信息和/或所述编码复杂度信息、以及复杂度阈值对所述当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述视觉复杂度信息或所述编码复杂度信息小于第一复杂度阈值,则不对所述当前编码块的量化参数进行调整;或,若所述视觉复杂度信息小于第二复杂度阈值,且所述编码复杂度信息大于第三复杂度阈值,则不对所述当前编码块的量化参数进行调整,所述第二复杂度阈值小于所述第三复杂度阈值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述视觉复杂度信息等于第四复杂度阈值,则减小所述当前编码块的量化参数;或,若所述视觉复杂度信息大于第五复杂度阈值,且所述编码复杂度信息大于第六复杂度阈值,则增大所述当前编码块的量化参数,所述第四复杂度阈值小于所述第五复杂度阈值;或,若所述视觉复杂度信息小于第七复杂度阈值,且所述编码复杂度信息小于第八复杂度阈值,则减小所述当前编码块的量化参数,所述第四复杂度阈值大于所述第七复杂度阈值,所述第五复杂度阈值大于所述第七复杂度阈值,所述第六复杂度阈值大于所述第八复杂度阈值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述当前编码块处于预设指定位置,则减小或增大所述当前编码块的量化参数;或,若所述当前编码块处于预设指定位置,则不对所述当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于确定当前编码块中目标样本的测度值;根据所述测度值对所述当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据所述当前编码块周边已重建样本计算所述当前编码块中目标样本的测度值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据所述目标样本的预测模式确定所述当前编码块中目标样本对应的已重建样本位置;根据所述已重建样本位置确定所述当前编码块中目标样本的测度值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于对所述当前编码块进行子块划分,根据子块划分结果将所述当前编码块划分为多个样本,属于同一个子块的样本的测度值相同。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于将对应的测度值小于第一测度阈值的样本的量化参数减小第一梯度调整值;或,将对应的测度值大于第二测度阈值的样本的量化参数增大第二梯度调整值;或,对对应的测度值大于第一测度阈值,且小于第二测度阈值的样本的量化参数不进行调整,所述第二测度阈值大于所述第一测度阈值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若目标样本对应的测度值均小于第三测度阈值,则不对所述当前编码块的量化参数进行调整;或,若目标样本对应的测度值均大于第四测度阈值,则不对所述当前编码块的量化参数进行调整,所述第四测度阈值大于所述第三测度阈值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据测度值及所述视觉复杂度信息和/或所述编码复杂度信息对所述当前编码块的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述视觉复杂度信息处于第一视觉复杂度区间,则将对应的测度值大于第五测度阈值的样本的量化参数增大或减小第一子块调整值;或,若所述编码复杂度信息处于第一编码复杂度区间,则根据第二子块调整值对对应的测度值小于第六测度阈值的样本的量化参数进行调整;或,若所述编码复杂度信息处于第二编码复杂度区间,且所述视觉复杂度信息处于第二视觉复杂度区间,则根据第三子块调整值对对应的测度值小于第七测度阈值的样本的量化参数进行调整。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于若所述当前编码块处于预设指定位置,且所述视觉复杂度信息小于预设视觉复杂度阈值,则将所述当前编码块的量化参数减小第一调整值;或,若所述当前编码块处于预设指定位置,且所述编码复杂度信息小于预设编码复杂度阈值,则将所述当前编码块的量化参数减小第二调整值;或,若所述当前编码块处于预设指定位置,所述视觉复杂度信息小于预设视觉复杂度阈值,且所述编码复杂度信息小于预设编码复杂度阈值,则将所述当前编码块的量化参数减小第三调整值;或,若所述当前编码块不处于预设指定位置,所述视觉复杂度信息小于预设视觉复杂度阈值,且所述编码复杂度信息小于预设编码复杂度阈值,则将所述当前编码块的量化参数减小第四调整值。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于对所述当前编码块中所有区域的量化参数均进行调整;或,对所述当前编码块中预设区域的量化参数进行调整;或,对所述当前编码块中所有区域的量化参数均不进行调整。
在本申请的一种可能的实施方式中,所述参数阈值、所述复杂度阈值、所述预设指定位置、所述测度阈值中的至少一个为预设值,或从高层语法中读取的值,所述高层语法包括序列级、图像级或片级。
在本申请的一种可能的实施方式中,所述参数调整模块30,还用于根据调整后的量化参数更新码控参数,所述码控参数用于计算编码块的量化参数。
应当理解的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本申请对此不做限制。
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本申请的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。
另外,未在本实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的量化参数调整方法,此处不再赘述。
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (22)

  1. 一种量化参数调整方法,其中,所述量化参数调整方法包括以下步骤:
    确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
    根据所述编码复杂度信息确定所述当前编码块的量化参数;
    对所述当前编码块的量化参数进行调整。
  2. 如权利要求1所述的量化参数调整方法,其中,所述对所述当前编码块的量化参数进行调整,包括:
    根据参数阈值对所述当前编码块的量化参数进行调整。
  3. 如权利要求2所述的量化参数调整方法,其中,所述根据参数阈值对所述当前编码块的量化参数进行调整,包括:
    若所述量化参数小于第一参数阈值或大于第二参数阈值,则不对所述当前编码块的量化参数进行调整。
  4. 如权利要求1所述的量化参数调整方法,其中,所述对所述当前编码块的量化参数进行调整,包括:
    根据所述编码复杂度信息、以及复杂度阈值对所述当前编码块的量化参数进行调整。
  5. 如权利要求1所述的量化参数调整方法,其中,所述对所述当前编码块的量化参数进行调整,包括:
    确定当前编码块中目标样本的测度值;
    根据所述测度值对所述当前编码块的量化参数进行调整。
  6. 如权利要求1-5任一项所述的量化参数调整方法,其中,所述对所述当前编码块的量化参数进行调整,包括:
    对所述当前编码块中所有区域的量化参数均不进行调整。
  7. 如权利要求2-5任一项所述的量化参数调整方法,其中,所述参数阈值、所述复杂度阈值中的至少一个为预设值,或从高层语法中读取的值,所述高层语法包括图像级。
  8. 一种量化参数调整方法,其中,所述量化参数调整方法包括以下步骤:
    确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
    根据所述编码复杂度信息确定所述当前编码块的量化参数;
    确定当前编码块中目标样本的测度值;
    根据所述测度值对所述当前编码块的量化参数进行调整。
  9. 如权利要求8所述的量化参数调整方法,其中,所述确定当前编码块中目标样本的测度的步骤,包括:
    根据所述当前编码块周边已重建样本计算所述当前编码块中目标样本的测度值。
  10. 如权利要求9所述的量化参数调整方法,其中,所述根据所述当前编码块周边已重建样本计算所述当前编码块中目标样本的测度值的步骤,包括:
    根据所述目标样本的预测模式确定所述当前编码块中目标样本对应的已重建样本位置;
    根据所述已重建样本位置确定所述当前编码块中目标样本的测度值。
  11. 如权利要求8所述的量化参数调整方法,其中,所述确定当前编码块中目标样本的测度的步骤之前,还包括:
    对所述当前编码块进行子块划分,根据子块划分结果将所述当前编码块划分为多个样本,属于同一个子块的样本的测度值相同。
  12. 如权利要求8所述的量化参数调整方法,其中,所述根据所述测度值对所述当前编码块的量化参数进行调整,包括:
    将对应的测度值小于第一测度阈值的样本的量化参数减小第一梯度调整值。
  13. 如权利要求8所述的量化参数调整方法,其中,所述根据所述测度值对所述当前编码块的量化参数进行调整,包括:
    根据测度值及所述编码复杂度信息对所述当前编码块的量化参数进行调整。
  14. 如权利要求13所述的量化参数调整方法,其中,所述根据测度值及所述编码复杂度信息对所述当前编码块的量化参数进行调整,包括:
    若所述编码复杂度信息处于第一编码复杂度区间,则根据第二子块调整值对对应的测度值小于第六测度阈值的样本的量化参数进行调整。
  15. 如权利要求8-14任一项所述的量化参数调整方法,其中,所述根据所述测度值对所述当前编 码块的量化参数进行调整,包括:
    根据局部指示信息确定所述当前编码块中的待调整区域;
    根据所述测度值对所述当前编码块中待调整区域的量化参数进行调整。
  16. 如权利要求9-14任一项所述的量化参数调整方法,其中,所述测度阈值为预设值,或从高层语法中读取的值,所述高层语法包括图像级。
  17. 一种量化参数调整装置,其中,所述量化参数调整装置包括:
    信息获取模块,用于确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
    参数确定模块,用于根据所述编码复杂度信息确定所述当前编码块的量化参数;
    参数调整模块,用于对当前编码块的量化参数进行调整。
  18. 一种量化参数调整装置,其中,所述量化参数调整装置包括:
    信息获取模块,用于确定当前编码块对应的编码复杂度信息,所述当前编码块为当前进行编码处理的图像编码块;
    参数确定模块,用于根据所述编码复杂度信息确定所述当前编码块的量化参数;
    参数调整模块,用于确定当前编码块中目标样本的测度值;根据所述测度值对所述当前编码块的量化参数进行调整。
  19. 一种量化参数调整设备,其中,所述量化参数调整设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的量化参数调整程序,所述量化参数调整程序配置为实现如权利要求1至16中任一项所述的量化参数调整方法。
  20. 一种编码设备,其中,所述编码设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的编码程序,所述编码程序配置为实现如权利要求1至16中任一项所述的量化参数调整方法。
  21. 一种解码设备,其中,所述解码设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行的解码程序,所述解码程序配置为实现如权利要求1至16中任一项所述的量化参数调整方法。
  22. 一种存储介质,其中,所述存储介质上存储有量化参数调整程序,所述量化参数调整程序被处理器执行时实现如权利要求1至16任一项所述的量化参数调整方法。
PCT/CN2023/141199 2022-12-30 2023-12-22 量化参数调整方法、装置、设备及存储介质 Ceased WO2024140500A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP23910426.8A EP4645855A4 (en) 2022-12-30 2023-12-22 METHOD, APPARATUS AND DEVICE FOR ADJUSTING QUANTIFICATION PARAMETERS, AND STORAGE MECHANISM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211741038.5A CN116095320B (zh) 2022-12-30 2022-12-30 量化参数调整方法、装置、设备及存储介质
CN202211741038.5 2022-12-30

Publications (1)

Publication Number Publication Date
WO2024140500A1 true WO2024140500A1 (zh) 2024-07-04

Family

ID=86201981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/141199 Ceased WO2024140500A1 (zh) 2022-12-30 2023-12-22 量化参数调整方法、装置、设备及存储介质

Country Status (4)

Country Link
EP (1) EP4645855A4 (zh)
CN (2) CN116095320B (zh)
TW (1) TW202537275A (zh)
WO (1) WO2024140500A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095320B (zh) * 2022-12-30 2025-06-24 杭州海康威视数字技术股份有限公司 量化参数调整方法、装置、设备及存储介质
CN116668692A (zh) * 2023-05-11 2023-08-29 北京百度网讯科技有限公司 视频编码方法、装置、设备以及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174210A (zh) * 2018-02-09 2018-06-15 杭州雄迈集成电路技术有限公司 一种适用于视频压缩的自适应宏块级码率控制系统及控制方法
US20190373284A1 (en) * 2017-06-28 2019-12-05 Tencent Technology (Shenzhen) Company Limited Coding resolution control method and terminal
CN111988611A (zh) * 2020-07-24 2020-11-24 北京达佳互联信息技术有限公司 量化偏移信息的确定方法、图像编码方法、装置及电子设备
CN113784126A (zh) * 2021-09-17 2021-12-10 Oppo广东移动通信有限公司 图像编码方法、装置、设备及存储介质
WO2022012183A1 (zh) * 2020-07-17 2022-01-20 Oppo广东移动通信有限公司 一种编码方法、编码器及计算机可读存储介质
CN116095320A (zh) * 2022-12-30 2023-05-09 杭州海康威视数字技术股份有限公司 量化参数调整方法、装置、设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2719178B1 (en) * 2011-06-10 2022-02-16 Citrix Systems, Inc. Macroblock-level adaptive quantization in quality-aware video optimization
US9883180B2 (en) * 2012-10-03 2018-01-30 Avago Technologies General Ip (Singapore) Pte. Ltd. Bounded rate near-lossless and lossless image compression
US10284849B2 (en) * 2015-04-13 2019-05-07 Qualcomm Incorporated Quantization parameter (QP) calculation for display stream compression (DSC) based on complexity measure
KR102714094B1 (ko) * 2016-02-11 2024-10-08 삼성전자주식회사 비디오 부호화 방법 및 장치, 비디오 복호화 방법 및 장치
CN110324622B (zh) * 2018-03-28 2022-09-23 腾讯科技(深圳)有限公司 一种视频编码码率控制方法、装置、设备及存储介质
CN115174907B (zh) * 2022-06-17 2025-05-02 北京大学 视频压缩码率控制的方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190373284A1 (en) * 2017-06-28 2019-12-05 Tencent Technology (Shenzhen) Company Limited Coding resolution control method and terminal
CN108174210A (zh) * 2018-02-09 2018-06-15 杭州雄迈集成电路技术有限公司 一种适用于视频压缩的自适应宏块级码率控制系统及控制方法
WO2022012183A1 (zh) * 2020-07-17 2022-01-20 Oppo广东移动通信有限公司 一种编码方法、编码器及计算机可读存储介质
CN111988611A (zh) * 2020-07-24 2020-11-24 北京达佳互联信息技术有限公司 量化偏移信息的确定方法、图像编码方法、装置及电子设备
CN113784126A (zh) * 2021-09-17 2021-12-10 Oppo广东移动通信有限公司 图像编码方法、装置、设备及存储介质
CN116095320A (zh) * 2022-12-30 2023-05-09 杭州海康威视数字技术股份有限公司 量化参数调整方法、装置、设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4645855A4 *

Also Published As

Publication number Publication date
CN116095320B (zh) 2025-06-24
CN117255199B (zh) 2025-06-24
CN116095320A (zh) 2023-05-09
TW202537275A (zh) 2025-09-16
TW202429885A (zh) 2024-07-16
CN117255199A (zh) 2023-12-19
EP4645855A1 (en) 2025-11-05
EP4645855A4 (en) 2026-04-15

Similar Documents

Publication Publication Date Title
US12231640B2 (en) Video decoding method, video encoding method, and related apparatuses
CN105635735B (zh) 感知图像和视频编码
US11025909B2 (en) Method and apparatus for video coding
US11595677B2 (en) Method and apparatus for video coding
US11805277B2 (en) Reducing context models for entropy coding of transform coefficients
WO2024140500A1 (zh) 量化参数调整方法、装置、设备及存储介质
WO2011080925A1 (ja) 画像符号化装置および方法
CN115104308A (zh) 视频编解码的方法和装置
CN115088260A (zh) 视频编解码方法和装置
CN115769575B (zh) 视频解码的方法、计算机装置、设备及存储介质
EP3552395B1 (en) Motion compensation techniques for video
CN119815115A (zh) 视频编码方法及装置、生成比特流的方法、电子设备、存储介质及程序产品
TWI913627B (zh) 量化參數調整方法、裝置、設備及儲存介質
KR20250103731A (ko) 외삽 필터-기반 인트라 예측 모드의 변환 선택을 위한 시스템들 및 방법들
US20200007894A1 (en) Method, apparatus and medium for decoding or encoding
JP7483029B2 (ja) ビデオ復号方法、ビデオ符号化方法、装置、媒体、及び電子機器
TWI897174B (zh) 圖像重建方法、裝置、設備及存儲介質
HK40091940A (zh) 量化参数调整方法、装置、设备及存储介质
HK40091940B (zh) 量化参数调整方法、装置、设备及存储介质
CN116982262A (zh) 视频编码中依赖性量化的状态转换
US20240357128A1 (en) Systems and methods for adaptive extrapolation filter based intra prediction mode
HK40104418A (zh) 图像重建方法、装置、设备及存储介质
JP2019075678A (ja) 画像符号化装置、画像復号装置、画像符号化プログラム、及び画像復号プログラム
CN119402641A (zh) 视频编码方法及装置、比特流生成方法、电子设备、存储介质及程序产品
CN119767005A (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: 23910426

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023910426

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2023910426

Country of ref document: EP

Effective date: 20250730

ENP Entry into the national phase

Ref document number: 2023910426

Country of ref document: EP

Effective date: 20250730

WWP Wipo information: published in national office

Ref document number: 2023910426

Country of ref document: EP