Video coding deblocking filtering method and device, equipment, storage medium and product
By dynamically updating the boundary strength and filtering intensity of video encoding, the problem that the fixed threshold cannot adapt to changes in video content and network bandwidth is solved, and the deblocking filtering effect and user experience of video encoding are improved.
Patent Information
- Application Number
- CN202510777986.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-08-05
AI Technical Summary
In the existing video encoding technology, fixed judgment thresholds cannot adapt to the dynamic changes in video content complexity and network bandwidth, resulting in poor deblocking filtering, especially in real-time communication scenarios, block effect problems are difficult to effectively solve.
By determining the distortion statistics of the current coded frame, dynamically update the boundary intensity judgment offset and filter intensity judgment offset, adjust the initial judgment threshold as the target judgment threshold, to adapt to changes in network bandwidth and video content complexity, and perform deblocking filtering.
It improves the deblocking filtering effect of video encoding, adapts to the dynamic changes in network bandwidth and video content complexity, reduces the block effect, and improves user viewing experience.
Smart Images

Figure CN120434408A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video coding technology, and in particular to video coding deblocking filtering methods, devices, equipment, storage media and products. Background Art
[0002] With the advancement of internet and computer technologies, video applications are growing rapidly. Instant video calls have become a core feature of social networking, remote conferencing, and online education. However, in complex and volatile mobile network scenarios, video quality degradation caused by bandwidth fluctuations has become increasingly prominent. For example, blocking artifacts between encoding blocks can cause discontinuous artifacts, severely impacting the user experience.
[0003] Blocking artifacts in video coding are typically removed through filtering techniques. This involves filtering inter-block pixels within the coding loop to smooth inter-block distortion. The decision to switch on and off the filter and the selection of filter strength, which are crucial for filtering effectiveness, rely on the boundary strength threshold (Beta) and the filter strength threshold (Tc). These thresholds are mapped to a quantization parameter (QP) mapping table. These thresholds are relatively fixed and cannot adapt to dynamic changes in video content complexity, resulting in poor deblocking filtering effectiveness in video coding. Summary of the Invention
[0004] The embodiments of the present application provide a video coding deblocking filtering method, apparatus, device, storage medium and product to solve the technical problem in related technologies that a fixed judgment threshold cannot be combined with the dynamic changes in the complexity of video content, resulting in poor deblocking filtering effect in video coding. The judgment threshold can be dynamically updated in combination with the complexity of video content, effectively improving the deblocking filtering effect of video coding.
[0005] In a first aspect, an embodiment of the present application provides a video coding deblocking filtering method, comprising: Determining distortion statistics of a current coded frame, where the distortion statistics are distortion levels of skip modes of historical coded frames relative to an optimal mode; determining a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information; Determining an initial boundary strength judgment threshold and an initial filter strength judgment threshold of the current coding frame, and updating the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain a target boundary strength judgment threshold, and updating the initial filter strength judgment threshold according to the filter strength judgment offset to obtain a target filter strength judgment threshold; Deblocking filtering is performed on the current coding frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
[0006] In a second aspect, an embodiment of the present application provides a video coding deblocking filtering device, including a distortion statistics module, an offset determination module, a threshold update module, and a filtering processing module, wherein: The distortion statistics module is configured to determine distortion statistics information of a current coded frame, wherein the distortion statistics information is a degree of distortion of a skip mode of a historical coded frame relative to an optimal mode; The offset determination module is configured to determine a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information; The threshold updating module is configured to determine an initial boundary strength judgment threshold and an initial filter strength judgment threshold of the current coding frame, and update the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain a target boundary strength judgment threshold, and update the initial filter strength judgment threshold according to the filter strength judgment offset to obtain a target filter strength judgment threshold; The filtering processing module is configured to perform deblocking filtering on the current coding frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
[0007] In a third aspect, an embodiment of the present application provides a video coding deblocking filtering device, comprising: a memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the video coding deblocking filtering method as described in the first aspect.
[0008] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the video coding deblocking filtering method as described in the first aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the video coding deblocking filtering method as described in the first aspect.
[0010] The embodiment of the present application determines the boundary strength judgment offset and the filter strength judgment offset of the current coding frame according to the distortion statistical information of the current coding frame, determines the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame, updates the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, updates the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and performs deblocking filtering on the current coding frame according to the target boundary strength judgment threshold and the target filter strength judgment threshold, wherein the distortion statistical information can be reflected in the current In the case of dynamic changes in current network bandwidth and video content complexity, the distortion degree of the skip mode relative to the optimal mode is determined, and the distortion statistical information is used to determine the boundary strength judgment offset and the filter strength judgment offset of the current coding frame. The boundary strength judgment offset and the filter strength judgment offset are used to update the boundary strength judgment threshold and the filter strength judgment threshold respectively, so that the boundary strength judgment threshold and the filter strength judgment threshold can adapt to the dynamic changes in network bandwidth and video content complexity. The deblocking filter of video coding is more adaptable to the dynamic changes in network bandwidth and video content complexity, and the deblocking filter effect of video coding is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a flow chart of a video coding deblocking filtering method provided by an embodiment of the present application; Figure 2 This is a flowchart of another video coding deblocking filtering method provided by an embodiment of the present application; Figure 3 This is a structural diagram of a video coding deblocking filtering device provided by an embodiment of the present application; Figure 4 This is a structural diagram of a video coding deblocking filtering device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0012] To further clarify the objectives, technical solutions, and advantages of this application, specific embodiments of the present application are described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are intended only to illustrate this application and are not intended to limit it. It should also be noted that, for ease of description, the drawings only illustrate portions relevant to this application, not all of them. Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict the various operations (or steps) as sequential processes, many of the operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The processes described above may terminate upon completion, but may also include additional steps not shown in the accompanying drawings. These processes may correspond to methods, functions, procedures, subroutines, subprograms, and the like.
[0013] The video coding deblocking filtering method provided in this application can be applied to video coding deblocking filtering in instant video call scenarios (such as video conferencing, online education, live video, etc.), and aims to update the boundary strength judgment threshold and the filtering strength judgment threshold according to the distortion statistics of the skip mode, and use the distortion statistics of the skip mode to reflect the dynamic changes of network bandwidth and video content complexity, so as to dynamically update the judgment threshold in combination with network bandwidth and video content complexity, thereby effectively improving the deblocking filtering effect of video coding.
[0014] The basic process of a common deblocking filter consists of four steps: determining the filter boundary, calculating the boundary strength (BS), deciding whether to filter on or off and selecting the filter strength, and then performing the filtering. The filter on / off decision and filter strength selection process determine whether filtering is required for the current block and the filter strength to be applied, directly impacting the subjective effect of the deblocking filter. The basic concept behind this filter on / off decision stems from the masking effect of the human eye. The human eye is more sensitive to block artifacts in flat areas of a video and tends to overlook coding distortion in complex areas. Therefore, the filter on / off decision process determines the texture level of the boundary area by pixel variations at the boundary within the block. Greater texture indicates less flatness. When the texture level exceeds a boundary strength threshold, it is considered natural texture, not a coding artifact, and filtering is no longer required. The boundary strength threshold is a decision threshold derived from a fitted mapping of the quantization parameters on both sides of the boundary. The filter strength selection follows the principle that higher flatness and more dramatic variations at the boundary correspond to stronger filtering. First, the smoothness of the boundary is determined by texture intensity. Then, the severity of the boundary change is determined by the pixel change rate on both sides of the boundary. This assessment can be achieved using a boundary strength threshold. Furthermore, it is necessary to consider that coding distortion must be within a certain range. If it exceeds this range, the boundary change is considered to be natural texture rather than coding distortion. This range can be constrained by a filter strength threshold. Similar to the boundary strength threshold, the filter strength threshold is derived by fitting the block-level quantization parameters on both sides of the boundary. As can be seen, the filter on / off decision and filter strength selection, which are crucial for filtering effectiveness, are heavily dependent on the settings of the filter strength threshold and the boundary strength threshold. Both thresholds are derived from the quantization parameter. The quantization parameter can reflect bitrate fluctuations to a certain extent, but it cannot be completely consistent. For example, when encoding static content, the encoder can control the bitrate by adding or removing skip mode blocks. However, skip mode blocks do not have residual coefficients, so quantization parameters have no effect on the threshold. Furthermore, when encoding dynamic content at low bandwidth, the significant reduction of high-frequency coefficients leads to an overall smoothing effect, similarly leading the encoder to rely on skip mode blocks for compression rate adjustment. Skip mode blocks, by discarding the residual and directly copying the reference block, can help reduce video bitrates, but they can also cause video blocking artifacts. However, since the bitrate has already been effectively reduced, there's no further increase in the quantization parameter, which prevents the deblocking filter from making timely threshold adjustments, making it impossible to effectively address the blocking artifacts.
[0015] It can be seen that the related art method of mapping the output filter strength judgment threshold and the boundary strength judgment threshold based on fixed quantization parameters has the limitation of inaccurate threshold values when the content is complex and changeable and the bandwidth fluctuates violently. Especially in instant messaging scenarios, it is difficult to effectively solve the blocking effect problem of video encoding. Based on this, a video coding deblocking filtering method according to an embodiment of the present application is provided to solve the technical problem that the fixed judgment threshold in the existing video coding deblocking filtering cannot be combined with the dynamic changes in the complexity of the video content, resulting in poor deblocking filtering effect of video encoding.
[0016] Figure 1 A flowchart of a video coding deblocking filtering method provided in an embodiment of the present application is given. The video coding deblocking filtering method provided in an embodiment of the present application can be performed by a video coding deblocking filtering device, which can be implemented by hardware and / or software and integrated into a video coding deblocking filtering device.
[0017] The following description is made by taking a video coding deblocking filtering device performing a video coding deblocking filtering method as an example. Figure 1 , the video coding deblocking filtering method includes: S110: Determine distortion statistics of the current coded frame, where the distortion statistics are distortion levels of skip modes of historical coded frames relative to an optimal mode.
[0018] Taking the scenario of a video call between the transmitter and the receiver as an example, the transmitter starts the video call and captures the video image. After the captured image undergoes pre-processing steps such as cropping, scaling, and video analysis to obtain a coded frame, the coded frame is sent to the encoder for video encoding processing. The video encoding deblocking filtering method provided in this application can be executed in the post-processing step of the encoding loop of the transmitter. The compressed code stream generated after encoding will be used for network transmission and decoded and played by the receiver. At the same time, the receiver will also complete similar acquisition, pre-processing, encoding, and transmission work, forming a two-end instant call link with the transmitter.
[0019] Taking the deblocking filtering method of the H.265 / HEVC standard as an example, the deblocking filter processes the block boundary of size 8x8, and the luminance plane must meet the boundary of the prediction unit or the transform unit. The size of the prediction unit and the transform unit can be 32x32, 16x16, etc. The boundaries of the luminance prediction unit and the transform unit are further filtered, wherein the chrominance plane is only filtered when there are intra-frame coding blocks on both sides of the boundary, and the boundary range of the filter can be determined accordingly. For the boundary where filtering may occur, the boundary strength can be determined based on the non-zero transform coefficients, reference frames, motion vectors and other features of the blocks on both sides of the boundary and the boundary strength calculation method. When the boundary strength is 0, deblocking filtering is not required, and the video coding deblocking filtering method provided by this application can be skipped for subsequent processing. When the video coding deblocking filtering method is non-zero, the video coding deblocking filtering method provided by this application is executed to perform deblocking filtering on the current coded frame according to the updated target boundary strength judgment threshold and target filter strength judgment threshold.
[0020] In one embodiment, during the encoding process of a coded frame, based on the frame partitioning decision and the coding mode (e.g., inter-frame prediction mode, intra-frame prediction mode, etc.), the coding cost (e.g., rate-distortion cost RD-cost) of each coding block (CU) and the coding cost of skip mode blocks (Skip blocks) in the coded frame are calculated. Frame distortion information for the corresponding coded frame is then determined based on the coding cost of the CU and the coding cost of the skip mode blocks. During the coding analysis phase, coding modes are traversed according to the inter mode and intra prediction modes (e.g., Intra mode, such as Intra2Nx2N), and the coding mode with the lowest coding cost is selected as the optimal mode. Inter modes may include Skip mode and other inter prediction modes (e.g., Inter2Nx2N, etc.). Frame distortion information can be determined during the block-level analysis phase of video coding. Distortion caused by skip mode blocks is estimated and calculated during this phase to facilitate subsequent distortion analysis and assist in decision-making.
[0021] Exemplarily, the distortion statistics of the current coded frame are determined. The distortion statistics can be used to reflect the degree of distortion of skip mode encoding of historical coded frames relative to optimal mode encoding under the current network bandwidth and video content complexity. Since the frame distortion information of the current coded frame has not been fully calculated, the distortion statistics of the current coded frame can be determined based on the frame distortion information corresponding to historical coded frames that were already encoded before the current coded frame, that is, the current distortion statistics are estimated using the historical frame distortion statistics. Optionally, the degree of distortion can be represented by the difference between the rate-distortion cost of optimal mode encoding and the rate-distortion cost of skip mode encoding of the historical coded frame.
[0022] Optionally, the frame distortion information corresponding to the previous historical coding frame can be used as the distortion statistical information of the current coding frame, or the average frame distortion information corresponding to multiple historical coding frames (for example, window smoothing is performed on multiple distortion statistical information) can be used as the distortion statistical information of the current coding frame.
[0023] S120: Determine a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information.
[0024] Exemplarily, a boundary strength judgment offset and a filter strength judgment offset for the current coded frame are determined based on the distortion statistics determined above. The boundary strength judgment offset and the filter strength judgment offset provided in this application are used to update the boundary strength judgment threshold and the filter strength judgment threshold, respectively, so that the updated target boundary strength judgment threshold and the target filter strength judgment threshold adapt to dynamic changes in network bandwidth and video content complexity. The boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistics.
[0025] For example, in scenarios where the video's blocking effect is severe and the video's deblocking filter range and strength need to be improved, the boundary strength judgment offset and the filter strength judgment offset can be limited to a positive range. The more severe the video's blocking effect, the greater the degree of distortion of the skip mode relative to the optimal mode, and the larger the value corresponding to the distortion statistics. In this case, a larger boundary strength judgment offset and filter strength judgment offset are required to adjust the boundary strength judgment threshold and the filter strength judgment threshold to a larger value, thereby further improving the video's deblocking filter range and strength and reducing the video's blocking effect. In this case, the boundary strength judgment offset and the filter strength judgment offset are positive values and are positively correlated with the distortion statistics, i.e., the larger the distortion statistics, the larger the corresponding values of the boundary strength judgment offset and the filter strength judgment offset.
[0026] In scenarios where data transmission bandwidth is sufficient but device computing power is limited (e.g., due to weak hardware performance), reducing the deblocking filter range and strength of the video is necessary, the boundary strength judgment offset and filter strength judgment offset can be limited to non-positive values (i.e., less than or equal to 0). Specifically, as the distortion level of the skip mode increases relative to the optimal mode, values closer to 0 are needed to reduce the impact on the boundary strength judgment threshold and filter strength judgment threshold, thereby ensuring deblocking filtering effectiveness. Furthermore, as the distortion level of the skip mode decreases relative to the optimal mode, smaller values are needed to reduce the boundary strength judgment threshold and filter strength judgment threshold, thereby further reducing the deblocking filter range and strength of the video and reducing deblocking filter computing power. In this case, the boundary strength judgment offset and filter strength judgment offset are less than or equal to 0 and are positively correlated with the distortion statistics. That is, the larger the distortion statistics, the larger the corresponding boundary strength judgment offset and filter strength judgment offset.
[0027] Optionally, a boundary strength judgment offset and a filter strength judgment offset may be calculated based on the distortion statistical information based on a preset calculation formula. The preset calculation formula may be obtained by fitting pre-collected distortion statistical information and the corresponding boundary strength judgment offset and filter strength judgment offset. Optionally, the boundary strength judgment offset and filter strength judgment offset corresponding to the current distortion statistical information may also be determined based on a preset correspondence (e.g., recorded in a table) between the distortion statistical information, the boundary strength judgment offset, and the filter strength judgment offset.
[0028] In one embodiment, in a first preset application scenario (such as an instant communication scenario with a poor network), the blocking effect of the video is serious. In order to improve the range and strength of the deblocking filter, the boundary strength judgment offset and the filter strength judgment offset can be limited to a positive range, and the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information, that is, the larger the distortion statistical information, the larger the boundary strength judgment offset and the filter strength judgment offset and the positive value. In the scenario where the distortion degree of the skip coding mode is high, the judgment threshold is increased, and the deblocking filter is enhanced to improve the range and strength of the deblocking filter.
[0029] In one embodiment, in a second preset application scenario (for example, a scenario with sufficient bandwidth but limited computing power), in order to reduce the computing power consumption of block filtering, the boundary strength judgment offset and the filter strength judgment offset can be limited to a non-positive range, and the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information, that is, the larger the distortion statistical information, the larger the boundary strength judgment offset and the filter strength judgment offset and are less than or equal to 0. In scenarios with better image quality, the judgment threshold is lowered and the deblocking filter is weakened to reduce the computing power consumption of the deblocking filter.
[0030] S130: Determine the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame, and update the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and update the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold.
[0031] For example, an initial boundary strength determination threshold and an initial filter strength determination threshold for the current coding frame are determined, wherein the initial boundary strength determination threshold and the initial filter strength determination threshold can be determined based on the maximum or average quantization parameter of blocks on both sides of the boundary, and a quantization parameter mapping table. The quantization parameter mapping table can be used to record the mapping relationship between the quantization parameter and the boundary strength determination threshold and the filter strength determination threshold.
[0032] In one embodiment, when determining the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame, the initial boundary strength judgment threshold can be updated using the above-determined boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold can be updated using the above-determined filter strength judgment offset to obtain the target filter strength judgment threshold.
[0033] S140: performing deblocking filtering on the current coding frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
[0034] For example, after obtaining the target boundary strength judgment threshold and the target filter strength judgment threshold, the target boundary strength judgment threshold and the target filter strength judgment threshold can be used to perform deblocking filtering on the current coded frame to obtain the deblocking filtering result corresponding to the current coded frame. For example, the current coded frame can be subjected to adaptive deblocking filtering based on the target boundary strength judgment threshold and the target filter strength judgment threshold to determine the boundary and filter strength of the current coded frame, and the current coded frame can be filtered based on the boundary and filter strength, that is, the current coded frame is subjected to strong luminance boundary filtering, weak filtering, and chrominance boundary filtering. The reconstructed frame obtained after filtering can reduce the block effect in the subjective dimension and improve the encoding quality in the objective dimension, and can effectively reduce the block artifacts of the video playback at the receiving end and improve the stability of the image quality. The reconstructed frame can be stored in a reference queue for reference of subsequent frames to be encoded.
[0035] Among them, the target boundary strength judgment threshold can be used to determine whether to enable filtering processing (for example, check whether the pixel gradient on both sides of the boundary in the current coding frame exceeds the target boundary strength judgment threshold. If it exceeds the target boundary strength judgment threshold, filtering processing is triggered. It can also be determined whether strong filtering or weak filtering is used based on the value of the target boundary strength judgment threshold). The target filter strength judgment threshold can be used to determine the filtering strength (for example, the larger the value of the target filter strength judgment threshold, the stronger the filtering (modifying more pixels and adjusting the amplitude).
[0036] In the above, the boundary strength judgment offset and the filter strength judgment offset of the current coding frame are determined according to the distortion statistics of the current coding frame, the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame are determined, and the initial boundary strength judgment threshold is updated according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and the deblocking filtering process is performed on the current coding frame according to the target boundary strength judgment threshold and the target filter strength judgment threshold, wherein the distortion statistics can be reflected in the current In the case of dynamic changes in network bandwidth and video content complexity, the distortion degree of the skip mode relative to the optimal mode is determined by using distortion statistics information to determine the boundary strength judgment offset and filter strength judgment offset of the current coding frame, and the boundary strength judgment offset and filter strength judgment offset are used to update the boundary strength judgment threshold and filter strength judgment threshold respectively. This can make the boundary strength judgment threshold and filter strength judgment threshold adapt to the dynamic changes in network bandwidth and video content complexity, and the deblocking filter of video coding can better adapt to the dynamic changes in network bandwidth and video content complexity, effectively improving the deblocking filter effect of video coding.
[0037] Based on the above embodiments, Figure 2A flowchart of another video coding deblocking filtering method provided by an embodiment of the present application is given. The video coding deblocking filtering method is a specific embodiment of the above-mentioned video coding deblocking filtering method. Figure 2 , the video coding deblocking filtering method includes: S210: Determine distortion statistics of the current coded frame, where the distortion statistics are distortion levels of skip modes of historical coded frames relative to an optimal mode.
[0038] In one possible embodiment, the video coding deblocking filtering method provided by the present application determines distortion statistics of a current coded frame, including: S211: Determine frame distortion information of a preset number of historically coded frames, where the frame distortion information is a degree of distortion of the skip mode of the historically coded frames relative to the optimal mode.
[0039] S212: Perform a smoothing operation on the frame distortion information, and determine the smoothing operation result as the distortion statistics information of the current coded frame.
[0040] Exemplarily, frame distortion information for a preset number of historically coded frames is obtained, where the preset number may be 48, 24, 12, or the like. Each piece of frame distortion information can be used to reflect the degree of distortion resulting from skip mode encoding of the historically coded frame relative to optimal mode encoding of the historically coded frame. Optionally, the degree of distortion can be determined by the difference between the rate-distortion cost corresponding to the optimal mode and the rate-distortion cost corresponding to skip mode encoding. A smoothing operation is performed on the preset number of frame distortion information determined above to obtain a smoothing result (e.g., calculating an average of the preset number of frame distortion information and using the average as the smoothing result). The smoothing result is then determined as the distortion statistics for the current coded frame.
[0041] For example, a sliding window is used to summarize and analyze a preset number of frame distortion information. Assuming that the encoding frame rate of the video is 24 frames per second, the length of the sliding window is set to 2 times the frame rate, that is, the length of the sliding window is 48 frames. When the accumulated frame distortion information in the sliding window reaches a preset number, the accumulated frame distortion information in the sliding window can be smoothed. Optionally, the accumulated frame distortion information can be smoothed based on the following formula:
[0042] in, avg_loss It is the distortion statistics of the current coding frame, reflecting the distortion amplitude introduced by skipping coding blocks in the historical coding frame. It can be used as a measure of the intensity of the blocking effect of the current coding frame. frame_loss is the frame distortion information, frame_numberThe present application performs a smoothing operation on the frame distortion information of a preset number of historically coded frames and determines the smoothing operation result as the distortion statistics of the current coded frame. This can effectively eliminate the influence of fluctuations in the frame distortion information of a single historically coded frame on the distortion statistics of the current coded frame, more accurately determine the distortion statistics of the current coded frame, and improve the quality of video coding deblocking filtering.
[0043] S220: Determine a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information.
[0044] In one possible embodiment, the video coding deblocking filtering method provided in the present application determines a boundary strength judgment offset and a filtering strength judgment offset of a current coding frame based on distortion statistical information, including: S221: When the video coding deblocking filtering method is applied to a first preset application scenario (e.g., an instant messaging scenario with a poor network), a boundary strength judgment offset and a filtering strength judgment offset of the current coding frame are determined according to the following formula to improve the deblocking filtering range and strength:
[0045]
[0046] S222: When the video coding deblocking filtering method is applied to a second preset application scenario (e.g., a scenario with sufficient bandwidth but limited computing power), a boundary strength judgment offset and a filter strength judgment offset of the current coding frame are determined according to the following formulas, so as to reduce computing power consumption by reducing the filtering range and strength:
[0047]
[0048] in, beta_ofst Determine the offset for boundary strength, tc_ofst To determine the offset of the filter strength, avg_ loose is the distortion statistics, T1 is the first adjustment coefficient, and the value range of the first adjustment coefficient can be [1000, 10000), T2 is the second adjustment coefficient, and the value range of the second adjustment coefficient can be [1000, 10000), b1 is the third adjustment coefficient, and the value range of the third adjustment coefficient can be [1 / 8, 1 / 2), b2 is the fourth adjustment coefficient, and the value range of the fourth adjustment coefficient can be [1 / 8, 1 / 2), A1is the fifth adjustment coefficient, and the value range of the fifth adjustment coefficient can be [-1, 1]. A2 is the sixth adjustment coefficient, and the value range of the sixth adjustment coefficient may be [-1, 1]. The present application adapts to the video coding deblocking filtering requirements in different application scenarios and improves the user's video viewing experience by limiting the boundary strength judgment offset and the filter strength judgment offset to a positive range when the video coding deblocking filtering is applied in a first preset application scenario, and limiting the boundary strength judgment offset and the filter strength judgment offset to a non-positive range when the video coding deblocking filtering is applied in a second preset application scenario.
[0049] S230: Determine the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame, and update the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and update the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold.
[0050] In one possible embodiment, the video coding deblocking filtering method provided by the present application updates the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and updates the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold. This can be achieved by adding the boundary strength judgment offset to the initial boundary strength judgment threshold to obtain the target boundary strength judgment threshold, and by adding the filter strength judgment offset to the initial filter strength judgment threshold to obtain the target filter strength judgment threshold. Optionally, the judgment threshold can be updated based on the following formula:
[0051]
[0052] in, Beta is the target boundary strength judgment threshold, Beta' is the initial boundary strength judgment threshold, Tc is the target filter strength judgment threshold, Tc′ is the initial filter strength judgment threshold, beta_ofst Determine the offset for boundary strength, tc_ maybe Determine the offset for filter strength.
[0053] This application updates the initial judgment threshold by adding the offset to the corresponding initial judgment threshold to obtain the target judgment threshold. In this way, in an instant communication scenario with a poor network, the boundary strength judgment threshold and the filter strength judgment threshold are increased to improve the deblocking filtering range and strength. In a scenario with sufficient bandwidth but limited computing power, the boundary strength judgment threshold and the filter strength judgment threshold are lowered to reduce the computing power consumption of video coding deblocking filtering and improve video coding efficiency.
[0054] In one possible embodiment, the video coding deblocking filtering method provided by the present application may further constrain the boundary strength judgment offset and the filter strength judgment offset according to a preset offset value range after determining the boundary strength judgment offset and the filter strength judgment offset of the current coding frame based on the distortion statistical information. Accordingly, the initial boundary strength judgment threshold is updated according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset to obtain the target filter strength judgment threshold, including: updating the initial boundary strength judgment threshold according to the boundary strength judgment offset after the constraint processing to obtain the target boundary strength judgment threshold, and updating the initial filter strength judgment threshold according to the filter strength judgment offset after the constraint processing to obtain the target filter strength judgment threshold.
[0055] For example, when the video coding deblocking filter method is applied to the first preset application scenario, the boundary strength judgment offset and the filter strength judgment offset can be restricted to a positive range to increase the deblocking filter range and strength, thereby improving the deblocking filter effect. Based on this, the boundary strength judgment offset and the filter strength judgment offset are constrained according to the preset offset value range, which can be determined by the following formula:
[0056]
[0057] in, beta_ofst Determine the offset for boundary strength, tc_ofst To determine the offset of the filter strength, max _ maybe The maximum value of the preset offset value range. a The minimum value of the preset offset range, for example a=0 For example, a≤beta_ofst≤ max _ofst hour, beta_ofst Remain unchanged, beta_ofst Less than a hour, beta_ofst Updated to a The corresponding value in beta_ofst Greater than max _ofst hour, beta_ofstUpdate to max _ofst The corresponding value, tc_ofst Same thing.
[0058] When the video coding deblocking filter method is applied to the second preset application scenario, the boundary strength judgment offset and the filter strength judgment offset can be limited to a non-positive range to weaken the deblocking filter and reduce the computing power consumption of the deblocking filter. Based on this, the boundary strength judgment offset and the filter strength judgment offset are constrained according to the preset offset value range, which can be determined by the following formula:
[0059]
[0060] in, beta_ofst Determine the offset for boundary strength, tc_ofst To determine the offset of the filter strength, -max _ maybe The minimum value of the preset offset range. a The maximum value of the preset offset value range, for example a=0 For example, in -max _ofst≤beta_ofst≤a hour, beta_ofst Remain unchanged, beta_ofst less than -max _ofst hour, beta_ofst Updated to -max _ofst The corresponding value in beta_ofst Greater than a hour, beta_ofst Updated to a The corresponding value, tc_ofst Same thing.
[0061] This application constrains the boundary strength judgment offset and the filter strength judgment offset within a preset offset value range to adapt to the video encoding deblocking filtering requirements in different application scenarios and improve the user's video viewing experience.
[0062] S240: Perform deblocking filtering on the current coded frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
[0063] S250: Count the distortion statistics block and skip mode block in the current coding frame, where the distortion statistics block is a coding block that has undergone skip mode analysis but has not hit the skip mode, and the ratio of the rate-distortion cost of the skip mode to the rate-distortion cost of the optimal mode is within a preset multiple range.
[0064] S260: Determine frame distortion information of the current coded frame according to the distortion statistics block and the skip mode block.
[0065] Exemplarily, during the encoding process of the current coding frame, the coding modes corresponding to the coding blocks under different partitioning sizes and partitioning mode prediction analyses are recorded. After completing the deblocking filtering process or the encoding process of the current coding frame, the distortion statistics block and the skip mode block in the current coding frame are counted. The distortion statistics block is a coding block that has undergone skip mode analysis but has not hit the skip mode (i.e., the optimal mode is not skip mode), and the ratio of the rate-distortion cost of the skip mode to the rate-distortion cost of the optimal mode is within a preset multiple interval. Optionally, the preset multiple interval can be [1, k], where k is greater than 1. For example, k can be 1.1-1.8. Assuming that k is 1.5, the preset multiple interval is [1, 1.5]. The coding blocks that meet the above conditions are used as the distortion statistics blocks. The skip mode block is a coding block for which the optimal mode is determined to be skip mode after the coding mode prediction analysis.
[0066] Since the rate-distortion cost of the skip mode is close to the rate-distortion cost of the optimal mode, it means that the distortion of the skip mode at this time is close to the block distortion of directly selecting the skip mode, based on which the frame distortion information of the current coded frame can be indirectly evaluated.
[0067] It's important to explain that, according to the principle of the fast encoding algorithm, if the cost of skip mode (rate-distortion cost) is sufficiently small, skip mode can be directly selected, eliminating the calculation process for other intra-frame and inter-frame modes. However, skip mode distortion is also introduced into the coded frame. Due to the lack of calculation of other possible optimal modes, it is impossible to directly evaluate the distortion amplitude introduced by skip mode. This application uses coding blocks whose rate-distortion cost of the optimal mode is close to that of skip mode as distortion statistics blocks to evaluate the potential distortion caused by skip mode and accurately assess the frame distortion information of the current coded frame.
[0068] In one embodiment, after counting the distortion statistics block and skip mode block in the current coding frame, the frame distortion information of the current coding frame is determined based on the distortion statistics block and the skip mode block of the current coding frame. For example, the distortion level of a single skip mode block is estimated based on the difference between the rate-distortion cost of the distortion statistics block and the rate-distortion cost of the skip mode corresponding to the distortion statistics block, and the frame distortion information of the current coding frame is estimated based on the product of the number of distortion statistics blocks and the distortion level of a single skip mode block. After determining the frame distortion information of the current coding frame, the frame distortion information of the current coding frame can be recorded (for example, the frame distortion information of the current coding frame is added to the sliding window used to determine the distortion statistics information) for use in the video coding deblocking filtering process of subsequent coding frames. The present application improves the accuracy of the subsequent determination of the distortion statistics information and the video coding deblocking filtering effect by accurately estimating the frame distortion information of the current coding frame based on the distortion statistics block and the skip mode block in the current coding frame.
[0069] In one possible embodiment, the video coding deblocking filtering method provided by the present application determines frame distortion information of the current coded frame based on the distortion statistics block and the skip mode block, including: S261: Determine the optimal mode cost and the skip mode coding cost of the distortion statistics block, and determine the difference between the optimal mode cost and the skip mode coding cost as the statistical block distortion estimate of the distortion statistics block.
[0070] S262: Determine an average distortion estimate based on the statistical block distortion estimate and the number of distortion statistical blocks, and determine the product of the average distortion estimate and the number of skip mode blocks as frame distortion information of the current coded frame.
[0071] Exemplarily, the optimal mode cost and skip mode coding cost of the distortion statistics block are determined, and the difference between the optimal mode cost and the skip mode coding cost is calculated. The difference is determined as the statistical block distortion estimate of the distortion statistics block, and the number of distortion statistics blocks is counted. Optionally, the statistical block distortion estimate provided in this application can be determined according to the following formula:
[0072]
[0073] in, blk_loss is the statistical block distortion estimation, best_cost is the optimal mode cost, shipping_cost Encoding cost for skip mode, blk_num is the number of distortion statistics blocks.
[0074] In one embodiment, an average distortion estimate is determined based on the statistical block distortion estimate and the number of distortion statistics blocks determined above. Specifically, the ratio of the statistical block distortion estimate to the number of distortion statistics blocks is used as the average distortion estimate. The product of the average distortion estimate and the number of skip mode blocks (i.e., the number of coding blocks whose optimal mode is skip mode) is calculated, and the product is determined as the frame distortion information of the current coded frame. Alternatively, the frame distortion information provided herein can be determined according to the following formula:
[0075] in, frame_loss is the frame distortion information, skip_num The present application determines a statistical block distortion estimate of a distortion statistics block based on the difference between the optimal mode cost and the skip mode coding cost, determines an average distortion estimate based on the statistical block distortion estimate and the number of distortion statistics blocks, and determines the product of the average distortion estimate and the number of skip mode blocks as the frame distortion information of the current coding frame. This accurately estimates the frame distortion information of the current coding frame, improves the accuracy of subsequent determination of the distortion statistics information, and improves the deblocking filtering effect of video coding.
[0076] In the above, the boundary strength judgment offset and the filter strength judgment offset of the current coding frame are determined according to the distortion statistics of the current coding frame, the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame are determined, and the initial boundary strength judgment threshold is updated according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and the deblocking filtering process is performed on the current coding frame according to the target boundary strength judgment threshold and the target filter strength judgment threshold, wherein the distortion statistics can be reflected in the current In the case of dynamic changes in network bandwidth and video content complexity, the degree of distortion of the skip mode relative to the optimal mode is determined using distortion statistics. The boundary strength judgment offset and filter strength judgment offset of the current coded frame are then used to update the boundary strength judgment threshold and filter strength judgment threshold, respectively. This allows the boundary strength judgment threshold and filter strength judgment threshold to adapt to the dynamic changes in network bandwidth and video content complexity, making the deblocking filter in video coding more adaptable to these dynamic changes, effectively improving the deblocking filter effect of video coding. Furthermore, the frame distortion information of the current coded frame is accurately estimated based on the distortion statistics block and the skip mode block in the current coded frame, improving the accuracy of the subsequent determination of distortion statistics and enhancing the deblocking filter effect of video coding. Through skip mode distortion estimation and historical distortion analysis, the system effectively measures the skip mode distortion introduced in coded frames, effectively reducing the blocking artifacts of video encoding. It also links skip mode distortion to the deblocking filter judgment threshold, dynamically adjusting the range and strength of the deblocking filter. This enables frame-level adaptive deblocking filtering, effectively improving both the subjective image quality and the objective encoding quality of video calls. Furthermore, in scenarios with high historical distortion, the judgment threshold can be dynamically raised to enhance deblocking filtering, while in scenarios with good historical quality, the judgment threshold can be dynamically lowered to weaken deblocking filtering. Within the standard framework, fine-grained control from the sequence level to the frame level is achieved, enabling efficient adaptation and real-time control for instant messaging scenarios. The system incorporates skip mode distortion characteristics into deblocking filter decision-making, addressing the insufficient responsiveness of deblocking filter quantization parameters in related technologies. Furthermore, it implements deblocking filter adaptation through positive and negative bidirectional assistance and real-time frame-level control, effectively improving video quality and enhancing the user video call experience.
[0077] Figure 3 This is a structural diagram of a video coding deblocking filtering device provided by an embodiment of the present application. Figure 3 The video coding deblocking filtering device includes a distortion statistics module 31, an offset determination module 32, a threshold updating module 33 and a filtering processing module 34.
[0078] Among them, the distortion statistics module 31 is configured to determine the distortion statistics information of the current coding frame, and the distortion statistics information is the distortion degree of the skip mode of the historical coding frame relative to the optimal mode; the offset determination module 32 is configured to determine the boundary strength judgment offset and the filter strength judgment offset of the current coding frame according to the distortion statistics information, and the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistics information; the threshold update module 33 is configured to determine the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame, and update the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and update the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold; the filtering processing module 34 is configured to perform deblocking filtering on the current coding frame according to the target boundary strength judgment threshold and the target filter strength judgment threshold.
[0079] In the above, the boundary strength judgment offset and the filter strength judgment offset of the current coding frame are determined according to the distortion statistics of the current coding frame, the initial boundary strength judgment threshold and the initial filter strength judgment threshold of the current coding frame are determined, and the initial boundary strength judgment threshold is updated according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and the deblocking filtering process is performed on the current coding frame according to the target boundary strength judgment threshold and the target filter strength judgment threshold, wherein the distortion statistics can be reflected in the current In the case of dynamic changes in network bandwidth and video content complexity, the distortion degree of the skip mode relative to the optimal mode is determined by using distortion statistics information to determine the boundary strength judgment offset and filter strength judgment offset of the current coding frame, and the boundary strength judgment offset and filter strength judgment offset are used to update the boundary strength judgment threshold and filter strength judgment threshold respectively. This can make the boundary strength judgment threshold and filter strength judgment threshold adapt to the dynamic changes in network bandwidth and video content complexity, and the deblocking filter of video coding can better adapt to the dynamic changes in network bandwidth and video content complexity, effectively improving the deblocking filter effect of video coding.
[0080] In one possible embodiment, the distortion statistics module 31 determines the distortion statistics information of the current coded frame and is configured as follows: Determining frame distortion information of a preset number of historical coding frames, where the frame distortion information is a degree of distortion of a skip mode of the historical coding frames relative to an optimal mode; A smoothing operation is performed on the frame distortion information, and a smoothing operation result is determined as the distortion statistics information of the current coded frame.
[0081] In a possible embodiment, the video coding deblocking filtering apparatus further includes a distortion recording module, and the distortion recording module is configured to: Counting the distortion statistics block and the skip mode block in the current coding frame, where the distortion statistics block is a coding block that has undergone skip mode analysis but has not hit the skip mode, and the ratio of the rate-distortion cost of the skip mode to the rate-distortion cost of the optimal mode is within a preset multiple range; Frame distortion information of a current coded frame is determined according to the distortion statistics block and the skip mode block.
[0082] In a possible embodiment, the distortion recording module determines the frame distortion information of the current coded frame according to the distortion statistics block and the skip mode block, and is configured as follows: Determining an optimal mode cost and a skip mode coding cost of the distortion statistics block, and determining a difference between the optimal mode cost and the skip mode coding cost as a statistical block distortion estimate of the distortion statistics block; An average distortion estimate is determined according to the statistical block distortion estimate and the number of distortion statistical blocks, and a product of the average distortion estimate and the number of skip mode blocks is determined as frame distortion information of the current coded frame.
[0083] In one possible embodiment, the offset determination module 32 determines the boundary strength determination offset and the filter strength determination offset of the current coding frame according to the distortion statistical information, and is configured as follows: When the video coding deblocking filtering method is applied to the first preset application scenario, the boundary strength judgment offset and the filtering strength judgment offset of the current coding frame are determined according to the following formula:
[0084]
[0085] When the video coding deblocking filtering method is applied to the second preset application scenario, the boundary strength judgment offset and the filtering strength judgment offset of the current coding frame are determined according to the following formula:
[0086]
[0087] in, beta_ofst Determine the offset for boundary strength, tc_ofst To determine the offset of the filter strength, avg_ loose is the distortion statistics, T1 is the first adjustment coefficient, T2 is the second adjustment coefficient, b1 is the third adjustment coefficient, b2 is the fourth adjustment coefficient, A1 is the fifth adjustment coefficient, A2 is the sixth adjustment coefficient.
[0088] In one possible embodiment, the threshold updating module 33 updates the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and updates the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and is configured as follows: Adding the boundary strength judgment offset to the initial boundary strength judgment threshold to obtain the target boundary strength judgment threshold; The target filter strength judgment threshold is obtained by adding the filter strength judgment offset to the initial filter strength judgment threshold.
[0089] In a possible embodiment, the video coding deblocking filtering apparatus further includes an offset constraint module, and the offset constraint module is configured to: Constraining the boundary strength judgment offset and the filter strength judgment offset according to a preset offset value range; Accordingly, the threshold updating module 33 updates the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and updates the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold, and is configured as follows: The initial boundary strength judgment threshold is updated according to the boundary strength judgment offset after constraint processing to obtain the target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset after constraint processing to obtain the target filter strength judgment threshold.
[0090] It is worth noting that in the embodiment of the above-mentioned video coding deblocking filtering device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0091] The embodiment of the present application further provides a video coding deblocking filtering device, which can integrate the video coding deblocking filtering apparatus provided in the embodiment of the present application. Figure 4 This is a schematic diagram of the structure of a video coding deblocking filtering device provided by an embodiment of the present application. Figure 4 The video coding deblocking filtering device includes an input device 43, an output device 44, a memory 42, and one or more processors 41. The memory 42 is used to store one or more programs. When the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the video coding deblocking filtering method provided in the above embodiments. The video coding deblocking filtering device, equipment, and computer provided above can be used to implement the video coding deblocking filtering method provided in any of the above embodiments, and have the corresponding functions and beneficial effects.
[0092] The embodiment of the present application also provides a non-volatile storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the video coding deblocking filtering method provided in the above embodiment when executed by a computer processor. Of course, the non-volatile storage medium that stores computer-executable instructions provided in the embodiment of the present application, its computer-executable instructions are not limited to the video coding deblocking filtering method provided above, and can also execute related operations in the video coding deblocking filtering method provided in any embodiment of the present application. The video coding deblocking filtering apparatus, device and storage medium provided in the above embodiment can execute the video coding deblocking filtering method provided in any embodiment of the present application. For technical details not described in detail in the above embodiment, please refer to the video coding deblocking filtering method provided in any embodiment of the present application.
[0093] Based on the above embodiments, the embodiments of the present application also provide a computer program product. The technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium and includes several instructions for enabling a computer device, a mobile terminal, or a processor therein to execute all or part of the steps of the video coding deblocking filtering method provided in each embodiment of the present application.
Claims
1. A video coding deblocking filtering method, characterized in that: include: Determining distortion statistics of a current coded frame, where the distortion statistics are distortion levels of skip modes of historical coded frames relative to an optimal mode; determining a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information; Determining an initial boundary strength judgment threshold and an initial filter strength judgment threshold of the current coding frame, and updating the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain a target boundary strength judgment threshold, and updating the initial filter strength judgment threshold according to the filter strength judgment offset to obtain a target filter strength judgment threshold; Deblocking filtering is performed on the current coding frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
2. The video coding deblocking filtering method according to claim 1, wherein: The determining of distortion statistics of the current coded frame includes: Determining frame distortion information of a preset number of historical coded frames, where the frame distortion information is a degree of distortion of a skip mode of the historical coded frames relative to an optimal mode; A smoothing operation is performed on the frame distortion information, and a smoothing operation result is determined as distortion statistics information of the current coded frame.
3. The video coding deblocking filtering method according to claim 1, wherein: After performing deblocking filtering on the current coded frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold, the method further includes: Counting a distortion statistics block and a skip mode block in the current coding frame, where the distortion statistics block is a coding block that has undergone skip mode analysis but has not hit the skip mode, and a ratio of a rate-distortion cost of the skip mode to a rate-distortion cost of an optimal mode is within a preset multiple interval; Frame distortion information of the current coded frame is determined according to the distortion statistics block and the skip mode block.
4. The video coding deblocking filtering method according to claim 3, wherein: The determining the frame distortion information of the current coded frame according to the distortion statistics block and the skip mode block includes: determining an optimal mode cost and a skip mode coding cost of the distortion statistics block, and determining a difference between the optimal mode cost and the skip mode coding cost as a statistical block distortion estimate of the distortion statistics block; An average distortion estimate is determined according to the statistical block distortion estimate and the number of the distortion statistical blocks, and a product of the average distortion estimate and the number of the skip mode blocks is determined as the frame distortion information of the current coded frame.
5. The video coding deblocking filtering method according to claim 1, wherein: The determining, according to the distortion statistical information, a boundary strength judgment offset and a filtering strength judgment offset of the current coding frame includes: When the video coding deblocking filtering method is applied to the first preset application scenario, the boundary strength judgment offset and the filtering strength judgment offset of the current coding frame are determined according to the following formula: When the video coding deblocking filtering method is applied to the second preset application scenario, the boundary strength judgment offset and the filtering strength judgment offset of the current coding frame are determined according to the following formula: in, beta_ofst Determine the offset for boundary strength, tc_ofst To determine the offset of the filter strength, avg_loss is the distortion statistics, T1 is the first adjustment coefficient, T2 is the second adjustment coefficient, b1 is the third adjustment coefficient, b2 is the fourth adjustment coefficient, A1 is the fifth adjustment coefficient, A2 is the sixth adjustment coefficient.
6. The video coding deblocking filtering method according to claim 1, wherein: The updating of the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain a target boundary strength judgment threshold, and the updating of the initial filter strength judgment threshold according to the filter strength judgment offset to obtain a target filter strength judgment threshold, include: Adding the boundary strength judgment offset to the initial boundary strength judgment threshold to obtain a target boundary strength judgment threshold; The target filter strength judgment threshold is obtained by adding the filter strength judgment offset to the initial filter strength judgment threshold.
7. The video coding deblocking filtering method according to claim 1, wherein: After determining the boundary strength judgment offset and the filtering strength judgment offset of the current coding frame according to the distortion statistical information, the method further includes: Performing constraint processing on the boundary strength judgment offset and the filter strength judgment offset according to a preset offset value range; Accordingly, the updating of the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain the target boundary strength judgment threshold, and the updating of the initial filter strength judgment threshold according to the filter strength judgment offset to obtain the target filter strength judgment threshold, include: The initial boundary strength judgment threshold is updated according to the boundary strength judgment offset after constraint processing to obtain a target boundary strength judgment threshold, and the initial filter strength judgment threshold is updated according to the filter strength judgment offset after constraint processing to obtain a target filter strength judgment threshold.
8. A video coding deblocking filtering device, characterized in that: It includes a distortion statistics module, an offset determination module, a threshold update module and a filter processing module, wherein: The distortion statistics module is configured to determine distortion statistics information of a current coded frame, wherein the distortion statistics information is a degree of distortion of a skip mode of a historical coded frame relative to an optimal mode; The offset determination module is configured to determine a boundary strength judgment offset and a filter strength judgment offset of the current coding frame according to the distortion statistical information, wherein the boundary strength judgment offset and the filter strength judgment offset are positively correlated with the distortion statistical information; The threshold updating module is configured to determine an initial boundary strength judgment threshold and an initial filter strength judgment threshold of the current coding frame, and update the initial boundary strength judgment threshold according to the boundary strength judgment offset to obtain a target boundary strength judgment threshold, and update the initial filter strength judgment threshold according to the filter strength judgment offset to obtain a target filter strength judgment threshold; The filtering processing module is configured to perform deblocking filtering on the current coding frame according to the target boundary strength judgment threshold and the target filtering strength judgment threshold.
9. A video coding deblocking filtering device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the video coding deblocking filtering method according to any one of claims 1 to 7.
10. A non-volatile storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the video coding deblocking filtering method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video coding deblocking filtering method according to any one of claims 1 to 7 is implemented.