Loop filtering techniques

By using the temporal adaptive loop filter (ALF) technique during video encoding and decoding to filter the reference image and adjacent samples, the problems of image quality loss and low coding efficiency in the prior art are solved, and higher image quality and coding efficiency are achieved.

CN123187434APending Publication Date: 2026-11-27TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580026799.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-07-10
Filing Date
2025-07-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing video encoding and decoding technologies struggle to effectively utilize temporal and spatial redundancy during compression, resulting in image quality loss and low encoding efficiency.

Method used

The adaptive loop filter (ALF) technique is used to filter the reference samples and neighboring samples in the reference image to generate the filter offset of the current image, thereby improving image quality and coding efficiency.

Benefits of technology

ALF technology improves image quality and coding efficiency in video encoding and decoding processes, especially significantly improving the processing effect of chroma samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187434A_ABST
    Figure CN123187434A_ABST
Patent Text Reader

Abstract

Some aspects of the disclosure provide a method of video decoding. For example, a bitstream is received, the bitstream including coded information of at least one picture. Motion vector information associated with a current chroma sample of a current block in the current picture is derived. The motion vector information points to a reference sample in a reference picture of the current picture. Temporal ALF is applied to the reference sample in the reference picture and at least one neighboring sample of the reference sample to generate a filtering offset for the current chroma sample in the current picture. A filtered value of the current chroma sample is generated according to the filtering offset.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Incorporation This application claims priority to U.S. Patent Application No. 19 / 266,145, filed July 10, 2025, which claims priority to U.S. Provisional Application No. 63 / 671,267, filed July 14, 2024, and U.S. Provisional Application No. 63 / 712,513, filed October 27, 2024. The entire disclosure of these earlier applications is incorporated herein by reference. Technical Field

[0002] This invention describes various aspects generally related to video encoding and decoding. Background Technology

[0003] The background description provided in this application is intended to generally present the context of the invention. To the extent that the work described in this background section is intended, the work of the currently named inventors and aspects of the description that may not have otherwise qualified as prior art at the time of filing are neither explicitly nor implicitly considered as prior art to the invention.

[0004] Image / video compression facilitates the transfer of image / video data across different devices, storage devices, and networks with minimal quality loss. In some examples, video codecs can compress video based on spatial and temporal redundancy. In one example, a video codec can use a technique called intra-frame prediction, which compresses images based on spatial redundancy. For example, intra-frame prediction can use reference data from the current image being reconstructed to predict samples. In another example, a video codec can use a technique called inter-frame prediction, which compresses images based on temporal redundancy. For example, inter-frame prediction can utilize motion compensation to predict samples in the current image based on previously reconstructed images. Motion compensation can be indicated by a motion vector (MV). Summary of the Invention

[0005] Various aspects of the present invention include bitstreams, methods, and apparatus for video encoding / decoding. In some examples, the apparatus for video encoding / decoding includes processing circuitry.

[0006] Some aspects of the present invention provide a method for video decoding. For example, a bitstream is received, the bitstream including encoded information of at least one image. Motion vector information associated with a current chroma sample of a current block in the current image is derived. The motion vector information points to a reference sample in a reference image of the current image. A temporal adaptive loop filter (ALF) is applied to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image. Based on the filter offset, a filtered value for the current chroma sample is generated.

[0007] Some aspects of the present invention provide a method for video coding. In one example, motion vector information associated with a current chroma sample of a current block in a current image is derived, the motion vector information pointing to a reference sample in a reference image of the current image. Temporal ALF is applied to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image. Based on the filter offset, a filter value for the current chroma sample is generated. Based at least on the filter value for the current chroma sample, multiple images, including the current image, are encoded into encoded information in a bitstream.

[0008] Some aspects of the present invention provide a non-transitory computer-readable storage medium storing a video media stream encoded by an encoding method.

[0009] The present invention also provides an apparatus for video decoding. The apparatus for video decoding includes processing circuitry configured to implement any of the described methods for video decoding.

[0010] Aspects of the present invention also provide an apparatus for video encoding. The apparatus for video encoding includes processing circuitry configured to implement any of the described methods for video encoding.

[0011] Aspects of the present invention also provide a non-transitory computer-readable storage medium storing instructions that, when executed by a computer, cause the computer to perform any of the described methods for video decoding / encoding. Attached Figure Description

[0012] Other features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which: Figure 1 An example block diagram of a communication system is shown schematically.

[0013] Figure 2 An example block diagram of a decoder is shown schematically.

[0014] Figure 3 An example block diagram of an encoder is shown schematically.

[0015] Figures 4A-4B The filter shapes for single motion vector filters and dual motion vector filters for the luminance component (luminance sample) are shown in some examples.

[0016] Figures 5A-5B The following are some examples of filter shapes used for chroma components (chroma samples).

[0017] Figures 6A-6B The filter shapes of some examples of cross-component adaptive loop filters (CCALF) are shown.

[0018] Figure 7 This diagram illustrates a cascaded motion vector that includes motion vectors and block vectors (BVs) in one example.

[0019] Figure 8 Block diagrams of loop filter modules are shown in some examples.

[0020] Figure 9 Block diagrams of loop filter modules are shown in some examples.

[0021] Figure 10 Block diagrams of loop filter modules are shown in some examples.

[0022] Figure 11 Block diagrams of loop filter modules are shown in some examples.

[0023] Figure 12 Block diagrams of loop filter modules with chroma input signal enhancement for cascaded loop filters are shown in some examples.

[0024] Figure 13 Block diagrams of loop filter modules with chroma input signal enhancement for parallel loop filters are shown in some examples.

[0025] Figure 14 A flowchart outlining the decoding process according to some aspects of the present invention is shown.

[0026] Figure 15 A flowchart outlining the encoding process according to some aspects of the present invention is shown.

[0027] Figure 16 A flowchart outlining the decoding process according to some aspects of the present invention is shown.

[0028] Figure 17A flowchart outlining the encoding process according to some aspects of the present invention is shown.

[0029] Figure 18 It is a schematic diagram of a computer system based on one aspect. Detailed Implementation

[0030] Figure 1 Block diagrams of some example video processing systems (100) are shown. The video processing system (100) is an example application of the disclosed subject matter, namely, video encoders and video decoders in a streaming media environment. The disclosed subject matter is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, streaming media services, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0031] The video processing system (100) includes an acquisition subsystem (113), which may include a video source (101), such as a digital camera, for creating, for example, an uncompressed video image stream (102). In one example, the video image stream (102) includes samples captured by a digital camera. The video image stream (102) is depicted as a thick line compared to the encoded video data (104) (or encoded video stream) to emphasize the high data volume of the video image stream, which may be processed by an electronic device (120) including a video encoder (103) coupled to the video source (101). The video encoder (103) may include hardware, software, or a combination of hardware and software to enable or implement aspects of the disclosed subject matter described in more detail below. The encoded video data (104) (or encoded video stream) is depicted as a thin line compared to the video image stream (102) to emphasize the low data volume of the encoded video data, which may be stored on a streaming media server (105) for future use. At least one streaming media client subsystem, such as Figure 1Client subsystems (106) and (108) can access a streaming media server (105) to retrieve copies (107) and (109) of encoded video data (104). Client subsystem (106) may include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and creates an outgoing video image stream (111) that can be presented on a display (112) (e.g., a screen) or other display device (not depicted). In some streaming media systems, the encoded video data (104), (107), and (109) (e.g., a video stream) may be encoded according to certain video coding / compression standards. For example, those standards include the ITU-T H.265 Recommendation. In one example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC). The disclosed topics are applicable in the context of VVC.

[0032] It should be noted that electronic devices (120) and (130) may include other components (not shown). For example, electronic device (120) may also include a video decoder (not shown), while electronic device (130) may also include a video encoder (not shown).

[0033] Figure 2 An example block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., receiving circuitry). The video decoder (210) may replace... Figure 1 The video decoder (110) in the example is used.

[0034] The receiver (231) can receive, for example, at least one encoded video sequence included in the bitstream, which is decoded by the video decoder (210). In one aspect, one encoded video sequence is received at a time, and the decoding of each encoded video sequence is independent of the decoding of other encoded video sequences. The encoded video sequences can be received from a channel (201), which can be a hardware / software link connected to a storage device storing the encoded video data. The receiver (231) can receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams that can be forwarded to their respective user entities (not depicted). The receiver (231) can separate the encoded video sequences from other data. To combat / mitigate network jitter, a buffer memory (215) can be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other applications, the buffer memory (215) may be external to the video decoder (210) (not depicted). In other applications, a buffer memory (not depicted) may exist external to the video decoder (210), for example, to combat / mitigate network jitter, and another buffer memory (215) may exist internally to the video decoder (210), for example, to handle playback timing. The buffer memory (215) may not be necessary or may be made smaller when the receiver (231) receives data from a store / forward device with sufficient bandwidth and controllability or from an isosynchronous network. For use on best-effort packet networks such as the Internet, a buffer memory (215) may be required. The buffer memory (215) may be relatively large and may advantageously have an adaptive size, and may be implemented at least partially in a similar component (not depicted) external to the operating system or the video decoder (210).

[0035] The video decoder (210) may include a parser (220) for reconstructing symbols (221) from the encoded video sequence. Categories of those symbols include information for managing the operation of the video decoder (210) and may include information for controlling a display device, such as a component of a non-electronic device (230) but which may be coupled to an electronic device (230) (e.g., a display screen). Figure 2As shown in the diagram. Control information for one or more display devices may be in the form of Supplemental Enhancement Information (SEI) messages or Video Usability Information (VUI) parameter set fragments (not depicted). The parser (220) may parse / entropy decode the received encoded video sequence. The encoding of the encoded video sequence may be based on video coding techniques or standards and may follow various principles, including variable-length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (220) may extract a subgroup parameter set from the encoded video sequence for at least one pixel subgroup / subgroup in the video decoder based on at least one parameter corresponding to a group. Subgroups may include Group of Pictures (GOP), picture, tile, slice, macroblock, coding unit (CU), block, transform unit (TU), prediction unit (PU), etc. The parser (220) can also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the encoded video sequence.

[0036] The parser (220) can perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) in order to create symbols (221).

[0037] Depending on the type of the encoded video image or its portions (e.g., inter-frame and intra-frame images, inter-frame and intra-frame blocks) and other factors, the reconstruction of the symbol (221) may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the encoded video sequence by the parser (220). For clarity, the flow of such subgroup control information between the parser (220) and the multiple units described below is not depicted.

[0038] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into several functional units as described below. In practical implementations under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purposes of describing the disclosed subject matter, it is appropriate to conceptually subdivide it into the functional units described below.

[0039] The first unit is the scaler / inverse transform unit (251). The scaler / inverse transform unit (251) receives from the parser (220) quantization transform coefficients as one or more symbols (221) and control information, including the transform to be used, block size, quantization factor, quantization scaling matrix, etc. The scaler / inverse transform unit (251) can output blocks containing sample values, which can be input into the aggregator (255).

[0040] In some cases, the output samples of the scaler / inverse transform unit (251) may relate to intra-coded blocks. Intra-coded blocks do not use predictive information from previously reconstructed images, but instead can use predictive information from previously reconstructed portions of the current image. Such predictive information can be provided by the intra-image prediction unit (252). In some cases, the intra-image prediction unit (252) uses surrounding reconstructed information obtained from the current image buffer (258) to generate blocks of the same size and shape as the blocks in the reconstruction. For example, the current image buffer (258) is used to buffer partially reconstructed current images and / or fully reconstructed current images. In some cases, the aggregator (255) adds the predictive information generated by the intra-prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.

[0041] In other cases, the output samples of the scaler / inverse transform unit (251) may involve inter-frame coded and possibly motion-compensated blocks. In this case, the motion compensation prediction unit (253) can access the reference image memory (257) to obtain samples for prediction. After motion compensation of the obtained samples according to the block-related symbols (221), these samples can be added to the output of the scaler / inverse transform unit (251) (referred to in this case as residual samples or residual signals) by the aggregator (255) to generate output sample information. The address of the predicted samples obtained by the motion compensation prediction unit (253) in the reference image memory (257) can be controlled by motion vectors used by the motion compensation prediction unit (253) in the form of symbols (221), which may have, for example, X, Y, and reference image components. Motion compensation may also include interpolation of sample values ​​obtained from the reference image memory (257) when using subsample precise motion vectors, motion vector prediction mechanisms, etc.

[0042] The output samples of the aggregator (255) can be employed by various loop filtering techniques in the loop filter unit (256). Video compression techniques may include loop filtering techniques controlled by parameters included in the encoded video sequence (also known as the encoded video stream) and available as symbols (221) from the parser (220) for use in the loop filter unit (256). Video compression may also respond to metadata obtained during the decoding of a previous (in decoding order) portion of the encoded image or encoded video sequence, and to previously reconstructed and loop-filtered sample values.

[0043] The output of the loop filter unit (256) can be a sample stream, which can be output to the display device (212) and stored in the reference image memory (257) for future inter-frame image prediction.

[0044] Some encoded images can be used as reference images for future predictions after they have been fully reconstructed. For example, after the encoded image corresponding to the current image has been fully reconstructed and the encoded image has been identified as a reference image (by, for example, a parser (220)), the current image buffer (258) can become part of the reference image memory (257), and a new current image buffer can be reallocated before the reconstruction of subsequent encoded images begins.

[0045] The video decoder (210) can perform decoding operations according to a predetermined video compression technology or standard, such as ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax of the video compression technology or standard and the configuration file documented therein if the encoded video sequence follows both the syntax of the video compression technology or standard and the configuration file documented therein. Specifically, the configuration file may select certain tools from all available tools in the video compression technology or standard as the only tools available under that configuration file. For compliance, the complexity of the encoded video sequence must also be within the limits defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum image size, maximum frame rate, maximum reconstruction sampling rate (measured in megasamples per second, for example), maximum reference image size, etc. In some cases, the limitations set by the hierarchy can be further limited by the Hypothetical Reference Decoder (HRD) specification and the metadata managed by the HRD buffer indicated by signaling in the encoded video sequence.

[0046] In one aspect, the receiver (231) may receive supplemental (redundant) data along with the encoded video. This supplemental data may be part of one or more encoded video sequences. The supplemental data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The supplemental data may take the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant images, forward error correction codes, etc.

[0047] Figure 3 An example block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., transmission circuitry). The video encoder (303) may replace Figure 1 The video encoder (103) in the example is used.

[0048] The video encoder (303) can obtain data from the video source (301) (non-video source). Figure 3 In one example, an electronic device (320) receives video samples, and a video source (301) can capture one or more video images to be encoded by a video encoder (303). In another example, the video source (301) is part of the electronic device (320).

[0049] A video source (301) can provide a sequence of source video samples in the form of a digital video sample stream to be encoded by a video encoder (303). This digital video sample stream can have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, etc.), any color space (e.g., BT.601 YCrCb, RGB, etc.), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (301) can be a storage device storing previously prepared video. In a video conferencing system, the video source (301) can be a camera that captures local image information as a video sequence. Video data can be provided as multiple individual images that, when viewed sequentially, produce an animated effect. The images themselves can be organized as spatial pixel arrays, where each pixel can include at least one sample, depending on the sampling structure, color space, etc., used. Samples are described in detail below.

[0050] According to one aspect, the video encoder (303) can encode and compress images of a source video sequence into an encoded video sequence (343) in real time or as needed, according to any other time constraints. Implementing an appropriate encoding rate is a function of the controller (350). In some aspects, the controller (350) controls and is functionally coupled to other functional units described below. For clarity, the coupling is not depicted. Parameters set by the controller (350) may include rate control-related parameters (image skipping, quantizer, λ value of rate-distortion optimization techniques, etc.), image size, GOP layout, maximum motion vector search range, etc. The controller (350) can be configured to have other suitable functions related to the video encoder (303) optimized for a specific system design.

[0051] In some respects, the video encoder (303) is configured to operate in an encoding loop. Simply put, in one example, the encoding loop may include a source encoder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on the input image to be encoded and one or more reference images), and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a manner similar to that created by the (remote) decoder. The reconstructed sample stream (sample data) is input to a reference image memory (334). Since the decoding of the symbol stream produces a bit-by-bit accurate result unaffected by the decoder's location (local or remote), the contents of the reference image memory (334) are also bit-by-bit accurate between the local and remote encoders. In other words, the reference image samples "seen" by the encoder's prediction section are exactly the same as the sample values ​​"seen" by the decoder during decoding when using the prediction. This fundamental principle of reference image synchronization (and the drift that occurs when synchronization cannot be maintained, for example, due to channel errors) is also used in some related fields.

[0052] The operation of the “local” decoder (333) can be the same as that of a “remote” decoder such as a video decoder (210), which has already been described above. Figure 2 A detailed description has been provided. However, a brief additional reference is also available. Figure 2 When symbols are available and the entropy encoder (345) and parser (220) are able to encode / decode the symbols into an encoded video sequence without loss, the entropy decoding portion of the video decoder (210), including the buffer (215) and parser (220), may not be fully implemented in the local decoder (333).

[0053] In one respect, decoder techniques other than parsing / entropy decoding, which exist in the decoder, exist in the corresponding encoder with the same or substantially the same functional form. Therefore, the disclosed subject focuses on decoder operation. The description of encoder techniques can be simplified, as encoder techniques are the reverse operation of the comprehensively described decoder techniques. More detailed descriptions are only required in certain areas, and these descriptions are provided below.

[0054] In some examples, during operation, the source encoder (330) may perform motion-compensated predictive coding, i.e., predictively coding the input image against at least one previously encoded image designated as a “reference image” in the reference video sequence. In this way, the coding engine (332) encodes the differences between pixel blocks of the input image and pixel blocks of one or more reference images, which may be selected as one or more predictive references for the input image.

[0055] The local video decoder (333) can decode encoded video data of an image that can be designated as a reference image, based on symbols created by the source encoder (330). Advantageously, the operation of the encoding engine (332) can be a lossy process. When the encoded video data can be decoded by the video decoder (333), Figure 3 During decoding at (not shown), the reconstructed video sequence can typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process, which can be performed by the video decoder on the reference image, and can store the reconstructed reference image in the reference image memory (334). In this way, the video encoder (303) can store a copy of the reconstructed reference image locally, which shares the same content (no transmission errors) as the reconstructed reference image to be obtained by the remote video decoder.

[0056] The predictor (335) can perform a prediction search against the encoding engine (332). That is, for a new image to be encoded, the predictor (335) can search in the reference image memory (334) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference image motion vectors, block shapes, etc., that can be used as suitable prediction references for the new image. The predictor (335) can operate on a pixel-by-pixel basis based on sample blocks to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (335), the input image may have prediction references obtained from multiple reference images stored in the reference image memory (334).

[0057] The controller (350) can manage the encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for video data encoding.

[0058] The outputs of all the aforementioned functional units can be entropy encoded in the entropy encoder (345). The entropy encoder (345) converts these symbols into an encoded video sequence by applying lossless compression to the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, and arithmetic coding.

[0059] The transmitter (340) may buffer one or more encoded video sequences created by the entropy encoder (345) in preparation for transmission via a communication channel (360), which may be a hardware / software link connected to a storage device that will store the encoded video data. The transmitter (340) may combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0060] The controller (350) can manage the operation of the video encoder (303). During encoding, the controller (350) can assign a specific encoded image type to each encoded image, which may affect the encoding techniques applicable to the corresponding image. For example, one of the following image types can typically be assigned to an image.

[0061] Intraframe images (I-images) are images that are encoded and decoded without using any other images in the sequence as prediction sources. Some video codecs allow different types of intraframe images, including, for example, Independent Decoder Refresh (IDR) images.

[0062] Predictive images (P-images) can be images that are encoded and decoded by predicting sample values ​​for each block via intra-frame prediction or via inter-frame prediction using motion vectors and reference indices.

[0063] A bidirectional predictive image (B-image) can be an image encoded and decoded by predicting sample values ​​for each block via intra-frame prediction or via inter-frame prediction using two motion vectors and a reference index. Similarly, a multi-predictive image can reconstruct a single block using more than two reference images and associated metadata.

[0064] The source image can typically be spatially subdivided into multiple sample blocks (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples each) and encoded block by block. These blocks can be predictively coded with reference to other (already coded) blocks, which are determined by the coding assignment applied to the corresponding images of the blocks. For example, blocks of an I-image can be non-predictively coded, or these blocks can be predictively coded with reference to already coded blocks of the same image (spatial prediction or intra-frame prediction). Pixel blocks of a P-image can be predictively coded via spatial prediction or via temporal prediction with reference to a previously coded reference image. Blocks of a B-image can be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference images.

[0065] The video encoder (303) can perform encoding operations according to predetermined video coding techniques or standards, such as ITU-T H.265 Recommendation. In operation, the video encoder (303) can perform various compression operations, including predictive coding operations that utilize temporal and spatial redundancy in the input video sequence. Therefore, the encoded video data can conform to the syntax specified by the video coding technique or standard used.

[0066] In one respect, the transmitter (340) may transmit additional data along with the encoded video. The source encoder (330) may transmit such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant images and slices, SEI messages, VUI parameter set fragments, etc.

[0067] Video can be captured as multiple source images (video images) in a time-series manner. Intra-frame image prediction (often simplified to intra-frame prediction) utilizes spatial correlations within a given image, while inter-frame image prediction utilizes (temporal or other) correlations between images. In one example, the specific image being encoded / decoded is called the current image, which is divided into blocks. Where a block in the current image resembles a reference block in a previously encoded and still buffered reference image in the video, the block in the current image can be encoded using a vector called a motion vector. The motion vector points to the reference block in the reference image and, in the case of multiple reference images, may have a third dimension identifying the reference images.

[0068] In some aspects, inter-frame image prediction can utilize bidirectional prediction techniques. According to bidirectional prediction, two reference images are used, such as a first reference image and a second reference image, both preceding the current image in the video in decoding order (but possibly representing past and future images in display order). A block in the current image can be encoded using a first motion vector pointing to a first reference block in the first reference image and a second motion vector pointing to a second reference block in the second reference image. A block can be predicted using a combination of the first and second reference blocks.

[0069] Furthermore, merging mode techniques can be used to improve coding efficiency in inter-frame image prediction.

[0070] According to some aspects of the invention, prediction is performed on a block-by-block basis, such as inter-frame image prediction and intra-frame image prediction. For example, according to the HEVC standard, images in a video image sequence are divided into coding tree units (CTUs) for compression. A single CTU in an image has the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Generally, a CTU comprises three coding tree blocks (CTBs): one luma coding tree block and two chroma coding tree blocks. Each CTU can be recursively quadtree-based into one or more coding units. For example, a 64×64 pixel CTU can be split into one 64×64 pixel coding unit, or four 32×32 pixel coding units, or sixteen 16×16 pixel coding units. In one example, each coding unit is analyzed to determine its prediction type, such as inter-frame prediction or intra-frame prediction. Coding units are split into at least one prediction unit based on temporal and / or spatial predictability. Typically, each prediction unit comprises one luma prediction block (PB) and two chroma prediction blocks. In one aspect, prediction operations in encoding / decoding are performed on a block-by-block basis. Using the luma prediction block as an example, a prediction block comprises a matrix of pixel values ​​(e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0071] It should be noted that the video encoders (103) and (303) and the video decoders (110) and (210) can be implemented using any suitable technology. In one aspect, the video encoders (103) and (303) and the video decoders (110) and (210) can be implemented using at least one integrated circuit (IC). In another aspect, the video encoders (103) and (303) and the video decoders (110) and (210) can be implemented using at least one processor that executes software instructions.

[0072] Various aspects of this invention provide loop filtering techniques. In some examples, after a video frame is decoded and reconstructed, an ALF applies a spatial filter to that frame. The ALF may include parameters dynamically determined based on local characteristics of the image content of the frame. The ALF can be applied to blocks or regions of the frame, thus enabling the ALF to handle different types of artifacts in different regions. The filter coefficients of the ALF are not fixed. In some examples, at the encoding end, filter coefficients are calculated for each frame or region based on content and the degree of distortion. The filter coefficients may be appropriately communicated to the decoder (e.g., indicated by signaling in the encoded video stream).

[0073] Some aspects of the present invention provide techniques for time-adaptive loop filtering and cross-component adaptive loop filtering for chroma.

[0074] In some related video coding techniques, spatial ALF is used as one of the loop filters. The filter shape of the ALF can be, but is not limited to, cross-shaped, diamond-shaped, etc. In some examples, the ALF can be applied to the luma component or chroma component in the current image to filter luma samples and chroma samples respectively. Luma samples can also be used as input to a filter (called a cross-component loop filter) to filter chroma samples in the current image, and this cross-component loop filter can be called a CCALF.

[0075] Similarly, in some related video coding techniques, a temporal adaptive loop filter (TALF) (also known as temporal ALF) can be used to filter the current luminance sample by using at least one luminance sample in the reference image, pointed to by a given motion vector of the current luminance sample, as input to the filtering process. In some examples, the given motion vector has integer precision and is used to obtain the luminance sample from the reference image. In some examples, two different filter shapes are used for single motion vector filters (e.g., filters for unidirectional prediction based on a single motion vector) and dual motion vector filters (e.g., filters for bidirectional prediction based on a pair of motion vectors).

[0076] Figures 4A-4B The filter shapes for single motion vector filters and dual motion vector filters for brightness samples are shown in some examples. Figure 4A The filter shape (410) is shown as an example of a filter shape that can be used for a single motion vector filter. The filter shape (410) includes 13 filter coefficients (in... Figure 4A These filter coefficients (labeled 0 to 12) are assigned to various positions within the filter shape (410). The filter shape (410) is applied when the given motion vector is a unidirectional motion vector. For example, the center position (labeled 0) is a reference sample to the current brightness sample pointed to by the unidirectional motion vector, and these filter coefficients can be applied to the reference sample and adjacent reference samples according to the filter shape (410) to generate an offset.

[0077] Figure 4B The following are examples of filter shapes (420) that can be used for dual motion vector filters. The filter shape (420) comprises a first part (421) and a second part (422). The filter shape (420) includes 14 filter coefficients (in... Figure 4B The filter coefficients (labeled 0 to 13) are assigned to positions in the first part (421) and the second part (422). When the given motion vector is a bidirectional motion vector, the filter shape (420) is applied. For example, a bidirectional motion vector comprises a pair of motion vectors, referred to as the first motion vector and the second motion vector, the first motion vector pointing to a first position in the first reference image and the second motion vector pointing to a second position in the second reference image. In one example, the first part (421) is applied to the first position in the first reference image (reference samples at the first position and adjacent positions in the first reference image), and the second part (422) is applied to the second position in the second reference image (reference samples at the second position and adjacent positions in the second reference image) to generate an offset.

[0078] According to some aspects of the invention, the filtering techniques of the present invention can be used in any suitable codec design and can improve image quality and coding efficiency.

[0079] In some aspects, motion vector information for the current chroma sample is derived, and an ALF (Adaptive Chromaticity Filter) is applied to at least one chroma sample in the reference image to which the derived motion vector points, to filter the current chroma sample. In some examples, the ALF is referred to as a temporal chroma adaptive loop filter, or temporal chroma ALF. In some examples, the encoder / decoder can derive motion vector information associated with the current chroma sample of the current block in the current image, which points to a reference sample in a reference image of the current image. The encoder / decoder can apply a temporal ALF to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image, and can generate a filtered value for the current chroma sample based on this filter offset.

[0080] In one aspect, a classifier can be applied to the current sample to determine which filter coefficients, indicated by signaling, should be selected. In some examples, multiple sets of filter coefficients (e.g., using a high-level grammar) are indicated by signaling for filtering the chroma samples, and a classifier is used to select a set of filter coefficients from these multiple sets to apply to the current block. In some examples, a classifier is used to determine a classification, and that classification is used to select a filter shape from multiple candidate filter shapes.

[0081] In some examples, the filtering equation (for time-adaptive loop filtering for chroma) can be represented based on the filtering coefficients, for example using equation (1): Equation (1) in Represents the filter coefficients. Indicates the current chromaticity sample. This represents the current chroma sample after filtering, and This represents the (reference) chromaticity sample pointed to by the derived motion vector in the reference image. Variables k and l in... and The variations between them, in some examples, L Indicates the filter length.

[0082] In some examples, the filter coefficients are determined by classifying the spatial ALF using the gradients and activity of quantized sample values. In one example, one or more gradients of a sample (e.g., a chroma sample) relative to its neighbors can be used as input to a classifier to determine the classification, and the filter coefficients (e.g., a filter shape among multiple candidate filter shapes) can then be determined based on that classification. In another example, the activity of a sample (e.g., a measure of change relative to its neighbors) can be used as input to a classifier to determine the classification, and the filter coefficients (e.g., a filter shape among multiple candidate filter shapes) can then be determined based on that classification.

[0083] In some examples, only the quantized sample values ​​of the samples (e.g., chroma samples) are used to determine the filter coefficients. In one example, the quantized sample values ​​of the samples are used as input to a classifier to determine the classification, and the filter coefficients (e.g., one of several candidate filter shapes) can then be determined based on that classification.

[0084] In one aspect, a nonlinear limiting function can be applied during the filtering process to generate the filtering result. In one example, the filtering equation with a nonlinear limiting function (for time-adaptive loop filtering of the chromaticity component) can be represented by equation (2): Equation (2) in This represents the decoded filter coefficients. Denotes the amplitude limiting function, and This represents the limiting parameter after decoding. Indicates the current chromaticity sample. This represents the current chroma sample after filtering, and This represents the reference chromaticity sample pointed to by the derived motion vector in the reference image. Variables k and l in... and The value varies between L and L, where L represents the filter length. In one example, the limiting function... .

[0085] In one aspect, a flag (e.g., also called an activation flag) is indicated by signaling in a higher-level syntax within a slice header, image header, or similar document to indicate whether TALF for the chroma component is used at the corresponding level. In some examples, this flag is implicitly deduced to be false when the slice or image is an intra-coded image.

[0086] In one aspect, a signaling indication at the block level, such as at the coding tree unit level or coding block level (coding unit level), is used to indicate whether a TALF for the chroma components is used at the block. In some examples, this flag is implicitly deduced to be false when the coding tree unit or coding block is encoded as an intra-block (e.g., using a suitable intra-prediction technique).

[0087] In one respect, whether at the slice / image level or at the coding tree unit / coding unit block level, activation flags are implicitly derived from other available encoded information, such as, but not limited to, block size, temporal layer ID, gradient mode, motion vector level, and reference image index (e.g., the distance between the current image and the reference image, such as the difference in image sequence numbers).

[0088] In one respect, the motion vector information of the current chroma sample is derived from the motion vector information of the co-located luminance sample. The derived motion vector information can be further scaled appropriately based on the chroma format. In some examples, the scaled motion vector can be rounded to integer precision.

[0089] In one respect, the filter shape and number of filter taps used for the chroma component are the same as those used for the luminance component. For example, Figures 4A-4B The filter shape used for the luminance component can be used as the filter shape for the chrominance component.

[0090] In one aspect, based on the chroma downsampling format, another filter shape is used for the chroma components.

[0091] Figures 5A-5B The filter shape used for the chroma components is shown when the chroma format is 4:2:0, and Figures 4A-4B The filter shape in the image is used for the luminance component in some examples. Figure 5A The diagram shows some examples of filter shapes (510) that can be used for a single motion vector filter for the chroma component when the filter shape (410) is applied to the luminance component and the chroma format is 4:2:0. The filter shape (510) includes 7 filter coefficients (in... Figure 5A These filter coefficients (labeled 0 to 6) are assigned to various positions within the filter shape (510). The filter shape (510) is applied when the given motion vector of the chroma sample is a unidirectional motion vector. For example, the center position (labeled 0) is the reference sample (of the current chroma sample) to which the unidirectional motion vector points, and these filter coefficients can be applied to the reference sample and adjacent reference samples according to the filter shape (510) to generate an offset.

[0092] Figure 5BThe diagram shows some examples of filter shapes (520) that can be used for a dual motion vector filter for the chroma component when the filter shape (420) is applied to the luminance component and the chroma format is 4:2:0. The filter shape (520) comprises a first part (521) and a second part (522). The filter shape (520) includes six filter coefficients (in... Figure 5B These filter coefficients (labeled 0 to 5) are assigned to positions in the first part (521) and the second part (522). The filter shape (520) is applied to the chroma component when the given motion vector of the chroma component is a bidirectional motion vector, the filter shape (420) is applied to the luminance component, and the chroma format is 4:2:0. For example, the bidirectional motion vector comprises a pair of motion vectors, referred to as the first motion vector and the second motion vector, the first motion vector pointing to a first position in the first reference image, and the second motion vector pointing to a second position in the second reference image. In one example, the first part (521) is applied to the chroma component at the first position in the first reference image (reference samples at the first position and adjacent positions in the first reference image), and the second part (522) is applied to the chroma component at the second position in the second reference image (reference samples at the second position and adjacent positions in the second reference image) to generate an offset.

[0093] In some aspects of the invention, motion vector information of the current chroma sample is derived, and an ALF is applied to at least one luminance sample in the reference image to which the derived motion vector points, to filter the current chroma sample. In some examples, the ALF may be referred to as a temporal cross-component ALF or a temporal CCALF. In one example, the filtering equation may be represented by equation (3): Equation (3) in, This indicates the position of the chromaticity component i to be refined. Indicates based on The position of the brightness component, This indicates the filter support region in the luminance component. This represents the brightness component of the reference sample in the filter support region. Represents the filter coefficients. This represents the filter output (e.g., offset, adjustment). In some examples, it will... This is added to the chroma sample value to obtain the final filtered chroma sample. It's important to note that in some examples, when using both temporal chroma ALF and temporal CCALF, the chroma sample value can be either the filtered output value after the temporal chroma ALF or the original chroma sample value before the temporal chroma ALF.

[0094] In one respect, the filter shape of the temporal CCALF is the same as the filter shape of the spatial CCALF used (e.g., a CCALF applied to samples in the current image for cross-component filtering).

[0095] In one aspect, the motion vector information of the current chroma sample is derived directly from the motion vector information of the co-located luminance sample without any scaling. In some examples, the derived motion vector is rounded to integer precision. In some examples, when the derived motion vector is not an integer motion vector, motion compensation is applied to generate at least one luminance sample pointed to by the derived motion vector.

[0096] In some examples, a weighted average is calculated based on at least one brightness sample on two reference images pointed to by bidirectional motion vectors (e.g., a pair of motion vectors).

[0097] In some examples, two different filter shapes are used for unidirectional motion vector filtering and bidirectional motion vector filtering, respectively.

[0098] Figures 6A-6B The following are some examples of filter shapes used for time-based CCALF. Figure 6A The filter shape (610) for a single motion vector filter that can be used in time-based CCALF is shown in some examples. The filter shape (610) includes 14 filter coefficients (in... Figure 6A These filter coefficients (labeled 0 to 13) are assigned to positions within the filter shape (610). The filter shape (610) is applied to the luminance samples in the reference image when the given motion vector of the chroma sample is a unidirectional motion vector. For example, position (601) is the position of the chroma sample in the reference image pointed to by the unidirectional motion vector, and position 4 is the co-located luminance sample of the chroma sample. These filter coefficients can be applied to the luminance samples in the reference image according to the filter shape (610) to generate an offset.

[0099] Figure 6B The filter shape (620) for a dual motion vector filter that can be used in time-based CCALF is shown in some examples. The filter shape (620) comprises a first part (624) and a second part (625). The filter shape (620) includes 16 filter coefficients (in... Figure 6BThese filter coefficients (labeled 0 to 15) are assigned to positions in the first part (624) and the second part (625). When the given motion vector of the chroma sample is a bidirectional motion vector, the filter shape (620) is applied to the time CCALF. For example, a bidirectional motion vector includes a pair of motion vectors, referred to as the first motion vector and the second motion vector, the first motion vector pointing to a first position (621) of the first chroma sample in the first reference image, and the second motion vector pointing to a second position (622) of the second chroma sample in the second reference image. Figure 6B In the example, position 4 is the position of the co-located luminance sample of the first chroma sample, and position 5 is the position of the co-located luminance sample of the second chroma sample.

[0100] In one example, a first portion (624) is applied to a luminance sample around a first position (621) in a first reference image, and a second portion (625) is applied to a luminance sample around a second position (622) in a second reference image to generate an offset for the chroma sample in the current image.

[0101] In some examples, both the unidirectional and bidirectional motion vector filtering cases use the same filter shape. The total number of filter taps in the bidirectional motion vector filtering case is double that of the unidirectional motion vector case.

[0102] In some respects, the derived motion vector can be a cascaded motion vector obtained by cascading at least one motion vector and / or at least one block vector. In one example, the derived motion vector is a cascaded motion vector obtained by cascading a first motion vector and a second motion vector. In another example, the derived motion vector is a cascaded motion vector obtained by cascading a motion vector and a block vector.

[0103] Figure 7 A diagram showing cascaded motion vectors, including motion vectors and block vectors, is presented as an example. Figure 7In the example, the current block (701) is located in the current image (710). In one example, the current block (701) is encoded based on a cascaded motion vector, which includes a block vector and a motion vector (MVL0). The block vector points to a first reference block (702) in the current image (710) relative to the current block (701), while the motion vector (MVL0) points to a second reference block (721) in the reference image (720) relative to the first reference block (702). Therefore, the cascaded motion vector points to the second reference block (721) relative to the current block (701). It should be noted that in some examples, when the cascaded motion vector is the motion vector information of the current block, temporal chromatic ALF and / or temporal CCALF techniques can be applied.

[0104] Some aspects of the present invention provide input signal enhancement techniques for chroma loop filters. For example, an encoder / decoder can generate reconstructed sample data for a block for filtering by a loop filter module. The reconstructed sample data includes luminance input data and chroma input data for the loop filter module, and the loop filter module includes at least one first loop filter and at least one second loop filter. The at least one first loop filter is applied to the luminance component of the block to generate luminance output data for the block, and the at least one second loop filter is applied to the chroma component of the block to generate chroma output data for the block. The encoder / decoder can derive a cross-component filtering model based on the correlation between the luminance input data and the chroma input data, apply the cross-component filtering model to the luminance output data of the at least one first loop filter to generate cross-component filtered data, and generate modified chroma input data based on the cross-component filtered data. The encoder / decoder can then apply the at least one second loop filter to the modified chroma input data to generate chroma output data.

[0105] In some aspects, the correlation between the luminance input data and the chrominance input data of the loop filter module is used to derive a cross-component filtering model. Then, based on this cross-component filtering model, the luminance output data of the loop filter module is applied to generate cross-component filtered data as the chrominance input data for the chrominance component of the loop filter module. In some examples, these techniques can be applied to enhance the input signal of the chrominance loop filter, such as... Figure 8 As shown.

[0106] Figure 8 A block diagram of a loop filter module (800) is shown in some examples. The loop filter module (800) receives luminance input data and chrominance input data for loop filtering, and generates luminance output data and chrominance output data after loop filtering.

[0107] exist Figure 8In the example, the loop filter module (800) includes a cross-component filter coefficient derivation unit (810), a cross-component filter (820), a first loop filter (830) (e.g., for luminance data filtering, also known as a luminance loop filter), a second loop filter (840) (e.g., for chrominance data filtering, also known as a chrominance loop filter), and a combination unit (850), these components such as Figure 8 The coupling is shown. Figure 8 In the example, the input signal of the chroma loop filter (840) is amplified.

[0108] exist Figure 8 In the example, a first loop filter (830) is applied to the luminance input data to generate luminance output data. A cross-component filter coefficient derivation unit (810) can derive a cross-component filtering model using the correlation between the luminance input data and the chrominance input data of the loop filter module (800). A cross-component filter (820) can be configured based on the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (800) to generate cross-component filtered data. A combination unit (850) appropriately combines the cross-component filtered data with the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input (also called modified chrominance input data), which is then applied to a second loop filter (840) to generate chrominance output data.

[0109] In one respect, the loop filter module, such as the loop filter module (800), can be any available loop filter module, such as a bilateral filter, a shape adaptive offset filter, etc.

[0110] In one aspect, the loop filter module, such as the loop filter module (800), can be a cross-component loop filter for the chromaticity component, such as a cross-component shape adaptive offset filter. In some examples, these techniques can be applied to enhance the input signal of the cross-component loop filter, such as... Figure 9 As shown.

[0111] Figure 9 A block diagram of a loop filter module (900) is shown in some examples. The loop filter module (900) receives luminance input data and chrominance input data for loop filtering, and generates luminance output data and chrominance output data after loop filtering.

[0112] exist Figure 9In the example, the loop filter module (900) includes a cross-component filter coefficient derivation unit (910), a cross-component filter (920), a first loop filter (930) (e.g., for luminance data filtering, also called a luminance loop filter), a second loop filter (940) (e.g., for cross-component loop filtering, also called a cross-component loop filter), and a combination unit (950), these components such as Figure 9 The coupling is shown. Figure 9 In the example, the input signal of the cross-component loop filter (940) is amplified.

[0113] exist Figure 9 In the example, a first loop filter (930) is applied to the luminance input data to generate luminance output data. A cross-component filter coefficient derivation unit (910) can derive a cross-component filtering model using the correlation between the luminance input data and the chrominance input data of the loop filter module (900). A cross-component filter (920) can be configured based on the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (900) to generate cross-component filtered data. A combination unit (950) appropriately combines the cross-component filtered data and the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input, which is then applied to a second loop filter (940) (also called a cross-component loop filter) to generate chrominance output data.

[0114] It is important to note that in some codec examples, loop filtering can be performed by multiple loop filter modules, and the input signal enhancement techniques used for chroma loop filtering can be applied to any one or more of these multiple loop filter modules.

[0115] In one aspect, when both the chroma loop filter and the associated cross-component loop filter module are available for the chroma component, input signal enhancement techniques can be applied to either the chroma loop filter or the associated cross-component loop filter, such as... Figure 10 and Figure 11 As shown.

[0116] Figure 10 Block diagrams of a loop filter module (1000) are shown in some examples. The loop filter module (1000) receives luminance input data and chrominance input data for loop filtering, and generates luminance output data and chrominance output data after loop filtering.

[0117] exist Figure 10In the example, the loop filter module (1000) includes a cross-component filter coefficient derivation unit (1010), a cross-component filter (1020), a first loop filter (1030) (e.g., for luminance data filtering, also called a luminance loop filter), a second loop filter (1040) (e.g., for cross-component loop filtering, also called a cross-component loop filter), a third loop filter (1050) (e.g., for chrominance loop filtering, also called a chrominance loop filter), a first combination unit (1060), and a second combination unit (1070). These components are as follows: Figure 10 The coupling is shown. Figure 10 In the example, the input signal of the cross-component loop filter (1040) is amplified.

[0118] It should be noted that the loop filter module (1000) can be any one of the multiple loop filter modules in the loop filtering process.

[0119] exist Figure 10 In the example, a first loop filter (1030) is applied to the luminance input data to generate luminance output data. A cross-component filter coefficient derivation unit (1010) can derive a cross-component filtering model using the correlation between the luminance input data and the chrominance input data of the loop filter module (1000). A cross-component filter (1020) can be configured according to the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (1000) to generate cross-component filtered data. A first combination unit (1060) appropriately combines the cross-component filtered data and the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input, which is then applied to the second loop filter (1040) (also called a cross-component loop filter) to generate a first portion of the chrominance output data. A third loop filter (1050) (also called a chrominance loop filter) is applied to the chrominance input data to generate a second portion of the chrominance output data. The second combination unit (1070) combines the first part of the chromaticity output data and the second part of the chromaticity output data to generate chromaticity output data.

[0120] exist Figure 10 In the example, input signal enhancement is applied to the input of the cross-component loop filter.

[0121] Figure 11 A block diagram of a loop filter module (1100) is shown in some examples. The loop filter module (1100) receives luminance input data and chrominance input data for loop filtering, and generates luminance output data and chrominance output data after loop filtering.

[0122] exist Figure 11 In the example, the loop filter module (1100) includes a cross-component filter coefficient derivation unit (1110), a cross-component filter (1120), a first loop filter (1130) (e.g., for luminance data filtering, also called a luminance loop filter), a second loop filter (1140) (e.g., for cross-component loop filtering, also called a cross-component loop filter), a third loop filter (1150) (e.g., for chrominance loop filtering, also called a chrominance loop filter), a first combination unit (1160), and a second combination unit (1170). These components are as follows: Figure 11 The coupling is shown. Figure 11 In the example, the input signal of the chroma loop filter (1150) is amplified.

[0123] It should be noted that the loop filter module (1100) can be any one of the multiple loop filter modules in the loop filtering process.

[0124] exist Figure 11 In the example, a first loop filter (1130) is applied to the luminance input data to generate luminance output data. A cross-component filter coefficient derivation unit (1110) can derive a cross-component filtering model using the correlation between the luminance input data and the chrominance input data of the loop filter module (1100). A cross-component filter (1120) can be configured according to the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (1100) to generate cross-component filtered data. A first combination unit (1160) appropriately combines the cross-component filtered data and the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input, which is then applied to a third loop filter (1150) (also called a chrominance loop filter) to generate a first portion of the chrominance output data. A second loop filter (1140) (also called a cross-component loop filter) is applied to the luminance input data and the chrominance input data to generate a second portion of the chrominance output data. The second combination unit (1170) combines the first part of the chromaticity output data and the second part of the chromaticity output data to generate chromaticity output data.

[0125] exist Figure 11 In the example, the input signal enhancement is applied to the input of the chroma loop filter.

[0126] In one aspect, a signaling flag is used to indicate whether a filtered input signal enhancement is applied to the chroma input data. This flag can be signaled at the coding unit level, coding tree unit level, or other levels. In some examples, the flag is only signaled when a loop filter module is applied to the coding unit or coding tree unit.

[0127] In one aspect, when combining cross-component filtered data with chrominance input data using weighted summation, by ω The weight value can be a constant value, and the weight value ranges from [0, 1].

[0128] In some respects, a video codec may include multiple loop filter modules.

[0129] In one aspect, a video codec may include N cascaded loop filter modules, where N is a positive integer. For example, the luminance filter section may include N cascaded luminance loop filters, and the chrominance filter section may include N cascaded chrominance loop filters (including chrominance loop filters and / or cross-component loop filters), where N is a positive integer. In some examples, input signal enhancement techniques using cross-component filters can be applied. N The final luminance output data of a series of cascaded luminance loop filters is used to generate cross-component filtered data, which can then be combined into the chrominance input of the first chrominance loop filter in a series of N cascaded chrominance loop filters, such as... Figure 12 As shown.

[0130] Figure 12 Block diagrams of loop filter modules (1200) with chroma input signal enhancement for cascaded loop filters are shown in some examples. The loop filter module (1200) receives luminance input data and chroma input data for loop filtering, and generates luminance output data and chroma output data after loop filtering.

[0131] exist Figure 12 In the example, the loop filter module (1200) includes a cross-component filter coefficient derivation unit (1210), a cross-component filter (1220), a luminance loop filter section (1230), a chrominance loop filter section (1240), and a combination unit (1250). These components are as follows: Figure 12 The coupling is shown. The luminance loop filter section (1230) includes N cascaded luminance loop filters (1230-1) to (1230-N). The chrominance loop filter section (1240) includes N cascaded chrominance loop filters (1240-1) to (1240-N). Figure 12 In the example, the input signal of the chroma loop filter section (1240) is amplified.

[0132] exist Figure 12 In the example, the luminance loop filter section (1230), comprising cascaded luminance loop filters (1230-1) to (1230-N), can be applied to the luminance input data to generate luminance output data. The cross-component filter coefficient derivation unit (1210) can derive the cross-component filtering model using the correlation between the luminance input data and the chrominance input data of the loop filter module (1200). The cross-component filter (1220) can be configured based on the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (1200) to generate cross-component filtered data. The combination unit (1250) appropriately combines the cross-component filtered data and the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input. The chrominance loop filter section (1240) is applied to this combined chrominance input to generate chrominance output data.

[0133] In some examples, a flag bit is signaled to indicate whether chroma input signal enhancement technology is applied.

[0134] In some examples, when N When at least one of the loop filters is enabled, a flag is signaled to indicate whether a band-filtered input signal enhancement is applied to the chroma input data. This flag can be signaled at the coding unit level, coding tree unit level, or other levels. In some examples, the flag is signaled only when a loop filter module is applied to the coding unit or coding tree unit.

[0135] In some examples, the chroma loop filter section (1240) includes loop filters for the chroma components. For example, at least one of the N chroma loop filters (1240-1) to (1240-N) may be a loop filter for the chroma components. In some examples, the chroma loop filter section (1240) includes at least one cross-component loop filter. For example, at least one of the N chroma loop filters (1240-1) to (1240-N) may be a cross-component loop filter.

[0136] In one aspect, a video codec may include N parallel loop filter modules, where N is a positive integer. For example, the luminance filter section may include N parallel luminance loop filters, and the chrominance filter section may include N parallel chrominance loop filters (including chrominance loop filters and / or cross-component loop filters). In some examples, input signal enhancement techniques using cross-component filters can be applied to the final luminance output data of the N parallel loop filters to generate cross-component filtered data as the chrominance input to the N parallel chrominance loop filters, such as... Figure 13 As shown.

[0137] Figure 13 Block diagrams of a loop filter module (1300) with chroma input signal enhancement for parallel loop filtering are shown in some examples. The loop filter module (1300) receives luminance input data and chroma input data for loop filtering, and generates luminance output data and chroma output data after loop filtering.

[0138] exist Figure 13 In the example, the loop filter module (1300) includes a cross-component filter coefficient derivation unit (1410), a cross-component filter (1420), a luminance loop filter section (1330), a chrominance loop filter section (1340), and a combination unit (1350). These components are as follows: Figure 13 The coupling is shown. The luminance loop filter section (1330) includes N luminance loop filters (1330-1) to (1330-N) connected in parallel, and a combination unit (1335) that combines the outputs of the N luminance loop filters (1330-1) to (1330-N) into luminance output data. The chrominance loop filter section (1340) includes N chrominance loop filters (1340-1) to (1340-N) connected in parallel, and a combination unit (1345) that combines the outputs of the N chrominance loop filters (1340-1) to (1340-N) into chrominance output data. Figure 13 In the example, the input signal of the chroma loop filter section (1340) is amplified.

[0139] exist Figure 13 In the example, the luminance loop filter section (1330) can be applied to the luminance input data to generate luminance output data. The cross-component filter coefficient derivation unit (1310) can derive the cross-component filtering model using the correlation between the luminance input data of the loop filter module (1300) and the chrominance input data of the loop filter module (1300). The cross-component filter (1320) can be configured according to the derived cross-component filtering model and can be applied to the luminance output data of the loop filter module (1300) to generate cross-component filtered data. The combination unit (1350) appropriately combines the cross-component filtered data and the chrominance input data (e.g., by weighted summation) to generate a combined chrominance input. The chrominance loop filter section (1340) is applied to this combined chrominance input to generate chrominance output data.

[0140] In some examples, a signaling flag is used to indicate whether cross-component filtering data is applied to all chroma inputs of the parallel chroma loop filter.

[0141] In some examples, a flag bit is signaled for each loop filter (sub) module to indicate whether a cross-component filter is applied to each loop filter (sub) module. For example, a loop filter module (1300) includes N loop filter sub-modules, one of which includes a luminance loop filter in a luminance loop filter section (1330) and a chrominance loop filter in a chrominance loop filter section (1340). In one example, N flag bits are signaled to be associated with the N loop filter sub-modules respectively. When the flag bit associated with a loop filter sub-module is true, the combined chrominance input is the input to the chrominance loop filter in that loop filter sub-module; when the flag bit associated with a loop filter sub-module is false, the chrominance input data (not combined with cross-component filter data) is the input to the chrominance loop filter in that loop filter sub-module.

[0142] In some examples, the chroma loop filter section (1340) includes loop filters for the chroma components. For example, at least one of the N chroma loop filters (1340-1) to (1340-N) may be a loop filter for the chroma components. In some examples, the chroma loop filter section (1340) includes at least one cross-component loop filter. For example, at least one of the N chroma loop filters (1340-1) to (1340-N) may be a cross-component loop filter.

[0143] Figure 14 A flowchart illustrating an overview process (1400) according to one aspect of the invention is shown. Process (1400) can be used with a video decoder. In various aspects, process (1400) is executed by processing circuitry, such as processing circuitry that performs the functions of video decoder (110), processing circuitry that performs the functions of video decoder (210), etc. In some aspects, process (1400) is implemented as software instructions, so that when processing circuitry executes software instructions, processing circuitry executes process (1400). The process begins at (S1401) and continues to (S1410).

[0144] In (S1410), a bitstream is received, which includes encoded information of at least one image.

[0145] In (S1420), motion vector information associated with the current chroma sample of the current block in the current image is derived. The motion vector information points to a reference sample in a reference image of the current image.

[0146] In (S1430), a temporal ALF is applied to a reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image.

[0147] In (S1440), the filtered value of the current chroma sample is generated based on the filter offset.

[0148] In some respects, a category is determined from multiple categories based on the current chromaticity sample, and the filter coefficients of the ALF are selected according to that category.

[0149] In one aspect, quantized sample values ​​are calculated for the current chromaticity sample and at least one of its neighboring chromaticity samples. Based on the quantized sample values, at least one of the gradient and / or the activity of the current chromaticity sample is calculated. The classification is determined based on at least one of the gradient and / or the activity of the current chromaticity sample.

[0150] On the other hand, the quantized sample value of the current chromaticity sample is calculated. Based on the quantized sample value, the classification is determined.

[0151] In some examples, a nonlinear limiting function is applied to the difference between the at least one neighboring sample and the reference sample to generate a limiting difference; and a filter offset is calculated based on this limiting difference.

[0152] In some examples, a flag associated with a region of the current image, including the current chroma sample, is decoded from the encoded video stream. A true flag indicates that the chroma samples in that region are filtered based on reference samples in a reference image, while a false flag indicates that the chroma samples in that region are not filtered based on reference samples in a reference image. In some examples, the flag is deduced to be false when the region is encoded via intra-frame prediction. In one example, the region is the current image. In another example, the region is a slice including the current chroma sample. In yet another example, the region is a block including the current chroma sample (e.g., a coding tree unit, coding block, etc.).

[0153] In some examples, the flag is derived based on at least one of the following: the block size of the block including the current chroma sample; the temporal layer identifier; the gradient mode; the motion vector level; the reference image index; and / or the index difference between the reference image and the current image.

[0154] In some respects, the motion vector information of the current chroma sample is derived by scaling the motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format. In some examples, the first motion vector information of the co-located luminance sample of the current chroma sample is scaled according to the chroma format to obtain second motion vector information, and the second motion vector information is rounded to integer precision to obtain the motion vector information of the current chroma sample.

[0155] In some respects, the reference sample and at least one of its neighboring samples are chroma samples, and the temporal ALF has the same filter shape and the same number of filter coefficients as another ALF applied to the luminance sample.

[0156] In some respects, the reference sample and at least one of its neighboring samples are chromaticity samples, and the temporal ALF has a different filter shape and a different number of filter coefficients than another ALF applied to the luminance sample.

[0157] In some aspects, the reference sample and at least one of its neighboring samples are luminance samples. In some examples, the temporal ALF has the same filter shape as the spatial CCALF. In some examples, the motion vector information of the current chroma sample is derived without scaling based on the first motion vector information of the co-located luminance sample of the current chroma sample. In one example, the motion vector information of the current chroma sample is rounded to integer precision.

[0158] In some respects, the motion vector information includes non-integer motion vectors, and the brightness samples in the reference image are generated based on the motion vector information and with motion compensation applied.

[0159] In some aspects, the motion vector information includes a bidirectional motion vector pointing to a first luminance sample in a first reference image and a second luminance sample in a second reference image. The luminance sample (to be applied using temporal ALF) is calculated by weighted averaging of the first and second luminance samples.

[0160] In some respects, when the motion vector information includes unidirectional motion vectors, an ALF with a first filter shape is determined to be used; when the motion vector information includes bidirectional motion vectors, an ALF with a second filter shape is determined to be used. The first filter shape and the second filter shape are different from each other.

[0161] In some respects, when the motion vector information includes unidirectional motion vectors, the ALF includes a first number of filter taps; and when the motion vector information includes bidirectional motion vectors, the ALF includes a second number of filter taps, which is twice the first number.

[0162] In some respects, motion vector information includes cascaded motion vectors, which are cascaded with at least one motion vector and / or at least one block vector.

[0163] The process then continues to (S1499) and terminates.

[0164] The process (1400) can be adjusted as appropriate. One or more steps in the process (1400) can be modified and / or omitted. One or more additional steps can be added. Any suitable implementation order can be used.

[0165] Figure 15 A flowchart illustrating an overview process (1500) according to one aspect of the present invention is shown. Process (1500) can be used with a video encoder. In various aspects, process (1500) is executed by processing circuitry, such as processing circuitry that performs the functions of a video encoder (103), processing circuitry that performs the functions of a video encoder (303), etc. In some aspects, process (1500) is implemented in the form of software instructions, so that when processing circuitry executes software instructions, processing circuitry executes process (1500). The process begins at (S1501) and continues to (S1510).

[0166] In (S1510), motion vector information associated with the current chromaticity sample of the current block in the current image is derived, which points to a reference sample in a reference image of the current image.

[0167] In (S1520), a temporal ALF is applied to a reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image.

[0168] In (S1530), the filtered value of the current chroma sample is generated based on the filter offset.

[0169] In (S1540), multiple images, including the current image, are encoded into encoded information in the bitstream, based at least on the filter value of the current chroma sample.

[0170] In some respects, a category is determined from multiple categories based on the current chromaticity sample, and the filter coefficients of the ALF are selected according to that category.

[0171] In one aspect, quantized sample values ​​are calculated for the current chromaticity sample and at least one of its neighboring chromaticity samples. Based on the quantized sample values, at least one of the gradient and / or the activity of the current chromaticity sample is calculated. The classification is determined based on at least one of the gradient and / or the activity of the current chromaticity sample.

[0172] On the other hand, the quantized sample value of the current chromaticity sample is calculated. Based on the quantized sample value, the classification is determined.

[0173] In some aspects, a nonlinear limiting function is applied to the difference between the at least one adjacent sample and the reference sample to generate a limiting difference, and a filter offset is calculated based on the limiting difference.

[0174] In one aspect, the bitstream includes a flag bit associated with a region of the current image that includes the current chroma sample. When the flag bit is true, it indicates that the chroma samples in that region are filtered based on reference samples in a reference image; when the flag bit is false, it indicates that the chroma samples in that region are not filtered based on reference samples in a reference image. This region can be the current image, a slice including the current chroma sample, or a block including the current chroma sample.

[0175] In some respects, the motion vector information of the current chroma sample is derived by scaling the motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format. In some examples, the first motion vector information of the co-located luminance sample of the current chroma sample is scaled according to the chroma format to obtain second motion vector information, and the second motion vector information is rounded to integer precision to obtain the motion vector information of the current chroma sample.

[0176] In some respects, the reference sample and at least one of its neighboring samples are chroma samples, and the temporal ALF has the same filter shape and the same number of filter coefficients as another ALF applied to the luminance sample.

[0177] In some respects, the reference sample and at least one of its neighboring samples are chromaticity samples, and the temporal ALF has a different filter shape and a different number of filter coefficients than another ALF applied to the luminance sample.

[0178] In some aspects, the reference sample and at least one of its neighboring samples are luminance samples. In some examples, the temporal ALF has the same filter shape as the spatial CCALF. In some examples, the motion vector information of the current chroma sample is derived without scaling based on the first motion vector information of the co-located luminance sample of the current chroma sample. In one example, the motion vector information of the current chroma sample is rounded to integer precision.

[0179] In some respects, the motion vector information includes non-integer motion vectors, and the brightness samples in the reference image are generated based on the motion vector information and with motion compensation applied.

[0180] In some aspects, the motion vector information includes a bidirectional motion vector pointing to a first luminance sample in a first reference image and a second luminance sample in a second reference image. The luminance sample (to be applied using temporal ALF) is calculated by weighted averaging of the first and second luminance samples.

[0181] In some respects, when the motion vector information includes unidirectional motion vectors, an ALF with a first filter shape is determined to be used; when the motion vector information includes bidirectional motion vectors, an ALF with a second filter shape is determined to be used. The first filter shape and the second filter shape are different from each other.

[0182] In some respects, when the motion vector information includes unidirectional motion vectors, the ALF includes a first number of filter taps; and when the motion vector information includes bidirectional motion vectors, the ALF includes a second number of filter taps, which is twice the first number.

[0183] In some respects, motion vector information includes cascaded motion vectors, which are cascaded with at least one motion vector and / or at least one block vector.

[0184] The process then continues to (S1599) and terminates.

[0185] The process (1500) can be adjusted as appropriate. One or more steps in the process (1500) can be modified and / or omitted. One or more additional steps can be added. Any suitable implementation order can be used.

[0186] According to one aspect of the present invention, a method for processing visual media data is provided. In this method, a conversion between a visual media file and a visual media data bitstream is performed according to format rules. For example, the bitstream may be a bitstream decoded / encoded using any of the decoding and / or encoding methods described in this application. The format rules may specify at least one constraint on the bitstream and / or at least one process to be performed by the decoder and / or encoder.

[0187] In one example, the bitstream carries encoded information from multiple images. The format rules specify deriving motion vector information associated with the current chroma sample of the current block in the current image. This motion vector information points to a reference sample in a reference image of the current image. The format rules also specify applying temporal ALF to the reference sample in the reference image and at least one of its neighboring samples to generate a filter offset for the current chroma sample in the current image, and generating a filtered value for the current chroma sample based on this filter offset.

[0188] According to one aspect of the invention, a non-transitory computer-readable storage medium is provided that stores a video media stream encoded by an encoding method such as process (1500).

[0189] Figure 16A flowchart of an overview process (1600) according to one aspect of the invention is shown. Process (1600) can be used with a video decoder. In various aspects, process (1600) is executed by processing circuitry, such as processing circuitry that performs the functions of video decoder (110), processing circuitry that performs the functions of video decoder (210), etc. In some aspects, process (1600) is implemented in the form of software instructions, so that when processing circuitry executes software instructions, processing circuitry executes process (1600). The process begins at (S1601) and continues to (S1610).

[0190] At (S1610), a bitstream is received, which includes encoded information of at least one image.

[0191] In (S1620), based on the encoded information of the at least one image, reconstructed sample data of the block is generated for filtering by the loop filter module. The reconstructed sample data of the block includes luminance input data and chrominance input data of the loop filter module. The loop filter module includes at least one first loop filter and at least one second loop filter. The at least one first loop filter is applied to the luminance component of the block to generate luminance output data of the block, and the at least one second loop filter is applied to the chrominance component of the block to generate chrominance output data of the block.

[0192] In (S1630), a cross-component filtering model is generated based on the correlation between the luminance input data and the chrominance input data.

[0193] In (S1640), the cross-component filtering model is applied to the luminance output data of the first loop filter to generate cross-component filtered data.

[0194] In (S1650), modified chromaticity input data is generated based on the cross-component filtering data.

[0195] At (S1660), the at least one second loop filter is applied to the modified chroma input data to generate chroma output data.

[0196] In some respects, the loop filter module includes at least one of a bilateral filter and a shape-adaptive offset filter.

[0197] In some respects, the second loop filter is a chroma loop filter used to generate chroma output data based on the modified chroma input data.

[0198] In some respects, the second loop filter is a cross-component loop filter used to generate chroma output data based on the modified chroma input data and luminance input data.

[0199] In some aspects, the at least one second loop filter includes: a chromaticity loop filter that generates a first portion of chromaticity output data based on chromaticity input data; and a cross-component loop filter that generates a second portion of chromaticity output data based on modified chromaticity input data and luminance input data. The sum of the first portion and the second portion is calculated to generate the chromaticity output data.

[0200] In some aspects, the at least one second loop filter includes: a chromaticity loop filter that generates a first portion of chromaticity output data based on modified chromaticity input data; and a cross-component loop filter that generates a second portion of chromaticity output data based on luminance input data. The sum of the first portion and the second portion is calculated to generate the chromaticity output data.

[0201] In some respects, decoding involves a flag associated with the block that indicates whether the chroma input data has been modified by applying a cross-component filtering model.

[0202] In some aspects, in order to generate modified chroma input data, a weighted sum of the chroma input data and the cross-component filtered data is calculated, with the weights of the cross-component filtered data being constant values.

[0203] In some aspects, the loop filter module includes a first plurality of cascaded loop filters and a second plurality of cascaded loop filters, the first plurality of cascaded loop filters being applied to the luminance component of the block to generate luminance output data of the block, and the second plurality of cascaded loop filters being applied to the chrominance component of the block to generate chrominance output data of the block.

[0204] In some aspects, the loop filter module includes a first plurality of parallel loop filters and a second plurality of parallel loop filters. The first plurality of parallel loop filters are applied in parallel to the luminance component of the block, and the second plurality of parallel loop filters are applied in parallel to the chrominance component of the block. The luminance filter outputs of the first plurality of parallel loop filters are combined to generate luminance output data. The second plurality of parallel loop filters are applied in parallel to the modified chrominance input data to generate chrominance filter outputs. The chrominance filter outputs are combined to form chrominance output data.

[0205] The process then continues to (S1699) and terminates.

[0206] The process (1600) can be adjusted as appropriate. One or more steps in the process (1600) can be modified and / or omitted. One or more additional steps can be added. Any suitable implementation order can be used.

[0207] Figure 17A flowchart illustrating an overview process (1700) according to one aspect of the invention is shown. Process (1700) can be used with a video encoder. In various aspects, process (1700) is executed by processing circuitry, such as processing circuitry that performs the functions of a video encoder (103), processing circuitry that performs the functions of a video encoder (303), etc. In some aspects, process (1700) is implemented in the form of software instructions, so that when processing circuitry executes software instructions, processing circuitry executes process (1700). The process begins at (S1701) and continues to (S1710).

[0208] In (S1710), reconstructed sample data of the block is generated for filtering by the loop filter module. The reconstructed sample data of the block includes luminance input data and chrominance input data of the loop filter module. The loop filter module includes at least one first loop filter and at least one second loop filter. The at least one first loop filter is applied to the luminance component of the block to generate luminance output data of the block, and the at least one second loop filter is applied to the chrominance component of the block to generate chrominance output data of the block.

[0209] In (S1720), based on the correlation between luminance input data and chrominance input data, a cross-component filtering model is derived.

[0210] At (S1730), the cross-component filtering model is applied to the luminance output data of the at least one first loop filter to generate cross-component filtered data.

[0211] In (S1740), modified chromaticity input data is generated based on the cross-component filtering data.

[0212] At (S1750), the at least one second loop filter is applied to the modified chroma input data to generate chroma output data.

[0213] At (S1760), based on the chroma output data, at least one image including blocks is encoded as encoded information in the bitstream.

[0214] In some respects, the loop filter module includes at least one of a bilateral filter and a shape-adaptive offset filter.

[0215] In some respects, the second loop filter is a chroma loop filter used to generate chroma output data based on the modified chroma input data.

[0216] In some respects, the second loop filter is a cross-component loop filter used to generate chroma output data based on the modified chroma input data and luminance input data.

[0217] In some aspects, the at least one second loop filter includes: a chromaticity loop filter that generates a first portion of chromaticity output data based on chromaticity input data; and a cross-component loop filter that generates a second portion of chromaticity output data based on modified chromaticity input data and luminance input data. The sum of the first portion and the second portion is calculated to generate the chromaticity output data.

[0218] In some aspects, the at least one second loop filter includes: a chromaticity loop filter that generates a first portion of chromaticity output data based on modified chromaticity input data; and a cross-component loop filter that generates a second portion of chromaticity output data based on luminance input data. The sum of the first portion and the second portion is calculated to generate the chromaticity output data.

[0219] In some respects, the bitstream includes a flag associated with a block that indicates whether the chroma input data has been modified by applying a cross-component filtering model.

[0220] In some aspects, in order to generate modified chroma input data, a weighted sum of the chroma input data and the cross-component filtered data is calculated, with the weights of the cross-component filtered data being constant values.

[0221] In some aspects, the loop filter module includes a first plurality of cascaded loop filters and a second plurality of cascaded loop filters, the first plurality of cascaded loop filters being applied to the luminance component of the block to generate luminance output data of the block, and the second plurality of cascaded loop filters being applied to the chrominance component of the block to generate chrominance output data of the block.

[0222] In some aspects, the loop filter module includes a first plurality of parallel loop filters and a second plurality of parallel loop filters. The first plurality of parallel loop filters are applied in parallel to the luminance component of the block, and the second plurality of parallel loop filters are applied in parallel to the chrominance component of the block. The luminance filter outputs of the first plurality of parallel loop filters are combined to generate luminance output data. The second plurality of parallel loop filters are applied in parallel to the modified chrominance input data to generate chrominance filter outputs. The chrominance filter outputs are combined to form chrominance output data.

[0223] The process then continues to (S1799) and terminates.

[0224] The process (1700) can be adjusted as appropriate. One or more steps in the process (1700) can be modified and / or omitted. One or more additional steps can be added. Any suitable implementation order can be used.

[0225] According to one aspect of the present invention, a method for processing visual media data is provided. In this method, a conversion between a visual media file and a visual media data bitstream is performed according to format rules. For example, the bitstream may be a bitstream decoded / encoded using any of the decoding and / or encoding methods described in this application. The format rules may specify at least one constraint on the bitstream and / or at least one process to be performed by the decoder and / or encoder.

[0226] In one example, the bitstream carries encoded information for multiple images. The format rules specify that, based on the encoded information, reconstructed sample data for a block is generated for filtering by a loop filter module. The reconstructed sample data for the block includes luma input data and chroma input data for the loop filter module. The loop filter module includes at least one first loop filter and at least one second loop filter. The at least one first loop filter is applied to the luma component of the block to generate luma output data for the block, and the at least one second loop filter is applied to the chroma component of the block to generate chroma output data for the block. The format rules also specify that a cross-component filtering model is generated based on the correlation between the luma input data and the chroma input data. This cross-component filtering model is applied to the luma output data of the first loop filter to generate cross-component filtered data. Modified chroma input data is generated based on this cross-component filtered data, and the at least one second loop filter is applied to the modified chroma input data to generate chroma output data.

[0227] According to one aspect of the invention, a non-transitory computer-readable storage medium is provided that stores a video media stream encoded by an encoding method such as process (1700).

[0228] The above-described techniques can be implemented in the form of computer software using computer-readable instructions and physically stored in at least one computer-readable medium. For example, Figure 18 A computer system suitable for implementing certain aspects of the disclosed subject matter is shown (1800).

[0229] Computer software can be written using any suitable machine code or computer language. This machine code or computer language may be processed by mechanisms such as assembly, compilation, and linking to generate code containing instructions that can be executed directly by at least one computer central processing unit (CPU), graphics processing unit (GPU), or through interpretation, microcode execution, or other methods.

[0230] These instructions can be executed on various types of computers or their components, including, for example, personal computers, tablets, servers, smartphones, gaming devices, and Internet of Things (IoT) devices.

[0231] Figure 18 The components of the computer system (1800) shown are merely examples and are not intended to imply any limitation on the scope or functionality of computer software used to implement various aspects of the invention. The configuration of the components should also not be construed as having any dependency or requirement on any component or combination of components shown in the example aspects of the computer system (1800).

[0232] The computer system (1800) may include certain human-machine interface input devices. Such human-machine interface input devices may respond to input from at least one human user via, for example, tactile input (e.g., key presses, swipes, data glove movements), audio input (e.g., voice, clapping sounds), visual input (e.g., gestures), or olfactory input (not depicted). The human-machine interface device may also be used to acquire media that are not necessarily directly related to conscious human input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, photographic images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0233] Human-machine interface input devices may include at least one of the following (only one of each is depicted): keyboard (1801), mouse (1802), touchpad (1803), touch screen (1810), data glove (not shown), joystick (1805), microphone (1806), scanner (1807), and camera (1808).

[0234] The computer system (1800) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of at least one human user through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback provided by a touchscreen (1810), a data glove (not shown), or a joystick 1805, but there may also be tactile feedback devices that do not act as input devices), audio output devices (e.g., speakers (1809), headphones (not depicted)), visual output devices (e.g., screens (1810), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touchscreen input functionality, each with or without tactile feedback functionality—some of which may be able to output two-dimensional or more three-dimensional visual outputs through stereoscopic output, virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted), etc.), and printers (not depicted).

[0235] The computer system (1800) may also include user-accessible storage devices and their associated media, such as optical media or similar media (1821) including CD / DVD ROM / RW (1820) equipped with CD / DVD, flash drives (1822), removable hard disk drives or solid-state drives (1823), conventional magnetic media such as magnetic tapes and floppy disks (not depicted), and dedicated ROM / ASIC / PLD devices such as security dongles (not depicted).

[0236] Those skilled in the art should also understand that the term "computer-readable medium" as used in connection with the presently disclosed subject matter does not cover transmission media, carrier waves, or other transient signals.

[0237] The computer system (1800) may also include an interface (1854) connected to at least one communication network (1855). The network may be, for example, a wireless network, a wired network, or an optical network. The network may also be a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), an in-vehicle and industrial network, a real-time network, a latency-tolerant network, etc. Examples of networks include: local area networks such as Ethernet and wireless LANs; cellular networks including GSM, 3G, 4G, 5G, LTE, etc.; wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV; in-vehicle and industrial networks including CAN buses, etc. Some networks typically require an external network interface adapter (e.g., a USB port on the computer system (1800)) attached to some general-purpose data port or peripheral bus (1849); other networks are typically integrated into the core of the computer system (1800) via a system bus described below (e.g., integrated into a PC computer system via an Ethernet interface, or integrated into a smartphone computer system via a cellular network interface). Using any of these networks, the computer system (1800) can communicate with other entities. This communication can be one-way receiving (e.g., broadcasting TV), one-way transmitting (e.g., CAN bus to certain CAN bus devices), or bidirectional, such as connecting to other computer systems using a local area or wide area digital network. Certain protocols and protocol stacks can be used on each of the networks and network interfaces described above.

[0238] The aforementioned human-machine interface device, user-accessible storage device, and network interface can be attached to the core (1840) of the computer system (1800).

[0239] The core (1840) may include at least one CPU (1841), GPUs (1842), a dedicated programmable processing unit in the form of a field-programmable gate array (FPGA) (1843), a hardware accelerator (1844) for certain tasks, a graphics adapter (1850), etc. These devices, along with read-only memory (ROM) (1845), random-access memory (RAM) (1846), and internal mass storage devices (1847) such as internal non-user-accessible hard disk drives, SSDs, etc., can be connected via a system bus (1848). In some computer systems, the system bus (1848) may be accessed in the form of at least one physical plug, allowing for expansion via additional CPUs, GPUs, etc. Peripheral devices may be directly attached to the core's system bus (1848) or connected to the core's system bus (1848) via a peripheral bus (1849). In one example, a screen (1810) may be connected to a graphics adapter (1850). Peripheral bus architectures include PCI, USB, etc.

[0240] CPUs (1841), GPUs (1842), FPGAs (1843), and accelerators (1844) can execute certain instructions, which, when combined, constitute the aforementioned computer code. This computer code can be stored in ROM (1845) or RAM (1846). Temporary data can also be stored in RAM (1846), while permanent data can be stored, for example, in an internal mass storage device (1847). Fast storage and retrieval of any of the storage devices can be achieved by using a cache memory, which can be closely associated with at least one CPU (1841), GPU (1842), mass storage device (1847), ROM (1845), RAM (1846), etc.

[0241] The computer-readable medium may contain computer code for performing various computer-implemented operations. The medium and computer code may be designed and constructed specifically for the purposes of this invention, or may belong to a class well-known and available to those skilled in the art of computer software.

[0242] For example, but not as a limitation, a computer system having an architecture (1800), particularly a core (1840), can provide functionality generated when one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) execute software embodied in at least one tangible computer-readable medium. Such a computer-readable medium can be a medium associated with certain storage devices (e.g., internal core mass storage (1847) or ROM (1845)) that are user-accessible mass storage devices as described above and with the non-volatile nature of the core (1840). Software implementing various aspects of the invention can be stored in such devices and executed by the core (1840). Depending on specific needs, the computer-readable medium may include at least one storage device or chip. The software can cause the core (1840), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to execute a particular process or a particular portion of a particular process described in this application, including defining data structures stored in RAM (1846) and modifying such data structures according to the process defined by the software. Alternatively or as an alternative, the computer system may provide functionality generated by hard-wired logic or otherwise embodied in circuitry (e.g., an accelerator (1844)), which may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may cover logic, and vice versa. Where appropriate, references to computer-readable media may cover circuitry (e.g., integrated circuits) storing software for execution, circuitry embodying logic for execution, or both. This invention covers any suitable combination of hardware and software.

[0243] The terms “at least one of…” or “one of…” as used in this invention are intended to include any one or a combination of the listed elements. For example, mentioning at least one of A, B, or C, at least one of A, B, and C, at least one of A, B, and / or C, and at least one of A to C are intended to include only A, only B, only C, or any combination thereof. Mentioning one of A or B and one of A and B are intended to include either A or B or (A and B). Where applicable, such as when the elements are not mutually exclusive, the use of “one of…” does not exclude any combination of the listed elements.

[0244] Although several examples of various aspects have been described in this invention, modifications, substitutions, and various alternative equivalents exist that fall within the scope of this invention. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, while not explicitly stated or described herein, embody the principles of the invention and are therefore within its spirit and scope.

[0245] The aforementioned disclosure also includes the features mentioned below. These features can be combined in various ways, and are not limited to the combinations mentioned below.

[0246] (1). A method for video decoding, comprising: receiving a bitstream including encoded information of at least one image; deriving motion vector information associated with a current chroma sample of a current block in a current image, the motion vector information pointing to a reference sample in a reference image of the current image; applying temporal ALF to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset of the current chroma sample in the current image; and generating a filter value of the current chroma sample based on the filter offset.

[0247] (2). The method based on feature (1) further includes: determining a category from multiple categories based on the current chromaticity sample; and selecting the filter coefficients of the ALF based on the category.

[0248] (3). A method according to any one of features (1) to (2), wherein determining the classification comprises: calculating a quantized sample value of the current chromaticity sample and at least one of its neighboring chromaticity samples; calculating at least one of the gradient of the current chromaticity sample and / or the activity of the current chromaticity sample based on the quantized sample value; and determining the classification based on at least one of the gradient of the current chromaticity sample and / or the activity of the current chromaticity sample.

[0249] (4). A method based on any one of features (1) to (3), wherein determining the classification includes: calculating a quantized sample value of the current chromaticity sample; and determining the classification based on the quantized sample value.

[0250] (5). The method according to any one of features (1) to (4), wherein applying the ALF includes: applying a nonlinear limiting function to the difference between the at least one neighboring sample and the reference sample to generate a limiting difference; and calculating the filter offset based on the limiting difference.

[0251] (6). The method according to any one of features (1) to (5) further includes at least one of the following: decoding a flag bit associated with a region of the current image that includes the current chroma sample, wherein the flag bit is true and indicates that the chroma sample in the region is filtered based on a reference sample in the reference image, and the flag bit is false and indicates that the chroma sample in the region is not filtered based on the reference sample in the reference image; and deriving the flag bit as false when the region is encoded by intra-frame prediction.

[0252] (7). The method according to any one of features (1) to (6), wherein the region includes at least one of the following: the current image; a slice including the current chroma sample; or a block including the current chroma sample.

[0253] (8). The method according to any one of features (1) to (7) further includes: deriving the flag bit based on at least one of the following: the block size of the block including the current chroma sample; the temporal layer identifier; the gradient mode; the motion vector level; the reference image index; and / or the index difference between the reference image and the current image.

[0254] (9). A method according to any one of features (1) to (8), wherein the derivation includes: deriving the motion vector information of the current chroma sample based on scaling the motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format.

[0255] (10). A method according to any one of features (1) to (9), wherein the derivation includes: scaling the first motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format to obtain the second motion vector information; and rounding the second motion vector information to integer precision to obtain the motion vector information of the current chroma sample.

[0256] (11). The method according to any one of features (1) to (10), wherein the reference sample and the at least one neighboring sample of the reference sample are chromaticity samples, and the temporal ALF has the same filter shape and the same number of filter coefficients as another temporal ALF applied to the luminance sample.

[0257] (12). The method according to any one of features (1) to (11), wherein the reference sample and the at least one neighboring sample of the reference sample are chromaticity samples, and the temporal ALF has a different shape and a different number of filter coefficients than another temporal ALF applied to the luminance sample.

[0258] (13). The method according to any one of features (1) to (12), wherein the reference sample and the at least one adjacent sample of the reference sample are luminance samples.

[0259] (14). According to any one of the features (1) to (13), wherein the ALF has the same filter shape as the spatial CCALF.

[0260] (15). The method according to any one of features (1) to (14), wherein the derivation includes: deriving the motion vector information of the current chroma sample based on the first motion vector information of the co-located luminance sample of the current chroma sample without scaling.

[0261] (16). The method according to any one of features (1) to (15) further includes: rounding the motion vector information of the current chromaticity sample to integer precision.

[0262] (17). A method according to any one of features (1) to (16), wherein the motion vector information includes a non-integer motion vector, and the method includes: generating the brightness sample in the reference image based on the motion vector information and applying motion compensation.

[0263] (18). A method according to any one of features (1) to (17), wherein the motion vector information includes a bidirectional motion vector pointing to a first luminance sample in a first reference image and a second luminance sample in a second reference image, and the method includes: calculating the luminance sample by weighted averaging the first luminance sample and the second luminance sample.

[0264] (19). The method according to any one of features (1) to (18), wherein when the motion vector information includes a unidirectional motion vector, the ALF has a first filter shape, and when the motion vector information includes a bidirectional motion vector, the ALF has a second filter shape, the second filter shape being different from the first filter shape.

[0265] (20). The method according to any one of features (1) to (19), wherein when the motion vector information includes a unidirectional motion vector, the ALF has a first number of filter taps, and when the motion vector information includes a bidirectional motion vector, the ALF has a second number of filter taps, the second number being twice the first number.

[0266] (21). The method according to any one of features (1) to (20), wherein the motion vector information includes cascaded motion vectors, which are cascaded with at least one motion vector and / or at least one block vector.

[0267] (22). A video coding method, comprising: deriving motion vector information associated with a current chroma sample of a current block in a current image, the motion vector information pointing to a reference sample in a reference image of the current image; applying temporal ALF to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset of the current chroma sample in the current image; generating a filter value of the current chroma sample based on the filter offset; and encoding a plurality of images, including the current image, into encoded information in a bitstream based at least on the filter value of the current chroma sample.

[0268] (23). The method based on feature (22) further includes: determining a category from multiple categories based on the current chromaticity sample; and selecting the filter coefficients of the ALF based on the category.

[0269] (24). A method according to any one of features (22) to (23), wherein determining the classification comprises: calculating a quantized sample value of the current chromaticity sample and at least one of the adjacent chromaticity samples of the current chromaticity sample; calculating at least one of the gradient of the current chromaticity sample and / or the activity of the current chromaticity sample based on the quantized sample value; and determining the classification based on at least one of the gradient of the current chromaticity sample and / or the activity of the current chromaticity sample.

[0270] (25). A method based on any one of features (22) to (24), wherein determining the classification includes: calculating a quantized sample value of the current chromaticity sample; and determining the classification based on the quantized sample value.

[0271] (26). The method according to any one of features (22) to (25), wherein applying the ALF includes: applying a nonlinear limiting function to the difference between the at least one neighboring sample and the reference sample to generate a limiting difference; and calculating the filter offset based on the limiting difference.

[0272] (27). The method according to any one of features (22) to (26) further includes: including in the bitstream a flag bit associated with a region of the current image that includes the current chroma sample, wherein when the flag bit is true, it indicates that the chroma sample in the region is filtered based on a reference sample in the reference image, and when the flag bit is false, it indicates that the chroma sample in the region is not filtered based on the reference sample in the reference image.

[0273] (28). The method according to any one of features (22) to (27), wherein the region includes at least one of the following: the current image; a slice including the current chroma sample; or a block including the current chroma sample.

[0274] (29). The method according to any one of features (22) to (28), wherein the derivation includes: deriving the motion vector information of the current chroma sample based on scaling the motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format.

[0275] (30). The method according to any one of features (22) to (29), wherein the derivation includes: scaling the first motion vector information of the co-located luminance sample of the current chroma sample according to the chroma format to obtain the second motion vector information; and rounding the second motion vector information to integer precision to obtain the motion vector information of the current chroma sample.

[0276] (31). The method according to any one of features (22) to (30), wherein the reference sample and the at least one neighboring sample of the reference sample are chromaticity samples, and the temporal ALF has the same filter shape and the same number of filter coefficients as another temporal ALF applied to the luminance sample.

[0277] (32). The method according to any one of features (22) to (31), wherein the reference sample and the at least one neighboring sample of the reference sample are chromaticity samples, and the temporal ALF has a different shape and a different number of filter coefficients than another temporal ALF applied to the luminance sample.

[0278] (33). The method according to any one of features (22) to (32), wherein the reference sample and the at least one adjacent sample of the reference sample are brightness samples.

[0279] (34). According to any one of the features (22) to (33), wherein the time-domain ALF has the same filter shape as the spatial-domain CCALF.

[0280] (35). The method according to any one of features (22) to (34), wherein the derivation includes: deriving the motion vector information of the current chroma sample based on the first motion vector information of the co-located luminance sample of the current chroma sample without scaling.

[0281] (36). The method according to any one of features (22) to (35) further includes: rounding the motion vector information of the current chromaticity sample to integer precision.

[0282] (37). A method according to any one of features (22) to (36), wherein the motion vector information includes a non-integer motion vector, and the method includes: generating the brightness sample in the reference image based on the motion vector information and applying motion compensation.

[0283] (38). A method according to any one of features (22) to (37), wherein the motion vector information includes a bidirectional motion vector pointing to a first luminance sample in a first reference image and a second luminance sample in a second reference image, and the method includes: calculating the luminance sample by weighted averaging the first luminance sample and the second luminance sample.

[0284] (39). The method according to any one of features (22) to (38), wherein when the motion vector information includes a unidirectional motion vector, the ALF has a first filter shape, and when the motion vector information includes a bidirectional motion vector, the ALF has a second filter shape, the second filter shape being different from the first filter shape.

[0285] (40). The method according to any one of features (22) to (39), wherein when the motion vector information includes a unidirectional motion vector, the ALF has a first number of filter taps, and when the motion vector information includes a bidirectional motion vector, the ALF has a second number of filter taps, the second number being twice the first number.

[0286] (41). The method according to any one of features (22) to (40), wherein the motion vector information includes cascaded motion vectors, which are cascaded with at least one motion vector and / or at least one block vector.

[0287] (42). A non-transitory computer-readable storage medium storing a video media stream encoded by any of the methods of features (22) to (41).

[0288] (43). A video decoding method, comprising: receiving a bitstream including encoded information of at least one image; generating reconstructed sample data of a block based on the encoded information of the at least one image for filtering by a loop filter module, the reconstructed sample data of the block including luminance input data and chrominance input data of the loop filter module, the loop filter module including at least one first loop filter and at least one second loop filter, the at least one first loop filter being applied to the luminance component of the block to generate luminance output data of the block, the at least one second loop filter being applied to the chrominance component of the block to generate chrominance output data of the block; deriving a cross-component filtering model based on the correlation between the luminance input data and the chrominance input data; applying the cross-component filtering model to the luminance output data of the at least one first loop filter to generate cross-component filtered data; generating modified chrominance input data based on the cross-component filtered data; and applying the at least one second loop filter to the modified chrominance input data to generate the chrominance output data.

[0289] (44). According to the method of feature (43), wherein the loop filter module includes at least one of a bilateral filter and a shape adaptive offset filter.

[0290] (45). The method according to any one of features (43) to (44), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates the chroma output data based on the modified chroma input data.

[0291] (46). The method according to any one of features (43) to (45), wherein applying the at least one second loop filter comprises: applying a cross-component loop filter that generates the chroma output data based on the modified chroma input data and the luminance input data.

[0292] (47). A method according to any one of features (43) to (46), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates a first portion of the chroma output data based on the chroma input data; applying a cross-component loop filter that generates a second portion of the chroma output data based on the modified chroma input data and the luminance input data; and calculating the sum of the first portion and the second portion to generate the chroma output data.

[0293] (48). A method according to any one of features (43) to (47), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates a first portion of the chroma output data based on the modified chroma input data; applying a cross-component loop filter that generates a second portion of the chroma output data based on the luminance input data; and calculating the sum of the first portion and the second portion to generate the chroma output data.

[0294] (49). The method according to any one of features (43) to (48) further includes: decoding a flag associated with the block, the flag indicating whether the chroma input data has been modified by applying the cross-component filtering model.

[0295] (50). The method according to any one of features (43) to (49), wherein generating the modified chroma input data further includes: calculating a weighted sum of the chroma input data and the cross-component filter data, wherein the weight value of the cross-component filter data is a constant value.

[0296] (51). The method according to any one of features (43) to (50), wherein: the loop filter module includes a first plurality of cascaded loop filters and a second plurality of cascaded loop filters, the first plurality of cascaded loop filters being applied to the luminance component of the block to generate the luminance output data of the block, and the second plurality of cascaded loop filters being applied to the chrominance component of the block to generate the chrominance output data of the block.

[0297] (52). A method according to any one of features (43) to (51), wherein: the loop filter module includes a first plurality of parallel loop filters and a second plurality of parallel loop filters, the first plurality of parallel loop filters being applied in parallel to the luminance component of the block, and the second plurality of parallel loop filters being applied in parallel to the chrominance component of the block; the method includes: combining the luminance filter outputs of the first plurality of parallel loop filters to generate the luminance output data; applying the second plurality of parallel loop filters in parallel to the modified chrominance input data to generate the chrominance filter output; and combining the chrominance filter outputs to form the chrominance output data.

[0298] (53). A video coding method, comprising: generating reconstructed sample data of a block for filtering by a loop filter module, the reconstructed sample data of the block including luminance input data and chrominance input data of the loop filter module, and the loop filter module including at least one first loop filter and at least one second loop filter, the at least one first loop filter being applied to the luminance component of the block to generate luminance output data of the block, and the at least one second loop filter being applied to the chrominance component of the block to generate chrominance output data of the block; deriving a cross-component filtering model based on the correlation between the luminance input data and the chrominance input data; applying the cross-component filtering model to the luminance output data of the at least one first loop filter to generate cross-component filtered data; generating modified chrominance input data based on the cross-component filtered data; applying the at least one second loop filter to the modified chrominance input data to generate the chrominance output data; and encoding at least one image including the block as encoded information in a bitstream based on the chrominance output data.

[0299] (54). According to the method of feature (53), wherein the loop filter module includes at least one of a bilateral filter and a shape adaptive offset filter.

[0300] (55). The method according to any one of features (53) to (54), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates the chroma output data based on the modified chroma input data.

[0301] (56). The method according to any one of features (53) to (55), wherein applying the at least one second loop filter comprises: applying a cross-component loop filter that generates the chroma output data based on the modified chroma input data and the luminance input data.

[0302] (57). A method according to any one of features (53) to (56), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates a first portion of the chroma output data based on the chroma input data; applying a cross-component loop filter that generates a second portion of the chroma output data based on the modified chroma input data and the luminance input data; and calculating the sum of the first portion and the second portion to generate the chroma output data.

[0303] (58). A method according to any one of features (53) to (57), wherein applying the at least one second loop filter comprises: applying a chroma loop filter that generates a first portion of the chroma output data based on the modified chroma input data; applying a cross-component loop filter that generates a second portion of the chroma output data based on the luminance input data; and calculating the sum of the first portion and the second portion to generate the chroma output data.

[0304] (59). The method according to any one of features (53) to (58) further includes: including in the bitstream a flag bit associated with the block, the flag bit indicating whether the chroma input data is modified by applying the cross-component filtering model.

[0305] (60). The method according to any one of features (53) to (59), wherein generating the modified chroma input data further includes: calculating a weighted sum of the chroma input data and the cross-component filter data, wherein the weight value of the cross-component filter data is a constant value.

[0306] (61). The method according to any one of features (53) to (60), wherein: the loop filter module includes a first plurality of cascaded loop filters and a second plurality of cascaded loop filters, the first plurality of cascaded loop filters being applied to the luminance component of the block to generate the luminance output data of the block, and the second plurality of cascaded loop filters being applied to the chrominance component of the block to generate the chrominance output data of the block.

[0307] (62). A method according to any one of features (53) to (61), wherein: the loop filter module includes a first plurality of parallel loop filters and a second plurality of parallel loop filters, the first plurality of parallel loop filters being applied in parallel to the luminance component of the block, and the second plurality of parallel loop filters being applied in parallel to the chrominance component of the block; the method includes: combining the luminance filter outputs of the first plurality of parallel loop filters to generate the luminance output data; applying the second plurality of parallel loop filters in parallel to the modified chrominance input data to generate the chrominance filter output; and combining the chrominance filter outputs to form the chrominance output data.

[0308] (63). A non-transitory computer-readable storage medium storing a video media stream encoded by any of the methods of features (53) to (62).

[0309] (64). An apparatus for video decoding, comprising processing circuitry configured to perform a method according to any one of features (1) to (21).

[0310] (65). An apparatus for video encoding, comprising processing circuitry configured to perform a method according to any one of features (22) to (41).

[0311] (66). An apparatus for video decoding, comprising processing circuitry configured to perform a method according to any one of features (43) to (52).

[0312] (67). An apparatus for video encoding, comprising processing circuitry configured to perform a method according to any one of features (53) to (62).

[0313] (68). A non-transitory computer-readable storage medium storing instructions which, when executed by at least one processor, cause the at least one processor to perform a method according to any one of features (1) to (41).

[0314] (69). A non-transitory computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform a method according to any one of features (43) to (62).

Claims

1. A method for video decoding, characterized in that, include: Receive a bitstream, the bitstream including encoded information of at least one image; Derive motion vector information associated with the current chroma sample of the current block in the current image, wherein the motion vector information points to a reference sample in a reference image of the current image; A temporal adaptive loop filter (ALF) is applied to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image. as well as The filtered value of the current chroma sample is generated based on the filter offset.

2. The method according to claim 1, characterized in that, Also includes: Based on the current colorimetric sample, determine one category from multiple categories; as well as Based on the classification, the filter coefficients of the ALF are selected.

3. The method according to claim 2, characterized in that, Determining the classification includes: Calculate the quantized sample value of the current chromaticity sample and at least one adjacent chromaticity sample of the current chromaticity sample; Based on the quantized sample values, calculate at least one of the gradient of the current chromaticity sample and / or the activity of the current chromaticity sample; and The classification is determined based on at least one of the gradient of the current chroma sample and / or the activity of the current chroma sample.

4. The method according to any one of claims 2 to 3, characterized in that, Determining the classification includes: Calculate the quantized sample value of the current chromaticity sample; and The classification is determined based on the quantified sample values.

5. The method according to any one of claims 1 to 4, characterized in that, The application of the ALF includes: A nonlinear limiting function is applied to the difference between the at least one neighboring sample and the reference sample to generate a limited difference; and The filtering offset is calculated based on the amplitude limiting difference.

6. The method according to any one of claims 1 to 5, characterized in that, It also includes at least one of the following: Decode a flag associated with a region of the current image that includes the current chroma sample, wherein a true value indicates that the chroma sample in the region is filtered based on a reference sample in the reference image, and a false value indicates that the chroma sample in the region is not filtered based on the reference sample in the reference image; as well as When the region is encoded using intra-frame prediction, the flag is deduced to be the false value.

7. The method according to claim 6, characterized in that, The region includes at least one of the following: The current image; Including a slice of the current chromaticity sample; or The block that includes the current chroma sample.

8. The method according to claim 6, characterized in that, Also includes: The flag bit is derived based on at least one of the following: Including the block size of the block containing the current chroma sample; Time layer identifier; Gradient mode; Motion vector hierarchy; Reference image index; and / or The index difference between the reference image and the current image.

9. The method according to any one of claims 1 to 8, characterized in that, The derivation includes: The motion vector information of the current chroma sample is derived by scaling the motion vector information of the co-located luminance sample according to the chroma format.

10. The method according to any one of claims 1 to 9, characterized in that, The derivation includes: The first motion vector information of the co-located luminance sample of the current chroma sample is scaled according to the chroma format to obtain the second motion vector information; and The second motion vector information is rounded to integer precision to obtain the motion vector information of the current chromaticity sample.

11. The method according to any one of claims 1 to 10, characterized in that, The reference sample and the at least one neighboring sample of the reference sample are chroma samples, and the temporal ALF has the same filter shape and the same number of filter coefficients as another temporal ALF applied to the luminance sample.

12. The method according to any one of claims 1 to 11, characterized in that, The reference sample and at least one of its neighboring samples are chroma samples, and the temporal ALF has a different shape and a different number of filter coefficients than another temporal ALF applied to the luminance sample.

13. The method according to any one of claims 1 to 12, characterized in that, The reference sample and its at least one neighboring sample are luminance samples.

14. A video encoding method, characterized in that, include: Derive motion vector information associated with the current chroma sample of the current block in the current image, wherein the motion vector information points to a reference sample in a reference image of the current image; A temporal adaptive loop filter (ALF) is applied to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image. Based on the filter offset, generate the filter value for the current chroma sample; as well as Based at least on the filter value of the current chroma sample, multiple images, including the current image, are encoded into encoded information in the bitstream.

15. A non-transitory computer-readable storage medium, characterized in that, The computer-readable storage medium stores a video media stream encoded by an encoding method, the encoding method including: Derive motion vector information associated with the current chroma sample of the current block in the current image, wherein the motion vector information points to a reference sample in a reference image of the current image; A temporal adaptive loop filter (ALF) is applied to the reference sample in the reference image and at least one neighboring sample of the reference sample to generate a filter offset for the current chroma sample in the current image. Based on the filter offset, generate the filtered value of the current chromaticity sample; and Based at least on the filter value of the current chroma sample, multiple images, including the current image, are encoded into encoded information in the video media stream.