LOOP FILTERING, VIDEO ENCODING, VIDEO DECODING METHOD, ELECTRONIC DEVICE AND MEDIUM

The loop filtering method addresses the issue of inconsistent filtering strength by categorizing pixels and adjusting intensity factors, resulting in improved image quality and reduced deviations.

JP2024537524AActive Publication Date: 2024-10-10ZTE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024526672
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-14
Filing Date
2022-12-12
Publication Date
2024-10-10
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

Existing image compression technologies face issues with in-loop filtering strength being too strong or too weak due to the lack of an original image reference, leading to significant deviations between reconstructed and original values, affecting filtering effectiveness.

Method used

A loop filtering method that involves pixel classification and intensity adjustment using multi-intensity factors, where pixels are categorized based on brightness, chromaticity, and area, and adjusted accordingly to minimize deviations.

Benefits of technology

This approach reduces the deviation between reconstructed and original images, enhancing image quality and filtering effectiveness by adapting intensity factors for different categories of pixels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024537524000001_ABST
    Figure 2024537524000001_ABST
Patent Text Reader

Abstract

This application proposes a loop filtering, video encoding, video decoding method, electronic device and medium, which includes obtaining a first reconstructed video unit processed by a loop filter, performing pixel classification on the first reconstructed video unit, determining corresponding intensity factors for each classification, and performing intensity adjustment on the first reconstructed video unit according to the intensity factors to obtain a second reconstructed video unit.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the technical field of image processing, such as loop filtering, video encoding, video decoding methods, electronic devices, and media. [Background technology]

[0002] In-loop filtering technology can improve image compression efficiency, improve image coding quality, and reduce decoding errors by using multi-layer image reconstruction. However, since the filtering model in the related technology is generally an offline network and there is no original image to refer to in actual use, there is a problem that the strength is too strong or too weak in the filtering process, and as a result, there is a large error between the reconstruction value and the original value, which affects the filtering effect. Summary of the Invention

[0003] The present application proposes a loop filtering, a video encoding, a video decoding method, an electronic device, and a medium.

[0004] The embodiment of the present application is Obtaining a first reconstructed video unit processed by a loop filter; performing pixel classification on the first reconstructed video unit; determining a corresponding intensity factor for each classification; performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor to obtain a second reconstructed video unit. A loop filtering method is proposed.

[0005] The embodiment of the present application is filtering the reconstructed image of the current image to obtain a first reconstructed image; filtering the first reconstructed image by a loop filtering method to obtain a second reconstructed image; and marking in a bitstream loop filtering control information of the loop filtering method based on the filtering process, the first reconstructed image includes a first reconstructed video unit, the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method described above. A video encoding method is further proposed.

[0006] The embodiment of the present application is obtaining a bitstream including an encoded video sequence and obtaining loop filtering control information associated with a loop filtering method; filtering the reconstructed image of the current image to obtain a first reconstructed image; and filtering the first reconstructed image through a loop filtering method based on the loop filtering control information to obtain a second reconstructed image, the first reconstructed image includes a first reconstructed video unit, the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method described above. A video decoding method is further proposed.

[0007] The embodiment of the present application is We further propose an electronic device comprising a memory, a processor and a computer program stored in the memory and operable on the processor, whereby when the processor executes the program, the above-mentioned loop filtering method or the video encoding method or the video decoding method is realized.

[0008] An embodiment of the present application further proposes a computer-readable storage medium, in which a computer program is stored, and when the program is executed by a processor, the above-mentioned loop filtering method or the video encoding method or the video decoding method is realized. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a schematic diagram of one loop filtering according to one embodiment. [Diagram 2] FIG. 2 is a flow diagram of one loop filtering method according to one embodiment. [Diagram 3] FIG. 1 is a schematic diagram of the operation of one multi-strength factor according to one embodiment. [Figure 4] 1 is a flow diagram of a video encoding method according to one embodiment. [Diagram 5] FIG. 2 is a schematic diagram of one encoding side framework according to one embodiment. [Figure 6] FIG. 2 is a schematic diagram of a video encoding process according to one embodiment. [Figure 7] FIG. 2 is a schematic diagram of a video encoding process according to one embodiment. [Figure 8] FIG. 2 is a schematic diagram of one ALF filtering according to one embodiment. [Figure 9] FIG. 11 is a schematic diagram of another video encoding process according to an embodiment. [Figure 10] FIG. 4 is a schematic diagram of a further video encoding process according to an embodiment; [Figure 11] FIG. 2 is a schematic diagram of another video encoding process according to an embodiment; [Figure 12] FIG. 2 is a schematic diagram of another video encoding process according to an embodiment; [Figure 13] FIG. 2 is a schematic diagram of another video encoding process according to an embodiment; [Figure 14] 1 is a flow diagram of a video decoding method according to one embodiment. [Figure 15] FIG. 2 is a schematic diagram of one decoding side framework according to one embodiment. [Figure 16] FIG. 2 is a structural schematic diagram of one loop filtering device according to an embodiment; [Figure 17] FIG. 1 is a structural schematic diagram of a video encoding device according to an embodiment. [Figure 18]FIG. 2 is a structural schematic diagram of a video decoding device according to an embodiment. [Figure 19] FIG. 2 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] In the compressed video of the new generation video coding standard H.266, also called Versatile Video Coding (VVC), there are distortion effects such as blocking effect, ringing effect, color deviation and image blur. In order to reduce the impact of these distortions on the video quality, the video frame can be filtered by in-loop filtering technology. FIG. 1 is a schematic diagram of one loop filtering according to an embodiment. As shown in FIG. 1, the input original image can be processed by Luma Mapping With Chroma Scaling (LMCS), Deblocking Filter (DBF), Sample Adaptive Offset (SAO) and / or Adaptive Loop Filter (ALF) to output a reconstructed image. Among them, LMCS can improve the compression efficiency by redistributing codewords to information within the dynamic range, DBF can be used to reduce the blocking effect, SAO can be used to improve the ringing effect, and ALF can reduce the decoding error.

[0011] In the embodiment of the present application, a filtering method based on Neural Networks (NN) may be adopted in the loop filtering process. The NN filtering may be added as a new module or step to the loop filtering, or may replace the DBF and SAO modules or steps, so as to save transmission overhead and ensure image quality, and the image performance may be further improved by ALF after the NN filtering.

[0012] In the embodiment of the present application, the image can be subjected to intensity adjustment during the loop filtering process, such as adjusting the luminance and / or chromaticity of pixels in a video frame. In addition, when there are too many pixel points in an image of a frame, fitting a straight line can only meet the intensity adjustment needs of some pixel points, which may lead to some adverse effects, such as needing to enhance a pixel point, but weakening the intensity of the pixel point based on the fitting result, so that more deviations between the reconstruction value and the original value are introduced in the intensity adjustment process, resulting in a reduction in image quality and an effect of filtering. In the embodiment of the present application, the intensity factors of different categories can be determined respectively according to pixel classification, and a flexible intensity adjustment method is proposed.

[0013] In the embodiment of the present application, a loop filtering method is proposed, which can be mainly applied to the encoding side or the decoding side, and the loop filtering method can perform filtering on the reconstructed image in the video in either the video encoding or decoding process. Figure 2 is a flow chart of a loop filtering method according to an embodiment, as shown in Figure 2, the method according to the embodiment includes:

[0014] In step 110, a first reconstructed video unit processed by the loop filter is obtained.

[0015] In this embodiment, the loop filter may refer to a model for performing filtering processing on the input image, and supports various filtering methods, such as NN, LMCS, DBF, SAO and / or ALF filtering. The video unit may be an image of one frame or multiple frames in a video, or may be one or multiple slices. The first reconstructed video unit is obtained after being processed by the loop filter.

[0016] In step 120, pixel classification is performed on the first reconstructed video unit.

[0017] In this embodiment, instead of adopting the same intensity factor to perform intensity adjustment for all pixels in the first reconstructed video unit, the first reconstructed video unit can be divided into multiple categories according to a set rule, for example, according to the luminance, chromaticity, area and / or loop filter type of the pixels in the first reconstructed video unit, and then intensity adjustment can be performed for different categories using corresponding intensity factors, so that all pixels in the first reconstructed video unit can obtain reasonable intensity adjustment and the filtering effect can be guaranteed.

[0018] In step 130, the corresponding intensity factors for each category are determined.

[0019] In this embodiment, the intensity factor (Scale) is the main variable for intensity adjustment of the luminance and / or chromaticity of a pixel, and different magnitudes of the intensity factor result in different adjustment widths. The corresponding intensity factors for each category may be the same or different. The corresponding intensity factors for each category can be calculated and obtained according to the difference between the pixel values ​​of the pixel points before and after the filtering process in the category. For example, a straight line is obtained by fitting according to the difference between the pixel values ​​of the pixel points before and after the filtering process in the category, and the intensity factor for the category is determined according to the slope of the straight line. Furthermore, fitting is performed for each category to obtain a corresponding straight line, so that the diversity of the intensity factors is increased, and flexible intensity adjustment for different categories can be realized. For example, on the decoding side, the corresponding intensity factors for each category can be obtained by analyzing the coded video data, rather than by calculation.

[0020] In step 140, an intensity adjustment is performed on the first reconstructed video unit according to the intensity factor to obtain a second reconstructed video unit.

[0021] In this embodiment, the intensity adjustment can be performed for different categories by corresponding intensity factors, and the operation of performing the intensity adjustment based on the pixel classification and the intensity factors of each category may be called a Multi-Scale Factors (MSF) operation, and the adjustment can be performed for each luminance and / or chrominance component of the pixel points in each category. The MSF filtering can be applied to the entire filtered image, or to one or more slices in the image, or to the luminance or chrominance components alone. The second reconstructed video unit after the intensity adjustment can be used as a reference and basis for subsequent encoding.

[0022] Fig. 3 is a schematic diagram of one multi-intensity factor operation according to an embodiment. As shown in Fig. 3, loop filter is NN filter, and a first video reconstruction unit is obtained after filtering by NN filter, and when performing pixel classification for the first video reconstruction unit, pixel classification can be performed according to chromaticity (including blue color difference component Cb and red color difference component Cr) and / or luminance component (Luma), where the number mark is for representing the class that each pixel belongs to, for example, the pixel with the number mark "1" belongs to the same class, and in Fig. 3, a total of four classes 1 to 4 are shown, and then, for each class, a corresponding intensity factor (Scale) is calculated, which are respectively represented as S1, S2, S3 and S4, and the intensity factor corresponding to each class is used to perform intensity adjustment for the pixel of the corresponding class, to obtain a second video reconstruction unit.

[0023] The loop filtering method of this embodiment can be understood as a multi-intensity factor filtering method based on pixel classification, and by performing intensity adjustment on the first reconstructed video unit according to the classification and then obtaining the second reconstructed video unit, the deviation between the reconstructed value and the original value in the second reconstructed video unit is smaller, it has less distortion, higher image quality, and better filtering effect.

[0024] In one embodiment, the loop filter includes a loop filter based on a neural network (i.e., an NN filter). In this embodiment, the NN filter is based on deep learning to analyze data and establish a mapping from the distorted image (or reconstructed image) to the original image, thereby improving image quality. The NN filter is generally an offline network, and there may be a problem that the intensity is too strong or too weak when actually used because there is no original image to refer to. Meanwhile, in this embodiment, the intensity of the pixel point can be flexibly controlled by classifying the pixels and introducing intensity factors for each category. For the NN filter, data of each term that needs to be input to the neural network, such as reconstructed image samples, quantization parameter (QP) information, coding unit (CU) division information, deblocking filtering information, predicted samples, etc., can be arranged, and these data can be input to the NN filter, and the first reconstructed video unit after NN filtering processing can be output.

[0025] In one embodiment, the reconstructed video unit includes a reconstructed image, or a slice, or a coding block, or a coding tree block, where the reconstructed video unit can be a first reconstructed video unit or a second reconstructed video unit.

[0026] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: performing an intensity adjustment on the luminance component of the first reconstructed video unit according to the intensity factor (as shown in FIG. 3 ); performing an intensity adjustment on a first chrominance component (e.g., Cb) of the first reconstructed video unit in response to an intensity factor; performing an intensity adjustment on a second chrominance component (eg, Cr) of the first reconstructed video unit in response to the intensity factor.

[0027] In one embodiment, determining the corresponding intensity factors for each category comprises: Step 131: integrating pixel points of the same category into the same coordinate map, the horizontal coordinate of each pixel point being the output of the pixel point after passing through the loop filter, and the vertical coordinate being the input of the pixel point before passing through the loop filter; Step 133 includes fitting the pixel points in the coordinate map based on the least squares method to obtain a straight line, and taking the slope of the straight line as the intensity factor corresponding to the corresponding classification.

[0028] In this embodiment, the intensity factor of each category can be obtained by calculation and applied to the encoding side. Take Fig. 3 as an example, perform pixel classification on the first reconstructed video unit after NN filtering, and for one of the categories, the output of the pixel point belonging to the category after NN filtering is taken as the abscissa, and the input before NN filtering is taken as the ordinate, so that the pixel points belonging to the same category in the first reconstructed video unit are put into the same coordinate map, and then use the least squares method to fit and obtain a straight line, the slope of which is the intensity factor corresponding to the category. As many categories as there are, the number of intensity factors can be obtained. By using the least squares method to fit the straight line, the reconstructed image after processing by the loop filter can be made close to the original image, so as to achieve the effect of self-adaptation between the filtering intensity and the original image.

[0029]

number

[0030] In one embodiment, determining the corresponding strength factors for each category includes determining the corresponding strength factors for each category by reading loop filtering control information associated with a loop filtering method.

[0031] In this embodiment, the strength factors of each category may be read from the loop filtering control information related to the loop filtering method by parsing the high-level syntax of the bitstream, and then applied on the decoding side.

[0032] In one embodiment, performing an intensity adjustment on the first reconstructed image in response to the intensity factor comprises: For each pixel point in each category, multiplying a difference between the output of the pixel point after passing through the loop filter and the input of the pixel point before passing through the loop filter by an intensity factor corresponding to the category, and adding the result of the multiplication to the input of the pixel point before passing through the loop filter to obtain an adjusted pixel value of the pixel point.

[0033]

number

[0034] In one embodiment, the pixel classification scheme is: performing pixel classification based on luminance components; performing pixel classification based on a first chromaticity component; performing pixel classification based on a second chromaticity component; performing pixel classification based on a block classification mode; performing pixel classification based on pixel point region; performing pixel classification based on a classification of a loop filter based on a neural network (NN filter); Performing pixel classification based on a classification mode used for deblocking filtering (DBF); performing pixel classification based on a classification mode used for pixel self-adaptive offset (SAO) filtering; and performing pixel classification using a neural network for pixel classification.

[0035] In this embodiment, pixel classification may be performed on the luminance component, or may be performed based on the ALF block classification mode. In addition, various classification methods may be supported by considering factors such as the chromaticity components of the image, pixel point regions, NN filtering, DBF filtering, and SAO filtering.

[0036] For example, when pixel classification is performed according to the directional factor and / or mobility factor of each pixel block based on the block classification mode of ALF, for example, there are 5 directional factors and 5 mobility factors, the first reconstructed video unit can be divided into 25 classes according to the two types of factors, the first reconstructed video unit can be divided into 5 classes according to the mobility factor, or the first reconstructed video unit can be divided into 5 classes according to the directional factor; For example, when performing pixel classification based on the luminance component area of ​​the pixel point, for example, the first reconstructed video unit is divided into eight areas, that is, into eight classes, and the number of coding units in each class is as equal as possible; For example, when performing pixel classification based on NN filters, for example, in the loop filtering process, different pixel blocks may select different NN filters, and classify each pixel block according to the NN filter used for each block; Also, for example, in the case of classification based on other filtering models, the first reconstructed video unit may be classified into different categories according to the classification mode used for, for example, DBF and / or SAO filtering; For example, pixel classification can be performed using a neural network, for example by training a neural network for pixel classification, whose input includes information such as pixel values ​​of the first reconstructed video unit, parameters of the loop filter, etc., and whose output is the result of pixel classification.

[0037] Also, classification may be performed according to chrominance components, for example, classification is performed according to the chrominance component area of ​​the pixel point, for example, the first reconstructed video unit is divided into eight areas, that is, into eight classes, and the number of coding units in each class is as equal as possible; Also, for example, classification is performed according to at least one chromaticity component of Cb and Cr, and pixel points having the same Cb and / or Cr are classified into one class; Also, for example, in combination with the pixel classification information of the luminance component, the first reconstructed video unit is divided into different classes according to the chrominance component.

[0038] In one embodiment, performing pixel classification based on a block classification mode includes: a step 1210 of obtaining a pixel block of a first reconstructed video unit; a step 1220 of calculating the Laplacian gradient of each pixel block and calculating a directionality factor and a mobility factor based on the Laplacian gradient; determining a classification of the pixel blocks depending on the orientation factor and / or the mobility factor, and determining a classification of all pixel points in the reconstructed video unit 1230.

[0039]

number

[0040]

number

[0041] In addition, if there are too many pixel classifications, it may lead to an increase in the bitstream transmission overhead of the video coding loop filtering, and for some classifications, the intensity adjustment operation may lead to a deterioration in coding performance rather than bringing performance gain. Therefore, the embodiments of the present application further propose several competitive strategy decision mechanisms and intensity adjustment opening and closing control strategies based on classification.

[0042] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: Step 1401, for each pixel point of each class, calculate the loss between the pixel after intensity adjustment and the original pixel by using the intensity factor corresponding to the class; Step 1403 includes adopting the intensity factors corresponding to some classes according to the losses corresponding to the pixel points of each class to perform intensity adjustment for the pixel points of the corresponding class.

[0043] In this embodiment, for a plurality of categories, the intensity adjustment can be further determined for pixel points of a category according to the distortion between the pixel after intensity adjustment and the original pixel, that is, the loss (Cost). After performing pixel classification for the first reconstructed video unit to determine the intensity factor of each category, the intensity adjustment is performed for pixel points of the corresponding category using each intensity factor, and the loss corresponding to the pixel points of each category is calculated. In this case, the category with the smallest loss can be selected to perform the intensity adjustment, but the intensity adjustment can not be performed for the category with the large loss. For example, for the category with the loss higher than the threshold, the corresponding intensity factor is used to perform the intensity adjustment for the pixel points of the corresponding category, and for example, the loss of each category is sorted in ascending order, and the corresponding intensity factor is used to perform the intensity adjustment for the pixel points of the corresponding category for the five categories with the smallest loss, thereby improving the flexibility of the intensity adjustment and the image quality.

[0044] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: Calculating 1411 a first loss between the image after intensity adjustment for each pixel point of each category and the original image using a single intensity factor; Calculating 1413 a second loss between the image after intensity adjustment for the pixel points of the corresponding class and the original image using the corresponding intensity factors for each class; The method includes a step 1415 of performing intensity adjustment on the first reconstructed video unit using a single intensity factor according to the first loss and the second loss, or performing intensity adjustment on pixel points of the corresponding classification using corresponding intensity factors for each classification, respectively.

[0045] In this embodiment, it can be selected to adopt a single intensity factor to perform intensity adjustment for each category, or adopt the corresponding intensity factor of each category to perform intensity adjustment for pixel points of corresponding category.For example, determine an intensity factor for the first reconstructed video unit, use this intensity factor to calculate the first loss between the image after intensity adjustment for the first reconstructed video unit and the original image, then perform pixel classification for the first reconstructed video unit to determine the intensity factor of each category, and use each intensity factor to perform intensity adjustment for pixel points of corresponding category, and then calculate the second loss between the image after adjustment for the first reconstructed video unit and the original image, compare the first loss with the second loss, and perform intensity adjustment according to the intensity adjustment method with small loss, so as to improve the flexibility of intensity adjustment and image quality.

[0046] In one embodiment, the single intensity factor is a value set based on statistical information, or the single intensity factor is determined according to the slope of a line obtained by fitting each pixel point in the first reconstructed video unit.

[0047] In this embodiment, the single intensity factor may be calculated and obtained for the first reconstructed video unit, for example, by placing all pixel points in the first reconstructed video unit in the same coordinate diagram, and fitting according to all pixel points to obtain a straight line, and the slope of the straight line is the single intensity factor, and the single intensity factor may be a preset intensity factor, for example, by setting one appropriate intensity factor based on statistical information.

[0048] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: Calculating 1421 a second loss between the video unit after intensity adjustment for the pixel points of the corresponding class and the original video unit using the corresponding intensity factors of each class; a step 1422 of fusing into one category those categories whose difference values ​​of corresponding intensity factors are within a set range; determining 1423 an intensity factor corresponding to each fused category; Calculating 1424 a third loss between the video unit after intensity adjustment and the original video unit for the pixel points of the corresponding fused class by using the intensity factors corresponding to each fused class respectively; and performing intensity adjustment on the pixel points of the corresponding classes using corresponding intensity factors for each class according to the second loss and the third loss, or performing intensity adjustment on the pixel points of the corresponding fused classes using intensity factors corresponding to each fused class according to the second loss and the third loss.

[0049] In this embodiment, the corresponding intensity factors of each class can be used to perform intensity adjustment on the pixel points of the corresponding class, or fusion can be performed on each class so as to reduce the classes, reduce the amount of calculation, and improve the efficiency and effect of intensity adjustment. For example, pixel classification is performed on the first reconstructed video unit to determine the intensity factors of each category, and then the intensity factors are used to perform intensity adjustment on the pixel points of the corresponding category, and the second loss is calculated, and then fusion is performed on each category. For example, when some intensity factors are close to each other (for example, the difference between the intensity factors does not exceed a specified range), these categories are fused into one category, and then the intensity factors of each fused category are calculated respectively (for example, the pixel points of each category to be fused into one category are placed on the same coordinate map, and the intensity factor of the fused category is obtained by fitting a straight line and calculating the slope). The intensity factors corresponding to each fused category are used to calculate the third loss after intensity adjustment on the pixel points of the corresponding fused category, and the second loss is compared with the third loss, and the intensity adjustment is performed according to an intensity adjustment method with a smaller loss, thereby improving the flexibility of intensity adjustment and image quality.

[0050] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: Step 1431, for each pixel point of each class, calculate the loss between the pixel after intensity adjustment and the original pixel by using the intensity factor corresponding to the class; In step 1432, the intensity adjustment indicator is used to indicate the on / off state of the corresponding intensity adjustment for each category according to the loss corresponding to each pixel point of the category; and step 1433 of performing intensity adjustment for pixel points of the corresponding category according to each intensity adjustment on / off indicator, using an intensity factor corresponding to the category for which the intensity adjustment is turned on.

[0051] In this embodiment, the intensity adjustment switch indicator (Flag) is set for each category, so that the intensity adjustment switch for each category can be controlled, thereby achieving the purpose of adjusting the intensity for a desired category.

[0052] For multiple categories, it can further determine which category of intensity adjustment is turned on and which category of intensity adjustment is turned off according to the distortion between the pixel after intensity adjustment and the original pixel, i.e., the loss (Cost). After performing pixel classification on the first reconstructed video unit to determine the intensity factor of each category, each intensity factor is used to perform intensity adjustment on the pixel points of the corresponding category, and the loss corresponding to the pixel points of each category is calculated. If the pixel points of one category have performance gain or deterioration after intensity adjustment, the intensity adjustment on / off indicator of the category can be set to 0, which indicates that the intensity adjustment is not performed for this category, and conversely, the intensity adjustment on / off indicator of the category can be set to 1, which indicates that the intensity adjustment is performed for this category. Then, the corresponding intensity factor is adopted to perform intensity adjustment for the category in which the intensity adjustment is turned on according to the intensity adjustment on / off indicator, thereby improving the flexibility of intensity adjustment and image quality.

[0053] In one embodiment, performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor includes: Calculating 1441 a first loss between the video unit after intensity adjustment for each pixel point of each category and the original video unit using a single intensity factor; Calculating 1443 a second loss between the video unit after intensity adjustment for the pixel points of the corresponding class and the original video unit using the corresponding intensity factors of each class; In step 1445, the intensity adjustment open / close indicator is used to indicate an open / close state of the intensity adjustment corresponding to a single intensity factor and an open / close state of the intensity adjustment corresponding to each category according to the first loss and the second loss; and step 1447, in response to each intensity adjustment on / off indicator, performing intensity adjustment for each category of pixel points using a single intensity factor, or performing intensity adjustment for the corresponding category of pixel points using an intensity factor corresponding to the category for which the intensity adjustment is turned on.

[0054] In this embodiment, an intensity adjustment on / off indicator (Flag) is set for each category, and the intensity adjustment on / off indicator is set for a single intensity factor, so that the mode of intensity adjustment can be controlled, and when intensity adjustment is performed for each category respectively, the intensity adjustment for each category can further be controlled to be on or off.

[0055] For example, determine a single intensity factor for the first reconstructed video unit, and determine the intensity factor of each category according to the result of pixel classification. For example, the first reconstructed video unit can be divided into N categories according to the mobility factor A in ALF, which corresponds to N intensity factors. If the single intensity factor is added, there are a total of N+1 intensity factors. Use the single intensity factor to perform intensity adjustment on the first reconstructed video unit, calculate a first loss, use the above-mentioned N intensity factors to perform intensity adjustment on the pixel points of corresponding categories, calculate a second loss compared with the original image after adjustment on the first reconstructed video unit, compare the first loss and the second loss, and for the intensity adjustment method with small loss, set its intensity adjustment on / off indicator to 1, which represents that the intensity adjustment is turned on, and for the intensity adjustment method with large loss, set its intensity adjustment on / off indicator to 0, which represents that the intensity adjustment is turned off. Wherein, when using N intensity factors to perform intensity adjustment on the pixel points of corresponding categories, the intensity adjustment on / off indicator can be set for each category according to whether the pixel points of each category have performance gain after intensity adjustment.

[0056] The loop filtering method of this embodiment proposes a competitive strategy decision mechanism based on classification (for example, competitive strategy decision for intensity adjustment between each category, competitive strategy decision for intensity adjustment between a single intensity factor and multiple intensity factors, competitive strategy decision for intensity adjustment of each category and intensity adjustment of a fusion category) and an intensity adjustment opening and closing control strategy, which enhances the flexibility of intensity adjustment, reduces the loss of intensity adjustment, reduces the loss of reconstructed video units, ensures the image quality of the reconstruction, and improves the loop filtering performance.

[0057] In an embodiment of the present application, a video coding method applicable to the coding side is further proposed, which can be realized based on a hybrid coding framework, for example the new generation video coding standard H.266 / VVC coding framework developed by the International Telecommunication Union Telecommunication Standards Branch ITU-T and the International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC) Joint Video Project, and includes modules such as intra-frame prediction, inter-frame prediction, transform, quantization, loop filtering and entropy coding.

[0058] It should be noted that the method according to the embodiment of the present application may be applied to the H.266 / VVC standard, an Audio Video coding Standard (e.g., AVS3), or a next-generation video encoding / decoding standard, and the embodiment of the present application is not limited thereto.

[0059] FIG 4 is a flow diagram of a video encoding method according to an embodiment. As shown in FIG 4, the method according to the embodiment includes: In step 210, filtering the reconstructed image of the current image to obtain a first reconstructed image; In step 220, filtering the first reconstructed image through a loop filtering method to obtain a second reconstructed image; In step 230, labeling loop filtering control information of the loop filtering method in a bitstream based on the filtering process; Wherein, the first reconstructed image includes a first reconstructed video unit, and the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method of any of the above embodiments. For example, performing a filtering process on the first reconstructed image by the loop filtering method to obtain the second reconstructed image mainly includes: A step 2301 of obtaining a first reconstructed video unit processed by a loop filter; a step 2303 of performing pixel classification on the first reconstructed video unit; determining 2305 a corresponding intensity factor for each category; and performing intensity adjustment on the first reconstructed video unit according to the intensity factors of each category in step 2307 to obtain a second reconstructed video unit.

[0060] 5 is a schematic diagram of an encoding side framework according to an embodiment. As shown in FIG. 5, the entire frame workflow of the encoding side is as follows:

[0061] (1) Dividing a current image of an input video into coding units; (2) sending the divided coding units to an intraframe prediction module for mainly removing spatial correlation of the image or an interframe prediction module for mainly removing temporal correlation of the image to perform predictive coding; (3) subtracting the obtained prediction value from the original block to obtain a residual value, and then performing a transform and quantization on the residual value to remove frequency domain correlations and perform a lossy compression on the data; (4) performing entropy coding on all the coding parameters and residual values ​​to form a binary stream for storage or transmission; the output data of the entropy coding module is the original video compressed bit stream; (5) Adding the residual value after inverse quantization and inverse transformation to the predicted value to obtain a block reconstruction value to form a reconstructed image, and the reconstructed image can be filtered (e.g., LMCS, DBF, SAO, ALF, and / or NN) to obtain a first reconstructed image; (6) The first reconstructed image is subjected to MSF filtering by a loop filter to obtain a second reconstructed image, which is stored in the image cache as a reference image.

[0062] (7) Perform video encoding using the second reconstructed image to obtain an encoded video sequence, and in the encoding process, mark loop filtering control information of a loop filtering method in a bitstream according to the above filtering process.

[0063] In an embodiment, in order to reduce the distortion between the reconstructed image and the original image, NN filter and MSF filtering are introduced in the loop filtering process, which can be added as a newly added step or module, or can replace DBF and SAO in the original filtering process, thus not only saving the transmission overhead but also improving the image quality.

[0064] The NN filter analyzes data based on deep learning, and establishes a mapping from the distorted image to the original image, thereby completing the improvement of image quality. In this embodiment, pixel classification is performed in the loop filtering process, and intensity factors are introduced for each category, and a competitive strategy decision mechanism based on the category and an intensity adjustment opening and closing control strategy are used to perform flexible intensity adjustment.

[0065] FIG. 6 is a schematic diagram of a video encoding process according to an embodiment. In this embodiment, for the first reconstructed image that has been subjected to NN filtering, MSF is applied to the hybrid coding framework of video coding. As shown in FIG. 6, MSF includes two parts: pixel classification and intensity adjustment based on multiple intensity factors. In the video encoding process, various filtering can be supported, for example, LMCS can be adopted to obtain a reconstructed image, and NN filtering can be performed on the reconstructed image to obtain a first reconstructed image, and then pixel classification can be performed based on the first reconstructed image (for example, in the block classification mode of ALF, the gradient and the directional factor and / or the mobility factor can be calculated to determine the class to which the pixel block belongs), and intensity adjustment can be performed according to the intensity factor of each class (this process can use a competitive strategy determination mechanism and an intensity adjustment opening and closing control strategy), to obtain a second reconstructed image.

[0066] The video coding method of the present embodiment performs loop filtering and intensity adjustment based on multiple intensity factors on the reconstructed image, so as to provide a high-quality reconstructed image for video coding, and to improve the quality of the coded video. Also, the loop filtering control information of the loop filtering method is marked in the bitstream, providing a basis for using the loop filtering method for decoding.

[0067] In one embodiment, after obtaining the second reconstructed image, a step 2310 of performing block classification on the second reconstructed image; The method further includes performing an adaptive loop filter (ALF) on each of the pixel points of each classification in the second reconstructed image.

[0068] FIG. 7 is a schematic diagram of a video encoding process according to an embodiment. This embodiment applies MSF to a hybrid coding framework for video coding. As shown in FIG. 7, MSF includes two parts: pixel classification and intensity adjustment based on multiple intensity factors. Various filtering is supported in the video encoding process, and FIG. 7 takes NN filtering and ALF filtering as an example for explanation. Before performing MSF filtering on the first reconstructed image in the first reconstructed image, NN filtering is further performed on the first reconstructed image. After obtaining the second reconstructed image, ALF filtering may be performed on the second reconstructed image to further improve filtering performance and image quality. Among them, pixel classification may refer to the block classification mode of ALF.

[0069] FIG. 8 is a schematic diagram of one ALF filtering according to an embodiment. As shown in FIG. 8, the process of ALF filtering mainly includes: (1) Block classification, for example, dividing the second reconstructed image into pixel blocks (or luminance blocks) of size 4×4; (2) obtaining a filter template; for the classification result in (1), a set of filtering coefficients corresponds to each category, and four filtering templates, such as no transformation, diagonal transformation, vertical flip, and rotation transformation, are corresponding to each category; and determining a filtering coefficient adjustment manner for each 4×4 pixel block; (3) determining one 7×7 filtering template for each 4×4 luminance block (including a transformation scheme), then performing a filtering process for each pixel in the 4×4 pixel block, and finally outputting a reconstructed image.

[0070] In one embodiment, after obtaining the second reconstructed image, The method further includes step 2320 of performing self-adaptive loop filtering on each classification pixel point in the second reconstructed image according to the classification result of the pixel classification.

[0071] FIG. 9 is a schematic diagram of another video encoding process according to an embodiment. As shown in FIG. 9, the intensity adjustment of the multi-intensity factors may be performed based on the block classification of ALF filtering, that is, pixel classification in MSF can be realized through the block classification mode of ALF filtering. The LMCS filtered reconstructed image can first be subjected to NN filtering, and then, according to the classification result of the block classification of ALF, the intensity adjustment of the multi-intensity factors can first be performed, and then the optimal filter usage scheme can be determined by selecting a filter template, and self-adaptive filtering can be performed. Then, the classification result can be fully utilized to perform intensity adjustment and self-adaptive filtering without the need for secondary classification, thereby improving the coding efficiency and reducing the coding complexity.

[0072] In one embodiment, before performing a filtering process on the first reconstructed image by the loop filtering method, a step 2210 of performing block classification on the first reconstructed image; The method further includes step 2213 of performing self-adaptive loop filtering on each classification pixel point in the first reconstructed image according to the classification result of the block classification.

[0073] FIG. 10 is a schematic diagram of another video encoding process according to an embodiment. Various filtering is supported in the video encoding process, and FIG. 10 takes NN filtering and ALF filtering as an example for explanation, and further includes performing NN filtering and ALF filtering on the first reconstructed image before performing MSF filtering on the first reconstructed image in the first reconstructed image, so as to further improve filtering performance and image quality. MSF includes two parts: pixel classification and intensity adjustment based on multiple intensity factors, of which pixel classification may refer to the block classification mode of ALF. In this embodiment, by placing the intensity adjustment of multiple intensity factors after ALF filtering, the gain obtained by intensity adjustment is not covered by ALF filtering, and the effectiveness of intensity adjustment is fully guaranteed, and the reconstructed image quality is improved.

[0074] In one embodiment, prior to determining the corresponding intensity factors for each category, The method further includes step 2304 of performing self-adaptive loop filtering on each classification pixel point in the first reconstructed image according to the classification result of pixel classification.

[0075] FIG. 11 is a schematic diagram of another video encoding process according to an embodiment. As shown in FIG. 11, the intensity adjustment of the multi-intensity factors can be performed based on the block classification of ALF filtering, that is, pixel classification in MSF can be realized through the block classification mode of ALF filtering. The LMCS filtered reconstructed image can first be NN filtered, and then according to the classification result of the block classification of ALF, a filter template can be first selected, an optimal filter usage scheme can be determined, and self-adaptive filtering can be performed, and then the intensity adjustment of the multi-intensity factors can be performed. In addition, the classification result can be fully utilized to perform self-adaptive filtering and intensity adjustment without the need for secondary classification, so as to improve the coding efficiency and reduce the coding complexity, and the gain obtained by the intensity adjustment is not covered by the ALF filtering, so that the effectiveness of the intensity adjustment is fully guaranteed, and the quality of the reconstructed image can be improved.

[0076] In one embodiment, before performing a filtering process on the first reconstructed image by a loop filtering method, The method further includes a step 2220 of performing DBF filtering on the reconstructed image; After obtaining the second reconstructed image, The step 2330 further includes performing SAO filtering on the second reconstructed image.

[0077] 12 is a schematic diagram of another video encoding process according to an embodiment. In this embodiment, when a loop filtering module such as DBF and / or SAO is turned on, MSF filtering may be added. As shown in FIG. 12, for example, when both DBF and SAO are turned on, NN filtering may be between DBF filtering and SAO filtering; (1) After obtaining the LMCS reconstructed image, first perform DBF filtering to obtain the first reconstructed image; (2) performing a neural network filtering operation to obtain a first reconstructed image processed by a loop filter; (3) performing MSF filtering on the first reconstructed image, the MSF filtering including two parts of pixel classification and multi-intensity factor intensity adjustment, in which the pixel classification can refer to the block classification mode of ALF; (4) SAO filtering is performed on the second reconstructed image after MSF filtering; (5) ALF filtering is performed on the second reconstructed image after SAO filtering, and the final reconstructed image is output.

[0078] In one embodiment, before performing a filtering process on the first reconstructed image by a loop filtering method, It further includes a step 2230 of performing DBF filtering and SAO filtering on the reconstructed image.

[0079] 13 is a schematic diagram of another video encoding process according to an embodiment. In this embodiment, the loop filter can adopt the filtering model in the related art, such as DBF and / or SAO, and can not adopt the NN filter. As shown in FIG. 13, take the example that both DBF and SAO are turned on: (1) After obtaining the LMCS reconstructed image, first perform DBF and SAO filtering to obtain the first reconstructed image processed by the loop filter; (2) performing MSF filtering on the first reconstructed image, the MSF filtering including two parts of pixel classification and multi-intensity factor intensity adjustment, in which the pixel classification can refer to the block classification mode of ALF; (3) ALF filtering is performed on the second reconstructed image after MSF filtering, and the final reconstructed image is output.

[0080] In the video encoding process of the above embodiment, the loop filtering method can be used in combination with other filtering, the filtering order can be flexibly set, and only primary classification can be performed or secondary classification can be performed, and the MSF filtering can adopt different classification methods and intensity factor competition strategies and opening and closing control, so as to provide a high-quality reconstructed image as a reference for video encoding, and ensure the quality of the encoded video.

[0081] In the embodiment of this application, a video decoding method is further proposed. The classification-based multi-intensity factor adjustment can also be applied to video decoding as a loop filtering method.

[0082] FIG. 14 is a flow diagram of a video decoding method according to an embodiment. As shown in FIG. 14, the method according to the embodiment includes: In step 310, a bitstream including an encoded video sequence is obtained, and loop filtering control information associated with a loop filtering method is obtained; In step 320, filtering the reconstructed image of the current image to obtain a first reconstructed image; In step 330, filtering the first reconstructed image through a loop filtering method according to the loop filtering control information to obtain a second reconstructed image.

[0083] Wherein, the first reconstructed image includes a first reconstructed video unit, and the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method of any of the above embodiments. For example, performing a filtering process on the first reconstructed image by the loop filtering method to obtain the second reconstructed image mainly includes: A step 3401 of obtaining a first reconstructed video unit processed by a loop filter; a step 3403 of performing pixel classification on the first reconstructed video unit; determining 3405 a corresponding intensity factor for each category; and performing intensity adjustment on the first reconstructed video unit according to the intensity factors of each category in a step 3407 to obtain a second reconstructed video unit.

[0084] Fig. 15 is a schematic diagram of a decoding side framework according to an embodiment. The decoding framework also includes modules or steps such as intraframe prediction, motion compensation, inverse transform, inverse quantization and context-based self-adaptive binary arithmetic coding, among which the content of intensity adjustment type, pixel classification method, intensity factor, etc. can be obtained by analyzing the high-level syntax of bitstream. As shown in Fig. 15, the entire frame workflow of the decoding side is as follows:

[0085] (1) performing header information decoding and context-based adaptive binary arithmetic coding (Context-based Adaptive Binary Arithmetic Coding) on ​​a bitstream of an encoded video sequence to obtain loop filtering control information related to a loop filtering method; (2) performing decoding on the bit stream of the coded video sequence to obtain a prediction value and a residual value, performing inverse transformation and inverse quantization on the residual value, and adding the residual value after inverse quantization and inverse transformation to the prediction value to obtain a block reconstruction value to form a reconstructed image, and performing intra-frame prediction or inter-frame prediction to remove spatial correlation or temporal correlation of the image; (3) performing a filtering process such as LMS, DBF, SAO, and / or ALF on the reconstructed image to obtain a first reconstructed image; (4) filtering the first reconstructed image according to the loop filtering control information through a loop filtering method, and obtaining a second reconstructed image after the first reconstructed image is filtered by the loop filter, and storing the second reconstructed image in an image cache as a reference; (5) Obtaining decoded video data using the second reconstructed image.

[0086] In this embodiment, in order to reduce the distortion between the reconstructed image and the original image, NN filter is introduced in the loop filtering process, which can be added as a new step or module, or can replace DBF and SAO in the original filtering process, thus not only saving the transmission overhead, but also improving the image quality. In addition, the loop filtering control information can be obtained by reading from the bitstream, providing a reliable basis for video decoding.

[0087] It should be noted that the video decoding method according to this embodiment is only one realization method of multi-intensity factor adjustment based on classification, and various preferred embodiments are further included in practical applications.

[0088] The video decoding method of the present embodiment performs loop filtering and intensity adjustment based on multiple intensity factors on the reconstructed image, so as to provide a high-quality reconstructed image for video decoding, and improve the quality of the encoded / decoded data.

[0089] In one embodiment, the loop filtering control information comprises: a sequence level filtering on / off indicator for the coded video sequence for indicating whether the loop filtering method is turned on or off for the video sequence in which the current picture is located; a filtering picture level indicator for indicating whether the loop filtering control information appears in the picture header information or in the slice header information; and loop filter structure information for instructing loop filtering to be performed on the video unit to which loop filtering is applied.

[0090] In this embodiment, in the bitstream of the coded video sequence, loop filtering control information related to MSF filtering can be represented by a high-level syntax, including information such as opening and closing MSF filtering, the number of pixel classification categories, and intensity factors, and the like. The decoder performs header information decoding on the input coded video sequence, and performs MSF filtering based on the obtained loop filtering control information.

[0091] The loop filtering control information includes a sequence level filtering on / off indicator, and it is possible to determine whether to turn on loop filtering for the current video sequence (whether to perform MSF filtering) depending on the sequence level filtering on / off indicator, and the sequence level filtering on / off indicator can be represented by a sequence parameter set (SPS).

[0092] Table 1 shows the syntax elements of the sequence-level filtering opening and closing indicators.

[0093] [Table 1]

[0094] The semantics of the syntax elements in Table 1 are as follows: TIFF2024537524000007.tif5170 When equal to 1, it indicates that loop filtering is turned on (MSF is turned on) for the current video sequence, and when equal to 0, it indicates that loop filtering is not turned on (MSF is turned on) for the current video sequence.

[0095] The loop filtering control information includes a filtering picture level indicator, and depending on the filtering picture level indicator, the MSF filtering level, i.e., the video unit to which the loop filtering control information is applied, can be determined, which may be applied to the reconstructed image or to one or more slices of the reconstructed image, and the filtering picture level indicator is expressed in a Picture Parameter Set (PPS).

[0096] Table 2 shows the syntax elements of the filtering image level indicators.

[0097] [Table 2]

[0098]

number

[0099]

number

[0100] Table 3 shows the syntax elements for image header information.

[0101] [Table 3]

[0102]

number

[0103]

number

[0104] Table 4 shows the syntax elements of the slice header information.

[0105] [Table 4]

[0106] In one embodiment, a video unit comprises an image or a video slice in a video.

[0107] In one embodiment, the loop filter structure information comprises: a video unit filtering on / off indicator for instructing the video unit to turn the loop filtering method on or off; a video unit component open / close indicator for indicating the video unit component to which loop filtering is applied; a video unit category number for indicating a total number of categories of the video unit pixel categories; a video unit category filtering on / off indicator for indicating whether to turn on or off the loop filtering method for each category in the video unit; a video unit intensity factor for indicating an intensity factor corresponding to a video unit or a classification in the video unit; Of these, the video unit components are: the luminance component of the video unit; a first chrominance component of a video unit; and the second chrominance component of the video unit.

[0108] In this embodiment, the loop filtering (or MSF filtering) opening / closing, number of categories, strength factors of each category, etc. of the current image or slice are obtained based on the loop filter structure information, and strength adjustment can be performed for each category based on this information.

[0109] Table 5 shows syntax elements that implement power adjustment for a single category based on loop filter structure information.

[0110] [Table 5]

[0111] The semantics of the syntax elements in Table 5 are as follows:

[0112]

number

[0113] Table 6 shows syntax elements that implement power adjustment for multiple categories based on loop filter structure information.

[0114] [Table 6]

[0115] The semantics of the syntax elements in Table 6 are as follows:

[0116]

number

[0117]

number

[0118]

number

[0119] Table 7 shows syntax elements for performing intensity adjustments on multiple categories of luma and chroma components, respectively, based on loop filter structure information.

[0120] [Table 7]

[0121] The semantics of the syntax elements in Table 7 are as follows:

[0122]

number

[0123]

number

[0124]

number

[0125]

number

[0126]

number

[0127]

number

[0128]

number

[0129]

number

[0130] Table 8 shows syntax elements for performing intensity adjustment for some categories of luma and chroma components based on loop filter structure information.

[0131] [Table 8]

[0132]

number

[0133]

number

[0134]

number

[0135]

number

[0136]

number

[0137]

number

[0138]

number

[0139]

number

[0140]

number

[0141]

number

[0142] In one embodiment, filtering a video unit to which loop filtering is applied according to a loop filtering method based on loop filtering control information includes: a step 3410 of identifying a video unit for which a loop filtering method is to be turned on in response to a video unit filtering open / close indicator; Step 3413 identifies the video unit components to which loop filtering is to be applied and the video unit categories for which the loop filtering method is turned on in response to the video unit component on / off indicators and the video unit category filtering on / off indicators; and performing 3415 an intensity adjustment on the video unit components of the category for which the loop filtering method is turned on by the loop filtering method in response to the video unit intensity factor.

[0143] In this embodiment, based on the loop filtering control information, for a video unit for which the loop filtering method is turned on, intensity adjustment can be performed on the video unit components (e.g., luminance components, Cr and / or Cb) to which loop filtering is applied for pixel points of a classification for which the loop filtering method is turned on by MSF filtering.

[0144] In one embodiment, after obtaining the second reconstructed image, The method further includes step 3420 of performing self-adaptive loop filtering on each category of pixels in the second reconstructed image according to the classification result of the pixel classification.

[0145] In this embodiment, the LMCS filtered reconstructed image can first be subjected to NN filtering, and then according to the classification result of pixel classification (may refer to the block classification mode of ALF), first perform intensity adjustment of multi-intensity factors, and then select a filter template to determine an optimal filter usage scheme and perform self-adaptive filtering, may refer to Fig. 9. Then, the classification result can be fully utilized to perform intensity adjustment and self-adaptive filtering without the need for secondary classification, so as to improve the coding efficiency and reduce the coding complexity.

[0146] In one embodiment, before performing a filtering process on the first reconstructed image according to the loop filtering control information by a loop filtering method, a step 3310 of performing block classification on the first reconstructed video unit; The method further includes step 3313 of performing self-adaptive loop filtering on each category of pixels in the first reconstructed image according to the classification result of the block classification.

[0147] In this embodiment, before performing MSF filtering on the first reconstructed image in the first reconstructed image, NN filtering and ALF filtering may be performed on the first reconstructed image, so as to further improve filtering performance and image quality, see FIG. 10. MSF includes two parts: pixel classification and intensity adjustment based on multiple intensity factors, of which pixel classification may refer to the block classification mode of ALF. In this embodiment, by placing the intensity adjustment of multiple intensity factors after ALF filtering, the gain obtained by intensity adjustment is not covered by ALF filtering, so that the effectiveness of intensity adjustment is fully guaranteed, and the reconstructed image quality is improved.

[0148] In one embodiment, prior to determining the corresponding intensity factors for each category, The method further includes step 3404 of performing self-adaptive loop filtering on each category of pixels in the video unit according to the classification result of the pixel classification.

[0149] In this embodiment, the LMCS filtered reconstructed image can first be NN filtered, and then according to the classification result of pixel classification (may refer to the block classification mode of ALF), a filter template can be first selected, an optimal filter usage scheme can be determined, self-adaptive filtering can be performed, and then intensity adjustment of multi-intensity factors can be performed, see Fig. 11. In addition, the classification result can be fully utilized to perform intensity adjustment and self-adaptive filtering without the need for secondary classification, and the validity of the gain of intensity adjustment can be guaranteed.

[0150] In one embodiment, before performing a filtering process on the first reconstructed image according to the loop filtering control information to obtain a second reconstructed image, The method further includes a step 3320 of performing DBF filtering on the reconstructed image; After obtaining the second reconstructed image, The method further includes a step 3430 of performing SAO filtering on the decoded reconstructed image.

[0151] In this embodiment, when a loop filtering module such as DBF and / or SAO is turned on, MSF filtering may be added, and the loop filtering process may refer to FIG.

[0152] In one embodiment, before performing a filtering process on the first reconstructed image according to the loop filtering control information by a loop filtering method, It further includes a step 3330 of performing DBF filtering and SAO filtering on the reconstructed image.

[0153] In this embodiment, the loop filter adopts the filter in the related art, and does not need to adopt the NN filter, and the loop filtering process may refer to FIG.

[0154] In the video decoding process of the above embodiment, the loop filtering method may be used in combination with other filtering, the filtering order may be flexibly set, and only primary classification may be performed, or secondary classification may be performed, and the MSF filtering may adopt different classification methods and intensity factor competition strategies and opening and closing control, so as to provide a high-quality reconstructed image as a reference for video decoding, and ensure the quality of the decoded video data.

[0155] An embodiment of the present application further proposes a loop filtering device. Figure 16 is a structural schematic diagram of a loop filtering device according to an embodiment. As shown in Figure 16, the loop filtering device includes: a video unit acquisition module 410 configured to acquire a first reconstructed video unit processed by the loop filter; a classification module 420 configured to perform pixel classification on the first reconstructed video unit; A determination module 430 configured to determine a corresponding intensity factor for each category; and an adjustment module 440 configured to perform an intensity adjustment on the first reconstructed video unit according to the intensity factor to obtain a second reconstructed video unit.

[0156] The loop filtering device of this embodiment obtains a second reconstructed video unit after performing intensity adjustment on the first reconstructed video unit according to classification, so that the deviation between the reconstructed value and the original value in the second reconstructed video unit is smaller, it has less distortion, higher image quality, and better filtering effect.

[0157] In one embodiment, the loop filter includes a neural network based loop filter.

[0158] In one embodiment, the reconstructed video unit comprises a reconstructed picture, or a slice, or a coding block, or a coding tree block.

[0159] In one embodiment, the adjustment module 440 includes: performing an intensity adjustment on a luminance component of the first reconstructed video unit in response to an intensity factor; performing an intensity adjustment on a first chrominance component of the first reconstructed video unit according to an intensity factor; and performing an intensity adjustment on the second chrominance component of the first reconstructed video unit in response to the intensity factor.

[0160] In one embodiment, the determination module 430: A merging unit configured to merge pixel points of the same category into a same coordinate map, and the horizontal coordinate of each pixel point is the output of the pixel point after passing through the loop filter, and the vertical coordinate is the input of the pixel point before passing through the loop filter; The fitting unit is configured to obtain a straight line by fitting the pixel points in the coordinate map based on the least squares method, and to use the slope of the straight line as an intensity factor corresponding to the corresponding classification.

[0161] In one embodiment, the determination module 430 is configured to determine the corresponding strength factor for each category by reading loop filtering control information associated with a loop filtering method.

[0162] In one embodiment, the adjustment module 440 is configured to, for each pixel point in each category, multiply the difference between the output of the pixel point after passing through the loop filter and the input of the pixel point before passing through the loop filter by an intensity factor corresponding to the category, and add the result of the multiplication to the input of the pixel point before passing through the loop filter to obtain an adjusted pixel value of the pixel point.

[0163] In one embodiment, the pixel classification scheme is: performing pixel classification based on luminance components; performing pixel classification based on a first chromaticity component; performing pixel classification based on a second chromaticity component; performing pixel classification based on a block classification mode; performing pixel classification based on pixel point region; performing pixel classification based on a neural network-based loop filter classification; performing pixel classification based on a classification mode used for DBF; performing pixel classification based on a classification mode used for SAO filtering; and performing pixel classification using a neural network for pixel classification.

[0164] In one embodiment, performing pixel classification based on a block classification mode includes: Obtaining a pixel block of a first reconstructed video unit; Calculating a Laplacian gradient for each pixel block, and calculating a directionality factor and a mobility factor based on the Laplacian gradient; determining a classification of the pixel blocks depending on the orientation factor and / or the mobility factor, and determining a classification of all pixel points in the reconstructed video unit.

[0165] In one embodiment, the adjustment module 440 includes: A first calculation unit, configured to calculate, for each pixel point of each class, a loss between the pixel after intensity adjustment and the original pixel by using an intensity factor corresponding to the class; a first adjusting unit configured to, according to the loss corresponding to each pixel point of each class, adopt intensity factors corresponding to some classes to perform intensity adjustment on the pixel points of the corresponding classes.

[0166] In one embodiment, the adjustment module 440 includes: A second calculation unit configured to calculate a first loss between the image after intensity adjustment for each pixel point of each classification and the original image using a single intensity factor; a third calculation unit, configured to use the corresponding intensity factors for each class to calculate a second loss between the image after intensity adjustment for the pixel points of the corresponding class and the original image; and a second adjustment unit configured to perform intensity adjustment on the first reconstructed video unit using a single intensity factor according to the first loss and the second loss, or to perform intensity adjustment on pixel points of the corresponding classification using corresponding intensity factors for each classification, respectively.

[0167] In one embodiment, the single intensity factor is a value set based on statistical information, or the single intensity factor is determined according to the slope of a line obtained by fitting each pixel point in the first reconstructed video unit.

[0168] In one embodiment, the adjustment module 440 includes: A fourth calculation unit, configured to use the corresponding intensity factors for each category to calculate a second loss between the video unit after intensity adjustment for the pixel points of the corresponding category and the original video unit; a fusion unit configured to fuse the classes into one class when the difference values ​​of the corresponding intensity factors are within a set range; a determining unit configured to determine a strength factor corresponding to each fused category; A fifth calculation unit, configured to respectively use the intensity factors corresponding to each fused category to calculate a third loss between the video unit after intensity adjustment for the pixel points of the corresponding fused category and the original video unit; and a third adjustment unit configured to, according to the second loss and the third loss, respectively use corresponding intensity factors for each category to perform intensity adjustment on the pixel points of the corresponding category, or respectively use intensity factors corresponding to each fused category to perform intensity adjustment on the pixel points of the corresponding fused category.

[0169] In one embodiment, the adjustment module 440 includes: A sixth calculation unit, configured to calculate, for each pixel point of each class, a loss between the pixel after intensity adjustment and the original pixel by using the intensity factor corresponding to the class; A first marking unit is configured to use an intensity adjustment on / off indicator to respectively mark the on / off state of the corresponding intensity adjustment for each category according to the loss corresponding to each pixel point of each category; and a fourth adjusting unit configured to, in response to each intensity adjustment on / off indicator, perform intensity adjustment on pixel points of the corresponding classification by using an intensity factor corresponding to the classification for which the intensity adjustment is turned on.

[0170] In one embodiment, the adjustment module 440 includes: a seventh calculation unit configured to calculate a first loss between the video unit after intensity adjustment for each pixel point of each classification and the original video unit using a single intensity factor; an eighth calculation unit, configured to use the corresponding intensity factors for each category to calculate a second loss between the video unit after intensity adjustment for the pixel points of the corresponding category and the original video unit; a second marking unit configured to use an intensity adjustment open / close indicator to respectively mark an open / close state of the intensity adjustment corresponding to a single intensity factor and an open / close state of the intensity adjustment corresponding to each category according to the first loss and the second loss; and a fifth adjustment unit configured to perform intensity adjustment for each category of pixel points using a single intensity factor according to each intensity adjustment on / off indicator, or to perform intensity adjustment for the corresponding category of pixel points using an intensity factor corresponding to the category for which the intensity adjustment is turned on.

[0171] The loop filtering apparatus of this embodiment belongs to the same inventive concept as the loop filtering method of the above-mentioned embodiment, and technical details not described in detail in this embodiment may refer to any of the above-mentioned embodiments, and this embodiment has the same beneficial effects as implementing the loop filtering method.

[0172] An embodiment of the present application further proposes a video encoding device. Figure 17 is a structural schematic diagram of a video encoding device according to an embodiment. As shown in Figure 17, the video encoding device includes: a filtering module 510 configured to filter the reconstructed image of the current image to obtain a first reconstructed image; a loop filtering module 520 configured to filter the first reconstructed image by a loop filtering method to obtain a second reconstructed image; and an encoding module 530 configured to mark in a bitstream loop filtering control information of the loop filtering method based on the filtering process; Wherein, the first reconstructed image includes a first reconstructed video unit, the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method of any of the above embodiments.

[0173] The video encoding apparatus of the present embodiment performs loop filtering and intensity adjustment based on multiple intensity factors on the reconstructed image, so as to provide a high-quality reconstructed image for video encoding, and to improve the quality of the encoded video. In addition, the loop filtering control information of the loop filtering method is marked in the bitstream, providing a basis for using loop filtering to perform video decoding.

[0174] In one embodiment, the apparatus comprises: a first block classification module configured to, after obtaining the second reconstructed image, perform block classification on the second reconstructed image; A first ALF module configured to perform self-adaptive loop filtering on each category of pixel points in the second reconstructed image.

[0175] In one embodiment, the apparatus comprises: The image processing apparatus further includes a second ALF module configured to, after obtaining the second reconstructed image, perform self-adaptive loop filtering on each category of pixel points in the second reconstructed image according to the classification result of the pixel classification.

[0176] In one embodiment, the apparatus comprises: a second block classification module configured to perform block classification on the first reconstructed image before performing a filtering process on the first reconstructed image by the loop filtering method; and a third ALF module configured to perform self-adaptive loop filtering on each category of pixel points in the first reconstructed image according to the classification result of the block classification.

[0177] In one embodiment, the apparatus comprises: The method further comprises a fourth ALF module configured to perform self-adaptive loop filtering on pixel points of each category in the first reconstructed image according to the classification result of the pixel classification before determining the corresponding intensity factors for each category.

[0178] In one embodiment, the apparatus comprises: a DBF module configured to perform DBF filtering on the reconstructed image before performing a filtering process on the first reconstructed image by the loop filtering method; and a SAO module configured to perform SAO filtering on the second reconstructed image after obtaining the second reconstructed image.

[0179] In one embodiment, the apparatus comprises: The method further comprises a double filtering module configured to perform DBF filtering and SAO filtering on the reconstructed image before performing a filtering process on the first reconstructed image by the loop filtering method.

[0180] The video encoding device of this embodiment belongs to the same inventive concept as the video encoding method of the above-mentioned embodiments, and technical details not described in detail in this embodiment may refer to any of the above-mentioned embodiments, and this embodiment has the same beneficial effects as executing the video encoding method.

[0181] An embodiment of the present application further proposes a video decoding device. FIG. 18 is a structural diagram of a video decoding device according to an embodiment. As shown in FIG. 18, the video decoding device includes: an information obtaining module 610 configured to obtain a bitstream including an encoded video sequence and obtain loop filtering control information related to a loop filtering method; a filtering module 620 configured to filter the reconstructed image of the current image to obtain a first reconstructed image; a loop filtering module 630 configured to perform a filtering process on the first reconstructed image through a loop filtering method according to the loop filtering control information to obtain a second reconstructed image; Wherein, the first reconstructed image includes a first reconstructed video unit, the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method described in any of the above embodiments.

[0182] The video decoding apparatus of the present embodiment performs loop filtering and intensity adjustment based on multiple intensity factors on the reconstructed image, so as to provide a high-quality reconstructed image for video decoding, and improve the quality of the decoded video data. In addition, the loop filtering control information can be read and obtained from the bitstream, providing a reliable basis for video decoding.

[0183] In one embodiment, the loop filtering control information comprises: a sequence level filtering on / off indicator for the coded video sequence for indicating whether the loop filtering method is turned on or off for the video sequence in which the current picture is located; a filtering picture level indicator for indicating whether the loop filtering control information appears in the picture header information or in the slice header information; and loop filter structure information for instructing loop filtering to be performed on the video unit to which loop filtering is applied.

[0184] In one embodiment, a video unit comprises an image or a video slice in a video.

[0185] In one embodiment, the loop filter structure information comprises: a video unit filtering on / off indicator for instructing the video unit to turn the loop filtering method on or off; a video unit component open / close indicator for indicating the video unit component to which loop filtering is applied; a video unit category number for indicating a total number of categories of the video unit pixel categories; a video unit category filtering on / off indicator for indicating whether to turn on or off the loop filtering method for each category in the video unit; a video unit intensity factor for indicating an intensity factor corresponding to a video unit or a classification in the video unit; Of these, the video unit components are: the luminance component of the video unit; a first chrominance component of a video unit; and the second chrominance component of the video unit.

[0186] In one embodiment, the loop filtering module 640 comprises: A first identification unit configured to identify a video unit for which a loop filtering method is turned on according to a video unit filtering open / close indicator; A second identification unit configured to identify the video unit components to which loop filtering is applied and the video unit categories in which the loop filtering method is turned on according to the video unit component open / close indicator and the video unit category filtering open / close indicator; and an adjustment unit configured to perform intensity adjustment on the video unit components of a category for which the loop filtering method is turned on by the loop filtering method depending on the video unit intensity factor.

[0187] In one embodiment, the apparatus comprises: The image processing apparatus further includes a fifth ALF module configured to, after obtaining the second reconstructed image, perform self-adaptive loop filtering on each category of pixels in the second reconstructed image according to the classification result of the pixel classification.

[0188] In one embodiment, the apparatus comprises: a second block classification module configured to perform block classification on the first reconstructed video unit before performing a filtering process on the first reconstructed image by the loop filtering method according to the loop filtering control information; and a sixth ALF module configured to perform self-adaptive loop filtering on each category of pixels in the first reconstructed image according to the classification result of the block classification.

[0189] In one embodiment, the apparatus comprises: The seventh ALF module is further configured to perform self-adaptive loop filtering on pixels of each category in the video unit according to the classification result of the pixel classification before determining corresponding intensity factors for each category.

[0190] In one embodiment, the apparatus comprises: a DBF module configured to perform DBF filtering on the reconstructed image before performing a filtering process on the first reconstructed image through a loop filtering method according to the loop filtering control information; and a SAO module configured to perform SAO filtering on the decoded reconstructed image after obtaining the second reconstructed image.

[0191] In one embodiment, the apparatus further includes a dual filtering module configured to perform DBF filtering and SAO filtering on the reconstructed image before performing a filtering process on the first reconstructed image through a loop filtering method based on the loop filtering control information.

[0192] The video decoding apparatus of this embodiment belongs to the same inventive concept as the video decoding method of the above-mentioned embodiment, and technical details not described in detail in this embodiment may refer to any of the above-mentioned embodiments, and this embodiment has the same beneficial effects as executing the video decoding method.

[0193] The embodiment of the present application further proposes an electronic device, which is an image processing device, and may be an encoding side device or a decoding side device. Figure 19 is a schematic diagram of the hardware structure of an electronic device according to an embodiment, as shown in Figure 19, the electronic device according to the present application includes a memory 720, a processor 710, and a computer program stored in the memory and operable by the processor, and when the processor 710 executes the program, the above-mentioned loop filtering method, video encoding method, or video decoding method is realized.

[0194] The electronic device may further include a memory 720, and the processor 710 in the electronic device may be one or more. FIG. 19 takes one processor 710 as an example. The memory 720 is used to store one or more programs, and the one or more programs are executed by the one or more processors 710 to cause the one or more processors 710 to realize the loop filtering method, video encoding method or video decoding method described in the embodiments of the present application.

[0195] The electronic device further comprises a communication device 730 , an input device 740 and an output device 750 .

[0196] The processor 710, memory 720, communication device 730, input device 740, and output device 750 in the electronic device can be connected by a bus or other method, and FIG. 19 shows them being connected by a bus as an example.

[0197] The input device 740 may be used to receive input numeric or textual information and generate input key signals for user settings and function control of the electronic device. The output device 750 may include a display device such as a display screen.

[0198] The communication device 730 may include a receiver and a transmitter and is configured to transmit and receive information under the control of the processor 710.

[0199] The memory 720 can be configured to store software programs, computer-executable programs and modules as a computer-readable storage medium, such as program instructions / modules corresponding to the loop filtering method described in the embodiments of the present application (e.g., the video unit acquisition module 410, the classification module 420, the determination module 430 and the adjustment module 440 in the loop filtering device). The memory 720 can include a program storage area and a data storage area, in which the program storage area can store an operating system, an application program required for at least one function, and the data storage area can store data generated according to the use of the electronic device, etc. The memory 720 can also include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk memory device, a flash memory device, or other non-volatile solid-state memory device. In some examples, the memory 720 can further include a memory configured remotely to the processor 710, and these remote memories can be connected to the electronic device by a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0200] An embodiment of the present application further proposes a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method according to any one of the embodiments of the present application is realized. The method may be a loop filtering method, including: obtaining a first reconstructed video unit processed by a loop filter, performing pixel classification on the first reconstructed video unit, determining a corresponding intensity factor for each classification, and performing intensity adjustment on the first reconstructed video unit according to the intensity factor to obtain a second reconstructed video unit.

[0201] Alternatively, the method may be a video encoding method including: filtering a reconstructed image of a current image to obtain a first reconstructed image; performing a filtering process on the first reconstructed image using a loop filtering method to obtain a second reconstructed image; and labeling loop filtering control information of the loop filtering method in a bitstream based on the filtering process, wherein the first reconstructed image includes a first reconstructed video unit, the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method of any of the above-mentioned embodiments.

[0202] Alternatively, the method may be a video decoding method including: obtaining a bitstream including an encoded video sequence; obtaining loop filtering control information related to a loop filtering method; filtering a reconstructed image of a current image to obtain a first reconstructed image; and performing a filtering process on the first reconstructed image by the loop filtering method based on the loop filtering control information to obtain a second reconstructed image, wherein the first reconstructed image includes a first reconstructed video unit, and the second reconstructed image includes a second reconstructed video unit, and the loop filtering method is determined according to the loop filtering method of any of the above-mentioned embodiments.

[0203] The computer storage medium of the embodiments of the present application may employ any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include an electrical connection having one or more conductors, a portable computer magnetic disk, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical memory device, a magnetic memory device, or any suitable combination of the above. The computer readable storage medium may be any tangible medium that includes or stores a program, which can be used in or in connection with an instruction execution system, apparatus, or device.

[0204] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code carried therein. Such a propagated data signal may take a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0205] The program code contained in the computer readable medium may be transmitted via any suitable medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.

[0206] Computer program code for carrying out the operations of the present application may be written in one or a variety of program design languages ​​or combinations thereof, including object-oriented program design languages ​​such as Java, Smalltalk, C++, and further including general procedural program design languages ​​such as "C" or similar program design languages. The program code may be executed entirely on the user computer, partially on the user computer, as a single separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user computer by any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., connected via the Internet using an Internet Service Provider).

[0207] The above descriptions are only illustrative embodiments of the present application, and are not intended to limit the protection scope of the present application.

[0208] Those skilled in the art will appreciate that the term user terminal covers any suitable type of wireless user equipment, for example a mobile telephone, a portable data processing device, a portable network browser or a mobile station mounted on a vehicle.

[0209] In general, various embodiments of the present application may be implemented in hardware or special purpose circuits, software, logic, or any combination thereof For example, but not limited to, some aspects may be implemented in hardware while other aspects may be implemented in firmware or software executable by a controller, microprocessor, or other computing device.

[0210] The embodiments of the present application may be implemented by a data processor of a mobile device, for example in a processor entity, by hardware, or by a combination of software and hardware, by executing computer program instructions. The computer program instructions may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or various programming languages.

[0211] Any logic flow block diagrams in the drawings of this application may represent program steps, or interconnected logic circuits, modules, and functions, or combinations of program steps and logic circuits, modules, and functions. Computer programs can be stored in memory. The memory may be of any type suitable for the local technology environment and may be implemented using any suitable data storage technology, such as, but not limited to, Read-Only Memory (ROM), Random Access Memory (RAM), optical memory devices and systems (Digital Versatile Optical Disks (DVD) or Compact Disks (CD)). The computer readable medium may include non-transitory storage media. The data processor may be of any type suitable for the local technology environment, such as, but not limited to, general purpose computers, special purpose computers, microprocessors, Digital Signal Processing (DSP), Application Specific Integrated Circuits (ASIC), Programmable Logic Devices (Field-Programmable Gate Arrays (FGPA) and processors based on multi-core processor architectures.

Claims

1. Obtaining a first reconstructed video unit processed by a loop filter; performing pixel classification on the first reconstructed video unit; determining a corresponding intensity factor for each classification; performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor to obtain a second reconstructed video unit. Loop filtering method.

2. the loop filter comprises a neural network based loop filter; The method of claim 1.

3. The first reconstructed video unit and the second reconstructed video unit each include any one of a reconstructed image, a slice, a coding block, and a coding tree block. The method of claim 1.

4. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, performing an intensity adjustment on a luminance component of the first reconstructed video unit in response to the intensity factor; performing an intensity adjustment on a first chrominance component of the first reconstructed video unit in response to the intensity factor; and performing an intensity adjustment on a second chrominance component of the first reconstructed video unit in response to the intensity factor. The method of claim 1.

5. Determining the corresponding intensity factors for each category includes: Integrate pixel points of the same category into a same coordinate map, and the horizontal coordinate of each pixel point is the output of the pixel point after passing through the loop filter, and the vertical coordinate of each pixel point is the input of the pixel point before passing through the loop filter; According to a least squares method, fitting the pixel points in the coordinate map to obtain a straight line, and the slope of the straight line is taken as an intensity factor corresponding to the corresponding classification. The method of claim 1.

6. Determining the corresponding intensity factors for each category includes: determining corresponding strength factors for each category by retrieving loop filtering control information associated with the loop filtering method; The method of claim 1.

7. performing an intensity adjustment on the first reconstructed image in response to the intensity factor, for each pixel point in each category, multiplying a difference between an output of the pixel point after passing through the loop filter and an input of the pixel point before passing through the loop filter by a corresponding intensity factor for the category, and adding the result of the multiplication to the input of the pixel point before passing through the loop filter to obtain an adjusted pixel value for the pixel point. The method of claim 1.

8. The pixel classification method is: performing pixel classification based on luminance components; performing pixel classification based on a first chromaticity component; performing pixel classification based on a second chromaticity component; performing pixel classification based on a block classification mode; performing pixel classification based on pixel point region; performing pixel classification based on a neural network-based loop filter classification; performing pixel classification based on a classification mode used for the deblocking filtering DBF; performing pixel classification based on a classification mode used for pixel self-adaptive compensation SAO filtering; and performing pixel classification using a neural network for pixel classification. The method of claim 1.

9. The pixel classification based on the block classification mode includes: obtaining a pixel block of the first reconstructed video unit; calculating a Laplacian gradient for each pixel block, and calculating a directionality factor and a mobility factor based on the Laplacian gradient; determining a classification of the pixel block based on at least one of the orientation factor and the mobility factor, and determining a classification of all pixel points in the first reconstructed video unit. The method according to claim 8.

10. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, For each pixel point of each class, calculate a loss between the pixel after intensity adjustment and the original pixel by using the corresponding intensity factor of each class; According to the losses corresponding to the pixel points of the plurality of classes, adopting the intensity factors corresponding to some classes among the plurality of classes to perform intensity adjustment on the pixel points of the corresponding classes; The method of claim 1.

11. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, Calculating a first loss between the image after intensity adjustment for the pixel points of the plurality of categories using a single intensity factor and the original image; Calculating a second loss between the image after intensity adjustment and the original image for the pixel points of the corresponding classes using the intensity factors corresponding to the plurality of classes respectively; According to the first loss and the second loss, performing intensity adjustment on the first reconstructed video unit using the single intensity factor, or performing intensity adjustment on pixel points of the corresponding classification using intensity factors corresponding to the plurality of classifications respectively. The method of claim 1.

12. the single strength factor is a value set based on statistical information, or the single intensity factor is determined according to a slope of a straight line obtained by fitting each pixel point in the first reconstructed video unit; The method of claim 11.

13. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, Calculating a second loss between the video unit after intensity adjustment and the original video unit for the pixel points of the corresponding classes using the intensity factors corresponding to the plurality of classes respectively; Merging the classes whose corresponding intensity factor difference values ​​are within a set range into one class; determining a strength factor corresponding to each fused category; Calculating a third loss between the video unit after intensity adjustment and the original video unit for the pixel points of the corresponding fused classes using the intensity factors corresponding to the plurality of fused classes respectively; According to the second loss and the third loss, performing intensity adjustment on pixel points of the corresponding class using intensity factors corresponding to the plurality of classes respectively, or performing intensity adjustment on pixel points of the corresponding fused class using intensity factors corresponding to the plurality of fused classes respectively. The method of claim 1.

14. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, For each pixel point of each class, calculating a loss between the pixel after intensity adjustment and the original pixel using the corresponding intensity factor of the class; According to the losses corresponding to the pixel points of the plurality of categories, respectively indicating the open / close states of the intensity adjustment corresponding to the plurality of categories using the intensity adjustment open / close indicators; According to the intensity adjustment on / off indicator, performing intensity adjustment on pixel points of the corresponding classification by using an intensity factor corresponding to the classification in which the intensity adjustment is turned on. The method of claim 1.

15. performing an intensity adjustment on the first reconstructed video unit in response to the intensity factor, Calculating a first loss between the video unit after intensity adjustment for the pixel points of the plurality of categories using a single intensity factor and the original video unit; Calculating a second loss between the video unit after intensity adjustment and the original video unit for the pixel points of the corresponding classes using the intensity factors corresponding to the plurality of classes respectively; Indicating an open / close state of the intensity adjustment corresponding to the single intensity factor and an open / close state of the intensity adjustment corresponding to the plurality of categories using an intensity adjustment open / close indicator according to the first loss and the second loss; According to the intensity adjustment on / off indicator, performing intensity adjustment on the pixel points of the plurality of categories using the single intensity factor, or performing intensity adjustment on the pixel points of the corresponding category using an intensity factor corresponding to the category for which the intensity adjustment is turned on. The method of claim 1.

16. filtering the reconstructed image of the current image to obtain a first reconstructed image; filtering the first reconstructed image by a loop filtering method to obtain a second reconstructed image; and marking in a bitstream loop filtering control information of the loop filtering method based on the filtering process, comprising: The first reconstructed image comprises a first reconstructed video unit, and the second reconstructed image comprises a second reconstructed video unit, and the loop filtering method is determined according to a loop filtering method according to any one of claims 1 to 15. Video encoding methods.

17. After obtaining the second reconstructed image, performing block classification on the second reconstructed image; and performing self-adaptive loop filtering on each pixel point of the second reconstructed image.

17. The method of claim 16.

18. After obtaining the second reconstructed image, and performing self-adaptive loop filtering on each pixel point of each classification in the second reconstructed image according to a classification result of pixel classification.

17. The method of claim 16.

19. before performing a filtering process on the first reconstructed image by the loop filtering method, performing block classification on the first reconstructed image; and performing self-adaptive loop filtering on each pixel point of each category in the first reconstructed image according to a classification result of the block classification.

17. The method of claim 16.

20. Prior to determining the corresponding intensity factors for each category, and performing self-adaptive loop filtering on each classification pixel point in the first reconstructed image according to a classification result of pixel classification.

17. The method of claim 16.

21. before performing a filtering process on the first reconstructed image by the loop filtering method, performing deblocking filtering (DBF filtering) on ​​the reconstructed image; After obtaining the second reconstructed image, performing pixel self-adaptive compensation SAO filtering on the second reconstructed image.

17. The method of claim 16.

22. before performing a filtering process on the first reconstructed image by the loop filtering method, performing DBF filtering and SAO filtering on the reconstructed image.

17. The method of claim 16.

23. obtaining a bitstream including an encoded video sequence and obtaining loop filtering control information associated with a loop filtering method; filtering the reconstructed image of the current image to obtain a first reconstructed image; performing a filtering process on the first reconstructed image through a loop filtering method based on the loop filtering control information to obtain a second reconstructed image, The first reconstructed image comprises a first reconstructed video unit, and the second reconstructed image comprises a second reconstructed video unit, and the loop filtering method is determined according to a loop filtering method according to any one of claims 1 to 15. Video decoding method.

24. The loop filtering control information is a sequence level filtering on / off indicator for the coded video sequence for indicating whether the loop filtering method is turned on or off for the video sequence in which the current picture is located; a filtering picture level indicator for indicating whether the loop filtering control information appears in picture header information or slice header information; and loop filter structure information for instructing the loop filtering to be performed on a video unit to which the loop filtering is applied.

24. The method of claim 23.

25. The video units include images or video slices in a video.

25. The method of claim 24.

26. The loop filter structure information is a video unit filtering on / off indicator for instructing a video unit to turn the loop filtering method on or off; a video unit component open / close indicator for indicating the video unit component to which loop filtering is applied; a video unit category number for indicating a total number of categories of said video unit pixel classification; a video unit category filtering on / off indicator for indicating whether the loop filtering method is turned on or off for a plurality of categories in the video unit; a video unit intensity factor for indicating an intensity factor corresponding to the video unit or a classification in the video unit; The video unit component is the luminance component of the video unit; a first chrominance component of a video unit; and a second chrominance component of the video unit; 25. The method of claim 24.

27. performing a filtering process on the first reconstructed image by a loop filtering method based on the loop filtering control information, identifying a video unit for which the loop filtering method is turned on in the first reconstructed image according to the video unit filtering on / off indicator; identifying a video unit component to which loop filtering is applied and a category in which the loop filtering method is turned on in the video unit according to the video unit component on / off indicator and the video unit category filtering on / off indicator; performing an intensity adjustment on the video unit components of the category for which the loop filtering method is turned on by the loop filtering method in response to the video unit intensity factor.

27. The method of claim 26.

28. After obtaining the second reconstructed image, and performing self-adaptive loop filtering on each classification pixel in the second reconstructed image according to a classification result of the pixel classification.

24. The method of claim 23.

29. before performing a filtering process on the first reconstructed image by a loop filtering method based on the loop filtering control information, performing block classification on the first reconstructed video unit; and performing self-adaptive loop filtering on each category of pixels in the first reconstructed image according to a classification result of the block classification.

24. The method of claim 23.

30. Prior to determining the corresponding intensity factors for each category, Further comprising: performing self-adaptive loop filtering on each category of pixels in the first reconstructed video unit according to a classification result of pixel classification; 24. The method of claim 23.

31. before performing a filtering process on the first reconstructed image according to the loop filtering control information to obtain a second reconstructed image, performing deblocking filtering (DBF filtering) on ​​the reconstructed image; After obtaining the second reconstructed image, and performing pixel self-adaptive compensation SAO filtering on the decoded reconstructed image.

24. The method of claim 23.

32. before performing a filtering process on the first reconstructed image by a loop filtering method based on the loop filtering control information, performing DBF filtering and SAO filtering on the reconstructed image.

24. The method of claim 23.

33. a memory; a processor; and a computer program stored in the memory and operable on the processor, the program being executed by the processor to achieve the loop filtering method according to any one of claims 1 to 15, the video encoding method according to any one of claims 16 to 22, or the video decoding method according to any one of claims 23 to 32. electronic equipment.

34. A computer program is stored in the When the computer program is executed by a processor, the loop filtering method according to any one of claims 1 to 15, the video encoding method according to any one of claims 16 to 22, or the video decoding method according to any one of claims 23 to 32 is realized. A computer-readable storage medium.

Citation Information

Patent Citations

  • Deblocking effect filtering method and device in video encoding and decoding, equipment and medium

    CN111711825A

  • Method and apparatus for adaptive loop filtering

    JP2013534388A

  • Systems and methods for deblocking HDR content

    JP2021520104A