Bit shifting for cross-component adaptive loop filtering for video coding

By constraining filter coefficients to zero or powers of two and using bit-shift operations, CC-ALF becomes more resource-efficient, addressing the resource-intensive challenges of existing CC-ALF methods.

JP7566014B2Active Publication Date: 2024-10-11QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022516744
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-22
Filing Date
2020-09-23
Publication Date
2024-10-11
Estimated Expiration
2040-09-23

AI Technical Summary

Technical Problem

Cross-component adaptive loop filtering (CC-ALF) in video coding involves numerous resource-intensive multiplication operations, increasing coding time and power consumption due to the use of filter coefficients that are not constrained to zero or powers of two.

Method used

Constraining the absolute value of filter coefficients to zero or powers of two and replacing multiplication operations with bit-shift operations, such as left or right shifts, to reduce resource requirements.

Benefits of technology

This approach reduces the resource intensity of CC-ALF, making it more efficient in terms of coding time and power consumption while maintaining equivalent mathematical results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566014000009
    Figure 0007566014000009
  • Figure 0007566014000010
    Figure 0007566014000010
  • Figure 0007566014000011
    Figure 0007566014000011
Patent Text Reader

Abstract

An example method includes decoding a plurality of filter coefficients of a cross-component adaptive loop filter, where decoding a particular filter coefficient from the plurality of filter coefficients comprises decoding, from the encoded video bitstream, a syntax element that identifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value, and determining a value of the particular filter coefficient based on the exponent value; reconstructing samples of a block of video data; and cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0001] This application claims priority to U.S. Application No. 17 / 028,209, filed September 22, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 904,508, filed September 23, 2019, the entire contents of each of which are incorporated herein by reference.

[0002] FIELD OF THE DISCLOSURE

[0002] This disclosure relates to video coding, including video encoding and video decoding. [Background technology]

[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.

[0004]

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with reference to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with reference to reference samples in neighboring blocks in the same picture or temporal prediction with reference to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention

[0005]

[0005] In general, this disclosure describes techniques related to cross-component adaptive loop filtering (CC-ALF) of video data. To perform ALF, a video coder may filter corresponding luma and chroma blocks separately using different coefficient sets (e.g., using a luma coefficient set for filtering the luma block and one or more chroma coefficient sets for filtering the chroma block). However, the luma block may contain details that may be lost in the corresponding chroma block in the coding loop. Therefore, the video coder may perform CC-ALF in which information from the luma block is used to enhance the corresponding chroma block.

[0006] For example, a video coder may filter a luma block with a first set of chroma filter coefficients to generate an intermediate block for a first chroma component (e.g., Cb) and filter the luma block with a second set of chroma filter coefficients to generate an intermediate block for a second chroma component (e.g., Cr). The video encoder may signal values ​​of filter coefficient usage for CC-ALF (e.g., at least the first and second sets of chroma filter coefficients used to filter the luma block) as one or more syntax elements in an encoded video bitstream to a video decoder. The video coder may then add each intermediate block to the ALF filtered chroma block of the chroma component.

[0007]

[0007] To filter a luma block to generate intermediate blocks for chroma components, a video coder may perform multiple multiplication operations on each sample of the luma block. For example, the video coder may calculate a filtered value for a particular sample of the luma block as a sum of chroma filter coefficients multiplied by the samples of the luma block. Thus, performing CC-ALF may involve a large number of multiplication operations (e.g., seven for an 8x8 luma block). Performing such a large number of multiplication operations may be a resource-intensive effort for the video coder, which may unnecessarily increase coding time and / or power consumption.

[0008]

[0008] According to one or more techniques of this disclosure, a video coder may code (e.g., a video encoder may encode and a video decoder may decode) filter coefficients for CC-ALF such that the absolute values ​​of the filter coefficients are constrained to be zero or a power of two. When filtering luma blocks using the filter coefficients to generate intermediate chroma blocks, the video coder may replace multiplication operations with bit-shift operations (e.g., left-shift and right-shift operations). Because the absolute values ​​of the filter coefficients are constrained to be zero or a power of two, the replacement of multiplication operations with bit-shift operations may be mathematically equivalent (i.e., yielding the same intermediate chroma blocks). However, while mathematically equivalent, bit-shift operations may be substantially less resource-intensive than multiplication operations. Also, when implemented in dedicated hardware (e.g., an application-specific integrated circuit (ASIC)), the hardware required to perform the bit-shift operations may be simpler than the hardware required to perform the multiplication operations. In this manner, the techniques of this disclosure reduce the resource requirements of CC-ALF.

[0009]

[0009] As an example, a method includes decoding a plurality of filter coefficients of a cross-component adaptive loop filter, where decoding a particular filter coefficient of the plurality of filter coefficients comprises decoding a syntax element from the encoded video bitstream identifying an exponent value representing a log base 2 of the absolute value of the particular filter coefficient, as two raised to the power of the exponent value, and determining a value of the particular filter coefficient based on the exponent value; reconstructing samples of a block of video data; and cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients.

[0010]

[0010] As another example, a method includes reconstructing samples of a block of video data based on the values ​​of a plurality of filter coefficients of a cross-component adaptive loop filter, where encoding the value of a particular filter coefficient among the plurality of filter coefficients comprises encoding in the encoded video bitstream a syntax element specifying an exponent value representing the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value; and cross-component adaptive loop filtering of the block of video data based on the values ​​of the plurality of filter coefficients.

[0011]

[0011] As another example, a device includes a memory configured to store at least a portion of an encoded video bitstream and one or more processors implemented in a circuitry, where the one or more processors are configured to: decode a plurality of filter coefficients of a cross-component adaptive loop filter, where, to decode a particular filter coefficient among the plurality of filter coefficients, the one or more processors are configured to: decode from the encoded video bitstream a syntax element that identifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value, and determine a value of the particular filter coefficient based on the exponent value; reconstruct samples of a block of video data; and cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients.

[0012]

[0012] As another example, a device includes a memory configured to store at least a portion of an encoded video bitstream and one or more processors implemented in a circuit configuration, where the one or more processors are configured to encode values ​​of a plurality of filter coefficients of a cross-component adaptive loop filter, where, to encode the value of a particular filter coefficient among the plurality of filter coefficients, the one or more processors are configured to decode a syntax element in the encoded video bitstream that identifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value, reconstruct samples of a block of video data, and cross-component adaptive loop filtering the block of video data based on the values ​​of the plurality of filter coefficients.

[0013]

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

[0014] [Figure 1]

[0014] A block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Figure 2A]

[0015] 1 is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU). [Figure 2B] 1 is a conceptual diagram illustrating an exemplary Quad-Tree-Binary-Tree (QTBT) structure and a corresponding Coding Tree Unit (CTU). [Diagram 3]

[0016] 1 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure. [Figure 4]

[0017] 1 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure. [Diagram 5]

[0018] 1 is a block diagram illustrating an example filter unit in accordance with one or more techniques of this disclosure. [Figure 6]

[0019] 6 is a flowchart illustrating an example method for encoding a current block in accordance with techniques of this disclosure. [Figure 7]

[0020] 6 is a flowchart illustrating an example method for decoding a current block in accordance with techniques of this disclosure. [Figure 8]

[0021] 1 is a flowchart illustrating an example method for cross-component adaptive loop filtering (CC-ALF) on a current block, in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015]

[0022] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

[0016]

[0023] 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. In particular, source device 102 provides video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and thus may be referred to as wireless communication devices.

[0017]

[0024] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for performing cross-component adaptive loop filtering. Thus, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source device and destination device may include other components or configurations. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.

[0018]

[0025] The system 100 as shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may perform the techniques for cross-component adaptive loop filtering. The source device 102 and the destination device 116 are only examples of such coding devices, where the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically, video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.

[0019]

[0026] Generally, video source 104 represents a source of video data (i.e., raw, uncoded video data) and provides a continuous series of pictures (also called "frames") of the video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera containing previously captured raw video, a video archive, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange the pictures from the order in which they were received (sometimes referred to as "display order") to a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data onto a computer-readable medium 110 via an output interface 108 for receipt and / or retrieval, for example, by an input interface 122 of a destination device 116 .

[0020]

[0027] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions, e.g., executable by the video encoder 200 and the video decoder 300, respectively. Although shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 may be allocated as one or more video buffers, for example, for storing raw decoded video data and / or encoded video data.

[0021]

[0028] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium for enabling the source device 102 to transmit the encoded video data in real time directly to the destination device 116, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may demodulate a received transmission signal according to a communication standard, such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a 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 102 to the destination device 116.

[0022]

[0029] In some examples, source device 102 may output encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray® disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0023]

[0030] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device, which may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download. The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 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., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.

[0024]

[0031] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functionality attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functionality attributed to the video decoder 300 and / or the input interface 122.

[0025]

[0032] The techniques of this disclosure may be applied to video coding in support of any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0026]

[0033] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., the storage device 112, the file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 that is also used by the video decoder 300, such as syntax elements having values ​​that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0027]

[0034] 1, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).

[0028]

[0035] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuit configurations, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the techniques are implemented partially in software, the device may store instructions for the software in a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (codec) in the respective device. The device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.

[0029]

[0036] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as ITU-T H.266, also known as Joint Exploratory Test Model (JEM) or Versatile Video Coding (VVC). A recent draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 6)," Joint Video Experts Group (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 15th Meeting, Gothenburg, Sweden, July 3-12, 2019, JVET-O2001-vE (hereinafter "VVC Draft 6"). However, the techniques of this disclosure are not limited to any particular coding standard.

[0030]

[0037] Generally, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include chrominance components of both red and blue hues. In some examples, the video encoder 200 converts received RGB formatted data into a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these transformations.

[0031]

[0038] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include the process of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding a block of a picture to include the process of encoding or decoding data for the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values ​​for syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally as coding values ​​for the syntax elements that form the picture or block.

[0032]

[0039] HEVC defines various blocks including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as the video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four non-overlapping equal squares, and each node of the quadtree has either zero or four child nodes. A node with no child nodes may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information such as an intra-mode indication.

[0033]

[0040] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[0034]

[0041] In the MTT partition structure, blocks may be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of triple tree (TT) partitioning. A triple tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, a triple tree partitioning divides a block into three sub-blocks without splitting the original block through the center. The partition types in the MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.

[0035]

[0042] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for both chrominance components (i.e., two QTBT / MTT structures for each chrominance component).

[0036]

[0043] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures according to HEVC. For illustrative purposes, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.

[0037]

[0044] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular region of a CTU row in a particular tile in a picture. A tile may be a rectangular region of CTUs in a particular tile column and in a particular tile row in a picture. A tile column refers to a rectangular region of CTUs with a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular region of CTUs with a height specified by a syntax element (e.g., in a picture parameter set) and a width equal to the width of the picture.

[0038]

[0045] In some examples, a tile may be partitioned into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.

[0039]

[0046] The bricks in a picture may also be arranged into slices. A slice may be an integer number of bricks of a picture that may be contained exclusively within a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes either several complete tiles or only a contiguous sequence of complete bricks of one tile.

[0040]

[0047] This disclosure may use "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. Moreover, a CU does not necessarily have to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may comprise NxM samples, where M is not necessarily equal to N.

[0041]

[0048] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information and other information. The prediction information indicates how the CU will be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU before encoding and the predictive block.

[0042]

[0049] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU from data of a previously coded picture, while intra-prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared differences (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.

[0043]

[0050] Some examples of JEM and VVC also provide an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.

[0044]

[0051] To perform intra prediction, video encoder 200 may select an intra prediction mode for generating a predictive block. Some examples of JEM and VVC provide 67 intra prediction modes, including various directional modes as well as planar and DC modes. In general, video encoder 200 selects an intra prediction mode that describes neighboring samples to a current block (e.g., a block of a CU) from which to predict samples of the current block. Assuming that video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom), such samples may generally be above the current block in the same picture as the current block, above and to the left of the current block, or to the left of the current block.

[0045]

[0052] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in the case of an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used as well as motion information for the corresponding mode. In the case of unidirectional or bidirectional inter prediction, for example, video encoder 200 may encode motion vectors using an advanced motion vector prediction (AMVP) mode or a merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.

[0046]

[0053] Following prediction, such as intra- or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents the difference, sample by sample, between the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. Additionally, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.

[0047]

[0054] As mentioned above, following any transformation to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, resulting in further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0048]

[0055] Following quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (hence lower frequency) coefficients at the front of the vector and lower energy (hence higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a default scan order to scan the quantized transform coefficients to produce a serialized vector and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode values ​​for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.

[0049]

[0056] To perform CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values ​​of the symbol are zero values ​​or not. The probability determination may be based on the context assigned to the symbol.

[0050]

[0057] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, among other syntax data, such as a picture header, a block header, a slice header, or a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS), to video decoder 300. Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.

[0051]

[0058] In this manner, video encoder 200 may generate a bitstream including encoded video data, e.g., syntax elements that describe partitions of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.

[0052]

[0059] In general, video decoder 300 performs a process reciprocal to that performed by video encoder 200 to decode encoded video data of a bitstream. For example, video decoder 300 may decode values ​​for syntax elements of a bitstream using CABAC in a manner substantially similar to, but reciprocal to, the CABAC encoding process of video encoder 200. The syntax elements may specify partitioning information of a picture into CTUs and partitioning of each CTU according to a corresponding partitioning structure, such as a QTBT structure, to specify CUs of the CTU. The syntax elements may further specify prediction and residual information for blocks (e.g., CUs) of video data.

[0053]

[0060] The residual information may be represented, for example, by quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-prediction or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block for the block. The video decoder 300 may then combine (sample by sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.

[0054]

[0061] As discussed above and in accordance with one or more techniques of this disclosure, video encoder 200 and / or video decoder 300 may be configured to signal filter coefficients for CC-ALF that are constrained to have absolute values ​​of zero or a power of two. In this manner, video encoder 200 and / or video decoder 300 may replace multiplication operations and bit-shifting operations in performing CC-ALF, where the bit-shifting operations are less resource intensive.

[0055]

[0062] This disclosure may generally refer to "signaling" some information, such as a syntax element. The term "signaling" may generally refer to communication of values ​​for the syntax elements and / or other data used to decode the encoded video data. That is, video encoder 200 may signal values ​​for the syntax elements in a bitstream. Generally, signaling refers to generating values ​​in the bitstream. As mentioned above, source device 102 may transport the bitstream to destination device 116 in substantially real-time or not in real-time, as may occur when storing syntax elements in storage device 112 for later retrieval by destination device 116.

[0056]

[0063] 2A and 2B are conceptual diagrams illustrating an exemplary quad-tree bi-tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. The solid lines represent quad-tree partitioning, and the dotted lines represent bi-tree partitioning. At each partitioned (i.e., non-leaf) node of the bi-tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. In the case of quad-tree partitioning, the quad-tree node partitions a block horizontally and vertically into four sub-blocks of equal size, so there is no need to indicate the partition type. Thus, the video encoder 200 may encode and the video decoder 300 may decode syntax elements (e.g., partition information) for the region tree level of the QTBT structure 130 (i.e., solid lines) and syntax elements (e.g., partition information) for the prediction tree level of the QTBT structure 130 (i.e., dashed lines). For a CU represented by a terminal leaf node of QTBT structure 130, video data, such as prediction data and transformation data, may be encoded by video encoder 200 and decoded by video decoder 300.

[0057]

[0064] 2B may be associated with parameters that define the size of blocks corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing the size of the CTU 132 in samples), a minimum quadtree size (representing the minimum allowable quadtree leaf node size, MinQTSize), a maximum bi-tree size (representing the maximum allowable bi-tree root node size, MaxBTSize), a maximum bi-tree depth (representing the maximum allowable bi-tree depth, MaxBTDepth), and a minimum bi-tree size (representing the minimum allowable bi-tree leaf node size, MinBTSize).

[0058]

[0065] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example QTBT structure 130 represents such nodes as including parent and child nodes with solid lines for the branches. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), the nodes may be further partitioned by their respective binary trees. The binary tree partitioning of a node may be repeated until the node resulting from the partition reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example QTBT structure 130 represents such nodes as having dashed lines for the branches. The binary tree leaf nodes are called coding units (CUs), which are used for prediction (e.g., intra-picture prediction or inter-picture prediction) and transformation without further partitioning. As explained above, a CU may also be referred to as a "video block" or a "block."

[0059]

[0066] In one example of a QTBT partitioning structure, the CTU size is set as 128x128 (luma samples and two corresponding 64x64 chroma samples), MinQTSize is set as 16x16, MaxBTSize is set as 64x64, MinBTSize is set as 4 (for both width and height), and MaxBTDepth is set as 4. To generate a quadtree leaf node, a quadtree partition is first applied to the CTU. The quadtree leaf node may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the leaf quadtree node is 128x128, the leaf quadtree node is not further divided by the bi-tree because the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the leaf quadtree node is further partitioned by the bi-tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splits are allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it implies that no further horizontal splits are allowed. Similarly, a binary tree node with a height equal to MinBTSize implies that no further vertical splits are allowed for that binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to the prediction and transformation without further partitioning.

[0060]

[0067] 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. FIG. 3 is provided for purposes of explanation and should not be considered a limitation of the techniques as broadly illustrated and described in this disclosure. For purposes of explanation, this disclosure describes video encoder 200 in the context of video coding standards, such as the developing HEVC video coding standard and the H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and video decoding.

[0061]

[0068] In the example of Figure 3, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented with one or more processors or processing circuitry. Moreover, the video encoder 200 may include additional or alternative processors or processing circuitry to perform these and other functions.

[0062]

[0069] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with other components of the video encoder 200 as shown, or may be off-chip relative to those components.

[0063]

[0070] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically described as such, or to memory external to video encoder 200 unless specifically described as such. Rather, references to video data memory 230 should be understood as a reference memory that stores video data received by video encoder 200 for encoding (e.g., video data for a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.

[0064]

[0071] The various units of FIG. 3 are illustrated to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific functionality and is preconfigured in the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provides flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters and output parameters), but the types of operations that the fixed-function circuit performs are generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0065]

[0072] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), digital circuits, analog circuits, and / or a programmable core formed from programmable circuits. In examples in which the operations of the video encoder 200 are performed using software executed by programmable circuits, the memory 106 (FIG. 1) may store object code for the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.

[0066]

[0073] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.

[0067]

[0074] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. By way of example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0068]

[0075] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and rate-distortion values ​​obtained for such combinations. The encoding parameters may include partitioning of the CTUs into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, etc. The mode selection unit 202 may finally select a combination of encoding parameters that has a better rate-distortion value than other combinations tested.

[0069]

[0076] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and may encapsulate one or more CTUs in a slice. Mode selection unit 202 may partition the CTUs of a picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC, described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks."

[0070]

[0077] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). For inter prediction of a current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 may calculate values ​​representing how similar a possible reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the minimum value resulting from these calculations, which indicates the reference block that most closely matches the current block.

[0071]

[0078] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the location of a reference block in a reference picture relative to the location of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in the case of unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in the case of bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of a reference block. As another example, in the case of a motion vector having fractional sample accuracy, the motion compensation unit 224 may interpolate values ​​for the predictive block according to one or more interpolation filters. Moreover, in the case of bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, through sample-wise averaging or weighted averaging.

[0072]

[0079] As another example, for intra prediction or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring the current block. For example, in the case of a directional mode, the intra prediction unit 226 may generally mathematically combine values ​​of neighboring samples and fill in these calculated values ​​in a prescribed direction across the current block to produce a predictive block. As another example, in the case of a DC mode, the intra prediction unit 226 may calculate an average of neighboring samples to the current block and generate a predictive block to include this resulting average for each sample of the predictive block.

[0073]

[0080] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw, uncoded version of the current block from the video data memory 230 and the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0074]

[0081] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a PU size of 2N×2N, 2N×N, N×2N, N×N, or similar symmetric PU size for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.

[0075]

[0082] In examples where the mode select unit 202 does not further partition CUs into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As mentioned above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.

[0076]

[0083] For other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generates syntax elements that indicate a scheme for reconstructing the block based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the entropy coding unit 220.

[0077]

[0084] As described above, the residual generation unit 204 receives video data for a current block and a corresponding predictive block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates sample-by-sample differences between the predictive block and the current block.

[0078]

[0085] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms, e.g., a linear transform and a secondary transform such as a rotation transform, to the residual block. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0079]

[0086] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce loss of information, and thus the quantized transform coefficients may be less accurate than the original transform coefficients produced by transform processing unit 206.

[0080]

[0087] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may produce a reconstructed block that corresponds to the current block (albeit potentially with some degree of distortion) based on the reconstructed residual block and the predictive block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode selection unit 202 to produce the reconstructed block.

[0081]

[0088] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along edges of a CU. In some examples, the operation of filter unit 216 may be skipped. Filter unit 216 may perform the cross-component adaptive loop filtering (CC-ALF) techniques of this disclosure, alone or in any combination. For example, filter unit 216 may perform CC-ALF as discussed below with reference to FIG. 5. Filter unit 216 may generate one or more coefficients for CC-ALF. For example, filter unit 216 may generate a first set of filter coefficients to be used when generating a first intermediate chroma block from the luma block and a second set of filter coefficients to be used when generating a second intermediate chroma block from the luma block. As discussed above, and in accordance with one or more techniques of this disclosure, filter unit 216 may limit the absolute values ​​of generated filter coefficients to zero or powers of two (e.g., 1, 2, 4, 8, 16, 32, 64, 128, 256, etc.). Similarly, entropy encoding unit 220 may be configured to entropy encode cross-component adaptive loop filtering parameters in accordance with the techniques of this disclosure. For example, as opposed to encoding the actual values ​​of the filter coefficients, entropy encoding unit 220 may encode exponent values ​​of the filter coefficients, and a video decoder may reconstruct the actual values ​​of the filter coefficients based on the exponent values.

[0082]

[0089] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to inter predict blocks of a subsequently encoded picture. In addition, the intra prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.

[0083]

[0090] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction, or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.

[0084]

[0091] The video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, the entropy encoding unit 220 may output the bitstream.

[0085]

[0092] The operations described above are described with respect to blocks. Such descriptions should be understood as being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.

[0086]

[0093] In some examples, operations performed with respect to luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to be repeated to identify MVs and reference pictures for chroma blocks. Rather, to determine the MVs for the chroma blocks, the MVs for the luma coding blocks may be scaled and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0087]

[0094] Video encoder 200 represents an example of a device configured to encode video data and including a memory configured to store the video data, and one or more processing units implemented in circuitry and configured to perform cross-component adaptive loop filtering techniques in accordance with the present disclosure.

[0088]

[0095] 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. FIG. 4 is provided for illustration purposes and is not a limitation on the techniques as broadly illustrated and described in this disclosure. For illustration purposes, this disclosure describes a video decoder 300 according to JEM, VVC, and HEVC techniques. However, the techniques of this disclosure may be performed by video coding devices configured for other video coding standards.

[0089]

[0096] In the example of Figure 4, the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented with one or more processors or processing circuitry. Moreover, the video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.

[0090]

[0097] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units to perform prediction according to other prediction modes. By way of example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or differently functional components.

[0091]

[0098] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of coded pictures, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300 or may be off-chip relative to those components.

[0092]

[0099] Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data as described above, along with CPB memory 320. Similarly, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.

[0093]

[0100] The various units shown in FIG. 4 are illustrated to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 3, a fixed-function circuit refers to a circuit that provides a specific functionality and is preconfigured in the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provides flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters and output parameters), the types of operations that the fixed-function circuit performs are generally immutable. In some examples, one or more units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

[0094]

[0101] The video decoder 300 may include a programmable core formed from ALUs, EFUs, digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video decoder 300 are performed by software executing on programmable circuits, on-chip or off-chip memory may store instructions of the software (e.g., object code) that the video decoder 300 receives and executes.

[0095]

[0102] The entropy decoding unit 302 may receive the encoded video data from the CPB and may entropy decode the video data to recover the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.

[0096]

[0103] Generally, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the “current block”).

[0097]

[0104] The entropy decoding unit 302 may entropy decode syntax elements that specify the quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization, and likewise, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may perform a bitwise left shift operation, for example, to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0098]

[0105] After the inverse quantization unit 306 forms the transform coefficient blocks, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient blocks to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient blocks.

[0099]

[0106] Further, prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter predicted, motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in DPB 314 from which to retrieve the reference block, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform an inter prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 3).

[0100]

[0107] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a predictive block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 3). The intra prediction unit 318 may retrieve data of neighboring samples to the current block from the DPB 314.

[0101]

[0108] The reconstruction unit 310 may use the predictive block and the residual block to reconstruct the current block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the predictive block to reconstruct the current block.

[0102]

[0109] The entropy decoding unit 302 may further entropy decode the cross-component adaptive loop filter parameters according to the techniques of this disclosure. For example, according to one or more techniques of this disclosure, the entropy decoding unit 302 may decode, for each of the plurality of filter coefficients, from the encoded video bitstream a syntax element that specifies an exponent value that represents the base-2 logarithm of the absolute value of the particular filter coefficient as 2 raised to the power of the exponent value. If the exponent value for the particular filter coefficient is non-zero, the entropy decoding unit 302 may decode, from the encoded video bitstream and for the particular filter coefficient, a syntax element having a value that specifies the sign (e.g., either positive or negative) of the particular filter coefficient. The entropy decoding unit 302 may reconstruct values ​​of the plurality of filter coefficients based on the exponent value. For example, the entropy decoding unit 302 may reconstruct values ​​of the particular filter coefficient according to the following equation:

[0103]

number

[0104] where c(i) is the value of a particular filter coefficient, sign(i) is the negative sign if the signaled sign is negative and the positive sign if the signaled sign is positive, and c'(i) is the signaled exponent value for the particular filter coefficient.

[0105]

[0110] Entropy decoding unit 302 may provide the reconstructed cross-component adaptive loop filter coefficients to filter unit 312. Filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed blocks. The operations of filter unit 312 are not necessarily performed in all instances. In accordance with the techniques of this disclosure, filter unit 312 may use the cross-component adaptive loop filter coefficients to perform cross-component adaptive loop filtering of the decoded blocks of video data.

[0106]

[0111] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output decoded pictures from the DPB 314 for subsequent presentation on a display device, such as the display device 118 of FIG. 1.

[0107]

[0112] In this manner, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units implemented in circuitry and configured to perform the cross-component adaptive loop filtering techniques of this disclosure, alone or in any combination.

[0108]

[0113] 5 is a block diagram illustrating an example filter unit in accordance with one or more techniques of this disclosure. The filter unit 500 of FIG. 5 may be considered an example of the filter unit 216 of the video encoder 200 or the filter unit 312 of the video decoder 300.

[0109]

[0114] The filter unit 500 may include components configured to perform various types of filtering. For example, as shown in FIG. 5, the filter unit 500 may include components configured to perform sample adaptive offset (SAO) filtering, such as an SAO luma filter 502, an SAO Cb filter 504, and an SAO Cr filter 506. As further shown in FIG. 5, the filter unit 500 may include components configured to perform cross-component adaptive loop filtering (CC-ALF), such as an ALF luma filter 508, a CC ALF Cb filter 510, a CC ALF Cr filter 512, an ALF chroma filter 514, an adder 516, and an adder 518.

[0110]

[0115] In operation, the SAO luma filter 502 may receive input luma blocks of video data, perform SAO filtering on the input luma blocks to generate output luma blocks of video data, and provide the output luma blocks of video data to one or more other filter components, such as, for example, the ALF luma filter 508, the CC ALF Cb filter 510, and the CC ALF Cr filter 512. The SAO Cb filter 504 may receive input Cb chroma blocks of video data, perform SAO filtering on the input Cb chroma blocks to generate output Cb chroma blocks of video data, and provide the output Cb chroma blocks of video data to one or more other filter components, such as, for example, the ALF chroma filter 514. Similarly, the SAO Cr filter 506 may receive input Cr chroma blocks of video data, perform SAO filtering on the input Cr chroma blocks to generate output Cr chroma blocks of video data, and provide the output Cr chroma blocks of video data to one or more other filter components, such as, for example, the ALF chroma filter 514.

[0111]

[0116] The ALF components may perform ALF on blocks of video data provided by the SAO filtering components. For example, the ALF luma filter 508 may perform adaptive loop filtering on the luma blocks provided by the SAO luma filter 502 to generate output luma blocks, represented as Y. The ALF chroma filter 514 may also perform adaptive loop filtering on the chroma blocks provided by the SAO Cb filter 504 and the SAO Cr filter 506 to generate output chroma blocks, represented as Cb' and Cr'.

[0112]

[0117] Misra et al., "Cross-Component Adaptive Loop Filter for chroma", Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15th Meeting: Gothenburg, SE, July 3-12, 2019, JVET-O0636 (hereafter "JVET-O0636") proposed a tool called Cross-Component Adaptive Loop Filter (CC-ALF). CC-ALF works as part of the Adaptive Loop Filter (ALF) and utilizes luma samples to refine each chroma component. For example, the CC ALF Cb filter 510 and the CC ALF Cr filter 512 may each generate an enhancement / refinement chroma block based on the luma block provided by the SAO luma filter 502 (e.g., the CC ALF Cb filter 510 may generate an enhancement chroma block Cb+, and the CC ALF Cr filter 512 may generate an enhancement chroma block Cr+). The CC ALF Cb filter 510 and the CC ALF Cr filter 512 may each generate a respective enhancement chroma block based on a respective set of filter coefficients (e.g., the CC ALF Cb filter 510 may use a first set of filter coefficients, and the CC ALF Cr filter 512 may use a second set of filter coefficients). For example, the CC ALF Cb filter 510 may generate a chroma block Cb+ according to the following equation:

[0113]

number

[0114] However, I i is the filtered block, and I 0 is the unfiltered block, (x C , y C) is the luma location (x, y) and S i is the filter support in luma for color component Cb, and c i (x 0 , y 0 ) are the filter coefficients.

[0115]

[0118] As shown in the above equations, each of the CC ALF Cb Filter 510 and the CC ALF Cr Filter 512 may perform many multiplication operations. As discussed above and in accordance with one or more techniques of this disclosure, these multiplication operations may be replaced with bit-shifting operations, which are substantially less resource intensive and / or easier to implement in hardware than the multiplication operations. For example, to perform filtering using bit-shifting operations, each of the CC ALF Cb Filter 510 and the CC ALF Cr Filter 512 may utilize the following equations:

[0116]

number

[0117]

[0119] CC-ALF may be controlled by information in the bitstream, including the previously mentioned filter coefficients for each chroma component (which may be signaled in an adaptation parameter set (APS)) and a mask that controls the application of the filter to a block of samples. In JVET-O0636, each of the filter coefficients is represented as a fixed-point decimal number. In particular, the filter coefficients use the least significant 10 bits to represent the fractional part. Each coefficient is signaled using an Exponential-Golomb (EG) code, whose order depends on the coefficient position in the filter template.

[0118]

[0120] As mentioned above, this disclosure recognizes that the multiplication of the CC-ALF tool described in JVET-O0636 may be improved and simplified, e.g., in accordance with any or all of the techniques of this disclosure. Thus, the video encoder 200 and / or the video decoder 300 may be configured in accordance with any or all of the techniques of this disclosure, e.g., in any combination, as described below.

[0119]

[0121] According to a first technique of this disclosure, a video coder (e.g., video encoder 200 and / or video decoder 300) may constrain values ​​of some or all of the coefficients for the cross-component adaptive loop filters 510, 512. For example, the video coder may constrain values ​​of some or all of the coefficients (e.g., limit possible choices of their values) to be zero or powers of two (e.g., so that multiplications are not required for these coefficients). In some examples, instead of having to perform multiplications, the video coder (i.e., video encoder 200 or video decoder 300) may apply bit-shifting to the samples. In one example, the video coder may constrain absolute values ​​of all coefficients to be only zero or powers of two. In another example, the video coder may constrain absolute values ​​of some coefficients to be only zero or powers of two. Information regarding which coefficients of the filters are constrained may be the same for all filters without signaling. Alternatively or additionally, the information may be the same for all filters of a color component without signaling. Alternatively or additionally, the information may be signaled in the bitstream (e.g., as one or more syntax elements) for a sequence, a picture, a subpicture, a block, or a color component.

[0120]

[0122] In some examples, if the video coder signals information in the bitstream (e.g., to signal values ​​of those constrained coefficients), the video coder may signal only the mapped values ​​(which are exponent values ​​with the signs of the non-zero coefficients). A constrained coefficient c(i) may be mapped to c′(i) as follows:

[0121] If c(i) is equal to 0, then c'(i) is 0.

[0122] Otherwise, c'(i) = sign(c(i))*(log 2 (abs(c(i))+1), where sign(c(i)) is -1 if c(i) is negative, and 1 otherwise.

[0123]

[0123] In some examples, the video coder may utilize any combination of fixed-order Golomb codes, fixed-length codes, or unary codes to signal c'(i).

[0124]

[0124] In some examples, the video coder may first signal (or parse) the absolute value of c'(i) using any combination of fixed-order Golomb codes, fixed-length codes, or unary codes. If c'(i) is not 0, the video coder may subsequently signal (or parse) the sign information thereafter (e.g., after signaling the absolute value of c'(i)).

[0125] In some examples, the video coder may calculate c″(i)=c′(i)−c′ min (i) may convert c'(i) to a non-zero value and signal the converted value, where c' min (i) is the minimum mapped value for the i-th coefficient. The video decoder may parse c''(i) to be a non-negative value. Based on c''(i), the video decoder may calculate c'(i)=c''(i)+c' min (i) can be calculated.

[0126] According to a second technique of this disclosure, the video coder may be configured to constrain the dynamic range of the filter coefficients for the cross-component adaptive loop filters 510, 512 to reduce the cost multiplier. Let k be the number of bits used to represent the fractional part of the coefficients. The dynamic range of the filter coefficients c(i) may be constrained in the open interval (-(1<<(kj)),(1<<(kj))-1). The video coder may use any combination of fixed-order Golomb codes, fixed-length codes, and / or unary codes to signal c(i). The video coder may first signal (or parse) the absolute value of c(i). If c(i) is not 0, the video coder may subsequently signal (parse) sign information for c(i). Additionally or alternatively, the video coder may signal (or parse) c'(i)=c(i)-c' ... min (i) may convert c(i) to a non-zero value. The video coder may then signal the converted value, where c min (i) is the smallest value for the i-th coefficient. The video decoder may parse c'(i) to be a non-negative value. The video decoder may parse the value of c(i) as c'(i)+c'(i)+c'(i). min It can be calculated as (i).

[0127]

[0127] Figure 6 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video encoder 200 (Figures 1 and 3), it should be understood that other devices may be configured to perform a method similar to that of Figure 6.

[0128]

[0128] In this example, the video encoder 200 may first predict the current block (350). For example, the video encoder 200 may form a predictive block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate a difference between an original uncoded block and a predictive block for the current block. The video encoder 200 may then transform and quantize coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy code the coefficients (358). For example, the video encoder 200 may code the coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy coded data for the block (360).

[0129]

[0129] The video encoder 200 may then decode the current block (362). For example, the video encoder 200 may inverse quantize and inverse transform the quantized transform coefficients to reconstruct a residual block, and combine the predictive block and the reconstructed residual block. The video encoder 200 may then filter the decoded block (364), for example, using a cross-component adaptive loop filtering technique according to this disclosure. The entropy coded data of the block may further include, for example, a filter index indicating which cross-component adaptive loop filter is selected for the block. The video encoder 200 may then store the filtered block (366), for example, for reference when predicting future blocks to be coded (and decoded).

[0130]

[0130] Figure 7 is a flowchart illustrating an example method for decoding a current block according to the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to the video decoder 300 (Figures 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of Figure 7.

[0131]

[0131] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information, entropy coded data for coefficients of a residual block corresponding to the current block, and entropy coded cross-component adaptive loop filter information for the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reconstruct coefficients of the residual block (372). The video decoder 300 may predict the current block, for example, using an intra prediction mode or an inter prediction mode as indicated by the prediction information for the current block, to compute a prediction block for the current block (374). The video decoder 300 may then inverse scan the reconstructed coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). Video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).

[0132]

[0132] Further, the video decoder 300 may filter the decoded block (382), e.g., using cross-component adaptive loop filtering according to any of the techniques of this disclosure. The video decoder 300 may then store the filtered block (384), e.g., for reference when predicting future blocks to be decoded.

[0133]

[0133] Figure 8 is a flowchart illustrating an example method for cross-component adaptive loop filtering (CC-ALF) on a current block according to one or more techniques of this disclosure. The current block may include a current CU. Although described with respect to the video decoder 300 (Figures 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of Figure 8.

[0134]

[0134] The video decoder 300 may decode a plurality of filter coefficients of the cross-component adaptive loop filter (802). For example, to decode a particular filter coefficient of the plurality of filter coefficients, the entropy decoding unit 302 may decode, from the encoded video bitstream, a syntax element that identifies an exponent value that represents the base-2 logarithm of the absolute value of the particular filter coefficient as 2 raised to the power of the exponent value. If the exponent value is non-zero (i.e., has a value other than zero), the entropy decoding unit 302 may decode, from the encoded video bitstream, a syntax element that identifies a sign of the particular filter coefficient. The entropy decoding unit 302 may determine a value of the particular filter coefficient based on the exponent value (and the sign value, if present). For example, the entropy decoding unit 302 may determine a value of the particular filter coefficient according to the following equation:

[0135]

number

[0136] where c(i) is the value of a particular filter coefficient, sign(i) is the negative sign if the sign is negative and the positive sign if the sign is positive, and c'(i) is the exponent value for the particular filter coefficient.

[0137] The video decoder 300 may reconstruct samples of the block of video data (804). For example, the video decoder 300 may reconstruct the samples as described above with reference to FIG. 7. As an example, the video decoder 300 may add samples of the predictor block with the residual data to reconstruct the samples of the block.

[0138]

[0136] The video decoder 300 may perform cross-component adaptive loop filtering on a block of video data (806) based on a plurality of filter coefficients. For example, as discussed above, the CC ALF Cb filter and the CC ALF Cr filter (e.g., the CC ALF Cb filter 510 and the CC ALF Cr filter 512) of the filter unit 312 may generate an enhancement chroma block by bit-shifting samples of the block of video data based on values ​​of a plurality of filter coefficients without performing multiplication. In this manner, the techniques of this disclosure may reduce system resources required to perform CC-ALF.

[0139]

[0137] The following numbered examples may illustrate one or more aspects of the present disclosure.

[0140] Example 1. A method of decoding video data, the method comprising: coding a plurality of filter coefficients of a cross-component adaptive loop filter, where values ​​of one or more of the plurality of filter coefficients are constrained to be zero or a power of two, bit-shifting the values ​​of the one or more of the plurality of filter coefficients are constrained to be zero or a power of two, coding a block of the video data, and performing cross-component adaptive loop filtering of the decoded block using the filter coefficients.

[0141] Example 2. The method of example 1, wherein all values ​​of a plurality of filter coefficients are constrained to be zero or a power of two.

[0142] Example 3. The method of example 1, wherein a value of at least one of the plurality of filter coefficients is not constrained to be zero or a power of two.

[0143]

[0141] Example 4. The method of any of Examples 1-3, wherein performing cross-component adaptive loop filtering comprises not multiplying filter coefficients having values ​​of zero or powers of two by samples of the decoded block.

[0144] Example 5. The method of any of Examples 1-4, further comprising coding one or more syntax elements indicating values ​​of filter coefficients of the plurality of filter coefficients that are constrained.

[0145] Example 6. A method of decoding video data, the method comprising: determining a number of bits k used to represent decimal values ​​for filter coefficients of a cross-component adaptive loop filter, determining that a dynamic range of the filter coefficients comprises (−(1<<(kj)),(1<<(kj))−1), coding a block of the video data, and performing cross-component adaptive loop filtering of the decoded block using the filter coefficients.

[0146] Example 7. The method of any of Examples 1-6, wherein the coding includes decoding.

[0147] Example 8. The method of any of Examples 1-7, wherein coding comprises encoding.

[0148] Example 9. A device for coding video data, the device comprising one or more means for performing the method according to any of Examples 1 to 8.

[0149]

[0147] Example 10. The device of Example 9, wherein the one or more means comprises one or more processors implemented in the circuit configuration.

[0150] Example 11. The device of any of Examples 9 and 10, further comprising a memory for storing video data.

[0151]

[0149] Example 12. The device of any of Examples 9-11, further comprising a display configured to display the decoded video data.

[0152]

[0150] Example 13. The device of any of Examples 9-12, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0153]

[0151] Example 14. The device of any of Examples 9-13, wherein the device comprises a video decoder.

[0154]

[0152] Example 15. The device of any of Examples 9-14, wherein the device comprises a video encoder.

[0155] Example 16. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any of Examples 1-8.

[0156]

[0154] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all acts or events described may be required to practice the techniques). Moreover, in some examples, acts or events may be performed in parallel rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.

[0157]

[0155] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or a communication medium, which includes any medium that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementation of the techniques described in this disclosure. The computer program product may include a computer-readable medium.

[0158]

[0156] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technology such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.

[0159]

[0157] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a combined codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.

[0160]

[0158] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to highlight functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or provided by a collection of interoperable hardware units, including one or more processors as described above, along with suitable software and / or firmware.

[0161]

[0159] Various examples have been described. These and other examples are within the scope of the following claims. The invention as described in the claims of the original application is set forth below. [C1] A method for decoding video data, the method comprising: Decoding a plurality of filter coefficients of a cross-component adaptive loop filter, wherein decoding a particular filter coefficient of the plurality of filter coefficients comprises: decoding from an encoded video bitstream a syntax element that specifies an exponent value that represents the base 2 logarithm of an absolute value of the particular filter coefficient, where 2 is a power of the exponent value; determining a value of the particular filter coefficient based on the exponent value; Equipped with reconstructing samples of the block of video data; cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients; A method comprising: [C2] The method of C1, wherein all absolute values ​​of the plurality of filter coefficients are constrained to be zero or a power of two. [C3] Decoding the particular filter coefficients and in response to the exponent value being non-zero, decoding, from the encoded video bitstream, a syntax element that specifies a sign of the particular filter coefficient; The method of C1, wherein determining the value of the particular filter coefficient further comprises determining the value of the particular filter coefficient based on the sign. [C4] Determining the values ​​of the particular filter coefficients is performed by using the following formula:

number

number

Claims

1. 1. A method for decoding video data, the method comprising: Decoding a plurality of filter coefficients of a cross-component adaptive loop filter, wherein decoding a particular filter coefficient of the plurality of filter coefficients comprises: decoding, from the encoded video bitstream and using a fixed length code, a syntax element that identifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value; determining a value of the particular filter coefficient based on the exponent value; Equipped with reconstructing samples of the block of video data; cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients; A method comprising:

2. The method of claim 1 , wherein all absolute values ​​of the plurality of filter coefficients are constrained to be zero or a power of two.

3. Decoding the particular filter coefficients and in response to the exponent value being non-zero, decoding, from the encoded video bitstream, a syntax element that specifies a sign of the particular filter coefficient; The method of claim 1 , wherein determining the value of the particular filter coefficient further comprises determining the value of the particular filter coefficient based on the sign.

4. Determining the values ​​of the particular filter coefficients is performed using the following formula: [0010] where c(i) is the value of the particular filter coefficient, sign(i) is a negative sign if the sign is negative and a positive sign if the sign is positive, and c′(i) is the exponent value for the particular filter coefficient.

5. 2. The method of claim 1, wherein the cross-component adaptive loop filtering comprises bit-shifting samples of the blocks of video data based on values ​​of the plurality of filter coefficients without performing multiplications.

6. 1. A method for encoding video data, the method comprising: encoding values ​​of a plurality of filter coefficients of a cross-component adaptive loop filter, wherein encoding a value of a particular filter coefficient of the plurality of filter coefficients comprises: and encoding, in the encoded video bitstream, and using a fixed length code, a syntax element that specifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value. reconstructing samples of the block of video data; cross-component adaptive loop filtering of the block of video data based on the values ​​of the plurality of filter coefficients; A method comprising:

7. 1. A device for decoding video data, said device comprising: a memory configured to store at least a portion of the encoded video bitstream; and one or more processors implemented in a circuit configuration, the one or more processors comprising: Decoding a plurality of filter coefficients of a cross-component adaptive loop filter, wherein to decode a particular filter coefficient of the plurality of filter coefficients, the one or more processors: decoding, from the encoded video bitstream and using a fixed length code, a syntax element that identifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value; determining a value of the particular filter coefficient based on the exponent value; configured to: reconstructing samples of the block of video data; cross-component adaptive loop filtering the block of video data based on the plurality of filter coefficients; A device configured to:

8. The device of claim 7 , wherein all absolute values ​​of the plurality of filter coefficients are constrained to be zero or a power of two.

9. To decode the particular filter coefficients, the one or more processors: in response to the exponent value being non-zero, further configured to decode, from the encoded video bitstream, a syntax element that specifies a sign of the particular filter coefficient; 8. The device of claim 7, wherein to determine the value of the particular filter coefficient, the one or more processors are further configured to determine the value of the particular filter coefficient based on the sign.

10. To determine the value of the particular filter coefficient, the one or more processors may calculate [0025] where c(i) is the value of the particular filter coefficient, sign(i) is a negative sign if the sign is negative and a positive sign if the sign is positive, and c′(i) is the exponent value for the particular filter coefficient.

11. 8. The device of claim 7, wherein, for cross-component adaptive loop filtering, the one or more processors are configured to bit shift samples of the blocks of video data based on values ​​of the plurality of filter coefficients without performing multiplications.

12. 1. A device for encoding video data, said device comprising: a memory configured to store at least a portion of the encoded video bitstream; and one or more processors implemented in a circuit configuration, the one or more processors comprising: encoding values ​​of a plurality of filter coefficients of a cross-component adaptive loop filter, wherein to encode values ​​of particular filter coefficients of the plurality of filter coefficients, the one or more processors: encoding, in the encoded video bitstream and using a fixed length code, a syntax element that specifies an exponent value that represents the base 2 logarithm of the absolute value of the particular filter coefficient as 2 raised to a power of the exponent value. configured to: reconstructing samples of the block of video data; cross-component adaptive loop filtering of the block of video data based on the values ​​of the plurality of filter coefficients; A device configured to:

13. The device of claim 12 , wherein all absolute values ​​of the plurality of filter coefficients are constrained to be zero or a power of two.

14. To encode the particular filter coefficients, the one or more processors: In response to the particular filter coefficient having a non-zero value, encoding from the encoded video bitstream a syntax element that specifies a sign of the particular filter coefficient. The device of claim 12 , further configured to:

15. 13. The device of claim 12, wherein, for cross-component adaptive loop filtering, the one or more processors are configured to bit shift samples of the blocks of video data based on values ​​of the plurality of filter coefficients without performing multiplications.

Citation Information

Patent Citations

  • Cross-component adaptive loop filter for chroma

    WO2021032751A1

  • Apparatus and method for coding image

    WO2021040483A1

  • Method and apparatus for cross-component filtering

    WO2021055222A1