Multiple neural network models for filtering during video coding

Multi-model neural network-based filtering techniques enhance video coding efficiency by selecting the optimal model for decoded pictures, addressing suboptimal performance in existing video coding standards like VVC.

JP7795528B2Active Publication Date: 2026-01-07QUALCOMM INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023515167
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-09-23
Filing Date
2021-09-24
Publication Date
2026-01-07
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

Existing video coding techniques, such as those in ITU-T H.266/Versatile Video Coding (VVC), may not be optimal for specific video sequences, as neural network-based filters trained on general data may not provide the best results in terms of bit rate and distortion.

Method used

Implementing multi-model neural network-based filtering techniques that select the most suitable neural network model for a portion of a decoded picture, using rate-distortion optimization (RDO) or quantization parameter (QP) mapping to enhance filtering efficiency.

Benefits of technology

Improves video coding performance by providing better bit rate and distortion results for specific video sequences through optimized neural network-based filtering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007795528000004
    Figure 0007795528000004
  • Figure 0007795528000005
    Figure 0007795528000005
  • Figure 0007795528000006
    Figure 0007795528000006
Patent Text Reader

Abstract

An exemplary device for filtering decoded video data includes a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: decode a picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, where the value represents an index into a set of predefined neural network models and the index corresponds to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority to U.S. Application No. 17 / 448,658, filed September 23, 2021, and U.S. Provisional Application No. 63 / 085,092, filed September 29, 2020, the entire contents of which are incorporated herein by reference. U.S. Application No. 17 / 448,658, filed September 23, 2021, claims the benefit of U.S. Provisional Application No. 63 / 085,092, filed September 29, 2020.

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

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

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

[0005] In general, this disclosure describes techniques for filtering a decoded (e.g., reconstructed) picture, which may be distorted. The filtering process may be based on neural network techniques. The filtering process may be used in the context of advanced video codecs, such as extensions of ITU-T H.266 / Versatile Video Coding (VVC), or subsequent-generation video coding standards, and any other video codecs. Specifically, a video encoder may select a neural network model for a portion of a decoded picture to use to filter the portion of the decoded picture. For example, the video encoder may perform a rate-distortion optimization (RDO) technique to determine the neural network model. Alternatively, the video encoder may determine a quantization parameter (QP) for the portion of the decoded picture and determine the neural network model to which the QP is mapped. The video encoder may signal the determined neural network model using the QP itself or a separate value of a syntax element representing an index into a set (or a subset of the set) of available neural network models.

[0006] In one example, a method for filtering decoded video data includes the steps of decoding a picture of the video data, coding a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models, and filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0007] In another example, a device for filtering decoded video data includes a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: decode a picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0008] In another example, a computer-readable storage medium has stored therein instructions that, when executed, cause a processor to decode a picture of video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, where the value represents an index into a set of predefined neural network models and the index corresponds to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0009] In another example, a device for filtering decoded video data includes means for decoding a picture of the video data; means for coding a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and means for filtering the portion of the decoded picture using the neural network model corresponding to the index.

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

[0011] [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Figure 2A] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree-binary-tree (QTBT) structure. [Figure 2B] FIG. 1 is a conceptual diagram illustrating a corresponding coding tree unit (CTU). [Figure 3] FIG. 1 is a conceptual diagram illustrating a hybrid video coding framework. [Figure 4] FIG. 1 is a conceptual diagram illustrating a hierarchical prediction structure using a group of pictures (GOP) size of 16. [Figure 5] FIG. 1 is a conceptual diagram illustrating a neural network-based filter with four layers. [Figure 6] FIG. 2 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure. [Figure 7] FIG. 2 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure. [Figure 8]10 is a flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 9] 10 is a flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0012] Video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, and ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), and its range extensions High Efficiency Video Coding (HEVC) or ITU-T H.265, including multiview extensions (MV-HEVC) and scalable extensions (SHVC). Another exemplary video coding standard is Versatile Video Coding (VVC) or ITU-T H.266, developed by the ITU-T Video Coding Experts Group (VCEG) and the Joint Video Experts Team (JVET) of the ISO / IEC Motion Picture Experts Group (MPEG). Version 1 of the VVC specification, hereafter referred to as "VVC FDIS", is available at http: / / phenix.int-evry.fr / jvet / doc_end_user / documents / 19_Teleconference / wg11 / JVET-S2001-v17.zip.

[0013] The techniques of this disclosure are generally directed to filtering techniques that use neural network-based filters. Typically, such filters are trained on a large set of data, which provides good results for general video data but may not be optimal for a particular sequence of video data. In contrast, this disclosure describes multi-model neural network-based filtering, which may provide better results (e.g., in terms of bit rate and distortion) for a particular video sequence.

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

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

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

[0017] System 100 as shown in FIG. 1 is merely an example. In general, any digital video encoding and / or decoding device may implement techniques for filtering using multiple neural network models. Source device 102 and destination device 116 are merely examples of coding devices, such that source device 102 generates coded video data for transmission to destination device 116. This disclosure refers to devices that perform data coding (encoding and / or decoding) as “coding” devices. Accordingly, video encoder 200 and video decoder 300 represent examples of coding devices, specifically, video encoders and video decoders, respectively. In some examples, source device 102 and destination device 116 may operate in a substantially symmetric manner, such that each of source device 102 and destination device 116 includes video encoding and decoding components. Thus, system 100 may support unidirectional or bidirectional video transmission between source device 102 and destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.

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

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

[0020] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to transmit encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal containing the encoded video data, and the input interface 122 may demodulate a received transmission signal, in accordance with a communication standard such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful for facilitating communication from the source device 102 to the destination device 116.

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

[0022] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device, which may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or download.

[0023] File server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to destination device 116. File server 114 may represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (e.g., File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a network-attached storage (NAS) device. File server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.

[0024] Destination device 116 may access the encoded video data from file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing encoded video data stored on file server 114. Input interface 122 may be configured to operate according to any one or more of the various protocols described above for retrieving or receiving media data from file server 114 or other such protocols for retrieving media data.

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

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

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

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

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

[0030] Video encoder 200 and video decoder 300 may operate according to a video coding standard such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as Versatile Video Coding (VVC). A draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 9)," ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Joint Video Experts Team (JVET), 18th Meeting: April 15-24, JVET-R2001-v8 (hereinafter "VVC Draft 9"). However, the techniques of this disclosure are not limited to any particular coding standard.

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

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

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

[0034] As another example, video encoder 200 and video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as video encoder 200) partitions a picture into multiple coding tree units (CTUs). Video encoder 200 may partition the CTUs 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 distinction between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

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

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

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

[0038] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a picture coded using three separate color planes and syntax structures used to code monochrome pictures or samples. The CTB may be an N×N block of samples for some value of N such that the division of the components into the CTB is partitioned. A component may be an array or a single sample of that array from one of the three arrays (luma and two chromas) for a 4:2:0, 4:2:2, or 4:4:4 color format picture, or an array or a single sample of that array for a monochrome format picture. In some examples, a coding block is an M×N block of samples for some value of M and N such that the division of the CTB into coding blocks is partitioned.

[0039] 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 region of a CTU row within a particular tile in a picture. A tile may be a rectangular region of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular region of a CTU with a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set, etc.). A tile row refers to a rectangular region of a CTU with a height specified by a syntax element (e.g., in a picture parameter set, etc.) and a width equal to the width of the picture.

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

[0041] Bricks in a picture may also be arranged in slices. A slice may be an integer number of bricks of a picture that may be contained exclusively in a single Network Abstraction Layer (NAL) unit. In some examples, a slice may contain either a certain number of complete tiles or only a continuous sequence of complete bricks of one tile.

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

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

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

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

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

[0047] The video encoder 200 encodes data representing a prediction mode for the current block. For example, in the case of an inter prediction mode, the video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information for the corresponding mode. In the case of unidirectional or bidirectional inter prediction, for example, 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.

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

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

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

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

[0052] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, 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), to video decoder 300. Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.

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

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

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

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

[0057] 2A and 2B are conceptual diagrams illustrating an exemplary quadtree-binary tree (QTBT) structure 130 and corresponding coding tree unit (CTU) 132. Solid lines represent quadtree partitioning, and dotted lines represent binary tree partitioning. At each partition (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quadtree partitioning, there is no need to indicate the partition type because the quadtree node divides a block horizontally and vertically into four equal-sized sub-blocks. Thus, video encoder 200 may encode syntax elements (such as partition information) for the region tree level (i.e., solid lines) of QTBT structure 130 and syntax elements (such as partition information) for the prediction tree level (i.e., dashed lines) of QTBT structure 130, and video decoder 300 may decode those syntax elements. The video encoder 200 may encode video data, such as prediction data and transform data, for the CUs represented by the terminal leaf nodes of the QTBT structure 130, and the video decoder 300 may decode the video data.

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

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

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

[0061] Figure 3 is a conceptual diagram illustrating a hybrid video coding framework 140. Video coding standards from H.261 onward are based on the so-called hybrid video coding principle, shown in Figure 3. The term hybrid refers to the combination of two means for reducing redundancy in a video signal: prediction 142 of the prediction residual and transform coding with quantization 144. Prediction and transform reduce redundancy in a video signal through decorrelation, while quantization reduces the data of the transform coefficient representation by reducing its precision, ideally removing only irrelevant details. This hybrid video coding design principle is also used in two recent standards, ITU-T H.265 / HEVC and ITU-T H.266 / VVC. As shown in Figure 3, modern hybrid video coders include prediction 142, which includes block partitioning, motion compensation or inter-picture prediction and intra-picture prediction; transform / quantization 144, which includes transform and quantization; entropy coding 146; and post / in-loop filtering 148.

[0062] Block partitioning is used to divide an image into smaller blocks for the operation of prediction and transformation processes. Early video coding standards used a fixed block size, typically 16x16 samples. More recent standards, such as HEVC and VVC, use tree-based partitioning structures to achieve flexible partitioning.

[0063] Motion compensation or inter-picture prediction exploits the redundancy that exists between pictures of a video sequence (hence the "inter"). According to block-based motion compensation used in all modern video codecs, predictions are obtained from one or more previously decoded pictures, i.e., reference pictures. The corresponding area for generating the inter prediction is indicated by motion information including a motion vector and a reference picture index.

[0064] 4 is a conceptual diagram illustrating a hierarchical prediction structure 150 using a group of pictures (GOP) size of 16. In modern video codecs, a hierarchical prediction structure within a group of pictures (GOP) is applied to improve coding efficiency.

[0065] Referring again to Figure 3, intra-picture prediction exploits spatial redundancy present within a picture (hence "intra") by deriving a prediction for a block from spatially neighboring (reference) samples that have already been coded / decoded. Directional angle prediction, DC prediction, and plane or planar prediction are used in recent video codecs, including AVC, HEVC, and VVC.

[0066] Transform: Hybrid video coding standards apply a block transform to the prediction residual (whether the prediction residual comes from inter-picture or intra-picture prediction). Early standards, including H.261, H.262, and H.263, use the discrete cosine transform (DCT). In HEVC and VVC, additional transform kernels other than the DCT are applied to account for different statistics in particular video signals.

[0067] Quantization aims to reduce the precision of an input value or a set of input values ​​in order to reduce the amount of data required to represent the value. In hybrid video coding, quantization is typically applied to individual transformed residual samples, i.e., transform coefficients, resulting in integer coefficient levels. In recent video coding standards, the step size is derived from a so-called quantization parameter (QP), which controls fidelity and bit rate. A larger step size reduces the bit rate but may also degrade quality, resulting in, for example, video pictures exhibiting blocking artifacts and blurred details.

[0068] Context-adaptive binary arithmetic coding (CABAC) is a form of entropy coding used in recent video codecs, such as AVC, HEVC, and VVC, due to its high efficiency.

[0069] Post- / in-loop filtering is a filtering process (or a combination of such processes) applied to a reconstructed picture to reduce coding artifacts. The input of the filtering process is typically a reconstructed picture, which is a combination of a reconstructed residual signal (including quantization error) and a prediction. As shown in Figure 3, the reconstructed picture after in-loop filtering is stored and used as a reference for inter-picture prediction of subsequent pictures. Coding artifacts are largely determined by QP, so QP information is typically used in the design of the filtering process. In HEVC, in-loop filters include deblocking filtering and sample adaptive offset (SAO) filtering. In the VVC standard, an adaptive loop filter (ALF) was introduced as the third filter. The ALF filtering process is as follows:

[0070]

number

[0071] where R(i,j) is the set of samples before the filtering process, and R'(i,j) is the sample value after the filtering process. f(k,l) denotes the filter coefficients, K(x,y) is the clipping function, and c(k,l) denotes the clipping parameter. The variables k and l are

[0072]

number

[0073] where L denotes the filter length. The clipping function is K(x,y)=min(y,max(-y,x)), which corresponds to the function Clip3(-y,y,x). The clipping operation introduces a nonlinearity that makes the ALF more efficient by reducing the effect of neighboring sample values ​​that are too different from the current sample value. In VVC, the filtering parameters can be signaled in the bitstream, which can be selected from a predefined filter set. The ALF filtering process can also be summarized as the following equation: R'(i,j)=R(i,j)+ALF_residual_ouput(R)

[0074] FIG. 5 is a conceptual diagram illustrating a neural network-based filter 160 with four layers. Various studies have shown that embedding neural networks (NNs) in hybrid video coding frameworks can improve compression efficiency. Neural networks have been used in intra-prediction and inter-prediction modules to improve prediction efficiency. In recent years, NN-based in-loop filtering has also been a prominent research topic. In some cases, the NN-based filtering process is applied as post-loop filtering. In this case, the filtering process is applied only to the output picture, and the unfiltered picture is used as a reference picture.

[0075] The NN-based filter may be applied in addition to existing filters, such as a deblocking filter, sample adaptive offset (SAO), and / or adaptive loop filtering (ALF). The NN-based filter may also be applied exclusively, where the NN-based filter is designed to replace all of the existing filters. Additionally or alternatively, the NN-based filter may be designed to complement, enhance, or replace any or all of the other filters.

[0076] As shown in Figure 5, the NN-based filtering process may take reconstructed samples as input, and the intermediate output is residual samples, which are added back to the input to refine the input samples. The NN filter may use all color components (e.g., Y, U, and V, or Y, Cb, and Cr, i.e., luminance, blue-phase chrominance, and red-phase chrominance) as inputs to exploit inter-component correlation. Different components may share the same filter (including network structure and model parameters), or each component may have its own unique filter.

[0077] The filtering process can also be generalized as follows. R'(i,j)=R(i,j)+NN_filter_residual_ouput(R) The model structure and model parameters of the NN-based filters may be predefined and stored in the encoder and decoder. The filters may also be signaled in the bitstream.

[0078] This disclosure recognizes that in some cases, a predefined filter (e.g., a NN-based filter or an ALF) is trained based on a large set of video and image databases. The filter may be optimal in general, but may not be optimal for a particular distorted sequence. This disclosure also recognizes that because a predefined training image / video database may not account for all possible types of video characteristics, applying a filter trained on this given database to sequences with different video characteristics may not provide any objective or subjective benefit, but may instead detract from objective or subjective quality.

[0079] The video encoder 200 and the video decoder 300 of FIG. 1 may be configured to perform any or all of the following techniques, alone or in any combination, in accordance with the techniques of this disclosure. Generally, multiple filtering models may be used. For each target area of ​​the input picture, the video encoder 200 and / or the video decoder 300 may select one or more of multiple filtering models to perform filtering. The video encoder 200 and the video decoder 300 may implicitly derive the selection of the NN model based on information in the bitstream (e.g., based on a quantization parameter (QP)). Alternatively, the video decoder 300 may derive the selection of the NN model using an index explicitly signaled by the video encoder 200 in the bitstream. In some examples, explicit signaling and implicit derivation may be combined.

[0080] In some examples, video encoder 200 may select one or more models and signal indices for the selected models in the bitstream. When one model is selected, the model is used to filter the corresponding target area of ​​the input picture. When multiple models are selected, the models are used together to filter the target area of ​​the input picture. As an example, video encoder 200 and video decoder 300 may apply models to the target area separately, and the outputs of the participating models may be combined as the final output for the target area.

[0081] Switching off the filtering process can be used as one option. When "switching off" is selected for a target area, the video encoder 200 and the video decoder 300 do not apply any filters, and the output signal is the same as the input signal.

[0082] The granularity of selecting and signaling a model may be designed at different levels. Possible levels at which a filter model index is signaled include the video parameter set / sequence parameter set / picture parameter set (VPS / SPS / PPS) level, the intra-period level, the group of pictures (GOP) level, the temporal layer level in a GOP, the picture level, the slice level, the CTU level, or a grid size N*N specially designed for filter signaling. The selection of the level used for filter model signaling may be fixed, and the video encoder 200 may signal the selection to the video decoder 300 as a syntax element in the bitstream, or the video decoder 300 may implicitly derive the selection based on information in the bitstream (e.g., picture resolution, QP, etc.).

[0083] In one example implementation, there are N predefined filter models. At the level of filter model signaling, video encoder 200 selects one model and signals a corresponding index for video decoder 300 to determine which filter model should be used. Possible levels for signaling elements include the VPS / SPS / PPS level, the intra-period level, the group of pictures (GOP) level, the picture level, the slice level, the CTU level, or a grid size N*N specially designed for filter signaling. The selection of the level used for filter model signaling can be fixed and can be signaled as a syntax element in the bitstream, or can be implicitly derived based on information in the bitstream (e.g., picture resolution, QP, etc.).

[0084] As another example, video encoder 200 may derive a subset of predefined models and signal this subset to video decoder 300 in the bitstream as a syntax element in a sequence parameter set (SPS), slice header, picture header, adaptation parameter set (APS), or any other high-level syntax element body. The size of the subset is referred to herein as M. M can be any value predefined or signaled in the bitstream at a lower level (e.g., slice header, picture header, CTU level, grid level, etc.). If M>1, one of the M candidates is selected and signaled in the bitstream as a syntax element.

[0085] As another example, each of the filter models may be associated with a QP value, and for each picture, video encoder 200 and video decoder 300 may derive a "model selection QP" and select the model with the QP value closest to the "model selection QP" for the current picture. In this case, no additional information needs to be signaled. The information used to derive the "model selection QP" may include the current picture QP, the reference picture QP, the QPs of pictures in the same GOP, the QPs of pictures in the same intra period, etc. Alternatively, a QP for one or more blocks in a slice, i.e., a block-level QP, may be provided to the NN model to filter the current slice or the current block.

[0086] As another example, similar to the example above, each filter model may be associated with a QP value, and video encoder 200 and video decoder 300 may derive a "model selection QP" for each frame. Video encoder 200 and video decoder 300 may derive a subset of all models based on the "model selection QP." Video encoder 200 may determine the model with the model QP closest to the "model selection QP," select one of these models, and signal an additional index for video decoder 300 to select a model from the QP-derived subset.

[0087] As mentioned above, switching off the NN-based modeling may be used as one selection candidate in any or all of the various examples described above. Switching off may be considered a regular candidate for adding to the filter model set, and the signaling for the "switch off" case may be integrated with the signaling for other filter models. As another example, "switching off" may be considered a special candidate, and the signaling is separated from the other filter models.

[0088] The video encoder 200 and the video decoder 300 may be configured to apply an on / off control for multi-model-based filtering as described above. That is, the video encoder 200 and the video decoder 300 will filter the residual and add the result to the input samples only when a given control operation (e.g., a flag) asserts that filtering should be applied. This control signal may be expressed as: if (ApplyFilter is true) {R'(i,j)=R(i,j)+(filter_residual_ouput(R))} else {R' (i,j) =R(i,j)} Here, ApplyFilter is a control operation that may be decided by video encoder 200, which may signal data representing the decision (e.g., a flag or other syntax element) to video decoder 300 in the bitstream.

[0089] As an example, the video encoder 200 may calculate a rate-distortion (RD) cost of applying a filter and compare the RD cost with the RD cost of not applying the filter. Based on the result of this comparison, the video encoder 200 may determine a control action (e.g., set the value of a given flag to either a 0 state or a 1 state, where one state represents that the filter should be applied and the other state represents that the filter should not be applied). The video encoder 200 may then signal the given flag in the bitstream. The video decoder 300 may parse the given flag and, based on its value, either apply the filter or not apply the filter. Because a trained filter may not be optimal for the entire video sequence, or for a given frame in the sequence or a given region in the sequence, the granularity at which the control action (flag) is signaled is also important.

[0090] In some examples, video encoder 200 may derive a filter On / Off value and signal this value in the bitstream as a syntax element within a sequence parameter set (SPS), slice header, picture parameter set (PPS), picture header, adaptation parameter set (APS), or any other high-level syntax element body. Video decoder 300 may use the value of this syntax element to determine whether to use a filter.

[0091] In some examples, video encoder 200 may derive a value for the filter On / Off flag and signal this value in the bitstream as a syntax element at the block level, e.g., at the CTU level. Video decoder 300 may use the value of this syntax element to determine whether to use a filter.

[0092] In some examples, video encoder 200 may determine a grid size (for signaling) and the value of a filter On / Off flag in the corresponding grid, and signal the value of each of the grids as a respective syntax element in the bitstream. Video decoder 300 may use the values ​​of these syntax elements to determine whether to use a filter for each of the elements of the grid and for the grid itself.

[0093] Instead of using a fixed grid size for signaling (e.g., where the grid size is always fixed as the CTU size), video encoder 200 may selectively choose different grid sizes for a given slice based on the RD cost. For example, for a given slice, video encoder 200 may apply different grid sizes (e.g., a size of M×N, where M and N can take values ​​in the range of [4, 8, 16, ..., frame size]). Video encoder 200 may calculate corresponding RD costs for both the filter-on case and the filter-off case. Based on the best RD cost, video encoder 200 may select a grid size and a corresponding filter-on / off flag and signal data representing the grid size and the filter-on / off flag in the bitstream. The grid size may be predefined in both video encoder 200 and video decoder 300, for example, as shown in Table 1 below.

[0094] [Table 1]

[0095] Video encoder 200 may signal the grid index values ​​in the bitstream using unary, binary, shortened binary, or variable length codes.

[0096] Video decoder 300 may determine the grid size for signaling based on the resolution of the input sequence. For example, for lower resolution sequences, a finer granularity grid (i.e., 8x8) is used, while for higher resolution sequences, a coarser granularity grid (i.e., 128x128) is used.

[0097] In some examples, video encoder 200 may determine the filter On / Off flag for each color component separately, such that luma (Y), chroma (Cb), and chroma (Cr) have their own individual control flags.

[0098] In some examples, the filter On / Off flag is signaled for only a single component. Other components may share the same flag. For example, video encoder 200 may signal a control flag for only the luma component, and then the Cb and Cr components may share the same flag. In other examples, video encoder 200 may signal a control flag for the luma component and a joint flag for the chroma components.

[0099] Video encoder 200 and video decoder 300 may apply separate CABAC contexts for signaling flags for separate components (e.g., Y, Cb, and Cr may have separate contexts). Video encoder 200 and video decoder 300 may also use spatial / temporal neighboring block flag On / Off information to determine the context used to signal the flag for the current block. The neighboring blocks may be above and / or to the left of the current block, directly or within a certain number of blocks.

[0100] The distortion measure used to calculate the RD cost for determining the On / Off flag can be SAD (Sum of Absolute Differences), or SATD (Sum of Absolute Transform Differences), or any other distortion measure.

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

[0102] 6, the video encoder 200 includes a video data memory 230, a mode select unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode select unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. For example, the units of the video encoder 200 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, an ASIC, or an FPGA. Furthermore, video encoder 200 may include additional or alternative processors or processing circuitry for performing these and other functions.

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

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

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

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

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

[0108] The mode select unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode select unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode select 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.

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

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

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

[0112] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of 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, in the case of unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in the case of bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate values ​​for the predictive block according to one or more interpolation filters. Furthermore, in the case of bidirectional inter prediction, the motion compensation unit 224 may retrieve data for the two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, by sample-wise averaging or weighted averaging.

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

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

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

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

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

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

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

[0120] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to generate 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 select 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 result in loss of information, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients generated by the transform processing unit 206.

[0121] Inverse quantization unit 210 and 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. Reconstruction unit 214 may generate a reconstructed block that corresponds to the current block (possibly with some distortion) based on the reconstructed residual block and the predictive block generated by mode select unit 202. For example, reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by mode select unit 202 to generate the reconstructed block.

[0122] The filter unit 216 may perform one or more filter operations on the reconstructed blocks. For example, the filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of the filter unit 216 may, in some examples, be skipped. The filter unit 216 may be configured to perform various techniques of this disclosure, for example, to determine one or more of the neural network models (NN models) 232 to be used to filter the decoded picture and / or to determine whether to apply NN model filtering. The mode select unit 202 may perform an RD calculation using both the filtered and unfiltered pictures to determine an RD cost for determining whether to perform NN model filtering, and then provide data to the entropy encoding unit 220 that indicates, for example, whether to perform NN model filtering, one or more of the NN models 232 to use for the current picture or portion thereof, etc.

[0123] Specifically, in accordance with the techniques of this disclosure, filter unit 216 may determine that NN models 232 include a set of available NN models that may be applied to a portion of a decoded picture. In some examples, filter unit 216 may determine that only a subset of NN models 232 is available for the portion of the decoded picture (where the subset includes fewer NN models than the complete set of NN models 232). In such examples, filter unit 216 may provide data defining the subset of NN models 232 available for the portion of the decoded picture to entropy coding unit 220. Entropy coding unit 220 may signal data indicating the subset, for example, in an SPS, PPS, APS, slice header, picture header, or other high-level syntax element.

[0124] In some examples, filter unit 216 may select one of the NN models 232 for a portion of the decoded picture. To select one of the NN models 232, filter unit 216 may determine a quantization parameter for the portion of the decoded picture. Alternatively, mode select unit 202 may perform a rate-distortion optimization (RDO) process to determine which of the NN models 232 results in the best RDO performance and select one of the NN models 232 that results in the best RDO performance. Mode select unit 202 may then provide a value representing an index into a set (or subset) of available NN models 232 that corresponds to the determined NN model that results in the best RDO performance.

[0125] In some examples, the mode select unit 202 may further determine, e.g., whether to enable or disable use of the NN model 232 for a particular region of a decoded picture, the entire decoded picture, a sequence of decoded pictures, etc. The mode select unit 202 may provide data indicating whether use of the NN model 232 is enabled or disabled to the entropy encoding unit 220. The entropy encoding unit 220 may further encode the data representing whether use of the NN model 232 is enabled or disabled, e.g., at one or more of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0126] The portion of the decoded video data may, in some examples, be an element of a grid. That is, video encoder 200 may partition the decoded picture into a grid of elements, e.g., elements in rows and columns of the decoded picture formed by the grid. Entropy encoding unit 220 may further encode data representing the grid, e.g., values ​​of syntax elements representing the number of rows and columns of the grid and / or the number of elements.

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

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

[0129] Video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. Specifically, entropy encoding unit 220 may output the bitstream.

[0130] 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 luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.

[0131] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. As one 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 coding blocks. Rather, MVs for luma coding blocks may be scaled to determine MVs for chroma coding blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0132] Thus, the video encoder 200 of FIG. 6 represents an example of a device for filtering decoded video data that includes a memory configured to store the video data and one or more processors implemented in a circuit and configured to: decode a picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, where the value represents an index into a set of predefined neural network models and the index corresponds to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0133] 7 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 7 is provided for purposes of explanation and does not limit the techniques as broadly illustrated and described in this disclosure. For purposes of explanation, this disclosure describes a video decoder 300 in accordance with VVC and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video coding devices configured according to other video coding standards.

[0134] In the example of Figure 7, 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 processing circuits. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.

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

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

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

[0138] The various units shown in FIG. 7 are illustrated to aid in understanding the operations performed by video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 6, fixed-function circuits refer to circuits that provide specific functions and are preset for the operations that may be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexibility in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. While a fixed-function circuit may execute software instructions (e.g., to receive or output parameters), the types of operations that the fixed-function circuit performs are generally invariant. In some examples, one or more units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

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

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

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

[0142] The entropy decoding unit 302 may entropy decode the quantized transform coefficients of the quantized transform coefficient block as well as syntax elements defining transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization to apply. 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.

[0143] 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 transform, or another inverse transform to the transform coefficient block.

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

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

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

[0147] The filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, the filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of the reconstructed blocks. The operations of the filter unit 312 are not necessarily performed in all instances. For example, the video decoder 300 may use the NN models 322 to explicitly or implicitly determine whether to perform neural network model filtering, e.g., using any or all of the various techniques described herein. Furthermore, the video decoder 300 may explicitly or implicitly determine one or more of the NN models 322 and / or a grid size for the current picture to be decoded and filtered. Thus, the filter unit 312 may use one or more of the NN models 322 to filter a portion of the current decoded picture when filtering is switched on.

[0148] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU / TU. The operation of the filter unit 312 may be skipped, in some examples. The filter unit 312 may be configured to perform various techniques of this disclosure, e.g., to determine one or more of the neural network models (NN models) 232 to be used to filter the decoded picture and / or to determine whether to apply NN model filtering. The mode select unit 202 may perform an RD calculation using both the filtered and unfiltered pictures to determine an RD cost for determining whether to perform NN model filtering, and then provide data to the entropy encoding unit 220 that indicates, e.g., whether to perform NN model filtering, one or more of the NN models 322 to use for the current picture or portion thereof, etc.

[0149] Specifically, in accordance with the techniques of this disclosure, filter unit 312 may determine that NN models 322 include a set of available NN models that may be applied to a portion of a decoded picture. In some examples, filter unit 312 may determine that only a subset of NN models 322 is available for the portion of the decoded picture (where the subset includes fewer NN models than the complete set of NN models 322). In such examples, filter unit 312 may receive decoded data from entropy decoding unit 302 that defines the subset of NN models 322 available for the portion of the decoded picture. Entropy decoding unit 302 may decode data indicating the subset, e.g., in an SPS, PPS, APS, slice header, picture header, or other high-level syntax element.

[0150] In some examples, filter unit 312 may select one of the NN models 322 for a portion of a decoded picture. To select one of the NN models 322, filter unit 312 may determine a quantization parameter (QP) for the portion of the decoded picture and determine one of the NN models 322 that corresponds to the QP. Alternatively, filter unit 312 may receive a value representing an index into a set (or subset) of available NN models 322 that corresponds to the determined NN model to be used.

[0151] In some examples, the filter unit 312 may further determine, e.g., whether to enable or disable use of the NN model 322 for a particular region of a decoded picture, the entire decoded picture, a sequence of decoded pictures, etc. The filter unit 312 may receive data indicating whether use of the NN model 322 is enabled or disabled from the entropy decoding unit 302. The entropy decoding unit 302 may decode the data representing whether use of the NN model 322 is enabled or disabled, e.g., at one or more of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0152] The portion of the decoded video data may, in some examples, be elements of a grid. That is, the video decoder 300 may partition the decoded picture into a grid of elements, e.g., elements in rows and columns of the decoded picture formed by the grid. The entropy decoding unit 302 may decode data representing the grid, e.g., values ​​of syntax elements representing the number of rows and columns of the grid and / or the number of elements.

[0153] The video decoder 300 may store the reconstructed blocks in the DPB 314. For example, in examples where the operations of the filter unit 312 are not performed, the reconstruction unit 310 may store the reconstructed blocks in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the refined, filtered, and reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Additionally, the video decoder 300 may output the decoded pictures from the DPB 314 for later presentation on a display device, such as the display device 118 of FIG. 1 .

[0154] Thus, the video decoder 300 of FIG. 7 represents an example of a device for filtering decoded video data that includes a memory configured to store the video data and one or more processors implemented in circuitry and configured to: decode a picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, where the value represents an index into a set of predefined neural network models and the index corresponds to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model that corresponds to the index.

[0155] 8 is a flowchart illustrating an example method for encoding a current block in accordance with the techniques of this disclosure. The current block may include a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 3), it should be understood that other devices may be configured to perform a method similar to that of FIG.

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

[0157] Video encoder 200 may also decode the current block after encoding it and use the decoded version of the current block as reference data for later-coded data (e.g., in inter-prediction or intra-prediction modes). Accordingly, video encoder 200 may inverse quantize and inverse transform the coefficients to reconstruct the residual block (362). Video encoder 200 may combine the residual block with the predictive block to form a decoded block (364).

[0158] According to the techniques of this disclosure, after encoding and decoding all blocks of a picture in the manner described above, video encoder 200 may determine a neural network (NN) model for the portion of the decoded picture, including the current block, to be applied to the portion of the decoded picture (366). In one example, video encoder 200 may determine a quantization parameter (QP) for the portion of the decoded picture and determine an NN model corresponding to the QP. In another example, video encoder 200 may perform a rate-distortion optimization (RDO) procedure, for example, to select an NN model from a set of available NN models. That is, video encoder 200 may apply various NN models to the portion of the decoded picture, then calculate the RDO values ​​of each of the various NN models, and select the NN model for the portion of the decoded picture that results in the best tested RDO value.

[0159] The video encoder 200 may then encode a value representing the NN model (368). When the video encoder 200 selects an NN model based on the QP, the video encoder 200 may simply encode the QP to represent the NN model. That is, the encoded QP for the block (e.g., as part of the TU information) may be provided to the NN model to select an appropriate NN-based filter. Alternatively, when the video encoder 200 selects an NN model from a set of available NN models (or a subset of the set), the video encoder 200 may encode a value of a syntax element representing an index into the set (or subset), where the index corresponds to the position of the NN model within the set or subset. The syntax element may form part of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures. The video encoder 200 may then apply (369) the determined NN model to a portion of the decoded picture to filter the portion of the decoded picture and store the decoded picture in the DPB 218.

[0160] In some examples, rather than determining a single NN model, video encoder 200 may determine multiple NN models for a portion of a decoded picture. Video encoder 200 may apply each of the NN models separately to the portion of the decoded picture to form different filtered results. Video encoder 200 may then combine each of the filtered results to form a final filtered portion of the decoded picture.

[0161] A portion of the decoded picture may correspond to an element of a grid. That is, video encoder 200 may partition the decoded picture into a grid having several elements (e.g., an area formed by a respective number of rows and columns). Video encoder 200 may signal data representing the grid, such as the number of rows and columns or the number of elements of the grid, at at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level. In some examples, video encoder 200 may signal a value of a syntax element representing an index into a set of possible grid sizes.

[0162] Thus, the method of Figure 8 represents an example of a method for filtering decoded video data, the method including the steps of: decoding a picture of the video data; coding a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0163] 9 is a flowchart illustrating an example method for decoding a current block in accordance with the techniques of this disclosure. The current block may include a current CU. Although described with respect to video decoder 300 (FIGS. 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of FIG.

[0164] The video decoder 300 may receive entropy-coded data for the current block, such as entropy-coded prediction information and entropy-coded data of coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy-coded data to determine the prediction information for the current block, a neural network (NN) model for a portion of the picture that includes the current block, and to reconstruct the coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using an intra-prediction mode or an inter-prediction mode as indicated by the prediction information for the current block, to calculate a predictive block for the current block (374). The video decoder 300 may then inverse-scan the reconstructed coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then inverse-quantize and inverse-transform the quantized transform coefficients to generate a residual block (378). Video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).

[0165] The video decoder 300 may also determine from the decoded data an NN model to be applied to a portion of the decoded picture that includes the current block (382). For example, the video decoder 300 may decode a quantization parameter (QP) for the portion of the decoded picture (e.g., for one or more blocks in the portion) and determine the NN model to which the QP corresponds. As another example, the video decoder 300 may decode a value of a syntax element that represents an index into a set (or a subset of the set) of available NN models and determine the NN model among the set or subset of available NN models to which the index corresponds. The video decoder 300 may then apply the NN model to the portion of the decoded picture (384) to filter the portion of the decoded picture. In one example in which the filter is an in-loop filter, the video decoder 300 stores the decoded picture including the filtered portion in the decoded picture buffer 314.

[0166] Thus, the method of Figure 9 represents an example of a method for filtering decoded video data, the method including the steps of: decoding a picture of the video data; coding a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0167] The following paragraphs summarize various techniques of this disclosure.

[0168] Clause 1: A method for filtering decoded video data, comprising the steps of determining one or more neural network models to be used for filtering a portion of a decoded picture of the video data, and filtering the portion of the decoded picture using the one or more neural network models.

[0169] Clause 2: The method of clause 1, wherein determining one or more neural network models includes determining at most a single neural network model.

[0170] Clause 3: The method of clause 1, wherein determining one or more neural network models includes determining a plurality of neural network models.

[0171] Clause 4: The method of clause 3, wherein the filtering step includes applying each of a plurality of neural network models separately to the portion to form different results, and combining each of the results to form a final filtered portion.

[0172] Clause 5: The method of any of clauses 1 to 4, wherein the determining step includes determining using an index signaled in a bitstream containing the video data.

[0173] Clause 6: Any of the methods of clauses 1 to 5, wherein the portion includes a grid element.

[0174] Clause 7: The method of any of clauses 1 to 6, further comprising determining the number of elements of the grid.

[0175] Clause 8: The method of clause 7, wherein determining the number of elements of the grid includes decoding at least one syntax element of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0176] Clause 9: The method of any of clauses 7 and 8, wherein determining the number of elements in the grid comprises decoding a value of a syntax element that represents an index into a set of possible grid sizes.

[0177] Clause 10: The method of any of clauses 1 to 9, further comprising the step of determining to apply one or more neural network models before determining the one or more neural network models.

[0178] Clause 11: The method of clause 10, wherein determining to apply one or more neural network models comprises decoding a syntax element having a value indicating that one or more neural network models should be applied.

[0179] Clause 12: The method of clause 11, wherein the syntax element is at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level within a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0180] Clause 13: The method of any of clauses 1 to 12, wherein the portion includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0181] Clause 14: The method of clause 13, further comprising decoding syntax elements that together represent filtering using one or more neural network models for each of the color components of the decoded picture.

[0182] Clause 15: The method of any of clauses 1-14, further comprising the steps of encoding the current picture and decoding the current picture to form the current picture.

[0183] Clause 16: The method of clause 15, wherein the determining step includes determining according to a rate-distortion calculation.

[0184] Clause 17: A device for decoding video data, comprising one or more means for performing the method of any of clauses 1 to 16.

[0185] Clause 18: The device of clause 17, wherein the one or more means comprise one or more processors implemented in circuitry.

[0186] Clause 19: The device of clause 17, further comprising a display configured to display the decoded video data.

[0187] Clause 20: The device of clause 17, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0188] Clause 21: The device of clause 17, further comprising a memory configured to store video data.

[0189] Clause 22: A computer-readable storage medium storing instructions that, when executed, cause a processor to perform any of the methods of clauses 1 to 16.

[0190] Clause 23: A method for filtering decoded video data, the method comprising the steps of: decoding a picture of the video data; coding a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0191] Clause 24: The method of clause 23, further comprising the step of coding a value representing a subset of the set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0192] Clause 25: The method of clause 23, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models.

[0193] Clause 26: The method of clause 25, wherein the filtering step includes the steps of separately applying each of a plurality of neural network models represented by the values ​​to the portion to form different results, and combining each of the results to form a final filtered portion.

[0194] Clause 27: The method of clause 23, wherein coding the value of the syntax element includes coding the value of the syntax element at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0195] Clause 28: The method of clause 23, further comprising the step of partitioning the picture according to a grid, the portion comprising elements of the grid of the picture.

[0196] Clause 29: The method of clause 28, further comprising determining the number of elements of the grid.

[0197] Clause 30: The method of clause 29, wherein determining the number of elements of the grid includes decoding at least one syntax element of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0198] Clause 31: The method of clause 29, wherein determining the number of elements in the grid comprises decoding a value of a syntax element representing an index into a set of possible grid sizes.

[0199] Clause 32: The method of clause 23, further comprising the step of determining to apply a neural network model before determining the neural network model.

[0200] Clause 33: The method of clause 32, wherein determining to apply a neural network model comprises decoding a value of a syntax element indicating that a neural network model should be applied.

[0201] Clause 34: The method of clause 33, wherein the syntax element is at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level within a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0202] Clause 35: The method of clause 23, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0203] Clause 36: The method of clause 35, further comprising coding syntax elements that together represent filtering using the neural network model for each of the color components of the decoded picture.

[0204] Clause 37: The method of clause 23, wherein the value of the syntax element includes a quantization parameter (QP) for the portion of the picture.

[0205] Clause 38: The method of clause 23, further comprising the step of encoding the picture before decoding the picture, wherein coding the value of the syntax element comprises encoding the value of the syntax element.

[0206] Clause 39: The method of clause 38, further comprising determining the neural network model according to the rate-distortion calculation.

[0207] Clause 40: A device for filtering decoded 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 picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0208] Clause 41: The device of clause 40, wherein the one or more processors are further configured to code a value representing a subset of a set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0209] Clause 42: The device of clause 40, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models, and wherein, to filter a portion of a decoded picture, the one or more processors are configured to apply each of the plurality of neural network models represented by the values ​​separately to the portion to form different results, and to combine each of the results to form a final filtered portion.

[0210] Clause 43: The device of clause 40, wherein the one or more processors are configured to code values ​​of the syntax elements at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0211] Clause 44: The device of clause 40, wherein the one or more processors are configured to partition the picture according to a grid, the portion comprising elements of the grid of the picture.

[0212] Clause 45: The device of clause 44, wherein the one or more processors are further configured to decode a value of a syntax element representing a number of elements of the grid, and the syntax element is included in at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0213] Clause 46: The device of clause 40, wherein the one or more processors are configured to determine to apply a neural network model before determining the neural network model, and wherein to determine to apply the neural network model, the one or more processors are configured to decode a value of a syntax element indicating that the neural network model should be applied.

[0214] Clause 47: The device of clause 40, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0215] Clause 48: The device of clause 40, wherein a value of the syntax element includes a quantization parameter (QP) for the portion of a picture.

[0216] Clause 49: The device of clause 40, wherein the one or more processors are further configured to encode the picture before decoding the picture, and wherein the one or more processors are configured to encode the value of the syntax element to code the value of the syntax element.

[0217] Clause 50: The device of clause 49, wherein the one or more processors are further configured to determine the neural network model according to the rate-distortion calculation.

[0218] Clause 51: The device of clause 40, further comprising a display configured to display the decoded video data.

[0219] Clause 52: The device of clause 40, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0220] Clause 53: A computer-readable storage medium having stored thereon instructions that, when executed, cause a processor to decode a picture of video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, wherein the value represents an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0221] Clause 54: The computer-readable storage medium of Clause 53, further comprising instructions that cause the processor to code a value that represents a subset of the set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0222] Clause 55: The computer-readable storage medium of clause 53, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models, and wherein the instructions for causing the processor to filter a portion of a decoded picture include instructions for causing the processor to apply each of the plurality of neural network models represented by the values ​​separately to the portion to form different results, and to combine each of the results to form a final filtered portion.

[0223] Clause 56: The computer-readable storage medium of Clause 53, wherein the instructions for causing the processor to code the value of the syntax element include instructions for causing the processor to code the value of the syntax element at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0224] Clause 57: The computer-readable storage medium of clause 53, further comprising instructions to cause a processor to partition the picture according to a grid, the portion comprising elements of the grid of the picture.

[0225] Clause 58: The computer-readable storage medium of Clause 57, further comprising instructions to cause a processor to decode a value of a syntax element representing a number of elements in the grid, the syntax element being included in at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0226] Clause 59: The computer-readable storage medium of clause 53, further comprising instructions for causing the processor to determine to apply a neural network model before determining the neural network model, wherein the instructions for causing the processor to determine to apply the neural network model comprise instructions for causing the processor to decode a value of a syntax element indicating that the neural network model is to be applied.

[0227] Clause 60: The computer-readable storage medium of Clause 53, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0228] Clause 61: The computer-readable storage medium of clause 53, wherein the value of the syntax element includes a quantization parameter (QP) for the portion of the picture.

[0229] Clause 62: The computer-readable storage medium of clause 53, further comprising instructions for causing the processor to encode the picture before decoding the picture, wherein the instructions for causing the processor to code the value of the syntax element comprise instructions for causing the processor to encode the value of the syntax element.

[0230] Clause 63: The computer-readable storage medium of clause 62, further comprising instructions for causing a processor to determine a neural network model according to the rate-distortion calculation.

[0231] Clause 64: A device for filtering decoded video data, comprising: means for decoding pictures of the video data; means for coding a value of a syntax element representing a neural network model to be used for filtering a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and means for filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0232] Clause 65: A method for filtering decoded video data, the method comprising the steps of: decoding a picture of the video data; coding a value of a syntax element representing a neural network model to be used for filtering a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0233] Clause 66: The method of Clause 65, further comprising the step of coding a value representing a subset of the set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0234] Clause 67: The method of any of clauses 65 and 66, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models.

[0235] Clause 68: The method of clause 67, wherein the filtering step includes the steps of separately applying each of a plurality of neural network models represented by the values ​​to the portion to form different results, and combining each of the results to form a final filtered portion.

[0236] Clause 69: The method of any of clauses 65 to 68, wherein coding the value of the syntax element includes coding the value of the syntax element at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0237] Clause 70: The method of any of clauses 65 to 69, further comprising the step of partitioning the picture according to a grid, the portion comprising elements of the grid of the picture.

[0238] Clause 71: The method of clause 70, further comprising determining the number of elements of the grid.

[0239] Clause 72: The method of clause 71, wherein determining the number of elements of the grid includes decoding at least one syntax element of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0240] Clause 73: The method of clause 71, wherein determining the number of elements in the grid comprises decoding a value of a syntax element representing an index into a set of possible grid sizes.

[0241] Clause 74: The method of any of clauses 65 to 73, further comprising the step of determining to apply a neural network model before determining the neural network model.

[0242] Clause 75: The method of clause 74, wherein determining to apply a neural network model comprises decoding a value of a syntax element indicating that a neural network model should be applied.

[0243] Clause 76: The method of clause 75, wherein the syntax element is at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level within a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0244] Clause 77: The method of any of clauses 65-76, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0245] Clause 78: The method of clause 77, further comprising coding syntax elements that together represent filtering using the neural network model for each of the color components of the decoded picture.

[0246] Clause 79: The method of any of clauses 65 to 78, wherein the value of the syntax element includes a quantization parameter (QP) for the portion of the picture.

[0247] Clause 80: The method of clause 65, further comprising the step of encoding the picture before decoding the picture, wherein coding the value of the syntax element comprises encoding the value of the syntax element.

[0248] Clause 81: The method of clause 80, further comprising determining the neural network model according to the rate-distortion calculation.

[0249] Clause 82: A device for filtering decoded 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 picture of the video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0250] Clause 83: The device of clause 82, wherein the one or more processors are further configured to code a value representing a subset of a set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0251] Clause 84: The device of any of clauses 82 and 83, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models, and wherein, to filter a portion of a decoded picture, the one or more processors are configured to apply each of the plurality of neural network models represented by the values ​​separately to the portion to form different results, and to combine each of the results to form a final filtered portion.

[0252] Clause 85: The device of any of clauses 82 to 84, wherein the one or more processors are configured to code values ​​of syntax elements at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0253] Clause 86: The device of any of clauses 82 to 85, wherein the one or more processors are configured to partition the picture according to a grid, and the portion comprises elements of the grid of the picture.

[0254] Clause 87: The device of clause 86, wherein the one or more processors are further configured to decode a value of a syntax element representing a number of elements of the grid, and wherein the syntax element is included in at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptation parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0255] Clause 88: The device of any of clauses 82 to 87, wherein the one or more processors are configured to determine to apply a neural network model before determining the neural network model, and wherein to determine to apply the neural network model, the one or more processors are configured to decode a value of a syntax element indicating that the neural network model should be applied.

[0256] Clause 89: The device of any of clauses 82-88, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0257] Clause 90: The device of any of clauses 82 to 89, wherein the value of the syntax element includes a quantization parameter (QP) for the portion of a picture.

[0258] Clause 91: The device of clause 82, wherein the one or more processors are further configured to encode the picture before decoding the picture, and wherein the one or more processors are configured to encode the value of the syntax element to code the value of the syntax element.

[0259] Clause 92: The device of clause 91, wherein the one or more processors are further configured to determine a neural network model according to the rate-distortion calculation.

[0260] Clause 93: The device of any of clauses 82 to 92, further comprising a display configured to display the decoded video data.

[0261] Clause 94: The device of any of clauses 82 to 93, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0262] Clause 95: A computer-readable storage medium having stored thereon instructions that, when executed, cause a processor to decode a picture of video data; code a value of a syntax element representing a neural network model to be used to filter a portion of the decoded picture, wherein the value represents an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and filter the portion of the decoded picture using the neural network model corresponding to the index.

[0263] Clause 96: The computer-readable storage medium of Clause 95, further including instructions that cause the processor to code a value that represents a subset of the set of predefined neural network models, the neural network model being one of the subsets of the set of predefined neural network models, the subset being smaller than the set of predefined neural network models.

[0264] Clause 97: The computer-readable storage medium of any of clauses 95 and 96, wherein the value of the syntax element representing the neural network model is a value representing a plurality of neural network models, and wherein the instructions for causing the processor to filter a portion of a decoded picture include instructions for causing the processor to apply each of the plurality of neural network models represented by the values ​​separately to the portion to form different results, and to combine each of the results to form a final filtered portion.

[0265] Clause 98: The computer-readable storage medium of any of clauses 95 to 97, wherein the instructions for causing a processor to code the value of the syntax element include instructions for causing the processor to code the value of the syntax element at one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid level for a grid of pictures.

[0266] Clause 99: The computer-readable storage medium of any of clauses 95-98, further comprising instructions that cause a processor to partition the picture according to a grid, the portion comprising elements of the grid of the picture.

[0267] Clause 100: The computer-readable storage medium of clause 99, further including instructions to cause a processor to decode a value of a syntax element representing a number of elements of the grid, the syntax element being included in at least one of a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header, a slice header, an adaptive parameter set (APS), an intra-period level, a group of pictures (GOP) level, a temporal layer level in a GOP, a picture level, a slice level, a coding tree unit (CTU) level, or a grid size level.

[0268] Clause 101: The computer-readable storage medium of any of clauses 95-100, further including instructions that cause the processor to determine to apply a neural network model before determining the neural network model, wherein the instructions that cause the processor to determine to apply the neural network model include instructions that cause the processor to decode a value of a syntax element that indicates that the neural network model should be applied.

[0269] Clause 102: The computer-readable storage medium of any of clauses 95-101, wherein the portion of the decoded picture includes a portion of a color component of the decoded picture, the color component including one of a luminance component, a blue-phase chrominance component, or a red-phase chrominance component.

[0270] Clause 103: The computer-readable storage medium of any of clauses 95 to 102, wherein the value of the syntax element includes a quantization parameter (QP) for the portion of the picture.

[0271] Clause 104: The computer-readable storage medium of any of clauses 95-103, further including instructions for causing the processor to encode the picture before decoding the picture, wherein the instructions for causing the processor to code the value of the syntax element include instructions for causing the processor to encode the value of the syntax element.

[0272] Clause 105: The computer-readable storage medium of clause 104, further comprising instructions for causing a processor to determine a neural network model according to the rate-distortion calculation.

[0273] Clause 106: A device for filtering decoded video data, comprising: means for decoding a picture of the video data; means for coding a value of a syntax element representing a neural network model to be used for filtering a portion of the decoded picture, the value representing an index into a set of predefined neural network models, the index corresponding to a neural network model in the set of predefined neural network models; and means for filtering the portion of the decoded picture using the neural network model corresponding to the index.

[0274] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, or may be added, combined, or omitted entirely (e.g., not all acts or events described may be necessary to practice the techniques). Furthermore, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multithreaded processing, interrupt processing, or multiple processors.

[0275] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which correspond to tangible media such as data storage media, or communication media, including any medium that facilitates transfer of a computer program from one place to another, for example, according to a communications protocol. As such, computer-readable media may generally correspond to (1) tangible computer-readable storage media that are 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, code, and / or data structures for implementing the techniques described in this disclosure. A computer program product may include a computer-readable medium.

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

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

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

[0279] Various examples have been described. These and other examples are within the scope of the following claims. [Explanation of symbols]

[0280] 100 Video encoding and decoding system, system 102 Source Devices 104 Video Sources 106 memory 108 Output Interface 110 Computer-Readable Medium 112 Storage Devices 114 File Server 116 Destination Device 118 Display Devices 120 memory 122 input interface 130 Quadruple Tree / Binary Tree (QTBT) Structure, QTBT Structure 132 Coding Tree Unit (CTU), CTU 140 Hybrid Video Coding Framework 142 Predictions 144 Transform coding with quantization, transform / quantization 146 Entropy Coding 148 Post / In-Loop Filtering 150 Hierarchical Prediction Structure 160 Neural Network-Based Filters 200 Video Encoder 202 Mode Selection Unit 204 Residual Generation Unit 206 Conversion Processing Unit 208 quantization units 210 Inverse Quantization Unit 212 Inverse Transformation Processing Unit 214 Reconstruction Unit 216 Filter Unit 218 Decoded Picture Buffer (DPB), DPB 220 Entropy Coding Unit 222 Motion Estimation Unit 224 Motion Compensation Unit 226 intra prediction units 230 video data memory 232 Neural network model (NN model), NN model 300 Video Decoder 302 Entropy Decoding Unit 304 Prediction Processing Unit 306 Inverse Quantization Unit 308 Inverse Transformation Processing Unit 310 Reconstruction Unit 312 Filter Unit 314 Decoded Picture Buffer (DPB), DPB 316 Motion Compensation Unit 318 Intra Prediction Units 320 Coded Picture Buffer (CPB) memory, CPB memory 322 NN model

Claims

1. 1. A method of filtering decoded video data, comprising: decoding pictures of the video data; decoding values ​​of syntax elements representing a plurality of neural network models to be used to filter the portion of the decoded picture, the plurality of neural network models being a plurality of predefined neural network models; filtering the portion of the decoded picture using the neural network model corresponding to the value, the step including applying each of the plurality of neural network models represented by the value separately to the portion to form different results, and combining each of the results to form a final filtered portion; A method comprising:

2. 2. The method of claim 1, further comprising: decoding a value representing a subset of the set of predefined neural network models, wherein the neural network model is one of the subset of the set of predefined neural network models, and wherein a number of predefined neural network models included in the subset is less than a number of predefined neural network models included in the set of predefined neural network models.

3. 2. The method of claim 1, wherein decoding the value of the syntax element comprises decoding the value of the syntax element at one of a video parameter set, a sequence parameter set, a picture parameter set, an adaptive parameter set, an intra-period level, a group of pictures level, a temporal layer level in a group of pictures, a picture level, a slice level, or a coding tree unit level.

4. The method of claim 1 , further comprising determining whether to apply a neural network model before determining the plurality of neural network models to be used.

5. 5. The method of claim 4, wherein the syntax element is a first syntax element, and determining to apply a neural network model comprises decoding a value of a second syntax element indicating that a neural network model should be applied.

6. 6. The method of claim 5, wherein the second syntax element is at least one of a video parameter set, a sequence parameter set, a picture parameter set, a picture header, a slice header, an adaptation parameter set, an intra-period level, a group of pictures level, a temporal layer level in a group of pictures, a picture level, a slice level, or a coding tree unit level.

7. 2. The method of claim 1, wherein the portion of the decoded picture includes a portion of color components of the decoded picture, the color components including one of a luminance component, a blue-hued chrominance component, or a red-hued chrominance component.

8. 8. The method of claim 7, wherein the syntax element is a first syntax element, the method further comprising: decoding a second syntax element that together represent a filtering operation using the plurality of neural network models for each of the color components of the decoded picture.

9. The method of claim 1 , wherein the value of the syntax element comprises a quantization parameter for the portion of the picture.

10. 1. A method of filtering decoded video data, comprising: encoding a picture of the video data; decoding said picture of video data; encoding values ​​of syntax elements representing a plurality of neural network models to be used to filter the portion of the decoded picture, the plurality of neural network models being a plurality of predefined neural network models; filtering the portion of the decoded picture using the neural network model corresponding to the value, the step including applying each of the plurality of neural network models represented by the value separately to the portion to form different results, and combining each of the results to form a final filtered portion; A method comprising:

11. The method of claim 10 , wherein the value of the syntax element is determined based on a rate-distortion calculation.

12. 1. A device for filtering decoded video data, comprising: a memory configured to store video data; Implemented in a circuit, decoding pictures of the video data; decoding values ​​of syntax elements representing a plurality of neural network models to be used to filter the portion of the decoded picture, the plurality of neural network models being a plurality of predefined neural network models; filtering the portion of the decoded picture using the neural network model corresponding to the value, the filtering including separately applying each of the plurality of neural network models represented by the value to the portion to form different results, and combining each of the results to form a final filtered portion; one or more processors configured to perform 1. A device comprising:

13. the device further comprises a display configured to display the decoded video data; or The device of claim 12 , wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

14. 1. A device for filtering decoded video data, comprising: a memory configured to store video data; Implemented in a circuit, encoding a picture of the video data; decoding the picture of video data; encoding values ​​of syntax elements representing a plurality of neural network models to be used to filter the portion of the decoded picture, the plurality of neural network models being a plurality of predefined neural network models; filtering the portion of the decoded picture using the neural network model corresponding to the value, the filtering including separately applying each of the plurality of neural network models represented by the value to the portion to form different results, and combining each of the results to form a final filtered portion; one or more processors configured to perform 1. A device comprising:

15. A computer readable storage medium having stored thereon instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method and system of neural network loop filtering for video coding

    US20190273948A1

  • Method and device for encoding or decoding image

    US20200120340A1

  • Artificial intelligence (AI) encoding device and operating method thereof and ai decoding device and operating method thereof

    US20200126185A1

  • Method and apparatus for filtering with multi-branch deep learning

    US20200244997A1

  • Image filter device, image decoding device, and image coding device

    WO2019031410A1