Cropping index codec for adaptive loop filter in video codecs
By encoding and decoding the ALF crop index into a fixed-length unsigned integer or other coded value, the problem of slow decoding process caused by ALF crop index signaling notification in the prior art is solved, and the efficiency of video decoding is improved.
Patent Information
- Application Number
- CN202080041761.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-09
- Filing Date
- 2020-06-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-06-11
AI Technical Summary
In existing video coding and decoding technology, the signaling method of adaptive loop filter (ALF) clipping index, especially the use of exponential-Golomb code in VVC test model 5.0, causes the decoding process to slow down because it requires Perform multiple comparison operations.
Encode the ALF crop index into a fixed-length unsigned integer, or use a truncated binary value, a truncated unary value, or an unsigned level 0 Exp-Golomb codec value, and apply ALF to the picture block of the video data based on this .
In this way, the video decoder can perform the decoding process more quickly because the ALF crop index is signaled as a fixed-length unsigned integer, reducing the number of comparison operations and thus improving decoding efficiency.
Smart Images

Figure CN113940067B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Application No. 16 / 897,049, filed on June 9, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 859,948, filed on June 11, 2019, each of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to video encoding and video decoding. Background Art
[0004] Digital video capabilities can 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 game devices, video game consoles, cellular or satellite radio phones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding (coding) technology, such as those described in MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4 Part 10, Advanced Video Codec (AVC), ITU-Th.265 / High Efficiency Video Codec (HEVC) and extensions of these standards. By implementing such video coding technology, video devices can more efficiently send, receive, encode, decode and / or store digital video information.
[0005] 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 codec tree units (CTUs), codec units (CUs), and / or codec nodes. Video blocks in an intra-frame codec (I) slice of a picture are encoded using spatial prediction of reference samples in neighboring blocks in the same picture. Video blocks in an inter-frame codec (P or B) slice of a picture may use spatial prediction of reference samples in neighboring blocks in the same picture or temporal prediction of reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0006] In general, the present disclosure describes techniques for signaling a clip index of an adaptive loop filter (ALF) in a video codec. The techniques of the present disclosure can be applied to existing video codecs, such as codecs compliant with ITU-T H.265, High Efficiency Video Codec (HEVC) standards, or used as codec tools in currently developing standards such as Versatile Video Codec (VVC), as well as codec tools in other future video codec standards.
[0007] In one example, a method for encoding and decoding video data includes: encoding and decoding an adaptive loop filter (ALF) cropping index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and applying the ALF to a block of a picture of the video data based on the ALF cropping index.
[0008] In another example, a device for encoding and decoding video data includes a memory configured to store the video data and one or more processing circuits, wherein the processing circuit is configured to encode and decode an ALF cropping index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and based on the ALF cropping index, apply ALF to a block of a picture of the video data.
[0009] In another example, an apparatus for encoding and decoding video data includes: a component for encoding and decoding an ALF cropping index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and a component for applying ALF to a block of a picture of the video data based on the ALF cropping index.
[0010] In another example, a computer-readable storage medium is encoded with instructions that, when executed, cause a programmable processor to: encode an ALF crop index into one of: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and apply ALF to blocks of a picture of video data based on the ALF crop index.
[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0013] Figure 2A is a conceptual diagram illustrating example 5×5 diamond adaptive loop filter (ALF) support.
[0014] Figure 2B is a conceptual diagram illustrating example 7×7 diamond ALF support.
[0015] Figure 3 is a conceptual diagram illustrating example 5×5 diamond filter support.
[0016] Figure 4A-4C is a conceptual diagram showing example 5×5 filter support with different geometric transforms.
[0017] Figure 5A and Figure 5B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding codec tree unit (CTU).
[0018] Figure 6 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0019] Figure 7 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0020] Figure 8 is a flow chart illustrating an example method for encoding a current block of a current picture of video data.
[0021] Fig. 9 is a flow chart illustrating an example method for decoding a current block of a current picture of video data.
[0022] Fig.10 is a flow diagram illustrating example operations for encoding and decoding video data in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION
[0023] Video encoders and video decoders can apply an adaptive loop filter (ALF) to samples of a picture in a decoded video signal. Applying the ALF can improve the quality of the decoded video signal. During the application of the ALF, a video codec (e.g., a video encoder or a video decoder) can determine a filter value for a current sample. To determine the filter value for the current sample, the video codec can multiply the cropped samples of the ALF filter support for the current sample by the corresponding filter coefficients. The support is a set of samples that is used to derive the value of the sample being filtered. The video codec can then determine the filter value for the current sample by adding the value of the current sample to the sum of the resulting products.
[0024] As described above, the video codec multiplies the cropped samples by the corresponding filter coefficients. The cropping is controlled by a set of cropping values. The cropping values specify the upper and lower limits of the sample values. The video codec may use different cropping values in different situations. Therefore, the video codec may signal an index of an applicable cropping value set (i.e., an ALF cropping index). For example, the video codec may signal the ALF cropping index in an adaptive parameter set (APS).
[0025] In VVC Test Model 5.0 (VTM-5.0) (Chen et al., "Algorithm Description for Versatile Video Coding and Test Model 5 (VTM 5)", Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, document JVET-N1001), an exponential-Golomb (exp-Golomb) code is used to signal the ALF crop index. Signaling the ALF crop index as an exp-Golomb code may slow down the decoding process because determining the meaning of the exp-Golomb code may involve performing multiple comparison operations, which tend to be relatively slow.
[0026] The present disclosure can solve this problem. As described herein, a video codec (e.g., a video encoder or a video decoder) can encode and decode an ALF crop index as a fixed-length unsigned integer. The video codec can apply the ALF to a block of a picture of video data based on the ALF crop index. Because the ALF crop index is signaled as a fixed-length unsigned integer, the video decoder may be able to perform a decoding process faster.
[0027] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to encoding and decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Therefore, video data can include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata such as signaling notification data.
[0028] like Figure 1As shown, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, source device 102 provides video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a variety 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, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and, therefore, may be referred to as wireless communication devices.
[0029] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply a technique for signaling a crop index for a loop filter in a video codec. Therefore, 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, source device and destination device may include other components or arrangements. 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.
[0030] Figure 1 The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform a technique for signaling a crop index for a loop filter in a video codec. The source device 102 and the destination device 116 are only examples of such a codec device, wherein the source device 102 generates a coded video data to be transmitted to the destination device 116. The present disclosure refers to a "codec" device as a device that performs the coding (coding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, video encoders and video decoders, respectively. In some examples, the devices 102 and 116 can operate in a substantially symmetrical manner so that each of the devices 102 and 116 includes a video coding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0031] Typically, video source 104 represents the source of video data (i.e., original, uncoded video data) and provides a continuous series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive containing previously captured original video, and / or a video feed interface 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 captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from a receiving order (sometimes referred to as a "display order") into a codec order for encoding and decoding. Video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt or retrieval by, for example, input interface 122 of destination device 116 .
[0032] 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 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although in this example, the memory 106 and the memory 120 are shown separately from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original, decoded and / or encoded video data.
[0033] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the 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 to enable the source device 102 to send the encoded video data directly to the destination device 116 in real time (e.g., 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 the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may include 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 a router, a switch, a base station, or any other device that can be used to facilitate communication from the source device 102 to the destination device 116.
[0034] In some examples, computer-readable medium 110 may include storage device 112. 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.
[0035] In some examples, the computer-readable medium 110 may include a file server 114 or another intermediate storage device that can store the encoded video data generated by the source device 102. The source device 102 may output the encoded video data to the file server 114 or another intermediate storage device that can 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 downloading. The file server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to the destination device 116. The file server 114 may represent a network 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 via 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 transfer protocol, a download transfer protocol, or a combination thereof.
[0036] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit 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 where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ), Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device to perform functions belonging to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device to perform functions belonging to video decoder 300 and / or input interface 122.
[0037] The techniques disclosed herein may be applied to video encoding and decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission such as HTTP Dynamic Adaptive Streaming (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0038] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 (such as syntax elements with values describing characteristics and / or processing of video blocks or other codec units (e.g., slices, pictures, groups of pictures, sequences, etc.) and used by the video decoder 300. 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 display (OLED), or another type of display device.
[0039] although Figure 1 Not shown, 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 a multiplexed stream including both audio and video in a common data stream. If applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0040] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, 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 these techniques are partially implemented in software, the device can store the instructions of the software in a suitable non-temporary computer-readable medium and use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (codec) in a corresponding device. A device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0041] The video encoder 200 and the video decoder 300 may operate according to a video codec standard such as ITU-T H.265, also known as High Efficiency Video Codec (HEVC), or an extension thereof such as a multi-view and / or scalable video codec extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as ITU-T H.266, also known as Versatile Video Codec (VVC). The latest draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 5)", Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v3 (hereinafter referred to as "VVC Draft 5"). However, the technology of the present disclosure is not limited to any particular codec standard.
[0042] Typically, the video encoder 200 and the video decoder 300 can perform block-based picture encoding and decoding. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, to be decoded, or otherwise used for encoding and / or decoding processes). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can encode and decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data of samples of a picture, where the chrominance components may include red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB format data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.
[0043] The present disclosure may generally refer to the encoding and decoding of a picture (e.g., encoding and decoding) to include the process of encoding or decoding the data of a picture. Similarly, the present disclosure may refer to the encoding and decoding of a block of a picture to include the process of encoding or decoding the data of the block (e.g., prediction and / or residual encoding and decoding). The encoded video bitstream generally includes a series of values of syntax elements that represent codec decisions (e.g., codec modes) and the partitioning of pictures into blocks. Therefore, references to encoding and decoding a picture or a block should generally be understood as encoding and decoding the values of the syntax elements that form the picture or block.
[0044] HEVC defines various blocks, including codec units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video encoder (such as video encoder 200) partitions a codec tree unit (CTU) into CUs according to a quadtree structure. That is, the video codec partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs, and / or one or more TUs. The video codec may further partition the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the partitioning of the TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. The intra-predicted CU includes intra-frame prediction information such as an intra-frame mode indication.
[0045] As another example, the video encoder 200 and the video decoder 300 may be configured to operate in accordance with VVC. In accordance with VVC, a video codec (such as the video encoder 200) partitions a picture into multiple CTUs. For some values of N, a codec tree block (CTB) is an N×N block of samples, so that the division of components into CTBs is a partition. In VVC, a CTU may be defined as a CTB of luma samples, two corresponding CTBs of chroma samples of a picture with three sample arrays, or a CTB of samples of a monochrome picture or a picture encoded and decoded using three separate color planes, and a syntax structure for encoding and decoding the samples.
[0046] The video encoder 200 may partition the CTU according to a tree structure such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure removes the concept of multiple partition types such as the separation between CU, PU, and TU of HEVC. The QTBT structure includes two levels: a first level for partitioning according to quadtree partitioning, and a second level for partitioning according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the codec units (CUs).
[0047] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) partitioning. A ternary tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, the ternary tree partitioning divides a block into three sub-blocks without dividing the original block by the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0048] 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 luma and chroma 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 luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for corresponding chroma components).
[0049] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures in accordance with HEVC. For purposes of explanation, the description of the disclosed technology is presented with respect to QTBT segmentation. However, it should be understood that the disclosed technology may also be applied to a video codec configured to use quadtree segmentation or other types of segmentation.
[0050] The present disclosure may use "N×N" 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, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.
[0051] The video encoder 200 encodes the video data of the CU representing the prediction and / or residual information and other information. The prediction information indicates how to predict the CU in order to form the prediction block of the CU. The residual information generally indicates the sample-by-sample difference between the CU sample before encoding and the prediction block.
[0052] In order to predict a CU, the video encoder 200 may typically form a prediction block of the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU from previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search to identify a reference block that closely matches the CU, for example, based on the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (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 use unidirectional prediction or bidirectional prediction to predict the current CU.
[0053] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).
[0054] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as a planar mode and a DC mode. Typically, the video encoder 200 selects an intra prediction mode that describes a neighboring sample of a current block (e.g., a block of a CU) from which the sample of the current block is predicted. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.
[0055] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for the inter-frame prediction mode, the video encoder 200 may encode data representing which of the various available inter-frame prediction modes is used and the motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode the motion vector of the affine motion compensation mode.
[0056] After prediction, such as intra-frame prediction or inter-frame prediction of a block, the video encoder 200 can calculate residual data for the block. Residual data, such as a residual block, represents the sample-by-sample difference between the block and a predicted block formed using a corresponding prediction mode for the block. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 can apply a secondary transform after the primary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.
[0057] As described above, after any transforms that produce transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to minimize the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 can 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 can perform a bit-by-bit right shift on the value to be quantized.
[0058] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place the transform coefficients of higher energy (and therefore lower frequency) in front of the vector and the transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode and decode the values of the syntax elements describing the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0059] To perform CABAC, the video encoder 200 may assign context in a context model to a symbol to be transmitted. The context may relate to, for example, whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0060] The video encoder 200 may also generate syntax data (e.g., in a picture header, a block header, a slice header), such as block-based syntax data, picture-based syntax data, and sequence-based syntax data or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS) to the video decoder 300. The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0061] In this way, the video encoder 200 can generate a bitstream that includes the encoded video data, for example, a syntax element describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information of the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0062] In general, the video decoder 300 performs a process that is the opposite of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode the values of the syntax elements of the bitstream using CABAC in a manner substantially similar to but opposite to the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs, and each CTU may be partitioned according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., CU) of video data.
[0063] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing deblocking to reduce visual artifacts along block boundaries.
[0064] In the field of video coding and decoding, filtering is often applied in order to improve the quality of the decoded video signal. The filter can be used as a post-filter, where the filtered frame is not used to predict future frames, or the filter can be used as an in-loop filter, where the filtered frame is used to predict future frames. For example, the filter can be designed by minimizing the error between the original signal and the decoded filtered signal.
[0065] In VVC Test Model 5.0 (VTM-5.0) (Chen et al., “Algorithm Description for Versatile Video Coding and Test Model 5 (VTM 5)”, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC 1 / SC 29 / WG11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, document JVET-N1001), the decoded filter coefficients f(k, l) and cropping values c(k, l) are applied to reconstruct the picture R(i, j) as follows:
[0066]
[0067] In VTM-5.0, a 7×7 filter is applied to the luma component and a 5×5 filter is applied to the chroma components. Figure 2A is a conceptual diagram illustrating example 5×5 diamond ALF support. Figure 2B is a conceptual diagram showing an example 7×7 diamond ALF support. In equation (1), K may be equal to Where L represents the filter length. In addition, in equation (1) and elsewhere in this disclosure, the clip3 function can be defined as:
[0068]
[0069] In equation (1) and elsewhere in this disclosure, the clipping value c(k, l) may be calculated as follows. For the luma component, the clipping value c(k, l) may be calculated as:
[0070] c(k, l) = Round(2 (BitDepthY*(4-clipIdx(k,1)) / 4) ) (1')
[0071] In equation (1'), BitDepthY is the bit depth of the luma component, and clipIdx(k, l) is the clip index of position (k, l). clipIdx(k, l) can be 0, 1, 2, or 3.
[0072] For chroma components, the clipping value c(k, l) can be calculated as:
[0073] c(k, l) = Round(2 (BitDepthC-8) *2 (8*(3-clipIdx[k,1]) / 3) ) (1”)
[0074] In equation (1"), BitDepthC is the bit depth of the chroma component, and clipIdx(k,l) is the clipping value at position (k,l). clipIdx(k,l) can be 0, 1, 2, or 3.
[0075] For the luminance component, 4×4 blocks in the entire picture are classified based on the one-dimensional (1D) Laplacian direction (up to 5 directions) and the 2D Laplacian activity (up to 5 activity values). b and non-quantitative activities b .Act b It is further quantized to a range of 0 to 4 (inclusive).
[0076] First, the video codec (e.g., video encoder 200 or video decoder 300) uses 1D Laplacian to calculate the values of two diagonal gradients in addition to the horizontal and vertical gradients used in the existing ALF. As can be seen from the following equations (2) to (5), the sum of the gradients of all pixels within the 8×8 window covering the target pixel is used as the representative gradient of the target pixel, where R(k, l) represents the reconstructed pixel at position (k, l), and the indices i and j refer to the coordinates of the upper left pixel in the 4×4 block. Each pixel is associated with four gradient values, where the vertical gradient is represented by g v The horizontal gradient is represented by g h Indicates that the 135 degree diagonal gradient is represented by g d1 denoted by g, and the 45-degree diagonal gradient is represented by g d2 express.
[0077]
[0078] When k and l are both even numbers or k and l are not even numbers, V k,l =|2R(k, l)-R(k, l-1)-R(k, l+1)|. Otherwise it is 0.
[0079]
[0080] When k and l are both even numbers or k and l are not even numbers, H k,l =|2R(k, l)-R(k-1, l)-R(k+1, l)|. Otherwise it is 0.
[0081]
[0082] When k and l are both even numbers or k and l are not even numbers, D1 k,l =|2R(k, l)-R(k-1, l-1)-R(k+1, l+1)|. Otherwise it is 0.
[0083]
[0084] When k and l are both even numbers or k and l are not even numbers, D2 k,l =|2R(k, l)-R(k-1, l+1)-R(k+1, l-1)|. Otherwise it is 0.
[0085] In order to assign directional Dir b , the ratio of the maximum to minimum values of the horizontal and vertical gradients (denoted by R in the following equation (6) h,v ) and the ratio of the maximum to the minimum of the two diagonal gradients (denoted by R in the following equation (7) d1,d2 represents) is compared with two thresholds t1 and t2.
[0086]
[0087]
[0088] In equations (6) and (7) and elsewhere in this disclosure, Indicates the maximum value of horizontal and vertical gradients; Indicates the minimum value of horizontal and vertical gradient; represents the maximum of the two diagonal gradients; and Represents the minimum of two diagonal gradients.
[0089] By comparing the ratios of the detected horizontal / vertical and diagonal gradients, five directional modes are defined in the following equation (8), namely, Dir in the range [0, 4] (inclusive of the endpoints): b Table 1 describes the Dir bThe value and its physical meaning.
[0090]
[0091] Table 1. Direction values and their physical meanings
[0092]
[0093] The video codec (eg, video encoder 200 or video decoder 300) may calculate the activity value Act as:
[0094]
[0095] The video codec can further quantize Act to a range of 0 to 4 (including the endpoints). The quantized value of Act is expressed as
[0096] The quantization process of Act can be defined as follows:
[0097] avg_var=Clip_post(NUM_ENTRY-1, (Act*ScaleFactor)>>shift);
[0098]
[0099] Where NUM_ENTRY is set to 16, ScaleFactor is set to 64, shift is (4 + internal codec bit depth), and ActivityToIndex[NUM_ENTRY] = {0, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4}. The function Clip_post(a, b) returns the smaller value between a and b.
[0100] In general, the video codec can classify each 4×4 luminance block into one of 25 (5 directions × 5 activity levels) categories and assign each luminance block to one of the 25 (5 directions × 5 activity levels) categories based on the block’s Dir b and Act b The value assigns an index to each 4×4 block. The group index can be represented by C and is set to in Act b Quantified value of .
[0101] In some examples, the video codec can apply a geometric transformation to the filter coefficients. For example, in some such examples, for each category, the video codec can signal a set of filter coefficients and cropping values. In order to better distinguish different orientations of blocks marked with the same category index, four geometric transformations are introduced, including no transformation, diagonal transformation, vertical flip, and rotation. Figure 4A-4C An example of a 5×5 filter support with three geometric transformations is described in . In other words, Figure 4A-4C is a conceptual diagram showing example 5×5 filter support with different geometric transformations. Figure 3 and Figure 4A-4C , the formula form of the three additional geometric transformations can be derived as:
[0102]
[0103] In equation (10), K is the size of the filter, and 0≤k, l≤K-1 are the coefficient coordinates, so position (0, 0) is in the upper left corner and position (K-1, K-1) is in the lower right corner. Note that when diamond filter support is used, such as in the ALF of VVC Draft 5, filter coefficients with coordinates outside the filter support are always set to 0. One way to indicate the geometric transform index is to implicitly derive the geometric transform index to avoid additional overhead. In a geometric ALF (GALF), the transform is applied to the filter coefficients f(k, l) based on the gradient value calculated for the block (e.g., by a video codec, such as video encoder 200 or video decoder 300). The relationship between the transform and the four gradients calculated using equations (2)-(5) is described in Table 2 below. In summary, the conversion is based on which of the two gradients (horizontal and vertical, or 45 degree and 135 degree gradients) is larger. Based on this comparison, the video codec can extract more accurate directional information. Therefore, different filtering results can be obtained due to the transformation without increasing the filter coefficient overhead.
[0104] Table 2. Mapping of gradients and transformations
[0105]
[0106] The filter information may be signaled in the bitstream. A luma filter set contains filter information (including filter coefficients and clipping values) for all 25 categories. Fixed filters may be used to predict the filter for each category. A flag may be signaled for each category to indicate whether the category uses a fixed filter as its filter prediction value. If yes (i.e., if the category's flag indicates that the category uses a fixed filter as its filter prediction value), the fixed filter information is signaled.
[0107] In order to reduce the number of bits required to represent the filter coefficients, different categories can be merged. The information about which categories are merged can be sent by sending an index i for each of the 25 categories. C To provide. With the same index i CThe categories of i share the same filter coefficients that are encoded and decoded. For each luma filter set, the mapping between categories and filters is signaled. Index i C The signaled filter can be predicted from the previously signaled filter.
[0108] The bitstream may include a sequence of network abstraction layer (NAL) units. A NAL unit is a syntax structure that includes an indication of the type of data in the NAL unit and bytes containing the data in the form of a raw byte sequence payload (RBSP) interspersed with emulation prevention bits if necessary. Each NAL unit may include a NAL unit header and may encapsulate an RBSP. The NAL unit header may include a syntax element indicating a NAL unit type code. The NAL unit type code specified by the NAL unit header of the NAL unit indicates the type of the NAL unit. The RBSP may be a syntax structure containing an integer byte encapsulated within a NAL unit. In some cases, the RBSP includes zero bits.
[0109] As described above, a bitstream may include representations of coded pictures of video data and associated data. Associated data may include parameter sets. NAL units may encapsulate RBSPs of video parameter sets (VPS), sequence parameter sets (SPS), picture parameter sets (PPS), and adaptation parameter sets (APS). VPS is a syntax structure including syntax elements applied to zero or more complete coded video sequences (CVS). SPS is also a syntax structure including syntax elements applied to zero or more complete CVS. SPS may include syntax elements that identify the VPS active when the SPS is active. Therefore, the syntax elements of VPS may be more generally applicable than the syntax elements of SPS. PPS is a syntax structure including syntax elements applied to zero or more coded pictures. PPS may include syntax elements that identify the SPS active when the PPS is active. The slice header of a slice may include syntax elements that indicate the PPS active when the slice is coded and decoded. APS is a syntax structure containing syntax elements applied to zero or more slices, as determined by zero or more syntax elements found in the slice header. The slice header of a slice may include one or more syntax elements that indicate the APS that is active when the slice is encoded or decoded.
[0110] In VTM-5.0, APS is used to carry ALF filter coefficients in the bitstream. APS can contain a luma filter set or a chroma filter set, or both. A slice group, a slice, or a picture only signals the index of the APS for the current slice group in its slice group, slice, or picture header.
[0111] In VTM-5.0, filters generated from previously coded slice groups, strips, or pictures can be used for the current slice group, stripe, or picture to save the overhead of filter signaling. For luma CTB, the video encoder 200 can select a filter set from a fixed filter set and a filter set from an APS. The video encoder 200 can signal the selected filter set index. All chroma CTBs use filters from the same APS. In the slice group, stripe, or picture header, the video encoder 200 signals the APS for the luma and chroma CTBs of the current slice group, stripe, or picture. A slice is a rectangular area of a CTB within a specific slice column and a specific slice row in a picture.
[0112] In a video decoder of VTM-5.0 (e.g., video decoder 300), the filter coefficients of the ALF are first reconstructed. The cropping index is then decoded for non-zero filter coefficients. For zero-valued filter coefficients, the video decoder infers that the cropping index is zero. Exponential-Golomb (i.e., Exp-Golomb) codec is used for signaling the cropping index. The order of the Exp-Golomb code of the cropping index depends on its position in the filter template.
[0113] Specifically, in VTM-5.0, the APS may include a clip index for the luma component parsed as follows, where alf_luma_clip_idx specifies the clip index:
[0114]
[0115] VVC draft 5 provides the following semantics for the syntax elements shown in the syntax table above:
[0116] alf_luma_clip_min_eg_order_minus1 plus 1 specifies the minimum order of the exp-Golomb code used for luma clipping index signaling. The value of alf_luma_clip_min_eg_order_minus1 shall be in the range of 0 to 6, inclusive.
[0117] alf_luma_clip_eg_order_increase_flag[i] equal to 1 specifies that the minimum order of the exp-Golomb code used for luma clipping index signaling is incremented by 1. alf_luma_clip_eg_order_increase_flag[i] equal to 0 specifies that the minimum order of the exp-Golomb code used for luma clipping index signaling is not incremented by 1.
[0118] The order kClipY[i] of the exp-Golomb code used to decode the value of alf_luma_clip_idx[sfIdx][j] is derived as follows:
[0119] kClipY[i]=(i==0?alf_luma_clip_min_eg_order_minus1+1:kClipY[i-1])+(7-74)
[0120] alf_luma_clip_eg_order_increase_flag[i]
[0121] alf_luma_clip_idx[sfIdx][j] specifies the clip index of the clipping value to be used before multiplying the jth coefficient of the signaled luma filter indicated by sfIdx. When alf_luma_clip_idx[sfIdx][j] is not present, it is inferred to be equal to 0 (no clipping). A bitstream conformance requirement is that the values of alf_luma_clip_idx[sfIdx][j] where sfIdx = 0..alf_luma_clip_idx[sfIdx][j] and j = 0..11 shall be in the range of 0 to 3 (inclusive).
[0122] The order k of the exp-Golomb binarization uek(v) is derived as follows:
[0123] k=kClipY[golombOrderIdxY[j]] (7-75)
[0124] Initialize the variable filterClips[sfIdx][j] as follows, where sfIdx = 0..0..alf_lumanum_filters_signalled_minus1, j = 0..11:
[0125] filterClips[sfIdx][j]=Round(2 (BitDepthY*(4-alfluma_clip_idx[sfIdx][j]) / 4) ) (7-76)
[0126] The luma filter clipping value AlfClipL[adaptation_parameter_set_id] with the element AlfClipL[adaptation_parameter_set_id][filtIdx][j] is derived as follows, where filtIdx=0..NumAlfFilters-1 and j=0..11:
[0127] AlfClipL[adaptation_parameter_set_id][filtIdx][j]=filterClips[alf_luma_coeff_delta_idx[filtIdx]][j] (7-77)
[0128] In the syntax table of the present disclosure, u(n) indicates an unsigned integer using n bits. When the letter n in the descriptor of type u(n) is "v" in the syntax table, the number of bits varies according to the values of other syntax elements. The descriptor tb(v) indicates a truncated binary value, which uses up to maxVal bits, and maxVal is defined in the semantics of the syntax element. The descriptor tu(v) indicates a truncated unary value, which uses up to maxVal bits, and maxVal is defined in the semantics of the syntax element. The descriptor ue(v) indicates an unsigned integer 0th order Exp-Golomb codec syntax element, with the left bit first. The descriptor uek(v) indicates an unsigned integer kth order Exp-Golomb codec syntax element, with the left bit first. The descriptor se(v) indicates a signed integer 0th order Exp-Golomb codec syntax element, with the left bit first.
[0129] VVC draft 5 provides the following parsing process for syntax elements encoded and decoded using the descriptor tb(v):
[0130] This process is called when the descriptor of the syntax element in the syntax table in subclause 7.3 is equal to tb(v).
[0131] The input to this process is the bits from the RBSP and the maximum value maxVal.
[0132] The output of this process is a syntax element value.
[0133] The syntax element with codec tb(v) is truncated binary coded. First determine the range of possible values for the syntax element. The range of this syntax element is 0 to maxVal (inclusive), where MaxVal is greater than or equal to 1. synVal equal to the value of the syntax element is given by the process specified as follows:
[0134]
[0135]
[0136] where the value returned from read_bits(th) is interpreted as the binary representation of an unsigned integer.
[0137] The most significant bit is written first.
[0138] VVC draft 5 provides the following parsing process for syntax elements encoded and decoded using the descriptor tu(v):
[0139] The process is called when the descriptor of the syntax element in the syntax table of subclause 7.3 is equal to tu(v).
[0140] The input to this process is the bits from the RBSP and the maximum value maxVal.
[0141] The output of this process is a syntax element value.
[0142] The syntax element coded as tu(v) is truncated unary. First, the range of possible values for the syntax element is determined. The range of this syntax element is 0 to maxVal (inclusive), where MaxVal is greater than or equal to 1. codeNum equal to the value of the syntax element is given by the process specified as follows:
[0143]
[0144] VVC draft 5 provides the following parsing process for syntax elements encoded and decoded using descriptors ue(v), uek(v), and se(v):
[0145] This process is called when the descriptor of a syntax element in the syntax table is equal to ue(v), uek(v) or se(v).
[0146] The input to this process is the bits from the RBSP.
[0147] The output of this process is a syntax element value.
[0148] Syntax elements coded as ue(v) or se(v) are Exp-Golomb coded with order k equal to 0, and syntax elements coded as uek(v) are Exp-Golomb coded with order k equal to 0. The parsing process for these syntax elements starts by reading the bits starting from the current position in the bitstream up to and including the first non-zero bit, and counting the number of leading bits equal to 0. This process
[0149] The regulations are as follows:
[0150] leadingZeroBits=-1
[0151] for(b=0;!b;leadingZeroBits++) (9-1)
[0152] b = read_bits(1)
[0153] Then the variable codeNum is assigned as follows:
[0154] codeNum=(2 leadingZeroBits -1)*2 k +read_bits(leadingZeroBits+k) (9-2)
[0155] The value returned from read_bits(1eadingZeroBits) is interpreted as the binary representation of an unsigned integer with the most significant bit written first.
[0156] Table 9-1 illustrates the structure of an order-0 Exp-Golomb code by dividing the bit string into "prefix" and "suffix" bits. The "prefix" bits are those bits that are parsed for the calculation of leadingZeroBits as specified above, and are shown as 0 or 1 in the bit string of Table 9-1. The "suffix" bits are those bits that are parsed in the calculation of codeNum, and are shown as xi in Table 9-1, where i is in the range of 0 to leadingZeroBits-1 (inclusive). Each x i Equal to 0 or 1.
[0157] Table 9-1 - Bit strings with "prefix" and "suffix" bits and assignment to codeNum ranges (informative)
[0158] Bit string format Range of codeNum 1 0 <![CDATA[01x0]]> 1..2 <![CDATA[001 x1 x0]]> 3..6 <![CDATA[0001 x2 x1 x0]]> 7..14 <![CDATA[00001 x3 x2 x1 x0]]> 15..30 <![CDATA[000001 x4 x3 x2 x1 X0]]> 31..62 … …
[0159] Table 9-2 explicitly shows the assignment of bit strings to codeNum values.
[0160] Table 9-2 - Exp-Golomb bit string and codeNum in explicit form and used as ue(v) (informative)
[0161] Bit string codeNum 1 0 010 1 011 2 00100 3 00101 4 00110 5 00111 6 0001000 7 0001001 8 0001010 9 … …
[0162] From the descriptor, the values of the syntax elements are derived as follows:
[0163] -If the syntax element is coded as ue(v), the value of the syntax element is equal to codeNum.
[0164] - Otherwise (the syntax element is encoded or decoded as se(v)), the value of the syntax element is derived by invoking the mapping procedure for the signed Exp-Golomb code specified in clause 9.2.2 with codeNum as input.
[0165] 9.2.2 Mapping process of signed Exp-Golomb codes
[0166] The input to this process is the codeNum specified in clause 9.2.
[0167] The output of this process is the value of the syntax element encoded as se(v).
[0168] The syntax elements are assigned to codeNum by sorting them in increasing order by their absolute value and representing positive values of a given absolute value with lower codeNum. Table 9-3 provides the assignment rules.
[0169] Table 9-3 - Assignment of syntax elements to codeNum for the signed Exp-Golomb codec syntax element se(v)
[0170] codeNum Syntax element value 0 0 1 1 2 -1 3 2 4 -2 5 3 6 -3 k <![CDATA[(-1) k+1 Ceil(k÷2)]]>
[0171] In VVC draft 5, the clipping index of the chroma component is parsed as follows:
[0172]
[0173] VVC draft 5 provides the following semantics for the syntax elements shown in the syntax table above:
[0174] alf_chroma_clip_flag equal to 0 specifies that linear adaptive loop filtering is applied to chroma components; alf_chroma_clip_flag equal to 1 specifies that non-linear adaptive loop filtering is applied to chroma components. When not present, alf_chroma_clip_flag is inferred to be equal to 0.
[0175] alf_chroma_min_eg_order_minus1 plus 1 specifies the minimum order of the exp-Golomb code for chroma filter coefficient signaling. The value of alf_chroma_min_eg_order_minus1 shall be in the range of 0 to 6, inclusive.
[0176] alf_chroma_eg_order_increase_flag[i] equal to 1 specifies that the minimum order of the exp-Golomb code for chroma filter coefficient signaling is incremented by 1. alf_chroma_eg_order_increase_flag[i] equal to 0 specifies that the minimum order of the exp-Golomb code for chroma filter coefficient signaling is not incremented by 1
[0177] The order expGoOrderC[i] of the exp-Golomb code used to decode the value of alf_chroma_coeff_abs[j] is derived as follows:
[0178] expGoOrderC[i]=(i==0?alf_chroma_min_eg_order_minus1+1:expGoOrderC[i-1])+
[0179] (7-78)
[0180] alf_chroma_eg_order_increase_flag[i] (7-79)
[0181] alf_chroma_coeff_abs[j] specifies the absolute value of the j-th chroma filter coefficient. When alf_chroma_coeff_abs[j] is not present, it is inferred to be equal to 0. A bitstream conformance requirement is that the value of alf_chroma_coeff_abs[j] shall be between 0 and 2. 7 -1 (including the endpoints).
[0182] The order k of the exp-Golomb binarization uek(v) is derived as follows:
[0183] golombOrderIdxC[]={0, 0, 1, 0, 0, 1} (7-80)
[0184] k=expGoOrderC[golombOrderIdxC[j]] (7-81)
[0185] alf_chroma_coeff_sign[j] specifies the sign of the j-th chroma filter coefficient as follows:
[0186] - If alf_chroma_coeff_sign[j] is equal to 0, the corresponding chroma filter coefficient has a positive value.
[0187] - Otherwise (alf_chroma_coeff_sign[j] is equal to 1), the corresponding chroma filter coefficient has a negative value.
[0188] When alf_chroma_coeff_sign[j] is not present, it is inferred to be equal to 0.
[0189] With element AlfCoeff C [adaptation_parameter_set_id][j] chroma filter coefficient AlfCoeff C [adaptation_parameter_set_id] (where j=0..5) is derived as follows:
[0190] Alf Coeff C [adaptation_parameter_set_id][j]=alf_chroma_coeff_abs[j]*(7-82)
[0191] (1-2*alf_chroma_coeff_sign[j])
[0192] The bitstream consistency requirement is AlfCoeff C [adaptation_parameter_set_id][j]
[0193] (where j = 0..5) should be between -2 7 -1 to 2 7 -1 (including the endpoints).
[0194] alf_chroma_clip_min_eg_order_minus1 plus 1 specifies the minimum order of the exp-Golomb code for chroma clipping index signaling. The value of alf_chroma_clip_min_eg_order_minus1 shall be in the range of 0 to 6, inclusive.
[0195] alf_chroma_clip_eg_order_increase_flag[i] equal to 1 specifies that the minimum order of the exp-Golomb code for chroma clipping index signaling is incremented by 1. alf_chroma_clip_eg_order_increase_flag[i] equal to 0 specifies that the minimum order of the exp-Golomb code for chroma clipping index signaling is not incremented by 1.
[0196] The order expGoOrderC[i] of the exp-Golomb code used to decode the value of alf_chroma_clip_idx[j] is derived as follows:
[0197] kClipC[i]=(i==0?alf_chroma_clip_min_eg_order_minus1+1:kClipC[i-1])+ (7-83)
[0198] alf_chroma_clip_eg_orderincrease_flag[i] (7-84)
[0199] alf_chroma_clip_idx[j] specifies the clip index of the clipping value to be used before multiplying the jth coefficient of the chroma filter. When alf_chroma_clip_idx[j] is not present, it is inferred to be equal to 0 (no clipping). A requirement for bitstream conformance is that alf_chroma_clip_idx[j]
[0200] The value of (where j = 0..5) should be in the range of 0 to 3 (inclusive).
[0201] The order k of the exp-Golomb binarization uek(v) is derived as follows:
[0202] k=kClipC[golombOrderIdxC[j]] (7-85)
[0203] With element AlfClip C [adaptation_parameter_set_id][j] (where j=0..5) chroma filter clipping value AlfClip C [adaptation_parameter_set_id] is derived as follows:
[0204] AlfClip C [adaptation_parameter_set_id][j]=Round(2 (BitDepthC-8) *2 (8 *(3-alf_chroma_clip_idx[j]) / 3) ) (7-86)
[0205] As described above, to resolve the cropping index, the filter coefficients are first reconstructed. In addition, recursive exp-Golomb codec is used to resolve the cropping index. Reconstructing the filter coefficients first and using recursive exp-Golomb codec may increase the delay in the video decoder 300.
[0206] Aspects of the present disclosure describe examples that can simplify parsing of crop indexes for both luma and chroma components. Aspects and examples of the present disclosure can be used alone or in combination. Aspects of the present disclosure can reduce delays in the video decoder 300, and in some examples, reduce delays in the decoding path of the video encoder 200.
[0207] In a first aspect of the present disclosure, the cropping index clipIdx(k, l) is always signaled / parsed (e.g., by the video encoder 200 or the video decoder 300, respectively) even if the corresponding filter coefficient f(k, l) is zero. In other words, the condition that the corresponding filter coefficient is non-zero can be removed. For example, referring to the syntax table above, the lines "if(filtCoeff[sfIdx][j])" and "if(alf_chroma_coeff_abs[j])" can be removed. In this way, the video codec (e.g., the video encoder 200 or the video decoder 300) can encode and decode the ALF cropping index regardless of the value of the corresponding filter coefficient of the ALF. For example, the video codec can determine that the corresponding filter coefficient is equal to 0, and still encode and decode (e.g., encode or decode) the ALF cropping index.
[0208] In the second aspect of the present disclosure, the recursive exp-Golomb codec is removed. For example, in an example of the second aspect of the present disclosure, a fixed length codec may be used to signal the pruning index, and let x be the length of each codeword, as shown in the following syntax table.
[0209]
[0210] In contrast to VVC draft 5 where alf_luma_clip_idx and alf_chroma_clip_idx have the descriptor uek(v) (denoting unsigned integer k-order Exp-Golomb codec), in this example, alf_luma_clip_idx and alf_chroma_clip_idx have the descriptor u(x) (denoting unsigned integer using x bits). The syntax table of this example may form part of the syntax table of the APS.
[0211] Therefore, in this example, the video codec (eg, video encoder 200 or video decoder 300) may encode and decode the ALF crop index as a fixed-length unsigned integer. In addition, the video codec may apply ALF to a block of a picture of the video data based on the ALF crop index.
[0212] In some examples of the second aspect of the present disclosure, truncated binary codec may be used to signal a clipping index. For example, alf_luma_clip_idx and / or alf_chroma_clip_idx may have a descriptor tb(v).
[0213] In some examples of the second aspect of the present disclosure, a 0th order Golomb may be used to signal a clipping index. For example, alf_luma_clip_idx and / or alf_chroma_clip_idx may have a descriptor ue(v).
[0214] In some examples of the second aspect of the present disclosure, an x-order Golomb may be used to signal a cropping index, where x is the order of the Golomb codec. In some such examples, x may depend on the component. In other words, the x value may be different for luma and chroma components. For all cropping indices in one or more components, x may be the same. In other examples, x may depend on the filter index, and for all cropping indices in one or more filters, x may be the same.
[0215] In some examples of the second aspect of the present disclosure, truncated unary codec may be used to signal a clipping index. For example, alf_luma_clip_idx and / or alf_chroma_clip_idx may have a descriptor tu(v).
[0216] In some examples of the second aspect of the present disclosure, the coding method may be different between color components. For example, alf_luma_clip_idx and alf_chroma_clip_idx may be coded and decoded using different codecs of truncated binary, truncated unary, using n-bit unsigned integer, unsigned integer 0-order Exp-Golomb codec, and unsigned integer k-order Exp-Golomb codec.
[0217] Thus, a video codec (e.g., video encoder 200 or video decoder 300) may encode (e.g., encode or decode) an ALF cropping index as one of: a fixed-length unsigned integer (descriptor u(x)), a truncated binary value (descriptor tb(v)), a truncated unary value (descriptor tu(v)), or an unsigned 0th order Exp-Golomb codec value (descriptor ue(v)). The video codec may apply the ALF to a block of a picture of the video data based on the ALF cropping index. The video codec may perform this operation on one or both of the luma component and the chroma component. Thus, the ALF cropping index may be a luma ALF cropping index or a chroma ALF cropping index. With respect to the first aspect of the present disclosure, the video codec may encode and decode the ALF cropping index regardless of the value of the corresponding filter coefficient of the ALF.
[0218] In some examples, as described above, to apply ALF based on the ALF cropping index, the video codec may determine a cropping value based on the cropping index as shown in equation (1′) or (1″). As described above, the video codec may then use the cropping value in equation (1). As described elsewhere in the present disclosure, or otherwise, the video codec may determine the filter coefficients.
[0219] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of values of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values of syntax elements in a bitstream. Typically, signaling refers to generating values in a bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 substantially in real time or in non-real time (such as may occur when storing syntax elements to the storage device 112 for later retrieval by the destination device 116).
[0220] Figure 5A and Figure 5B is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding codec tree unit (CTU) 132. Solid lines represent quadtree partitions, and dashed lines indicate binary tree partitions. At each partition (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where 0 indicates horizontal partitioning and 1 indicates vertical partitioning in this example. For quadtree partitioning, there is no need to indicate the partition type because the quadtree node divides the block horizontally and vertically into 4 sub-blocks of equal size. Therefore, the video encoder 200 can encode syntax elements (such as partition information) for the regional tree level (i.e., first level) (i.e., solid line) of the QTBT structure 130 and syntax elements (such as partition information) for the prediction tree level (i.e., second level) (i.e., dashed line) of the QTBT structure 130, and the video decoder 300 can decode it. The video encoder 200 may encode video data (such as prediction and transform data) of a CU represented by a terminal leaf node of the QTBT structure 130 , and the video decoder 300 may decode it.
[0221] generally, Figure 5BThe CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes of the QTBT structure 130 at the first level and the second level. These parameters may include a CTU size (indicating the size of the CTU 132 in a sample), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).
[0222] 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 segmented according to a quadtree segmentation. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such a node as including a parent node and a child node with a solid line for branching. 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 segmented by the corresponding binary tree. The binary tree partitioning of a node may be iterated until the node generated by the partitioning reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line for branching. The binary tree leaf node is called a codec unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As described above, a CU may also be referred to as a "video block" or "block".
[0223] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chrominance samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, it will not be further divided by the binary tree because its size exceeds MaxBTSize (i.e., 64×64 in this example). Otherwise, the quadtree leaf node will be further divided by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it means that no further vertical splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further horizontal splitting is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.
[0224] Figure 6 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 6 The above description is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 in the context of video codec standards such as the H.265 (HEVC) video codec standard and the H.266 (VVC) video codec standard under development. However, the techniques of this disclosure are not limited to these video codec standards and are generally applicable to video encoding and decoding.
[0225] exist Figure 6In the example of , 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 in one or more processors or processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.
[0226] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1 ) receives video data stored in the video data memory 230. DPB218 can act as a reference picture memory that stores reference video data for use by the video encoder 200 when predicting subsequent video data. The video data memory 230 and DPB 218 can 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 DPB 218 can be provided by the same memory device or separate memory devices. In various examples, as shown in the figure, the video data memory 230 can be on the chip with other components of the video encoder 200, or off the chip relative to these components.
[0227] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200, unless specifically described as such, or to memory external to the video encoder 200, unless specifically described as such. Instead, references to the video data memory 230 should be understood as references to memory storing video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage of outputs from the various units of the video encoder 200 .
[0228] Figure 6Various units are shown to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are preset on operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in operations that can be performed. For example, a programmable circuit can execute software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is 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 units may be integrated circuits.
[0229] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0230] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve a picture 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 original video data to be encoded.
[0231] 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. As an 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.
[0232] The mode selection unit 202 generally coordinates multiple encoding processes to test combinations of encoding parameters and the resulting rate-distortion values of such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode of the CUs, the transform type of the residual data of the CUs, the quantization parameter of the residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.
[0233] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0234] Typically, 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 the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may perform a 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). Specifically, the motion estimation unit 222 may calculate a value indicating how similar the potential reference block is to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block being considered. The motion estimation unit 222 may identify the reference block having the lowest value obtained from these calculations, which indicates the reference block that most closely matches the current block.
[0235] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position 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, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, and for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vector has fractional sample precision, the motion compensation unit 224 may interpolate the values of the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by corresponding motion vectors and combine the retrieved data by, for example, sample-by-sample averaging or weighted averaging.
[0236] As another example, for intra prediction or intra prediction codec, the intra prediction unit 226 can generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values of the adjacent samples and pad these calculated values in a defined direction across the current block to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average value of the adjacent samples of the current block and generate a prediction block to include the obtained average value for each sample of the prediction block.
[0237] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original, undecoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the 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.
[0238] In the example where the mode selection unit 202 partitions the 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 of various sizes. As described above, the size of the CU may refer to the size of the luma codec block of the CU, and the size of the 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 PU sizes of 2N×2N or N×N for intra-frame prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N or the like for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.
[0239] In an example where the mode selection unit does not further partition the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As described above, the size of a CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2N×2N, 2N×N, or N×2N.
[0240] For other video codec techniques, such as intra block copy mode codec, affine mode codec, and linear model (LM) mode codec, as a few examples, the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the codec technique. In some examples, such as palette mode codec, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In this mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0241] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction block. Then, the residual generation unit 204 generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0242] The 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"). The transform processing unit 206 can apply various transforms to the residual block to form the transform coefficient block. For example, the transform processing unit 206 can apply a discrete cosine transform (DCT), a directional transform, a Karl-Lof transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 can perform multiple transforms on the residual block, for example, a primary transform and a secondary transform, such as a rotation transform. In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0243] 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 information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.
[0244] 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 generate a reconstructed block corresponding to the current block (although it may have a certain degree of distortion) based on the reconstructed residual block and the prediction 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 of the prediction block generated by the free mode selection unit 202 to generate a reconstructed block.
[0245] The filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operation of the filter unit 216 may be skipped. According to an example of the present disclosure, the filter unit 216 may apply the ALF to a block of a picture of the video data based on an ALF cropping index that is encoded and decoded as a fixed-length unsigned integer.
[0246] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture from the DPB 218, which is formed by the reconstructed (and possibly filtered) blocks to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current picture to intra-frame predict other blocks in the current picture.
[0247] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements (which are another example of video data) to generate entropy-encoded data. For example, the entropy coding 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 coding unit 220 may operate in a bypass mode, in which the syntax elements are not entropy encoded.
[0248] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or a picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0249] The operations described above are described with respect to blocks. Such descriptions should be understood as operations on luma codec blocks and / or chroma codec blocks. As described above, in some examples, the luma codec blocks and chroma codec blocks are the luma and chroma components of a CU. In some examples, the luma codec blocks and chroma codec blocks are the luma and chroma components of a PU.
[0250] In some examples, operations performed with respect to luma codec blocks need not be repeated for chroma codec blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma codec blocks need not be repeated in order to identify MVs and reference pictures for chroma blocks. Instead, the MVs of luma codec blocks may be scaled to determine the MVs of chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma codec blocks and chroma codec blocks.
[0251] The video encoder 200 represents an example of a device configured to encode video data, the device including a memory configured to store the video data, and one or more processing units implemented in a circuit, the processing unit being configured to encode and decode the ALF crop index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0-order Exp-Golomb codec value. In other words, the video encoder 200 may include an ALF crop index syntax element in a bitstream that includes an encoded representation of the video data, wherein the ALF crop index syntax element is formatted as one of these types of data. In some examples, the ALF crop index is a luma ALF crop index (e.g., alf_luma_clip_idx or another syntax element) or a chroma ALF crop index (e.g., alf_chroma_clip_idx or another syntax element). In addition, the processing unit of the video encoder 200 may apply the ALF to a block of a picture of the video data based on the ALF crop index. For example, the filter unit 216 of the video encoder 200 may apply the ALF.
[0252] Figure 7 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 7 It is provided for the purpose of explanation and does not limit the techniques widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 according to the techniques of VVC and HEVC. However, the techniques of this disclosure can be performed by video codec devices configured for other video codec standards.
[0253] exist Figure 7In the example of , the video decoder 300 includes a codec 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 in one or more processors or processing circuits. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.
[0254] 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 predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette codec unit, an intra block copy codec unit (which may form part of the motion compensation unit 316), an affine codec unit, a linear model (LM) codec unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0255] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. For example, the video data stored in the CPB memory 320 may be, for example, from the computer-readable medium 110 ( Figure 1 ). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of encoded and decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, which 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 DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or a separate memory device. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to these components.
[0256] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1) retrieves the encoded and decoded video data. That is, the memory 120 may utilize the CPB memory 320 to store data as described above. Similarly, when some or all of the functions of the video decoder 300 are implemented in software to be executed by the processing circuitry of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.
[0257] Figure 7 The various units shown are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 6 , fixed-function circuits refer to circuits that provide specific functions and are preset on the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is 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 units may be integrated circuits.
[0258] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on a programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0259] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce 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.
[0260] Typically, 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 (where the block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0261] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block, as well as transform information, such as a quantization parameter (QP) and / or (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization to be applied by the inverse quantization unit 306. For example, the inverse quantization unit 306 may perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0262] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block 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 Karl-Lof transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.
[0263] In addition, prediction processing unit 304 generates a prediction block based on 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 can generate the prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which the reference block is retrieved, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in a manner substantially similar to that described with respect to motion compensation unit 224 ( Figure 6 ) describes the method to perform the inter-frame prediction process.
[0264] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 can generally generate a prediction block in a manner substantially similar to that described with respect to the intra-prediction unit 226 ( Figure 6 The intra prediction process is performed in the manner described in ). The intra prediction unit 318 can retrieve the data of the neighboring samples of the current block from the DPB 314.
[0265] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
[0266] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edge of the reconstructed block. The operation of the filter unit 312 need not be performed in all examples. According to an example of the present disclosure, the filter unit 312 may apply the ALF to a block of a picture of the video data based on an ALF cropping index that is encoded and decoded as a fixed-length unsigned integer.
[0267] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block to the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block to 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-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output the decoded picture from the DPB 314 for subsequent display on a display device (e.g., Figure 1 The display device 118) is presented.
[0268] In this way, 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 a circuit that is configured to decode the ALF crop index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0-order Exp-Golomb codec value. In other words, the video decoder 300 can obtain an ALF crop index syntax element from a bitstream and interpret the ALF crop index syntax element as one of these types of data. In some examples, the ALF crop index is a luma ALF crop index (e.g., alf_luma_clip_idx or another syntax element) or a chroma ALF crop index (e.g., alf_chroma_clip_idx or another syntax element). In addition, the processing unit of the video decoder 300 can apply the ALF to a block of a picture of the video data based on the ALF crop index. For example, the filter unit 312 of the video decoder 300 can apply the ALF.
[0269] Figure 8 2 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and Figure 6 It should be understood that other devices may be configured to perform similar Figure 8 method.
[0270] In this example, the video encoder 200 initially predicts a current block (350). For example, the video encoder 200 may form a prediction 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 the difference between the original, unencoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may encode the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy encoded data of the block (360).
[0271] In addition, Figure 8 In the example of , in order to support the prediction of the subsequent block, the video encoder 200 can reconstruct the current block (362). For example, the video encoder 200 can inverse quantize the transform coefficients of the current block, apply an inverse transform to the transform coefficients to generate residual data, and add the residual data of the current block to the prediction block of the current block. In addition, the video encoder 200 can apply one or more filters to the reconstructed block of the current picture (364). For example, the video encoder 200 can apply ALF to the reconstructed block of the current picture. According to the technology of the present disclosure, in order to support the corresponding application of ALF at the video decoder 300, the video encoder 200 can encode the ALF cropping index. The video encoder 200 (e.g., the filter unit 216 of the video encoder 200) can apply ALF to the block (e.g., the reconstructed block) of the current picture based on the ALF cropping index. According to the technology of the present disclosure, the video encoder 200 can encode and decode the ALF cropping index into a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0-order Exp-Golomb codec value.
[0272] Fig. 9 1 is a flowchart illustrating an example method for decoding a current block of a current picture of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and Figure 7 ), but it should be understood that other devices may be configured to perform similar Fig. 9 method.
[0273] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data corresponding to a transform coefficient of a residual block of the current block (370). The video decoder 300 may also receive non-entropy coded data in a bitstream. The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce the transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block to calculate a prediction block for the current block. The video decoder 300 may then inverse scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 (e.g., an inverse quantization unit 306 and an inverse transform processing unit 308) may then inverse quantize and inverse transform the transform coefficients to generate a residual block (378). The video decoder 300 may decode the current block (380) by combining the prediction block and the residual block.
[0274] In addition, Fig. 9 In an example of , after combining the prediction block and the residual block to reconstruct the current block, the video decoder 300 (e.g., the filter unit 312 of the video decoder 300) may apply one or more filters to the reconstructed block of the current picture (382). For example, the video decoder 300 may apply the ALF to the reconstructed block of the current picture. The video decoder 300 may decode the ALF cropping index and, based on the ALF cropping index, apply the ALF to the block (e.g., the reconstructed block) of the current picture. According to the technology of the present disclosure, the video decoder 300 may decode the ALF cropping index as a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th order Exp-Golomb codec value.
[0275] Fig.10 is a flow chart illustrating example operations for encoding and decoding video data according to one or more techniques of this disclosure. Fig.10 In an example, a video codec (e.g., video encoder 200 or video decoder 300) may encode (e.g., encode or decode) an adaptive loop filter (ALF) crop index as a fixed-length unsigned integer (400). For example, when the video codec is a video encoder such as video encoder 200, the video encoder may encode the ALF crop index by including the fixed-length unsigned integer representing the ALF crop index in a bitstream. In an example where the video codec is a video decoder such as video decoder 300, the video decoder may decode the ALF crop index by parsing the fixed-length unsigned integer representing the ALF crop index from the bitstream.
[0276] In addition, Fig.10In an example of , a video codec may apply an ALF to a block of a picture of video data based on an ALF cropping index (402). For example, the video codec may use the ALF cropping index to look up or calculate a set of cropping values (e.g., -c(k, l) and c(k, l)), e.g., using equation (1') or equation (1") above. The video codec may then use the set of cropping values to apply an ALF to reconstructed samples of the block (e.g., as shown in equation (1) above). The video codec may apply the ALF as Figure 8 Action 364 or Fig. 9 The ALF cropping index may be a luma ALF cropping index (e.g., alf_luma_clip_idx), in which case the video codec uses the luma ALF cropping index to determine a cropping value for applying the ALF to the luma samples. In some examples, the ALF cropping index is a luma ALF cropping index, in which case the video codec uses the luma ALF cropping index (e.g., alf_chroma_clip_idx) to determine a cropping value for applying the ALF to the luma samples. Applying the ALF to a block (e.g., a 4×4 block) of a picture may include determining ALF filter coefficients for the block, determining a cropping value for at least one sample of the block using the ALF cropping index, and using the cropping value and the ALF filter coefficients, e.g., as described in equation (1).
[0277] Furthermore, in some examples, the video codec may encode the luma ALF cropping index as a first fixed-length unsigned integer and may encode the chroma ALF cropping index as a second fixed-length unsigned integer. In such an example, the video codec may apply ALF to luma blocks of a picture based on the luma ALF cropping index and may apply ALF to chroma blocks of a picture based on the chroma ALF cropping index.
[0278] The following is a non-limiting list of examples of one or more techniques in accordance with the present disclosure.
[0279] Example 1. A method for encoding and decoding video data, the method comprising: encoding and decoding an adaptive loop filter (ALF) cropping index into one of the following: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and applying an ALF filter to a block of a picture of the video data based on the ALF cropping index.
[0280] Example 2. The method of Example 1, wherein the ALF clipping index is a luma ALF clipping index.
[0281] Example 3. The method of Example 1, wherein the ALF clipping index is a chroma ALF clipping index.
[0282] Example 4. A method as in Example 1, wherein: the ALF cropping index is a luma ALF cropping index, the block of the picture is a luma block, and the method further comprises: encoding and decoding the chroma ALF cropping index into one of: a fixed-length unsigned integer, a truncated binary value, a truncated unary value, or an unsigned 0th-order Exp-Golomb codec value; and based on the ALF cropping index, applying the ALF filter to the chroma block of the picture of the video data.
[0283] Example 5. The method of Example 4, wherein the luma ALF clipping index and the chroma ALF clipping index are encoded as different values among: fixed-length unsigned integers, truncated binary values, truncated unary values, or unsigned 0th-order Exp-Golomb codec values.
[0284] Example 6. The method of any of Examples 1-5, wherein encoding and decoding the ALF cropping index comprises encoding and decoding the ALF cropping index regardless of the value of the corresponding filter coefficient of the ALF filter.
[0285] Example 7. The method of any one of Examples 1-6, wherein encoding and decoding includes decoding.
[0286] Example 8. The method of any one of Examples 1-6, wherein encoding and decoding includes encoding.
[0287] Example 9. A device for encoding and decoding video data, the device comprising one or more components for performing the method of any of Examples 1-8.
[0288] Example 10. The apparatus of Example 9, wherein the one or more components include one or more processors implemented in circuitry.
[0289] Example 11. The device of any of Examples 9 and 10 further includes a memory for storing video data.
[0290] Example 12. The device of any of Examples 9-11, further comprising a display configured to display the decoded video data.
[0291] 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.
[0292] Example 14. The device of any of Examples 9-13, wherein the device comprises a video decoder.
[0293] Example 15. The device of any of Examples 9-14, wherein the device comprises a video encoder.
[0294] Example 16. A computer-readable storage medium having instructions stored thereon, which, when executed, cause one or more processors to perform the method of any of Examples 1-8.
[0295] Example 17. An apparatus for encoding and decoding video data, the apparatus comprising means for performing the method of any of Examples 1-8.
[0296] Example 18. A computer-readable data storage medium having instructions stored thereon, which when executed, cause a computing device to perform the method of any of Examples 1-8.
[0297] It should be appreciated that, depending on the examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary for the practice of the techniques). In addition, in some examples, actions or events may be performed simultaneously, e.g., by multithreading, interrupt handling, or multiple processors, rather than being performed sequentially.
[0298] In one or more examples, the functions described 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. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including any media that facilitates (e.g., according to a communication protocol) transferring a computer program from one place to another. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures to implement the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0299] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection is properly referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit instructions from a website, server or other remote source, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is 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 temporary media, but are directed to non-temporary tangible storage media. The disk and optical disk used herein include compact disc (CD), laser optical disc, optical optical disc, digital versatile disc (DVD), floppy disk and blue-ray disc, wherein the disk usually reproduces data magnetically, and the optical disc reproduces data optically with a laser. The above combination should also be included in the scope of computer-readable media.
[0300] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, these techniques may be fully implemented in one or more circuits or logic elements.
[0301] The techniques of the present disclosure may be implemented in a 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 emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, 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 in combination with appropriate software and / or firmware.
[0302] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for encoding and decoding video data, the method include: For each corresponding position of a plurality of positions in a filter support, decoding an adaptive loop filter (ALF) pruning index for the corresponding position in the filter support as a fixed-length unsigned integer regardless of a value of a corresponding filter coefficient of the ALF; as well as Applying an ALF to a block of a picture of the video data, wherein applying the ALF to the block comprises: for each corresponding sample of the block: For each corresponding position in the plurality of positions in the filter support: determining a set of clipping values for a corresponding position in the filter support using an ALF clipping index for the corresponding position in the filter support; clipping the values of the samples at the corresponding positions in the filter support using the clipping values for the corresponding positions in the filter support, wherein the clipping values for the corresponding positions in the filter support specify upper and lower limits for the values of the samples at the corresponding positions in the filter support; and generating a product for the corresponding position in the filter support by multiplying the clipping value of the sample at the corresponding position in the filter support by the filter coefficient for the corresponding position in the filter support; and A filter value for a corresponding sample of the block is determined based on a sum of products of a value of the corresponding sample of the block and a plurality of positions in the filter support.
2. The method according to claim 1, in, The ALF clipping index is a luma ALF clipping index.
3. The method according to claim 1, in, The ALF clipping index is a chroma ALF clipping index.
4. The method according to claim 1, in: The ALF cropping index is a luma ALF cropping index, and the block of the picture is a luma block, and The method further comprises: Decodes the chroma ALF clipping index as a fixed-length unsigned integer; and Based on the chroma ALF cropping index, the ALF is applied to chroma blocks of the picture.
5. The method according to claim 1, in, The method also includes determining that a corresponding filter coefficient of the ALF is equal to zero.
6. The method according to claim 1, in, Encoding and decoding include decoding.
7. The method according to claim 5, in, Encoding and decoding the ALF cropping index includes parsing the fixed-length unsigned integer from a bitstream including an encoded representation of the video data.
8. The method according to claim 1, in, Codec includes encoding.
9. The method according to claim 8, in, Encoding and decoding the ALF cropping index includes including the fixed-length unsigned integer in a bitstream, the bitstream including an encoded representation of the video data.
10. A device for encoding and decoding video data, the device include: A memory configured to store the video data; as well as One or more processors implemented in circuitry, the one or more processors configured to: For each corresponding position of a plurality of positions in a filter support, decoding an adaptive loop filter (ALF) pruning index for the corresponding position in the filter support as a fixed-length unsigned integer regardless of a value of a corresponding filter coefficient of the ALF; as well as Applying an ALF to a block of a picture of the video data, wherein applying the ALF to the block comprises: for each corresponding sample of the block: For each corresponding position in the plurality of positions in the filter support: determining a set of clipping values for a corresponding position in the filter support using an ALF clipping index for the corresponding position in the filter support; clipping the values of the samples at the corresponding positions in the filter support using the clipping values for the corresponding positions in the filter support, wherein the clipping values for the corresponding positions in the filter support specify upper and lower limits for the values of the samples at the corresponding positions in the filter support; and generating a product for the corresponding position in the filter support by multiplying the clipping value of the sample at the corresponding position in the filter support by the filter coefficient for the corresponding position in the filter support; and A filter value for a corresponding sample of the block is determined based on a sum of products of a value of the corresponding sample of the block and a plurality of positions in the filter support.
11. The device according to claim 10, in, The ALF clipping index is a luma ALF clipping index.
12. The device according to claim 10, in, The ALF clipping index is a chroma ALF clipping index.
13. The device according to claim 10, in: The ALF cropping index is a luma ALF cropping index, and the block of the picture is a luma block, and The one or more processors are further configured to: Decodes the chroma ALF clipping index as a fixed-length unsigned integer; and Based on the chroma ALF cropping index, the ALF is applied to chroma blocks of the picture.
14. The device according to claim 10, in, The one or more processors are configured to determine that a corresponding filter coefficient of the ALF is equal to zero.
15. The device according to claim 10, in, To encode and decode the ALF crop index, the one or more processors are configured to parse the fixed-length unsigned integer from a bitstream comprising an encoded representation of the video data.
16. The device according to claim 10, in, To encode and decode the ALF cropping index, the one or more processors are configured to include the fixed-length unsigned integer in a bitstream including an encoded representation of the video data.
17. The device of claim 10, further comprising a display configured to display the decoded video data.
18. The device according to claim 10, in, The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
19. The device according to claim 10, in, The apparatus comprises a video decoder.
20. The device according to claim 10, in, The apparatus includes a video encoder.
21. A device for encoding and decoding video data, the device include: means for decoding, for each corresponding position of a plurality of positions in a filter support, an adaptive loop filter ALF pruning index for the corresponding position in the filter support as a fixed-length unsigned integer regardless of the value of a corresponding filter coefficient of the ALF; as well as Means for applying an ALF to a block of a picture of the video data, wherein applying the ALF to the block comprises: for each corresponding sample of the block: For each corresponding position in the plurality of positions in the filter support: means for determining a set of clipping values for a corresponding position in the filter support using an ALF clipping index for the corresponding position in the filter support; means for clipping the values of samples at the corresponding positions in the filter support using clipping values for the corresponding positions in the filter support, wherein the clipping values for the corresponding positions in the filter support specify upper and lower limits for the values of samples at the corresponding positions in the filter support; and means for generating a product for the corresponding position in the filter support by multiplying the clipping value of the sample at the corresponding position in the filter support by the filter coefficient for the corresponding position in the filter support; and Means for determining a filter value for a corresponding sample of the block based on a sum of products of a value for the corresponding sample of the block and a plurality of positions in the filter support.
22. The device according to claim 21, in, The ALF clipping index is a luma ALF clipping index.
23. The device according to claim 21, in, The ALF clipping index is a chroma ALF clipping index.
24. The device according to claim 21, in: The ALF cropping index is a luma ALF cropping index, and the block of the picture is a luma block, and The device also includes: means for encoding and decoding a chroma ALF clipping index as a fixed-length unsigned integer; and Means for applying the ALF to chroma blocks of the picture based on the chroma ALF clipping index.
25. The apparatus of claim 21, further comprising means for determining that a corresponding filter coefficient of the ALF is equal to zero.
26. The apparatus according to claim 21, in, The means for encoding and decoding comprises means for parsing fixed-length unsigned integers from a bitstream comprising an encoded representation of said video data.
27. The apparatus according to claim 21, in, The means for encoding and decoding comprises means for including the fixed-length unsigned integer in a bitstream, the bitstream comprising an encoded representation of the video data.
28. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: For each corresponding position of a plurality of positions in a filter support, an adaptive loop filter ALF pruning index for the corresponding position in the filter support is decoded as a fixed-length unsigned integer regardless of the value of the corresponding filter coefficient of the ALF ; as well as Applying an ALF to a block of a picture of video data, wherein applying the ALF to the block comprises: for each corresponding sample of the block: For each corresponding position in the plurality of positions in the filter support: determining a set of clipping values for a corresponding position in the filter support using an ALF clipping index for the corresponding position in the filter support; clipping the values of the samples at the corresponding positions in the filter support using the clipping values for the corresponding positions in the filter support, wherein the clipping values for the corresponding positions in the filter support specify upper and lower limits for the values of the samples at the corresponding positions in the filter support; and generating a product for the corresponding position in the filter support by multiplying the clipping value of the sample at the corresponding position in the filter support by the filter coefficient for the corresponding position in the filter support; and A filter value for a corresponding sample of the block is determined based on a sum of products of a value of the corresponding sample of the block and a plurality of positions in the filter support.
29. The computer-readable storage medium of claim 28, in, The ALF clipping index is a luma ALF clipping index.
30. The computer-readable storage medium of claim 28, in, The ALF clipping index is a chroma ALF clipping index.
31. The computer-readable storage medium of claim 28, in: The ALF cropping index is a luma ALF cropping index, and the block of the picture is a luma block, and Execution of the instructions further causes the one or more processors to: Decodes the chroma ALF clipping index as a fixed-length unsigned integer; and Based on the chroma ALF cropping index, the ALF is applied to chroma blocks of the picture.
32. The computer-readable storage medium of claim 28, in, Execution of the instructions further causes the one or more processors to determine that a corresponding filter coefficient of the ALF is equal to zero.
33. The computer-readable storage medium of claim 28, in, The instructions that cause the one or more processors to encode and decode the ALF crop index include instructions that cause the one or more processors to parse the fixed-length unsigned integer from a bitstream that includes an encoded representation of the video data.
