LOOP FILTERING METHOD, VIDEO DECODING METHOD, VIDEO ENCODING METHOD, LOOP FILTERING DEVICE, VIDEO DECODING DEVICE, VIDEO ENCODING DEVICE, ELECTRONIC DEVICE, AND COMPUTER PROGRAM

By increasing block classification categories and optimizing filter coefficients based on luma component results, the method enhances CC-ALF performance in video encoding and decoding, addressing the issue of low classification accuracy and improving filtering efficiency.

JP2024535840AActive Publication Date: 2024-10-02TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024516715
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-01-07
Filing Date
2022-12-09
Publication Date
2024-10-02
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Current Cross-Component Adaptive Loop Filtering (CC-ALF) designs in video encoding and decoding suffer from low classification accuracy, leading to poor performance due to limited categories and coarse adaptive selection at the CTU level, which affects the accuracy of content classification and filtering efficiency.

Method used

The proposed method increases the number of block classification categories for chroma components by leveraging the classification results of luma components, using geometric transformations to align content orientation, and optimizing filter coefficients based on rate-distortion costs to enhance CC-ALF performance.

Benefits of technology

This approach improves the accuracy of content classification and adaptive ability of CC-ALF, leading to enhanced encoding and decoding efficiency by increasing the number of classification categories and optimizing filter coefficients, thereby improving filtering performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535840000001_ABST
    Figure 2024535840000001_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a loop filtering method, a video encoding / decoding method, an apparatus, a medium, and an electronic device, which includes the steps of: acquiring block classification information when performing adaptive loop filtering on a luma component in a video image frame (S710); determining block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame based on the block classification information when performing adaptive loop filtering on the luma component (S720); and selecting corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and performing cross-component adaptive loop filtering on the chroma components (S730).
Need to check novelty before this filing date? Find Prior Art

Description

Related Applications

[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on January 7, 2022, bearing application number 2022100178140 and entitled "Loop filtering method, video encoding and decoding method, apparatus, medium and electronic device," the entire contents of which are incorporated herein by reference. [Technical field]

[0002] The present application relates to the technical fields of computers and communications, and more particularly to a loop filtering method, a video encoding / decoding method, an apparatus, a medium, and an electronic device. [Background technology]

[0003] Cross-Component Adaptive Loop Filtering (CC-ALF) is a type of Wiener filter that can adaptively generate and use different filter coefficients according to the characteristics of video content (e.g., game videos, online conference videos, etc.).

[0004] In the current CC-ALF design, the filter coefficients need to be adaptively selected by classification, but there is often a problem of low classification accuracy, which leads to poor performance during cross-component adaptive loop filtering. Summary of the Invention [Problem to be solved by the invention]

[0005] According to various embodiments of the present application, a loop filtering method, a video encoding / decoding method, an apparatus, a medium, and an electronic device are provided. [Means for solving the problem]

[0006] According to one aspect of an embodiment of the present application, there is provided a loop filtering method performed by a video encoding device or a video decoding device, the loop filtering method including the steps of: obtaining block classification information when performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame based on the block classification information when performing adaptive loop filtering on the luma component; and selecting corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and performing a cross-component adaptive loop filtering process on the chroma components.

[0007] According to one aspect of an embodiment of the present application, there is provided a video decoding method executed by a video decoding device, the video decoding method including the steps of: acquiring block classification information when performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame based on the block classification information when performing adaptive loop filtering on the luma component; selecting corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and performing a cross-component adaptive loop filtering process on the chroma components; and decoding a video bitstream based on a result of the adaptive loop filtering process of the luma component and a result of the cross-component adaptive loop filtering process of the chroma components.

[0008] According to one aspect of an embodiment of the present application, there is provided a video encoding method executed by a video encoding device, the video encoding method including the steps of: obtaining block classification information when performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame based on the block classification information when performing adaptive loop filtering on the luma component; selecting corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and performing a cross-component adaptive loop filtering process on the chroma components; and encoding a video image frame based on a result of the adaptive loop filtering process of the luma component and a result of the cross-component adaptive loop filtering process of the chroma components to obtain a video bitstream.

[0009] According to one aspect of an embodiment of the present application, there is provided a loop filtering device comprising: an acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; a determination unit configured to determine, based on the block classification information when performing adaptive loop filtering on the luma component, block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame; and a filtering unit configured to select corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and perform a cross-component adaptive loop filtering process on the chroma components.

[0010] According to one aspect of an embodiment of the present application, there is provided a video decoding device comprising: an acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; a determination unit configured to determine block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame based on the block classification information when performing adaptive loop filtering on the luma component; a filtering unit configured to select corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and perform a cross-component adaptive loop filtering process on the chroma components; and a first processing unit configured to decode a video bitstream based on a result of the adaptive loop filtering process of the luma component and a result of the cross-component adaptive loop filtering process of the chroma components.

[0011] According to one aspect of an embodiment of the present application, there is provided a video encoding device comprising: an acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; a determination unit configured to determine, based on the block classification information when performing adaptive loop filtering on the luma component, block classification information when performing cross-component adaptive loop filtering on a chroma component in the video image frame; a filtering unit configured to select corresponding filter coefficients based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and perform a cross-component adaptive loop filtering process on the chroma components; and a second processing unit configured to encode a video image frame based on a result of the adaptive loop filtering process of the luma component and a result of the cross-component adaptive loop filtering process of the chroma components to obtain a video bitstream.

[0012] According to one aspect of an embodiment of the present application, there is provided an electronic device comprising: a memory having computer-readable instructions stored therein; and a processor that, when executing the computer-readable instructions, implements the methods provided in the various optional embodiments above.

[0013] According to one aspect of an embodiment of the present application, there is provided a computer storage medium having stored thereon computer readable instructions which, when executed by a processor, implements the methods provided in the various optional embodiments above.

[0014] According to one aspect of an embodiment of the present application, there is provided a computer program product including computer readable instructions that, when executed by a processor, implements the methods provided in the various optional embodiments above.

[0015] The details of one or more embodiments of the application are set forth in the drawings and description below. Other features, objects, and advantages of the application will become apparent from the description, drawings, and claims. [Brief description of the drawings]

[0016] In order to more clearly describe the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces drawings that need to be used to describe the embodiments or the technical solutions in the prior art. However, the drawings described below are only the embodiments of the present application, and it is obvious that a person skilled in the art can obtain other drawings based on the disclosed drawings without paying inventive labor. [Figure 1] FIG. 1 is a schematic diagram showing an exemplary system architecture to which the technical proposals of the embodiments of the present application can be applied. [Diagram 2] 1 is a schematic diagram showing the arrangement of a video encoding device and a video decoding device in a streaming system. [Diagram 3] 1 is a basic flowchart of a video encoder. [Figure 4] 1 is a schematic diagram showing the overall structure and loop filtering process of VVC; [Diagram 5] FIG. 1 is a schematic diagram showing the procedure of CC-ALF and its relationship with ALF. [Figure 6] FIG. 2 is a schematic diagram showing a diamond filter. [Figure 7] 1 is a flow chart illustrating a loop filtering method according to an embodiment of the present application; [Figure 8] 1 is a flowchart illustrating a video encoding method according to an embodiment of the present application; [Figure 9] 1 is a flow chart illustrating a video decoding method according to an embodiment of the present application; [Figure 10] FIG. 1 is a block diagram showing a loop filtering apparatus according to an embodiment of the present application; [Figure 11] 1 is a block diagram illustrating a video decoding device according to an embodiment of the present application; [Figure 12] 1 is a block diagram showing a video encoding device according to an embodiment of the present application; [Figure 13] FIG. 1 is a schematic diagram illustrating a computer system suitable for implementing an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, the technical solutions of the embodiments of the present application will be described clearly and completely with reference to the drawings of the embodiments of the present application. Of course, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments that a person skilled in the art can obtain without inventive work should fall within the scope of protection of the present application.

[0018] In addition, the features, structures, or characteristics described in the present application may be incorporated in one or more embodiments in any suitable form. In the following description, many specific details are provided to fully understand the embodiments of the present application. However, those skilled in the art will recognize that not all detailed features in the embodiments are required when implementing the technical proposal of the present application, and one or more specific details may be omitted, or other methods, elements, devices, steps, etc. may be adopted.

[0019] The block diagrams shown in the drawings are merely functional entities which do not necessarily correspond to physically separate entities, i.e. these functional entities can be realized in the form of software, in one or more hardware modules or integrated circuits, in different networks and / or processor and / or microcontroller devices.

[0020] The flowcharts shown in the drawings are merely illustrative and do not necessarily include all contents and operations / steps, or have to be performed in the order described. For example, some of these operations / steps may be separated, merged, or partially merged, so that the order in which they are actually performed may vary depending on the circumstances.

[0021] It should be understood that "plurality" as referred to herein means two or more than two. "And / or" describes an association of related objects and indicates that three relationships are possible, for example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0022] FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical proposals of the embodiments of the present application can be applied.

[0023] As shown in Fig. 1, the system architecture 100 includes a plurality of terminal devices that can communicate with each other, for example, via a network 150. For example, the system architecture 100 may include a first terminal device 110 and a second terminal device 120 interconnected via the network 150. In the embodiment of Fig. 1, the first terminal device 110 and the second terminal device 120 perform unidirectional data transmission.

[0024] For example, the first terminal device 110 may encode video data (e.g., a video picture stream collected by the first terminal device 110) and transmit it to the second terminal device 120 via the network 150. The encoded video data is transmitted in the form of one or more encoded video bitstreams, and the second terminal device 120 may receive the encoded video data from the network 150, decode the encoded video data to reconstruct the video data, and display video pictures based on the reconstructed video data.

[0025] In one embodiment of the present application, the system architecture 100 may include a third terminal device 130 and a fourth terminal device 140 that perform bidirectional transmission of encoded video data. This bidirectional transmission may be performed during a video conference, for example. In the case of bidirectional data transmission, each of the third terminal device 130 and the fourth terminal device 140 may encode video data (e.g., a video picture stream collected by the terminal device) and transmit it to the other of the third terminal device 130 and the fourth terminal device 140 via the network 150. Each of the third terminal device 130 and the fourth terminal device 140 may also receive the encoded video data transmitted by the other of the third terminal device 130 and the fourth terminal device 140, and may decode the encoded video data to restore the video data, and display the video pictures on an accessible display device based on the restored video data.

[0026] In the embodiment of FIG. 1, the first terminal device 110, the second terminal device 120, the third terminal device 130, and the fourth terminal device 140 can be servers or terminals, and the servers may be independent physical servers, or may be server clusters or distributed systems composed of multiple physical servers, and may further be cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs (Content Delivery Networks), and big data and artificial intelligence platforms. The terminals may be, but are not limited to, smartphones, tablet computers, notebook computers, desktop computers, smart speakers, smart watches, smart voice interaction devices, smart home appliances, in-vehicle terminals, flying devices, and the like.

[0027] Network 150 represents any number of networks that transmit encoded video data between first terminal 110, second terminal 120, third terminal 130, and fourth terminal 140, including, for example, wired and / or wireless communication networks. Communications network 150 may communicate data over circuit-switched and / or packet-switched channels. The network may include a telecommunications network, a local area network, a wide area network, and / or the Internet. For purposes of this application, the architecture and topology of network 150 may not be important to the operations disclosed herein, unless otherwise described below.

[0028] In one embodiment of the present application, Figure 2 illustrates a configuration of a video encoding device and a video decoding device in a streaming environment. The subject matter disclosed herein is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV (television), storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0029] The streaming system may include a collection subsystem 213 that may include a video source 201, such as a digital camera, that creates an uncompressed video picture stream 202. In an embodiment, the video picture stream 202 includes samples taken by the digital camera. The video picture stream 202 is depicted as a thick line to emphasize the high amount of data of the video picture stream compared to the encoded video data 204 (or encoded video bitstream 204), and the video picture stream 202 may be processed by an electronic device 220 that includes a video encoder 203 coupled to the video source 201. The video encoder 203 may include hardware, software, or a combination of software and hardware to realize or perform aspects of the disclosed subject matter described in more detail below. In comparison with the video picture stream 202, the encoded video data 204 (or encoded video bitstream 204) is depicted as a thin line to emphasize the low amount of encoded video data 204 (or encoded video bitstream 204), which can be stored in the streaming server 205 for future use. One or more streaming client subsystems, such as client subsystem 206 and client subsystem 208 in FIG. 2, can access the streaming server 205 to retrieve copies 207 and 209 of the encoded video data 204. The client subsystem 206 may include a video decoder 210, for example, in the electronic device 230. The video decoder 210 decodes the incoming copy 207 of the encoded video data and generates an output video picture stream 211, which can be displayed on a display 212 (e.g., a display screen) or other display device. In some streaming systems, encoded video data 204, video data 207, and video data 209 (eg, a video bitstream) may be encoded according to some video encoding / compression standard.

[0030] It should be noted that electronic device 220 and electronic device 230 may include other components not shown in the drawings. For example, electronic device 220 may include a video decoding device, and electronic device 230 may further include a video encoding device.

[0031] In one embodiment of the present application, taking the international video coding standard HEVC (High Efficiency Video Coding), VVC (Versatile Video Coding) and China's national video coding standard AVS as examples, when a video frame image is input, the video frame image is divided into multiple non-overlapping processing units according to a block size, and similar compression operations are performed for each processing unit. This processing unit is called CTU or LCU (Largest Coding Unit). The CTU can be further divided to obtain one or more basic coding units CU (Coding Unit), and a CU is the most basic element in a part of coding.

[0032] Some concepts when encoding a CU are explained below.

[0033] Predictive Coding: Predictive coding includes methods such as intraframe prediction and interframe prediction, and obtains a residual video signal after performing prediction on the original video signal using a selected reconstructed video signal. The encoding side needs to decide which predictive coding mode to select for the current CU and inform the decoding side. Here, intraframe prediction means that the predicted signal is from a coded and reconstructed area in the same image. Meanwhile, interframe prediction means that the predicted signal is from another coded image (called a reference image) different from the current image.

[0034] Transform & Quantization: After the residual video signal undergoes transformation operations such as DFT (Discrete Fourier Transform), DCT (Discrete Cosine Transform), etc., the signal is transformed into the transform domain, which is called the transform coefficients. The transform coefficients are further subjected to a lossy quantization operation, which causes a certain amount of information to be lost, making the quantized signal more advantageous for compressed representation. In some video coding standards, there may be multiple transform methods to choose from, so the encoding side needs to select one of them for the current CU and inform the decoding side. The quantization fineness is usually determined by the Quantization Parameter (QP), and a larger possible value of QP indicates that coefficients with a larger range of possible values ​​are quantized to the same output, which usually results in larger distortion and lower bitrate. Conversely, smaller possible values ​​of QP indicate that coefficients with a smaller range of possible values ​​are quantized to the same output, and therefore typically result in less distortion while supporting a higher bitrate.

[0035] Entropy Coding or Statistical Coding: The quantized transform domain signal is statistically compression-coded according to the frequency of occurrence of each value, and finally a binary (0 or 1) compressed bit stream is output. At the same time, other information is generated by the coding, such as the selected coding mode, motion vector data, etc., which requires entropy coding to reduce the bit rate. Statistical coding is a lossless coding method that can effectively reduce the bit rate required to represent a similar signal, and common statistical coding methods include Variable Length Coding (abbreviated as VLC) or Content Adaptive Binary Arithmetic Coding (abbreviated as CABAC).

[0036] The context-adaptive binary arithmetic coding (CABAC) process mainly includes three steps: binarization, context modeling, and binary arithmetic coding. After the input syntax elements are binarized, the binary data can be coded in conventional coding mode and bypass coding mode. In bypass coding mode, there is no need to assign a specific probability model to each binary bit, and the bin value of the input binary bit is directly coded by a simple bypass encoder, improving the overall coding and decoding speed. In general, different syntax elements are not completely independent, and the same syntax element itself has a certain memory property. Therefore, according to the conditional entropy theory, performing conditional coding using other coded syntax elements can further improve the coding performance compared to independent coding or memoryless coding. These coded symbol information used as conditions are called context. In conventional coding mode, the binary bits of the syntax elements are input sequentially to the context modeler, and the encoder assigns an appropriate probability model to each input binary bit according to the value of the previously coded syntax element or binary bit, and this process is called context modeling. The context model corresponding to the syntax element can be found through ctxIdxInc (context index increment) and ctxIdxStart (context index start). After the bin value is sent to the binary arithmetic encoder along with the assigned probability model for encoding, the context model needs to be updated according to the bin value, which is the adaptation process in encoding.

[0037] Loop Filtering: The transformed and quantized signal is subjected to the operations of inverse quantization, inverse transformation and predictive compensation to obtain a reconstructed image. Compared with the original image, the reconstructed image has the effect of quantization, so some information is different from the original image, that is, distortion occurs in the reconstructed image. Therefore, a filtering operation is performed on the reconstructed image to effectively reduce the degree of distortion caused by quantization. These filtered reconstructed images are used as references for encoding images later for prediction of future image signals, so the above filtering operation is also called loop filtering, which is a filtering operation in the encoding loop.

[0038]

number

[0039] In the above coding procedure, loop filtering is one of the core modules of video coding, which can effectively remove various coding distortions. The latest generation international video coding standard VVC supports four different types of loop filters: Deblocking filter (abbreviated as DF), Sample Adaptive Offset (abbreviated as SAO), Adaptive Loop Filter (abbreviated as ALF), and Cross-Component Adaptive Loop Filter (CC-ALF).

[0040] Optionally, the overall structure and loop filtering process of VVC is shown in FIG. 4, and its overall procedure may be similar to that of the encoder shown in FIG. 3. In loop filtering, ALF and CC-ALF are a kind of Wiener filter, and can adaptively determine filter coefficients according to the contents of different video components, so that the Mean Square Error (MSE for short) between the reconstructed components and the original components can be reduced. Here, the input of ALF is the reconstructed pixel value after DF and SAO filtering, and the output is the enhanced reconstructed luma image and reconstructed chroma image. Meanwhile, the input of CC-ALF is the luma component after DF and SAO filtering and before ALF processing, and the output is the correction value of the corresponding chroma component. That is, CC-ALF only acts on the chroma component, specifically, by utilizing the correlation between the luma component and the chroma component, the correction value of the chroma component is obtained by linear filtering of the luma component, and the correction value is added to the chroma component after ALF filtering to obtain the final reconstructed chroma component. As a kind of adaptive filter, the Wiener filter can generate different filtering coefficients for video content with different characteristics, so ALF and CC-ALF need to classify video content and use corresponding filters for each category of video content. In the current VVC design, the ALF of the luma component supports 25 different categories of filters, the ALF of each chroma component supports up to 8 different categories of filters, and the CC-ALF of each chroma component supports up to 4 different categories of filters.

[0041]

number

[0042]

number

[0043] In the above equation, R(k,l) represents a reconstructed pixel value at the (k,l) position before ALF filtering, R(k-1,l) represents a reconstructed pixel value at the (k-1,l) position before ALF filtering, R(k+1,l) represents a reconstructed pixel value at the (k+1,l) position before ALF filtering, R(k,l-1) represents a reconstructed pixel value at the (k,l-1) position before ALF filtering, and R(k,l+1) represents a reconstructed pixel value at the (k,l+1) position before ALF filtering. R(k-1,l-1) represents the reconstructed pixel value at the (k-1,l-1) position before being ALF filtered, R(k+1,l+1) represents the reconstructed pixel value at the (k+1,l+1) position before being ALF filtered, R(k-1,l+1) represents the reconstructed pixel value at the (k-1,l+1) position before being ALF filtered, and R(k+1,l-1) represents the reconstructed pixel value at the (k+1,l-1) position before being ALF filtered.

[0044]

number

[0045] Here, i and j represent the pixel coordinates of the upper left corner of a 4×4 pixel block.

[0046]

number

[0047]

number

[0048] The directional feature D is derived by comparing the maximum and minimum values ​​of the gradient values ​​in the four directions obtained from equations (8) and (9), and more specifically, this is done as follows.

[0049]

number

[0050] Here, t1 and t2 are set constants.

[0051]

number

[0052] Also, before filtering each 4x4 luma component pixel block, a geometric transformation including no transformation, diagonal transformation, vertical flip, and rotation transformation is performed on the filter coefficients and corresponding clipping values ​​according to the gradient value of the current block according to the rules shown in Table 1 below. Here, applying a geometric transformation to the filter coefficients is equivalent to applying a geometric transformation to the pixel values ​​without changing the coefficients and then filtering them, and the purpose of the geometric transformation is to reduce the number of classifications required for the ALF by aligning the orientation of the contents of different blocks as much as possible, so that different pixels share the same filter coefficients. Using geometric transformation, the actual classification can be increased from 25 categories to 100 categories without increasing the number of ALF filters, improving their adaptability.

[0053] [Table 1]

[0054] The classification and geometric transformation process of the luma component pixel blocks according to ALF has been described above. The filtering and classification process according to CC-ALF will now be described.

[0055] CC-ALF generates the corresponding correction value for each chroma component by linearly filtering the luma component, and its procedure and relationship with ALF are shown in Figure 5. Yis input to the ALF filter, the luma component is filtered, and the luma component value Y is output. At the same time, the luma component is SAO filtered and its value R is Y is input to the CC-ALF filter, and filtering is performed on the two chroma components Cb and Cr, respectively, to obtain the correction value ΔR Cb and ΔR Cr The values ​​after the two chroma components are SAO filtered are input to the ALF filter to filter the chroma components, and then the correction value ΔR is applied to the filtering results of the two chroma components by the ALF filter. Cb and ΔR Cr and finally outputs the chroma component values ​​Cb and Cr.

[0056] Specifically, the filtering process by CC-ALF can be shown in the following equation (11).

[0057]

number

[0058] Here, ΔR i (x,y) represents the correction value (i.e., offset value) of chroma component i at sample position (x,y). i represents the filtering region that the CC-ALF filter supports in the luma component. i (x0, y0) represents the filter coefficient corresponding to chroma component i. Y represents the luma component. (x c ,y C ) represents the position of the luma component obtained from the chroma components. (x0, y0) represents the offset position corresponding to the luma component, which is obtained by transforming the coordinates of the chroma component according to the luma and chroma scaling relationship corresponding to the video sequence.

[0059] CC-ALF supports a 3 × 4 diamond filter as shown in Figure 6. Compared with ALF, the filter coefficients of CC-ALF are free from the symmetry restriction, so they can flexibly adapt to the relative relationships between multiple types of luma and chroma components. In addition, in order to reduce the number of filter coefficients that need to be transmitted, in the current VVC design, CC-ALF imposes the following two restrictions on its filter coefficients: 1. The sum of all coefficients of CC-ALF is restricted to 0, so for a 3 × 4 diamond filter, only seven filter coefficients need to be calculated and transmitted, and the filter coefficient at the center position can be automatically estimated on the decoding side according to this condition. 2. The absolute value of each filter coefficient that needs to be transmitted must be a power of 2 and can be represented by a maximum of 6 bits, so the absolute value of the filter coefficients of CC-ALF takes the value of {0, 2, 4, 8, 16, 32, 64}. In this design, shift operations can be used instead of multiplication operations to reduce the number of multiplication operations.

[0060] Unlike ALF for the luma component, which supports classification and adaptive selection at the sub-block level, CC-ALF only supports classification and adaptive selection at the CTU level: for each chroma component, all chroma pixels in one CTU belong to the same category and use the same filter.

[0061] Also, one APS (Adaptation Parameter Set) can include up to 25 pairs of luma filter coefficients and corresponding clipping value indexes, up to 8 pairs of chroma filter coefficients and corresponding clipping value indexes for two chroma components, and up to 4 pairs of CC-ALF filter coefficients for each chroma component. In order to save code rate, in the case of the ALF filter of the luma component, filter coefficients of different categories can be merged so that multiple categories share one set of filter coefficients, and the encoding side determines which category coefficients can be merged by rate-distortion optimization (abbreviated as RDO) and at the same time marks the index of the APS to be used for the current slice in the slice header. CC-ALF supports adaptation at the CTU level, and when there are multiple filters, whether to use CC-ALF and the index of the filter to be used are adaptively selected for each chroma component at the CTU level.

[0062] In the current CC-ALF design, it only supports up to four filters per chroma component, i.e., it only supports up to four different categories. The upper limit of categories causes poor discrimination between different categories, and the coarse adaptive selection at the CTU level causes poor discrimination between different contents, both of which reduce the accuracy of content classification in CC-ALF, reduce the adaptive ability of CC-ALF, and further affect the performance of CC-ALF.

[0063] Based on this, the technical proposal of the embodiment of the present application proposes a new technical proposal that can increase the block classification categories when performing CC-ALF on chroma components, improve the accuracy of content classification in CC-ALF, and further improve the adaptive ability and filtering performance of CC-ALF, which is advantageous in improving encoding and decoding efficiency.

[0064] The implementation details of the technical solutions of the embodiments of the present application are described in detail below.

[0065] Fig. 7 shows a flow chart of a loop filtering method according to an embodiment of the present application, which can be performed by a video encoding device or a video decoding device. As shown in Fig. 7, the loop filtering method includes at least steps S710 to S730, which will be described in detail below.

[0066] In step S710, block classification information is obtained when performing adaptive loop filtering on the luma component in a video image frame.

[0067] Here, the block classification information is information indicating the classification result at the subblock level, and the block classification information may be identification information corresponding to the classification category, and specifically, for example, may be a classification index.

[0068] Optionally, for the block classification process when performing ALF on the luma component, specific classification indexes can be calculated by referring to the above-mentioned equations (1) to (10), and further, block classification information when performing ALF on the luma component can be determined.

[0069] In step S720, block classification information when performing cross-component adaptive loop filtering on chroma components in a video image frame is determined based on the block classification information when performing adaptive loop filtering on the luma component.

[0070] In one embodiment of the present application, the classification result of a sub-block when performing ALF on a luma component can be the classification result of a block of the same size when performing CC-ALF on a chroma component. For example, if the classification result of performing ALF on the luma component of a certain sub-block indicates that the sub-block belongs to the third category, the sub-block also belongs to the third category when performing CC-ALF on the chroma component of the sub-block, that is, the category when performing ALF on the luma component of the sub-block can be the same as the category when performing CC-ALF.

[0071] Since there are many classification categories when performing ALF on the luma component, by using the classification result of a sub-block when performing ALF on the luma component as the classification result of a block of the same size when performing CC-ALF on the chroma component, it is possible to increase the number of block classification categories when performing CC-ALF on the chroma component, thereby improving the accuracy of content classification in CC-ALF. In addition, it is possible to improve the adaptation ability and filtering performance of CC-ALF, which is advantageous for improving the encoding / decoding efficiency.

[0072] In one embodiment of the present application, the classification result of a sub-block and the corresponding geometric transformation type when performing ALF on a luma component can be the classification result of a block of the same size and the corresponding geometric transformation type when performing CC-ALF on a chroma component. The technical solution of this embodiment can also increase the block classification categories when performing CC-ALF on a chroma component, improve the accuracy of content classification in CC-ALF, and improve the adaptive ability and filtering performance of CC-ALF, which is favorable for improving the encoding and decoding efficiency.

[0073] In step S730, a corresponding filter coefficient is selected based on the block classification information when performing cross-component adaptive loop filtering on the chroma components, and cross-component adaptive loop filtering is performed on the chroma components.

[0074] Optionally, a corresponding filter coefficient can be determined for each category of block classification when performing CC-ALF on the chroma components, and further, based on block classification information when performing CC-ALF on the chroma components, a corresponding filter coefficient can be selected to perform CC-ALF processing on the chroma components.

[0075] In an embodiment of the present application, the merged result of various filters when performing CC-ALF on chroma components can also be determined based on the merged result of various filters when performing ALF on luma components. For example, the merged result of various filters when performing ALF on luma components is the merged result of various filters when performing CC-ALF on chroma components. In a specific implementation process, the merging of various filters when performing ALF can be performed by traversing each possible merging method to merge at least two ALF filters, calculating the corresponding rate-distortion cost, and obtaining the merged result according to the merging method with the smallest rate-distortion cost, which is the merged result of various filters when performing ALF. Merging filters can transmit as few filter coefficients as possible and save the code rate.

[0076] In an embodiment of the present application, the merging results of various filters when performing ALF on the luma component and CC-ALF on the chroma components can also be determined based on the rate-distortion cost of performing filter merging during ALF of the luma component and the rate-distortion cost of performing filter merging during CC-ALF of the chroma components. In the technical solution of this embodiment, the ALF of the luma component and the CC-ALF of the chroma components can be jointly optimized to simultaneously determine the merging results of various filters by the ALF of the luma component and the CC-ALF of the chroma components.

[0077] In one embodiment of the present application, the number of filters available for performing CC-ALF on chroma components can be determined based on the number of filters determined for performing ALF on luma components. For example, the number of filters determined for performing ALF on luma components can be the number of filters available for performing CC-ALF on chroma components.

[0078] It should be noted that the loop filtering method of the embodiment shown in FIG. 7 can be applied to the encoding process on the video encoding side, and can also be applied to the decoding process on the video decoding side.

[0079] Fig. 8 shows a flowchart of a video encoding method according to an embodiment of the present application, which may be performed by a video encoding device. As shown in Fig. 8, the video encoding method includes at least steps S810 to S840, which will be described in detail below.

[0080] In step S810, block classification information for performing ALF on the luma component in a video image frame is obtained.

[0081] In step S820, block classification information when performing CC-ALF on chroma components in a video image frame is determined based on block classification information when performing ALF on luma components.

[0082] In step S830, a corresponding filter coefficient is selected based on block classification information when performing CC-ALF on a chroma component, and CC-ALF processing is performed on the chroma component.

[0083] For the explanation and implementation of steps S810 to S830, the above-mentioned embodiment can be referred to.

[0084] In step S840, a video image frame is coded based on the ALF processing result of the luma component and the CC-ALF processing result of the chroma component to obtain a video bitstream. Specifically, a corresponding filter coefficient is determined based on block classification information when performing ALF on the luma component, and an ALF processing result is performed on the luma component based on the filter coefficient to obtain an ALF processing result, whereby a video image frame is coded based on the ALF processing result and the CC-ALF processing result to obtain a video bitstream.

[0085] In the video encoding method shown in FIG. 8, it is possible to increase the number of categories for block classification when performing CC-ALF on chroma components, thereby improving the accuracy of content classification in CC-ALF and further improving the adaptability and filtering performance of CC-ALF, which is advantageous for improving encoding efficiency.

[0086] In the embodiment of the present application, the block classification policy in the video encoding method shown in Fig. 8 (i.e., determining block classification information when performing CC-ALF on chroma components based on block classification information when performing ALF on luma components) can be used alone or in conjunction with other classification policies (e.g. classification policies in related art). The two cases will be described below.

[0087] When using the block classification policy shown in Figure 8 alone

[0088] In an embodiment of the present application, when the block classification policy shown in Fig. 8 is used alone, the encoding side can encode a first flag bit corresponding to a current slice of a video image frame in a video bitstream, and the value of this first flag bit indicates whether to adopt the CC-ALF processing method proposed in the embodiment of the present application (i.e., the CC-ALF processing method adopting the block classification policy of Fig. 8) for the chroma components of a target block in the current slice. In this embodiment, since the block classification policy shown in Fig. 8 is used alone, the first flag bit corresponding to the current slice can directly indicate whether to adopt the CC-ALF processing method proposed in the embodiment of the present application for the chroma components of a target block in the current slice.

[0089] Optionally, if the value of the first flag bit is a first value (e.g., 1), it indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of some target blocks in the current slice, or it indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of all target blocks in the current slice.

[0090] If the value of the first flag bit is the second value (eg, 0), it indicates that the CC-ALF processing method proposed in the embodiment of the present application is not adopted for the chroma components of all target blocks in the current slice.

[0091] In one embodiment of the present application, the first flag bit is a slice-level flag bit, and if the value of the first flag bit indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of all target blocks in the current slice, or indicates that the CC-ALF processing method proposed in the embodiment of the present application is not adopted for the chroma components of all target blocks in the current slice, there is no need to code the block-level flag bit. On the other hand, if the value of the first flag bit indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of some target blocks in the current slice, the encoding side can obtain by encoding a second flag bit corresponding to each target block included in the current slice in the video bitstream, and the value of this second flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of the corresponding target blocks. That is, in this embodiment, the chroma components of which the CC-ALF processing method proposed in the embodiment of the present application needs to be adopted can be indicated by the block-level flag bit (i.e., the second flag bit) in addition to the slice-level flag bit.

[0092] Optionally, since there are two chroma components (Cr and Cb), for one target block, one second flag bit can be set for each of the two chroma components of the target block, and the value of each second flag bit indicates whether to adopt the CC-ALF processing method proposed in the embodiments of the present application for the corresponding chroma component in the target block.

[0093] As an optional processing form, the two chroma components (Cr and Cb) of the target block may correspond to the same second flag bit, and the value of this same second flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the two chroma components in the target block.

[0094] Similarly, for the current slice, one first flag bit can be set for each of the two chroma components of the current slice, and the value of each first flag bit indicates whether to adopt the CC-ALF processing method proposed in the embodiment of the present application for the corresponding chroma component in the current slice.

[0095] As an optional processing form, two chroma components of the current slice may correspond to the same first flag bit, and the value of this same first flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the two chroma components in the current slice.

[0096] In addition, when the slice-level flag bits are set to one first flag bit for each of the two chroma components, the block-level flag bits can also be set to one second flag bit for each of the two chroma components, and when the block-level flag bits are set to one second flag bit for each of the two chroma components, the slice-level flag bits only need to be set to one first flag bit for each of the two chroma components.

[0097] In one embodiment of the present application, the encoding side can determine whether to adopt the CC-ALF processing method proposed in the embodiment of the present application for the chroma components of each target block by a rate-distortion optimization method. Specifically, the encoding side calculates a first rate-distortion cost when the CC-ALF processing proposed in the embodiment of the present application is adopted for the chroma components of each target block, and calculates a second rate-distortion cost when the CC-ALF processing is not performed for the chroma components of each target block, and then can determine whether to adopt the CC-ALF processing method proposed in the embodiment of the present application for the chroma components of each target block based on the first rate-distortion cost and the second rate-distortion cost. For example, if the first rate-distortion cost corresponding to the chroma components of a certain target block is smaller than the second rate-distortion cost, it suggests that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of this target block. Moreover, if the first rate-distortion cost corresponding to a chroma component of a certain target block is greater than the second rate-distortion cost, it is suggested that the CC-ALF processing method proposed in the embodiment of the present application is not adopted for the chroma component of this target block. By calculating the rate-distortion cost and determining whether to adopt the CC-ALF processing method proposed in the embodiment of the present application, it is possible to reduce the rate-distortion cost as much as possible while ensuring the coding efficiency.

[0098] In addition, when determining whether to adopt the CC-ALF processing method proposed in the embodiments of the present application for the chroma components of each target block, the determination can be made separately for the two chroma components of each target block (i.e., the corresponding rate-distortion costs can be calculated separately), or the determination can be made simultaneously for the two chroma components of each target block (i.e., the rate-distortion costs can be added).

[0099] When using the block classification policy shown in Figure 8 and other classification policies at the same time

[0100] In an embodiment of the present application, when the block classification policy shown in FIG. 8 and other classification policies are used simultaneously, a third flag bit corresponding to the current slice needs to be coded in the video bitstream during coding, and the value of the third flag bit indicates whether CC-ALF processing is performed on the chroma components of the target block in the current slice. If CC-ALF processing is required on the chroma components of the target block in the current slice, an index of the corresponding adaptive parameter set is coded in the video bitstream. Then, in the adaptive parameter set corresponding to the index of the adaptive parameter set, a fourth flag bit corresponding to the chroma components of the current slice is coded, and the value of the fourth flag bit indicates the classification policy adopted when CC-ALF processing is performed on the chroma components of the current slice. This classification policy includes the block classification policy shown in FIG. 8 (i.e., determining block classification information when performing CC-ALF on chroma components based on block classification information when performing ALF on luma components) or other classification policies.

[0101] In other words, when the block classification policy shown in FIG. 8 and other classification policies are used simultaneously, it is necessary to indicate by a slice-level flag bit (i.e., the third flag bit) whether CC-ALF processing (which may be the CC-ALF processing method proposed in the embodiment of the present application or other CC-ALF processing method) is performed on the chroma components of the target block in the current slice. When CC-ALF processing is performed, it is necessary to explicitly indicate whether the block classification policy shown in FIG. 8 or other classification policies are adopted by encoding a flag bit (i.e., the fourth flag bit) of the classification policy in the corresponding adaptation parameter set (referenced by the index of the adaptation parameter set). For example, a value of 1 for the fourth flag bit indicates that the block classification policy shown in FIG. 8 should be adopted. Also, a value of 0 for the fourth flag bit indicates that other classification policies should be adopted.

[0102] Note that for the current slice, if the current slice references an APS of an already coded frame, the corresponding fourth flag bit does not need to be coded again because it has already been coded in the previous APS. If the APS referenced by the current slice has not yet been coded (e.g., the APS of the current frame), the fourth flag bit needs to be coded in the APS.

[0103] Optionally, when the value of the third flag bit indicates that CC-ALF processing is required for chroma components of some target blocks in the current slice, in order to distinguish which target blocks need to be CC-ALF processed, a fifth flag bit corresponding to each target block included in the current slice may be coded in the video bitstream, and the value of the fifth flag bit indicates whether CC-ALF processing is required for the chroma components of the corresponding target block. For example, if the value of the fifth flag bit corresponding to a target block is 1, it indicates that CC-ALF processing is required for the chroma components of the target block. Also, if the value of the fifth flag bit corresponding to a target block is 0, it indicates that CC-ALF processing is not required for the chroma components of the target block.

[0104] Note that if the slice-level flag bit (i.e., the third flag bit) indicates that CC-ALF processing does not need to be performed on the chroma components of all target blocks in the current slice or that CC-ALF processing needs to be performed on the chroma components of all target blocks, then there is no need to introduce a block-level flag bit (i.e., the fifth flag bit).

[0105] As an example, if the value of a slice-level flag bit (i.e., the third flag bit) indicates that CC-ALF processing needs to be performed on some target blocks in a slice, and the classification policy flag bit (i.e., the fourth flag bit) is coded to indicate that the block classification policy shown in Figure 8 should be adopted, then when the block-level flag bit (i.e., the fifth flag bit) of a target block indicates that CC-ALF processing needs to be performed, CC-ALF processing will be performed on that target block by adopting the block classification policy shown in Figure 8.

[0106] Optionally, since there are two chroma components (Cr and Cb), for one slice, the same technical solution as in the above embodiment can be adopted, that is, one third flag bit can be set for each of the two chroma components of the current slice, or the same third flag bit can be set for the two chroma components of the current slice. Similarly, for the target block, one fifth flag bit can be set for each of the two chroma components of the target block, or the same fifth flag bit can be set for the two chroma components of the target block. Similarly, one fourth flag bit can be set in the APS for each of the two chroma components, or the same fourth flag bit can be set in the APS for the two chroma components. For a specific description, the technical solution in the above embodiment can be referred to, and detailed description is omitted.

[0107] In one embodiment of the present application, the encoding side can determine whether to adopt the block classification policy shown in FIG. 8 or another classification policy when performing CC-ALF processing on the chroma components of the current slice by using a rate-distortion optimization method. Specifically, the encoding side calculates a third rate-distortion cost when performing CC-ALF processing by adopting the block classification policy shown in FIG. 8 on the chroma components of all target blocks in the current slice, and calculates a fourth rate-distortion cost when performing CC-ALF processing by adopting another classification policy on the chroma components of all target blocks in the current slice, and then can determine a classification policy to be adopted when performing CC-ALF processing on the chroma components of the current slice based on the third rate-distortion cost and the fourth rate-distortion cost. For example, if the third rate-distortion cost corresponding to a certain slice is smaller than the fourth rate-distortion cost, it suggests that the block classification policy shown in FIG. 8 is adopted when performing CC-ALF processing on the chroma components of this slice. Furthermore, if the third rate-distortion cost corresponding to a slice is greater than the fourth rate-distortion cost, it suggests that a different classification policy be adopted when performing CC-ALF processing for the chroma components of this slice.

[0108] In one embodiment of the present application, the size information of the target block in the above embodiment may be preset at the encoding side and the decoding side, or may be determined by the encoding side, and after the size information of the target block is determined, the size information of the target block is coded in a sequence parameter set, a picture parameter set, a picture header, or a slice header of a video bitstream. For example, the target block may be a CTU, or a block smaller than a CTU.

[0109] 9 shows a flowchart of a video decoding method according to an embodiment of the present application, which can be performed by a video decoding device. As shown in FIG. 9, the video decoding method includes at least steps S910 to S940, which are described in detail below.

[0110] In step S910, block classification information is obtained when performing ALF on the luma component in a video image frame.

[0111] In step S920, block classification information when performing CC-ALF on chroma components in a video image frame is determined based on block classification information when performing ALF on luma components.

[0112] In step S930, a corresponding filter coefficient is selected based on block classification information when performing CC-ALF on a chroma component, and CC-ALF processing is performed on the chroma component.

[0113] For the explanation and implementation of steps S910 to S930, the above-mentioned embodiment can be referred to.

[0114] In step S940, the video bitstream is decoded based on the ALF processing result of the luma component and the CC-ALF processing result of the chroma component.

[0115] Specifically, based on the block classification information when performing ALF on the luma component, corresponding filter coefficients are determined, and ALF processing is performed on the luma component based on the filter coefficients to obtain an ALF processing result, thereby enabling the video bitstream to be decoded based on the ALF processing result and the CC-ALF processing result.

[0116] In the video decoding method shown in FIG. 9, it is possible to increase the number of categories for block classification when performing CC-ALF on chroma components, thereby improving the accuracy of content classification in CC-ALF and further improving the adaptability and filtering performance of CC-ALF, which is advantageous in improving the efficiency of encoding and decoding.

[0117] In the embodiment of the present application, the block classification policy in the video decoding method shown in Fig. 9 (i.e., determining block classification information when performing CC-ALF on chroma components based on block classification information when performing ALF on luma components) can be used alone or in conjunction with other classification policies (e.g., classification policies in related art). The two cases will be described below.

[0118] When using the block classification policy shown in Figure 9 alone:

[0119] In an embodiment of the present application, when the block classification policy shown in FIG. 9 (the block classification policy shown in FIG. 9 is the same as the block classification policy shown in FIG. 8) is used alone, the decoding side can decode and obtain a first flag bit corresponding to the current slice from the video bitstream, and the value of this first flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application (i.e., the CC-ALF processing method adopting the block classification policy of FIG. 9) is adopted for the chroma components of the target block in the current slice. In this embodiment, since the block classification policy shown in FIG. 9 is used alone, the first flag bit corresponding to the current slice can directly indicate whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of the target block in the current slice.

[0120] Optionally, if the value of the first flag bit is a first value (e.g., 1), it may indicate that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of some target blocks in the current slice, or it may indicate that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of all target blocks in the current slice.

[0121] If the value of the first flag bit is the second value (eg, 0), it indicates that the CC-ALF processing method proposed in the embodiment of the present application is not adopted for the chroma components of all target blocks in the current slice.

[0122] In one embodiment of the present application, the first flag bit is a slice-level flag bit, and if the value of the first flag bit indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of all target blocks in the current slice, or indicates that the CC-ALF processing method proposed in the embodiment of the present application is not adopted for the chroma components of all target blocks in the current slice, there is no need to decode the block-level flag bit (the encoding side does not need to encode the block-level flag bit either). On the other hand, if the value of the first flag bit indicates that the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of some target blocks in the current slice, the decoding side needs to decode and obtain a second flag bit corresponding to each target block included in the current slice in the video bitstream, and the value of this second flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the chroma components of the corresponding target blocks. That is, in this embodiment, the chroma components of the target blocks for which the CC-ALF processing method proposed in the embodiment of the present application needs to be adopted can be indicated by a block-level flag bit (i.e., a second flag bit) obtained by decoding in addition to the slice-level flag bit.

[0123] Optionally, since there are two chroma components (Cr and Cb), for one target block, one second flag bit can be set for each of the two chroma components of the target block, and the value of each second flag bit indicates whether to adopt the CC-ALF processing method proposed in the embodiments of the present application for the corresponding chroma component in the target block.

[0124] As an optional processing form, the two chroma components (Cr and Cb) of the target block may correspond to the same second flag bit, and the value of this same second flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the two chroma components in the target block.

[0125] Similarly, for the current slice, one first flag bit can be set for each of the two chroma components of the current slice, and the value of each first flag bit indicates whether to adopt the CC-ALF processing method proposed in the embodiment of the present application for the corresponding chroma component in the current slice.

[0126] As an optional processing form, two chroma components of the current slice may correspond to the same first flag bit, and the value of this same first flag bit indicates whether the CC-ALF processing method proposed in the embodiment of the present application is adopted for the two chroma components in the current slice.

[0127] In addition, when the slice-level flag bits are set to one first flag bit for each of the two chroma components, the block-level flag bits can also be set to one second flag bit for each of the two chroma components, and when the block-level flag bits are set to one second flag bit for each of the two chroma components, the slice-level flag bits only need to be set to one first flag bit for each of the two chroma components.

[0128] In one embodiment of the present application, the decoding side also needs to decode and obtain an adaptive parameter set including CC-ALF filter coefficients from the video bitstream during decoding. In this case, when the value of the first flag bit indicates that the CC-ALF processing proposed in the embodiment of the present application is adopted for the chroma components of at least one target block in the current slice, the decoding side can decode and obtain an index of the adaptive parameter set corresponding to the current slice from the video bitstream, and then select a corresponding filter coefficient from the adaptive parameter set corresponding to the index of the adaptive parameter set to filter the chroma components of the corresponding target block under the current conditions.

[0129] When using the block classification policy shown in Figure 9 and other classification policies at the same time,

[0130] In an embodiment of the present application, when the block classification policy shown in FIG. 9 and other classification policies are used simultaneously, during decoding, an adaptive parameter set and a third flag bit corresponding to the current slice need to be decoded and obtained from the video bitstream, and the value of the third flag bit indicates whether CC-ALF processing is performed on the chroma components of the target block in the current slice. If CC-ALF processing is required on the chroma components of the target block in the current slice, an index of the adaptive parameter set corresponding to the current slice is decoded and obtained from the video bitstream. Then, a fourth flag bit corresponding to the chroma components of the current slice is obtained from the adaptive parameter set corresponding to the index of the adaptive parameter set, and the value of the fourth flag bit indicates the classification policy adopted when CC-ALF processing is performed on the chroma components of the current slice. This classification policy includes the block classification policy shown in FIG. 9 (i.e., determining the block classification information when performing CC-ALF on the chroma components based on the block classification information when performing ALF on the luma components) or other classification policies.

[0131] In other words, when the block classification policy shown in Fig. 9 and other classification policies are used simultaneously, it is necessary to indicate whether CC-ALF processing (which may be the CC-ALF processing method proposed in the embodiments of the present application or other CC-ALF processing methods) is performed on the chroma components of the target block in the current slice by a slice-level flag bit (i.e., the third flag bit). When CC-ALF processing is performed, it is necessary to obtain the classification policy flag bit (i.e., the fourth flag bit) by decoding in the corresponding adaptation parameter set (referenced by the adaptation parameter set index) to explicitly indicate whether the block classification policy shown in Fig. 9 or other classification policy is adopted.

[0132] Specifically, for example, if the value of the fourth flag bit corresponding to the chroma component of the current slice is a first value (e.g., 1), it is suggested that the classification policy to be adopted when performing CC-ALF processing on the chroma component of the current slice is the classification policy shown in Fig. 9. Also, if the value of the fourth flag bit corresponding to the chroma component of the current slice is a second value (e.g., 0), it is suggested that the classification policy to be adopted when performing CC-ALF processing on the chroma component of the current slice is another classification policy.

[0133] Optionally, when the value of the third flag bit indicates that CC-ALF processing is required for chroma components of some target blocks in the current slice, a fifth flag bit corresponding to each target block included in the current slice can be decoded from the video bitstream to distinguish which target blocks need to be CC-ALF processed, and the value of the fifth flag bit indicates whether CC-ALF processing is required for the chroma components of the corresponding target block. For example, if the value of the fifth flag bit corresponding to a target block is 1, it indicates that CC-ALF processing is required for the chroma components of the target block. Also, if the value of the fifth flag bit corresponding to a target block is 0, it indicates that CC-ALF processing is not required for the chroma components of the target block.

[0134] Note that if the slice-level flag bit (i.e., the third flag bit) indicates that CC-ALF processing does not need to be performed on the chroma components of all target blocks in the current slice or that CC-ALF processing needs to be performed on the chroma components of all target blocks, then there is no need to introduce a block-level flag bit (i.e., the fifth flag bit).

[0135] As an example, if the value of a slice-level flag bit (i.e., the third flag bit) indicates that CC-ALF processing needs to be performed on some target blocks in a slice, and the classification policy flag bit (i.e., the fourth flag bit) is coded to indicate that the block classification policy shown in Figure 9 should be adopted, then when the block-level flag bit (i.e., the fifth flag bit) of a target block indicates that CC-ALF processing needs to be performed, CC-ALF processing will be performed on that target block by adopting the block classification policy shown in Figure 9.

[0136] Optionally, since there are two chroma components (Cr and Cb), for one slice, the same technical solution as in the above embodiment can be adopted, that is, one third flag bit can be set for each of the two chroma components of the current slice, or the same third flag bit can be set for the two chroma components of the current slice. Similarly, for the target block, one fifth flag bit can be set for each of the two chroma components of the target block, or the same fifth flag bit can be set for the two chroma components of the target block. For a specific description, the technical solution in the above embodiment can be referred to, and detailed description is omitted.

[0137] In one embodiment of the present application, the size information of the target block in the above embodiment may be preset at the encoding side and the decoding side, or may be determined by the encoding side, and after the size information of the target block is determined, the size information of the target block is encoded in a sequence parameter set, a picture parameter set, a picture header, or a slice header of the video bitstream, so that the decoding side needs to decode the corresponding size information from the bitstream. For example, the target block may be a CTU, or a block smaller than a CTU.

[0138] The above describes the technical solutions of the embodiments of the present application from the encoding side and the decoding side, respectively. In order to more specifically describe the details of the implementation of the present application, the following provides a more detailed description of the implementation of the technical solutions of the embodiments of the present application.

[0139] In an embodiment of the present application, it is proposed to determine the classification result of the CC-ALF of the chroma component at the sub-block level according to the classification situation of the ALF of the luma component at the same sub-block level, and also to propose a method for adaptively selecting filters at different levels based on the classification result, which will be described in detail below.

[0140] In one aspect, the embodiment of the present application proposes to set the number of CC-ALF filters that can be supported for each chroma component to the number of ALF filters that can be supported for the luma component, and determine the CC-ALF classification status of the chroma components according to the ALF classification process of the luma component. The technical solutions proposed in the embodiment of the present application can be used alone or in combination.

[0141] Specifically, the classification result of the CC-ALF of the chroma components can be determined according to the classification situation at the subblock level of the ALF of the luma components.

[0142] For example, the classification result of the ALF of the luma component at the subblock level can be treated as the classification result of the CC-ALF of the same size block. Here, the classification process of the ALF of the luma component at the subblock level is as described above in equations (1) to (10).

[0143] Optionally, the classification result and corresponding geometric transformation type at the subblock level of the ALF of the luma component may be the classification result and the geometric transformation type at the same size block of the CC-ALF of the chroma component, where the classification process at the subblock level of the ALF of the luma component is as described above in Equation (1) to Equation (10).

[0144] In an embodiment of the present application, a merging process of various filters by the CC-ALF of a chroma component may be determined based on a merging process of various filters by the ALF of a luma component. For example, a merging result of various filters by the ALF of a luma component may be a merging result of various filters by the CC-ALF of a chroma component. Alternatively, the ALF of a luma component and the CC-ALF of two chroma components may be jointly optimized to simultaneously determine a merging result of various filters by the ALF of a luma component and the CC-ALF of a chroma component.

[0145] In one embodiment of the present application, the number of filters available in the CC-ALF of each chroma component can be determined based on the number of final filters in the ALF of the luma component.

[0146] In another aspect, the embodiment of the present application proposes a technical solution for adaptively selecting filter categories at different levels and transmitting filter-related parameters based on the above-mentioned CC-ALF classification method of chroma components. Specifically, the embodiment of the present application can be divided into an embodiment in which the classification method proposed in the embodiment of the present application is used alone and an embodiment in which the classification method proposed in the embodiment of the present application is used simultaneously with an existing classification method in the related CC-ALF technology.

[0147] When the classification method proposed in the embodiment of the present application is used alone and the CC-ALF selection decision is made for each of the two chroma components,

[0148] In one embodiment of the present application, when only the classification method proposed in the embodiment of the present application is used for the CC-ALF of the chroma components, the selection decision and parameter transmission of the CC-ALF can be performed for each of the two chroma components Cb and Cr.

[0149] Specifically, the CC-ALF-related parameters that need to be transmitted on the encoding side for each chroma component are as follows:

[0150] 1. A flag bit indicating whether or not to use CC-ALF at the CTU level (On / Off). For example, if this flag bit is 1, it indicates that the samples of the corresponding chroma components in the current CTU are filtered using CC-ALF (when indicating that CC-ALF is used for filtering, the classification method proposed in the embodiment of the present application is used alone, and therefore, the classification method proposed in the embodiment of the present application is adopted when filtering using CC-ALF). If this flag bit is 0, it indicates that the corresponding chroma components in the current CTU are filtered without using CC-ALF.

[0151] 2. A flag bit indicating whether to use CC-ALF at the slice level. For example, if this flag bit is 1, it indicates that CC-ALF is selected to be used for chroma components corresponding to at least one CTU in the current slice (when indicating that CC-ALF is used for filtering because the classification method proposed in the embodiment of the present application is used alone, the classification method proposed in the embodiment of the present application is adopted when filtering using CC-ALF). If this flag bit is 0, it indicates that CC-ALF is not used for chroma components corresponding to all CTUs in the current slice.

[0152] Optionally, if the flag bit for whether to use CC-ALF for the Slice level is 1, it may indicate that CC-ALF is used for the chroma components corresponding to all CTUs in the current slice.

[0153] In addition, if the flag bit indicating whether to use CC-ALF at the slice level indicates that CC-ALF is not used for chroma components corresponding to all CTUs in the current slice, or indicates that CC-ALF is used for chroma components corresponding to all CTUs in the current slice, the encoding side does not need to encode the flag bit indicating whether to use CC-ALF at the CTU level, and the decoding side does not need to decode it either.

[0154] 3. Related parameters in APS: If the CC-ALF flag bit at the slice level is 1, the coefficients of each filter in the CC-ALF filter group corresponding to the related chroma component need to be transmitted. Meanwhile, other CC-ALF related control parameters, such as the number of filters included in the filter group, filter merge index, etc., do not need to be additionally transmitted and can be estimated from the parameters corresponding to the ALF of the luma component.

[0155] The process by which the encoding side determines, for each chroma component, whether to use CC-ALF for the chroma component corresponding to the CTU level (because the classification method proposed in the embodiment of the present application is used alone, when filtering using CC-ALF, the classification method proposed in the embodiment of the present application is adopted when filtering using CC-ALF) is as follows.

[0156] A) Calculate the rate-distortion cost (RDCost) of filtering the samples of the corresponding chroma components in the current CTU without using CC-ALF.

[0157] B) For each sample of the corresponding chroma component in the current CTU, select a CC-ALF filter according to the category to which the corresponding luma component sample belongs to, and calculate the rate-distortion cost, where the category to which the luma component sample belongs does not need to be explicitly transmitted and can be estimated by the decoding side in the process of processing the luma component sample.

[0158] C) Compare the rate-distortion costs calculated for the two cases, and if the cost of not using the CC-ALF filter is smaller, determine not to use CC-ALF for the chroma component corresponding to the CTU level, and set the flag bit of CC-ALF for the CTU level to 0; otherwise, set it to 1.

[0159] When the classification method proposed in the embodiment of the present application is used alone and the CC-ALF selection decision is made jointly for two chroma components,

[0160] In one embodiment of the present application, when only the classification method proposed in the embodiment of the present application is used for the CC-ALF of the chroma components, the selection decision and parameter transmission of the CC-ALF can be performed jointly for the two chroma components Cb and Cr.

[0161] Specifically, for two chroma components, the CC-ALF related parameters that need to be transmitted on the encoding side are as follows:

[0162] 1. A flag bit indicating whether or not to use CC-ALF at the CTU level (On / Off). For example, if this flag bit is 1, it indicates that samples of two chroma components in the current CTU are filtered using CC-ALF (if filtering using CC-ALF is indicated because the classification method proposed in the embodiment of the present application is used alone, it is the classification method proposed in the embodiment of the present application that is adopted when filtering using CC-ALF). If this flag bit is 0, it indicates that two chroma components in the current CTU are filtered without using CC-ALF.

[0163] 2. A flag bit indicating whether to use CC-ALF at the slice level. For example, if this flag bit is 1, it indicates that CC-ALF is selected to be used for two chroma components of at least one CTU in the current slice (if filtering using CC-ALF is indicated because the classification method proposed in the embodiment of the present application is used alone, the classification method proposed in the embodiment of the present application is adopted when filtering using CC-ALF). If this flag bit is 0, it indicates that CC-ALF is not used for two chroma components of all CTUs in the current slice.

[0164] Optionally, if the flag bit for whether to use CC-ALF for the Slice level is 1, it can also indicate that CC-ALF is used for the two chroma components of all CTUs in the current slice.

[0165] In addition, if the flag bit indicating whether to use CC-ALF at the slice level indicates that CC-ALF is not used for the two chroma components of all CTUs in the current slice, or indicates that CC-ALF is used for the two chroma components of all CTUs in the current slice, the encoding side does not need to encode the flag bit indicating whether to use CC-ALF at the CTU level, and the decoding side does not need to decode it either.

[0166] 3. Related parameters in APS: If the CC-ALF flag bit at the slice level is 1, the coefficients of each filter in the CC-ALF filter group corresponding to the two chroma components need to be transmitted. Meanwhile, other CC-ALF related control parameters, such as the number of filters included in the filter group and the filter merge index, do not need to be additionally transmitted and can be estimated from the parameters corresponding to the ALF of the luma component.

[0167] For two chroma components, the process by which the encoding side determines whether to use CC-ALF for the two chroma components at the CTU level (when indicating that CC-ALF is used for filtering because the classification method proposed in the embodiment of the present application is used alone, the classification method proposed in the embodiment of the present application is adopted when filtering using CC-ALF) is as follows:

[0168] A) Calculate the rate-distortion cost (RDCost) of filtering samples of two chroma components in the current CTU without using CC-ALF.

[0169] B) For each sample of the two chroma components in the current CTU, select a CC-ALF filter according to the category to which the corresponding luma component sample belongs to for filtering, and calculate the total rate-distortion cost of the two chroma components, where the category to which the luma component sample belongs does not need to be explicitly transmitted, and can be estimated by the decoding side in the process of processing the luma component sample.

[0170] C) Compare the rate-distortion costs calculated for the two cases, and if the cost of not using the CC-ALF filter is smaller, decide not to use CC-ALF for the two chroma components at the CTU level, and set the flag bit of CC-ALF at the CTU level to 0; otherwise, set it to 1.

[0171] In the case where the classification method proposed in the embodiment of the present application and the existing classification method in the related CC-ALF technology are used simultaneously, and the classification method is specified for each of the two chroma components,

[0172] In one embodiment of the present application, in the CC-ALF of chroma components, when the classification method proposed in the embodiment of the present application and the existing classification method in the related CC-ALF technology are used simultaneously, a classification method can be specified for each of two chroma components Cb and Cr, and the corresponding classification method can be used for all samples of the corresponding chroma components in the current frame to make the selection decision of CC-ALF and the transmission of related parameters, respectively.

[0173] Specifically, the CC-ALF-related parameters that need to be transmitted on the encoding side for each chroma component are as follows:

[0174] 1. A flag bit indicating whether or not to use CC-ALF for the CTU level (On / Off). For example, if this flag bit is 1, it indicates that the samples of the corresponding chroma components in the current CTU are filtered using CC-ALF (the classification method specifically adopted during filtering may be the classification method proposed in the embodiments of the present application, or may be an existing classification method in the related CC-ALF technology, and which one is specifically adopted needs to be further indicated by a flag bit in the APS). If this flag bit is 0, it indicates that CC-ALF filtering is not used for the corresponding chroma components in the current CTU.

[0175] 2. A flag bit indicating whether or not to use CC-ALF at the slice level. For example, if this flag bit is 1, it indicates that CC-ALF is selected to be used for chroma components corresponding to at least one CTU in the current slice (similarly, the classification method specifically used during filtering may be the classification method proposed in the embodiment of the present application or an existing classification method in the related CC-ALF technology, and which one is specifically adopted needs to be further indicated by a flag bit in the APS). If this flag bit is 0, it indicates that CC-ALF is not used for chroma components corresponding to all CTUs in the current slice.

[0176] Optionally, if the flag bit for whether to use CC-ALF for the Slice level is 1, it may indicate that CC-ALF is used for the chroma components corresponding to all CTUs in the current slice.

[0177] In addition, if the flag bit indicating whether to use CC-ALF at the slice level indicates that CC-ALF is not used for chroma components corresponding to all CTUs in the current slice, or indicates that CC-ALF is used for chroma components corresponding to all CTUs in the current slice, the encoding side does not need to encode the flag bit indicating whether to use CC-ALF at the CTU level, and the decoding side does not need to decode it either.

[0178] 3. If CC-ALF needs to be used, an index of one APS should be indicated, and the classification method to be used for the corresponding chroma component in the APS corresponding to this index should be indicated by one classification method flag bit. For example, if this classification method flag bit is 0, it indicates that the existing classification method in the related CC-ALF technology is used, and if this classification method flag bit is 1, it indicates that the classification method proposed in the embodiment of the present application is used.

[0179] 4. If the classification method flag bit in the APS is 0, it indicates that the existing classification method in the related CC-ALF technology needs to be used, and further, the related parameters of each level can be transmitted according to the existing design in the related CC-ALF technology.

[0180] 5. If the classification method flag bit in the APS is 1, it indicates that the classification method proposed in the embodiment of the present application needs to be adopted, and further, the relevant parameters of each level can be transmitted according to the method in the above embodiment.

[0181] The process by which the encoding side selects and determines the CC-ALF classification method for each chroma component is as follows.

[0182] A) According to the existing classification method in the related CC-ALF technology, make CC-ALF decisions for all CTUs in the current slice, and obtain the optimal rate-distortion cost of CC-ALF for the current slice.

[0183] B) According to the classification method proposed in the embodiment of this application, make CC-ALF decisions for all CTUs in the current slice, and obtain the optimal rate-distortion cost of the current slice under this classification method.

[0184] C) Compare the rate-distortion costs of the two slice levels, and set the classification method flag bit in the APS to indicate the classification method with the smaller rate-distortion cost.

[0185] When the classification method proposed in the embodiment of the present application and the existing classification method in the related CC-ALF technology are used simultaneously and the classification method is jointly specified for two chroma components,

[0186] In one embodiment of the present application, when the classification method proposed in the embodiment of the present application and the existing classification method in the related CC-ALF technology are used simultaneously in the CC-ALF of the chroma components, the two chroma components Cb and Cr can share the classification method flag bit in one APS, so that the same classification method can be used for all samples of the two chroma components in the current frame, and the selection decision of CC-ALF and the transmission of related parameters can be made for the two chroma components Cb and Cr.

[0187] Specifically, for two chroma components, the CC-ALF related parameters that need to be transmitted on the encoding side are as follows:

[0188] 1. A flag bit indicating whether or not to use CC-ALF for the CTU level (On / Off). For example, if this flag bit is 1, it indicates that the two chroma components in the current CTU are filtered using CC-ALF (the classification method specifically adopted during filtering may be the classification method proposed in the embodiment of the present application, or may be an existing classification method in the related CC-ALF technology, and which one is specifically adopted needs to be further indicated by a flag bit in the APS). If this flag bit is 0, it indicates that CC-ALF filtering is not used for the two chroma components in the current CTU.

[0189] 2. A flag bit indicating whether or not to use CC-ALF at the slice level. For example, if this flag bit is 1, it indicates that CC-ALF is used for two chroma components of at least one CTU in the current slice (similarly, the classification method specifically adopted during filtering may be the classification method proposed in the embodiment of the present application, or may be an existing classification method in the related CC-ALF technology, and which one is specifically adopted needs to be further indicated by a flag bit in the APS). If this flag bit is 0, it indicates that CC-ALF is not used for two chroma components of all CTUs in the current slice.

[0190] Optionally, if the flag bit for whether to use CC-ALF for the Slice level is 1, it can also indicate that CC-ALF is used for the two chroma components of all CTUs in the current slice.

[0191] In addition, if the flag bit indicating whether to use CC-ALF at the slice level indicates that CC-ALF is not used for the two chroma components of all CTUs in the current slice, or indicates that CC-ALF is used for the two chroma components of all CTUs in the current slice, the encoding side does not need to encode the flag bit indicating whether to use CC-ALF at the CTU level, and the decoding side does not need to decode it either.

[0192] 3. If CC-ALF needs to be used, an index of one APS should be indicated, and in the APS corresponding to this index, the classification method of the two chroma components should be indicated by one classification method flag bit. For example, if this classification method flag bit is 1, it indicates that the classification method proposed in the embodiment of the present application is used for all samples of the two chroma components. If this classification method flag bit is 0, it indicates that the existing classification method in the related CC-ALF technology is used for all samples of the two chroma components.

[0193] 4. If the classification method flag bit in the APS is 0, it suggests using the existing classification method in the related CC-ALF technology for all samples of the two chroma components, and further, the related parameters of each level can be transmitted according to the existing design in the related CC-ALF technology.

[0194] 5. If the classification method flag bit in the APS is 1, it indicates that the classification method proposed in the embodiment of the present application is used for all samples of the two chroma components, and further, the related parameters of each level can be transmitted according to the method described in the previous embodiment.

[0195] The process by which the encoding side selects and determines the CC-ALF classification method for two chroma components is as follows.

[0196] A) For two chroma components Cb and Cr, make CC-ALF decisions for all CTUs in the current slice according to existing classification methods in the relevant CC-ALF techniques, and obtain the optimal rate-distortion cost of CC-ALF for the sum of the two chroma components in the current slice.

[0197] B) For two chroma components Cb and Cr, make CC-ALF decisions for all CTUs in the current slice according to the classification method proposed in the embodiment of the present application, and obtain the optimal rate-distortion cost of CC-ALF for the sum of the two chroma components in the current slice under the current classification method.

[0198] C) The total rate-distortion costs of the two chroma components at the two slice levels are compared, and the classification flag bit in the APS is set to indicate the classification method with the smaller rate-distortion cost.

[0199] In the above two embodiments, the flag bit indicating whether or not to use CC-ALF at the CTU level, the flag bit indicating whether or not to use CC-ALF at the Slice level, and the classification method flag bit in APS may be set as one flag bit for each chroma component (i.e., two CTU level flag bits, two Slice level flag bits, and two APS level flag bits exist corresponding to the two chroma components, respectively), or only one flag bit may be set for two chroma components (i.e., one CTU level flag bit, one Slice level flag bit, and one APS level flag bit exist corresponding to these two chroma components).

[0200] In another embodiment of the present application, one APS-level flag bit may be set corresponding to two chroma components, and two Slice-level flag bits and two CTU-level flag bits may be set, i.e., two CTU-level flag bits and two Slice-level flag bits exist corresponding to two chroma components, respectively.

[0201] Of course, one APS-level flag bit may be set corresponding to two chroma components, one Slice-level flag bit may be set corresponding to two chroma components, and two CTU-level flag bits may be set, i.e., two CTU-level flag bits may exist corresponding to two chroma components, respectively.

[0202] Note that while the above-described embodiments of the present application have been described using CTU-level blocks as an example, other embodiments of the present application may be used to process blocks of other sizes, such as 64x64 or other smaller sizes in addition to CTU-level blocks of size 128x128.

[0203] Optionally, the size of the block level unit for which the block level CC-ALF filtering is selected can be specified simultaneously at the encoding side and the decoding side, which eliminates the need to transmit the size information of the block level unit. In this case, it is necessary to transmit one flag bit for each block level unit to indicate whether CC-ALF is used for the corresponding block unit.

[0204] Optionally, the coding side can select whether to use block-level CC-ALF filtering, write the size of the corresponding block-level unit into the bitstream, and the decoding side can analyze and obtain the size information of the corresponding block-level unit. This size information can be written into the Sequence Parameter Set (SPS), Picture Parameter Set (PPS), Picture Header, or Slice Header. In addition, one flag bit needs to be transmitted for each block-level unit to indicate whether to use CC-ALF for the corresponding block unit.

[0205] Although each step in the flowchart of each embodiment described above is shown sequentially as indicated by the arrows, it will be understood that these steps are not necessarily performed sequentially in the order indicated by the arrows. Unless otherwise specified in this specification, there is no strict order restriction on the execution of these steps, and these steps may be performed in other orders. And, at least some of the steps in the flowchart of each embodiment described above may include multiple sub-steps or multiple stages, and these sub-steps or stages do not necessarily have to be performed at the same time, but may be performed at different times, and the order of execution of these sub-steps or stages does not necessarily have to be performed sequentially, but may be performed alternately or alternatively with other steps or at least some of the sub-steps or stages of other steps.

[0206] Hereinafter, an apparatus embodiment of the present application that can be used to perform the method in the above-mentioned embodiment of the present application will be described. For details not disclosed in the apparatus embodiment of the present application, reference can be made to the above-mentioned method embodiment of the present application.

[0207] FIG. 10 shows a block diagram of a loop filtering apparatus according to an embodiment of the present application, which may be provided in a video encoding device or a video decoding device.

[0208] As shown in FIG. 10, a loop filtering apparatus 1000 according to an embodiment of the present application includes an obtaining unit 1002, a determining unit 1004, and a filtering unit 1006.

[0209] Wherein, the obtaining unit 1002 is configured to obtain block classification information when performing adaptive loop filtering ALF on a luma component in a video image frame. The determining unit 1004 is configured to determine, according to the block classification information when performing ALF on the luma component, block classification information when performing cross-component adaptive loop filtering CC-ALF on a chroma component in the video image frame. The filtering unit 1006 is configured to select corresponding filter coefficients based on the block classification information when performing CC-ALF on the chroma components, and perform CC-ALF processing on the chroma components.

[0210] In some embodiments of the present application, based on the aforementioned aspects, the determining unit 1004 is configured to: determine a classification result of a sub-block when performing ALF on the luma component as a classification result of a block of the same size when performing CC-ALF on the chroma components; or determine a classification result of a sub-block and a corresponding geometric transformation type when performing ALF on the luma component as a classification result of a block of the same size and a geometric transformation type when performing CC-ALF on the chroma components.

[0211] In some embodiments of the present application, based on the aforementioned aspects, the determining unit 1004 is further configured to determine a merging result of various filters when performing CC-ALF on the chroma components based on a merging result of various filters when performing ALF on the luma component.

[0212] In some embodiments of the present application, based on the aforementioned aspects, the determining unit 1004 is further configured to determine a merging result of various filters when performing ALF on the luma component and when performing CC-ALF on the chroma components based on a rate-distortion cost of performing filter merging during ALF of the luma component and a rate-distortion cost of performing filter merging during CC-ALF of the chroma components.

[0213] In some embodiments of the present application, based on the aforementioned aspects, the determining unit 1004 is further configured to determine a number of available filters when performing CC-ALF on the chroma components based on the number of filters determined when performing ALF on the luma component.

[0214] FIG. 11 shows a block diagram of a video decoding apparatus according to one embodiment of the present application, which may be provided in a video decoding device.

[0215] As shown in FIG. 11, a video decoding device 1100 according to an embodiment of the present application includes: an obtaining unit 1102, a determining unit 1104, a filtering unit 1106, and a first processing unit 1108.

[0216] Wherein, the obtaining unit 1102 is configured to obtain block classification information when performing adaptive loop filtering ALF on a luma component in a video image frame. The determining unit 1104 is configured to determine, based on the block classification information when performing ALF on the luma component, block classification information when performing cross-component adaptive loop filtering CC-ALF on a chroma component in the video image frame. The filtering unit 1106 is configured to select corresponding filter coefficients based on the block classification information when performing CC-ALF on the chroma components, and perform CC-ALF processing on the chroma components. The first processing unit 1108 is configured to decode a video bitstream based on the ALF processing result of the luma component and the CC-ALF processing result of the chroma components.

[0217] In some embodiments of the present application, based on the above-mentioned aspects, the video decoding device 1100 further includes a first decoding unit configured to decode and obtain a first flag bit corresponding to a current slice from a video bitstream before determining block classification information when performing CC-ALF on chroma components in the video image frame based on block classification information when performing ALF on the luma component, where a value of the first flag bit indicates whether or not to adopt the CC-ALF processing on chroma components of a target block in the current slice.

[0218] In some embodiments of the present application, based on the above-mentioned aspects, if the value of the first flag bit is a first value, it indicates that the CC-ALF processing is adopted for chroma components of some target blocks in the current slice, or it indicates that the CC-ALF processing is adopted for chroma components of all target blocks in the current slice, and if the value of the first flag bit is a second value, it indicates that the CC-ALF processing is not adopted for chroma components of all target blocks in the current slice.

[0219] In some embodiments of the present application, based on the above-mentioned aspects, the first decoding unit is further configured to, when the value of the first flag bit indicates that the CC-ALF processing is to be adopted for chroma components of some target blocks in the current slice, decode and obtain, from the video bitstream, a second flag bit corresponding to each target block included in the current slice, wherein the value of the second flag bit indicates whether or not the CC-ALF processing is to be adopted for the chroma components of the corresponding target blocks.

[0220] In some embodiments of the present application, based on the above-mentioned aspects, each of the two chroma components of the target block corresponds to one second flag bit, and the value of each second flag bit indicates whether or not the CC-ALF processing is adopted for the corresponding chroma component in the target block, or the two chroma components of the target block correspond to the same second flag bit, and the value of the same second flag bit indicates whether or not the CC-ALF processing is adopted for the two chroma components in the target block.

[0221] In some embodiments of the present application, based on the above-mentioned aspects, the first decoding unit is further configured to decode an adaptive parameter set from the video bitstream, and if the value of the first flag bit indicates that the CC-ALF processing is adopted for at least one chroma component of a target block in the current slice, to decode an index of an adaptive parameter set corresponding to the current slice from the video bitstream, and to select corresponding filter coefficients from the adaptive parameter set corresponding to the index of the adaptive parameter set to filter the chroma component of the target block.

[0222] In some embodiments of the present application, based on the above aspects, the current slice corresponds to one first flag bit for each of two chroma components, and the value of each first flag bit indicates whether the CC-ALF processing is adopted for the corresponding chroma component in the current slice, or the current slice corresponds to the same first flag bit for two chroma components, and the value of the same first flag bit indicates whether the CC-ALF processing is adopted for the two chroma components in the current slice.

[0223] In some embodiments of the present application, based on the above-mentioned aspects, before determining block classification information when performing CC-ALF on chroma components in the video image frame based on block classification information when performing ALF on the luma component, the video decoding device 1100 decodes from the video bitstream an adaptation parameter set and a third flag bit corresponding to a current slice, the third flag bit having a value indicating whether or not CC-ALF processing is to be performed on chroma components of a target block in the current slice, and the value of the third flag bit indicates that CC-ALF processing needs to be performed on chroma components of the target block in the current slice. and a second decoding unit configured to decode, from the video bitstream, an index of an adaptive parameter set corresponding to the current slice, if the current slice indicates a value of the adaptive parameter set corresponding to the index of the adaptive parameter set, and to obtain, from the adaptive parameter set corresponding to the index of the adaptive parameter set, a fourth flag bit corresponding to a chroma component of the current slice, the fourth flag bit having a value indicating a classification policy to be adopted when performing CC-ALF processing on the chroma component of the current slice, wherein the classification policy includes determining block classification information when performing CC-ALF on the chroma component based on block classification information when performing ALF on the luma component, or another classification policy.

[0224] In some embodiments of the present application, based on the above-mentioned aspect, if the value of the fourth flag bit corresponding to the chroma component of the current slice is a first value, it indicates that the classification policy adopted when performing CC-ALF processing on the chroma component of the current slice is to determine block classification information when performing CC-ALF on the chroma component based on block classification information when performing ALF on the luma component, and if the value of the fourth flag bit corresponding to the chroma component of the current slice is a second value, it indicates that the classification policy adopted when performing CC-ALF processing on the chroma component of the current slice is the other classification policy.

[0225] In some embodiments of the present application, based on the above-mentioned aspects, the second decoding unit is further configured to, when the value of the third flag bit indicates that CC-ALF processing is required for chroma components of some target blocks in the current slice, decode and obtain from the video bitstream a fifth flag bit corresponding to each target block included in the current slice, where the value of the fifth flag bit indicates whether CC-ALF processing is to be performed on the chroma components of the corresponding target blocks, and

[0226] In some embodiments of the present application, based on the above aspects, each of the two chroma components of the current slice corresponds to one fourth flag bit, and the value of each fourth flag bit indicates a classification policy to be adopted when performing CC-ALF processing for the corresponding chroma component in the current slice, or two chroma components of the current slice correspond to the same fourth flag bit, and the value of the same fourth flag bit indicates a classification policy to be adopted when performing CC-ALF processing for the two chroma components of the current slice.

[0227] In some embodiments of the present application, based on the aforementioned aspects, the first processing unit 1108 is further configured to determine size information of the target block according to a preset size, or to decode and obtain the size information of the target block from a sequence parameter set, a picture parameter set, a picture header or a slice header of a video bitstream.

[0228] In some embodiments of the present application, based on the above aspects, the target block comprises a coding tree unit or a block having a size smaller than the coding tree unit.

[0229] FIG. 12 shows a block diagram of a video encoding apparatus according to an embodiment of the present application, which may be provided in a video encoding device.

[0230] As shown in FIG. 12, a video encoding device 1200 according to an embodiment of the present application includes an obtaining unit 1202, a determining unit 1204, a filtering unit 1206, and a second processing unit 1208.

[0231] Here, the obtaining unit 1202 is configured to obtain block classification information when performing adaptive loop filtering ALF on a luma component in a video image frame. The determining unit 1204 is configured to determine, based on the block classification information when performing ALF on the luma component, block classification information when performing cross-component adaptive loop filtering CC-ALF on a chroma component in the video image frame. The filtering unit 1206 is configured to select corresponding filter coefficients based on the block classification information when performing CC-ALF processing on the chroma components, and perform CC-ALF processing on the chroma components. The second processing unit 1208 is configured to encode the video image frame based on the ALF processing result of the luma component and the CC-ALF processing result of the chroma components to obtain a video bitstream.

[0232] In some embodiments of the present application, based on the above aspects, the video encoding device 1200 further comprises a first encoding unit configured to encode, in the video bitstream, a first flag bit corresponding to a current slice of the video image frame, wherein a value of the first flag bit indicates whether or not to employ the CC-ALF processing for a chroma component of a target block in the current slice.

[0233] In some embodiments of the present application, based on the above-mentioned aspects, the first encoding unit is further configured to, when a value of the first flag bit indicates that the CC-ALF processing is to be adopted for chroma components of some target blocks in the current slice, encode a second flag bit corresponding to each target block included in the current slice in the video bitstream, wherein the value of the second flag bit indicates whether or not the CC-ALF processing is to be adopted for chroma components of the corresponding target block.

[0234] In some embodiments of the present application, based on the above-mentioned aspects, the first encoding unit is further configured to: before encoding a second flag bit corresponding to each target block included in the current slice in the video bitstream, calculate a first rate-distortion cost in the case of adopting the CC-ALF processing for a chroma component of each target block, and when performing the CC-ALF processing for the chroma component of each target block, the CC-ALF processing is performed by a CC-ALF filter selected based on block classification information when performing ALF on a luma component; calculate a second rate-distortion cost in the case of not performing the CC-ALF processing for the chroma component of each target block; and determine whether to adopt the CC-ALF processing for the chroma component of each target block based on the first rate-distortion cost and the second rate-distortion cost.

[0235] In some embodiments of the present application, based on the above-mentioned aspects, the video encoding device 1200 further includes a second encoding unit configured to encode, in the video bitstream, a third flag bit corresponding to a current slice, where a value indicates whether or not CC-ALF processing is performed on a chroma component of a target block in the current slice; and if CC-ALF processing is needed to be performed on a chroma component of the target block in the current slice, encode an index of a corresponding adaptive parameter set in the video bitstream; and further encode, in an adaptive parameter set corresponding to the index of the adaptive parameter set, a fourth flag bit corresponding to a chroma component of the current slice, where a value indicates a classification policy to be adopted when performing CC-ALF processing on the chroma component of the current slice, wherein the classification policy includes determining block classification information when performing CC-ALF on a chroma component based on block classification information when performing ALF on a luma component, or another classification policy.

[0236] In some embodiments of the present application, based on the above aspects, the second encoding unit is further configured to, when the value of the third flag bit indicates that CC-ALF processing is required for chroma components of some target blocks in the current slice, encode in the video bitstream a fifth flag bit corresponding to each target block included in the current slice, wherein the value of the fifth flag bit indicates whether CC-ALF processing is to be performed on the chroma components of the corresponding target block, and

[0237] In some embodiments of the present application, based on the above-mentioned aspects, the second encoding unit is further configured to: calculate a third rate-distortion cost when performing CC-ALF processing by adopting a target classification policy for chroma components of all target blocks in the current slice before encoding a fourth flag bit corresponding to a chroma component of the current slice in an adaptive parameter set corresponding to an index of the adaptive parameter set, where the target classification policy is to determine block classification information when performing CC-ALF processing for chroma components based on block classification information when performing ALF on luma components; calculate a fourth rate-distortion cost when performing CC-ALF processing by adopting the other classification policy for chroma components of all target blocks in the current slice; and determine a classification policy to be adopted when performing CC-ALF processing for chroma components of the current slice based on the third rate-distortion cost and the fourth rate-distortion cost.

[0238] In some embodiments of the present application, based on the aforementioned aspects, the second processing unit 1208 is further configured to determine size information of the target block according to a pre-set size, or to encode the size information of the target block in a sequence parameter set, a picture parameter set, a picture header or a slice header of the video bitstream.

[0239] In one embodiment, the present application further provides an electronic device comprising a memory storing computer-readable instructions and a processor that, when executing the computer-readable instructions, realizes the method described in any of the above embodiments.

[0240] FIG. 13 shows a schematic configuration diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.

[0241] It should be noted that the computer system 1300 of the electronic device shown in FIG. 13 is merely an example and does not limit the functions and application scope of the embodiments of the present application in any way.

[0242] As shown in Fig. 13, the computer system 1300 includes a central processing unit (CPU) 1301 that can execute various appropriate operations and processes, such as the methods described in the above-mentioned embodiments, according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage unit 1308 to a random access memory (RAM) 1303. The RAM 1303 also stores various programs and data required for the operation of the system. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0243] The I / O interface 1305 is connected to an input unit 1306 including a keyboard, a mouse, etc., an output unit 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, a storage unit 1308 including a hard disk, etc., and a communication unit 1309 including a network interface card such as a LAN (Local Area Network) card and a modem. The communication unit 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as necessary. A removable medium 1311 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is installed in the drive 1310 as necessary, so that a computer program read from the removable medium 1311 can be easily installed in the storage unit 1308 as necessary.

[0244] In particular, according to an embodiment of the present application, the process described above with reference to the flowcharts may be implemented as a computer software program. For example, in another aspect, the present application further provides a computer program product including computer-readable instructions that, when executed by a processor, implements the method described in any of the above embodiments. In such an embodiment, the computer-readable instructions may be downloaded and installed from a network via the communication unit 1309 and / or installed from a removable medium 1311.

[0245] The units described in the embodiments of the present application may be realized by software or hardware, and the described units may be arranged in a processor. The names of these units do not necessarily limit the units themselves.

[0246] In another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment, or may be a separate entity not incorporated in the electronic device. The computer-readable medium is loaded with one or more computer-readable instructions that, when executed by an electronic device, causes the electronic device to implement the method described in any of the above embodiments. It should be noted that although the above detailed description refers to certain modules or units of an apparatus for performing operations, such division is not required. In fact, according to an embodiment of the present application, features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, features and functions of one module or unit described above can be further divided and embodied in multiple modules or units.

[0247] From the above description of the embodiments, it is easily understood by those skilled in the art that the exemplary embodiments described herein may be realized by software or by a combination of software and necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash disk, a portable hard disk, etc.) or a network, which includes some instructions for making a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) execute the method according to the embodiments of the present application.

[0248] The components of the above-described embodiments may be combined in any manner. For the sake of brevity, not all possible combinations of the components of the above-described embodiments have been described. However, as long as there is no contradiction in the combinations of these components, they should all be considered to be within the scope described in this specification.

[0249] The above-mentioned embodiments only represent some embodiments of the present application, and although the description is more specific and detailed, it cannot be understood as limiting the scope of the claims. It should be noted that those skilled in the art can make some modifications and improvements without departing from the idea of ​​the present application, and all of them belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be based on the attached claims.

Claims

1. 1. A method of loop filtering performed by a video encoding device or a video decoding device, comprising: obtaining block classification information for performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; selecting a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and performing cross-component adaptive loop filtering on the chrominance components; 2. A loop filtering method comprising:

2. The step of determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component includes: A step of classifying a sub-block when performing adaptive loop filtering on the luma component as a classification result of a block of the same size when performing cross-component adaptive loop filtering on the chroma component, 2. The loop filtering method of claim 1.

3. The step of determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component includes: A step of classifying a sub-block and a corresponding geometric transformation type when performing adaptive loop filtering on the luma component into a classification result and a geometric transformation type of a block of the same size when performing cross-component adaptive loop filtering on the chroma component, 2. The loop filtering method of claim 1.

4. The loop filtering method includes: determining a merged result of various cross-component adaptive loop filters when performing cross-component adaptive loop filtering on the chroma components based on a merged result of various adaptive loop filters when performing adaptive loop filtering on the luma components; 4. A loop filtering method according to claim 1 or 3.

5. The loop filtering method includes: determining a merging result of various filters when performing adaptive loop filtering on the luma component and when performing cross-component adaptive loop filtering on the chroma components based on a rate-distortion cost of performing filter merging during adaptive loop filtering of the luma component and a rate-distortion cost of performing filter merging during cross-component adaptive loop filtering of the chroma components; 4. A loop filtering method according to claim 1 or 3.

6. The loop filtering method includes: determining a number of available filters for performing cross-component adaptive loop filtering on the chroma components based on the number of filters determined for performing adaptive loop filtering on the luma component; 4. A loop filtering method according to claim 1 or 3.

7. 1. A video decoding method performed by a video decoding device, comprising: obtaining block classification information for performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; selecting a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and performing cross-component adaptive loop filtering on the chrominance components; decoding a video bitstream based on a result of the adaptive loop filtering of the luma component and a result of the cross-component adaptive loop filtering of the chroma components; 2. A video decoding method comprising:

8. Before the step of determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component, the video decoding method includes: and decoding a first flag bit corresponding to a current slice from a video bitstream, the value of the first flag bit being for indicating whether the cross-component adaptive loop filtering process is adopted for a chroma component of a target block in the current slice.

8. The video decoding method of claim 7.

9. When the value of the first flag bit is a first value, it indicates that the cross-component adaptive loop filtering process is adopted for chroma components of some target blocks in the current slice, or indicates that the cross-component adaptive loop filtering process is adopted for chroma components of all target blocks in the current slice; If the value of the first flag bit is a second value, it indicates that the cross-component adaptive loop filtering process is not adopted for chroma components of all the target blocks in the current slice.

9. The video decoding method of claim 8.

10. The video decoding method includes: and if the value of the first flag bit indicates that the cross-component adaptive loop filtering process is to be adopted for chroma components of some target blocks in the current slice, decoding to obtain, from the video bitstream, a second flag bit corresponding to each target block included in the current slice, the value of the second flag bit being for indicating whether the cross-component adaptive loop filtering process is to be adopted for chroma components of the corresponding target block.

9. The video decoding method of claim 8.

11. each of the two chroma components of the target block corresponds to one second flag bit, and a value of each second flag bit indicates whether the cross-component adaptive loop filtering process is adopted for a corresponding chroma component in the target block; 11. The video decoding method of claim 10.

12. two chroma components of the target block correspond to a same second flag bit, and a value of the same second flag bit indicates whether the cross-component adaptive loop filtering process is adopted for the two chroma components in the target block; 11. The video decoding method of claim 10.

13. The video decoding method includes: decoding an adaptation parameter set from the video bitstream; if a value of the first flag bit indicates that the cross-component adaptive loop filtering operation is to be adopted for at least one chroma component of the target block in the current slice, decoding from the video bitstream an index of an adaptation parameter set corresponding to the current slice; selecting a corresponding filter coefficient from an adaptive parameter set corresponding to the index of the adaptive parameter set, and filtering the chrominance components of the target block; 9. The video decoding method of claim 8.

14. the current slice corresponds to one first flag bit for each of two chroma components, and a value of each first flag bit indicates whether to employ the cross-component adaptive loop filtering process for a corresponding chroma component in the current slice; Video decoding method according to any one of claims 8 to 13.

15. the current slice corresponds to a same first flag bit for two chroma components, and a value of the same first flag bit indicates whether the cross-component adaptive loop filtering process is adopted for the two chroma components in the current slice; Video decoding method according to any one of claims 8 to 13.

16. Prior to the step of determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component, the video decoding method further comprises: decoding, from the video bitstream, an adaptation parameter set and a third flag bit corresponding to a current slice, the value of the third flag bit being for indicating whether to perform cross-component adaptive loop filtering on chroma components of a target block in the current slice; if a value of the third flag bit indicates that a cross-component adaptive loop filtering operation needs to be performed on a chroma component of a target block in the current slice, decoding from the video bitstream an index of an adaptation parameter set corresponding to the current slice; obtaining a fourth flag bit corresponding to a chroma component of a current slice from an adaptive parameter set corresponding to an index of the adaptive parameter set, the value of the fourth flag bit being for indicating a classification policy to be adopted when performing a cross-component adaptive loop filtering process on the chroma component of the current slice; The classification policy includes determining block classification information when performing cross-component adaptive loop filtering on chroma components based on block classification information when performing adaptive loop filtering on luma components, or other classification policies.

8. The video decoding method of claim 7.

17. If the value of the fourth flag bit corresponding to the chroma component of the current slice is a first value, it indicates that the classification policy adopted when performing the cross-component adaptive loop filtering process on the chroma component of the current slice is to determine block classification information when performing cross-component adaptive loop filtering on the chroma component based on block classification information when performing adaptive loop filtering on the luma component; If the value of a fourth flag bit corresponding to a chroma component of the current slice is a second value, it indicates that a classification policy to be adopted when performing cross-component adaptive loop filtering on the chroma component of the current slice is the other classification policy.

17. The video decoding method of claim 16.

18. The video decoding method includes: and if the value of the third flag bit indicates that a cross-component adaptive loop filtering process needs to be performed on chroma components of some target blocks in the current slice, decoding a fifth flag bit corresponding to each target block included in the current slice from the video bitstream, the value of the fifth flag bit being for indicating whether or not to perform a cross-component adaptive loop filtering process on chroma components of the corresponding target blocks.

17. The video decoding method of claim 16.

19. each of the two chroma components of the current slice corresponds to one fourth flag bit, and a value of each fourth flag bit indicates a classification policy to be adopted when performing a cross-component adaptive loop filtering process on a corresponding chroma component in the current slice; Video decoding method according to any one of claims 16 to 18.

20. two chroma components of the current slice correspond to a same fourth flag bit, and a value of the same fourth flag bit indicates a classification policy to be adopted when performing a cross-component adaptive loop filtering process on the two chroma components of the current slice; Video decoding method according to any one of claims 16 to 18.

21. 1. A video encoding method performed by a video encoding device, comprising: obtaining block classification information for performing adaptive loop filtering on a luma component in a video image frame; determining block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; selecting a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and performing cross-component adaptive loop filtering on the chrominance components; encoding the video image frames based on the adaptive loop filtering of the luma component and the cross-component adaptive loop filtering of the chroma components to obtain a video bitstream; 13. A video encoding method comprising:

22. An acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; A determining unit configured to determine block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; a filtering unit configured to select a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and to perform cross-component adaptive loop filtering on the chrominance components; A loop filtering device comprising:

23. An acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; A determining unit configured to determine block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; a filtering unit configured to select a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and to perform cross-component adaptive loop filtering on the chrominance components; a first processing unit configured to decode a video bitstream based on a result of the adaptive loop filtering of the luma component and a result of the cross-component adaptive loop filtering of the chroma components; A video decoding device comprising:

24. An acquisition unit configured to acquire block classification information when performing adaptive loop filtering on a luma component in a video image frame; A determining unit configured to determine block classification information when performing cross-component adaptive loop filtering on chroma components in the video image frame based on block classification information when performing adaptive loop filtering on the luma component; a filtering unit configured to select a corresponding filter coefficient based on block classification information when performing cross-component adaptive loop filtering on the chrominance components, and to perform cross-component adaptive loop filtering on the chrominance components; a second processing unit configured to encode the video image frames based on the adaptive loop filtering of the luma component and the cross-component adaptive loop filtering of the chroma components to obtain a video bitstream; A video encoding device comprising:

25. 22. An electronic device comprising a memory having computer readable instructions stored thereon and a processor which, when executing said computer readable instructions, implements the steps of the method according to any one of claims 1 to 21.

26. A computer program product comprising computer readable instructions which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 21.

Citation Information

Patent Citations

  • Block-Based Adaptive Loop Filter (ALF) Design and Signaling

    JP2021525981A

  • Cross-component adaptive loop filter using LUMA differences

    WO2021083258A1