Image processing method and device

By disabling unnecessary cross-component filtering, the problem of increased bit overhead and storage space in smooth areas in video encoding and decoding is solved, and the efficiency of image processing is improved.

CN118678069APending Publication Date: 2024-09-20TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410966104.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-11-06
Filing Date
2020-12-16
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In video encoding and decoding, the use of cross-component filters increases bit overhead and storage space in smooth regions, especially for image frames with large smooth regions, resulting in inefficiency.

Method used

By obtaining the statistical information of the blocks of the image frame, it is judged whether certain conditions are met, and if so, cross-component filtering is disabled to reduce unnecessary signaling and storage requirements.

Benefits of technology

It reduces the bit stream and storage space requirements during the encoding and decoding process, and improves the efficiency of image processing, especially when processing image frames with large smooth areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678069A_ABST
    Figure CN118678069A_ABST
Patent Text Reader

Abstract

An image processing method and apparatus includes obtaining statistical information of a block of an image frame, determining whether the statistical information satisfies a condition, and disabling cross-component filtering (CCF) for the block when the statistical information satisfies the condition.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. application No. 17 / 092,157, filed on November 6, 2020, and U.S. Provisional Application No. 62 / 953,458, filed on December 24, 2019, the entire contents of both are incorporated herein by reference. Technical Field

[0003] The present application relates to the technical field of video coding and decoding, and in particular, to a system and method for video coding and decoding with an adaptive cross-component filter. Background Art

[0004] AOMedia Video 1 (AV1) is an open video codec format designed for video delivery over the Internet. AV1 is a successor to VP9 developed by the Alliance for Open Media (AOMedia), a consortium that includes semiconductor companies, video-on-demand providers, video content producers, software development companies, and web browser vendors. Many components of the AV1 project are derived from previous research work by members of the consortium. Experimental technology platforms include Xiph / Mozilla's Daala, Google's experimental VP9 evolution project VP10, and Cisco's Thor. AV1 builds on the VP9 codebase and incorporates other technologies, some of which were developed with these experimental formats. Various versions of the AV1 reference codec and bitstream specifications have been released. The AV1 bitstream specification includes the reference video codec.

[0005] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) have released various versions of the H.265 / HEVC (High Efficiency Video Codec) standard. The two standards organizations have also jointly formed the JVET (Joint Video Exploration Team) to explore the potential of developing the next video codec standard beyond HEVC. In response to the joint call for proposals (CfP) issued by the two organizations for video compression with capabilities beyond HEVC, more than 40 responses were submitted for the categories of Standard Dynamic Range (SDR), High Dynamic Range (HDR), and 360 video. All received CfP responses were evaluated at the 122nd MPEG / 10th JVET meeting. As a result of this meeting, JVET officially launched the standardization process for the next generation video codec beyond HEVC. The new standard was named Versatile Video Codec (VVC), and JVET was renamed the Joint Video Experts Group. The latest version of VTM (VVC Test Model) is VTM 7.

[0006] Cross-component filtering (CCF) is a filtering process that uses the sample values ​​of one component to refine another component. An example of CCF is the cross-component adaptive loop filter (CC-ALF) proposed in JVET-O0636. A flag is used to signal the on / off of CCF for blocks in a frame being processed, for example. For example, blocks in smooth regions are signaled to turn off CCF. However, since CCF is not performed in smooth regions, signaling of CCF in smooth regions increases the bit overhead and the required storage space and / or transmission bandwidth, which is particularly true for image frames with one or more large smooth regions.

[0007] The disclosed methods and systems are directed to addressing one or more of the above-referenced problems as well as other problems. Summary of the invention

[0008] According to the present disclosure, an image processing method is provided, including obtaining statistical information of a block of an image frame, determining whether the statistical information satisfies a condition, and disabling cross-component filtering (CCF) for the block when the statistical information satisfies the condition.

[0009] According to the present disclosure, an electronic device is also provided, including a processor and a non-volatile computer-readable storage medium storing instructions, and when the instructions are executed by the processor, the processor is caused to: obtain statistical information of a block of an image frame, determine whether the statistical information satisfies a condition, and when the statistical information satisfies the condition, disable cross-component filtering (CCF) for the block. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 An example operating environment according to the present disclosure is shown.

[0011] Figure 2 An example computer system according to the present disclosure is shown.

[0012] Figure 3 An example HEVC coding structure to which CC-ALF is applied is schematically shown.

[0013] Figure 4A The placement of the CC-ALF relative to the other loop filters is shown.

[0014] Figure 4B Figure 2 shows the diamond filter used in CC-ALF.

[0015] Figure 5 is a flow chart of an example image processing method according to the present disclosure.

[0016] Figure 6 is a flowchart of another example image processing method according to the present disclosure.

[0017] Figure 7 is a flowchart of another example image processing method according to the present disclosure.

[0018] Figure 8 is a flowchart of another example image processing method according to the present disclosure.

[0019] Fig. 9 is a flowchart of another example image processing method according to the present disclosure.

[0020] Fig. 10A is a flowchart of another example image processing method according to the present disclosure.

[0021] Fig. 10B is a flowchart of another example image processing method according to the present disclosure.

[0022] Fig.11A is a flowchart of another example image processing method according to the present disclosure.

[0023] Fig. 11B is a flowchart of another example image processing method according to the present disclosure.

[0024] Fig.12 is a flowchart of another example image processing method according to the present disclosure.

[0025] Fig.13 is a block diagram of an example electronic device according to the present disclosure. DETAILED DESCRIPTION

[0026] The technical solutions of the embodiments of the present disclosure are described below in conjunction with the accompanying drawings. In all the drawings, the same reference numerals will be used as much as possible to represent the same or similar parts. Obviously, the embodiments described are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments of the present disclosure, other embodiments obtained by ordinary technicians in this field without making creative work are all within the scope of the present disclosure.

[0027] Listed below are some acronyms and terms used in this disclosure.

[0028] ALF: Adaptive Loop Filter

[0029] APS: Adaptation Parameter Set

[0030] CBF: Coded Block Flag

[0031] CC-ALF: Cross-Component Adaptive Loop Filter / Filtering

[0032] CCF: Cross-Component Filter / Filtering

[0033] CDEF: Constrained Directional Enhancement Filter / Filtering

[0034] DC:Direct Current

[0035] HEVC: High Efficiency Video Coding

[0036] JVET: Joint Video Exploration Team

[0037] QP: Quantization Parameter

[0038] SAO: Sample Adaptive Offset

[0039] VVC: universal video coding

[0040] Bitstream: A series of bits that is a representation of an encoded image frame and associated data.

[0041] Flag: A variable or single-bit syntax element that can take one of several possible values, such as one of two possible values ​​0 and 1.

[0042] Syntax element: A data element represented in a bitstream.

[0043] Syntax structure: Zero or more syntax elements appear together in a bitstream in a specified order.

[0044] Figure 1 1 shows an example operating environment 100 of the present disclosure. The operating environment 100 may include various devices with video capabilities. For example, Figure 1As shown, the operating environment 100 includes a mobile device 102, a terminal device 104, and an electronic device 106. The operating environment 100 may also include other types of devices.

[0045] In some embodiments, Figure 1 As shown, the operating environment 100 also includes a server 120, one or more users 130, and a communication network 140 connecting various devices and the server 120. The user 130 can use, access or control one or more of the various devices.

[0046] The mobile device 102, the terminal device 104, and the electronic device 106 may generally be referred to as terminal devices, which may include any user terminal, such as a personal digital assistant (PDA), a mobile phone, a smart phone, an integrated messaging device (IMD), a tablet computer, a notebook computer, a desktop computer, or other computing devices. The terminal device may also include any image or video capture device, such as a digital camera, a video camera, a security camera, a car camera, or a stereo camera, or any electronic device with video capabilities, such as a digital doorbell, an autonomous driving sensor, a digital voice assistant, a smart speaker, a smart home appliance, or any industrial or commercial Internet of Things (IoT) system with video processing capabilities. Any of the mobile device 102, the terminal device 104, and the electronic device 106 may be stationary or mobile when carried by a moving individual, and may also be placed as part of a transport or in a transport mode, which includes a car, truck, taxi, bus, train, ship, airplane, bicycle, motorcycle, or any similar suitable transport mode.

[0047] The network 140 may include any suitable type of communication network, and may include any combination of wired or wireless networks, including, but not limited to, wireless cellular telephone networks, wireless local area networks (WLANs), Bluetooth personal area networks, Ethernet local area networks, token ring local area networks, wide area networks, and the Internet. The network 140 may also include private or public cloud computing platforms for voice / data communications. When the Internet or other types of networks are included, the connection to the Internet may include long-range wireless connections, short-range wireless connections, and / or various wired connections including telephone lines, cable lines, power lines, and / or similar communication paths.

[0048] The server 120 may include any type of server computer system or multiple computer systems configured in a server cluster or distributed in different locations. The server 120 may also include a cloud server on a cloud computing platform. The server 120 may also be referred to as a server entity, which may be integrated with any appropriate device (including electronic devices) to perform server-side functions of video decoding and application processing.

[0049] Figure 2 1 shows an exemplary computer system that implements certain aspects of various terminal devices 102, 104 and / or 106, and / or server 120. Figure 2 As shown, computer system 200 includes a hardware processor 202, a memory 204, a card reader 206, a display 208, a keyboard 210, a radio frequency (RF) interface 212, a baseband 214, an antenna 216, an encoding circuit 222, a decoding circuit 224, a camera 226, a speaker 232, a microphone 234, and the like. Figure 2 The components shown are illustrative, certain components may be omitted, and other components may be added.

[0050] A processor 202 may be provided to control the computer system 200. The processor 202 may be connected to other components via one or more buses or other electrical connections to send data to and receive data from other components. The processor 202 may include one or more processing cores, for example, the processor 202 may be a quad-core processor or an octa-core processor. The processor 202 may be implemented using at least one hardware form of a digital signal processing (DSP), a field programmable gate array (FPGA), or a programmable logic array (PLA). The processor 202 may also include a main processor and a coprocessor. The main processor may be a central processing unit (CPU), and the coprocessor may be a graphics processing unit (GPU), which is configured to be responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 202 may further include an artificial intelligence (AI) processor. The AI ​​processor is configured to process computing operations related to machine learning.

[0051] The memory 204 may include one or more computer-readable storage media such as high-speed random access memory and / or non-volatile memory, for example, one or more disk storage devices or flash memory devices. The memory 204 may store data in the form of image and audio data, and may also store instructions for the processor 202. The card reader 206 may include any type of portable card interface, such as a smart card interface, a communication card interface (e.g., a near field communication (NFC) card), a subscriber identity module (SIM) card, or other card interfaces for providing user information and suitable for providing authentication information for authentication and authorization of the user 130.

[0052] In addition, the display 208 may involve any suitable display technology suitable for displaying images or videos. For example, the display 208 may include a liquid crystal display (LCD) screen, an organic light emitting diode (OLED) screen, etc., and may be a touch screen. The keyboard 210 may include a physical or virtual keyboard for the user to enter information, and may also include other types of input / output devices. The speaker 232 and the microphone 234 may be used to input and output audio for the computer system 200.

[0053] The RF interface 212 (together with the antenna 216) may include an RF circuit for receiving and sending RF signals. The RF interface 212 may convert an electrical signal into an electromagnetic signal for transmission, or convert a received electromagnetic signal into an electrical signal for reception. The RF interface 212 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocol may include a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network (LAN), and / or a wireless fidelity (WiFi) network. In some embodiments, the RF interface 212 may also include circuits associated with near field communication (NFC). The baseband 214 may include circuits for processing signals to and from the RF interface 212.

[0054] In addition, the camera 226 may include any type of imaging or video capture device for collecting images or videos. When the computer system 200 is a portable device carried by a user, the camera 226 may include a front camera and a rear camera. The front camera may be set on the front panel of the electronic device, and the rear camera may be set on the rear surface of the electronic device. In some embodiments, there are at least two rear cameras, each of which is any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize a background blur function by fusing the main camera with the depth of field camera, and to realize a panoramic shooting and a virtual reality (VR) shooting function or other fusion shooting functions by fusing the main camera with the wide-angle camera. In some embodiments, the camera 226 may further include a flash.

[0055] The encoding circuit 222 and the decoding circuit 224 may be referred to as a codec circuit of an electronic device, which is suitable for performing encoding and decoding of audio and / or video data, or assisting the processor 202 in performing encoding and decoding.

[0056] Figure 2The computer system 200 shown may also include additional structures for implementing any particular system. For example, when implementing the server 120, the computer system 200 may include a database and / or a land-line-based network communication interface, or when implementing the mobile device 102, etc., the computer system 200 may include a structure similar to a mobile terminal or user equipment in a wireless communication system. However, the computer system 200 may also include or omit any structure to implement any electronic device or device that may need to encode and decode, or need to encode, or need to decode video. For example, when configured to implement or include an encoder, the computer system 200 may include an encoding circuit 222, but not a decoding circuit 224; and when configured to implement or include a decoder, the computer system 200 may include a decoding circuit 224, but not an encoding circuit 222.

[0057] Reference again Figure 1 , the computer system 200 (i.e., any one or more of the various devices 102, 104, and / or 106) may capture or collect various data (e.g., audio data, environmental / operational data, image data, and / or video data) and send the data to the server 120 via the network 140. The computer system 200 may process or pre-process the data before sending it to the server 120, or may send unprocessed data to the server 120.

[0058] During operation, a user of a terminal device may use a video application to send video content to the server 120, and / or receive video content from the server 120, or users of various terminal devices may use various video applications to transfer video content to each other. In one embodiment, a user may transfer video content to another user via the server 120, or the server 120 may establish a communication channel between users so that a user may directly transfer video to another user via the communication channel.

[0059] Cross-component filtering (CCF) refers to a filtering process that uses a reconstructed sample of a first component (e.g., Y, Cb, or Cr in a YCbCr color space) as input and applies the output to a second component that is different from the first component. At the encoder, the CCF process may include, for example, deriving one or more filter coefficients or performing at least one of filtering. At the decoder, the CCF process may include, for example, performing filtering.

[0060] An example of CCF is cross-component adaptive loop filtering (CC-ALF), which is a specific type of ALF. ALF is usually used as the last filtering step in an in-loop filtering process that performs filtering on a reconstructed frame for inter-frame prediction. Figure 3 An example HEVC coding structure to which CC-ALF is applied is schematically shown. Figure 3 The encoding process shown can be performed at the encoding end (encoder) and can be implemented by, for example, the encoding circuit 222 alone, the processor 202 alone, the encoding circuit 222 and the processor 202 together, or the encoding circuit 222 and / or the processor 202 together with one or more other components / circuits of the computer system 200.

[0061] like Figure 3 As shown, the image frame can be processed using inter-frame prediction or intra-frame prediction based on a reference (reference frame or reference block) to obtain a residual, which is then transformed and quantized. The transformed / quantized residual is entropy encoded to generate a bitstream to be sent to the decoding side. The transformed / quantized residual is also inversely transformed and inversely quantized, and then combined with the reference frame to obtain a reconstructed frame. The reconstructed frame is fed to an in-loop filter, which includes a deblocking filter (DBF), a sample adaptive offset (SAO) filter, and a cross-component adaptive loop filter (CC-ALF). The filtered frame is stored in a buffer (decoded picture buffer) for use in the inter-frame prediction process of subsequent frames. The coefficients of CC-ALF are derived at the encoding end, which can be used for the CC-ALF process at the encoding end. The encoding end can send the CC-ALF coefficients to the decoding end for use in the corresponding CC-ALF process at the decoding end, or the signaling of the CC-ALF coefficients can be sent to the decoding end for the decoding end to select the correct CC-ALF coefficients for use in the corresponding CC-ALF process at the decoding end. In some embodiments, the SAO filter may be replaced with, for example, a Constrained Directional Enhancement Filter (CDEF).

[0062] On the decoding side (decoder), the decoding process is basically Figure 3 The CC-ALF process at the decoding end may use the CC-ALF coefficients received from the encoding end, or the CC-ALF coefficients obtained according to the signaling from the encoding end. The decoding process may be implemented by, for example, the decoding circuit 224 alone, the processor 202 alone, the decoding circuit 224 and the processor 202 together, or the decoding circuit 224 and / or the processor 202 together with one or more other components / circuits of the computer system 200.

[0063] Figure 4AThe arrangement of the CC-ALF relative to other loop filters is shown. Figure 4B FIG. 1 shows a diamond filter used in CC-ALF. The filter may be a linear filter. Figure 4A As shown in Figure 1, CC-ALF applies a filter to the luma channel of each chroma component. The filter coefficients are transmitted in the adaptive parameter set (APS) and are scaled by a factor of 2. 10 Scaling is performed and rounding is performed for fixed-point representation. In some embodiments, in one APS, up to 25 sets of luminance filter coefficients and clipping value indices, and up to 8 sets of chroma filter coefficients and clipping value indices can be signaled. In the slice header, the index of the APS used for the current slice is signaled. The application of the filter is controlled on a variable block size and is signaled by a context coding flag received for each sample block. For each chroma component, the block size is received at the slice level along with the CC-ALF enable flag. Supported block sizes (in chroma samples) include, for example, 16×16, 32×32, and 64×64.

[0064] Table 1 below shows the relevant parts of the syntax related to CC-ALF.

[0065] Table 1. CC-ALF syntax

[0066]

[0067] The semantics of CC-ALF related syntax is as follows:

[0068] alf_ctb_cross_component_cb_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is equal to 0, indicating that the cross-component Cb filter is not applied to the Cb color component sample block at the luma position (xCtb, yCtb); alf_cross_component_cb_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is not equal to 0, indicating that the alf_cross_component_cb_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY]th cross-component Cb filter is applied to the Cb color component sample block at the luma position (xCtb, yCtb); lf_ctb_cross_component_cr_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is equal to 0, indicating that the cross-component Cr filter is not applied to the Cr color component sample block at the luma position (xCtb, yCtb); and alf_cross_component_cr_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is not equal to 0, indicating that the alf_cross_component_cr_idc[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY]th cross-component Cr filter is applied to the Cr color component sample block at the luma position (xCtb, yCtb).

[0069] An example image processing method according to the present disclosure will be described in detail below. The image processing method according to the present disclosure may be performed by an electronic device according to the present disclosure. The electronic device may be implemented by a processing circuit, such as one or more processors or one or more integrated circuits. For example, the electronic device may include one or more processors and a non-volatile computer-readable storage medium storing a program, which, when executed by one or more processors, causes the one or more processors to perform a method according to the present disclosure, such as one of the example image processing methods described below. In some embodiments, the electronic device may include Figure 2The computer system 200 or a portion of the computer system 200 shown. For example, if the electronic device is an encoder, configured to implement the encoding-related processes described below, the electronic device may include, for example, an encoding circuit 222 and / or a processor 202 as one or more processors, and a memory 204 as a non-volatile computer-readable storage medium. On the other hand, if the electronic device is a decoder, configured to implement the decoding-related processes described below, the electronic device may include, for example, a decoding circuit 224 and / or a processor 202 as one or more processors, and a memory 204 as a non-volatile computer-readable storage medium. In addition, if the electronic device is a codec, configured to implement encoding-related processes and decoding-related processes, the electronic device may include, for example, an encoding circuit 222, a decoding circuit 224, and / or a processor 202 as one or more processors, and a memory 204 as a non-volatile computer-readable storage medium.

[0070] In some embodiments of the present disclosure, statistical information of a sample area may be obtained / exported and used for further determination. Depending on the processing situation, a sample area may refer to a specific area related to the processing. For example, in a CCF-related process, a sample area may refer to an area to which CCF may be further applied. Depending on the specific application scenario, a sample area may be an image frame (e.g., an image frame acquired by an image acquisition device (e.g., a camera 226 of a computer system 200)) or a portion of an image frame, or a processed (e.g., reconstructed) image frame or a portion of a processed image frame. For example, a sample area may include a block or a portion of a block. A block may be a 4×4 block (i.e., a pixel array including 4×4 pixels), an 8×8 block, a 16×16 block, or a 32×32 block.

[0071] In addition, an image frame can be presented in a color space with different components. For example, in the YCbCr color space, an image frame (or a portion thereof) can be decomposed into a luma component (Y) and two chroma components (Cb and Cr). Thus, for each block in the image, there is a luma block (Y block) containing the luma information of the block and two chroma blocks (Cb block and Cr block) containing the chroma information of the block.

[0072] Various information / data may be used as statistical information, as described in more detail below. In some embodiments, the statistical information may include smoothness information, i.e., a measure of the smoothness of the reconstructed sample within the sample region. For example, the above may be combined with Figure 3 The reconstructed sample is obtained during the encoding process described or during the decoding process. In some embodiments, the smoothness of the sample area can be measured according to the pixel value in the sample area. The pixel value of the pixel can include at least, for example, the brightness component value or the chrominance component value at the pixel.

[0073] In some embodiments, the smoothness of the sample region can be calculated by the range of pixel values ​​in the sample region. The range of pixel values ​​can be, for example, the absolute difference between the maximum pixel value and the minimum pixel value in the sample region.

[0074] In some embodiments, the smoothness of the sample region can be calculated by the interquartile range of the pixel values ​​in the sample region. For example, the interquartile range of the pixel values ​​can be the absolute difference between the first percentile and the second percentile of the pixel values ​​in the sample region. The first percentile can be, for example, 75%, and the second percentile can be, for example, 25%.

[0075] In some embodiments, the smoothness of the sample region can be calculated by the variance of the pixel values ​​in the sample region. For example, assuming that the sample region includes n samples, such as pixels, the variance S of the pixel values ​​in the sample region is 2 It can be calculated as follows:

[0076]

[0077] Where i is an integer from 1 to n, representing the i-th sample in the sample area, and x i represents the pixel value of the i-th sample, Represents the mean (average) pixel value over n samples.

[0078] In some embodiments, the variance S of the pixel values ​​within the sample area is not used. 2 Instead, the standard deviation S of the pixel values ​​in the sample area can be used to calculate the smoothness of the sample area. The standard deviation S of the pixel values ​​in the sample area is the variance S of the pixel values ​​in the sample area. 2 The square root of .

[0079] In some embodiments, instead of or in addition to the parameters directly calculated using the pixel values ​​at each pixel, parameters calculated using derived values ​​at each pixel can be used to represent the smoothness of the sample area. The derived value of a pixel refers to a value derived based on the pixel value of the pixel and / or the pixel values ​​of adjacent pixels. For example, the derived value of a pixel can be a gradient value of the pixel, which can be calculated as, for example, the difference between the pixel value of the pixel and the pixel value of an adjacent pixel, or can be calculated as the difference between the pixel values ​​of two adjacent pixels located on opposite sides of the pixel.

[0080] Calculating the smoothness of the sample region using the derived value (e.g., gradient value) can be similar to calculating the smoothness of the sample region using the pixel value as described above. For example, the smoothness of the sample region can be calculated by the range of gradient values ​​within the sample region (the absolute difference between the maximum and minimum gradient values), the interquartile range of the gradient values ​​within the sample region, the variance of the gradient values ​​within the sample region, and / or the standard deviation of the gradient values ​​within the sample region.

[0081] Instead of or in addition to the above-mentioned smoothness information, other types of information may be used as statistical information. In some embodiments, the statistical information may include information generated after the encoder makes a mode decision and sent to the decoder for use by the decoder in the decoding process. This information may also be referred to as "mode information". The mode information may be encoded (e.g., compressed and signaled) by the encoder before transmission. The mode information may be encoded using, for example, binary bits, that is, specific binary bits or combinations of binary bits may be used to represent specific mode information. The information representing the encoding of the mode information is also referred to as "encoding information". When the decoder receives the encoded information, the decoder may parse the encoded information to obtain the mode information.

[0082] In some embodiments, the mode information may include at least one of a prediction mode signaled for the block, information related to coefficient encoding (e.g., a coded block flag (CBF)), a block size, a quantization parameter (QP), a CCF flag (indicating on / off of CCF) of another image frame (e.g., a reference frame), or a motion vector (magnitude) associated with the block. The prediction mode may be an intra-frame DC (direct current) mode, an intra-frame planar mode, an intra-frame Paeth mode, an intra-frame smoothing (Smooth) mode, an intra-frame recursive filtering mode, or an inter-frame skip mode.

[0083] The statistical information may also additionally or optionally include information that can be used for specific processes at the encoder and decoder (e.g., when CCF is applied). Since this information is available to both the encoder and the decoder, there is no need to send this information from the encoder to the decoder. In the following, this information is also referred to as "intermediate information". The intermediate information may include, for example, at least one of sample classification information derived in a loop filtering process (e.g., ALF), a filter strength derived in a deblocking process, in CDEF or in loop recovery, or an edge direction derived in CDEF.

[0084] Figure 5 5 is a flowchart of an example image processing method 500 according to the present disclosure. The method 500 may be performed by an electronic device implementing an encoder, such as the computer system 200 or a portion of the computer system 200 described above. Figure 5As shown, at 502, a block to be processed (also referred to as a current block) is received. At 504, statistical information of the block is obtained. At 506, it is determined whether the statistical information satisfies a condition. If the statistical information satisfies the condition (506: yes), CCF signaling is disabled for the current block (508). On the other hand, if the statistical information does not satisfy the condition (506: no), CCF signaling is enabled for the current block (510). That is, according to the example method 500, when the statistical information of the current block satisfies the condition, CCF signaling is enabled for the current block.

[0085] The block to be processed may be a portion of an image frame as described above. The image frame may be obtained by an image acquisition device (eg, camera 226 of computer system 200).

[0086] Whether to signal the CCF or to signal the CCF signaling itself may be determined in units of a portion of an image frame. This portion of an image frame is also referred to as a "CCF signaling unit" or simply a "signaling unit". In some embodiments, it may be determined whether to signal the CCF and / or the CCF signaling may be performed at a block level, i.e., a block may be a signaling unit. In some other embodiments, a signaling unit may be larger or smaller than a block. For example, a signaling unit may be an area including a plurality of blocks or an area including a portion of a block (e.g., a sub-block).

[0087] CCF signaling refers to a mechanism that provides information such as whether CCF will be performed and how CCF related information is sent by the encoder and received by the decoder. Enabling CCF signaling can be achieved by, for example, including a CCF flag in the bitstream sent from the encoder to the decoder. For example, the CCF flag of a block can be included in the block header (the header part of the data packet of the block) corresponding to the block in the bitstream. When the CCF flag is true, the decoder can know that CCF needs to be performed on the block. On the other hand, when the CCF flag is false, the decoder can know that the block does not require CCF.

[0088] Accordingly, disabling CCF signaling can be achieved by, for example, not including a CCF flag in the bitstream sent from the encoder to the decoder. For example, when a block header corresponding to a block in the bitstream does not include a CCF flag, it indicates that CCF signaling is disabled for the block. In some embodiments, when the decoder does not receive a CCF flag for a block, i.e., when the decoder detects that CCF signaling is not applied to the block, the decoder can perform a default action on the block. The default action can be, for example, turning off CCF for the block, i.e., not performing CCF on the block.

[0089] like Figure 5As shown and described above, the electronic device can determine whether to disable CCF signaling for a block based on whether the statistical information satisfies a condition. The condition can be different for different types of statistical information. For example, if the statistical information includes smoothness information, the condition can include a predetermined threshold. In this case, disabling CCF signaling for a block when the statistical information satisfies the condition (508) can include: disabling CCF signaling for a block when the smoothness of the block is less than a predetermined threshold or greater than a predetermined threshold, such as when the absolute difference between the maximum and minimum pixel values ​​or between the maximum and minimum gradient values ​​of the block is less than a predetermined threshold.

[0090] If the statistical information includes mode information, the condition may include predetermined information or a predetermined value indicating specific mode information. In this case, disabling CCF signaling for the block when the statistical information satisfies the condition (508) may include disabling CCF signaling for the block when the mode information is predetermined information, and the predetermined information may be determined, for example, as encoding information corresponding to the mode information identified as being equal to the predetermined value. For example, when it is determined that the block is encoded in intra-frame DC mode, CCF signaling may be disabled for the block.

[0091] If the statistical information includes intermediate information, the condition may include predetermined information or a predetermined value indicating specific intermediate information. In this case, disabling CCF signaling for the block when the statistical information satisfies the condition (508) may include disabling CCF signaling for the block when the intermediate information is predetermined information, which may be determined, for example, as intermediate information identified as being equal to a predetermined value. For example, when it is determined that the CDEF filter strength of the block is 0, CCF signaling may be disabled for the block.

[0092] In some embodiments, the method may further include generating a data packet corresponding to the block to be included in the bitstream for transmission from the encoder to the decoder. Disabling CCF signaling for the block at 508 may include determining that a block header of a data packet corresponding to the block does not include a CCF flag.

[0093] According to the present disclosure, for example, according to the above-mentioned example method, in some cases, when certain conditions are met, it is not necessary to send the CCF flag and / or other CCF related information to the decoder. Therefore, only less information needs to be encoded and sent from the encoder to the decoder, so the encoding and decoding efficiency can be improved. In addition, less storage space and transmission bandwidth are required, and the overall efficiency of image processing can be improved.

[0094] In addition to determining whether to signal CCF and / or whether to enable the CCF process, the encoder can also derive CCF coefficients and signal the CCF coefficients to the decoder. In some embodiments, the encoder can exclude one or more samples (e.g., one or more pixels) from the block based on statistical information of the block, as described in more detail below.

[0095] Figure 6 6 is a flowchart of an example image processing method 600 according to the present disclosure. The method 600 may be performed by an electronic device implementing an encoder, such as the computer system 200 or a portion of the computer system 200 described above. Figure 6 As shown, at 602, a block to be processed (also referred to as a current block) is received. At 604, statistical information of the block is obtained. At 606, CCF coefficients are derived based on the statistical information of the block. In some embodiments, deriving CCF coefficients based on the statistical information of the block may include: when the statistical information of the block meets a condition, excluding one or more samples (e.g., one or more pixels) of the block from the process of deriving the CCF coefficients. The statistical information may be any of the above-mentioned types of statistical information. The conditions may be different for different types of statistical information.

[0096] If the statistical information includes smoothness information, the condition may include a predetermined threshold. In this case, excluding one or more samples from the process of deriving the CCF coefficient may include: excluding one or more samples when the smoothness of the block is less than the predetermined threshold or greater than the predetermined threshold, for example, when the absolute difference between the maximum and minimum pixel values ​​or between the maximum and minimum gradient values ​​of the block is less than the predetermined threshold.

[0097] If the statistical information includes mode information, the condition may include predetermined information or a predetermined value representing the specific mode information. In this case, excluding one or more samples from the process of deriving the CCF coefficients may include: excluding one or more samples when the mode information is predetermined information, and the predetermined information may be determined, for example, as encoding information corresponding to the mode information identified as equal to the predetermined value. For example, when it is determined that the block is encoded in the intra-frame DC mode, one or more samples may be excluded from the process of deriving the CCF coefficients.

[0098] If the statistical information includes intermediate information, the condition may include predetermined information or a predetermined value representing the specific intermediate information. In this case, excluding one or more samples from the process of deriving the CCF coefficients may include: excluding one or more samples when the intermediate information is predetermined information, and the predetermined information may be determined, for example, as intermediate information identified as being equal to a predetermined value. For example, when it is determined that the CDEF filter strength of the block is 0, one or more samples may be excluded from the process of deriving the CCF coefficients.

[0099] In some embodiments, excluding one or more samples from the process of deriving CCF coefficients may include: excluding all pixels from the block when deriving the CCF coefficients. For example, if the CDEF filter strength of the block is 0, all pixels of the block may be excluded from the process of deriving the CCF coefficients, that is, all pixels of the block are not used to derive the CCF coefficients.

[0100] In some embodiments, when the statistical information of the block meets the conditions, it is further determined which pixels of the block are excluded from the process of deriving the CCF coefficient. That is, according to the further determination result, when deriving the CCF coefficient, the pixels of the block can be partially excluded. For example, when the edge direction is identified in the block in the CDEF, only the pixels along the edge in the block are used to derive the CCF coefficient, and other pixels not on the edge are excluded from the process of deriving the CCF coefficient.

[0101] Figure 7 700 is a flowchart of another example image processing method 700 according to the present disclosure. The method 700 may be performed by an electronic device implementing a decoder, such as the computer system 200 or a part of the computer system 200 as described above. Figure 7 As shown, at 702, a data packet corresponding to a block (current block) is received. At 704, it is determined whether the data packet includes a CCF flag. If the data packet includes a CCF flag (704: Yes), the data packet is processed according to the CCF flag (706), for example, CCF is performed or not performed on the block according to whether CCF is signaled to be turned on (i.e., whether the CCF flag is true). On the other hand, if the data packet does not include a CCF flag (704: No), a default action is performed on the block (708).

[0102] In some embodiments, determining whether the data packet includes a CCF flag (704) may include: determining whether a block header of the data packet includes a CCF flag. In some embodiments, a default action may include turning off CCF for the block (determining not to perform CCF) during reconstruction of the block. That is, if it is determined that the data packet does not include a CCF flag, CCF is not performed on the block when the block is reconstructed.

[0103] In combination with the above Figure 7 In the described embodiments, when CCF is not signaled, a default action is performed at the decoder, such as turning off CCF. In some other embodiments, the decoder can determine whether to perform CCF for a region based on certain statistical information for the region, which is used by the encoder to determine whether to signal CCF, as described in more detail below. That is, even if a region is not signaled, if the value of the CCF flag has been sent based on such statistical information, the decoder can derive the value of the CCF flag and CCF does not have to be disabled for the region. In some embodiments, mode information for the region can be used for this purpose.

[0104] Figure 8 800 is a flowchart of another example image processing method 800 according to the present disclosure. The method 800 may be performed by an electronic device implementing a decoder, such as the computer system 200 or a part of the computer system 200 as described above. Figure 8As shown, at 802, a data packet corresponding to a region (current region) is received. The region may be part of an image frame and include a plurality of blocks. At 804, it is determined whether the data packet includes a CCF flag. If the data packet includes a CCF flag (804: Yes), the data packet is processed according to the CCF flag (806), for example, CCF is performed or not performed on the region according to whether the CCF flag is true or false. On the other hand, if the data packet does not include a CCF flag (804: No), it is determined whether CCF is performed on the region (808) based on statistical information of the region. In some embodiments, the statistical information of the region may include pattern information of blocks or pixels in the region.

[0105] and Figure 8 The encoder side process corresponding to the decoder side process shown may be similar to the encoder side process of the above example method, for example Figure 5 The example method shown is different in that Figure 5 The example method shown is described using blocks as an example of signaling units, and Figure 8 The encoder side process corresponding to the decoder side process shown can determine whether to signal CCF for a region including multiple blocks. That is, the encoder can determine whether to signal CCF based on the statistical information of the region, and for the region without CCF signaling, the decoder can determine whether to perform CCF based on the same statistical information.

[0106] In some embodiments, the above determination (determining whether CCF is signaled by the encoder or determining whether CCF is performed by the decoder) can be made based on the number of blocks or pixels encoded in a particular mode in the region, such as the percentage of blocks or pixels encoded in a particular mode in the region. For example, if the encoder determines that the percentage of blocks or pixels encoded in a particular mode (e.g., skip mode) in the region is greater than a threshold, the encoder can determine not to signal CCF for the region. Accordingly, when the decoder determines that the percentage of blocks or pixels encoded in a particular mode (e.g., skip mode) in the region is greater than a threshold, the decoder can determine not to perform CCF on the region. That is, determining whether to perform CCF on the region (708) may include: when it is determined that the percentage of blocks or pixels encoded in a particular mode (e.g., skip mode) in the region is greater than a threshold, determining not to perform CCF on the region.

[0107] As another example, if the encoder determines that the percentage of blocks or pixels encoded in a particular mode (e.g., intra-frame mode) in a region is greater than a threshold, the encoder may determine not to signal CCF for the region. Accordingly, when the decoder determines that the percentage of blocks or pixels encoded in a particular mode (e.g., intra-frame mode) in a region is greater than a threshold, the decoder may determine to perform CCF on the region. That is, determining whether to perform CCF on the region (808) may include: when it is determined that the percentage of blocks or pixels encoded in a particular mode (e.g., intra-frame mode) in the region is greater than a threshold, determining to perform CCF on the region.

[0108] The percentage of blocks or pixels encoded in a specific mode as described above can be calculated based on the area size, that is, the area size of the blocks or pixels encoded in a specific mode accounts for the percentage of the total area size of the region. In some embodiments, the percentage of blocks or pixels encoded in a specific mode can be calculated based on the number, that is, the number of blocks or pixels encoded in a specific mode accounts for the percentage of the total number of blocks or pixels in the region. The threshold value can be, for example, in the range of 40% to 60%.

[0109] In some embodiments, the above determination (determining whether to signal CCF by the encoder or determining whether to perform CCF by the decoder) can be made based on the block size in the region (e.g., the maximum block size in the region). For example, if the encoder determines that the maximum block size in the region is less than a threshold, the encoder can determine not to signal CCF for the region. Accordingly, when the decoder determines that the maximum block size in the region is less than the threshold, the decoder can determine to perform CCF on the region. That is, determining whether to perform CCF on the region (808) can include: when it is determined that the maximum block size in the region is less than the threshold, determining to perform CCF on the region. The threshold can be, for example, 32 pixels or 64 pixels.

[0110] In some embodiments, when a decoder is signaled whether to perform CCF on a signaling unit (e.g., a block) (e.g., when CCF signaling is enabled according to a method of the present disclosure (e.g., one of the example methods described above), or when CCF signaling is enabled by default), the decoder may perform further actions based on the CCF signaling. For example, when a CCF flag for a signaling unit received by the decoder is signaled to be turned off, the decoder may determine that the signaling unit includes a smoothing region and disable CCF for the entire signaling unit. In some embodiments, when a CCF flag for a signaling unit received by the decoder is signaled to be turned on, the decoder may further determine whether CCF needs to be performed on the signaling unit, a smaller region (e.g., a sub-block) in the signaling unit, or a color component, as described in more detail below.

[0111] Fig. 9900 is a flowchart of another example image processing method according to the present disclosure. The method 900 may be executed by an electronic device implementing a decoder, such as the computer system 200 or a part of the computer system 200 as described above. Fig. 9 As shown, at 902, a data packet corresponding to a block (current block) is received. At 904, it is determined whether the CCF flag contained in the data packet is true or false. The CCF flag being true indicates that the CCF is signaled to be turned on for the block, and the CCF flag being false indicates that the CCF is signaled to be turned off for the block. If the CCF flag is false (904: false), it is determined that CCF is not performed on the block (906), that is, CCF is disabled for the block. On the other hand, if the CCF flag is true (904: true), it is determined whether CCF is performed on the block (i.e., whether CCF is enabled or disabled for the block) (908) based on the statistical information of the block. The decoder can perform further actions based on the determination result, for example, performing CCF on the block, a portion of the block (sub-block), or a color component of the block, as described in more detail below. The statistical information can be any of the above-mentioned types of statistical information.

[0112] In some embodiments, determining whether to perform CCF on the block (908) may include determining whether to perform CCF on the entire block. In some embodiments, determining whether to perform CCF on the block may be based on whether the statistical information of the block satisfies a condition. Determining whether the statistical information of the block satisfies a condition is similar to the above combined Figure 5 The difference is that in Figure 5 In the process, the determination result is used to control whether to signal the CCF, and Fig. 9 During the process, the determination result is used to control whether to execute CCF.

[0113] For example, if the statistical information includes smoothness information, the condition may include a predetermined threshold. In this case, determining whether to perform CCF on the block may include: when the smoothness of the block is less than the predetermined threshold or greater than the predetermined threshold, for example, when the absolute difference between the maximum and minimum pixel values ​​or between the maximum and minimum gradient values ​​of the block is less than the predetermined threshold, determining not to perform CCF on the block (disabling CCF).

[0114] If the statistical information includes mode information, the condition may include predetermined information or a predetermined value indicating specific mode information. In this case, determining whether to perform CCF on the block may include: when the mode information is predetermined information, determining not to perform CCF on the block, and the predetermined information may be determined, for example, as encoding information corresponding to the mode information identified as equal to the predetermined value. For example, when it is determined that the block is encoded in the intra-frame DC mode, CCF may be disabled for the block.

[0115] If the statistical information includes intermediate information, the condition may include predetermined information or a predetermined value representing specific intermediate information. In this case, determining whether to perform CCF on the block may include: when the intermediate information is predetermined information, determining not to perform CCF on the block, the predetermined information may be determined, for example, as intermediate information identified as being equal to a predetermined value. For example, when it is determined that the CDEF filter strength of the block is 0, CCF may be disabled for the block.

[0116] In some embodiments, determining whether to perform CCF on a block (908) may include determining whether to perform CCF on a sub-block of the block. The sub-block may be a portion of the block, such as 1 / 2, 1 / 3, 1 / 4, 1 / 6, 1 / 8, 1 / 16, or 1 / 32 of the block. That is, even if the CCF flag at the block level is true, for each sub-block of the block, it is still possible to determine whether to perform CCF based on the statistical information of the sub-block. The determination of the statistical information of the sub-block and the determination of the condition of whether to perform CCF on the sub-block are similar to the same determination described above with respect to the block, except that the same determination is performed at the sub-block level.

[0117] In some embodiments, determining whether to perform CCF on a block may include determining whether to perform CCF on a block or sub-block in each color component. Each color component in a block or sub-block may have corresponding statistical information, which may be different from statistical information of another color component.

[0118] In some embodiments, a statistically based CCF determination may be performed on one color component, and the determination may be directly applied to other color components. That is, the decoder may only need to determine the statistical information of one color component in a block or sub-block. The decoder may then determine whether to perform CCF in the color component based on the statistical information of the color component, and apply the same determination to other color components. For example, if the decoder disables CCF for a block or sub-block in a color component based on the statistical information of the color component (i.e., determines not to perform CCF on a block or sub-block in the color component), the decoder also disables CCF for blocks or sub-blocks in other color components. As a specific example, if CCF is disabled for a block or sub-block in the Cb component, CCF is also disabled for a block or sub-block in the Cr component.

[0119] In some embodiments, it is irrelevant to determine whether to perform CCF on blocks or sub-blocks in different color components. That is, a statistically based CCF determination can be performed on each color component, and the CCF on / off of a block or sub-block in one color component does not affect the CCF on / off of blocks or sub-blocks in other color components. Therefore, the decoder may need to determine the statistical information of each color component in the block or sub-block, and then determine whether to perform CCF in each color component based on the statistical information of the corresponding color component. For example, if the decoder disables CCF for a block or sub-block in a color component based on the statistical information of the color component (i.e., determines not to perform CCF on the block or sub-block in the color component), the decoder still needs to further determine whether to enable or disable CCF for blocks or sub-blocks in other color components. As a specific example, if CCF is disabled for a block or sub-block in the Cb component, CCF can be enabled or disabled for a block or sub-block in the Cr component based on the statistical information of the Cr component.

[0120] According to the above embodiments, the processing time in image processing can be reduced. For example, less time is required to determine whether a region is a smooth region based on statistical information. Therefore, the image processing speed and overall efficiency are improved.

[0121] In some embodiments, even if the CCF flag for a region (e.g., a region including multiple blocks) is true, pixels of blocks in the region may still be excluded from the CCF process, as described in more detail below. As described above, at the encoder end, the CCF process may include at least one of deriving CCF coefficients or performing CCF, and at the decoder end, the CCF process may include performing CCF. Excluding pixels from the CCF process may occur at both the encoder and the decoder.

[0122] Fig. 10A 1 is a flow chart of an example image processing method 1000A according to the present disclosure. The method 1000A may be performed by an electronic device implementing an encoder, such as the computer system 200 or a portion of the computer system 200 described above. Fig. 10AAs shown, at 1002A, data corresponding to the area to be processed (also referred to as the current area) is received. The area may include multiple blocks. At 1004A, the CCF flag of the area is determined. The CCF flag of the area can be determined according to the method of the present disclosure. At 1006A, when the CCF flag of the area is true, statistical information of the blocks in the area is obtained. The statistical information of the block may include mode information of the block, such as prediction mode (i.e., whether to apply intra-frame DC mode, intra-frame plane mode, intra-frame path mode, intra-frame smoothing mode, intra-frame recursive filtering mode, inter-frame skip mode), information related to coefficient coding (e.g., CBF), block size, QP, CCF flag of another image frame (e.g., reference frame), and / or motion vector (amplitude) associated with the block. At 1008A, when the statistical information meets the condition, for example, when the mode information of the block meets the condition, the pixels of the block are excluded from the CCF process.

[0123] Accordingly, Fig. 10B 1 is a flowchart of an exemplary image processing method 1000B according to the present disclosure. The method 1000B may be executed by an electronic device implementing a decoder, such as the computer system 200 or a portion of the computer system 200 as described above. Fig. 10B As shown, at 1002B, a data packet corresponding to a region (also referred to as a current region) is received. The region may include multiple blocks. At 1004B, it is determined whether the CCF flag of the region contained in the data packet is true or false. At 1006B, when the CCF flag of the region is true, statistical information of the blocks in the region is obtained. The statistical information of the blocks may include encoding information corresponding to the mode information of the block. At 1008B, when the statistical information satisfies a condition, for example, when the encoding information of the block satisfies a condition, the pixels of the block are excluded from the CCF process.

[0124] Various modes / coding information and conditions may be used in processes 1006A / 1006B and 1008A / 1008B to determine whether to exclude pixels of a block. For example, if the prediction mode of the block is skip mode, the pixels of the block are excluded (at the encoder and / or decoder) from the CCF process. As another example, if the CBF flags of the luma and / or chroma components of the block are zero, the pixels of the block are excluded (at the encoder and / or decoder) from the CCF process. As a further example, if the luma or chroma components of the block are encoded in a non-directional intra-prediction mode, such as planar, DC, or smooth (AV1) mode, the pixels of the block are excluded (at the encoder and / or decoder) from the CCF process.

[0125] CCF signaling may be performed, for example, at block level for each color component of a block, and thus one or more CCF flags may be signaled for a block. Fig.11A1 is a flowchart of an example image processing method 1100A according to the present disclosure. The method 1100A may be performed by an electronic device implementing an encoder, such as the computer system 200 or a portion of the computer system 200 as described above, for example, to determine CCF signaling of each color component of a block.

[0126] like Fig.11A As shown, at 1102, a block to be processed (also referred to as a current block) is received. At 1104, a first CCF flag (also referred to as a "joint CCF flag") is determined for all applicable color components of the block. The color components of the block may include, for example, a Cb component and a Cr component. The first CCF flag may be signaled to indicate whether CCF is applied to all applicable color components.

[0127] At 1106, it is determined whether the first CCF flag is signaled using a value indicating that no applicable color component applies the CCF. If the first CCF flag is signaled using a value indicating that no applicable color component applies the CCF (1106: Yes), there is no need to further determine whether to perform CCF signaling for a single color component (1108). On the other hand, if the first CCF flag is not signaled using a value indicating that no applicable color component applies the CCF (1106: No), for example, if the first CCF flag is signaled using a value indicating that at least one of the applicable color components of the block applies the CCF, a second CCF flag is determined for a first color component (e.g., a Cb component) of the applicable color components (1110).

[0128] At 1112, it is determined whether a second CCF flag is signaled using a value indicating that the first color component applies CCF. If the second CCF flag is signaled using a value indicating that the first color component applies CCF (1112: Yes), a third CCF flag is determined for a second color component (e.g., a Cr component) of the applicable color component (1114), wherein the third CCF flag is signaled using a value indicating whether the second color component applies CCF. On the other hand, if the second CCF flag is not signaled using a value indicating that the first color component applies CCF (1112: No), for example, if the second CCF flag is signaled using a value indicating that the first color component does not apply CCF, it is determined that no further CCF signaling is required for the second color component (1116).

[0129] Fig. 11B is a flowchart of an example image processing method 1100B according to the present disclosure. The method 1100B may be performed by an electronic device implementing a decoder, such as the computer system 200 or a portion of the computer system 200 as described above, for example, to determine whether to perform CCF on each color component of a block.

[0130] like Fig. 11B As shown, at 1122, a data packet of a block (also referred to as a current block) is received. The data packet may include one or more CCF flags of applicable color components of the block as determined above according to method 1100A. For example, according to the encoding process at the encoder, the data packet may include at least a first CCF flag, and may further include a second CCF flag and a third CCF flag. At 1124, it is determined which CCF flag or flags are included in the data packet. If the data packet only includes the first CCF flag, then based on the encoder-side process described above, the first CCF flag will have a value indicating that no applicable color component applies CCF, so CCF is not performed on all applicable color components (1126). If the data packet only includes the first CCF flag and the second CCF flag, then based on the encoder-side process described above, the first CCF flag will have a value indicating that CCF is applied to at least one of the applicable color components, and the second CCF flag will have a value indicating that CCF is not applied to the first color component. Therefore, it can be inferred that CCF needs to be performed on the second color component, so CCF is performed on the second color component (1128). In addition, if the data packet includes all three of the first CCF flag, the second CCF flag, and the third CCF flag, based on the above-mentioned encoder side process, the first CCF flag will have a value indicating that at least one of the applicable color components applies CCF, the second CCF flag will have a value indicating that the first color component applies CCF, and the third CCF flag will have a value that can indicate that the second color component applies CCF or can indicate that the second color component does not apply CCF. Therefore, CCF is performed on the first color component, and whether CCF is performed on the second color component depends on whether the third CCF flag has a value indicating that CCF is applied to the second color component (1130).

[0131] exist Fig.11A and 11B In the above-described exemplary methods 1100A and 1100B, a scenario in which a block includes two applicable color components is shown and described as an example. Similar methods can be applied to scenarios with different numbers of applicable color components (eg, three or more applicable color components).

[0132] In some embodiments, in order to avoid parsing dependencies, the block-level CCF on / off based on statistics is not directly signaled to the decoder. Instead, the encoder can determine the block-level CCF on / off based on statistics as a prediction and signal to the decoder whether the prediction is correct (true or false). The decoder can determine whether to perform CCF on the block based on the prediction and the statistical information of the block. This method will be described in more detail below.

[0133] Fig.12 is a flow chart of an example image processing method 1200 according to the present disclosure. Fig.12 Each of the encoder and decoder in the embodiment can be implemented by an electronic device, for example, the computer system 200 or a part of the computer system 200 as described above. Fig.12 As shown, at 1202, the encoder determines the CCF on / off prediction of the block based on the statistical information of the block. At 1204, the encoder signals the CCF on / off prediction to the decoder. At 1206, the decoder receives the CCF on / off prediction from the encoder. At 1208, the decoder determines the statistical information of the block. At 1210, the decoder determines whether to perform CCF on the block based on the CCF on / off prediction and the statistical information of the block.

[0134] In some embodiments, if the CCF on / off prediction is true, the decoder may determine that the determined statistical information of the block is reliable. In this case, the decoder may determine whether to perform CCF on the block based on whether the statistical information of the block satisfies a condition (e.g., whether the statistical information of the block indicates that the block is a smooth area). For example, if the statistical information of the block satisfies the condition (the determined statistical information indicates that the block is a smooth area), the decoder may determine to perform CCF, and if the statistical information of the block does not satisfy the condition (the determined statistical information indicates that the block is not a smooth area), the decoder may determine not to perform CCF.

[0135] In some embodiments, if the CCF on / off prediction is false, the decoder may determine that the determined statistical information of the block is unreliable. In this case, the decoder may determine whether to perform CCF on the block based on whether the statistical information of the block does not satisfy a condition (e.g., whether the statistical information of the block indicates that the block is not a smooth area). For example, if the statistical information of the block does not satisfy the condition (the determined statistical information indicates that the block is not a smooth area), the decoder may determine to perform CCF, and if the statistical information of the block satisfies the condition (the determined statistical information indicates that the block is a smooth area), the decoder may determine not to perform CCF.

[0136] Fig.13 1 is a block diagram of an electronic device 1300 according to the present disclosure. The electronic device 1300 may implement an encoder or a decoder according to the present disclosure, or a part of an encoder or a decoder, or may include an encoder or a decoder. Fig.13As shown, the electronic device 1300 includes a processor 1302 and a non-volatile computer-readable storage medium 1304. The processor 1302 may include, for example, a computer processor, a processing unit, a microprocessor, a digital signal processor, a controller, a microcontroller, etc. The storage medium 1304 may include, for example, at least one of a static random access memory (SRAM), a dynamic random access memory (DRAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory (e.g., a universal serial bus (USB) memory). The storage medium 1304 may store instructions that, when executed by the processor 1302, cause the processor 1302 to perform a method according to the present disclosure, such as one of the above-described example methods.

[0137] According to the present disclosure, less information needs to be encoded and transmitted from the encoder to the decoder, or less processing time is required to obtain statistical information. Therefore, the encoding and decoding efficiency can be improved and the complexity can be reduced. In addition, less storage space and transmission bandwidth are required. The overall efficiency of image processing can be improved.

[0138] Although the principles and implementations of the present disclosure are described through the specific embodiments in the specification, the embodiments described above are only used to help understand the method of the present disclosure and its core ideas. At the same time, those of ordinary skill in the art can modify the specific implementation methods and application scopes according to the ideas of the present disclosure. In short, the contents of the specification should not be interpreted as limiting the present disclosure.

Claims

1. An image processing method, characterized in that: Applied to an encoder, the method comprises: The encoder obtains statistical information of blocks of an image frame; The encoder determines whether the statistical information satisfies a condition; In response to determining that the statistical information satisfies the condition, the encoder determines to disable cross-component filtering CCF signaling; and The encoder excludes the CCF signaling from a bit stream transmitted to a decoder, the bit stream corresponding to the block, and the excluding the CCF signaling includes: excluding a CCF flag in the bit stream transmitted to the decoder.

2. The method according to claim 1, characterized in that Further including: The encoder determines a cross-component filtering (CCF) on / off prediction of the block based on statistical information of the block; The encoder sends the CCF on / off prediction to the decoder, wherein the CCF on / off prediction does not include the CCF flag; The decoder determines whether the CCF on / off prediction is true or false; as well as In response to the decoder determining that the CCF on / off prediction is false, the decoder determines that the statistical information of the block is unreliable, and determines whether to perform CCF on the block according to whether the statistical information of the block satisfies a condition.

3. The method according to claim 1, characterized in that The excluding the CCF flag comprises: excluding the CCF flag in the block header of the data packet corresponding to the block.

4. The method according to claim 1, characterized in that: Further including: The encoder generates CCF coefficients of a first portion of pixels of the block according to statistical information of the block; as well as The encoder excludes a second portion of pixels of the block from a process of generating the CCF coefficients.

5. The method according to claim 1, characterized in that The determining whether the statistical information satisfies a condition comprises: determining whether a percentage of pixels of the block encoded by a specific mode is greater than a threshold, the specific mode comprising a skip mode or an intra mode.

6. The method according to claim 1, characterized in that Further including: The decoder receives the bit stream sent by the encoder; The decoder determines whether the bitstream excludes the CCF flag; as well as In response to determining that the bitstream excludes the CCF flag, the decoder performs a default action on the block, the default action comprising not performing CCF.

7. The method according to claim 1, characterized in that The block includes a first color component and a second color component different from the first color component, the method further comprising: The decoder determines to disable CCF for a first color component of the block; and The decoder determines to disable CCF for a second color component of the block.

8. The method according to claim 1, characterized in that The acquiring the statistical information of the block includes: acquiring smoothness information of the block.

9. The method according to claim 8, characterized in that The acquiring the smoothness information of the block includes: measuring the smoothness of the block according to the pixel value or the gradient value in the block.

10. The method according to claim 9, characterized in that The determining whether the statistical information satisfies a condition includes: determining whether the smoothness of the block is less than a threshold.

11. The method according to claim 9, characterized in that The determining whether the statistical information satisfies a condition includes: determining whether the smoothness of the block is greater than a threshold.

12. The method according to claim 9, characterized in that Measuring the smoothness of the block according to the pixel values ​​in the block includes: measuring the smoothness of the block according to at least one of the brightness component value or the chrominance component value of the pixels in the block.

13. The method according to claim 9, characterized in that Measuring the smoothness of the block includes measuring the smoothness of the block based on at least one of a range of pixel values ​​in the block, an interquartile range of pixel values ​​in the block, a variance of pixel values ​​in the block, or a standard deviation of pixel values ​​in the block.

14. The method according to claim 9, characterized in that Measuring the smoothness of the block includes measuring the smoothness of the block based on at least one of a range of gradient values ​​in the block, an interquartile range of gradient values ​​in the block, a variance of gradient values ​​in the block, or a standard deviation of gradient values ​​in the block.

15. The method according to claim 1, characterized in that The acquiring statistical information of the block includes: acquiring mode information of the block.

16. The method according to claim 15, characterized in that The determining whether the statistical information satisfies a condition includes: determining whether the pattern information of the block includes predetermined information.

17. The method according to claim 15, characterized in that The acquiring the mode information of the block includes: acquiring at least one of a prediction mode of the block, information related to coefficient encoding, a block size, a quantization parameter, a CCF flag of another image frame, or a motion vector associated with the block.

18. The method according to claim 15, characterized in that: The acquiring the mode information of the block includes: acquiring a prediction mode of the block; and The determining whether the statistical information satisfies a condition includes: determining whether a prediction mode of the block is an intra-frame direct current (DC) mode.

19. An electronic device, characterized in that: include: processor, and A non-volatile computer-readable storage medium, used for storing instructions, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 18.

20. A non-volatile computer-readable storage medium, characterized in that: Used to store instructions, when the instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 18.