Nonlinear extension of adaptive loop filtering for video decoding
By introducing an adaptive loop filter (ALF) into the video decoding process and using nonlinear operators for filtering, the video quality and efficiency problems caused by quantization errors are solved, and the overall performance of video decoding is improved.
Patent Information
- Application Number
- CN202080044578.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-23
- Filing Date
- 2020-06-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-06-24
AI Technical Summary
Existing video decoding technologies suffer from quantization errors during the filtering process, which impair video quality and decoding efficiency, and these errors are difficult to compensate for effectively.
The Adaptive Loop Filter (ALF) technique is employed, which uses nonlinear operators for filtering during the video decoding process, including pre-filtering, nonlinear operations, and post-filtering, and adaptively adjusts according to the syntax elements.
It improves the quality and efficiency of video decoding, compensates for quantization errors, and enhances image reconstruction results.
Smart Images

Figure CN114080805B_ABST
Abstract
Description
[0001] This application claims priority to U.S. application No. 16 / 909,603, filed on June 23, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 865,779, filed on June 24, 2019, the entire contents of each of which are hereby incorporated by reference into this document. Technical Field
[0002] The present disclosure relates to video encoding and video decoding. Background Art
[0003] Digital video capabilities may be incorporated into a variety 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 radiotelephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC) Section 10, and extensions of such standards. Video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information by implementing such video coding techniques.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy in a video sequence. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in slices of intra-coded (I) pictures are encoded using spatial predictions relative to reference samples in neighboring blocks in the same picture. Video blocks in slices of inter-coded (P or B) pictures may use spatial predictions relative to reference samples in neighboring blocks in the same picture or temporal predictions relative to 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
[0005] In general, the present disclosure describes techniques for nonlinear extensions for adaptive loop filtering, and gives several examples for adaptive loop filter (ALF) design. The present disclosure describes techniques for implementing adaptive loop filters in video coding applications. In particular, the disclosed techniques relate to nonlinear extensions of various adaptive loop filter processes that can be performed during video coding (e.g., video encoding and / or video decoding). In some examples, the filter may relate to an adaptive loop filter (ALF) design including an implementation of one or more nonlinear operators. In one example, a video coder (e.g., a video encoder and / or a video decoder) may advantageously encode and / or decode syntax elements that define parameters and / or operations of a specific adaptive loop filter used in a video coding process. The video coder may implement an adaptive loop filter by applying various nonlinear operations to an incoming sample set prepared for the filtering process. In one example, the video coder may apply nonlinear operations during an adaptive loop filter process.
[0006] In some examples, the video decoder can perform the adaptive loop filtering techniques of the present disclosure during various stages of the video decoding process. In an illustrative example, the video decoder can apply an adaptive loop filter based on samples output from a quantization process, and the adaptive loop filter includes filtering operations that precede and / or follow nonlinear operations. In turn, the video decoder can output the filtered samples to a decoded picture buffer (DPB) for further processing. One or more combinations of the techniques of the present disclosure can improve decoding efficiency and can be used in advanced video codecs and next-generation video decoding standards (such as extensions of HEVC (High Efficiency Video Coding), H.266 / Versatile Video Coding (VVC)), or can be used in any future video decoding standards.
[0007] In one example, an apparatus for decoding video data is disclosed, the apparatus comprising: a memory configured to store the video data; and one or more processors implemented in circuits and configured to: decode a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in conjunction with a filtering operation of the adaptive loop filtering process; and perform the adaptive loop filtering process based on the syntax element.
[0008] In another example, a method of decoding video data is disclosed, the method comprising: decoding a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in conjunction with a filtering operation of the adaptive loop filtering process; and performing the adaptive loop filtering process based on the syntax element.
[0009] In another example, a device for encoding video data is disclosed, the device comprising: a memory configured to store the video data; and one or more processors implemented in circuits and configured to: determine a nonlinear operation and a filtering operation to be performed in an adaptive loop filtering process; perform the adaptive loop filtering process by applying the filtering operation and the nonlinear operation to the video data; and encode a syntax element indicating the manner in which the adaptive loop filtering process is performed.
[0010] In another example, an apparatus for decoding video data is disclosed, the apparatus comprising: a unit for decoding a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in conjunction with a filtering operation of the adaptive loop filtering process; and a unit for performing the adaptive loop filtering process based on the syntax element.
[0011] In another example, a non-transitory computer-readable storage medium is disclosed, the non-transitory computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the following operations: decode a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to video data in conjunction with a filtering operation; and perform the adaptive loop filtering process based on the syntax element.
[0012] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the techniques of the present disclosure will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform one or more of the various techniques disclosed herein.
[0014] Figure 2A and Figure 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).
[0015] Figure 3is a block diagram illustrating an example video encoder that may perform one or more of the various techniques disclosed herein.
[0016] Figure 4 is a block diagram illustrating an example video decoder that may perform one or more of the various techniques disclosed herein.
[0017] Figure 5 is a conceptual diagram illustrating an example adaptive loop filter (ALF) support in accordance with one or more of the various techniques disclosed herein.
[0018] Figure 6 is a conceptual diagram of an example 5x5 diamond filter holder in accordance with one or more of the various techniques disclosed herein.
[0019] Figure 7-Figure 9 is a conceptual diagram illustrating example geometric transformations in accordance with one or more of the various techniques disclosed herein.
[0020] Fig.10 is a conceptual diagram illustrating an example adaptive loop filtering process in accordance with one or more of the various techniques disclosed herein.
[0021] Fig.11 is a conceptual diagram illustrating an example adaptive loop filtering process in accordance with one or more of the various techniques disclosed herein.
[0022] Fig.12 is a conceptual diagram illustrating an example adaptive loop filtering process in accordance with one or more of the various techniques disclosed herein.
[0023] Fig.13 is a flow chart illustrating an example encoding method according to one or more of the various techniques disclosed herein.
[0024] Fig.14 is a flow chart illustrating an example decoding method according to one or more of the various techniques disclosed herein.
[0025] Fig.15 is a flow chart illustrating an example adaptive loop filtering method in accordance with one or more of the various techniques disclosed herein.
[0026] Fig.16 is a flow chart illustrating an example adaptive loop filtering method in accordance with one or more of the various techniques disclosed herein.
[0027] Like reference characters denote like elements throughout the specification and drawings. DETAILED DESCRIPTION
[0028] The present disclosure describes techniques related to the performance of various filtering techniques that may be employed in a video decoding process. In particular, a video decoder (e.g., a video encoder and / or a video decoder) may apply one or more different types of adaptive loop filters (including one or more nonlinear operators) to a set of samples during a video decoding process. In one example, an adaptive loop filter (ALF) may be implemented during the execution of adaptive loop filtering, such as by implementing one or more ALF designs. The disclosed adaptive loop filtering techniques may be implemented into existing video codecs (such as an extension of HEVC (High Efficiency Video Coding)), or may be an efficient decoding tool for future video decoding standards (such as the H.266 standard currently under development). As such, various adaptive loop filtering techniques may be used in various video decoding processes (including post-processing stages, as part of in-loop decoding), or in a prediction stage of a video decoding process.
[0029] As used herein, the term "video decoding" generally refers to video encoding or video decoding. Similarly, the term "video decoder" may generally refer to a video encoder or a video decoder. In addition, certain techniques described herein with respect to video decoding may also be applicable to video encoding, and vice versa. For example, video encoders and video decoders are often configured to perform the same process or mutually inverse processes. In addition, a video encoder generally performs video decoding as part of the process of determining how to encode video data.
[0030] Video decoding generally involves predicting a video data block from an already decoded video data block in the same picture (i.e., intra-frame prediction) or predicting a video data block from an already decoded video data block in a different picture (i.e., inter-frame prediction). In some instances, the video encoder also calculates residual data by comparing the predicted block with the original block. Therefore, the residual data represents the difference between the predicted block and the original block. The video encoder can transform and quantize the residual data, and signal the transformed and quantized residual data in the encoded bit stream. The video decoder adds the residual data to the prediction block to generate a reconstructed video block, which matches the original video block more closely than the separate prediction block. In some instances, in order to further improve the quality of the decoded video, the video decoder can perform one or more filtering operations on the reconstructed video block. However, in such an example, the video decoder may have caused various quantization errors in the video decoding process, and therefore, the quality of the decoded video and the efficiency of the video decoding process may be impaired.
[0031] The above problems may be solved, among other things, by disclosed techniques for utilizing nonlinear operators in various loop filtering processes, such as techniques that may be implemented during in-loop decoding or other processing stages. In particular, the present disclosure describes techniques related to an adaptive loop filtering process that utilizes one or more nonlinear operators in a filtering process. An example adaptive loop filtering process includes an ALF design that is configured to implement one or more nonlinear operations and one or more filtering operations during a filtering process of a video decoding process.
[0032] In an illustrative example, a video coder (e.g., a video encoder and / or a video decoder) may apply an ALF design, wherein the ALF design includes one or more nonlinear operations as part of an adaptive loop filtering process. The video coder may apply an adaptive loop filtering process following a quantization process to a set of samples. As such, the video coder may apply one or more nonlinear operators to the samples as part of the filtering process. In an illustrative example, the ALF design may define a filtering operation that follows the nonlinear operation. In another example, the ALF design may define a filtering operation that precedes the nonlinear operation. In such an example, the ALF design may define a pre-filtering operation that precedes the nonlinear operation and a post-filtering operation that follows the nonlinear operation.
[0033] In some examples, the video coder may decode syntax elements that define various operational components of the adaptive loop filtering process. In some examples, the video coder may signal information about non-linear operators used during the filtering process to the video decoder. In another example, the video coder may forgo signaling such information, such as when the filtering operation is predefined, such as a non-adaptively trained filtering operation.
[0034] In some examples, the video decoder may implement nonlinear operations as part of an adaptive loop filtering process. In some cases, the video decoder may implement nonlinear operations as a substitute for a specific ALF design that the video decoder may implement during the filtering process in some examples. In any case, the video decoder may utilize such nonlinear adaptive loop filtering techniques in a post-processing stage, for in-loop decoding, or in a prediction process. The video decoder may utilize a combination of filters and nonlinear operators to compensate for certain nonlinear quantization errors induced during previous video decoding operations, and thereby, may improve the resulting picture reconstruction, video quality, and video decoding process as a whole.
[0035] Figure 11 is a block diagram illustrating an example video encoding and decoding system 100 that can perform one or more of the various techniques disclosed herein. The various techniques disclosed herein are generally directed to 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 data).
[0036] like Figure 1 As 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 the 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 a desktop computer, a notebook computer (e.g., a laptop computer), a tablet computer, a set-top box, a telephone handset (such as a smartphone), a television, a camera, a display device, a digital media player, a video game console, a video streaming device, a broadcast receiver device, a set-top box, 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.
[0037] exist Figure 1 In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 comprises 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 the technology for adaptive loop filtering. Therefore, source device 102 represents an example of video encoding device, and destination device 116 represents an example of video decoding device. In other examples, source device and destination device can include other components or arrangements. For example, source device 102 can receive video data from an external video source (such as an external camera). Similarly, destination device 116 can be engaged with an external display device, rather than including an integrated display device.
[0038] As in Figure 1The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform techniques for adaptive loop filtering. The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding 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 video encoding and decoding components. Therefore, the system 100 can support one-way or two-way video transmission between the video devices 102 and 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0039] Typically, the video source 104 represents a source of video data (e.g., original, unencoded video data), and provides a continuous sequence of pictures of the video data (also referred to as "frames") to the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device (e.g., a camera), a video archive containing previously captured original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, the video source 104 may generate computer graphics-based data as a source video or a combination of real-time video, archived video, and computer-generated video. In each case, the video encoder 200 encodes captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they are received (sometimes referred to as "display order") to a decoding order for decoding. The 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 and / or retrieval by, for example, input interface 122 of destination device 116 .
[0040] 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 memory 106, memory 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. In addition or alternatively, the memory 106, memory 120 can store software instructions executable by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memory for functionally similar or equivalent purposes. In addition, the memory 106, memory 120 can store encoded video data (e.g., output from the video encoder 200 and input to the video decoder 300). In some examples, a portion of the memory 106, memory 120 can be allocated as, for example, one or more video buffers for storing original, decoded and / or encoded video data.
[0041] 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 for enabling the source device 102 to directly transmit the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard (such as a wireless communication protocol), the output interface 108 may modulate the transmission signal including the encoded video data, and the input interface 122 may demodulate the received transmission signal. The communication medium may include any wireless communication medium or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may constitute 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 may be useful for facilitating communication from the source device 102 to the destination device 116.
[0042] In some examples, computer-readable medium 110 may include storage device 112. Source device 102 may output the encoded data from output interface 108 to computer-readable medium 110 (e.g., storage device 112). Similarly, destination device 116 may access the encoded data from computer-readable medium 110 (e.g., 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.
[0043] In some examples, computer-readable medium 110 may include file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to destination device 116. File server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 via any standard data connection, including an Internet connection. This may include wireless channels (e.g., Wi-Fi, etc.). TM connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming transport protocol, a download transport protocol, or a combination thereof.
[0044] 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), Advanced LTE, 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 ), Standards, etc.) to transmit data, such as encoded video data. In some examples, source device 102 and / or destination device 116 may include respective system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functionality attributed to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing functionality attributed to video decoder 300 and / or input interface 122.
[0045] The techniques of the present disclosure may be applied to video 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 Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium), or other applications.
[0046] The input interface 122 of the destination device 116 receives an encoded bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded bitstream may include signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements with values describing characteristics and / or processing of video blocks or other decoded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any one of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0047] Although in Figure 1200 and 300. Although not shown in the drawings, in some aspects, the video encoder 200 and the video decoder 300 can each be integrated with an audio encoder and / or an audio decoder, and can include appropriate multiplexing-demultiplexing 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 multiplexing-demultiplexing units can conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0048] The video encoder 200 and the video decoder 300 can each be implemented as any encoder circuit or decoder circuit in a variety of suitable encoder circuits 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 the technology is partially implemented in software, the device can store instructions for the software in a suitable, non-transitory computer-readable medium, and use one or more processors to execute instructions in hardware to perform the technology 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 in respective devices as part of a combined encoder / decoder (CODEC). The device including the video encoder 200 and / or the video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.
[0049] The video encoder 200 and the video decoder 300 may operate according to a video coding standard also referred to as HEVC, such as ITU-T H.265, or an extension thereof, such as a multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards, also referred to as Versatile Video Coding (VVC), such as the Joint Exploration Experimental Model (JEM) or ITU-T H.266. A recent 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 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-M1001-v8 (hereinafter referred to as “VVC Draft 5”). However, the techniques of this disclosure are not limited to any particular coding standard.
[0050] Typically, the video encoder 200 and the video decoder 300 can perform block-based decoding of the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). 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 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 decode the luminance component and the chrominance component instead of decoding the red, green, and blue (RGB) data for the samples of the picture, wherein the chrominance component may include both a red hue chrominance component and a blue hue chrominance component. In some examples, the video encoder 200 converts the received RGB format data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.
[0051] The present disclosure may generally refer to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may refer to the decoding of a block of a picture to include the process of encoding or decoding data for the block (e.g., prediction and / or residual decoding). The encoded video bitstream typically includes a series of values for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or block should generally be understood as decoding the values of the syntax elements that form the picture or block.
[0052] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder divides the CTU and the 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 decoder may further divide the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the division 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).
[0053] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JET or VVC. According to JET or VVC, a video decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide 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 eliminates the concept of multiple partition types, such as the separation between CU, PU, and TU in HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitions, and a second level divided according to binary tree partitions. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0054] In the MTT partition 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 partition is a partition in which a block is divided into three sub-blocks. In some examples, the ternary tree partition divides the block into three sub-blocks without dividing the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0055] 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 component and the 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 respective chroma components).
[0056] The video encoder 200 and the video decoder 300 may be configured to use per-HEVC quadtree partitions, QTBT partitions, MTT partitions, or other partition structures. For purposes of explanation, a description of the techniques of the present disclosure is given with respect to QTBT partitions. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree partitions or other types of partitions.
[0057] Blocks (e.g., CTUs or CUs) may be grouped in various ways in a picture. As an example, a brick may refer to a rectangular area of a CTU row within a particular tile in a picture. A tile may be a rectangular area of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a rectangular area of a CTU having a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.
[0058] In some examples, a tile may be divided into a plurality of bricks, each of which may include one or more CTU rows within the tile. A tile that is not divided into a plurality of bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.
[0059] The tiles in a picture may also be arranged in slices. A slice may be an integer number of tiles of a picture that may be exclusively contained in a single network abstraction layer (NAL) unit. In some examples, a slice includes a continuous sequence of multiple complete tiles, or just complete tiles of one tile.
[0060] The present disclosure may use "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. Typically, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN 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 NxM samples, where M is not necessarily equal to N.
[0061] The video encoder 200 encodes video data for a CU representing prediction and / or residual information and other information. The prediction information indicates how to predict the CU in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.
[0062] In order to predict a CU, the video encoder 200 can generally form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU from previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean square 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 can use unidirectional prediction or bidirectional prediction to predict the current CU.
[0063] Some examples of JEM and VVC also provide an affine motion compensation mode that 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).
[0064] In order to perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of JEM and VVC provide sixty-seven intra prediction modes, including various directional modes as well as plane modes and DC modes. Typically, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU), and predicts samples of the current block from the neighboring samples. Assuming that the video encoder 200 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.
[0065] The video encoder 200 encodes data representing a prediction mode for the current block. For example, for an inter-frame prediction mode, the video encoder 200 may encode data representing which of the various available inter-frame prediction modes is used and motion information for the corresponding mode. For unidirectional inter-frame prediction or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for an affine motion compensation mode.
[0066] Following a prediction (such as an intra-frame prediction or an inter-frame prediction of a block), the video encoder 200 may calculate residual data for the block. The residual data (such as a residual block) represents the sample-by-sample difference between the block and the prediction block for the block formed using the corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform following the first 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 following the application of one or more transforms.
[0067] As described above, following any transforms used to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing transform coefficients to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth (BD) associated with some or all of the transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bit-by-bit right shift of the value to be quantized.
[0068] Following 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 higher energy (and therefore lower frequency) transform coefficients in front of the vector and lower energy (and therefore higher frequency) transform coefficients 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 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.
[0069] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether the value of a symbol's neighbors is a zero value. The probability determination may be based on the context assigned to the symbol.
[0070] The video encoder 200 may further generate syntax data (such as block-based syntax data, picture-based syntax data, and sequence-based syntax data) to the video decoder 300, for example, in a picture header, a block header, a slice header, or other syntax data (such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). The video decoder 300 may likewise decode such syntax data to determine how to decode the corresponding video data.
[0071] In this way, the video encoder 200 can generate a bitstream including encoded video data (e.g., syntax elements describing the division of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks). Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0072] In general, the video decoder 300 performs a process that is inverse to the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements for the bitstream in a manner substantially similar to (although inverse to) the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for dividing a picture into CTUs, and partition each CTU according to a corresponding partition structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may further define prediction and residual information for a block (e.g., CU) of video data.
[0073] 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 prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) sent by the signal 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 a deblocking process to reduce visual artifacts along the boundaries of the blocks.
[0074] According to one or more of the various techniques disclosed herein, a video decoder (e.g., video encoder 200 and / or video decoder 300) may be configured to perform adaptive loop filtering using various syntax elements and / or ALF designs. As an example, the video decoder may decode a syntax element indicating one of a plurality of adaptive loop filtering processes for video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation, and apply the indicated adaptive loop filtering process to the video data based on the syntax element.
[0075] In one example, the video decoder may be configured to perform adaptive loop filtering using one or more non-linear operations. As an example, the video decoder may decode a syntax element indicating the manner in which the non-linear operation is to be applied to the video data during the adaptive loop filtering process. The video decoder may additionally apply an adaptive loop filter including one or more non-linear operations to the video data based on the syntax element to generate a filtered block of the video data. In some cases, the video decoder may store the filtered block to a memory.
[0076] In another example, the video decoder can be configured to decode a syntax element indicating a manner in which the adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data. In addition, the video decoder is configured to apply a non-linear operation (e.g., one or more non-linear operators 313) in conjunction with the filtering operation of the adaptive loop filtering process. The video decoder can further perform the adaptive loop filtering process based on the syntax element.
[0077] Various examples of adaptive loop filtering are described elsewhere in this disclosure. In one example, the adaptive loop filtering process can include one or more nonlinear operations. In some examples, the nonlinear operations can be implemented as part of the ALF design.
[0078] The present disclosure may generally refer to "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the transmission of values for syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal values for syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time or, in some cases, 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).
[0079] Figure 2A and Figure 2B 1 is a conceptual diagram showing an example QTBT structure 130 and a corresponding CTU 132. Solid lines represent quadtree partitioning and dashed lines indicate binary tree partitioning. In each partition (e.g., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type is used (e.g., horizontal, vertical, etc.). In an illustrative and non-limiting example, a value of 0 may indicate horizontal partitioning and a value of 1 may indicate vertical partitioning. In another example involving quadtree partitioning, since a quadtree node typically partitions a block horizontally and vertically into 4 sub-blocks (e.g., prediction blocks), it may not be necessary to indicate the partition type. In such an example, the sub-blocks may or may not be of equal size. Therefore, the video encoder 200 may encode syntax elements (such as partition information) for a region tree level (e.g., solid line) (e.g., first level) of the QTBT structure 130 and syntax elements (such as partition information) for a prediction tree level (e.g., dotted line) (e.g., second level) of the QTBT structure 130, and the video decoder 300 may decode syntax elements (such as partition information) for a region tree level (e.g., solid line) (e.g., first level) of the QTBT structure 130 and syntax elements (such as partition information) for a prediction tree level (e.g., dotted line) (e.g., second level) of the QTBT structure 130. The video encoder 200 may encode video data (such as prediction and transformation data) for a CU represented by a terminal leaf node of the QTBT structure 130, and the video decoder 300 may decode video data (such as prediction and transformation data) for a CU represented by a terminal leaf node of the QTBT structure 130.
[0080] generally, Figure 2BThe 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 samples), 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).
[0081] 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 divided according to a quadtree partition. That is, the node at the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node as a child node including a parent node and a solid line for branching. If the node at the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), the node may be further divided by its own binary tree. The binary tree partitioning of a node may be iterated until the node derived from 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 coding unit (CU), which is used for prediction (e.g., intra-frame or inter-frame prediction) and transformation without any further partitioning. As discussed herein, a CU may also be generally referred to as a “video block,” “coding block,” or “block.”
[0082] In one example of a QTBT partition structure, the CTU size is set to 128x128 (luminance sample and two corresponding 64x64 chrominance samples), MinQTSize is set to 16x16, MaxBTSize is set to 64x64, 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 16x16 (e.g., MinQTSize) to 128x128 (e.g., CTU size). If the quadtree leaf node is 128x128, the node will not be further split by the binary tree because the size exceeds MaxBTSize (e.g., 64x64 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 for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further splitting is not allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), this 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 division.
[0083] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform one or more of the various techniques disclosed in this disclosure. Figure 3 The present disclosure is provided for purposes of explanation and should not be considered limiting of the techniques as broadly illustrated and described in this disclosure. For purposes of explanation, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the H.266 video coding standard under development. However, the techniques of this disclosure are not limited to these video coding standards and are applicable to video encoding and decoding in general.
[0084] exist Figure 3In 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 one 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 in processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits for performing these functions and other functions.
[0085] 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 video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for use by video encoder 200 in predicting subsequent video data. Video data memory 230 and DPB 218 can be formed by any of various storage devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of storage devices. Video data memory 230 and DPB 218 can be provided by the same storage device or a separate storage device. In various examples, video data memory 230 can be on-chip with other components of video encoder 200 (as shown) or off-chip relative to these components.
[0086] In the present disclosure, references to the video data memory 230 should not be interpreted as being limited to memory inside the video encoder 200 (unless specifically described as such) or memory outside the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .
[0087] Figure 3Various units are shown to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are pre-set in 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 may execute software or firmware that causes the programmable circuit to operate in a manner defined by instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to 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 of the units may be integrated circuits.
[0088] 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 from 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.
[0089] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve pictures of 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.
[0090] 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 for performing 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.
[0091] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for the CU, the transform type for the residual data of the CU, the quantization parameter for the residual data of the CU, 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.
[0092] The video encoder 200 may divide 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 divide 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 dividing the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks", "coding blocks" or "blocks".
[0093] 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 decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing the degree of similarity of the potential reference block 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 differences between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block having the lowest value derived from these calculations, which indicates the reference block that most closely matches the current block.
[0094] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the 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, while 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 vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values for 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 respective motion vectors and combine the retrieved data, such as by sample-by-sample averaging or weighted averaging.
[0095] As another example, for intra prediction or intra prediction decoding, 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 fill 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 to the current block and generate the prediction block to include this resulting average value for each sample of the prediction block.
[0096] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original uncoded version of the current block from the video data memory 230 and the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The sample-by-sample difference thus derived 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.
[0097] In the example where the mode selection unit 202 divides 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 herein, the size of a CU may refer to the size of a luma coding block of the CU, and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra prediction, and symmetrical PU sizes of 2Nx2N, 2NxN, Nx2N, NxN, etc. for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter prediction.
[0098] In an example where the mode selection unit does not further divide the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.
[0099] For other video coding techniques (such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few examples), the mode selection unit 202, via respective units associated with the coding techniques, may generate a prediction block for the current block being encoded. In some examples (such as palette mode coding), the mode selection unit 202 may not generate a prediction block, but may generate syntax elements indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0100] As described herein, the residual generation unit 204 receives video data for a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0101] 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 a transform coefficient block. For example, the transform processing unit 206 can apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 can apply multiple transforms (e.g., a primary transform and a secondary transform) such as a rotation transform to the residual block. In some examples, the transform processing unit 206 does not apply any transform to the residual block.
[0102] 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.
[0103] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block 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 possibly with some degree of distortion, which in some cases various techniques of the present disclosure are configured to reduce or actually eliminate) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may generate a reconstructed block by adding samples of the reconstructed residual block to corresponding samples of the prediction block generated by the mode selection unit 202.
[0104] The filter unit 216 may perform one or more filter 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 filter unit 216 may apply one or more adaptive loop filtering processes. The adaptive loop filtering process may include applying at least one nonlinear operator 217 during the adaptive loop filtering process. In one example, the filter unit 216 may implement an ALF design that defines (one or more) nonlinear operators 217. In one example, (one or more) nonlinear operators 217 may include a clipping operator or a non-clipped operator, such as a shrinkage operator, a sigmoid function, or a ReLU function.
[0105] In addition, (one or more) nonlinear operators 217 may include, in some cases, parameters defining values for classifying (one or more) nonlinear operators 217, defining operating conditions of (one or more) nonlinear operators 217, or defining an order for cascading (one or more) nonlinear operators 217 with other (one or more) nonlinear operators 217 and / or with one or more filtering operations. Thus, the adaptive loop filtering process may include nonlinear operations and / or filtering operations. The filter unit 216 may output a filtered reconstructed block when applying one or more ALF processes according to one or more of the various techniques disclosed herein. In some cases, the operation of the filter unit 216 may be skipped. As described herein, in some cases, the filter unit 216 may encode syntax elements defining (one or more) nonlinear operators 217 used during the filtering process.
[0106] 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 the reference picture formed by the reconstructed (and possibly filtered) blocks from the DPB 218 to perform inter-frame prediction on the blocks of the 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 perform intra-frame prediction on other blocks in the current picture.
[0107] 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 syntax elements as another example of video data to generate entropy-coded 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 where syntax elements are not entropy encoded. In some examples, the entropy coding unit 220 may entropy encode syntax elements received from the filter unit 216, such as syntax elements defining components of an adaptive loop filter used during video encoding and, in some cases, alpha parameters of such components. Typically, the alpha parameters define operational constraints and / or coefficients for a given nonlinear operation and are specifically defined for a given nonlinear operator depending on the type of operator applied. In one example, the nonlinear operator may include a shrinkage operator, in which case the alpha parameter is defined as a shrinkage value selected for a particular shrinkage operator in order to set conditions for the operation of the shrinkage operator.
[0108] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required for reconstructing a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0109] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.
[0110] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated to identify MVs and reference pictures for chroma blocks. Instead, MVs for luma coding blocks may be scaled to determine MVs for chroma blocks, and reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0111] The video encoder 200 represents an example of a device configured to encode video data, the device comprising a memory configured to store the video data and one or more processing units, the one or more processing units being implemented in circuits and configured to decode a syntax element indicating one of a plurality of adaptive loop filtering processes for the video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation, and applying the indicated adaptive loop filtering process to the video data based on the syntax element.
[0112] In some examples, video encoder 200 may represent an example of a device configured to encode video data, the device comprising a memory configured to store the video data and one or more processing units implemented in circuits and configured to decode syntax elements indicating the manner in which an adaptive loop filter is to be applied to the video data during an adaptive loop filtering process. Video encoder 200 may additionally apply an adaptive loop filter to the video data. In some cases, video encoder 200 may store the filtered blocks to memory.
[0113] In another example, the video encoder 200 may represent an example of a device configured to encode video data, the device comprising a memory configured to store the video data and one or more processing units, the one or more processing units being implemented in a circuit and configured to determine a non-linear operation and a filtering operation to be performed in an adaptive loop filtering process. The video encoder 200 may then perform an adaptive loop filtering process by applying the filtering operation and the non-linear operation to the video data. In addition, the video encoder 200 may encode a syntax element indicating the manner in which the adaptive loop filtering process is performed.
[0114] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform one or more of the various techniques disclosed herein. Figure 4The above description is provided for the purpose of explanation and should not be considered as limiting the techniques as broadly exemplified and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 according to the technical descriptions of JEM, VVC, and HEVC. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.
[0115] exist Figure 4 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or in processing circuitry. In addition, the video decoder 300 may include additional or alternative processors or processing circuitry for performing these functions and other functions.
[0116] 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 for performing predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0117] The CPB memory 320 may store video data (such as an encoded video bitstream) to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be, for example, a video encoded bitstream received from the computer readable medium 110 ( Figure 1). The CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, and the video decoder 300 may output the decoded pictures and / or use the decoded pictures as reference video data when decoding subsequent data or pictures of the coded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of storage devices, such as DRAM (including SDRAM), MRAM, RRAM, or other types of storage devices. The CPB memory 320 and the DPB 314 may be provided by the same storage device or a separate storage 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.
[0118] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may store data together with CPB memory 320 as discussed above. Likewise, when some or all of the functionality of video decoder 300 is implemented in software executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.
[0119] exist Figure 4 The various units shown in FIG. 3 are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3 , fixed-function circuits refer to circuits that provide specific functions and are pre-set in 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 that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operations performed by the fixed-function circuits 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.
[0120] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed from a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software that the video decoder 300 receives and executes.
[0121] 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.
[0122] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform reconstruction operations on each block individually. It should be noted that the block currently being reconstructed (eg, decoded) may sometimes be referred to herein as a "current block".
[0123] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise a degree of inverse quantization to be applied by the inverse quantization unit 306. The inverse quantization unit 306 may, for example, 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.
[0124] 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 Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.
[0125] 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 a 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 current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as relative to motion compensation unit 224 ( Figure 3) describes in a substantially similar manner to perform the inter-frame prediction process.
[0126] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 may generally generate a prediction block in the same manner as the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in a manner substantially similar to that described in the foregoing description. The intra prediction unit 318 may retrieve sample data of samples neighboring the current block from the DPB 314.
[0127] 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.
[0128] 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 block artifacts along the edge of the reconstructed block. In some examples, the filter unit 312 may apply one or more adaptive loop filtering processes. The adaptive loop filtering process may include the application of at least one nonlinear operator 313. In an example, the filter unit 312 may implement an ALF design that defines one or more adaptive loop filtering processes. The adaptive loop filtering process may include nonlinear operations and / or filtering operations. The filter unit 312 may output a filtered reconstructed block when applying one or more ALF processes according to one or more of the various techniques disclosed herein.
[0129] In some examples, the filter unit 312 may implement an ALF design that defines (one or more) nonlinear operators 313. In one example, (one or more) nonlinear operators 313 may include a clipping operator or a non-clipped operator, such as a shrinkage operator, a sigmoid function, or a ReLU function. In addition, (one or more) nonlinear operators 313 may, in some cases, include a value that defines a classification of (one or more) nonlinear operators 313, an operating condition that defines (one or more) nonlinear operators 313, or a parameter that defines an order for cascading (one or more) nonlinear operators 313 with other (one or more) nonlinear operators 313 and / or with a filtering operation. As described herein, in some cases, the filter unit 312 may decode a syntax element that defines (one or more) nonlinear operators 313 used during the filtering process. In addition, the filter unit 312 may be configured to derive or infer information about applying (one or more) nonlinear operators 313 to video data, as described herein.
[0130] The video decoder 300 may store the reconstructed blocks in the DPB 314. In some examples, the filter unit 312 may store the filtered reconstructed blocks to the DPB 314. As discussed herein, the DPB 314 may provide reference information to the prediction processing unit 304. In one example, the DPB 314 may provide reference information, 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 pictures from the DPB for display on a display device such as a video processor. Figure 1 18). It should be noted that the operation of the filter unit 312 may not necessarily be performed in all cases. As such, in the case where the video decoder 300 does not perform the operation of the filter unit 312, the reconstruction unit 310 may store the reconstructed block to the DPB 314.
[0131] In this manner, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units that are implemented in circuits and configured to decode a syntax element that indicates one of a plurality of adaptive loop filtering processes for the video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation, and apply the indicated adaptive loop filtering process to the video data based on the syntax element.
[0132] In an example, 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 that are implemented in circuits and configured to decode syntax elements that indicate how an adaptive loop filter is to be applied to video data during an adaptive loop filtering process. Video decoder 300 may additionally apply an adaptive loop filter to video data based on the syntax elements. In some cases, video decoder 300 may store the filtered blocks to memory.
[0133] In another example, the video decoder 300 represents an example of a video decoding device, the video decoding device including a memory configured to store video data and one or more processing units, the one or more processing units being implemented in a circuit and configured to perform an adaptive loop filtering process. In such an example, the video decoder 300 may be configured to decode a syntax element indicating a manner in which the adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, wherein the non-linear operation is configured to be applied in conjunction with a filtering operation of the adaptive loop filtering process. In addition, the video decoder 300 may perform the adaptive loop filtering process based on the syntax element.
[0134] The following sections (starting with the section entitled "Adaptive Loop Filter (ALF) with Clipping" and extending to the section entitled "Filter Setting Switching Based on Coding Tree Block (CTB) / CTU") describe example adaptive filtering techniques. One or more of the various adaptive filtering techniques described below may, in some examples, be implemented as part of VVC Draft 5 and VVC Test Model (VTM) 5.0.
[0135] Adaptive loop filter (ALF) with limiting
[0136] As in VTM-5.0, the decoded filter coefficients f(k, l) and clipping values c(k, l) can be applied to the reconstructed image R(i, j) as follows:
[0137]
[0138] In some examples, video encoder 200 and video decoder 300 may be configured to apply a 7x7 filter to luma components and a 5x5 filter to chroma components.
[0139] Figure 5 is a conceptual diagram showing an example adaptive loop filter (ALF) support. Figure 5 As shown, ALF filter holder 500 is a 5x5 diamond filter holder, and ALF filter holder 502 is a 7x7 diamond filter holder.
[0140] The video encoder 200 and / or the video decoder 300 may calculate the clipping value c(k, l) for the luma component, and may calculate the clipping value c(k, l) for the chroma component, as follows:
[0141] For the luminance component:
[0142] c(k, l) = Round(2 (BitDepthY*(4-clipIdx(k,l)) / 4) )
[0143] Where BitDepthY represents BD for the luminance component, and clipIdx(k, l) represents the clipping value at the position (k, l). The value of clipIdx(k, l) can be 0, 1, 2, or 3.
[0144] For chroma components:
[0145] c(k, l) = Round(2 (BitDepthC-8) *2 (8*(3-clipIdx(k,l)) / 3) )
[0146] Wherein BitDepthC represents the BD for the chrominance component, and clipIdx(k, l) represents the clipping value at the position (k, l). The value of clipIdx(k, l) can be 0, 1, 2 or 3.
[0147] Pixel Classification
[0148] For the luma component, the video encoder 200 and the video decoder 300 may be configured to classify the 4x4 blocks in the entire image based on the one-dimensional Laplace direction (e.g., up to 5 direction values) and the two-dimensional Laplace activity (e.g., up to 5 activity values). In some examples, the video encoder 200 and the video decoder 300 may be configured to classify the 4x4 blocks in the entire image based on the one-dimensional Laplace direction (e.g., up to 5 direction values) and the two-dimensional Laplace activity (e.g., up to 5 activity values). b In addition, the video encoder 200 and the video decoder 300 may be configured to further quantize the calculation of the unquantized activity Act b In one example, the video encoder 200 and / or the video decoder 300 may calculate Act b Quantized to the range of 0 to 4 (inclusive).
[0149] In some examples, the video encoder 200 and the video decoder 300 can be configured to use a one-dimensional Laplace operator to calculate the value of two diagonal gradients. In addition, the video encoder 200 and the video decoder 300 can calculate horizontal gradients and vertical gradients, such as the horizontal gradients and vertical gradients used in some ALF designs. Similar to the diagonal gradients, the video encoder 200 and the video decoder 300 can use a one-dimensional Laplace operator to calculate horizontal gradients and vertical gradients.
[0150] In some examples, the video encoder 200 and the video decoder 300 may be configured to determine a representative gradient of a target pixel based on the gradients of other pixels within a specific window covering the target pixel. Referring to equations (2) to (5) below, the video encoder 200 and the video decoder 300 may adopt the sum value of the pixel gradients within a specific window as the representative gradient of the target pixel. That is, the video encoder 200 and the video decoder 300 may determine the represented gradient of the target pixel. In an illustrative example, the video encoder 200 and the video decoder 300 may adopt the sum of the gradients of all pixels within an 8x8 window (as the represented gradient of the target pixel), where the 8x8 window covers the target pixel. In equations (2) to (5) below, R(k, l) represents the reconstructed pixel at position (k, l), and indices i and j refer to the coordinates of the upper left pixel in a 4×4 block. In this manner, each pixel may be associated with four gradient values. In the example equations (2) to (5) below, g v represents the vertical gradient, g h represents the horizontal gradient, g d1 represents a 135 degree diagonal gradient, and g d2 Represents a 45 degree diagonal gradient.
[0151]
[0152] V k,l =|2R(k,l)-R(k,l-1)-R(k,l+1)|
[0153]
[0154] H k,l =|2R(k,l)-R(k-1,l)-R(k+1,l)|
[0155]
[0156] D1 k,l =|2R(k,l)-R(k-1,l-1)-R(k+1,l+1)|
[0157]
[0158] D2 k,l =|2R(k,l)-R(k-1,l+1)-R(k+1,l-1)|
[0159] To assign the direction value Dir b, the video encoder 200 and the video decoder 300 may be configured to determine a first ratio of the maximum and minimum of the horizontal gradient and the vertical gradient. In addition, the video encoder 200 and the video decoder 300 may determine a second ratio of the maximum and minimum of the two diagonal gradients. The ratio of the maximum and minimum of the horizontal gradient and the vertical gradient is given by R in equation (6). h,v Similarly, the ratio of the maximum and minimum of the two diagonal gradients is given by R in equation (7) d0,d1 express.
[0160] in
[0161] in
[0162] When determining the first ratio and the second ratio, the video encoder 200 and the video decoder 300 may then compare the first ratio and the second ratio to determine the direction value Dir b In some examples, the video encoder 200 and the video decoder 300 may compare the two ratios to each other, as indicated in equation (8) below, where the comparison is made with reference to two thresholds t 1 and t 2 Based on the comparison of the detected ratios of the horizontal / vertical gradients and the diagonal gradient, five direction values can then be defined (e.g., Dir in the range [0, 4] b , including 0 and 4), as shown in equation (8) below.
[0163]
[0164] The following table 1 describes the Dir b The value and Dir b The physical meaning of .
[0165] Table 1 - Direction Values (Dir b ) and physical meaning
[0166]
[0167] In addition, the video encoder 200 and the video decoder 300 may be configured to calculate an activity value Act b , as shown below:
[0168]
[0169] The video encoder 200 and the video decoder 300 may be configured to convert Act b The value of is further quantized to a range of 0 to 4 (inclusive). b The quantized value of
[0170] From the activity value Act b To the activity index The quantification process
[0171] The quantization process can be defined as follows:
[0172] avg_var=Clip_post(NUM_ENTRY-1,(Act b *ScaleFactor)>>shift);
[0173]
[0174] Where NUM_ENTRY can be set to 16, ScaleFactor can be set to 64, shift can be (4+internal coded-bitdepth), ActivityToIndex[NUM_ENTRY] = {0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4}, and function Clip_post(a, b) returns the smaller value between a and b.
[0175] In some examples, the video encoder 200 and the video decoder 300 can be configured to classify each 4x4 luma block into one of 25 (5x5) classes. In addition, the video encoder 200 and the video decoder 300 can classify each 4x4 luma block into one of 25 (5x5) classes. b and Act b The value of assigns a group index to each 4x4 block. The video encoder 200 and the video decoder 300 may be configured to represent the group index as a variable "C" for each block. In such an example, the video encoder 200 and the video decoder 300 may be based on the equation In one example, the video encoder 200 may assign a group index to a block, where the group index is equal to in Indicates the Act for the block b quantified value of .
[0176] Geometric transformation
[0177] In some examples, for each class category, the video encoder 200 can be configured to decode and signal a set of filter coefficients and a clipping value. In addition, the video encoder 200 can use four geometric transformations (e.g., diagonal, vertical flip, rotation, and no transformation) to better distinguish different directions of blocks that can be marked with the same class index.
[0178] Figure 6 is a conceptual diagram illustrating an example 5x5 diamond filter holder 602. Figure 7 is a conceptual transformation diagram 702 showing an example transformation of a 5×5 filter bracket 602 based on a diagonal transformation. Figure 8 is a conceptual diagram 802 illustrating an example transformation of a 5×5 filter holder 602 based on a vertical flip transformation. Fig. 9 is a conceptual diagram 902 showing an example transformation of a 5×5 filter holder 602 based on a rotation transformation. Figure 6 The 5x5 filter holder 602 with Figure 7 Figure 702, Figure 8 Figure 802 and Fig. 9 When compared with the transformed filter bracket of FIG. 902 , the formula form of the three geometric transformations can be expressed as follows:
[0179] Diagonal: f D (k, l) = f(l, k), c D (k, l) = c(l, k)
[0180] Flip vertically: f V (k, l) = f(k, Kl-1), c V (k, l) = c(k, Kl-1); and
[0181] Rotation: f R (k, l) = f(Kl-1, k), c R (k, l) = c(Kl-1, k)
[0182] Where K is the size of the filter and 0≤k, l≤K-1 are the coordinates of the filter coefficients. In addition, c(k, l) represents a clipping value. In such an example, the position (0, 0) may refer to the coordinates at the upper left corner. In addition, the position (K-1, K-1) may refer to the coordinates at the lower right corner. When a video decoder (e.g., video encoder 200 and / or video decoder 300) utilizes a diamond filter bracket (such as, in particular, an ALF design), coefficients having coordinates outside the filter bracket may be set to 0. In some examples, the video decoder may indicate and / or determine a geometric transform index by implicitly (e.g., without signaling) deriving a geometric transform. In such an example, the video decoder may derive a geometric transform index while avoiding additional overhead.
[0183] In geometric ALF (GALF), the video encoder 200 and the video decoder 300 may be configured to apply various geometric transforms to the filter coefficients f(k, l) depending on the gradient values calculated for the block. An example relationship between the geometric transforms and the four gradients is shown in Table 2 below. The video encoder 200 and the video decoder 300 may calculate the four gradients using equations (2) to (5) above. In some examples, the video encoder 200 and the video decoder 300 may apply the geometric transform based on a determination of which of two different gradients is larger. In one example, the video encoder 200 and the video decoder 300 may determine which of the two gradients is larger when comparing the horizontal gradient value and the vertical gradient value and when comparing the 45 degree gradient value and the 135 degree gradient value. In an illustrative example, the video encoder 200 may determine the horizontal gradient value (g ) for a block. h ) is greater than the vertical gradient value (g v ) and 135 degree gradient value (g d1 ) is greater than 45 degrees gradient value (g d2 ). As such, the video encoder 200 may determine the filter coefficients that the video encoder 200 is to apply to the block for the diagonal transform based on the example transform mapping summarized in Table 2 below. Based on such a comparison between gradient values, more accurate directional information may be effectively extracted from the decoded information. Thus, different filtering results (e.g., due to the transform) may be obtained while effectively avoiding an increase in the overhead of the filter coefficients.
[0184] Table 2 – Mapping of gradients and transformations.
[0185]
[0186] Filter Information Signaling
[0187] A luminance filter set includes filter information (including filter coefficients and clipping values) for all 25 classes (5x5). In one example, the video encoder 200 and the video decoder 300 can use one or more fixed filters to predict the filter for each class. In some examples, the video encoder 200 can be configured to send a mark for each class with a signal to indicate whether the class uses a fixed filter as a filter predictor for the class. If it is (for example, a fixed filter is used as a filter predictor), the video encoder 200 and the video decoder 300 can send fixed filter information with a signal.
[0188] In order to reduce the number of bits required to represent the filter coefficients, different classes can be merged. The information indicating which classes are merged can be sent by sending an index i for each of the 25 classes. C To provide. With the same index iC The classes of i share the same filter coefficients that are decoded. The video encoder 200 may be configured to signal a mapping between classes and filters for each luma filter set. The video encoder 200 and the video decoder 300 may be configured to utilize a truncated binary binarization method to binarize the index i C Decode.
[0189] In some examples, video encoder 200 and video decoder 300 may be configured to predict signaled filters from previously signaled filter coding.
[0190] Adaptive Parameter Set (APS)
[0191] In VTM-5.0, the video encoder 200 and the video decoder 300 can utilize an adaptive parameter set (APS) configured to carry ALF filter coefficients in a bitstream. In an example, the APS can include a set of luma filter coefficients (e.g., ALF filter coefficients for luma components), a set of chroma filter coefficients (e.g., ALF filter coefficients for chroma components), or both sets of filter coefficients. In some examples, the video encoder 200 and the video decoder 300 can be configured to decode an index of the APS for the current tile group in the corresponding tile group header.
[0192] Filter setting switch based on coding tree block (CTB) / CTU
[0193] In VTM-5.0, the video encoder 200 and the video decoder 300 may be configured to use filters generated from previously decoded tile groups for the current tile group to save overhead for filter signaling. The video encoder 200 and the video decoder 300 may be configured to select a filter set among a fixed filter set and a filter set from an APS for a luma coding tree block (CTB) / CTU. In one example, the video encoder 200 may be configured to signal a filter set index. In some examples, the video encoder 200 and the video decoder 300 may use filters from the same APS for chroma CTBs. In the tile group header, the video encoder 200 may signal the APS for the luma CTB and chroma CTB of the current tile group.
[0194] Extension of filtering and / or nonlinear operations in ALF designs
[0195] As discussed above with reference to adaptive loop filtering with clipping, in VTM 5.0, codecs (e.g., video encoder 200 and video decoder 300) can use a clipping operation applied before the adaptive loop filtering process. In this context, the clipping operation applied before the adaptive loop filtering process during the video decoding process is generally referred to herein as a pre-clipping operation or a pre-clipping operator. The present disclosure describes techniques for extending the clipping operation to reduce the level of quantization error induced during the video encoding and video decoding processes by using different types of nonlinear operators in various ways.
[0196] In one example, a video coder (e.g., video encoder 200 and video decoder 300) may use a clipping operator (also referred to herein as a "clipping operation" or "clipping") as a non-linear operation. The video coder may apply the clipping operator to a set of samples or one or more subsets of samples. The video coder may then transmit the resulting samples to certain components of the video coder (e.g., Figure 3 The filter unit 216 in Figure 4 The video decoder may then perform an adaptive loop filtering process. However, in some examples, the video decoding process or video decoding process may result in the spread of various quantization errors. When certain components of the video decoder perform a quantization process or an inverse quantization process (e.g., via Figure 3 The inverse quantization unit 210 in Figure 4 Quantization errors may be caused by the video decoder when the video decoder is used to decode the video (such as the inverse quantization unit 306 in the video decoder). Quantization errors may include linear errors, nonlinear errors, or both in some cases. When not compensated, quantization errors (whether linear or nonlinear) tend to affect the output quality of the video decoding process and the video decoding process. In addition, quantization errors may lead to low decoding efficiency of the encoding process and / or the decoding process.
[0197] Among other things, the above problems can be solved by the disclosed techniques for utilizing nonlinear operations in various adaptive loop filter (ALF) designs. In an example, the video encoder 200 and the video decoder 300 can apply an adaptive loop filtering process to an input sample set. The ALF process can include nonlinear operations, filtering operations, or in some examples, can include various combinations of both nonlinear operations and filtering operations. In such examples, the video encoder 200 and the video decoder 300 can perform an adaptive loop filtering process by applying one or more ALF designs to various input sample sets or in some cases to a subset of one or more input samples, wherein the ALF design includes applying one or more nonlinear operators to samples.
[0198] In some examples, video encoder 200 and video decoder 300 can utilize an ALF design that defines nonlinear operations. In some examples, nonlinear operations can include applying one or more nonlinear operators to the Figure 3 The filter unit 216 in or Figure 4 The samples of the input of the ALF of the filter unit 312 in the filter unit 312. Example nonlinear operators include a clipping operator or a non-clipping operation, such as a shrinkage operator, a sigmoid function, a ReLU (rectified linear unit) function, or a variant of such a nonlinear operation or other nonlinear operation. In some examples, a neural network (NN) can utilize one or more of the nonlinear operators, such as one or more of the non-clipping nonlinear operators. In one example, the NN can use a ReLU operator, a sigmoid operator, or a cascaded version of a ReLU and a sigmoid operator.
[0199] In some examples, a NN operator utilizing such a clipping operation or a non-clipping operation may precede the ALF process or may replace the ALF process. In addition, the example NN operator may replace the clipping operation that precedes the ALF process. In an illustrative example, the video decoder may apply a nonlinear operation to a set of input samples, followed by a filtering operation. The nonlinear operation may include a NN utilizing one or more nonlinear operators (such as ReLU and / or sigmoid operators) as part of the nonlinear operation. In addition to the nonlinear operation, the video decoder may then apply subsequent filtering operations. In some examples, the filtering operation may include a bilateral filter or other type of filter. In such an example, the video decoder may apply a NN operator to replace the ALF process and any pre-clipping operation that may have preceded the ALF process.
[0200] A video decoder (e.g., the video encoder 200 and the video decoder 300) may implement such an adaptive loop filter (e.g., a filter including a nonlinear operator (such as a NN-based nonlinear operator)) to compensate for errors induced during various quantization processes. In some examples, such an adaptive loop filter has been seen to provide a gain in BD rate, improve the degree of distortion that may be manifested in the resulting image quality, improve decoding efficiency, and generally improve the video decoding process. In specific examples, such an adaptive loop filter has been shown to provide similar advantages when implemented as part of an ALF process, as an extension of the ALF process, or completely replaces the ALF process. In some examples, the video encoder 200 and the video decoder 300 may apply a nonlinear operation prior to the ALF process, wherein the nonlinear operation includes a cascade of nonlinear operators, such as a cascade of a clipping operator, a shrinkage operator, a combination of different types of nonlinear operators, and the like. In such examples, the nonlinear operation may be followed by a filtering operation, such as a filtering operation that defines the application of a bilateral filter. In another example, such an adaptive loop filter may replace or otherwise handle any nonlinear operations that may precede the ALF process, such as by not performing clipping operations that may precede the ALF process.
[0201] In such an example, the video encoder 200 and the video decoder 300 can effectively compensate for the quantization error by implementing such an ALF process defined by the ALF design. That is, the video encoder 200 and the video decoder 300 can apply a nonlinear ALF process to compensate for the nonlinear quantization error that appears during the coding process or the decoding process of certain samples before the ALF process. In another example, the application of the ALF design defining the nonlinear operator can advantageously result in a gain in the BD rate, and further, can improve the degree of distortion and improve the overall video coding efficiency and video decoding efficiency.
[0202] In some examples, the nonlinear operation of the ALF design may include a clipping operator, a cascade of clipping operators, other nonlinear operators, or a cascade of nonlinear operators that effectively links nonlinear operators together, regardless of whether the cascade operation includes the same or different types of nonlinear operators. In one example, the ALF design may define a nonlinear operator that, in some cases, is different from the nonlinear clipping operator. In some examples, the nonlinear operation may define one or more nonlinear operators that include a shrinkage operator, a sigmoid function, a ReLU function, or various combinations of nonlinear operators in some cases. In another example, the ALF design may define one or more clipping operators in addition to one or more other non-clipping operators (e.g., shrinkage, sigmoid, ReLU, logical activation function, etc.).
[0203] In addition, the ALF design can define various filtering operations (e.g., bilateral filters, adaptive filters, Gaussian filters, filters based on neural networks (NN), sample adaptive offset (SAO) filters, average filters, Laplacian filters, etc.), which the video encoder 200 and the video decoder 300 can utilize alone, in combination with each other, or in combination with one or more non-linear operations. In an illustrative example, the video encoder 200 and the video decoder 300 can apply a first ALF design to a first sample, wherein the first ALF design defines a non-linear operation. In addition, the video encoder 200 and the video decoder 300 can apply a second ALF design to a second sample. In such an example, the first ALF design and the second ALF design may define different operations, parameters, and / or different orders (e.g., synthesis order) for combining operations of the same or different types in some cases. In an example, the video encoder 200 can adaptively determine different ALF designs based on predefined differences between samples or based on other decoding information for the samples.
[0204] In some examples, the ALF design may define a synthesis order that defines the ALF process. In an illustrative example, the ALF design may define both a first operation and a second operation, wherein the ALF design includes a syntax element that defines the order for the two example operations. In an illustrative example, the syntax element may define an order that includes a first operation followed by a second operation, wherein the first operation may be applied to the input samples of the ALF before the second operation is applied to the samples output from the first operation. In a non-limiting example, the first operation may include the application of a sigmoid function, followed by the application of a bilateral filtering operation and / or a NN-based filtering operation. In another example, the first operation may include the application of a sigmoid function as part of a NN operator. In such an example, the second operation following the first operation may include a bilateral filter.
[0205] In some examples, the ALF process of the ALF design may include a single filtering operation. A single filtering operation may include one or more filters, such as one or more NN-based filters or one or more bilateral filters. In such an example, the video encoder 200 and the video decoder 300 may apply one or more filter operations of filtering to an input sample set. In some examples, the video encoder 200 and the video decoder 300 may determine one or more sample subsets from the input samples. In such an example, the video encoder 200 and the video decoder 300 may set certain filter coefficients of each subset of samples to "0" before the ALF process. In this way, the video encoder 200 and the video decoder 300 may separate a subset of samples from the samples to provide as input to one or more ALF processes of the ALF design. In some examples, the video encoder 200 and the video decoder 300 may apply one or more filters of the filtering operation to a subset of one or more samples to compensate for various quantization errors caused by the samples, such as nonlinear quantization errors caused during the coding process or the decoding process.
[0206] Figure 10-12 is a conceptual diagram illustrating an example adaptive loop filtering process according to one or more of the various techniques disclosed herein. Figure 10-12 In FIG. 1 , process 1002 includes a single filtering (eg, ALF) operation, process 1010 includes a nonlinear operation following the filtering operation, and process 1020 is an example constructed by cascading process 1002 and process 1010. Figure 10-12 In the example of , process 1020 includes a pre-filtering operation, followed by a nonlinear operation, followed by a post-filtering operation. The following adaptive loop filter designs / techniques may be applied individually or may be used together in any combination.
[0207] As described, the example adaptive loop filtering processes may be applied individually or may be used together in any combination. In some examples, the video encoder 200 and the video decoder 300 may define a specific ALF design based on an independent filtering operation or based on an independent non-linear operation. In some examples, the video encoder 200 and the video decoder 300 may define a specific ALF design based on a combination of one or more filtering operations and / or one or more non-linear operations. Reference Figure 10-12 Example ALF processes and designs are described that include various independent operations and / or combinations of independent operations. In an example, an independent nonlinear operation may include applying a cascaded nonlinear operator to an input sample.
[0208] The adaptive loop filtering process can be defined based on the following processes: (a) the video encoder 200 and the video decoder 300 can apply ALF as a single-step filtering operation (process 1002); (b) the video encoder 200 and the video decoder 300 can apply ALF as a non-linear operation to the input samples, and then filter the resulting samples (process 1010); and / or (c) the video encoder 200 and the video decoder 300 can apply ALF as a pre-filtering, non-linear operation, and post-filtering operation. This case is an example obtained by cascading (a) and (b), where first (a) is used for pre-filtering, and then b) is used for non-linear operation and post-filtering (process 1020). The ALF process can be defined based on a combination of (a), (b), and (c). In such an example, the video encoder 200 can encode a syntax element (e.g., an index) to determine among multiple adaptive loop filtering processes (such as adaptive loop filtering processes defined based on (a), (b), and (c)). In addition, the video decoder 300 can decode the syntax elements and apply the indicated adaptive loop filtering process. As described herein, the ALF designs based on (a), (b), and (c) include cascaded versions of each ALF design. In an example, (a) and (b) can be cascaded multiple times, so the filtering process can include multiple stages of pre-filtering and post-filtering with nonlinear operations in between.
[0209] Fig.10 1 is a conceptual diagram illustrating an example ALF process 1002 in accordance with one or more of the various techniques disclosed herein. As shown, the ALF process 1002 includes a single filtering operation 1004. In an example, the single filtering operation 1004 may include an adaptive loop filtering operation. In some examples, the video encoder 200 and the video decoder 300 may utilize the ALF process 1002 during video encoding and video decoding. In an example, the video encoder 200 may determine to utilize the ALF process 1002 as the current ALF design.
[0210] In the illustrative example, the ALF process 1002 includes applying a filtering operation 1004 to a set of input samples. In such examples, the video encoder 200 or the video decoder 300 may filter the input samples by applying the single-pass filtering operation 1004 and produce a resulting set of filtered output samples.
[0211] In some examples, the input samples may include a subset of samples. In such examples, the subset of samples may be targeted for filtering by applying a filter coefficient having a coefficient value of 0 to samples not included in a particular target subset. In some examples, each set of input samples may include one or more subsets of samples. In such examples, the ALF process 1002 may include applying a filtering operation 1004 to a first subset of first input samples.
[0212] Fig.11 1010 is a conceptual diagram illustrating an example ALF process 1010 according to one or more of the various techniques disclosed herein. As shown, the ALF process 1010 includes a non-linear operation 1012 followed by a filtering operation 1014. In some examples, the video encoder 200 and the video decoder 300 can utilize the ALF process 1010 during video encoding and video decoding. In an example, the video encoder 200 can determine to utilize the ALF process 1010 as the current ALF design.
[0213] In the illustrative example, the ALF process 1010 includes applying a nonlinear operation 1012 followed by a filtering operation 1014. In such an example, the ALF process 1010 includes applying the nonlinear operation 1012 to a set of input samples and then applying the filtering operation 1014, which involves filtering those samples resulting from the application of the nonlinear operation 1012. The ALF process 1010 can be similar to the ALF process 1002 in that both include the application of filtering operations. However, in addition to the filtering operation 1014, the ALF process 1010 also includes the nonlinear operation 1012. When performing the nonlinear operation 1012, the video encoder 200 and the video decoder 300 can perform a single nonlinear operation or a combination of cascaded nonlinear operations.
[0214] In some examples, the input samples may include a subset of samples. In such examples, the subset of samples may be targeted for filtering by applying a filter coefficient having a coefficient value of 0 to samples not included in a particular target subset. In some examples, each set of input samples may include one or more subsets of samples. In such examples, the ALF process 1010 may include applying a nonlinear operation 1012 and a filtering operation 1014 to a first subset of first input samples.
[0215] In some examples, filtering operations 1014 may include the same type of filters that video decoder 200 and video decoder 300 may use to implement filtering operations 1004. In an example, video encoder 200 may be configured to determine an ALF process to apply from among a plurality of different ALF processes. In such an example, video decoder 200 may determine an ALF process 1010 in a first example that includes the same or a different type of filtering operations 1014 than the type of filtering operations 1004 of potential ALF processes 1002 that video decoder 200 may determine in a second example.
[0216] Fig.12 1 is a conceptual diagram illustrating an example ALF process 1020 in accordance with one or more of the various techniques disclosed herein. In some examples, the video encoder 200 and the video decoder 300 can utilize the ALF process 1020 during video encoding and video decoding. In an example, the video encoder 200 and the video decoder 300 can determine to utilize the ALF process 1020 as the current ALF design. In an example, the video encoder 200 can determine to utilize the ALF process 1020 based on the decoding information available to the video encoder 200 during the encoding process.
[0217] In the illustrative example, the ALF process 1020 includes the application of a pre-filtering operation 1022, followed by a non-linear operation 1024, followed by a post-filtering operation 1026. In some examples, the ALF process 1020 is implemented as a cascade of the ALF process 1002 and the ALF process 1010. That is, the ALF process 1020 represents an example ALF design constructed by cascading the ALF process 1002 and the ALF process 1010. In some examples, the video encoder 200 and the video decoder 300 can utilize the ALF process 1002 to apply the pre-filtering operation 1022, and can utilize the ALF process 1010 to apply the non-linear operation 1024 and the post-filtering operation 1026 to then implement the ALF process 1020.
[0218] In some examples, pre-filtering operation 1022 may correspond to Fig.10 The filtering operation 1004 and / or Fig.11 Similarly, the post-filtering operation 1026 may correspond to Fig.10 The filtering operation 1004 and / or Fig.111024. In addition, in some examples, pre-filtering operation 1022 may include a different type of filter than the type of post-filtering operation 1026. However, in some examples, pre-filtering operation 1022 may include the same type of filter as post-filtering operation 1026. In such examples, the filter coefficients for the two filters of filtering operation 1022 and filtering operation 1026 may be the same or different. In addition, nonlinear operation 1024 may correspond to Fig.11 1024. However, in some examples, the non-linear operation 1012 may include a different type of non-linear operator than the type of non-linear operation 1024. That is, the non-linear operation 1012 may include a shrinkage operator, and the non-linear operation 1024 may include a sigmoid function. In any case, the video coder 200 and the video decoder 300 may apply the ALF process 1020 to a set of input samples (such as a first subset of the first input samples) to output a filtered set of output samples from the post-filtering operation 1026.
[0219] In some examples, a single ALF design may be defined based on various combinations of (a) ALF process 1002, (b) ALF process 1010, and (c) ALF process 1020. In an illustrative example, a video coder may determine to utilize a single ALF design that includes a cascaded version of one or more ALF processes, such as reference 1002. Figure 10-12 1002 and 1010. In other words, a single ALF design may include cascaded versions of multiple ALF processes. In an illustrative example, ALF process 1002 may be cascaded with ALF process 1010 to form a single ALF design or a portion of an ALF design. In addition, a single ALF design may include multiple cascaded ALF processes. In an example, ALF process 1002 may be cascaded with ALF process 1010 multiple times, or may otherwise be followed by multiple iterations of ALF process 1002 and ALF process 1010 that perform the ALF design. In other words, a single ALF design may include multiple cascades of various ALF processes, such as multiple cascades between ALF process 1002 and ALF process 1010.
[0220] In some examples, the filtering process may include multiple stages of pre-filtering operations (e.g., pre-filtering operation 1022) and / or post-filtering operations (e.g., post-filtering operation 1026), wherein the video encoder 200 applies one or more non-linear operations between the pre-filtering operation(s) and the post-filtering operation(s). In such examples, the one or more non-linear operations may include one or more non-linear operations 1024, which may in turn include the application of one or more different non-linear operators (e.g., a combination of ReLU and clipping).
[0221] As used herein, a pre-filtering operation (e.g., pre-filtering operation 1026) may generally refer to a filtering operation of an adaptive loop filtering process prior to application of a nonlinear operation (e.g., nonlinear operation 1012, nonlinear operation 1024, etc.) included as part of an ALF design. Likewise, a post-filtering operation (e.g., post-filtering operation 1026, filtering operation 1014, etc.) may generally refer to a filtering operation of an adaptive loop filtering process after application of a nonlinear operation. In some cases, a pre-filtering operation may differ from a post-filtering operation, such as in terms of the relative size of the respective operations. In an example, a pre-filtering operation may generally include a smaller (e.g., simpler) filter than a post-filtering operation, which in turn may include a larger sized filter.
[0222] In some examples, the video encoder 200 may decode a syntax element (e.g., an index) to determine one or more ALF processes from among a plurality of ALF processes. In such an example, the syntax element may define one or more ALF designs that the video encoder 200 has utilized or will otherwise urgently utilize during the video decoding process. In an example, the one or more ALF processes may be determined from among the ALF process 1002, the ALF process 1010, the ALF process 1020, or a variant / combination thereof. In some examples, the video encoder 200 may encode a syntax element indicating an adaptive loop filter process in a plurality of adaptive loop filter processes for video data, wherein the plurality of adaptive loop filter processes include (a) a single filtering operation (e.g., the ALF process 1002), (b) a non-linear operation followed by a filtering operation (e.g., the ALF process 1010), and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation (e.g., the ALF process 1020). Additionally, the video encoder 200 may code syntax elements indicating an adaptive loop filtering process (a) the ALF process 1002 , (b) the ALF process 1010 , and / or (c) a cascaded version of the ALF process 1020 .
[0223] In an illustrative example, the video encoder 200 may encode syntax elements indicating more than one cascaded version of the ALF process 1010 and the ALF process 1020. In an example, the syntax element may indicate a composition order indicating a cascade of the ALF process 1010, followed by the ALF process 1020, followed by another ALF process 1020, followed by the ALF process 1010. In a non-limiting example, as indicated by the syntax element, the various ALF processes cascaded together may include the same type of filter or nonlinear operator for each corresponding operation of each ALF process. In such an example, the corresponding parameters (e.g., filter coefficients) for the various ALF processes cascaded together may be different. In any case, the syntax element may indicate that a particular ALF design may be derived using one cascade or multiple cascades of ALF processes (such as multiple cascades of the ALF process 1002, the ALF process 1010, and the ALF process 1020). In another illustrative example, the syntax element may indicate a first concatenation of ALF process 1020 with ALF process 1002 and / or ALF process 1010, a first concatenation of ALF process 1002 with ALF process 1020 and / or ALF process 1010, a first concatenation of ALF process 1020 with ALF process 1002, or a first concatenation with various variations. In such an example, the syntax element may further indicate a second concatenation of ALF process 1002, ALF process 1010, and / or ALF process 1020 with one or more of the first concatenations. In this manner, video encoder 200 may indicate an ALF process to video decoder 300 (e.g., in Figure 10-12 The ALF process shown in FIG. 1 encodes multiple cascaded syntax elements of the ALF process (see FIG. 1 ).
[0224] In such examples, video encoder 200 may decode a syntax element that indicates a particular ALF process, or in some cases a combination of ALF processes, including a cascaded order (e.g., a composition order) of the ALF processes. In an illustrative example, the syntax element may indicate that the combination of ALF processes includes one or more applications of non-linear operations, such as Fig.11 Application of nonlinear operations in 1012, Fig.12 1024 or a variation / combination thereof. In another example, the syntax element may indicate a single-pass ALF design that includes one of the ALF process 1002, the ALF process 1010, the ALF process 1020, or a variation / combination thereof. In any case, the syntax element defines one or more ALF processes utilized during video decoding. As such, the syntax element effectively defines one or more ALF designs utilized by the video encoder 200 during the video decoding process.
[0225] In such an example, the video decoder 300 may then decode the syntax element to determine one or more ALF processes indicated by the syntax element. As such, the video decoder 300 may then apply the ALF design as indicated. Depending on the syntax element, the indicated ALF design may include a single ALF process or a combination of ALF processes (e.g., a cascade of ALF process 1002, ALF process 1010, or ALF process 1020, multiple cascades of ALF process 1002, ALF process 1010, or ALF process 1020, etc.). In an illustrative example, the video decoder 300 may apply an ALF design that includes multiple ALF processes based on the syntax element (e.g., reference 1004). Figure 10-12 The video decoder 300 may decode syntax elements that have been encoded by the video encoder 200. In another illustrative example, the video decoder 300 may perform an adaptive loop filtering process based on syntax elements, where the syntax elements indicate a non-linear operation to be applied to the video data that is combined (e.g., cascaded) with one or more non-linear operations or filtering operations. As described herein, the corresponding parameters (e.g., filter coefficients) for the various ALF processes combined together may be the same or different, and the types of non-linear operators or filtering operations may be the same or different, depending on what the syntax elements indicate to the video decoder 300.
[0226] Filtering Operations in Adaptive Loop Filter (ALF) Design
[0227] In some examples, the ALF design may include a filtering operation (which may also be used as pre-filtering and post-filtering) that includes one or more filters that have been pre-defined and / or adaptively learned / trained. In one example, the video encoder 200 may utilize a pre-defined filter in a pre-filtering operation or in a post-filtering operation. In another example, the video encoder 200 may utilize a filtering operation that the video encoder 200 has adaptively learned / trained. If the video encoder 200 adaptively learns the filtering operation, the video encoder 200 may signal the filter parameters / coefficients for the adaptively learned filtering operation. However, when the filter is pre-defined, the video encoder 200 may forgo signaling the filter coefficients for the pre-defined filter. In an illustrative example, Fig.12 The pre-filtering operation 1022 in may be pre-defined, and Fig.12 The post-filtering operation 1026 in may be adaptively learned / trained. In such a case, the video encoder 200 signals the post-filtering parameters / coefficients. In another example, Fig.12The pre-filtering operation 1022 in may be adaptively learned / trained, and Fig.12 The post-filtering operation 1026 in may be pre-defined.
[0228] In some examples, video encoder 200 may utilize Fig.12 The pre-filtering operation 1022 in the video encoder 200 may include one or more filters that have been pre-defined in some cases. Fig.12 1026, wherein the post-filtering operation 1026 may include one or more filters that have been adaptively learned / trained. In such an example, the video encoder 200 may signal the parameters / coefficients of the one or more filters for the post-filtering operation 1026. However, the video encoder 200 may effectively forgo signaling of one or more pre-defined filters for the pre-filtering operation 1022.
[0229] In some examples, the ALF design may include multiple predefined filter candidates, and may include multiple adaptive filter candidates. The video encoder 200 may signal an index to determine which filter to use among the multiple candidates.
[0230] In some examples, filters may be signaled hierarchically. In one example, video encoder 200 may signal filters hierarchically. An index (e.g., an APS index described above) for a filter bank (e.g., a set) may be signaled, and then another index may be signaled to identify a particular filter.
[0231] In an illustrative example, the video encoder 200 may signal an index (such as the APS index described herein) for a filter bank (e.g., a filter set). In such an example, the video encoder 200 may signal another index to identify a particular filter, such as a filter in the filter bank. In some examples, the filter set may include only one filter or may include multiple filters. In any case, the video encoder 200 and the video decoder 300 may signal a first index for the filter set and may signal a second index for a particular filter from the filter set.
[0232] In some examples, the video decoder 300 can infer the filter without signaling. In an example, the video decoder 300 can infer the filter based on side information available to the video decoder 300. In some examples, the side information can include classification information.
[0233] For example, a predefined filter may be defined as a simple summation, averaging, or subtraction of multiple input samples. In one example, a predefined filter may be defined as an averaging or subtraction of multiple input samples. In such an example, the video encoder 200 and the video decoder 300 may determine the sample position based on the classification (e.g., classification information, side information). In some examples, the filter holder (e.g., a diamond filter holder, etc.) may depend on the classification (e.g., classification information). That is, the filter holder may be defined by the class index of the input block.
[0234] Nonlinear Operations in Adaptive Loop Filter (ALF) Design
[0235] In some examples of adaptive loop filtering, the video encoder 200 and the video decoder 300 may include additional pre-processing operations (e.g., non-linear operation 1012 and / or non-linear operation 1024). As such, the pre-processing operations may include the application of one or more non-linear operators followed by a filtering operation (e.g., filtering operation 1014 and / or filtering operation 1026). In such examples, the video encoder 200 and the video decoder 300 may apply additional pre-processing operations to the input samples of the filtering process. The pre-processing operations may be expressed as a function of information available to the video decoder. In some examples, the pre-processing operations may be expressed as a function of sample / block coordinates and / or input sample values and / or color components. In addition, the video decoder may apply multiple pre-processing functions in any of a plurality of different combinations of non-linear operators.
[0236] In some examples, the video encoder 200 may identify a specific pre-processing function using an indicator or by an indicator. The video encoder 200 may send the indicator to the video decoder 300. In some examples, the video decoder 300 may identify a specific pre-processing function by an indicator. In another example, the video decoder 300 may derive the indicator without signaling. In some examples, the video decoder 300 may derive the indicator as part of the pre-processing function determination. In such an example, when the video decoder 300 decodes the video data, the video decoder 300 may determine the pre-processing function based on information available to the video decoder 300. In an example, the video decoder 300 may determine the pre-processing function based on sample position, block size, sample value, color component, or based on other available information without signaling.
[0237] In another example, the video encoder 200 and the video decoder 300 may perform an adaptive loop filtering process including a first filtering operation (e.g., a pre-filtering operation) and a second filtering operation (e.g., a post-filtering operation). As such, the first filtering operation may be cascaded with a nonlinear operation. The nonlinear operation may include a nonlinear operator as a function of sample / block coordinates and / or input sample values or color components. As such, the nonlinear operation may be cascaded with the second filtering operation. In such a case, the nonlinear operator may be identified using an indicator that may be sent to the video decoder 300, or may be derived by the video decoder 300 without signaling.
[0238] In some examples, the video decoder 300 can derive a nonlinear operator based on sample position, block size, sample value, color component, and any other available information. The nonlinear operator can be one of the following: (a) a contraction operator, (b) a sigmoid function, or (c) a ReLU function, or any combination thereof. In addition, the nonlinear operator can include a clipping operator as part of an adaptive loop filtering process. As described, the adaptive loop filtering process can follow a pre-limiting operation. In such a case, multiple clipping operations can be applied to video data before and during the adaptive loop filtering process. In another example, the pre-limiting operation can precede the adaptive loop filtering process, wherein the adaptive loop filtering process includes one or more of (a) a contraction operator, (b) a sigmoid function, or (c) a ReLU function, (d) a second clipping operation, or any combination thereof.
[0239] The utilized pre-processing function applied to the block / slice / tile / brick / picture from a plurality of available functions may be signaled in a parameter set and / or slice header. In some examples, the video encoder 200 may signal the utilized pre-processing function in a parameter set and / or slice header. In an illustrative example, the video encoder 200 may determine a non-linear operator from a plurality of available non-linear operators. The video encoder 200 may apply a non-linear operator to the block / slice / tile / brick / picture. In addition, the video encoder 200 may then signal the non-linear operator, such as in a parameter set and / or slice header.
[0240] In some examples, the video encoder 200 and the video decoder 300 may utilize one or more of the following example nonlinear operators in a particular ALF design. In one example, the video decoder may utilize one or more combinations of the following example nonlinear operators in a particular ALF design:
[0241] Clipping operation with parameter α ≥ 0:
[0242]
[0243] Contraction operation with parameter α ≥ 0
[0244]
[0245] Sigmoid function with parameter α:
[0246]
[0247] ReLU (Rectified Linear Unit) function:
[0248] ReLU(x i )=max(0,x i )
[0249] where x i Represents the input sample at location i. Nonlinear operations are defined by the type of nonlinear operator (e.g., clipping, shrinkage, sigmoid, and ReLU functions) and the parameters of the nonlinear operator (e.g., parameter α) or for multiple nonlinear operators (e.g., combinations of nonlinear operators).
[0250] In some examples, the video encoder 200 and the video decoder 300 may cascade multiple nonlinear operators, such as by cascading different types of nonlinear operators together to represent a combination of nonlinear operators. Mathematically, any nonlinear operator f 1 and f 2 Can be cascaded so that the output sample y i is obtained by taking the input sample x i The result obtained by applying the composition of the two functions is as follows:
[0251] y i =f 2 (f 1 (x i ))
[0252] In an illustrative example, video encoder 200 and video decoder 300 may apply a clipping operator followed by applying a shrinking operator. In some examples, a cascade (eg, chaining) of nonlinear operators may be mathematically represented as follows:
[0253]
[0254] where α 1 and α 2 Represent the parameters for shrinking operation and limiting operation respectively.
[0255] In another example, the video encoder 200 and the video decoder 300 may apply a clipping operator after applying a ReLU operator. In such an example, the cascade of nonlinear operators may be mathematically represented as follows:
[0256]
[0257] where α 2 represents the parameters for the clipping operation. In some cases, the ReLU operator can be based on effectively i A combination of adjacent neighboring pixels is applied.
[0258] In an example ALF design, video encoder 200 and video decoder 300 may apply a nonlinear operation (see process 1012 and process 1024) to a subset of input samples. In an illustrative example, video encoder 200 may Fig.11 Nonlinear operations in 1012 or Fig.12 In some examples, video encoder 200 and video decoder 300 may apply nonlinear operation 1012 to a subset of samples by applying one or more nonlinear operators to a single sample or by applying one or more nonlinear operators to multiple samples.
[0259] A flag may be signaled to indicate whether a nonlinear operation is applied to any of the samples. In some examples, the video encoder 200 may signal a flag to indicate that the video encoder 200 has performed one or more nonlinear operations on one or more samples. In one example, the video encoder 200 may signal a flag to indicate that the video encoder 200 has applied a nonlinear operator or multiple nonlinear operators to at least one sample of the ALF process. If the flag is enabled, the nonlinear operation parameters may be signaled for each input sample or for a subset of samples. In another example, the video encoder 200 may signal a flag to indicate that the video encoder 200 has applied a specific loop filter (e.g., a bilateral filter) following the nonlinear operator. However, in some examples, the video decoder 200 may signal nonlinear operation parameters such as for each input sample, for a subset of samples, etc., without signaling a flag.
[0260] In some examples, the video encoder 200 and the video decoder 300 may apply different nonlinear operators to different input samples (e.g., subsequent input samples). That is, the video encoder 200 and the video decoder 300 may apply a first nonlinear operator to a first input sample as part of the ALF process, and may subsequently apply a second nonlinear operator to a second input sample, where the first input sample and the second input sample may define different types of input samples (e.g., luma samples, chroma samples, etc.).
[0261] In one example, a single type of nonlinear function (e.g., clipping) with different alpha parameters can be used for each input sample. In some examples, the video encoder 200 and the video decoder 300 can utilize a single type of nonlinear operator (e.g., clipping, sigmoid, etc.) for each input sample, where each nonlinear operator is represented by different parameters (e.g., one or more alpha parameters). That is, the video encoder 200 and the video decoder 300 can utilize a sigmoid nonlinear operator with a first set of parameters for a first input sample, and then, can utilize a sigmoid nonlinear operator with a second set of parameters for a second input sample, where the first set of parameters can be advantageously different from the second set of parameters. The difference in parameters can be based on the type of sample or other decoding information that enables the video encoder 200 and the video decoder 300 to apply certain parameters or certain operations in various decoding environments.
[0262] In another example, more than one type of nonlinear function (e.g., clipping and shrinking) with different alpha parameters may be used. In some examples, the video encoder 200 and the video decoder 300 may utilize multiple types of nonlinear operators (e.g., clipping and shrinking, clipping and ReLU, clipping and sigmoid, shrinking and sigmoid, etc.) in a single ALF design. In such examples, each nonlinear operator may be represented by a different parameter (e.g., alpha parameter), or in some cases, an alpha parameter may not be included, such as utilizing a ReLU nonlinear operator.
[0263] The cascade order of these functions (i.e., the synthesis order) can be adaptive and signaled. The video encoder 200 and the video decoder 300 can combine such non-linear operators to create a cascaded non-linear operator (e.g., a synthesis of non-linear operators). In such examples, the cascade order of these non-linear operators (e.g., synthesis order, cascade order, etc.) can be adaptive and / or signaled. In one example, the video encoder 200 can adaptively learn the synthesis order, while in other instances, the synthesis order can be pre-defined (e.g., not signaled).
[0264] For each input sample or a subset of samples, both the type of nonlinear operation (e.g., clipping, shrinkage, sigmoid) and the corresponding parameters (i.e., alpha parameters) can be signaled. In the signaling example, the video encoder 200 can signal both the type of nonlinear operator (e.g., clipping, shrinkage, sigmoid, ReLU, etc.) and the corresponding parameters (e.g., alpha parameters). The video encoder 200 can signal both the operator type and parameters for each input sample or, in some cases, for a subset of samples.
[0265] In some examples, the video encoder 200 and the video decoder 300 may assign each nonlinear operation to an index. In another example, the video encoder 200 may assign each pair of nonlinear operator types (e.g., clipping and ReLU, clipping and sigmoid, ReLU and sigmoid, etc.) and corresponding parameters (e.g., alpha parameters) to an index.
[0266] In such an example, video coder 200 may signal an index value to specify the index value to be applied to the sample (x i ), where each non-linear operation may include the application of one or more non-linear operators. In some examples, the video encoder 200 may use a fixed length code, a unary code, or a truncated unary code to signal the index information.
[0267] In another example, the nonlinear function type and the alpha parameter may be separately signaled. In one example, the video encoder 200 may signal one or more types of nonlinear operators (e.g., sigmoid, clipping, etc.) separated from corresponding alpha parameters (e.g., sigmoid parameters, clipping parameters, etc.). That is, the video encoder 200 may signal the type of nonlinear operator separated from the parameters of the nonlinear operator (e.g., alpha), and as such, the video decoder 300 may determine that the separate signal indicates both the type of nonlinear operator and the corresponding parameters of the nonlinear operator (if any).
[0268] In some examples, the parameters may be filter dependent or position dependent. In one example, the parameters for the nonlinear operation may depend on a pre-filtering operation preceding the nonlinear operation and / or a post-filtering operation following the nonlinear operation. In another example, the parameters of the nonlinear operator may be position dependent, such as depending on the position of the input sample relative to other samples of the respective decoding block.
[0269] In some examples, separate sets of nonlinear operations may be defined for a luma channel and a chroma channel. In one example, the video encoder 200 may define a first set of nonlinear operations for a luma component and may define a second set of nonlinear operations for a chroma component. In some examples, the first set of nonlinear operations may be similar to the second set of nonlinear operations, such as by including the same nonlinear operator. In another example, the first set of nonlinear operations and the second set of nonlinear operations may include separate nonlinear operations. In addition, the video encoder 200 may utilize a separate ALF process for each of the channels, wherein the separate ALF processes may be the same or different from each other.
[0270] In some examples, a separate set of non-linear operations may be defined based on the coding information of a block / slice / tile group / picture / tile / brick (such as prediction type, number of non-zero quantization coefficients, quantization parameter, motion vector, intra mode, etc.). In one example, the video encoder 200 may define a separate set of non-linear operations based on the coding information of a block / slice / tile group / picture / tile / brick (such as prediction type, number of non-zero quantization coefficients, quantization parameter, motion vector, intra mode, etc.). In an exemplary example, the video encoder 200 may define a first set of non-linear operations for a first ALF design based on a first prediction type, and may define a second set of non-linear operations for a second ALF design based on a second prediction type, wherein the first set of non-linear operations may be separate from the second set of non-linear operations. In some examples, the first set of non-linear operations for the first ALF design may be different from the second set of non-linear operations for the second ALF design. In another example, the video encoder 200 may assign different parameter sets for different quantization parameter (QP) ranges. In such an example, the video encoder 200 may encode a syntax element indicating the parameter, wherein the parameter depends on the QP (e.g., a range of QPs) used by the video encoder 200 to code a particular block / slice / tile group / picture / tile / brick. The video decoder 300 may decode the syntax element accordingly to determine the parameter (e.g., filter coefficients, non-linear operator parameters, etc.). The video decoder 300 may then perform the indicated ALF process based on the encoded parameters indicated by the decoded syntax element.
[0271] Examples of non-linear operation candidates include:
[0272] a.{Clip α=6 , Clip α=32 , Clip α=181 , Clip α=1024}
[0273] b.{Clipα=6 , Clip α=32 , Clip α=181 , Clip α=1024 ,
[0274] Shrink α=32 , Shrink α=64 , Shrink α=128 , Shrink α=256}
[0275] c.{Clip α=6 , Clip α=32 , Clip α=181 , Clip α=1024 ,
[0276] ReLU, Shrink α=64 , Shrink α=128 , Shrink α=256}
[0277] The first example consists of four candidates, and the other two examples consist of eight candidates. In some examples, the video encoder 200 and the video decoder 300 may define the selection of α based on the BD. The video decoder may then scale α accordingly.
[0278] In some examples, when the video encoder 200 and the video decoder 300 apply a limiting operation or a shrinking operation to the filter coefficient set, the dynamic range of the coefficients may be changed (e.g., increased or decreased). In such a case, the video encoder 200 and the video decoder 300 may adjust the decoding operation accordingly. In one example, when the video encoder 200 applies a shrinking operation or a clipping operation to the filter coefficient set, the dynamic range of the coefficients may be changed (e.g., increased or decreased). In such a case, the video encoder 200 and the video decoder 300 may adjust the decoding operation accordingly. α (x i ), the video encoder 200 may adjust the decoding operation to the signal x i -α, instead of signal x i .
[0279] Fig.13 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 3 ), but it should be understood that other devices may be configured to perform similar Fig.13 method of method of method.
[0280] In this example, video encoder 200 initially predicts a current block (350). For example, video encoder 200 may form a prediction block for the current block. Video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, video encoder 200 may calculate the difference between the original unencoded block and the prediction block for the current block.
[0281] The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy 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). In some cases, the video encoder 200 may implement a reconstruction loop. For example, the video encoder 200 may implement a reconstruction loop using the adaptive loop filtering techniques and / or ALF designs disclosed herein to reconstruct the encoded video data. According to one or more of the various techniques disclosed herein, the video encoder 200 may be configured to reconstruct the current block after calculating the residual block, and apply one or more ALF processes to the video data (e.g., unencoded video data).
[0282] In one example, after the video encoder 200 calculates a residual block for the current block (352), or after the video encoder 200 transforms and quantizes the residual block (354), the video encoder 200 can be further configured to reconstruct the current block (361). The video encoder 200 can then determine a syntax element indicating one of a plurality of adaptive loop filtering processes for the video data and encode the syntax element, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation (363). In addition, the video encoder 200 can apply the adaptive loop filtering process (including any one of the one or more non-linear operations) to the video data (365) and store the filtered block (367).
[0283] In an example, the video encoder 200 may apply one or more nonlinear operators 217 to the video data in an adaptive loop filtering process. The video encoder 200 may generate a filtered block from the adaptive loop filtering process. In some cases, the video encoder 200 may then store the filtered block to a memory. In addition, the video encoder 200 may encode a syntax element indicating the manner in which the one or more nonlinear operators are to be applied.
[0284] In another example, the video encoder 200 may determine the nonlinear operation and the filtering operation performed in the adaptive loop filtering process. The video encoder 200 may then perform the adaptive loop filtering process by applying the filtering operation and the nonlinear operation to the video data. In addition, the video encoder 200 may encode a syntax element indicating the manner in which the adaptive loop filtering process is performed. In such an example, the nonlinear operation may include applying one or more nonlinear operators 217 to the incoming video data.
[0285] Fig.14 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform similar Fig.14 method of method of method.
[0286] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data for transform coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and to reproduce transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-prediction mode or an inter-prediction mode as indicated by the prediction information for 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 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction block with the residual block (380).
[0287] The video decoder 300 may further decode a syntax element indicating one of a plurality of adaptive loop filtering processes for the video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation (383), and apply the indicated adaptive loop filtering process to the video data based on the syntax element (385). The video decoder 300 may then store the filtered block (387).
[0288] In an example, following combining the prediction block with the residual data, the video decoder 300 may decode a syntax element indicating the manner in which a non-linear operation is to be applied to the video data during the adaptive loop filtering process. The video decoder 300 may apply the non-linear operation to the video data based on the syntax element. In some cases, the video decoder 300 may store the filtered block to a memory.
[0289] In another example, following the combination of the prediction block and the residual data, the video decoder 300 may decode a syntax element indicating the manner in which the adaptive loop filtering process is to be performed. The syntax element may indicate that a non-linear operation is to be applied to the video data. In addition, the video decoder 300 is configured to apply the non-linear operation in combination with the filtering operation of the adaptive loop filtering process. In addition, the video decoder 300 may perform the adaptive loop filtering process based on the syntax element. That is, the video decoder 300 may perform a combination of the filtering operation and the non-linear operation as part of the adaptive loop filtering process.
[0290] Fig.15 is a flowchart illustrating an example adaptive loop filtering method according to one or more of the various techniques disclosed herein. Although with respect to the video decoder 300 ( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform similar Fig.15 method of method of method.
[0291] In some examples, the video decoder 300 may decode a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a nonlinear operation is to be applied to the video data, the nonlinear operation being configured to be applied in conjunction with a filtering operation of the adaptive loop filtering process (1502). In addition, the video decoder 300 may perform the adaptive loop filtering process based on the syntax element (1504). In an example, the video decoder may apply a nonlinear operation and a filtering operation to the video data to generate a filtered block of the video data. The nonlinear operation may include the application of one or more nonlinear operators 313. Example nonlinear operators 313 include a clipping operator, a shrinkage operator, a sigmoid function, or a ReLU function. In some cases, the video decoder 300 may store the filtered block to a memory.
[0292] In some examples, the syntax element indicates a concatenated version of the non-linear operator 313. In such a case, the video decoder 300 can decode the syntax element to determine the concatenated version of the non-linear operator 313. In another example, the syntax element can indicate a parameter of the non-linear operation. In an example, the parameter can include a clipping value, where the non-linear operation includes a clipping operator.
[0293] In some examples, when performing an adaptive loop filtering process, the video decoder 300 may first determine an order for combining a non-linear operation with a filtering operation. In some cases, the order may include the synthesis of a non-linear operation followed by a filtering operation, or vice versa. In an illustrative example, the order may include applying a non-linear operation followed by a filtering operation. In such an example, the video decoder 300 may apply a non-linear operation followed by a filtering operation.
[0294] In some examples, the video decoder 300 may determine the nonlinear operation based on sample position, block size, sample value, or color component. That is, the video decoder 300 may be configured to derive the nonlinear operation without signaling. In such an example, the video decoder 300 may apply the determined nonlinear operation to the input samples of the adaptive loop filtering process.
[0295] In some examples, the filtering operation may be predefined or adaptive. In the case where the filtering operation is adaptive, the video decoder 300 may determine one or more filter coefficients for the filtering operation. In some examples, the video decoder 300 may determine from the side information whether the filtering operation is predefined or adaptive. In one example, the video decoder 300 may determine from the side information that a given filtering operation is adaptive. In response to the determination, the video decoder 300 may implement an adaptive loop filter including a nonlinear operation or multiple nonlinear operations. That is, in response to the determination, the video decoder 300 enables (e.g., turns on) an adaptive loop filtering process. The side information may include classification information. The adaptive filter may include an adaptively trained filter. In the case of an adaptive filter, the video decoder 300 may determine the coefficients for the filtering operation in the case of signaling. In one example, the video decoder 300 may determine the coefficients of all adaptive filtering operations.
[0296] In some examples, the video decoder 300 may apply the filtering operation of the adaptive loop filtering process in multiple filtering stages. That is, the filtering operation may include multiple filtering operations split across multiple stages. In such an example, the multiple filtering stages may include a first filtering stage and a second filtering stage, in which the pre-filtering operation is configured to be applied, and in which the post-filtering operation is configured to be applied. In addition, the video decoder 300 may be configured to apply nonlinear operations between various different filtering stages. That is, in an example, the video decoder 300 may apply a pre-filtering operation, followed by a nonlinear operation, and followed by a post-filtering operation. In an illustrative example, the video decoder 300 may determine that the nonlinear operation includes the application of one or more clipping operators. In such a case, the video decoder 300 may apply the nonlinear operation after the pre-filtering operation. In such a case, the video decoder 300 may or may not apply the post-filtering operation after the nonlinear operation.
[0297] In some examples, the video decoder 300, when performing an adaptive loop filtering process, can be configured to apply a combination of filtering operations and non-linear operations to a reconstructed block of video data to generate a filtered block of video data. As such, the video decoder 300 can output the filtered block to the DPB 314.
[0298] In some examples, the pre-limiting operation may precede the adaptive loop filtering process. In such a case, the nonlinear operation of the adaptive loop filtering process is separated from the pre-limiting operation. That is, the syntax element defining the adaptive loop filtering process defines one or more nonlinear operations and one or more filtering operations of the adaptive loop filtering process, and therefore, the adaptive loop filtering process is applied based on the syntax element. In such a case, a separate syntax element may be used to define the pre-limiting operation.
[0299] In such examples, the video data is one of a coded block of video data, a slice of video data, a tile of video data, a brick of video data, and / or a picture of video data. That is, the video decoder 300 can decode video data, where the video data may have been encoded by the video encoder 200 using a similar adaptive loop filtering process.
[0300] As discussed above, as described Fig.15 The example method of may be performed by one or more processors implemented in a circuit. The one or more processors may be included in a video decoder, or in some examples may be included in a video encoder.
[0301] Fig.16 is a flowchart illustrating an example adaptive loop filtering method according to one or more of the various techniques disclosed herein. Although with respect to the video encoder 200 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform similar Fig.16 method of method of method.
[0302] In some examples, video encoder 200 may determine non-linear operations and filtering operations to be performed in an adaptive loop filtering process (1602). In some examples, video encoder 200 may determine at least one non-linear operator to be applied in the adaptive loop filtering process, wherein video encoder 200 may perform the adaptive loop filtering process by performing non-linear operations including application of at least one non-linear operator. As described, the adaptive loop filtering process may include a cascade of filtering and non-linear operations, as well as other permutations described herein in only some examples.
[0303] In some examples, the video encoder 200 may then perform an adaptive loop filtering process (1604) by applying filtering operations and non-linear operations to the video data. In one example, the video encoder 200 may apply an adaptive loop filtering process (including at least one filtering operation and at least one non-linear operation) to the input samples, as described in reference to e.g. Figure 10-13 as described.
[0304] In some examples, video encoder 200 may encode syntax elements indicating the manner in which the adaptive loop filtering process is performed (1606). As described herein, the syntax elements may include ALF information about non-linear operations and / or filtering operations (including coefficients and operation / operator types used in the ALF process).
[0305] As discussed above, as described Fig.16 The example method of may be performed by one or more processors implemented in a circuit. The one or more processors may be included in a video encoder, such as in a combined video encoder-decoder.
[0306] Illustrative examples of the present disclosure include:
[0307] Example 1: A device for decoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: decode a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in combination with a filtering operation of the adaptive loop filtering process; and perform the adaptive loop filtering process based on the syntax element.
[0308] Example 2: An apparatus according to Example 1, wherein the nonlinear operation comprises one or more nonlinear operators, including one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
[0309] Example 3: An apparatus according to any of Examples 1 or 2, wherein the syntax element indicates a concatenated version of the non-linear operator.
[0310] Example 4: An apparatus according to any one of Examples 1 to 3, wherein the syntax element indicates a parameter of the non-linear operation.
[0311] Example 5: An apparatus according to any one of Examples 1 to 4, wherein, in order to perform the adaptive loop filtering process, the one or more processors are configured to: determine an order of combining the nonlinear operation and the filtering operation, wherein the order includes applying the nonlinear operation followed by the filtering operation; and applying the nonlinear operation followed by the filtering operation.
[0312] Example 6: An apparatus according to any one of Examples 1 to 5, wherein, in order to perform the adaptive loop filtering process, the one or more processors are configured to: determine the nonlinear operation based on sample position, block size, sample value or color component; and apply the determined nonlinear operation to input samples of the adaptive loop filtering process.
[0313] Example 7: An apparatus according to any one of Examples 1 to 6, wherein the filtering operation is predefined or adaptive.
[0314] Example 8: The apparatus of Example 7, wherein the filtering operation is adaptive, and wherein the one or more processors are further configured to: determine one or more filter coefficients for the filtering operation.
[0315] Example 9: An apparatus according to any of Examples 7 or 8, wherein the one or more processors are further configured to: determine from side information whether the filtering operation is predefined or adaptive.
[0316] Example 10: An apparatus according to any one of Examples 1 to 6, wherein the one or more processors are configured to apply the filtering operation of the adaptive loop filtering process in multiple filtering stages, wherein the multiple filtering stages include: a first stage, wherein a pre-filtering operation is configured to be applied before the non-linear operation; and a second stage, wherein a post-filtering operation is configured to be applied after the non-linear operation.
[0317] Example 11: An apparatus according to Example 10, wherein, in order to perform the adaptive loop filtering process, the one or more processors are configured to: determine that the nonlinear operation includes the application of one or more limiting operators; and apply the nonlinear operation after the pre-filtering operation.
[0318] Example 12: An apparatus according to any one of Examples 1 to 6 and Example 10 or Example 11, wherein, in order to perform the adaptive loop filtering process, the one or more processors are configured to: apply the combination of the filtering operation and the non-linear operation to a reconstructed block of the video data to generate a filtered block of the video data; and output the filtered block to a decoded picture buffer (DPB).
[0319] Example 13: An apparatus according to any one of Examples 1 to 12, wherein a pre-limiting operation precedes the adaptive loop filtering process, and wherein the nonlinear operation of the adaptive loop filtering process is separate from the pre-limiting operation.
[0320] Example 14: An apparatus according to any one of Examples 1 to 13, wherein the video data is one of a coded block of video data, a slice of video data, a tile of video data, a brick of video data and / or a picture of video data.
[0321] Example 15: The apparatus according to any one of Examples 1 to 14, further comprising a display configured to display the decoded video data following the execution of the adaptive loop filtering process.
[0322] Example 16: A method for decoding video data, the method comprising: decoding a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in combination with a filtering operation of the adaptive loop filtering process; and performing the adaptive loop filtering process based on the syntax element.
[0323] Example 17: The method according to Example 16, wherein the nonlinear operation includes one or more nonlinear operators, and the nonlinear operator includes one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
[0324] Example 18: The method according to any of Examples 16 or 17, wherein the syntax element indicates a concatenated version of the non-linear operator.
[0325] Example 19: A method according to any one of Examples 16 to 18, wherein the syntax element indicates a parameter of the non-linear operation.
[0326] Example 20: A method according to any one of Examples 16 to 19, wherein performing the adaptive loop filtering process includes: determining an order for combining the nonlinear operation and the filtering operation, wherein the order includes applying the nonlinear operation followed by the filtering operation; and applying the nonlinear operation followed by the filtering operation.
[0327] Example 21: A method according to any one of Examples 16 to 20, wherein performing the adaptive loop filtering process includes: determining the nonlinear operation based on sample position, block size, sample value or color component; and applying the determined nonlinear operation to the input samples of the adaptive loop filtering process.
[0328] Example 22: A method according to any one of Examples 16 to 21, wherein the filtering operation is predefined or adaptive.
[0329] Example 23: The method of Example 22, wherein the filtering operation is adaptive, and wherein the method further comprises determining one or more filter coefficients for the filtering operation.
[0330] Example 24: The method according to any of Examples 16 to 20 further includes: determining whether the filtering operation is adaptive based on side information; and enabling the adaptive loop filtering process in response to the determination.
[0331] Example 25: The method according to any one of Examples 16 to 24 further includes: applying the filtering operation of the adaptive loop filtering process in multiple filtering stages, wherein the multiple filtering stages include: a first stage, wherein the pre-filtering operation is configured to be applied before the nonlinear operation; and a second stage, wherein the post-filtering operation is configured to be applied after the nonlinear operation.
[0332] Example 26: A method according to any one of Examples 16 to 25, wherein performing the adaptive loop filtering process comprises: determining that the nonlinear operation includes application of one or more limiting operators; and applying the nonlinear operation following the pre-filtering operation.
[0333] Example 27: A method according to any one of Examples 16 to 26, wherein performing the adaptive loop filtering process comprises: applying the combination of the filtering operation and the non-linear operation to a reconstructed block of the video data to generate a filtered block of the video data; and outputting the filtered block to a decoded picture buffer (DPB).
[0334] Example 28: A method according to any one of Examples 16 to 27, wherein a pre-limiting operation precedes the adaptive loop filtering process, and wherein the nonlinear operation of the adaptive loop filtering process is separate from the pre-limiting operation.
[0335] Example 29: A method according to any one of Examples 16 to 28, wherein the video data is one of a coded block of video data, a slice of video data, a tile of video data, a brick of video data and / or a picture of video data.
[0336] Example 30: A device for encoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: determine a nonlinear operation and a filtering operation performed in an adaptive loop filtering process; perform the adaptive loop filtering process by applying the filtering operation and the nonlinear operation to the video data; and encode a syntax element indicating the manner in which the adaptive loop filtering process is performed.
[0337] Example 31: An apparatus according to Example 30, wherein, in order to encode the syntax element, the one or more processors are configured to: encode the syntax element to indicate the filtering operation or the non-linear operation as a first operation of the adaptive loop filtering process.
[0338] Example 32: An apparatus according to any one of Examples 30 or 31, wherein, in order to encode the syntax element, the one or more processors are configured to: encode the syntax element to indicate a synthesis order for the filtering operation and the non-linear operation.
[0339] In some implementations, Examples 1-15, 16-29, and / or 30-32 described above may be implemented using one or more units including means for performing some or all of the various operations. In Example 33, an apparatus for decoding video data includes: a unit for decoding a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a non-linear operation is to be applied to the video data, the non-linear operation being configured to be applied in combination with a filtering operation of the adaptive loop filtering process; and a unit for performing the adaptive loop filtering process based on the syntax element.
[0340] Example 34: An apparatus according to Example 33, wherein the unit for performing the adaptive loop filtering process includes: a unit for applying the non-linear operation; and a unit for applying the filtering operation following the non-linear operation.
[0341] Example 35: The apparatus according to any of Examples 33 or 34, further comprising: a unit for applying the filtering operation of the adaptive loop filtering process in a plurality of filtering stages separated by the non-linear operation.
[0342] Example 36: An apparatus according to any one of Examples 33 to 35, wherein the unit for performing the adaptive loop filtering process includes: a unit for applying the non-linear operation to a reconstructed block of the video data.
[0343] In some implementations, the above description is that Examples 1-15, Examples 16-29, and / or Examples 30-32 may be implemented using a computer-readable storage medium storing instructions, which, when executed, cause one or more processors of a device to perform some or all of the various operations. In Example 37, a computer-readable storage medium storing instructions may be provided, which, when executed, causes one or more processors of a device for decoding and / or encoding video data to perform the following operations: decoding a syntax element indicating a manner in which an adaptive loop filtering process is to be performed, the syntax element indicating that a nonlinear operation is to be applied to the video data in combination with a filtering operation; and performing the adaptive loop filtering process based on the syntax element.
[0344] Example 38: A non-transitory computer-readable storage medium according to Example 37, wherein the non-linear operation includes one or more non-linear operators, which include one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
[0345] Example 39: A non-transitory computer-readable storage medium according to any of Examples 37 or 38, wherein the instructions, when executed, cause the one or more processors to apply the filtering operation and the non-linear operation to a reconstructed block of the video data to produce a filtered block of the video data.
[0346] Example 40: A non-temporary computer-readable storage medium according to any one of Examples 37 to 39, wherein the instructions, when executed, cause the one or more processors to perform the following operations: determine one or more filter coefficients for the filtering operation; and determine one or more parameters for the nonlinear operation.
[0347] Example 41: A non-transitory computer-readable storage medium according to any one of Examples 37 to 40, wherein the instructions, when executed, cause the one or more processors to perform the following operations: determine an order for combining the nonlinear operation and the filtering operation.
[0348] Example 42: A method for decoding video data, the method comprising: decoding a syntax element indicating an adaptive loop filtering process among multiple adaptive loop filtering processes for the video data, wherein the multiple adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by the filtering operation, and (c) a pre-filtering operation, followed by the non-linear operation, followed by a post-filtering operation; and applying the indicated adaptive loop filtering process to the video data based on the syntax element.
[0349] Example 43: A method according to Example 42, wherein the syntax element indicates a cascaded version of the adaptive loop filtering process (a), (b) and / or (c).
[0350] Example 44: A method according to any of Examples 42 or 43, wherein one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is pre-defined.
[0351] Example 45: A method according to any one of Examples 42 to 44, wherein one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is adaptive, and the method further comprises: receiving one or more of the filtering parameters or filter coefficients for one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation.
[0352] Example 46: A method according to any one of Examples 42 to 45, wherein one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is adaptive, and one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is predefined, the method further comprising: receiving a second syntax element indicating whether the single filtering operation, the pre-filtering operation or the post-filtering operation is adaptive.
[0353] Example 47: A method according to any one of Examples 42 to 46, wherein one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is adaptive, and one or more of the single filtering operation, the pre-filtering operation or the post-filtering operation is predefined, the method further comprising: inferring whether the single filtering operation, the pre-filtering operation or the post-filtering operation is predefined or adaptive based on side information.
[0354] Example 48: The method of Example 47, wherein the side information includes classification information.
[0355] Example 49: A method according to any one of Examples 42 to 48, wherein the video data is one of a block of video data, a slice of video data, a tile of video data, a brick of video data and / or a picture of video data.
[0356] Example 50: A method according to any one of Examples 42 to 49, wherein the nonlinear operation is one or more of a clipping operation, a shrinkage operation, a sigmoid function, or a ReLU function.
[0357] Example 51: A method according to any one of Examples 42 to 50, wherein the decoding includes decoding.
[0358] Example 52: A method according to any one of Examples 42 to 51, wherein decoding includes encoding.
[0359] Example 53: A device for decoding video data, the device comprising one or more units for performing the method of any one of Examples 42 to 52.
[0360] Example 54: The apparatus of Example 53, wherein the one or more units include one or more processors implemented in a circuit.
[0361] Example 55: The device according to any one of Examples 53 or 54 further includes a memory for storing the video data.
[0362] Example 56: The device according to any one of Examples 53 to 55, further comprising a display configured to display the decoded video data.
[0363] Example 57: A device according to any one of Examples 53 to 56, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0364] Example 58: A device according to any one of Examples 53 to 57, wherein the device comprises a video decoder.
[0365] Example 59: A device according to any one of Examples 53 to 58, wherein the device comprises a video encoder.
[0366] Example 60: A computer-readable storage medium having instructions stored thereon, which, when executed, cause one or more processors to perform the method of any one of Examples 42 to 52.
[0367] Example 61: Any combination of the techniques described in this disclosure.
[0368] In some implementations, Examples 42 to 52 and / or Examples 53 to 59 described above may be implemented using a computer-readable storage medium storing instructions, which, when executed, cause one or more processors of a device to perform some or all of the various operations. For example, a computer-readable storage medium storing instructions may be provided, which, when executed, causes one or more processors of a device for decoding and / or encoding video data to perform the following operations: decoding a syntax element indicating an adaptive loop filtering process in a plurality of adaptive loop filtering processes for video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation; and applying the indicated adaptive loop filtering process to the video data based on the syntax element.
[0369] In some implementations, Examples 42 to 52 and / or Examples 53 to 59 described above may be implemented using one or more units including means for performing some or all of the various operations. For example, an apparatus for encoding video data includes: a unit for decoding a syntax element indicating an adaptive loop filtering process in a plurality of adaptive loop filtering processes for video data, wherein the plurality of adaptive loop filtering processes include (a) a single filtering operation, (b) a non-linear operation followed by a filtering operation, and (c) a pre-filtering operation followed by a non-linear operation followed by a post-filtering operation; and applying the indicated adaptive loop filtering process to the video data based on the syntax element.
[0370] It should be appreciated that, depending on the example, 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). Additionally, in some examples, actions or events may be performed concurrently, such as through multithreading, interrupt handling, or multiple processors, rather than sequentially.
[0371] 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 or transmitted on 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, which corresponds to tangible media such as data storage media or communication media, including any media that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, computer-readable media may generally correspond to: (1) a tangible computer-readable storage medium that is non-transitory; or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for the implementation of the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0372] By way of 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 desired program codes in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is properly referred to as a computer-readable medium. For example, if the instruction is sent from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology (such as infrared, radio, and microwave), 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 point to non-temporary, tangible storage media. Disks and optical disks as used herein include compact discs (CDs), laser optical disks, optical disks, digital versatile discs (DVDs), floppy disks, and blue-ray discs, wherein disks usually copy data magnetically, and optical disks use lasers to optically copy data. Combinations of the above should also be included within the scope of computer-readable media.
[0373] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the foregoing structures or any other structure suitable for implementation of the techniques described herein. Furthermore, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Furthermore, the techniques may be fully implemented in one or more circuits or logic elements.
[0374] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handheld devices, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize aspects of the functionality of a device configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperating hardware units including one or more processors as described above in combination with suitable software and / or firmware.
[0375] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A device for decoding video data, the device include: a memory configured to store the video data; as well as One or more processors implemented in circuitry and configured to: decoding a syntax element indicating an adaptive loop filtering process from a plurality of adaptive loop filtering processes, wherein at least two of the plurality of adaptive loop filtering processes include application of a corresponding non-linear operation in combination with a filtering operation, and wherein at least one of the plurality of adaptive loop filtering processes includes a first stage in which a pre-filtering operation is configured to be applied before the corresponding non-linear operation and further includes a second stage in which a post-filtering operation is configured to be applied after the corresponding non-linear operation; and The adaptive loop filtering process indicated by the syntax element is performed on the video data.
2. The device according to claim 1, in, The syntax element indicates an adaptive loop filtering process among the multiple adaptive loop filtering processes that includes the corresponding non-linear operation and the application of the filtering operation, and wherein the corresponding non-linear operation includes one or more non-linear operators, and the non-linear operators include one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
3. The device according to claim 2, in, The syntax element indicates a cascaded version of the non-linear operator combined with the filtering operation.
4. The device according to claim 1, in, The syntax element indicates one of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein the syntax element further indicates parameters of the corresponding non-linear operation.
5. The device according to claim 1, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein, to perform the adaptive loop filtering process, the one or more processors are configured to: determining an order for combining the corresponding non-linear operation with the filtering operation, wherein the order includes applying the corresponding non-linear operation followed by the filtering operation; and The corresponding non-linear operation is applied, followed by the filtering operation.
6. The device according to claim 1, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein, to perform the adaptive loop filtering process, the one or more processors are configured to: determining the corresponding non-linear operation based on a sample position, a block size, a sample value, or a color component; and The corresponding non-linear operation is applied to input samples of the adaptive loop filtering process.
7. The device according to claim 1, in, To perform the adaptive loop filtering process, the one or more processors are configured to: determining that the corresponding non-linear operation comprises application of one or more clipping operators; and The corresponding non-linear operation is applied subsequent to the pre-filtering operation.
8. The device according to claim 1, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein, to perform the adaptive loop filtering process, the one or more processors are configured to: applying the filtering operation and the corresponding non-linear operation to a reconstructed block of the video data to produce a filtered block of the video data; and The filtered blocks are output to a decoded picture buffer (DPB).
9. The device according to claim 1, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes that includes application of the corresponding non-linear operation and the filtering operation, and wherein the one or more processors are further configured to: A pre-clipping operation is performed prior to the adaptive loop filtering process, wherein the corresponding non-linear operation of the adaptive loop filtering process is separate from the pre-clipping operation.
10. The device according to claim 1, in, The video data is one of a coded block of video data, a slice of video data, a tile of video data, a brick of video data, and / or a picture of video data.
11. The apparatus of claim 1, further comprising a display configured to display decoded video data following performance of the adaptive loop filtering process.
12. The device according to claim 1, in, At least one adaptive loop filtering process of the plurality of adaptive loop filtering processes includes the filtering operation applied alone.
13. A method for decoding video data, the method include: decoding a syntax element indicating an adaptive loop filtering process from a plurality of adaptive loop filtering processes, wherein at least two of the plurality of adaptive loop filtering processes include application of a corresponding non-linear operation in combination with a filtering operation, and wherein at least one of the plurality of adaptive loop filtering processes includes a first stage in which a pre-filtering operation is configured to be applied before the corresponding non-linear operation and further includes a second stage in which a post-filtering operation is configured to be applied after the corresponding non-linear operation; and The adaptive loop filtering process indicated by the syntax element is performed on the video data.
14. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process among the multiple adaptive loop filtering processes that includes the corresponding non-linear operation and the application of the filtering operation, and wherein the corresponding non-linear operation includes one or more non-linear operators, and the non-linear operators include one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
15. The method according to claim 14, in, The syntax element indicates a cascaded version of the non-linear operator combined with the filtering operation.
16. The method according to claim 13, in, The syntax element indicates one of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein the syntax element further indicates parameters of the corresponding non-linear operation.
17. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein performing the adaptive loop filtering process comprises: determining an order for combining the corresponding non-linear operation with the filtering operation, wherein the order includes applying the corresponding non-linear operation followed by the filtering operation; and The corresponding non-linear operation is applied, followed by the filtering operation.
18. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein performing the adaptive loop filtering process comprises: determining the corresponding non-linear operation based on a sample position, a block size, a sample value, or a color component; and The corresponding non-linear operation is applied to input samples of the adaptive loop filtering process.
19. The method according to claim 13, further comprising: include: determining whether the filtering operation is adaptive based on the side information; as well as In response to the determination, the adaptive loop filtering process is enabled.
20. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein performing the adaptive loop filtering process comprises: determining that the corresponding non-linear operation comprises application of one or more clipping operators; and The corresponding non-linear operation is applied subsequent to the pre-filtering operation.
21. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, and wherein performing the adaptive loop filtering process comprises: applying the filtering operation and the corresponding non-linear operation to a reconstructed block of the video data to produce a filtered block of the video data; and The filtered blocks are output to a decoded picture buffer (DPB).
22. The method according to claim 13, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes including application of the corresponding non-linear operation and the filtering operation, the method further comprising: A pre-clipping operation is performed prior to the adaptive loop filtering process, wherein the corresponding non-linear operation of the adaptive loop filtering process is separate from the pre-clipping operation.
23. The method according to claim 13, in, The video data is one of a coded block of video data, a slice of video data, a tile of video data, a brick of video data, and / or a picture of video data.
24. The method according to claim 13, in, At least one adaptive loop filtering process of the plurality of adaptive loop filtering processes includes the filtering operation applied alone.
25. A device for encoding video data, the device include: a memory configured to store the video data; as well as One or more processors implemented in circuitry and configured to: determining an adaptive loop filtering process from a plurality of adaptive loop filtering processes, wherein at least two of the plurality of adaptive loop filtering processes include application of a corresponding non-linear operation in combination with a filtering operation, and wherein at least one of the plurality of adaptive loop filtering processes includes a first stage in which a pre-filtering operation is configured to be applied before the corresponding non-linear operation and further includes a second stage in which a post-filtering operation is configured to be applied after the corresponding non-linear operation; performing the adaptive loop filtering process on the video data; and A syntax element indicative of the adaptive loop filtering process from among the plurality of adaptive loop filtering processes is encoded.
26. The device according to claim 25, in, To encode the syntax element, the one or more processors are configured to: The syntax element is encoded to indicate the filtering operation or the corresponding non-linear operation as a first operation of the adaptive loop filtering process.
27. The device according to claim 25, in, To encode the syntax element, the one or more processors are configured to: The syntax element is encoded to indicate a synthesis order for the filtering operation and the corresponding non-linear operation.
28. The device according to claim 25, in, At least one adaptive loop filtering process of the plurality of adaptive loop filtering processes includes the filtering operation applied alone.
29. A device for decoding video data, the device include: means for decoding a syntax element indicating an adaptive loop filtering process from a plurality of adaptive loop filtering processes, wherein at least two of the plurality of adaptive loop filtering processes comprise application of a respective non-linear operation in combination with a filtering operation, and wherein at least one of the plurality of adaptive loop filtering processes comprises a first stage wherein a pre-filtering operation is configured to be applied before the respective non-linear operation and further comprises a second stage wherein a post-filtering operation is configured to be applied after the respective non-linear operation; and Means for performing the adaptive loop filtering process indicated by the syntax element on the video data.
30. A non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: decoding a syntax element indicating an adaptive loop filtering process from a plurality of adaptive loop filtering processes, in, At least two of the plurality of adaptive loop filtering processes include application of a corresponding non-linear operation in combination with a filtering operation, and wherein at least one of the plurality of adaptive loop filtering processes includes a first stage in which a pre-filtering operation is configured to be applied before the corresponding non-linear operation and further includes a second stage in which a post-filtering operation is configured to be applied after the corresponding non-linear operation; and The adaptive loop filtering process indicated by the syntax element is performed on video data.
31. The non-transitory computer-readable storage medium of claim 30, in, The syntax element indicates an adaptive loop filtering process among the multiple adaptive loop filtering processes that includes the corresponding non-linear operation and the application of the filtering operation, and wherein the corresponding non-linear operation includes one or more non-linear operators, and the non-linear operators include one or more of the following: a shrinkage operator, a sigmoid function, or a ReLU function.
32. The non-transitory computer-readable storage medium of claim 30, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes that includes application of the corresponding non-linear operation and the filtering operation, and wherein the instructions, when executed, cause the one or more processors to perform the following operations: The filtering operation and the corresponding non-linear operation are applied to the reconstructed block of the video data to produce a filtered block of the video data.
33. The non-transitory computer-readable storage medium of claim 30, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes that includes application of the corresponding non-linear operation and the filtering operation, and wherein the instructions, when executed, cause the one or more processors to perform the following operations: determining one or more filter coefficients for use in the filtering operation; and One or more parameters for the corresponding nonlinear operation are determined.
34. The non-transitory computer-readable storage medium of claim 30, in, The syntax element indicates an adaptive loop filtering process of the plurality of adaptive loop filtering processes that includes application of the corresponding non-linear operation and the filtering operation, and wherein the instructions, when executed, cause the one or more processors to perform the following operations: An order for combining the corresponding non-linear operations and the filtering operations is determined.
