Adaptive Loop Filtering for Color Format Support

SA522440521B1Active Publication Date: 2024-02-22QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA522440521
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2024-02-22
Estimated Expiration
2041-04-15

AI Technical Summary

Technical Problem

Existing video coding standards lack flexibility in applying adaptive loop filters (ALFs) to chroma components, particularly in video formats where color components have similar properties, leading to suboptimal video output performance.

Method used

Incorporating an ALF chroma tag and using chip address data for ALF filtering, allowing flexible application of ALFs to multiple color components, including chroma components, by adding an ALF chroma filter signal flag and slice identifier in the bitstream.

Benefits of technology

Enhances video output performance by enabling ALF filtering for chroma components, improving flexibility and efficiency in video encoding and decoding processes.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

Systems and techniques are described herein for processing video data. For example, a process can include obtaining a video bitstream, the video bitstream including adaptive loop filter (ALF) data. The process can further include determining a value of an ALF chroma filter signal flag from the ALF data, the value of the ALF chroma filter signal flag indicating whether chroma ALF filter data is signaled in the video bitstream. The process can further include processing at least a portion of a slice of video data based on the value of the ALF chroma filter signal flag. Fig 4.
Need to check novelty before this filing date? Find Prior Art

Description

<h2 style=";text-align:left;direction:ltr">Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The present application relates to video coding. For example, aspects of the application relate to systems, devices, methods, and computer-readable media (referred to as "systems and methods") for enhancing toroidal filters, such as adaptive toroidal filters (ALFs). In some examples, the systems and methods can enable encoding (e.g., encoding and / or decoding) of video data in different color formats (e.g., 4:4:4 color format, 4:2:0 color format, and / or other color formats).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Many devices and systems allow video data to be processed and output for consumption. Digital video data contains large amounts of data to meet the needs of consumers and video service providers. For example, video data consumers desire high-quality video, including high resolution, high resolution, and frame rates. Consequently, the large amount of video data required to meet these needs places a burden on communication networks and the devices that process and store the video data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Various video coding methods can be used to compress video data. Video coding is implemented according to one or more video coding standards. For example, video coding standards include Versatile Video Coding (VVC), High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), Moving Picture Experts Group (MPEG) coding, VP9, ​​and the Alliance for Open Media (AOMedia) Video 1 (AV1), among others. Video coding generally uses prediction methods (e.g., interprediction, interprediction, or similar) that take advantage of the redundancy present in video images or sequences. An important goal of video coding methods is to compress video data into a form that uses a lower bit rate, while avoiding or minimizing video quality degradation. With the availability of ever-evolving video services, coding methods with better coding efficiency are needed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> General description of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Systems and methods for encoding (e.g., encoding and / or decoding) image and / or video content are described. In some video coding standards (e.g., the Basic Video Coding (EVC) standard), adaptive acyclic filters (ALFs) filter luma components using sets and classifiers of adaptive filters, such as a filter stored in advance in memory or referenced (e.g., via an adaptive parameter set (APS)), and are used for ALF filtering. Chroma components of a bitstream are filtered with a single filter (e.g., a 5 × 5 filter), with the filter coefficients referenced once per APS. However, the operations of these video coding standards lack flexibility and may not be effective for video where different color channels have similar properties (e.g., video data in a red, green, and blue (RGB) format with a red, green, and blue component per pixel, video data containing luma and chroma components per pixel, such as 4:4:4 video data, or other video data).<h2 style=";text-align:left;direction:ltr">In those formats where the color components have similar properties, color component data that is not subject to ALF filtering in the video coding standards described above may benefit from ALF filtering. However, the structural elements of some video coding standards refer to ALF chroma identifiers in APS (for example, using one or more APS building blocks). Using APS building blocks to control ALF filtering over chroma components lacks flexibility.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The examples described in this document add a tag associated with ALF filtering to multiple color components (for example, an ALF chroma tag added in addition to an existing ALF luma tag) to APS signals. In some cases, the ALF chroma identifiers used to reference ALF chroma filtering are included in the chip address data (for example, using the constructs described below) rather than being included in the ALF data (for example, referenced using the alf_data structure, as described in this document). Using chip address data for ALF chroma filter signals can improve the operation of video encoders (for example, encoders, decoders, or combined encoders and decoders) while improving flexibility in ALF filtering. Using chip address data for ALF chroma filter signals can also improve video output performance (for example, for chroma data in video formats where chroma and luma have similar properties).<h2 style=";text-align:left;direction:ltr">In some examples, ALF marker signals may be used to apply ALF filtering and define ALF maps for ALF filtering of specific color components (e.g., video data blocks carrying specific color component data) of video data (e.g., in video data image slices). For example, a decoder receiving a bitstream containing 4:4:4 video data may identify the presence of an ALF marker (e.g., an ALF chroma filter signal marker) in the bitstream. The ALF marker may indicate that ALF chroma filtering is available for the video data image slice. Additional information in the bitstream may indicate ALF maps (e.g., slice_alf_chroma_map_signalled, slice_alf_chroma2_map_signalled, etc.) that provide the information used in ALF filtering for at least that slice.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to an illustrative example, a device for decoding video data is provided. The device includes memory and at least one processor (e.g., configured in a circuit) coupled to the memory. The at least one processor is configured to: acquire a video bitstream, wherein the video bitstream includes adaptive loop filter (ALF) data; determine an ALF chroma filter flag value from the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and process at least a portion of a segment of the video data based on the ALF chroma filter flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to another illustrative example, a method for decoding video data is provided. The method comprises: obtaining a video bitstream, wherein the video bitstream includes adaptive loop filter (ALF) data; determining an ALF chroma filter signal flag value from the ALF data, wherein the ALF chroma filter signal flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and processing at least a portion of a segment of the video data based on the ALF chroma filter signal flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In another example, a non-transitory computer-readable medium is provided which has stored instructions thereon that, when executed by one or more processors, cause the one or more processors to: obtain a video bitstream, wherein it includes adaptive loop filter (ALF) data; determine an ALF chroma filter flag value from the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and process at least a portion of a segment of the video data based on the ALF chroma filter flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In another example, an apparatus for decoding video data is provided. The apparatus includes: a means for obtaining a video bitstream, wherein the video bitstream includes adaptive loop filter (ALF) data; a means for determining an ALF chroma filter signal flag value from the ALF data, wherein the ALF chroma filter signal flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and a means for processing at least a portion of a segment of the video data based on the ALF chroma filter signal flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some aspects of the methods, devices, and computer-readable medium described above include: obtaining the video data chip address from the video bitstream; determining an ALF chroma identifier value from the chip address, wherein the ALF chroma identifier value indicates whether the ALF can be applied to one or more of the chip's chroma components; and addressing at least a portion of the chip by the ALF chroma identifier from the chip address.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above include: determining a chroma format ID value from the slide title, a chroma format ID value, and an ALF code ID value that indicates which ALF chroma components are applicable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some aspects, the ALF chroma filter flag value indicates that the ALF chroma filter data is referenced in the video bitstream. In some aspects, the ALF chroma filter data is referenced in the Adaptation Variable Set (APS) for at least part of the chip processing.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some aspects of the methods, devices, and computer-readable medium described above include: based on the ALF chroma filter signal value, obtaining ALF chroma filter data for use in processing at least a portion of the video data segment; and applying the ALF chroma filter data to at least a portion of the video data segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above involve inferring that the ALF chroma filter signal sign value is zero when no ALF chroma filter signal sign value is present in the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, apparatus, and computer-readable medium described above include: based on the ALF chroma filter signal flag value, obtaining ALF chroma filter data for use in one or more chroma components of at least one video bitstream block; and applying the ALF chroma filter data to one or more chroma components of at least one block of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some aspects of the methods, apparatus, and computer-readable medium described above include: obtaining a video data segment address from a video bitstream; determining a chroma format ID value from the segment address; and based on the chroma format ID value from the segment address, processing one or more chroma components of at least one block of the video bitstream using the ALF Luma filter data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above include: Processing the ALF chroma filter signal flag value from the ALF data to know that the ALF chroma filter data is referenced in the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, apparatus, and computer-readable medium described above include: determining an ALF Application Parameter Set (APS) identifier for a first color component of at least a portion of the chip; and determining an ALF map for the first color component of at least a portion of the chip.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some aspects of the methods, devices, and computer-readable medium described above include: enabling ALF filtering of at least two non-LUMA components of the at least one slice portion based on the at least two slice portion components having common properties.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some aspects, the at least two non-luma components of at least a portion of the slice comprise a red component, a green component, and a blue component of at least the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some aspects, the at least two non-luma components of at least part of the chip comprise chroma components of at least part of the chip.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some aspects, at least one portion of the slice includes video data in 4:4:4 format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above include: enabling ALF filtering of at least two non-LUMA components of at least part of the chip by at least part of the chip including video data in a non-4:2:0 format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some aspects of the methods, apparatus, and computer-readable medium described above include: defining a chroma-type matrix variable for at least a slice portion; defining an ALF chroma application group (APS) identifier for at least a first component of the slice portion by a chroma-type matrix variable for at least a slice portion; and defining a referenced ALF map for at least a first component of the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, apparatus, and computer-readable medium described above include: determining a second-referenced ALF map of at least a second component of the slice portion based on a chroma matrix variable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, apparatus, and computer-readable medium described above include: performing ALF filtering on at least the first component and the second component of the slice portion using a referenced ALF map and a second referenced ALF map.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above include: determining a third ALF map with reference to at least a third component of the slice portion according to a chroma matrix variable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some respects, the first component is a luma component, the second component is a chroma one component, and the third component is a chroma two component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some aspects, the first component is a red component, the second component is a green component, and the third component is a blue component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, apparatus, and computer-readable medium described above include: performing ALF processing on a block for at least each component of the chip part based on a chroma type matrix variable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to another illustrative example, a device for encoding video data is provided. The device includes memory and at least one processor (e.g., configured in an electrical circuit) coupled with the memory. The at least one processor is configured to: generate adaptive loop filter (ALF) data; determine an ALF chroma filter flag value for the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and generate the video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to another illustrative example, a method for encoding video data is provided. The method comprises: generating adaptive loop filter (ALF) data; determining an ALF chroma filter flag value for the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and generating a video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In another example, a non-transitory computer-readable medium is provided which has stored instructions thereon that, when executed by one or more processors, cause the one or more processors to: generate adaptive loop filter (ALF) data; determine the ALF chroma filter flag value for the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in a video bitstream; and generate the video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In another example, an apparatus for encoding video data is provided. The apparatus includes: means for generating adaptive loop filter (ALF) data; means for determining an ALF chroma filter signal flag value for the ALF data, wherein the ALF chroma filter signal flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and means for generating a video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above for encoding video data include: specifying an ALF chroma identifier value, where the ALF chroma identifier value indicates whether ALF can be applied to one or more chroma components of a segment of video data; and including the ALF chroma identifier value in the segment header of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable medium described above for encoding video data include: specifying a Chroma Format ID value where the Chroma Format ID value and the ALF Chroma Format ID value indicate which ALF chroma component is applicable; and including the Chroma Format ID value in the video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some aspects, the ALF chroma filter flag value indicates that the ALF chroma filter data is referenced in the video bitstream. In some aspects, the ALF chroma filter data is referenced in the Adaptation Variable Set (APS) to process at least a portion of the chip.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some aspects of the methods, devices, and computer-readable media described above for encoding video data include: specifying a chroma format identifier value, wherein the chroma format identifier value refers to at least one or more chroma components of at least one block of the video bitstream for processing using the ALF Luma filter data; and including the chroma format identifier value in a segment address of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some aspects, a device includes a mobile device (e.g., a mobile phone, so-called "smartphone," tablet computer, or other type of mobile device), a wearable device, an extended reality device (e.g., a virtual reality (VR), augmented reality (AR), or mixed reality (MR) device), a personal computer, a laptop computer, a video server, a television, a vehicle (or a vehicle computer), or any other device. In some aspects, the device includes at least one camera for capturing one or more images or video frames. For example, the device may include a camera (e.g., an RGB camera) or multiple cameras for capturing one or more images and / or one or more video blocks, including video frames. In some aspects, the device includes a screen for displaying one or more images, video clips, notifications, or other viewable data. In some aspects, the device includes a transmitter configured to transmit one or more video frames and / or structural data via a transmission medium to at least one device.<h2 style=";text-align:left;direction:ltr">In some aspects, the processor includes a neural processing unit (NPU), a central processing unit (CPU), a graphics processing unit (GPU), or other processing device or component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The present invention is not intended to define the principal or essential features of the subject matter claimed, nor is it intended to be used in isolation to define the scope of the subject matter claimed. The subject matter should be understood by reference to the appropriate portions of the complete specification of this patent, any or all of the drawings, and all claims.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The above, as well as other features and forms, will become more apparent when referring to the following specification, protections and accompanying drawings.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Brief explanation of the drawings<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The illustrative forms of the current application are described in detail below with reference to the following figures:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1A is a block diagram illustrating an example of an encoder and a decoder, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1b is a diagram illustrating an example of implementing a tiled and sliced ​​image, according to the methods of the present invention;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1C is a schematic illustrating an example implementation of a filter unit for performing color-based ALF, according to the methods of the present invention;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2a is a theoretical schematic illustrating an example of an adaptive loop filter (ALF) support incorporating a 5×5 diamond, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2b is a theoretical diagram showing another example of an ALF filter support including a 7×7 diamond, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3a is a theoretical diagram showing aspects of sub-sampling sites for vertical gradients, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3b is a theoretical diagram showing the aspects of sub-sampling sites for horizontal gradients, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3c is a theoretical diagram showing aspects of sub-sampling sites for country gradients, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3d is a theoretical diagram showing aspects of sub-sampling sites for country gradients, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 is a flowchart illustrating aspects of ALF's support for different color formats, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 5 is a flowchart illustrating an example of a video data decoding process, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 is a flowchart illustrating an example of a video data decoding process, according to some examples;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 7 is a block diagram showing an example of a video encoder, according to some examples; and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 8 is a block diagram showing an example of a video decoder, with some examples.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The following are certain aspects and embodiments of the present invention. Some of these aspects and embodiments may be applied independently, and some may be applied in combination, as will be evident to those skilled in the art. In the following description, for the purposes of explanation, specific details have been specified to provide a comprehensive understanding of the application embodiments. However, it will be evident that various embodiments may be implemented without these specific details. The figures and description are not intended to limit the invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The following description provides merely exemplary embodiments and is not intended to limit the scope, applicability, or form of the invention. Alternatively, the following description of exemplary embodiments will provide those skilled in the art with a description enabling the implementation of an exemplary embodiment. It should be understood that various changes in the function and arrangement of the elements may be made without departing from the intent and scope of the application as set forth in the appended claims.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Video encoders use video compression methods to efficiently encode and decode video data. Video compression methods may involve applying various prediction modes, including spatial prediction (e.g., inter-frame prediction or inter-prediction), temporal prediction (e.g., inter-frame prediction or inter-prediction), inter-layer prediction (across different layers of video data), and / or other prediction methods to reduce or eliminate redundancy inherent in the video sequence. A video encoder may segment each frame of the original video sequence into rectangular regions referred to as video blocks or coding units. Blocks may include coding tree blocks (CTBs), prediction blocks, transformation blocks, and / or other appropriate blocks. References to a "block," unless otherwise specified, generally refer to such video blocks (e.g., CTBs, coding blocks, prediction blocks, transformation blocks, other blocks, or appropriate subblocks, as understood by a person of ordinary skill).<h2 style=";text-align:left;direction:ltr">Furthermore, each of these units may be referred to interchangeably in this document as "units" (e.g., code tree unit (CTU), codec unit (CTU), prediction unit (PU), transformation unit (TU), or the like). In some cases, a unit may refer to a logical coding unit encoded in a bitstream, while a block may refer to a portion of a video frame barrier targeted by the process. In some standards, code tree blocks (CTBs) constitute data transport units and are configured to transport the individual color components of video data. For example, a CTU may include a first CTB for the luma components of the CTU, a second CTB for the chroma-blue (Cb) components of the CTU, and a third CTB for the chroma-red (Cr) components of the CTU.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Videos can be encoded using a specific prediction mode. For interprediction modes, the video encoder can search for a block identical to the encoded block in a frame (or image) located at another temporal location, referred to as a reference frame or reference image. The video encoder may restrict the search to a specific spatial displacement of the block to be encoded. The location of the best match can be determined using a two-dimensional motion vector that includes a horizontal displacement component and a vertical displacement component. For interprediction modes, the video encoder may form the predicted block using spatial prediction methods based on data from adjacent blocks previously encoded within the same image.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The video encoder may define a prediction error. For example, the prediction error may be defined as the difference between the pixel values ​​in the coded block and the predicted block. The prediction error may also be referred to as the residual. The video encoder may also apply a prediction error transformation using a transform coding (e.g., using a form of the discrete cosine transform (DCT), a form of the discrete sine transform (DST), or another suitable transformation) to generate the transformation coefficients. After the transformation, the video encoder may quantize the transformation coefficients. The quantized transformation coefficients and motion vectors may be represented using structural elements and, together with control information, form a coded representation of a video sequence. In some cases, the video encoder may be the building blocks of an interferometer code, further reducing the number of bits required to represent them.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A video decoder, using the above structural elements and control information, can generate predictive data (e.g., a prediction block) to decode a current frame. For example, a video decoder might combine the predicted block and the compressed prediction error. The video decoder might determine the compressed prediction error by weighting the transfer basis functions using quantum coefficients. The difference between the reconstructed frame and the original frame is called the reconstruction error.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some cases, one or more adaptive cyclic filters (ALFs) can be applied individually to the color components of video data to improve the quality of the video output. For example, an ALF can be applied to an image or block of an image after the image or block has been reconstructed using interprediction or interprediction. In some cases, ALF filtering can be used to correct or repair artifacts introduced during image or block reconstruction.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some video formats, certain color components contain additional data compared to other color components. For example, 4:2:0 video data contains higher-resolution luma data than the associated chroma data. In these video formats, ALF filtering may be applied only to the higher-resolution luma data. However, in other formats, such as red, green, and blue (RGB) data and 4:4:4 data (where all color components have the same sampling rate), different color components have similar properties. Some video coding standards (for example, the EVC standard) are structured so that ALF filtering is applied to luma components and non-luma components (for example, chroma components) do not receive ALF filtering. In such cases, output can be improved by applying ALF to more than one color component (for example, applying ALF filtering to one or more chroma components in addition to the possibility of applying ALF filtering to the luma component).<h2 style=";text-align:left;direction:ltr">The aspects described in the current document provide additional flexibility and effective signaling for formats where ALF filtering of multiple color components results in improvements in output images.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For example, the aspects described in this document may include applying ALF filtering to multiple color components of a video bitstream to improve performance. In one example, an RGB video bitstream may include segmented images comprising multiple CTBs. Each segment may include separate CTBs for the red, green, and blue components. In another example, a video bitstream comprising luma and chroma components (for example, in the luma(Y)-chroma-blue(Cb)-chroma-red(Cr) format, referred to as the YCbCr format) may include segmented images. Each segment may include CTBs for the luma components and CTBs for two chroma components (for example, CTBs for the Cb components and CTBs for the Cr components). While some video coding standards emphasize ALF filtering for a single color component (e.g., luma CTBs), the examples in the current document provide an indication of chip address-based flexibility to allow ALF filtering for additional color components of video data (e.g., ALF filtering for either chroma CTBs, luma CTBs, or both).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the ALF chroma filter signal flag is added to the ALF data (e.g., in the alf_data structure) in the video bitstream (e.g., in a variable array, in title data such as a slice title, etc.). In one illustrative example, the ALF chroma filter signal flag can include the alf_chroma_filter_signal_flag structural element in the alf_data structure. The ALF chroma filter signal flag, working with the ALF luma filter signal flag, can indicate whether or not the chroma filter data is referenced. In some cases, the ALF chroma filter signal flag can be used with a slice ALF chroma identifier (e.g., referenced as the slice_alf_chroma_idc structural element) referenced in a slice title instead of the ALF data (e.g., instead of in the alf_data data structure) to indicate ALF filtering of additional color components (e.g., non-luma components, such as chroma components).<h2 style=";text-align:left;direction:ltr">For example, an ALF chroma filter signal flag (for example, a struct element alf_chroma_filter_signal_flag in an alf_data struct) can indicate that ALF is available to one or more chroma components.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An ALF chroma ID slice (for example, slice_alf_chroma_idc in the slice header) can contain values ​​(for example, values ​​from 0 to 3), each of which indicates different ALF chroma options. In one example, a first value could indicate that ALF filtering should be applied to a first chroma component, a second value could indicate that ALF filtering should be applied to a second chroma component, a third value could indicate that ALF filtering should be applied to both the first and second chroma components, and a fourth value could indicate that ALF filtering should not be applied to either the first or second chroma components.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The methods described in the present document can be applied to any existing video codecs (e.g., High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), or a suitable existing video codec), MPEG5 Efficient Video Coding (EVC) (e.g., implemented in ETM5.0), Versatile Video Coding (VVC), Joint Exploration Model (JEM), VP9, ​​AV1, and / or can be an efficient encoder for any video coding standards being developed and / or future video coding standards.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1A is a block diagram illustrating an example of a system 100 comprising an encoder 104 and a decoder 112. The encoder 104 may be part of a source device, and the decoder 112 may be part of a receiver (also referred to as a client device). The source and / or receiving device may include an electronic device, such as a mobile or fixed telephone (e.g., a smartphone, cell phone, or the like), a desktop computer, laptop, notebook, tablet, set-top box, television, camera, projector, digital media player, video game console, video streaming device, Internet Protocol (IP) camera, a server device in a server system that includes one or more server devices (e.g., a video streaming server system, or other suitable server system), a head-mounted display (HMD), a head-up display (HUD), smart glasses (e.g., virtual reality (VR) glasses, augmented reality (AR) glasses, or other smart glasses), or any other suitable electronic device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The system components 100 may include and / or be implemented using electronic circuits or other electronic devices, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or may include and / or be implemented using computer software, firmware, or any combination thereof, to perform the various operations described in the present document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">While system 100 appears to include certain components, a person of ordinary skill will recognize that system 100 may include more or fewer components than those shown in Figure 1A. For example, system 100 may also, in some cases, include one or more memory devices other than the storage device 108 and Figure.<h2 style=";text-align:left;direction:ltr">Storage 118 (e.g., one or more random access memory (RAM) components, read-only memory (ROM) components, cache components, buffer components, database components, and / or other memory devices), and / or one or more processing devices (e.g., one or more central processing units, graphics processing units, and / or other processing devices) are in communication with and / or are electrically connected to the one or more memory devices, one or more wireless interfaces (e.g., including one or more transceivers and a baseband processor for each wireless interface) for wireless communications, and one or more wired interfaces (e.g., a serial interface such as a Universal Serial Bus (USB) input and / or a Lightning connector and / or other wired interface) for communications via one or more wired connections and / or other components not shown in Figure 1A.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The coding methods described in this document are applicable to video coding in various multimedia applications, including streaming video (e.g., over the Internet), television broadcasting or transmission, encoding digital video for storage on a data storage medium, decoding digital video stored on a data storage medium, or other applications. In some examples, the system 100 may support one-way or two-way video transmission to support applications such as video conferencing, video streaming, video playback, video broadcasting, gaming, and / or video telephony.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encoder 104 (or encoder) can be used to encode video data using a video coding standard or protocol to generate an encoded video bitstream. Examples of video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262, ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), including Scalable Video Coding (SVC) extensions, Multi-Vision Video Coding (MVC), High Efficiency Video Coding (HEVC), or ITU-T H.265. Various extensions to HEVC exist to handle multi-layer video coding, including Domain and Screen Content Coding Extensions, 3D-HEVC, Multi-Vision Extensions (MV-HEVC), and Scalable Video Coding (SHVC). HEVC and its extensions were developed by the Joint Collaborative Team on Video Coding (JCT-VC) and the Joint Collaborative Team on 3D Video Coding Extension Development (JCT-3V) of the Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">MPEG and the ITU-T VCEG have also formed a Joint Video Exploration Team (JVET) to explore and develop new video coding tools for the next generation of video coding standards, called Versatile Video Coding (VVC). The reference program is called the VVC Test Model (VTM). The goal of VVC is to provide significant compression performance improvements over the current HEVC standard, enabling the deployment of high-quality video services and emerging applications (e.g., 360-degree immersive multimedia, high dynamic range (HDR) video, etc.). VP9, ​​the Alliance for Open Media (AOMedia) Video 1 (AV1), and other video coding standards to which the methods described in this document can be applied.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">An implementation of the embodiments described in this document may be possible using video codecs such as MPEG5 EVC, VVC, HEVC, AVC, and / or their extensions. However, the methods and systems described in this document may also be applicable to other video coding standards, such as MPEG4 or other MPEG standards, Joint Photographic Experts Group (JPEG) (or another still image coding standard), VP9, ​​AV1, its extensions, or other suitable coding standards already available or yet to be developed. Accordingly, although the methods and systems described in this document are described with reference to a particular video coding standard, a person of ordinary skill in the art will recognize that the description should not be construed to apply solely to that particular standard.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Referring to Figure 1A, the video source 102 may provide video data to the encoder 104. The video source 102 may be part of the source device, or may be part of a device other than the source device. The video source 102 may include a video capture device (e.g., a video camera, camera phone, video phone, or the like), a video archive containing stored video, a video server or content provider that provides video data, an interface for receiving video from a video server or content provider, a computer graphics system for generating computer graphics video data, a combination of these sources, or any other suitable video source.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Video data from a video source may include one or more input images. The images may also be referred to as "frames." The image or frame is a still image that, in some cases, forms part of a video block. In some examples, the data from the video source may be a still image that is not part of a video block. In some video coding specifications, a video sequence may include a sequence of images. The image may include three sample arrays, denoted SL, SCb, and SCr. SL is a two-dimensional array of luma samples, SCb is a two-dimensional array of chromaticity samples (Cb), and SCr is a two-dimensional array of chromaticity samples (Cr). The chromatic samples may also be referred to in this document as "chroma" samples. In other cases, the image may be monochromatic and may include only a set of luma samples. A pixel can refer to a point in the image that includes both luma and chroma samples. For example, a given pixel can contain a luma sample from the SL array, a chroma sample value Cb from the SCb array, and a chroma sample value Cr from the SCr array.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encoder engine 106 (or encoder) of the encoder 104 encodes video data to generate an encoded video bitstream. In some examples, the encoded video bitstream (or "video bitstream" or "bitstream") is a set of one or more encoded video sequences. The encoded video sequence (CVS) includes a set of access units (AUs) beginning with an AU containing a random access point image in the base layer with certain properties up to and including the next AU containing a random access point image in the base layer with certain properties. For example, the properties assigned to the random access point image that initiates the CVS may include a random access skip leading image (RASL) flag (e.g., NoRaslOutputFlag) of 1. However, a random access point image (with a RASL flag of 0) does not initiate the CVS. The access unit (AU) includes one or more encoded images and the corresponding control information for the encoded images that share the same output time. The image segments encoded at the bitstream level are encapsulated into data units called Network Abstraction Layer (NAL) units.<h2 style=";text-align:left;direction:ltr">For example, in some video standards, a video bitstream may include one or more CVSs, including NALs. Each NAL has a NAL address. In one example, the address is 1 byte for H.264 / AVC (excluding multilayer extensions) and 2 bytes for HEVC. The structural elements in the NAL address take up the assigned bits and are therefore visible to all types of systems and transport layers, such as Transport Stream, Real-time Transport Protocol (RTP), File Format, and others.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Two categories of NALs exist in some video standards, including video coding layer (VCL) NALs and non-VCL NALs. VCL NALs contain encoded image data that constitutes an encoded video bitstream. For example, the sequence of bits that constitute an encoded video bitstream is contained in VCL NALs. A VCL NAL can contain a single slice or slice segment (described below) of encoded image data, and a non-VCL NAL contains control information related to one or more encoded images. In some cases, a NAL may be referred to as a packet. HEVC AU includes VCL NALs containing the encoded image data and non-VCL NALs (if present) corresponding to the encoded image data. Non-VCL NALs may contain variable sets with high-level information related to the encoded video bitstream, as well as other information. For example, a variable set may include a video variable set (VPS), a sequence variable set (SPS), and a picture variable set (PPS).<h2 style=";text-align:left;direction:ltr">In some cases, each slice or other portion of the bitstream may refer to one active PPS and / or SPS and / or VPS to allow the decoder 112 to access information that may be used to decode the slice or other portion of the bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> NALs may contain a sequence of bits that constitute an encrypted representation of video data (e.g., an encrypted video bitstream, a CVS bitstream, or the like), such as encrypted representations of images in a video. In some cases, the encoder engine 106 can create encrypted representations of images by segmenting each image into multiple slices. A slice is independent of other slices such that the information in a slice is encoded without relying on data from other slices within the same image. A slice includes one or more slice segments, including an independent slice segment, if any, and one or more dependent slices that are dependent on preceding slice segments.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the encoder engine 106 can segment each image into subimages, slices, and tiles, as described in the VVC standard. Figure 1b is a diagram from the VVC standard illustrating an example of a sliced ​​and tiled image 121. As shown, the image 121 is segmented into one or more tile rows and one or more tile columns. A tile can be defined as a sequence of CTUs covering a rectangular region of the image. In some cases, the CTUs within a tile are scanned in raster order within that tile. A slice can include an integer number of full tiles or an integer number of consecutive full CTU rows within an image tile. For example, each vertical slice boundary can also be a vertical tile boundary. As noted below, each CTU can include a number of coding tree blocks (CTBs). A subimage can include one or more slices that collectively cover a rectangular region of the image. For example, each subimage border can also be a tile border, and each subimage vertical border can also be a tile vertical border.<h2 style=";text-align:left;direction:ltr">In some cases, all CTUs in a subimage belong to the same tile.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some video standards, segments are decomposed into CTBs for luma and chroma samples. A CTB for luma samples and one or more CTBs for chroma samples, along with the structure of the samples, is referred to as a coding tree unit (CTU). As described in this document, video data can be organized into CTBs for different color components. ALF filtering for different color components can be applied to the CTBs for each color component. A CTU can also be referred to as a "tree block" or a "largest coding unit" (LCU). The CTU is the basic processing unit for coding in some standards. A CTU can be decomposed into multiple coding units (CUs) of varying sizes. A CU contains luma and chroma sample arrays, referred to as coding blocks (CBs).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Luma and chroma PBs can be decomposed into prediction blocks (PBs). A PB is a block of luma or chroma component samples that uses the same motion variables for interprediction or intrablock copy prediction (when available or enabled). A luma PB and one or more chroma PBs, along with the associated architecture, form a prediction unit (PU). For interprediction, a set of motion variables (e.g., one or more motion vectors, reference indices, or the like) is referenced in the bitstream of each PU and is used for interprediction between a luma PB and one or more chroma PBs. The motion variables can also be referred to as motion information. A CB can also be decomposed into one or more transformation blocks (TBs). A TB represents a square block of chroma component samples to which a residual transform (e.g., the same 2D transform in some cases) is applied to encode the residual prediction signal. A transformation unit (TU) represents the TBs of luma and chroma samples and the corresponding structural elements. Transcoding is described in more detail below.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The CU size corresponds to the encoding mode size and may be square. For example, the CU size may be 8 x 8 samples, 16 x 16 samples, 32 x 32 samples, 64 x 64 samples, or any other suitable size up to the corresponding CTU size. The phrase "N x N" is used in this document to refer to the pixel dimensions of a video block in terms of vertical and horizontal dimensions (e.g., 8 pixels x 8 pixels). Pixels in a block may be arranged in rows and columns. In some embodiments, blocks may not have the same number of pixels in the horizontal direction as in the vertical direction. Structural data associated with a CU may, for example, describe the segmentation of the CU into one or more CUs. The segmentation modes may vary between whether the CU is in the encoded interprediction mode or the interprediction mode. PUs may be segmented to be non-square. Structural data associated with a CU may also describe, for example, the partitioning of the CU into one or more TUs. TUs can be square or non-square.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to some video coding standards, transformations may be performed using transformation units (TUs). TUs may vary among different CUs. The size of TUs may be determined based on the size of the PUs within a given CU. TUs may be the same size or smaller than the PUs. In some examples, the residual samples corresponding to a CU may be partitioned into smaller units using a quad-tree structure known as a residual quad-tree (RQT). The leaf nodes of the RQT may correspond to TUs. The pixel difference values ​​associated with the TUs may be transformed to produce transformation coefficients. The transformation coefficients may be measured by the encoder engine 106.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After segmenting the video data images into CUs, the encoder engine 106 predicts each PU using a prediction mode. The prediction unit or prediction block is subtracted from the original video data to obtain the residuals (described below). For each CU, the prediction mode within the bitstream can be indicated using structural data. The prediction mode may include both intra-prediction (or intra-image prediction) and inter-prediction (or inter-image prediction). Intra-prediction uses the correlation between spatially adjacent samples within an image. For example, using intra-prediction, each PU is predicted from adjacent image data in the same image using, for example, DC prediction to find the average PU value, planar prediction to fit the planar surface of the PU, directional prediction to extrapolate from adjacent data, or other appropriate types of prediction. Inter-prediction uses the temporal correlation between images to derive a motion-compensated prediction for a block of image samples.<h2 style=";text-align:left;direction:ltr">For example, with interprediction, each PU is predicted using a motion-compensated prediction from image data in one or more reference images (before or after the current image in output order). The decision to encode an image region using interprediction or within an image may be made, for example, at the CU level.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encoder engine 106 and the decoder engine 116 (described in more detail below) may be configured to operate according to a particular video coding standard (e.g., EVC). According to some video coding standards, the video coder (such as the encoder engine 106 and / or the decoder engine 116) segments the image into a set of coding tree units (CTUs) (where a CTB for luma samples and one or more CTBs for chroma samples, together with a sample structure, is referred to as a CTU). The video coder may segment the CTU according to a tree structure, such as a quadrilateral tree (QTBT) or multi-type tree (MTT). The QTBT structure eliminates the notion of multiple segmentation types, such as the separation of CUs, PUs, and TUs for some standards. The QTBT structure includes two levels: the first level segmented according to the quadrilateral tree segmentation, and the second level segmented according to the binary tree segmentation. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of binary trees correspond to coding units (CUs).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the MTT hashing architecture, blocks can be hashed using quad-tree partitioning, binary-tree partitioning, and one or more types of ternary-tree partitioning. A ternary-tree partitioning is a partition in which a block is partitioned into three subblocks. In some examples, a ternary-tree partitioning divides a block into three subblocks without hashing the original block through the core. MTT hash types (such as quad-tree, binary-tree, and ternary-tree) can be symmetric or asymmetric.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, a video encoder may use a single QTBT or MTT structure to represent both the luminance and chromaticity components, while in other examples, a video encoder may use two or more QTBT or MTT structures, such as one QTBT or MTT structure for the luminance component and another QTBT or MTT structure for each of the chromaticity components (or two QTBT and / or MTT structures for related chromaticity components).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The video encoder may be configured to use quad tree hashing for "some criteria," QTBT hashing, MTT hashing, or other hashing structures. For the purposes of clarity, the description in the present document may refer to QTBT hashing. However, it should be understood that the methods of the present invention may also be applied to video encoders configured to use quad tree hashing, or other types of hashing as well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, an image is assigned one or more slice types. Slice types include an internally coded slice (I-slice), an inter-coded P-slice, and an inter-coded B-slice. An I-slice (internally coded frames, independently decoded) is an image slice that is encoded only by internal prediction and is therefore independently decoded because the I-slice requires only the data within the frame to predict any prediction unit or prediction block for the slice. A P-slice (unidirectional predicted frames) is an image slice that can be encoded by both internal prediction and unidirectional prediction. Each prediction unit or prediction block within a P-slice is encoded by either internal prediction or inter-prediction. When inter-prediction is applied, a prediction unit or prediction block is predicted from only one reference image; therefore, reference samples are only from one reference region of a single frame. A B-slice (bidirectional predictive frames) is an image slice that can be encoded by both internal prediction and inter-prediction (e.g., either binary prediction or unidirectional prediction).<h2 style=";text-align:left;direction:ltr">A prediction unit or prediction block for a bidirectional B-slice can be predicted from two reference images, where each image contributes one reference region, and the sample sets from the two reference regions are weighted (e.g., with equal or different weights) to produce the prediction signal for the bidirectional predicted block. As described above, the slices of a single image are encoded independently. In some cases, an image can be encoded as just one slice.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As previously noted, intra-image prediction uses the correlation between spatially adjacent samples within an image. There are several intra-prediction methods (also referred to as "intra-modes"). In some examples, the intra-prediction of a Lumma block includes 35 modes, including a planar mode, a DC mode, and 33 angular modes (e.g., diagonal intra-prediction modes and angular modes adjacent to the diagonal intra-prediction modes). The 35 intra-prediction modes are indexed as shown in Table 1 below. In other examples, more intra-modes may be defined, including prediction angles that may not be actually represented by the 33 angular modes. In other examples, the prediction angles associated with the angular modes may differ from those used in some benchmarks.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Set internal prediction associated name<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Zero INTRA_PLANAR<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 1 INTRA_DC<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 2.. 34 INTRA_ANGULAR2. . INTRA_ANGULAR34<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table 1 - Internal Forecast Mode Specifications and Associated Names<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Inter-image prediction uses the temporal correlation between images to derive a motion-compensated prediction for a block of sample images. Using a translational motion model, the position of a block in a previously decoded image (reference image) is denoted by the motion vector (∆x, ∆y), where ∆x specifies the horizontal and vertical displacements of the reference block relative to the current block position. In some cases, the motion vector (∆x, ∆y) can be at integer sample resolution (also referred to as integer resolution), in which case the motion vector refers to the integer grid (or integer-sampling grid) of the reference frame. In some cases, the motion vector (∆x, ∆y) can be at fractional sample resolution (also referred to as fractional resolution or non-integer resolution) to more accurately capture the motion of the underlying object, without being restricted to the integer grid of the reference frame. The resolution of the motion vectors can be expressed as the level of quantization (quantization transformation) of the motion vectors. For example, the quantization level may be an integer resolution (e.g., 1 pixel) or a fractional resolution (e.g., 1 / 4 pixel, ½ pixel, or some other subpixel value).<h2 style=";text-align:left;direction:ltr">Interpolation is applied to reference images to derive a prediction signal when the corresponding motion vector has a fractional sample resolution. For example, the available samples at integer locations can be filtered (e.g., using one or more interpolation filters) to estimate values ​​at fractional positions. The pre-decoded reference image is referred to as the reference index (refIdx) of a reference image list. The motion vectors and reference indices can be referred to as motion variables. Two types of prediction can be performed between images: unary prediction and binary prediction.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In interprediction using binary prediction, two sets of motion variables (and) are used to generate two motion-compensated predictions (from the same or possibly different reference images). For example, with binary prediction, each prediction block uses two motion-compensated prediction signals, producing B prediction units. The two motion-compensated predictions are combined to produce the final motion-compensated prediction. For example, the two motion-compensated predictions can be combined by averaging. In another example, weighted prediction can be used, in which case different weights can be applied to each motion-compensated prediction. The reference images that can be used in binary prediction are stored in two separate lists, referred to as list 0 and list 1. The motion variables can be derived in the encoder using a motion estimation operation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> With interprediction using unitary prediction, a single set of motion variables ( ) is used to generate a motion compensation prediction from a reference image. For example, with unitary prediction, each prediction block uses at most one compensation prediction signal, generating P prediction units.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A PU may include data (e.g., motion variables or other appropriate data) related to the prediction process. For example, when a PU is encoded using interprediction, the PU may include data describing the PU's internal prediction mode. As another example, when a PU is encoded using interprediction, the PU may include data that specifies the motion vector for the PU. The data that specifies the motion vector for the PU may describe, for example, a horizontal component of the motion vector (∆x), a vertical component of the motion vector (∆y), the resolution of the motion vector (e.g., integer resolution, quarter-pixel resolution, or eighth-pixel resolution), a reference image to which the motion vector points, a reference index, a list of reference images (e.g., list 0, list 1, or list C) for the motion vector, or any combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After making a prediction using interprediction and / or interprediction, the encoder 104 may perform transformation and quantization. For example, after prediction, the encoder engine 106 may calculate the residual values ​​corresponding to the PU. The residual values ​​may include pixel difference values ​​between the current block of pixels being encoded (PU) and the prediction block used to predict the current block (e.g., a predicted version of the current block). For example, after generating the prediction block (e.g., using interprediction or interprediction), the encoder engine 106 may generate a residual block by subtracting the prediction block produced by the prediction unit from the current block. The residual block includes a set of pixel difference values ​​that quantify the differences between the pixel values ​​of the current block and the pixel values ​​of the prediction block. In some examples, the residual block may be represented in the form of a two-dimensional block (e.g., a two-dimensional array or an array of pixel values). In those examples, the residual block is a two-dimensional representation of the pixel values.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Any residual data that may remain after the prediction is made is transformed using a block transform, which can be based on the discrete cosine transform (DCT), the discrete sine transform (DST), the integer transform, the wavelet transform, another suitable transform function, or any combination thereof. In some cases, one or more block transforms (e.g., a kernel of size 32 × 32, 16 × 16, 8 × 8, 4 × 4, or another suitable size) may be applied to the residual data in each CU. In some examples, the TU may be used for the transformation and quantization operations performed by the encoder engine 106. A CU containing one or more TUs may also include TUs. As described in more detail below, the residual values ​​may be converted to transformation coefficients using block transforms and may be scaled and scanned with TUs to produce concatenated transformation coefficients for the inversion coding.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some of the following embodiments of intra-predictive or inter-predictive coding using PUs of a CU, the encoder engine 106 may compute the residual data of the CU's TUs. The PUs may comprise pixel data in the spatial domain (or pixel range). As previously noted, the residual data may correspond to pixel difference values ​​between the pixels of the unencoded image and the corresponding prediction values ​​of the PUs. The encoder engine 106 may form one or more TUs including the residual data of a CU (which includes CPUs), and may transform the TUs to produce transformation coefficients for the CU. The TUs may comprise coefficients in the transformation domain after the block transformation has been applied.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The encoder engine 106 may perform quantization of the transformation coefficients. Quantization provides further compression by quantitatively transforming the transformation coefficients to reduce the amount of data used to represent the coefficients. For example, quantization may reduce the bit depth associated with some or all of the coefficients. In one example, an n-bit coefficient may be approximated to an m-bit value during quantization, where n is greater than m.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Once quantization has been performed, the encoded video bitstream comprises the quantum transformation coefficients, prediction information (e.g., prediction modes, motion vectors, block vectors, or the like), segmentation information, and any other appropriate data, such as other structure data. The various elements of the encoded video bitstream may be a vector encoded by the encoder engine 106. In some examples, the encoder engine 106 may use a predetermined scanning order to scan the quantum transformation coefficients to produce a sequence vector whose vector can be encoded. In some examples, the encoder engine 106 may perform an adaptive scan. After scanning the quantum transformation coefficients to form a vector (e.g., a one-dimensional vector), the encoder engine 106 may encode the vector. For example, the encoder engine 106 may use a context-adaptive variable-length encoding, a context-adaptive binary arithmetic encoding, a structure-dependent context-adaptive binary arithmetic encoding, a probability interval segmentation inversion encoding, or another suitable inversion encoding technique.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The output 110 of the encoder 104 may send NALs forming the encrypted video bit stream data over the communications link 120 to the decoder 112 at the receiver. The input 114 of the decoder 112 may receive the NALs. The communications link 120 may include a channel provided by a wireless network, a wired network, or a combination of wired and wireless networks. The wireless network may include any wireless interface or combination of wireless interfaces and may include any suitable wireless network (e.g., the Internet or other wide area network, a packet-based network, WiFiTM, radio frequency (RF), ultra-wideband (UWB), Wi-Fi Direct, cellular, long-range generation (LTE), WiMaxTM, or the like). The wired network may include any wired interface (e.g., fiber, Ethernet, Powerline Ethernet, Ethernet over coaxial cable, digital signal line (DSL), or the like). Wired and / or wireless networks can be implemented using various equipment, such as base stations, routers, access points, bridges, gateways, switches, or the like.<h2 style=";text-align:left;direction:ltr">The encoded video bitstream data can be modified according to a communication standard, such as a wireless protocol, and transmitted to the receiver.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the encoder 104 may store the encoded video bitstream data in the buffer 108. The output 110 may retrieve the encoded video bitstream data from the encoder drive 106 or from the buffer 108. The buffer 108 may include any of several distributed or locally accessible data storage media. For example, the buffer 108 may include a hard drive, a storage disk, flash memory, volatile or non-volatile memory, or any other digital storage media suitable for storing the encoded video data. The buffer 108 may also include a decoded image buffer (DPB) for storing reference images for use in interoperability prediction. In another example, the buffer 108 may correspond to a file server or other intermediate storage device that may store the encoded video generated by the source device. In such cases, the receiving device, including the decoder 112, may access the stored video data from the storage device via streaming or downloading. A file server can be any type of server that is capable of storing encrypted video data and transmitting the encrypted video data to a receiving device.<h2 style=";text-align:left;direction:ltr">Typical file servers include a web server (e.g., for a website), an FTP server, network-attached storage (NAS) devices, or a local drive. The receiver may access the encrypted video data through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of the two suitable for accessing the encrypted video data stored on the file server. Transmission of the encrypted video data from the storage 108 may be a streaming transmission, a download, or a combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The input 114 of the decoder 112 receives the encrypted video bitstream data and may provide the video bitstream data to the decoder engine 116, or to the buffer 118 for subsequent use by the decoder engine 116. For example, the buffer 118 may include a DPB for storing reference images for use in interpretation. The receiver, including the decoder 112, may receive the encrypted video data for decoding via the buffer 108. The encrypted video data may be modified according to a communication standard, such as a wireless communication protocol, and transmitted to the receiver. The communication medium for transmitting the encrypted video data may include any wireless or wired communication medium, such as radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other device that may be useful for facilitating communication from the source device to the receiver.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The decoder engine 116 may decode the encrypted video bitstream data by interpolation decoding (e.g., using an interpolation decoder) and extract the elements of one or more encrypted video sequences that comprise the encrypted video data. The decoder engine 116 may rescale and perform an inverse transform on the encrypted video bitstream data. The remaining data is passed to the prediction stage of the decoder engine 116. The decoder engine 116 predicts a set of pixels (e.g., a PU). In some examples, the prediction is added to the output of the inverse transform (the remaining data).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The video decoder 112 may output the decoded video to a video destination device 119, which may include a display or other output device for displaying the decoded video data to a content consumer. In some aspects, the video destination device 119 may be part of a receiving device that includes the decoder 112. In some aspects, the video destination device 119 may be part of a separate device other than the receiving device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the video encoder 104 and / or the video decoder 112 may be combined with the audio encoder and the audio decoder, respectively. The video encoder 104 and / or the video decoder 112 may also include other hardware or software necessary to implement the encoding methods described above, such as one or more processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combinations thereof. The video encoder 104 and the video decoder 112 may be combined as part of a combined encoder / decoder (encoder / decoder) in a corresponding device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The example system shown in Figure 1A is one illustrative example that may be used in the present document. Methods for processing video data using the methods in the present document may be implemented by any digital video encoder and / or decoder. Although the methods of the present invention are generally implemented by a video encoder or decoder, the methods may also be implemented by an integrated video decoder, commonly referred to as a "CODEC." Furthermore, the methods of the present invention may also be implemented by a video preprocessor. A source device and a receiver are examples of such encoders, where the source device generates encoded video data for transmission to the receiver. In some examples, the source and receiver devices may operate in a substantially symmetric manner, with each device comprising video encoding and decoding components. Typical systems may therefore support one-way or two-way video transmission between video devices, e.g., for video streaming, video playback, video broadcasting, or video telephony.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As described previously, some video coding standards define bitstreams that include a set of NALs, including VCL NALs and non-VCL NALs. VCL NALs contain encoded image data that constitutes an encoded video bitstream. For example, the sequence of bits that constitute an encoded video bitstream is contained in VCL NALs. Non-VCL NALs may contain variable sets with high-level information related to the encoded video bitstream, as well as other information. For example, a variable set may include a video variable set (VPS), a sequence variable set (SPS), and a picture variable set (PPS). Examples of variable set objectives include bit rate efficiency, error resiliency, and the provision of systems layer interfaces. Each chip references a single effective PPS, SPS, and VPS to access information that the decoder 112 may use to decode the chip. An identifier (ID) may be encoded for each variable set, including a VPS ID, an SPS ID, and a PPS ID. An SPS includes both an SPS ID and a VPS ID. The PPS includes a PPS ID and an SPS ID. Each segment address includes a PPS ID.<h2 style=";text-align:left;direction:ltr">Using identifiers, groups of active variables can be identified for a particular segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The PPS contains information applicable to all slices in a given image. For this reason, all slices in an image refer to the same PPS. Slices in different images may also refer to the same PPS. The SPS contains information applicable to all pictures in the same coded video sequence (CVS) or bitstream. As previously mentioned, a coded video sequence is a series of access units (AUs) that begin with a random access point image (e.g., an IDR, BLA, or other suitable image with a random access point) in the base layer with certain characteristics (described above) and reach the next AU containing a random access point image in the base layer with certain characteristics (or the end of the bitstream). The information in the SPS may not change from picture to picture within an coded video sequence. Pictures in an coded video sequence may use the same SPS. The VPS contains information applicable to all layers within the coded video sequence or bitstream. The VPS provides a structure with structural elements applicable to the entire coded video sequence.<h2 style=";text-align:left;direction:ltr">In some embodiments, the VPS, SPS, or PPS may be transmitted in-band with the encrypted bitstream. In some embodiments, the VPS, SPS, or PPS may be transmitted out-of-band in a separate transmission from the NAL modules containing the encrypted video data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Different chroma formats can be used for video. A chroma format structural element can be used to specify chroma sampling. For example, the chroma_format_idc structural element specifies chroma sampling relative to luma sampling, for example in the VVC and / or EVC standard. In some cases, the chroma_format_idc value must be from zero to 2, inclusive.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Depending on the value of chroma_format_idc, the values ​​of the variables SubWidthC and SubHeightC are set as specified in section 6.2 of the VVC, and the ChromaArrayType variable is set. For example, the values ​​of the variables SubWidthC and SubHeightC can be set as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> chroma_format_idc separate_colour_plane_flag Chroma Format SubWidthC SubHeightC<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 0 0 Monochrome 1 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 1 0 4: 02: 00 2 2<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 2 0 4: 02: 02 2 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 3 0 4: 04: 04 1 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 3 1 4: 04: 04 1 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table 2 - SubWidthC and SubHeightC values ​​derived from chroma_format_idc and separate_colour_plane_flag<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, the ChromaArrayType variable is set as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> - If chroma_format_idc is zero, then ChromaArrayType is zero.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Otherwise, ChromaArrayType is set equal to chroma_format_idc.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The variables SubWidthC and SubHeightC are defined in Table 1 below, based on the chroma format sampling structure, which is specified by chroma_format_idc. Other values ​​for chroma_format_idc, SubWidthC, and SubHeightC may be defined in the future by ISO / IEC.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> chroma_format_idc SubWidthC SubHeightC<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 0 Monochrome 1 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 1 4: 02: 00 2 2<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 2 4: 02: 02 2 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 3 4: 04: 04 1 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table 1 - SubWidthC and SubHeightC values ​​derived from chroma_format_idc<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In monochromatic sampling, there is only one sample matrix, which is nominally the luma matrix. In 4:2:0 sampling, each of the two chroma matrices (for example, for Cb and Cr) has half the height and half the width of the luma matrix. In 4:2:2 sampling, both chroma matrices have the same height and half the width of the luma matrix. In 4:4:4 sampling, both chroma matrices have the same height and width of the luma matrix.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In video coding, filtering can be applied to improve the quality of the decoded or reconstructed video signal. In some cases, the filter can be applied as a post-filter, where the filtered frame is not used to predict future frames. In some cases, the filter can be applied as an in-loop filter, where the filtered frame is used to predict one or more future frames. For example, an in-loop filter can filter an image after reconstruction (e.g., after adding the residual to the prediction) is performed for the image and before the image is output and / or before it is stored in an image buffer (e.g., a buffer for the decoded image). A filter can be designed, for example, to minimize the error between the original signal and the decoded filtered signal. Examples of filters include deblock filters, adaptive aloop filters (ALFs), and sample-adaptive offset filters (SAOs).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1C illustrates an example of using the filter module 122 to process video images or blocks using ALF filtering for the examples in this document. In some instances, the filter module 122 may be used as the filter module 63 of Figure 7 and / or the filter module 91 of Figure 8. For example, the filter modules 63 and 91 may perform the methods of the present invention, in some instances in conjunction with other components of the video encoder 104 or the video decoder 112. In some instances, the filter modules 63 and 91 may be a post-processing module that can perform the methods of the present invention outside of, for example, the video encoder 104 and the video decoder 112 (e.g., after the decoded video has been output from the video decoder 112).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the example of Figure 1h, the filter unit 122 includes a block removal filter 124, an adaptive offset filter (SAO) 126, and an adaptive loop filter (ALF) / geometric transform-based adaptive loop filter (GALF) 128. The SAO filter 126 may be configured, for example, to determine offset values ​​for block samples. The block removal filter 124 may be used to compensate for the use of block building blocks in the encoding process. The ALF filter 128 may be used to reduce the error (e.g., mean square error) between the original samples and the decoded samples using an adaptive filter, which may be a Wiener-based adaptive filter or other suitable filter. The ALF filter 128 may be configured, for example, to determine current block filter variables based on variables indicated for filtering the color components of the current block. As described in more detail in the current document, the variants referred to can depend on the sampling format, which can improve device performance by providing ALF filtering for multiple color components in some video signals (e.g., RGB or 4:4:4 format, luma-chroma-chroma format video data).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, after the block removal filter 124, ALF 128 may be applied (e.g., with block-dependent filter adaptation). In some cases, for the LOMMA component of the block, a filter may be selected from among 25 filters through a per-block classification process (e.g., for each 4×4 block or other block size) based on estimates of local statistics, such as gradient and directionality. To take advantage of the symmetric properties of the filters, the ALF filter used may employ a filter coefficient transformation process. Further details on ALF design are provided below. Ring filters are generally described below in relation to Figure 7 and Figure 8.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The filtering unit 122 may include fewer filters and / or additional filters and / or components other than those shown in Figure 1c. In addition, the specific filters shown in Figure 1c may be implemented in a different order. Other loop filters may also be used (either in the encoder loop or after the encoder loop) to smooth pixel transitions or improve video quality. When in the encoder loop, the video blocks encoded in a particular frame or image may be stored in a decoder image buffer (DPB). The DPB stores reference images used for subsequent motion compensation (e.g., for inter-prediction). The DPB may be part of or separate from the additional memory that stores the decoded video for later display on a display device, such as the video destination display device 119 in Figure 1a.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As noted above, different sampling formats for color components can lead to different performance results when filtering is applied. Some video coding standards emphasize ALF filtering for luma components (in which case, ALF filtering is not applied to non-luma components, such as chroma components), for example, due to the prevalence of 4:2:0 video data. However, other formats, such as 4:4:4 RGB data, can benefit from improved image quality when ALF filtering is applied to more than one color component (for example, two or three color components in RGB formats or luma-chroma formats such as YUV and YCbCr).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Various filter shapes can be used. Two diamond filter shapes (as shown in Figure 2a and Figure 2b) are used in some applications. In some examples, the 5 × 5 diamond in Figure 2a and the 7 × 7 diamond in Figure 2b can be used to filter luma samples, and the 5 × 5 diamond in Figure 2a can be used for chroma samples.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some cases, block classification can be performed. For example, for a pixel's Luma component (Lumma sample), each 4 × 4 block can be classified into one of 25 classes. The classification index C is derived based on its direction D and the quantitative value of activity, as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, to calculate D and A, the horizontal and vertical gradients and diagonal directions are first calculated using the 1-D Laplacian:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where indices i and j denote the coordinates of the upper left sample within the 4×4 block and R(i,j) denotes a reconstructed sample at coordinates (i,j).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> To reduce the complexity of cluster classification, a 1-D segmented Laplacian is applied. As shown in Figure 3a, Figure 3b, Figure 3c, and Figure 3d, which illustrate the segmented Laplacian, the same subsampled positions are used to compute the gradient for all directions, including the vertical gradient (in Figure 3a), the horizontal gradient (in Figure 3b), and the oblique gradients (in Figure 3c and Figure 3d).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The maximum and minimum D values ​​for the horizontal and vertical gradients are set as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The maximum and minimum values ​​of the gradient in two diagonal directions are set as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> To derive the value of directionality D, these values ​​are compared with each other and with two limit values ​​t_1 and t_2:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Step 1. If both and are true, D is set to zero.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Step 2. If yes, continue from step 3; move to step 4.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Step 3. If yes, D is set to 2; otherwise, D is set to 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Step 4. If yes, set D to 4; otherwise set D to 3.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The value of activity A is calculated as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where the value A is further quantified to the range from 0 to 4, inclusive, and the quantized value is denoted as .<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For the chroma components of the image, no classification method is used (for example, one set of ALF coefficients is applied to each color component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some cases, geometric transformations can be applied to filter coefficients. For example, in some examples, before filtering each 4 × 4 Lumma block, geometric transformations such as rotation or tilt and flip are applied to the filter coefficients f(k, l) according to the gradient values ​​calculated for that block. In some cases, this is equivalent to applying these transformations to samples in the filter support region. Transformations can make different blocks to which ALF is applied more similar by aligning their orientation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Three geometric transformations can be entered, including diagonal flip, vertical flip, and rotation:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Qatari: ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Vertical flip:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Rotation:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where K is the filter size and zero ≤k, 1 ≤K-1 are the coordinates of the coefficients, with location (0,0) in the upper left corner and location (K-1, K-1) in the lower right corner. Transformations are applied to the filter coefficients f(k,l) according to the gradient values ​​calculated for that block. The relationship between the transformation and the four gradients for the four directions is summarized in the following table.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Transform gradient values<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">gd2 < gd1 and gh < gv No conversion<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> gd2 < gd1 and gv < gh Qatari<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> gd1 < gd2 and gh < gv vertical click<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> gd1 < gd2 and gv < gh rotation<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table 4. Gradient plots calculated for a single block and transitions<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some aspects, adaptive variable sets (APSs) can be used to reference filter variables or filter data (e.g., filter coefficients and / or other variables) in the bitstream, as in the APS NAL module. An APS can have an associated type, such as an ALF type or a Luma Mapping with a Chroma Gradient Type (LMCS) (e.g., as defined in the VVC standard or another video coding standard). An APS can include a set of Luma filter variables, one or more sets of Chroma filter variables, or a combination thereof. APSs can be used in many video coding standards, such as VVC, EVC, etc. In some cases, APS references may be limited. For example, a tile set (e.g., a group of one or more tiles, such as that shown in Figure 1b) may refer only to the APS pointers (e.g., in the tile set address) used for the tile set.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, each APS can be identified by a unique identifier (e.g., adapt_parameter_set_id) that is used to reference current APS information from other structural elements. APSs can be shared across images and can be different for different parts of the image (e.g., for different tile groups within the image). When tiles_group_alf_enabled_flag is set to 1, the APS is referenced by the address of a tile group, and ALF variables contained within the APS can be executed out of range (e.g., provided by means external to the video encoder), which is useful in some cases.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As described in the current document, aspects of APS that can be used to indicate (e.g., using one or more tags or other constructs) whether ALF filtering is available for particular color components (e.g., chroma components) are described in addition to existing signals (e.g., tags) that indicate ALF filtering for other color components (e.g., luma components). Additional signals can be implemented using chip labels to increase the flexibility and available output quality associated with ALF filtering for additional color components (e.g., ALF filtering for chroma in addition to luma components).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For example, examples are described in the current document where filter applicability can be controlled at the block level (e.g., the CTB level). In some examples, a first flag is used to indicate whether ALF is applied to the block's luma components (e.g., luma CTB), and a second flag is used to indicate whether ALF is available for the block's chroma components (e.g., one or more CTBs, such as Cb CTB and / or Cr CTB). These flags may, for example, be indicated in the ALF data (e.g., the alf_data struct, as described below). In some aspects, for chroma CTB flags, a flag may be sent to indicate whether ALF is available to be applied using the alf_chroma_ctb_present_flag struct, as described below.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">On the decoder side, when ALF is enabled for a block (e.g., CTB), each sample R(i,j) within the block is filtered (e.g., with CTB or within a CTB cipher block, such as CU), resulting in a sample value as shown below, where L denotes the filter length, θ represents the filter coefficient, and θ denotes the decoded filter coefficients.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Fixed filters can be used in some cases. For example, some ALF designs are initialized with a set of fixed filters provided to the decoder as side information. In some cases, there are a total of 64 7 × 7 filters (e.g., each filter has 13 coefficients). For each classification class, a mapping is applied to determine which of the 64 fixed filters can be used for the current class. The selection index (0-15) for each class is referred to as the fixed filter index. When an adaptively derived filter is used, the difference between the fixed filter coefficients and the adaptive filter coefficients is referred to.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some cases, temporal filters can be used. For example, to further leverage the temporal correlation of video data, an ALF design can reuse ALF parameters previously referenced in APS NAL modules. Each APS is identified by a unique adapt_parameter_set_id, which is used to reference current APS information from other structural elements (e.g., from the tile set address). In some cases, all referenced APSs with unique set ID values ​​are stored in an APS buffer (e.g., up to 32 entries in size). To enable random access (RA) encryption, the encoder's choice of APS_parameter_set_id is restricted. For example, to maintain temporal extensibility, only temporal filters from the same or lower temporal layers can be used.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An example of an adaptive loop filter data structure is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> alf_data( ) { descriptor<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> alf_luma_filter_signal_flag u(1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> alf_chroma_idc tu(v)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> if( alf_luma_filter_signal_flag ) {<h2 style=";text-align:left;direction:ltr"> alf_luma_num_filters_signalled_minus1 tb(v) alf_luma_type_flag u(1) if( alf_luma_num_filters_signalled_minus1 > 0 ) { for( i = 0; i < NumAlfFilters; i+ + ) alf_luma_coeff_delta_idx[ i ] tb(v) } alf_luma_fixed_filter_usage_pattern uek(v) if( alf_luma_fixed_filter_usage_pattern = = 2 ) { for( i = 0; i < NumAlfFilters; i+ + ) alf_luma_fixed_filter_usage_flag[ i ] u(1) } if( alf_luma_fixed_filter_usage_pattern > 0 ) { for( i = 0; i < NumAlfFilters; i+ + ) { if( alf_luma_fixed_filter_usage_flag[ i ] ) alf_luma_fixed_filter_set_idx[ i ] tb(v) } } alf_luma_coeff_delta_flag u(1) if( !alf_luma_coeff_delta_flag && alf_luma_num_filters_signalled_minus1 > 0 ) alf_luma_coeff_delta_prediction_flag u(1) alf_luma_min_eg_order_minus1 ue(v) for( i = 0; i < max_golomb_idx; i+ + ) alf_luma_eg_order_increase_flag[ i ] u(1) if( alf_luma_coeff_delta_flag ) { for( i = 0; i < NumAlfFilters; i+ + ) alf_luma_coeff_flag[ i ] u(1) } for( i = 0; i < NumAlfFilters; i+ + ) { if( alf_luma_coeff_flag[ i ] ) { for( j = 0; j < NumAlfCoefs − 1; j+ + ) { alf_luma_coeff_delta_abs[ i ][ j ] uek(v) if( alf_luma_coeff_delta_abs[ i ][ j ] ) alf_luma_coeff_delta_sign_flag[ i ][ j ] u(1)}}}} if( alf_chroma_idc > 0 ) { alf_chroma_min_eg_order_minus1 ue(v) for( i = 0; i < max_golomb_idx; i+ + ) alf_chroma_eg_order_increase_flag[ i ] u(1) for( j = 0; j < 6; j+ + ) { alf_chroma_coeff_abs[ j ] uek(v) if( alf_chroma_coeff_abs[ j ] > 0 ) alf_chroma_coeff_sign_flag[ j ] u(1) } } } <h2 style=";text-align:left;direction:ltr">As described above, ALF filtering in some video coding standards (e.g., MPEG5 EVC) involves filtering the chroma components with an APS filter set and classifier. The adaptive filter set and classifier can refer to filtering selected from pre-stored filters or filters referenced in the APS filter set. In some of these examples, the chroma component can be filtered with a single 5x5 filter with a parameter(s) referenced once per APS.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As described above, these encoding processes may become ineffective for encoding RGB video, 4:4:4 chroma video, or video in other formats where the color components (e.g., the luma and chroma components) have similar properties. For example, in the 4:4:4 chroma format, all three color components are present at full resolution. With this full resolution shared by all three color components, the two non-luma components (e.g., the chroma components) may benefit from more advanced filtering (e.g., with the luma type ALF applied to all three components). As described in the current document, luma type ALF filtering can refer to ALF filtering for higher resolution or more complex data (e.g., when compared to the smaller filter described above with parameters referenced once per APS). The examples described in this document can refer to ALF filter data at the chip address level when ALF chroma tags are set to allow luma-type ALF filtering of chroma components, which can enable more flexible ALF filtering of chroma data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Another problem with ALF filtering designs is that some video coding standards use the alf_chroma_idc struct element, which is referenced in APS. The alf_chroma_idc struct element is used to control filtering (whether filtering is turned on or off for a given video data) on specific chroma components. In some of these standards, an alf_chroma_idc of 0 indicates that the adaptive chroma ring filter set is not referenced and is not applied to the Cb and Cr chroma components. An alf_chroma_idc greater than 0 indicates that the ALF chroma set is referenced. An alf_chroma_idc of 1 indicates that the ALF chroma set is applied to the Cb chroma component. An alf_chroma_idc of 2 indicates that the ALF chroma set is applied to the Cr chroma component. An alf_chroma_idc of 3 indicates that the ALF chroma set is applied to the Cb and Cr chroma components. When that signal is referenced in an APS without the option to change the setting for subsequent chips subject to the shared APS signal, there is no option to adjust ALF filtering when needed to target changes that occur at the chip level.<h2 style=";text-align:left;direction:ltr">Therefore, these APS signals reduce performance by preventing the use of proper ALF chroma filtering.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Systems, methods, and computer-readable media are described for improving filtering (e.g., adaptive loop filter (ALF), block removal, and / or other filtering) and enabling the encoding of video data in different color formats (e.g., 4:4:4 color, 4:2:0 color, and / or other color formats). The examples given in this document improve existing methods (e.g., standards-based video coding methods) by enabling additional flexibility in ALF filtering for additional color components (e.g., color components) to improve coding efficiency and / or output performance for certain video coding devices and networks. These improvements can be applied to any video coding standard, such as those that emphasize ALF Luma filtering as described above. As one possible implementation, the following changes to MPEG5 EVC are proposed, and the examples below are described in the context of the EVC standard. It will be clear that similar implementations could be used with other standards that have the properties described above.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As part of the enhanced flexibility described above, in some aspects, chroma filter signals are controlled by a separate flag referenced in the APS. As described below, the ALF slice identifier (e.g., a structure element slice_alf_chroma_idc) is moved from the ALF data (e.g., a structure structure alf_data) to a slice header (e.g., slice_header() structure) to allow for more flexible signaling and frequently changing settings of the ALF slice chroma ID described below to match the ALF chroma filter available for the video data format (e.g., 4:4:4 format, etc.). Example language is described below, with modified portions to reference aspects as described here. Changes related to the EVC standard according to some aspects of the current document are shown in underlined text to indicate new language and in strikethrough to indicate deleted legacy language between the "< highlight >" and "< highlightend >" symbols (e.g., "<h2 style=";text-align:left;direction:ltr"> <highlight>highlighted text <highlightend><h2 style=";text-align:left;direction:ltr">"and"<h2 style=";text-align:left;direction:ltr"> <highlight>removedhighlightedtext <highlightend>). alf_data( ) { الواصف alf_luma_filter_signal_flag u(1) <highlight>slice_alf_chroma_idc tb(2) alf_chroma_filter_signal_flag u(1) <highlightend><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> if( alf_luma_filter_signal_flag ) {<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> He specifies<h2 style=";text-align:left;direction:ltr"> <highlight><h2 style=";text-align:left;direction:ltr">alf_chroma_filter_signal_flag equals 1, indicating that the chroma filter data is signaled. An alf_chroma_filter_signal_flag value of 0 indicates that the chroma filter is not signaled. When alf_chroma_filter_signal_flag is not present, it is inferred to be 0.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> slice_header( ) { descriptor<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> slice_pic_parameter_set_id ue(v)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> …<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> if( sps_alf_flag ) {<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> slice_alf_enabled_flag u(1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <highlight>slice_alf_chroma_idc u(2) <highlightend>if( slice_alf_enabled_flag ) { slice_alf_luma_aps_id u(5) slice_alf_chroma_aps_id u(5) slice_alf_map_signalled u(1) } } يحدد <highlight><h2 style=";text-align:left;direction:ltr">slice_alf_chroma_idc equals 0, indicating that ALF is not applied to the Cb and Cr chroma components in a slice. A slice_alf_chroma_idc greater than 0 indicates that ALF can be applied to filter the Cb or Cr chroma components in the current slice. When ChromaArrayType is in the range 1 to 2, inclusive, a slice_alf_chroma_idc of 1 indicates that an adaptive toroidal filter can be applied to the Cb chroma component, a slice_alf_chroma_idc of 2 indicates that an adaptive toroidal filter can be applied to the Cr chroma component, and a slice_alf_chroma_idc of 3 indicates that an adaptive toroidal filter is applied to the Cb and Cr chroma components. When alf_chroma_idc is not present, it is inferred to be 0.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As described above for ALF data (the alf_data structure) and slice_header structure, the aspects described in this document can use ALF data to reference both the ALF luma flag and the ALF chroma flag. As shown in the structure above, the alf_chroma_filter_signal_flag structure element specifies whether the chroma filter data is referenced in the bitstream (e.g., in an APS). Filter data can include filter coefficients in some cases. The slice_alf_chroma_idc structure element in the slice address data (e.g., the slice_header() structure element) of the bitstream specifies whether ALF is applied to one or more of the chroma components (e.g., Cb and / or Cr) in a slice. In some examples, if the ALF chroma filter signal flag value (for example, the value of an alf_chroma_filter_signal_flag structure element) does not include an explicit value in the bitstream, the value can be inferred as zero.<h2 style=";text-align:left;direction:ltr">In those examples, the decoder can set the ALF chroma filter signal flag value to zero from the ALF data even when the flag value is not explicitly referenced in the bitstream. The associated ALF slice chroma identifier (e.g., the slice_alf_chroma_idc structural element) can indicate when ALF is applied to the chroma data, such as after the ALF chroma filter signal flag value (e.g., the alf_chroma_filter_signal_flag structural element) to specify that the ALF chroma is referenced in the bitstream. In the described implementation, a non-zero slice_alf_chroma_idc value (e.g., the ALF chroma index from the slice address) indicates that ALF can be applied to the chroma component of the video data. A specific non-zero value (e.g., 1, 2, 3, etc.) can be used to specify the specific color components to which ALF can be applied.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For example, the ChromaArrayType variable describes the format of the video signal (i.e., whether the signal contains chroma at all, such as a monochrome format or one containing one or more chroma components). A slice_alf_chroma_idc structure element specifies that ALF is applied to chroma components. A slice_alf_chroma_idc = 0 specifies that ALF is not applied to the chroma component. A slice_alf_chroma_idc = 0 can be referenced even from a ChromaArrayType = 2 (indicating that chroma components are present in the video signal). However, if chromaArrayType == 0 (indicating that the video signal is chroma-only), a slice_alf_chroma_idc value greater than zero cannot be referenced, which would indicate that chroma filtering will be performed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 4 illustrates aspects of process 400 that provide ALF support for various color formats to a decoder (e.g., decoder 112), according to some examples. As shown in Figure 4, process 402 of process 400 includes the decoder receiving an encoded bitstream (also referred to as a bitstream or video bitstream). The encoded bitstream can include both ALF data (e.g., the alf_data() structure above) and slice header data (e.g., the slice_header() structure above) for the encoded video data of the encoded bitstream. As part of processing the encoded video data, process 404 determines whether ALF is enabled for the encoded bitstream. If ALF is not enabled (e.g., unavailable for processing luma or chroma color components), decoding proceeds without ALF filtering in process 405 until the settings are changed to enable ALF for a portion of the encoded video data (e.g., for one or more segments of video data).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">If ALF is available, the ALF Luma Filter Signal Flag (e.g., the alf_luma_filter_signal_flag structure element from the alf_data() structure above) and the ALF Chroma Filter Signal Flag (e.g., the alf_chroma_filter_signal_flag structure element from the alf(alf) structure above) (e.g., added by the encoder 104) are in the ALF data as part of the encoded bitstream. As noted in the current document, the values ​​of those flags can be inferred in some cases. For example, in one implementation, values ​​of 1 for the ALF Luma Filter Signal Flag and / or the ALF Chroma Filter Signal Flag can be explicitly indicated, and values ​​of 0 can be inferred if there is no value in the bitstream. In operation 406, the decoder may process the ALF data to determine whether the ALF chroma filter signal flag has a value of 0. If the ALF chroma filter signal flag value is not 0 (e.g., the flag value is 1 or some other value not equal to 1), the decoder may determine, at operation 407, that the chroma filter data is referenced in the APS (e.g., rather than being referenced in the chip header data).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the implementation illustrated in Figure 4, if the ALF chroma filter flag is set to zero, the decoder may determine in operation 408 whether ALF is available to be applied to any chroma components by determining whether the slice's ALF chroma index value (e.g., slice_alf_chroma_idc or ChromaArrayType) is a non-zero value (e.g., a value of 1 or another value not equal to 1). If the slice's ALF chroma index value (e.g., slice_alf_chroma_idc or ChromaArrayType) is not a non-zero value (e.g., a value of 0), the decoder may determine in operation 409 that ALF is not being applied to the chroma components of a current slice of video data (e.g., associated with the slice data including the slice's ALF chroma identifier). Depending on the selection, the decoder cannot apply ALF to the chroma key components of the current chip.<h2 style=";text-align:left;direction:ltr">If the ALF chip ID is determined by the decoder to be a non-zero value (e.g., 1 or some other value), the decoder may determine at operation 410 that the ALF is available for application (or can be applied) to one or more chroma key components (e.g., the Cb component and / or the Cr component) of a video data chip or portion thereof (e.g., a block of a chip, such as CTU, CU, CTB, CB, etc.). The decoder may then proceed to apply the ALF to one or more chroma key components based on a particular value of the ALF chip chroma key, as described below.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the ALF parameter flags and their applicability depend on the chroma identifier (id) that indicates the chroma format of the video data, such as 4:2:0, 4:2:2, 4:4:4, or another chroma format. In some cases, an array variable of chroma type (for example, ChromaArrayType) may be used as the chroma identifier to indicate the chroma format of the video data. In some examples, ALF filtering of two non-chroma components (for example, Cb and Cr components) of the encoded video data is enabled if the video was encoded with a ChromaArrayType of 3 (corresponding to 4:4:4) or not equal to 4:2:0. In some examples, each chroma component may reference a separate APS to arrive at an optimal filter set if the video data is encoded using a chroma format other than 4:2:0 (for example, using 4:4:4 or 4:2:2). In some examples, an ALF classifier is performed on the non-chroma components to produce an index for a particular filter if the video data is encoded using a format other than 4:2:0.<h2 style=";text-align:left;direction:ltr">In some examples, for each chroma key component, a separate block-based application scheme is encoded (e.g., when referring to a block-level tag) for video data that is not 4:2:0. In some examples, for video data that is 4:2:0 and / or 4:2:2, chroma key filtering can be performed using a single filter without a classifier and no scheme is indicated, since each block can be filtered conditionally.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An example of the syntactic and semantic structures that can be used as part of the 410 process to determine how to apply the available ALF chroma is as follows (where changes related to the EVC standard are highlighted in underlined text to indicate new language and in strikethrough to indicate deleted old language between the symbols<h2 style=";text-align:left;direction:ltr"> <highlight><h2 style=";text-align:left;direction:ltr">" and "<h2 style=";text-align:left;direction:ltr"> <highlightend>”): if( sps_alf_flag ) { slice_alf_enabled_flag u(1) slice_alf_chroma_idc u(2) if( slice_alf_enabled_flag ) { slice_alf_luma_aps_id u(5) <highlight>if( ( ChromaArrayType = = 1 | | ChromaArrayType = = 2 ) && slice_alf_chroma_idc > 0 ) <highlightend> slice_alf_chroma_aps_id u(5) slice_alf_map_signalled u(1) } <highlight>if( ChromaArrayType = = 3 && sliceChromaAlfEnabledFlag ) { slice_alf_chroma_aps_id u(5) slice_alf_chroma_map_signalled u(1) } if( ChromaArrayType = = 3 && sliceChroma2AlfEnabledFlag ) { slice_alf_chroma2_aps_id u(5) slice_alf_chroma2_map_signalled u(1) } <highlightend><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">}<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> He specifies<h2 style=";text-align:left;direction:ltr"> <highlight><h2 style=";text-align:left;direction:ltr">slice_alf_chroma_id equal to 0 indicates that ALF is not applied to the Cb and Cr chroma components in a slice. A slice_alf_chroma_idc greater than 0 indicates that ALF can be applied to filter the Cb or Cr chroma components in the current slice. When ChromaArrayType is in the range 1 to 2, inclusive, a slice_alf_chroma_idc of 1 indicates that an adaptive toroidal filter can be applied to the Cb chroma component, a slice_alf_chroma_idc of 2 indicates that an adaptive toroidal filter can be applied to the Cr chroma component, and a slice_alf_chroma_idc of 3 indicates that an adaptive toroidal filter is applied to the Cb and Cr chroma components. When alf_chroma_idc is not present, it is inferred to be zero.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When slice_alf_chroma_idc is 1 or 3, the sliceChromaAlfEnabledFlag variables are set to 1, otherwise the sliceChromaAlfEnableFlag variables are set to zero.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When slice_alf_chroma_idc is equal to 2 or 3, the sliceChroma2AlfEnabledFlag variables are set to 1, otherwise the sliceChroma2AlfEnableFlag variables are set to zero.<h2 style=";text-align:left;direction:ltr"> coding_tree_unit( ) { الواصف if( slice_alf_enabled_flag && slice_alf_map_signalled ) alf_ctb_flag[ xCtb >> CtbLog2SizeY][ yCtb >> CtbLog2SizeY ] ae(v) <highlight>if( sliceChromaAlfEnabledFlag && slice_alf_chroma_map_signalled ) alf_ctb_chroma_flag[ xCtb >> CtbLog2SizeY][ yCtb >> CtbLog2SizeY ] ae(v) if( sliceChroma2AlfEnabledFlag && slice_alf_chroma2_map_signalled ) alf_ctb_chroma2_flag[ xCtb >> CtbLog2SizeY][ yCtb >> CtbLog2SizeY ] ae(v) <highlightend><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">}<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> alf_ctb_flag[ xCtb >> CtbLog2SizeY ][ yCtb >> CtbLog2SizeY ] equal to 1 specifies that an adaptive loop filter is applied to the codetree block of the luma component of the codetree module at luma location (xCtb, yCtb). alf_ctb_flag[ xCtb >> CtbLog2SizeY ][ yCtb >> CtbLog2SizeY ] equal to 0 specifies that an adaptive loop filter is not applied to the codetree block of the codetree module at luma location (xCtb, yCtb).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When alf_ctb_flag[ xCtb >> CtbLog2SizeY ][ yCtb >> CtbLog2SizeY ] does not exist, it is inferred to be equal to slice_alf_enabled_flag.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> He specifies<h2 style=";text-align:left;direction:ltr"> <highlight><h2 style=";text-align:left;direction:ltr">alf_ctb_chroma_flag [xCtb >> CtbLog2SizeY] [yCtb >> CtbLog2SizeY] equal to 1 specifies that an adaptive loop filter is applied to the code tree block of the luma component of the code tree unit at luma location (xCtb, yCtb). alf_ctb_chroma_flag [xCtb >> CtbLog2SizeY] [yCtb >> CtbLog2SizeY] equal to 0 specifies that an adaptive loop filter is not applied to the code tree block of the code tree unit at luma location (xCtb, yCtb).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When alf_ctb_chroma_flag [xCtb >> CtbLog2SizeY] [yCtb >> CtbLog2SizeY] is not present, it is inferred to be equal to sliceChromaAlfEnabledFlag.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> He specifies<h2 style=";text-align:left;direction:ltr"> <highlight><h2 style=";text-align:left;direction:ltr">alf_ctb_chroma_flag[ xCtb >> CtbLog2SizeY ][ yCtb >> CtbLog2SizeY ] equals 1 that an adaptive loop filter is applied to the code tree block of the luma component of the code tree unit at luma location (xCtb, yCtb). alf_ctb_chroma_flag[ xCtb >> CtbLog2SizeY ][ yCtb >> CtbLog2SizeY ] equals 0 that an adaptive loop filter is not applied to the code tree block of the code tree unit at luma location (xCtb, yCtb).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When alf_ctb_chroma2_flag [xCtb >> CtbLog2SizeY] [yCtb >> CtbLog2SizeY] is not present, it is inferred to be equal to sliceChroma2AlfEnabledFlag. < highlightend ><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For each coding tree unit with a block location of the LUMA coding tree (rx, ry), where rx = 0 PicWidthInCtbsY - 1 and ry = 0. PicHeightInCtbsY - 1, the following applies:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">- When alf_ctb_flag[ rx ][ ry ] is equal to 1, the Luma block filtering operation is called as defined with recPictureL, alfPictureL, the reference to the APS definition slice_alf_luma_aps_id, and the Luma block location (xCtb, yCtb) equal to (rx << CtbLog2SizeY, ry << CtbLog2SizeY) as input, and the output is the modified filtered image alfPictureL.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> - When ChromaArrayType is equal to 3, the filtering operation of the Luma block tree codec is called for the chroma samples of the Cb and Cr chroma components as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> - When alf_ctb_chroma_flag[ rx ][ ry ] is equal to 1, the filter operation of the Luma block coding tree is called as defined with recPictureCb and alfPictureCb and pointed to the APS slice_alf_chroma_aps_id and the chroma block coding tree location equal to (xCtb, yCtb) to (rx << CtbLog2SizeY, ry << CtbLog2SizeY) as input, and the output is the modified filtered image alfPictureCb.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">- When alf_ctb_chroma2_flag[rx][ry] is equal to 1, the Luma codec tree block filter operation is called as specified using recPictureCr, alfPictureCr, a reference to the APS definition slice_alf_chroma2_aps_id, and the chroma codec tree block location equal to (rx << CtbLog2SizeY, ry << CtbLog2SizeY) as inputs, and the output is the modified filtered image alfPictureCr.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> - Otherwise, when ChromaArrayType is in the range 1 to 2, inclusive, and slice_alf_chroma_idc is greater than zero, the following applies:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> - When sliceChromaAlfEnableFlag is equal to 1, the chroma type filtering operation is called for the codec tree type as specified with recPicture set to recPictureCb, alfPicture equal to alfPictureCb, the referenced APS defined by slice_alf_chroma_aps_id, and the chroma tree block location (xCtb) set equal to ((rx << CtbLog2SizeY) / SubWidthC, (ry << CtbLog2SizeY) / SubHeightC) as input, and the output is the modified filtered image alfPictureCb.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">- When sliceChroma2AlfEnableFlag is equal to 1, the chroma type filter operation is called for the codec tree type as defined with set recPicture equal to recPictureCr and alfPicture equal to alfPictureCr and the referenced APS defined slice_alf_chroma_aps_id and the chroma tree block location ctb(xCtbC) set equal to ((rx << CtbLog2SizeY) / SubWidthC, (ry << CtbLog2SizeY) / SubHeightC) as input, and the output is the modified filtered image alfPictureCr.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The above is an example of an aspect implemented as a modification to EVC, but similar modifications can be made to aspects in other video coding standards. The above structure (e.g., if(sps_alf_flag) structure) can be part of a slice header structure (e.g., slice_header() structure) in the EVC-encoded bitstream. Once the decoder determines that ALF is generally available (e.g., for luma and chroma components), and available for chip-level signaling (e.g., instead of APS as described as part of process 407), the syntactic structure can be processed by the decoder to determine which specific chroma components to apply ALF to.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For example, as shown in the example above, in the slice address structure, if slice_alf_enable_flag is true (e.g., a value of 1), the decoder can check the ChromaArrayType variable for a value of 1 or 2 when slice_alf_chroma_idc (e.g., the ALF chroma index of the slice address) is greater than 0. If this statement is true (e.g., ChromaArrayType is 1 or 2), the ALF application set (APS) variable identifier for the first color component (e.g., luma component, red component, green component, blue component, etc.) is applied to the slice data. The slice_alf_map_signalled structure element indicates the ALF filter values ​​to be used in ALF processing of the first color component. A ChromaArrayType of 3 with sliceChromaAlfEnabledFlag provides the ALF APS identifier for the second color component (for example, a first chroma component, such as a Cb or Cr component, a red component, a green component, a blue component, etc.) from a slice of video data. Similarly, a ChromaArrayType of 3 with sliceChroma2AlfEnabledFlag provides the ALF APS identifier for a third color component (for example, a second chroma component, such as a Cb or Cr component).<h2 style=";text-align:left;direction:ltr">An identifier (e.g., slice_alf_chroma_aps_id for the second component or slice_alf_chroma2_aps_id for the third color component, red component, green component, blue component, etc.) with a mapping reference (e.g., slice_alf_chroma_map_signalled) for the second color component or slice_alf_chroma2_map_signalled for the third color component to specify which ALF variables will be used in data filtering corresponding to the slice video data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some cases, there are multiple structure elements that control the application of ALF to the chroma components of video data. For example, the slice_alf_chroma_aps_id structure element mentioned above is a group flag that identifies the application of ALF to chroma by number. For example, the slice_alf_chroma_aps_id structure element for the current slice could indicate that the first chroma component (e.g., Cb) is filtered, that the second chroma component (e.g., Cr) is filtered, that both the first and second chroma components (e.g., Cb and Cr) are filtered, or that none of the chroma components are filtered. For the slice_alf_chroma_aps_id structure element, different chroma components can share the same identifier (ID), such as when the chroma format is 4:2:0, for example. In the case of the 4:4:4 format, different chroma components may have different IDs (e.g., aps_id). An Alf_map structural element (for example, slice_alf_chroma_map_signalled) specifies that the ALF filter is on or off for a particular block (for example, Luma CTB).<h2 style=";text-align:left;direction:ltr">The slice_alf_chroma_map_signalled structure element specifies that additional structural elements of the ALF ON / OFF map (for example, an Alf_map structure element) are referenced to the first chroma component (for example, Cb). In some cases, the slice_alf_chroma_map_signalled structure element is referenced for videos other than 4:0:0, 4:2:0. The slice_alf_chroma2_map_signalled structure element specifies that additional structural elements of the ALF ON / OFF map are referenced to a second chroma component (for example, Cr). In some cases, the slice_alf_chroma2_map_signalled structure element is referenced for videos other than 4:0:0, 4:2:0.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 5 illustrates process 500 for decoding image and / or video data, according to some examples. In some aspects, process 500 may be performed in or by a system or device having memory and one or more processors configured to perform operations of process 500. In some aspects, process 500 is performed in instructions stored in computer-readable intermediate memory. For example, when the instructions are processed by one or more processors of the system or encoding device (e.g., system 100), they cause the system or device to perform operations of process 500. In other aspects, other operations may be performed in accordance with the details provided in this document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In block 505, operation 500 includes obtaining a video bitstream. The video bitstream contains adaptive loop filter (ALF) data. In an illustrative example, the ALF data may be referenced using the alf_data structure described in the present document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In block 510, operation 500 includes determining the ALF chroma filter signal flag value from the ALF data. The ALF chroma filter signal flag value indicates whether the ALF chroma filter data references a video bitstream. The ALF chroma filter signal flag may also be referenced in the current document as an ALF flag. In one illustrative example, the ALF chroma filter signal flag may include a structural element alf_chroma_filter_signal_flag in the structure alf_data described in the current document. In some instances, the ALF filter data may include ALF filter parameters (e.g., f(k, l)) and / or other variables. In some examples, operation 500 may include inferring that the ALF chroma filter signal flag value is zero when the ALF chroma filter signal flag value is not present in the ALF data. In some examples, operation 500 may include processing the ALF chroma filter signal flag value from the ALF data to determine that the ALF chroma filter data is referenced in the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In block 515, process 500 includes processing at least a portion of a slice of video data based on the ALF chroma filter signal flag value. The slice portion may include a slice block (e.g., a CTB, a CB, a CTU, a CB, etc.), multiple slice blocks (e.g., two or more CTBs, CBs, CTUs, CBs, etc.), or the entire slice. In some aspects, the slice portion at least includes video data in a 4:4:4 format or video data in a non-4:2:0 format. Various examples of processing at least a portion of a video data slice are described herein.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, operation 500 may comprise obtaining a slice address (e.g., the structure of the slice_header() structure described in the present document) for a video data slice from the video bitstream. Operation 500 may comprise determining a chroma identifier (ALF) value (also referred to in this document as a slice chroma ID ALF) from the slice header. The ALF chroma identifier value indicates whether ALF can be applied to one or more of the slice's chroma components. In one illustrative example, the ALF chroma identifier may comprise a slice_alf_chroma_idc structure element included in the slice_header() structure described in the present document. Operation 500 may further comprise processing at least a portion of the slice by the ALF chroma identifier from the slice address. In some instances, operation 500 may comprise determining a chroma format identifier value from the slice address (e.g., from the slice_header() structure). For example, the Chroma Format ID value and the ALF Chroma ID value indicate which of one or more Chroma components ALF can be applied to.<h2 style=";text-align:left;direction:ltr">In one illustrative example, the chroma format identifier may include the ChromaArrayType variable described herein. In some aspects, the ALF chroma filter signal flag value (e.g., an alf_chroma_filter_signal_flag structure element in the alf_data structure) indicates that the ALF chroma filter data is referenced in the video bitstream (e.g., and thus the ALF is available to one or more chroma components). In some cases, the ALF chroma filter data is referenced in the Adaptation Variable Set (APS) to process at least a portion of the slice. In some examples, based on the ALF chroma filter signal flag value, the operation 500 may include obtaining the ALF chroma filter data for use in processing at least a portion of the slice. The operation 500 may further include applying the ALF chroma filter data to at least a portion of the video data slice.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, based on the ALF chroma filter flag value, process 500 may include obtaining ALF chroma filter data for use in one or more chroma components of at least one block of the video bitstream. Process 500 may further include applying ALF chroma filter data to one or more chroma components of at least one block of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, operation 500 may include obtaining the address of a video data slice from the video bitstream. As previously noted, operation 500 may include determining a chroma format identifier value from the slice address (e.g., a value of the ChromaArrayType variable from the slice_header() structure). Based on the chroma format identifier value from the slice address, operation 500 may include processing one or more chroma components of at least one block of the video bitstream using the Luma filter ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As previously noted, the process 500 may include processing the ALF chroma filter signal flag value from the ALF data to determine that the ALF chroma filter data is referenced in the video bitstream. In some examples, the process 500 may include determining an ALF application variable set (APS) identifier for a first chroma component of the at least one slice portion. The process 500 may further include determining an ALF map for a first chroma component of the at least one slice portion. In an illustrative example, the ALF map may include or may be referenced using a slice_alf_chroma_map_signalled structure element, a slice_alf_chroma2_map_signalled structure element, and / or another structural element described above. In some examples, the process 500 may include enabling ALF filtering for at least two non-chroma components of the at least one slice portion based on the at least one slice portion components having common properties. In some cases, the at least two non-luma components of the slice portion include at least a red component, a green component, and a blue component of the slice portion.<h2 style=";text-align:left;direction:ltr">In some cases, at least two of the non-luma components of the chip portion comprise at least one or more chroma components (e.g., a Cb component and / or a Cr component) of the chip portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, the process 500 may include enabling ALF filtering of at least two non-Luma components of the at least portion of the slice based on at least portion of the slice including non-4:2:0 video format data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As previously noted, in some instances, the at least one slice portion includes 4:4:4 video data. In some examples, the process 500 may include defining a chroma matrix variable of type 1 for the at least one slice portion. The process 500 may include defining an ALF chroma application set (APS) identifier for the first component of the at least one slice portion based on the chroma matrix variable of type 1 for the at least one slice portion. The process 500 may include defining a referenced ALF map (e.g., a slice_alf_chroma_signalled structure element, a slice_alf_chroma2_map_signalled structure element, and / or another structure element described above) for the at least one component of the slice portion. In some examples, the process 500 may include selecting a second referenced ALF map (e.g., a slice_alf_chroma_map_signalled structure element, a slice_alf_chroma2_map_signalled structure element, and / or another structure element described above) for a second component that is at least part of the slice based on the chroma array type variable.<h2 style=";text-align:left;direction:ltr">In some examples, the process 500 may include performing an ALF filter on at least the first component and the second component of the slice portion using the referenced ALF map and the second referenced ALF map. In some examples, the process 500 may include selecting a third referenced ALF map for at least a third component of the slice portion by an array variable of type chroma. In one illustrative example using the if(sps_alf_flag) construct above, the referenced ALF map includes or is referenced using the slice_alf_map_signalled construct element referenced above, the referenced ALF map includes or is referenced using the slice_alf_chroma_map_signalled construct element referenced above, and the third referenced ALF map is referenced using the slice_alf_chroma2_map_signalled construct element referenced above. In some cases, the first component is a chroma component, the second component is a first chroma component, and the third component is a second chroma component.<h2 style=";text-align:left;direction:ltr">In some cases, the first component is a red component, the second component is a green component, and the third component is a blue component. In some examples, the process may include 500 ALF processing actions on a block for at least each component of the slice segment, depending on the chroma matrix type variable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 illustrates process 600 for encoding image and / or video data, according to some examples. In some aspects, process 600 may be performed in or by a system or device having memory and one or more processors configured to perform operations of process 600. In some aspects, process 600 is performed in instructions stored in computer-readable intermediate memory. For example, when instructions are processed by one or more processors of a system or encoding device (such as system 100), the system or device performs operations of process 600. In other aspects, other operations may be performed in accordance with details provided in this document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In block 605, process 600 includes generating adaptive loop filter (ALF) data. In one illustrative example, the ALF data includes the structure alf_data described in the present document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In block 610, operation 600 includes specifying an ALF chroma filter signal flag value for the ALF data. The ALF chroma filter signal flag value indicates whether the ALF chroma filter data is referenced in the video bitstream. The ALF chroma filter signal flag may also be referenced in the current document as an ALF flag. In one illustrative example, the ALF chroma filter signal flag may include an alf_chroma_filter_signal_flag structural element in the alf_data structure described in the current document. In some cases, the ALF filter data may include ALF filter parameters (e.g., f(k, l)) and / or other variables.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In block 615, process 600 includes generating a video bitstream including ALF data. The bitstream may be generated in accordance with aspects of the present document, such as those mentioned in connection with Figure 1, Figure 7, and / or Figure 8.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, operation 600 includes determining the value of an ALF chroma identifier (also referred to in this document as an ALF slice identifier). The ALF chroma identifier value indicates whether ALF can be applied to one or more chroma components of a slice of video data. In one illustrative example, the ALF sheet identifier may include a slice_alf_chroma_idc structure element included in the slice_header() structure described in the present document. Operation 600 may include (e.g., adding) the ALF chroma identifier value in a slice header of the video bitstream. In one illustrative example, the slice header may include a slice_header() structure described in the present document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, operation 600 includes determining a chroma format ID value. The chroma format ID value and the ALF chroma format ID value may refer to any chroma component of one or more chroma components to which ALF applies. In one illustrative example, the chroma format ID may include the ChromaArrayType variable described herein. Operation 600 may include (e.g., adding) the chroma format ID value in a video bitstream segment header. In some aspects, the ALF chroma filter flag value indicates that the ALF chroma filter data is referenced in the video bitstream. In some cases, the ALF chroma filter data is referenced in an adaptation variable set (APS) to address at least a portion of the video data segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As previously noted, operation 600 includes specifying a chroma format identifier value (e.g., the value of the ChromaArrayType variable from the slice_header() structure). In some cases, the chroma format identifier value may refer to one or more chroma components of at least one block of the video bitstream for processing using the Luma ALF filter data. Operation 600 may include (e.g., adding) the chroma format identifier value in the header of a segment of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In addition to the aspects described above, it will be clear that additional aspects are possible within the scope of the details provided in this document. For example, repetitive or overlapping processes are possible within the scope of process 500 and related processes. Additional variations of the processes described above will also be clear from the details provided in this document. The following is a non-exhaustive list of additional aspects:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some implementations, the operations (or methods) described in the present document (including operation 500, operation 600, and / or other operations described in the present document) may be performed by a device or computing device, such as the system 100 shown in Figure 1A. For example, operation 500 and / or operation 600 may be performed by the encoder 104 shown in Figure 1A and Figure 7, by another device on the video source side or video transmission device, by the decoder 112 shown in Figure 1A and Figure 8, and / or by another device on the client side, such as a player, display, or other client-side device. In some instances, the computing device or device may include a processor, microprocessor, microcomputer, or other hardware component configured to perform steps of the operations described in the present document. In some examples, the device or computing device may include a camera configured to capture video data (e.g., a video sequence), including video frames.<h2 style=";text-align:left;direction:ltr">In some examples, the camera or other capturing device that captures video data is separate from the computing device, in which case the computing device receives or acquires the captured video data. The computing device may also include a network interface configured to deliver video data. The network interface may be configured to deliver Internet Protocol (IP)-based data or other types of data. In some examples, the device or computing device may include a display for displaying the resulting video content, such as samples of video bitstream images.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Operations 500 and 600 are described in terms of logical flow diagrams, the operation of which represents a sequence of operations that can be executed in hardware, computer instructions, or a combination thereof. In the context of computer instructions, operations are computer-executable instructions stored on one or more computer-readable storage media that, when executed by one or more processors, perform said operations. In general, computer-executable instructions include procedures, programs, objects, components, data structures, and the like that perform certain functions or execute certain types of data. The order in which operations are described is not intended to be construed as a limitation, and any number of described operations may be combined in any order and / or in parallel to perform the operations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In addition, the operations described in the present document (e.g., operation 500 and / or operation 600 and / or other operations described in the present document) may be executed under the control of one or more computer systems equipped with executable instructions and may be executed as code (e.g., executable instructions, one or more computer programs, or one or more applications) executed collectively on one or more processors, by hardware, or combinations thereof. As previously noted, the code may be stored on computer-readable or machine-readable storage media, e.g., in the form of a computer program comprising a set of instructions executable by one or more processors. The computer-readable or machine-readable storage media may be non-transitory.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encryption methods described in this document may be implemented in an example video encoding and decoding system (e.g., system 100). In some examples, the system includes a source device that provides encrypted video data to be subsequently decrypted by a destination device. In particular, the source device provides video data to the destination device via a computer-readable medium. The source and destination devices may include any wide range of devices, including desktop computers, portable computers (e.g., laptops), tablet computers, set-top boxes, telephone devices such as "smart" phones, "smart" pads, televisions, cameras, projectors, digital media players, video game consoles, a video streaming device, or the like. In some cases, the source and destination devices may be equipped for wireless communication.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The destination device may receive the encrypted video data for decryption via a computer-readable medium. The computer-readable medium may include any type of media or device capable of transmitting the encrypted video data from the source device to the destination device. In one example, the computer-readable medium may include a communication medium that enables the source device to transmit the encrypted video data directly to the destination device in real time. The encrypted video data may be modified according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device. The communication medium may include any wireless or wired communication medium, such as the radio frequency (RF) spectrum, or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device to the destination device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the encrypted data may be output from the output interface to a storage device. Similarly, the encrypted data may be accessed from the storage device via the input interface. The storage device may include any variety of distributed or locally accessible data storage media, such as a hard disk drive, Blu-ray discs, DVDs, CDs, flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing encrypted video data. In another example, the storage device may correspond to a file server or other storage medium that may store encrypted video generated by the source device. The destination device may access the stored video data from the storage device via streaming or downloading. A file server may be any type of server capable of storing encrypted video data and transmitting the encrypted video data to the destination device. Typical file servers include a web server (for example, for a website), an FTP server, network-attached storage (NAS) devices, or a local drive.<h2 style=";text-align:left;direction:ltr">The destination device may access the encrypted video data over any standard data connection, including an Internet connection. This may include a wireless channel (e.g., Wi-Fi), a wired connection (e.g., DSL, cable modem, etc.), or a combination of the two, suitable for accessing the encrypted video data stored on a file server. Transfer of the encrypted video data from the storage device may be a streaming transmission, a download, or a combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The methods of the present invention are not necessarily limited to wireless applications or setups. The methods may be applied to video encoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet video broadcasts, such as dynamic adaptive streaming over HTTP (DASH), digital video encoded on data storage media, decoding digital video stored on data storage media, or other applications. In some examples, the system may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In one example, the source device includes a video source, a video encoder, and an output interface. The destination device may include an input interface, a video decoder, and a display device. The source device's video encoder may be configured to implement the methods disclosed herein. In other examples, the source device and destination device may include other components or arrangements. For example, the source device may receive video data from an external video source, such as an external camera. Similarly, the destination device may interact with an external display device, rather than including an integrated display device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The example system above is just one example. Methods for processing video data may be implemented in parallel by any digital video encoder and / or decoder. Although the methods of the present invention are generally performed by a video encoder, the methods may also be implemented by a video encoder / decoder, commonly referred to as a "CODEC." Furthermore, the methods of the present invention may also be implemented by a video preprocessor. The source device and destination device are simply examples of encoders in which the source device generates encoded video data for transmission to the destination device. In some examples, the source and destination devices may operate in a substantially symmetric manner, such that each device includes video encoding and decoding components. Typical systems may therefore support one-way or two-way video transmission between video devices, e.g., for video streaming, video playback, video broadcasting, or video telephony.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The video source may include a video capture device, such as a video camera, a video archive containing previously captured video, and / or a video feed interface for receiving video from a video content provider. Alternatively, the video source may generate computer graphics-based data such as the source video, or a combination of live video, archived video, and computer-generated video. In some cases, if the video source is a video camera, the source and destination devices may constitute so-called camera phones or video phones. However, as noted above, the methods described in the present invention may be applicable to video coding in general and may be applicable to wireless and / or wired applications. In each case, the captured, pre-captured, or computer-generated video may be encoded by the video encoder. The encoded video information may be output through the output interface onto a computer-readable medium.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As noted, a computer-readable medium may include transient media, such as wireless broadcasting or wired network transmission, or storage media (i.e., non-transitory storage media), such as a hard disk, flash drive, CD, DVD, Blu-ray Disc, or other computer-readable media. In some examples, a network server (not shown) may receive encrypted video data from a source device and deliver the encrypted video data to a destination device, for example, via a network transmission. Similarly, a computing device for an intermediate production facility, such as a disc stamping facility, may receive encrypted video data from the source device and produce a disc containing the encrypted video data. Therefore, a computer-readable medium may be understood to include one or more computer-readable media in various forms, in various examples.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The input interface of the destination device receives information from a computer-readable medium (CRM). The CRM information may include structural information defined by the video encoder and also used by the video decoder, which includes structural elements that describe the properties and / or processing of other encoded blocks and units, for example, a group of pictures (GOP). A display device displays the decoded video data to the user and may include any of a variety of display devices such as a cathode ray tube (CRT), liquid crystal display (LCD), plasma display, organic light-emitting diode (OLED), or another type of display. Various embodiments of the application are described.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Specific details of the encoder 104 and decoder 112 are illustrated in Figure 7 and Figure 8, respectively. Figure 7 is a block diagram illustrating an example of an encoder 104 that may implement one or more of the methods described in the present invention. The encoder 104 may, for example, generate the structures described in the present document (e.g., syntactic structures for VPS, SPS, PPS, or other structural elements). The encoder 104 may perform interprediction and inter-prediction of video blocks within video segments. As previously described, interprediction is based, at least in part, on spatial prediction to reduce or eliminate spatial redundancy within a given video frame or image. Inter-prediction is based, at least in part, on temporal prediction to reduce or eliminate temporal redundancy within adjacent or surrounding frames of a video sequence. Inter-mode (Mode I) may refer to any of several spatially based compression modes. Intermediate modes, such as unidirectional prediction (P-mode) or bidirectional prediction (B-mode), may refer to any of several time-based stress modes.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encoder 104 includes a segmentation unit 35, a prediction processing unit 41, a filter unit 63, an image memory 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an inversion coding unit 56. The prediction processing unit 41 includes a motion estimation unit 42, a motion compensation unit 44, and an interprediction processing unit 46. To reconstruct the video block, the encoder 104 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and an adder 62. The filter unit 63 is intended to represent one or more loop filters such as a block removal filter, an adaptive loop filter (ALF), and a sample-adaptive offset filter (SAO). Although the filter unit 63 is shown in Fig. 7 as a loop filter, in other configurations, the filter unit 63 may be implemented as another loop filter. Post-processing device 57 may perform additional processing on the encoded video data generated by the encoder 104. In some cases, the methods of the present invention may be implemented by the encoder 104. In other cases, however, one or more of the methods of the present invention may be implemented by the post-processing device 57.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As shown in Figure 7, the encoder 104 receives video data, and the segmentation unit 35 divides the data into video blocks. Segmentation may also include segmentation into segments, slices, tiles, or other larger units, as well as segmenting the video segment, for example, according to a quadrilateral tree structure of LCUs and CUs. The encoder 104 generally illustrates the components that encode the video blocks within a video segment to be encoded. The segment may be segmented into multiple video segments (and possibly into groups of video segments referred to as tiles). The prediction processing unit 41 may select one of a plurality of possible encoding methods, such as one of a plurality of intra-prediction encoding methods or one of a plurality of inter-prediction encoding methods, for the current video block based on error results (e.g., coding rate, distortion level, or the like). The prediction processing unit 41 may provide the resulting intra- or inter-encoder block up to a summation 50 for generating the remaining block data and a summation 62 for reconstructing the encoded block for use as a reference image.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The internal prediction processing unit 46 within the prediction processing unit 41 may perform an internal prediction encoding of the current video block relative to one or more adjacent blocks in the same frame or slice as the current block to be encoded to provide spatial compression. The motion estimation unit 42 and the motion compensation unit 44 within the prediction processing unit 41 perform an internal prediction encoding of the current video block relative to one or more prediction blocks in one or more reference images to provide temporal compression.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The motion estimation unit 42 may be configured to determine the interprediction mode of a video segment according to a predetermined pattern of a video sequence. This predetermined pattern may designate video segments in the sequence as P-slices, B-slices, or GPB-slices. The motion estimation unit 42 and the motion compensation unit 44 may be highly complementary but are illustrated separately for conceptual purposes. Motion estimation, performed by the motion estimation unit 42, is the process of generating motion vectors that estimate motion for video blocks. A motion vector may, for example, refer to the displacement of a prediction unit (PU) for a video block within a current video frame or image relative to a predicted block within a reference image.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A predictive block is a block proven to closely match the PU of the video block to be encoded in terms of pixel difference, which may be determined by the sum of absolute difference (SAD), sum of squared difference (SSD), or other difference metrics. In some examples, the encoder 104 may compute sub-integer pixel position values ​​for reference images stored in the image memory 64. For example, the encoder 104 may interpolate quarter-pixel, eighth-pixel, or other fractional pixel positions for the reference image. Therefore, the motion estimation unit 42 may perform a motion search for whole-pixel and fractional-pixel positions and output a motion vector with fractional pixel precision.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The motion estimation unit 42 calculates the motion vector for a PU of a video block in an internally encoded slice by comparing the PU position with the predicted block position of a reference image. The reference image may be selected from the first reference image list (List 0) or the second reference image list (List 1), each of which selects one or more reference images stored in the image memory 64. The motion estimation unit 42 sends the calculated motion vector to the inversion encoder 56 and the motion compensation unit 44.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Motion compensation, performed by the motion compensation module 44, may include fetching or generating the predictive block based on the motion vector determined by the motion estimation, and possibly performing interpolation operations to subpixel resolution. Upon receipt of the PU motion vector for the current video block, the motion compensation module 44 may determine the predictive block to which the motion vector refers in the reference image list. The encoder 104 forms a residual video block by subtracting the pixel values ​​of the predictive block from the pixel values ​​of the current video block being encoded, resulting in pixel difference values. The pixel difference values ​​constitute the residual data for the block and may include luma and chroma difference components. The accumulator 50 represents the component or components performing this subtraction operation. The motion compensation module 44 may also generate structural elements associated with the video blocks and the video chip for use by the decoder 112 in decoding the video blocks of the video chip.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The internal prediction processing unit 46 may perform internal prediction for a current block, as an alternative to the interprediction performed by the motion estimation unit 42 and the motion compensation unit 44, as described above. In particular, the internal prediction processing unit 46 may select an internal prediction mode to be used in encrypting a current block. In some examples, the internal prediction processing unit 46 may encrypt a current block using different internal prediction modes, e.g., during separate encryption passes, and the internal prediction processing unit 46 may select a suitable internal prediction mode to use from the tested modes. For example, the internal prediction processing unit 46 may calculate distortion rate values ​​using distortion rate analysis for the various tested internal prediction modes and may select the internal prediction mode with the best distortion rate characteristics among the tested modes. The distortion rate analysis generally determines the amount of distortion (or error) between the encrypted block and the original unencrypted block that was encoded to produce the encrypted block, as well as the bit rate (i.e., the number of bits) used to produce the encrypted block.<h2 style=";text-align:left;direction:ltr">The internal prediction processing unit 46 may calculate ratios of distortions and rates for various encrypted blocks to determine the internal prediction mode that displays the best distortion-rate value for the block.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In any case, after selecting the block's internal prediction mode, the internal processing unit 46 may provide information indicating the unit's selected internal prediction mode to the encoder 56. The encoder 56 may encode information indicating the selected internal prediction mode. The encoder 104 may include in the transmitted bitstream configuration data definitions of the encoding contexts for the various blocks, as well as pointers to the most probable internal prediction mode, an internal prediction mode index table, and a modified internal prediction mode index table for use in each of the contexts. The bitstream configuration data may include a set of internal prediction mode index tables and a set of modified internal prediction mode index tables (also referred to as codeword layout tables).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After the prediction processing unit 41 generates the prediction block for the current video block by either interprediction or interprediction, the encoder 104 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block may be embedded in one or more TUs and applied to the transformation processing unit 52. The transformation processing unit 52 converts the residual video data into residual transformation coefficients using a transformation, such as a discrete cosine transform (DCT) or a conceptually similar transformation. The transformation processing unit 52 may convert the residual video data from a pixel domain to a transformation domain, such as a frequency domain.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The conversion processing unit 52 may send the resulting conversion coefficients to the quantization unit 54. The quantization unit 54 selects the conversion coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by modifying the quantization variable. In some examples, the quantization unit 54 may perform a scan of the matrix including the quantized conversion coefficients. Alternatively, the inversion coding unit 56 may perform the scan.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After segmentation, the inertia coding unit 56 encodes the quantum transformation coefficients. For example, the inertia coding unit 56 may perform context-adaptive variable-length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), context-dependent binary adaptive arithmetic coding (SBAC), probabilistic interval inertia coding (PIPE), or another inertia coding method. After inertia is encoded by the inertia coding unit 56, the encoded bitstream may be transmitted to the decoder 112, or archived for later transmission or retrieval by the decoder 112. The inertia coding unit 56 may also encode motion vectors and other structural elements of the current video segment being encoded.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The inverse quantization unit 58 and the inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain for subsequent use as a reference block for the reference image. The motion compensation unit 44 may calculate a reference block by adding the residual block to a prediction block for one of the reference images within a list of reference images. The motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values ​​for use in motion estimation. The accumulator 62 adds the reconstructed residual block to the motion-compensated prediction block generated by the motion compensation unit 44 to produce a reference block for storage in the image memory 64. The reference block may be used by the motion estimation unit 42 and the motion compensation unit 44 as a reference block for interpreting a block in a subsequent video frame or image.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In this way, the encoder 104 of Figure 7 is an example of a video encoder configured to perform any of the methods described in the present document, including any of the operations or methods mentioned above. In some instances, some of the methods of the present invention may also be performed by the post-processing device 57.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 8 is a block diagram illustrating an example of a decoder 112. The decoder 112 includes a decoder 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an accumulator 90, a filter unit 91, and an image memory 92. The prediction processing unit 81 includes a motion compensation unit 82 and an internal prediction processing unit 84. The decoder 112 may, in some examples, perform a decoding pass generally interchangeably with the encoding pass described in relation to the encoder 104 in Figure 7.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">During the decoding process, the decoder 112 receives encrypted video bitstreams representing video blocks of the encrypted video segment and associated structural elements transmitted by the decoder 104. In some embodiments, the decoder 112 may receive the encrypted video bitstream from the decoder 104. In some embodiments, the decoder 112 may receive the encrypted video bitstream from a network entity 79, such as a server, a media-aware network element (MANE), a video editor / video explainer, or other device configured to implement one or more of the methods described above. The network entity 79 may or may not include the encoder 104. Some of the methods described in the present invention may be performed by the network entity 79 prior to the network entity 79 sending the encoded video bitstream to the decoder 112. In some video decoder systems, the network entity 79 and the decoder 112 may be part of separate devices, while in other cases, the function described with respect to the network entity 79 may be performed by the same device comprising the decoder 112.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The encoder decoder 80 of the decoder 112 decodes the bitstream to generate quantum coefficients, motion vectors, and other structural elements. The decoder 80 sends the motion vectors and other structural elements to the prediction processing unit 81. The decoder 112 may receive structural elements at the video chip level and / or the video block level. The decoder 80 may process and analyze both fixed-length structural elements and variable-length structural elements into one or more variable combinations, such as VPS, SPS, and PPS.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">When a video segment is encoded as an internally coded segment (I), the internal prediction processing unit 84 of the prediction processing unit 81 may generate prediction data for the current video segment's video block based on a referenced internal prediction mode and data from previously decoded blocks of the current frame or image. When a video frame is encoded as an internally coded segment (e.g., B, P, or GPB), the motion compensation unit 82 of the prediction processing unit 81 generates prediction blocks for the current video segment's video block based on motion vectors and other structural elements received from the inversion decoder 80. The prediction blocks may be generated from one of the reference images within a list of reference images. The decoder 112 may generate lists of reference frames, such as List 0 and List 1, using default generation methods based on reference images stored in the image memory 92.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The motion compensation module 82 determines prediction information for the video block of the current video segment by analyzing the motion vectors of other structural elements, and uses the prediction information to generate the prediction blocks for the current video block to be decoded. For example, the motion compensation module 82 may use one or more structural elements in the variable set to determine the prediction mode (e.g., intra-prediction or inter-prediction) used to encode the video blocks of the video segment, the inter-prediction type of the slice (e.g., B slice, P slice, or GPB slice), generation information for one or more slice reference image lists, the motion vectors for each encoded video block of the slice, the inter-prediction state for each encoded video block of the slice, and other information for decoding the video blocks of the current video segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The motion compensation unit 82 may also perform interpolation based on interpolation filters. The motion compensation unit 82 may use interpolation filters used by the encoder 104 during video block encoding to calculate interpolated values ​​for sub-integer pixels of the reference blocks. In this case, the motion compensation unit 82 may determine the interpolation filters used by the encoder 104 from the received structural elements and may use the interpolation filters to produce predictive blocks.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The inverse quantization unit 86 inversely quantizes or dequantizes the quantized transformation coefficients introduced in the bit stream and decoded by the inversion decoder unit 80. The inverse quantization process may include using a quantization variable computed by the encoder 104 for each video block in the video chip to determine the degree of quantization and, likewise, the degree of inverse quantization to be applied. The inverse transformation processing unit 88 applies an inverse transform (e.g., an inverse DCT or other suitable inverse transform), an inverse integer transformation, or a conceptually similar inverse transformation operation to the transformation coefficients to produce the remaining blocks in the pixel domain.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After the motion compensation unit 82 generates the predictive block for the current video block based on motion vectors and other structural elements, the decoder 112 forms the decoded video blocks by combining the remaining blocks from the inverse transform processing unit 88 with the corresponding predictive blocks generated by the motion compensation unit 82. Summer 90 represents the component or components performing this combination. If desired, loop filters (either in the encoding loop or after the encoding loop) may also be used to smooth pixel transitions or improve video quality. The filter unit 91 is intended to represent one or more loop filters, such as a block removal filter, an adaptive loop filter (ALF), and a sample-adaptive offset filter (SAO). Although the filter unit 91 is shown in Fig. 8 as a loop filter, in other configurations, the filter unit 91 may be implemented as a post-loop loop filter. The decoded video blocks in a given frame or image are stored in the image memory 92, which stores the reference images used for subsequent motion compensation.<h2 style=";text-align:left;direction:ltr">The image memory 92 also stores the decoded video for later display on a display device, such as the video destination device 122 shown in Figure 1a.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In this way, the decoder 112 in Figure 8 represents an example of a video decoder configured to perform any of the methods described in the present document, including the operations or methods described above.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The methods of the present invention are not necessarily limited to wireless applications or uses. The methods may be applied to video encoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet video broadcasts, such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding digital video stored on a data storage medium, or other applications. In some examples, the system may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As used in this document, the term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing, or carrying instructions and / or data. A computer-readable medium may include a non-transient medium in which data may be stored and does not include carrier waves and / or transient electronic signals propagated wirelessly or via wired communications. Examples of non-transient media may include, but are not limited to, a magnetic disk, tape, optical storage media such as a compact disc (CD) or digital versatile disc (DVD), flash memory, or memory or storage devices. A computer-readable medium may store machine-executable code and / or instructions, which may represent a procedure, function, subprogram, program, subroutine, module, program package, class, or any combination of instructions, data structures, or program data.<h2 style=";text-align:left;direction:ltr">A code segment may be coupled to another code segment or device circuit by passing and / or receiving information, data, media, variables, or memory contents. Information, media, variables, data, etc., may be passed, redirected, or transmitted via any suitable means, including memory sharing, message passing, token passing, network transmission, or the like.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, computer-readable storage devices, media, and memories may include a cable or wireless signal containing a bit stream, etc. However, non-transitory computer-readable storage media explicitly excludes media such as power, carrier signals, electromagnetic waves, and signals themselves.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Specific details are provided in the above description to provide a comprehensive understanding of the embodiments and examples in the present document. However, a person of ordinary skill in the art will recognize that the models can be implemented without these specific details. To clarify the explanation, in some cases, the present technology may be shown as comprising individual functional blocks, such as functional blocks comprising devices, hardware components, steps or routines in a method embodied in software, or combinations of devices and software. Additional components beyond those shown in the figures and / or described in the present document may be used. For example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form so as not to obscure the models with unnecessary detail. In other cases, known circuits, processes, algorithms, architectures, and methods may be shown without unnecessary detail to avoid ambiguity of the models.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The individual models above can be described as a process or method in the form of a process flowchart, flowchart, structural diagram, data flow diagram, or block diagram. Although a process flowchart may depict processes as sequential, many processes can be performed in parallel or concurrently. In addition, processes can be reordered. A process terminates when its operations are completed, but it can include additional steps not listed in the figure. A process may correspond to a method, function, procedure, subroutine, subprogram, etc. When a process corresponds to a function, its termination can correspond to the function's return to the named function or the parent function.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The operations and methods of the examples described above can be implemented using computer-executable instructions stored on or available from computer-readable media. These instructions can include, for example, instructions and data that cause a general-purpose computer, special-purpose computer, or processing device to perform a particular function or set of functions or configure them. Parts of the computer resources used can be accessed over a network. Computer-executable instructions may be, for example, binaries, intermediate-format instructions such as assembly language, firmware, source code, etc. Media for the examples described include magnetic or optical disks, flash memory, USB devices with non-volatile memory, network-attached storage devices, etc.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Devices implementing the operations and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, the program code or code fragments required to perform the necessary tasks (e.g., a computer software product) may be stored in a computer-readable or machine-readable medium. A processor(s) may perform the necessary tasks. Typical examples of form factors include laptop computers, smartphones, mobile phones, tablets, or other small-format personal computers, personal digital assistants, rack devices, stand-alone devices, etc. The functions described in this document may also be embodied in peripheral devices or add-on cards. This functionality may also be implemented on a circuit board between different chips or different processes where it is implemented, for example, in a single device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Instructions, media for conveying those instructions, computer resources for executing them, and other structures for supporting the computing resources are examples of means for providing the functions of the invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the foregoing description, aspects of the claim are described with reference to specific embodiments, but those skilled in the art will recognize that the claim is not limited thereto. Therefore, although illustrative embodiments of the claim are described in detail in the present document, it should be kept in mind that the inventive concepts may be embodied and used differently, and that the appended claims are intended to encompass those differences, except as specified by prior art. The various features and aspects of the claim described above may be used individually or in combination. Furthermore, embodiments may be used in any number of environments and applications not described in the present document without departing from the intent and scope of the specification. Accordingly, the specification and drawings should be considered illustrative and not limiting. For purposes of clarity, the methods are described in a particular order. It should be kept in mind that in alternative embodiments, the methods may be implemented in a different order than that given in the present document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A person of ordinary skill will recognize that the symbols or terms less than ("<") and greater than ("">") used in the present document can be replaced by less than or equal to ("≤") and greater than or equal to ("≥"), respectively, without going beyond the scope of this description.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When components are described as "configured" to perform certain operations, such configuration may be achieved, for example, by designing electronic circuits or other devices to perform the operation, or by programming programmable electronic circuits (for example, microprocessors, or other suitable electronic circuits) to perform the operation, or any combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The term "coupled with" means any component that is physically connected to another component either directly or indirectly, and / or any component that is connected to another component (e.g., connected to the other component via a wired or wireless device and / or other suitable communication interface) either directly or indirectly.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the protection elements, when the phrase “at least one of” a group and / or “one or more” of a group is mentioned, it indicates that one member of the group or several members of the group (in any group) achieves the protection element. For example, the phrase "at least one of A and B" or "at least one of A or B" means A or B or A and B, and C" or "at least one of A, B, or C" means A or B or C or A and B or A. In another example, in claims, the phrase "at least one of A, B, and C" or "at least one of A, B, or C" means A, B and C or B or A and B, or A and C or A, B, and C. The phrase "at least one of" a set and / or "one or more" from a set does not limit the set to the elements included in the set. For example, the language of a claim "at least one of A and B" or "at least one of A or B" could mean A or B or A and B, and could additionally include elements not included in the set A and B.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The logical blocks, modules, circuits, and computational steps described in relation to the embodiments in this document may be implemented as electronic devices, computer programs, firmware, or combinations thereof. To illustrate this interchangeability of hardware and software, the various illustrative components, blocks, modules, circuits, and steps above are generally described in terms of their functions. Whether this functionality is implemented as hardware or software depends on the application used and the design constraints imposed on the system as a whole. Those skilled in the art may implement the described functions in different ways for each application, but such implementation decisions should not be construed as departing from the scope of this application.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The methods described in this document may also be implemented in electronic devices, computer software, firmware, or any combination thereof. These methods may be implemented in any variety of devices, such as general-purpose computers, wireless communication devices, or integrated circuit devices that have multiple uses, including applications in wireless communication devices and other devices. Any described features may be implemented as modules or components together in an integrated logical device or separately as separate but interoperable logical devices. If implemented in software, the methods may be realized, at least in part, using a computer-readable data storage medium comprising program code including instructions that, when executed, perform one or more of the methods described above. The computer-readable data storage media may form part of a computer software product, which may include packaging materials.<h2 style=";text-align:left;direction:ltr">The computer-readable medium may include memory or data storage media, such as random access memory (RAM) such as synchronous dynamic random access memory (SDRAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic or optical data storage media, and the like. The methods may additionally, or alternatively, be at least partially realized by using a computer-readable communication medium that carries or transmits program code in the form of instructions or data structures that can be accessed, read, and / or executed by a computer, such as propagating signals or waves.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The program code may be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable logic arrays (FPGAs), or other equivalent or discrete logic circuits. Such processor may be configured to perform any of the methods described in the present invention. The general-purpose processor may be a microprocessor; alternatively, the processor may be any conventional processor, controller, microcontroller, or finite-state machine. The processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a combination of microprocessors, one or more microprocessors plus a DSP core, or any other such form. Accordingly, the term "processor," as used herein, may refer to any of the foregoing architectures, any combination of the foregoing architectures, or any other architecture or device suitable for implementing the methods described in the present invention.<h2 style=";text-align:left;direction:ltr">In addition, in some aspects, the functionality described in the present document may be provided within dedicated software modules or hardware modules configured for encoding and decoding, or incorporated into an integrated video encoding and decoding (CODEC) module.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Illustrative aspects of the application include:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 1. A device for decoding video data, wherein the device includes: a memory; and at least one processor (e.g., used in circuitry) coupled to the memory. The at least one processor is configured to: acquire a video bitstream, wherein the video bitstream includes adaptive loop filter (ALF) data; determine an ALF chroma filter flag value from the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and process at least a portion of a segment of the video data based on the ALF chroma filter flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 2. The side 1 device, wherein the at least one processor is further configured to: obtain the address of a video data segment from the video bitstream; determine an ALF chroma identifier value from the segment address, wherein the ALF chroma identifier value indicates whether the ALF can be applied to one or more of the segment's chroma components; and process at least a portion of the video data segment based on the ALF chroma identifier from the segment address.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 3. Side 2 device, wherein at least one processor is configured to: determine a Chroma Format ID value from the chip address, wherein the Chroma Format ID value and the ALF Chroma ID value each denote the one or more Chroma components to which the ALF applies.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 4. The device according to any side 1 to 3, wherein the ALF chroma filter flag value indicates that the ALF chroma filter data is referenced in the video bitstream, and wherein the ALF chroma filter data is referenced in the adaptation variables set (APS) to process at least a portion of the video data segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 5. The apparatus according to any of aspects 1 to 4, wherein at least one processor is configured to: based on the ALF chroma filter signal mark value, obtain ALF chroma filter data for use in processing at least a portion of the video data segment; and apply the ALF chroma filter data to at least a portion of the video data segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 6. The apparatus according to any of aspects 1 to 5, wherein at least one processor is configured to infer that the ALF chroma signal flag value is zero when the ALF chroma signal flag value is not present in the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 7. The apparatus according to any aspect 1 to 6, wherein at least one processor is configured to: based on the ALF chroma signal flag value, obtain ALF Luma filter data for use in one or more chroma components of at least one block of the video bitstream; and apply the ALF Luma filter data to one or more chroma components of at least one block of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 8. The apparatus according to any of aspects 1 to 7, wherein at least one processor is configured to: obtain a video data segment address from the video bitstream; determine a chroma format identifier value from the segment address; and, based on the chroma format identifier value from the segment address, process one or more chroma components of at least one block of the video bitstream using the ALF Luma filter data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 9. The apparatus according to any of aspects 1 to 8, wherein at least one processor is further configured to: process the ALF chroma filter signal flag value from the ALF data to determine that the ALF chroma filter data is referenced in the video bit stream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 10. The apparatus according to any of aspects 1 to 9, wherein the at least one processor is further configured to: determine an ALF application variable set (APS) identifier for a first color component of the at least one slice portion; and determine an ALF map for a first color component of the at least one slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 11. The apparatus according to any of Aspects 1 to 10, wherein the at least one processor is further configured to enable ALF filtering of at least two non-Luma components of the at least one chip part based on the at least two chip part components having the common characteristics.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 12. Side device 11, wherein the at least two non-lumen components of at least a portion of the chip comprise a red component, a green component, and a blue component of at least a portion of the chip.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 13. The apparatus according to aspect 11, wherein the at least two non-luma components of the at least chip portion comprise the at least two chroma components of the at least chip portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 14. The device according to any of aspects 1 to 13, wherein at least one portion of the video data segment comprises a 4:4:4 video data format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 15. The apparatus according to any of aspects 1 to 14, wherein the at least one processor is configured to enable ALF filtering of at least two non-Luma components of the at least part of the chip based on the at least part of the chip including video data of a non-4:2:0 format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 16. The apparatus according to any of aspects 1 to 15, wherein the at least one processor is configured to: define a chroma array variable of type 1 for the at least one slice portion; define an ALF chroma application variable set (APS) identifier for the at least one component of the slice portion based on the chroma array variable of type 1 for the at least one slice portion; and define a referenced ALF map for the at least one component of the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 17. The apparatus according to side 16, wherein the at least one processor is further configured to: determine a second referenced ALF map to at least a second component of the chip portion based on the matrix variable of type chroma.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 18. The device of side 17, wherein at least one processor is configured to perform ALF filtering on at least the first component and the second component of the chip portion using the indicated ALF map and the indicated second component ALF map.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 19. The apparatus according to any side 17 or 18, wherein the at least one processor is further configured to: determine a third referenced ALF map to at least a third component of the chip portion based on a matrix variable of type chroma.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 20. Side 19 apparatus, wherein the first component is a luma component, wherein the second component is a first chroma component, and wherein the third component is a second chroma component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 21. Device Side 19, wherein the first component is a red component, wherein the second component is a green component, and wherein the third component is a blue component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 22. The apparatus according to any side 16 to 21, wherein at least one processor is configured to perform ALF processing on a block for at least each component of the chip portion based on a matrix variable of type chroma.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 23. The apparatus according to any of aspects 1 to 22, wherein the apparatus includes a portable device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 24. A device for any of sides 1 to 23, further comprising a screen adapted to display one or more images.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 25. A method for decoding video data, comprising: obtaining a video bitstream, wherein the video bitstream includes adaptive loop filter (ALF) data; determining an ALF chroma filter signal flag value from the ALF data, wherein the ALF chroma filter signal flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and processing at least a portion of a segment of the video data based on the ALF chroma filter signal flag value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 26. The method of aspect 25, further comprising: obtaining an address for a video data segment from the video bitstream; determining an ALF chroma identifier value from the segment address, wherein the ALF chroma identifier value indicates whether the ALF can be applied to one or more of the segment's chroma components; and processing the at least one segment of the segment according to the ALF chroma identifier from the segment address.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 27. The method of Side 26, further comprising: determining the Chroma Format ID value from the slide title, wherein the Chroma Format ID value and the ALF Chroma ID value indicate which Chroma Components ALF can be applied to.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 28. The method according to any of aspects 25 to 27, wherein the ALF chroma filter signal flag value indicates that the ALF chroma filter data is referenced in the video bitstream, and wherein the ALF chroma filter data is referenced in the adaptation variables set (APS) for processing at least the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 29. The method according to any aspect of 25 to 28, further comprising: based on the ALF chroma filter signal mark value, obtaining ALF chroma filter data for use in processing at least a portion of the video data segment and applying the ALF chroma filter data to at least a portion of the video data segment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 30. The method according to any of Aspects 25 to 29, wherein further comprising inferring that the ALF chroma signal sign value is zero when the ALF chroma signal sign value is not present in the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 31. The method according to any of aspects 25 to 30, further comprising: based on the ALF chroma filter signal mark value, obtaining ALF chroma filter data for use in one or more chroma components of at least one block of the video bitstream; and applying the ALF chroma filter data to one or more chroma components of at least one block of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 32. The method according to any aspect of 25 to 31, further comprising: obtaining a video data segment address from the video bitstream; determining a chroma format ID value from the segment address; and based on the chroma format ID value from the segment address, processing one or more chroma components of at least one block of the video bitstream using the ALF Luma filter data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 33. The method according to any side 25 to 32, further comprising: processing the ALF chroma filter signal flag value from the ALF data to determine that the ALF chroma filter data is referenced in the video bit stream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 34. The method according to any aspect of 25 to 33, wherein further comprising: determining an ALF application parameter set (APS) identifier for a first color component of at least a portion of the slice; and determining an ALF map for a first color component of at least a portion of the slice.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 35. The method according to any of aspects 25 to 34, wherein further comprising enabling ALF filtering of at least two non-Luma components of the at least slice portion based on the at least slice portion components having the common properties.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 36. The method of side 35, wherein the at least two non-luma components of the slice portion include at least a red component, a green component, and a blue component of the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 37. The method of aspect 35, wherein the at least two of the non-luma components of the at least portion of the slide comprise the chroma components of the at least portion of the slide.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 38. The method according to any of sides 25 to 37, wherein at least a portion of the slice includes video data in a 4:4:4 format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 39. The method according to any side of 25 to 38, wherein further comprising enabling ALF filtering of at least two non-Luma components of the at least portion of the slice based on at least portion of the slice including video data other than 4:2:0 format.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 40. The method according to any aspect of 25 to 39, wherein further comprising: defining a chroma-type array variable for the at least slice portion; defining an ALF chroma application set (APS) identifier for the at least a first component of the slice portion by the chroma-type array variable for the at least slice portion; and defining the referenced ALF map for the at least a first component of the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 41. The method of aspect 40, further comprising: determining a second-referenced ALF map of at least a second component of the slice portion according to a chroma type matrix variable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 42. The method according to Aspect 41, wherein further comprising performing ALF filtering on at least the first component and the second component of the slice portion using the referenced ALF map and the second referenced ALF map.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Aspect 43. The method according to any of aspects 41 or 42, wherein further comprising: determining a third referenced ALF map to at least a third component of the slice portion based on a matrix variable of type chroma.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 44. Method of Side 43, wherein the first component is a luma component, wherein the second component is a chroma one component, and wherein the third component is a chroma two component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 45. Side 43 method, where the first component is a red component, where the second component is a green component, and where the third component is a blue component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 46. The method according to any side 25 to 45, wherein further comprising performing ALF processing on a block for at least each component of the slice portion based on the array variable of type chroma.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 47. A device for encoding video data, wherein the device includes: a memory; and at least one processor (e.g., implemented in circuits) coupled to the memory. The at least one processor is configured to: generate adaptive loop filter (ALF) data; determine an ALF chroma filter flag value for the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and generate the video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 48. Side device 47, wherein the at least one processor is further configured to: determine an ALF chroma identifier value, wherein the ALF chroma identifier value indicates whether the ALF can be applied to one or more chroma components of a segment of video data; and include the ALF chroma identifier value in the video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 49. Side device 48, wherein at least one processor is further configured to: determine a chroma format identifier value, wherein the chroma format identifier value and the ALF chroma format identifier value indicate which ALF chroma component is applicable to it; and include the chroma format identifier value in the video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 50. The device according to any side 47 to 49, wherein the ALF chroma filter signal flag value indicates that the ALF chroma filter data is referenced in the video bit stream, and wherein the ALF chroma filter data is referenced in the adaptation variable set (APS) for processing at least one slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 51. The apparatus according to any side 47 to 50, wherein the at least one processor is configured to: determine a chroma format identifier value, wherein the chroma format identifier value refers to one or more chroma components of at least one block of the video bitstream for processing using the ALF Luma filter data; and include the chroma format identifier value in the video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 52. The apparatus according to any of sides 47 to 51, wherein the apparatus includes a portable device.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 53. The apparatus according to any of the sides 47 to 52, wherein it further includes a screen adapted to display one or more images.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 54. A method for encoding video data, comprising: generating adaptive loop filter (ALF) data; determining an ALF chroma filter flag value for the ALF data, wherein the ALF chroma filter flag value indicates whether the ALF chroma filter data is referenced in the video bitstream; and generating the video bitstream containing the ALF data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 55. The method of aspect 54, further comprising: determining an ALF chroma identifier value, wherein the ALF chroma identifier value indicates whether the ALF can be applied to one or more chroma components of the video data segment; and including the ALF chroma identifier value in the video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 56. The method of side 55, further comprising: determining a chroma format identifier value, a chroma format identifier value, wherein the chroma format identifier value ALF indicates which chroma components ALF can be applied to; and including the chroma format identifier value in a video bitstream segment header.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 57. The method according to any side 54 to 56, wherein the ALF chroma filter flag value indicates that the ALF chroma filter data is referenced in the video bitstream, and wherein the ALF chroma filter data is referenced in the adaptation variables set (APS) for processing at least the slice portion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspect 58. The method according to any aspect 54 to 57, further comprising: determining a chroma format identifier value, wherein the chroma format identifier value refers to one or more chroma components of at least one block of the video bitstream for processing using the ALF Luma filter data; and including the chroma format identifier value in a segment header of the video bitstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Side 59. A computer-readable storage medium that stores instructions which, when executed by one or more processors, cause the one or more processors to perform any of the operations of sides 1 through 46.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 60. Apparatus including a means for performing any of the operations of sides 1 to 46.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 61. A computer-readable storage medium that stores instructions which, when executed by one or more processors, cause the one or more processors to perform any of the operations of sides 47 through 58.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 62. Apparatus comprising a means for performing any of the operations of sides 47 to 58.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 63. A computer-readable storage medium that stores instructions which, when executed by one or more processors, cause the one or more processors to perform any of the operations of sides 1 through 58.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Side 64. A device comprising a means for performing any of the operations of sides 1 to 58.< / highlight> < / highlight> < / highlightend> < / highlight> < / highlight> < / highlightend> < / highlight> < / highlightend> < / highlight> < / highlightend> < / highlight> < / highlight> < / highlightend> < / highlight> < / highlight> < / highlightend> < / highlight> < / highlightend> < / highlight> < / highlightend> < / highlight>