Multiple neural network models for filtering during video coding
Patent Information
- Application Number
- JP2023515167
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-23
- Filing Date
- 2021-09-24
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-09-24
AI Technical Summary
Existing video coding techniques using neural network-based filters are suboptimal for specific video sequences, as they are trained on general data and may not yield the best results in terms of bit rate and distortion.
Implementing multi-model neural network-based filtering techniques that select and apply appropriate neural network models based on quantization parameters or rate-distortion optimization for improved video sequence-specific filtering.
Enhances video coding efficiency by optimizing bit rate and distortion for specific video sequences through selective application of neural network models.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of U.S. Application No. 17 / 448,658, filed on September 23, 2021, and U.S. Provisional Application No. 63 / 085,092, filed on September 29, 2020, the entire contents of which are incorporated herein by reference. U.S. Application No. 17 / 448,658, filed on September 23, 2021, claims the benefit of U.S. Provisional Patent Application No. 63 / 085,092, filed on September 29, 2020.
[0002] This disclosure relates to video coding, including video encoding and video decoding.
Background Art
[0003] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radiotelephones, so-called "smartphones", video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, 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 can 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 eliminate redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be called coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are coded using spatial predictions for reference samples in adjacent blocks within the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial predictions for reference samples in adjacent blocks within the same picture or temporal predictions for reference samples in other reference pictures. Pictures may be called frames, and reference pictures may be called reference frames. [Overview of the Initiative] [Means for solving the problem]
[0005] Generally, this disclosure describes techniques for filtering decoded (e.g., reconstructed) pictures that 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 to ITU-T H.266 / Vulnerable Video Coding (VVC), or subsequent generations of 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 that should be used to filter that portion of the decoded picture. For example, a video encoder may perform a rate-distortion optimization (RDO) technique to determine the neural network model. Alternatively, a video encoder may determine quantization parameters (QPs) for a portion of a decoded picture and determine a neural network model to which the QPs are mapped. The video encoder may signal the determined neural network model using a distinct value of a syntax element representing an index to the QPs themselves or to a set (or subset of a set) of available neural network models.
[0006] For example, a method for filtering decoded video data includes the steps of: decoding a picture of video data; coding a value for 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 to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and filtering a 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 circuitry and configured to decode pictures of video data, code values of syntax elements representing neural network models to be used to filter portions of the decoded pictures, wherein the values represent indices to a predefined set of neural network models, and the indices correspond to neural network models in the predefined set of neural network models, and filter portions of the decoded pictures using the neural network models corresponding to the indices.
[0008] In another example, a computer-readable storage medium stores instructions, which, when executed, cause a processor to code a value for a syntax element representing a neural network model to be used to decode a picture of video data and to filter a portion of the decoded picture, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and the processor then codes and filters a 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 decoded a picture of 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, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and means for filtering a portion of the decoded picture using the neural network model corresponding to the index.
[0010] Details of one or more examples are described in the accompanying drawings and the following description. Other features, purposes, and advantages will become apparent from the description, drawings, and claims. [Brief explanation of the drawing]
[0011] [Figure 1] Block diagram shows an exemplary video encoding and decoding system capable of performing the techniques of this disclosure. [Figure 2A] This is a conceptual diagram illustrating an exemplary quad-binary tree (QTBT) structure. [Figure 2B] This is a conceptual diagram showing the corresponding coding tree unit (CTU). [Figure 3] This is a conceptual diagram illustrating a hybrid video coding framework. [Figure 4] This is a conceptual diagram showing a hierarchical prediction structure using 16 picture group (GOP) sizes. [Figure 5] This is a conceptual diagram showing a neural network-based filter with four layers. [Figure 6] A block diagram illustrating a video encoder capable of performing the techniques of this disclosure. [Figure 7] A block diagram illustrating an exemplary video decoder capable of performing the techniques of this disclosure. [Figure 8]This flowchart shows an exemplary method for encoding the current block using the technique of the present disclosure. [Figure 9] This flowchart shows an exemplary method for decoding the current block using the technique of the present disclosure. [Modes for carrying out 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 High Efficiency Video Coding (HEVC) or ITU-T H.265, which includes its range extensions, the Multiview Extension (MV-HEVC) and the Scalable Extension (SHVC). Another exemplary video coding standard is Multipurpose Video Coding (VVC) or ITU-T H.266, developed by the ITU-T Video Coding Expert Group (VCEG) and the Joint Video Expert Team (JVET) of the ISO / IEC Motion Picture Expert Group (MPEG). Version 1 of the VVC specification, referred to as "VVC FDIS" below, is available from http: / / phenix.int-evry.fr / jvet / doc_end_user / documents / 19_Teleconference / wg11 / JVET-S2001-v17.zip.
[0013] The techniques described herein generally pertain to filtering techniques that use neural network-based filters. Typically, such filters are trained on large sets of data, which may yield good results for general video data but may not be optimal for specific sequences of video data. In contrast, this disclosure describes a multi-model neural network-based filtering technique that may yield better results for specific video sequences (e.g., in terms of bitrate and distortion).
[0014] Figure 1 is a block diagram illustrating an exemplary video coding and decoding system 100 capable of performing the techniques of the present disclosure. The techniques of the present disclosure generally concern coding (encoding and / or decoding) video data. Generally, video data includes any data for processing video. Thus, video data may include raw, uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata such as signaling data.
[0015] As shown in Figure 1, the system 100 includes, in this example, a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, the source device 102 provides video data to the destination device 116 via a computer-readable medium 110. The source device 102 and the 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, and so on. In some cases, the source device 102 and the destination device 116 may be equipped for wireless communication and are therefore sometimes referred to as wireless communication devices.
[0016] In the example in Figure 1, the source device 102 includes a video source 104, memory 106, a video encoder 200, and an output interface 108. The 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 the source device 102 and the video decoder 300 of the destination device 116 may be configured to apply techniques for filtering using multiple neural network models. Thus, the source device 102 represents an example of a video encoding device, and the destination device 116 represents an example of a video decoding device. In other examples, the source and destination devices may include other components or configurations. For example, the source device 102 may receive video data from an external video source, such as an external camera. Similarly, the destination device 116 may interface with an external display device rather than including an integrated display device.
[0017] System 100, as shown in Figure 1, is merely an example. In general, any digital video coding and / or decoding device may perform 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 a device that performs coding (encoding and / or decoding) of data as a “coding” device. Thus, video encoder 200 and video decoder 300 represent examples of coding devices, specifically, video encoder and video decoder, respectively. In some examples, source device 102 and destination device 116 may operate in a substantially symmetrical manner such that each of source device 102 and destination device 116 includes video coding and decoding components. Thus, system 100 may support one-way or two-way video transmission between source device 102 and destination device 116 for, for example, video streaming, video playback, video broadcasting, or video telephony.
[0018] Generally, the video source 104 represents a source of video data (i.e., raw, uncoded video data) and provides the video encoder 200 with a sequence of pictures (also called "frames") of video data, which the video encoder 200 encodes the data for the pictures. The video source 104 of the 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, the video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they were received (sometimes called the "display order") to a coding order for encoding. The video encoder 200 may generate a bitstream containing the encoded video data. The source device 102 may then output the encoded video data onto a computer-readable medium 110 via the output interface 108 for reception and / or retrieval by the input interface 122 of the destination device 116.
[0019] The memories 106 of the source device 102 and 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, such as raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, for example, the video encoder 200 and the video decoder 300, respectively. The memories 106 and 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, but it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Further, the memories 106, 120 may store encoded video data, such as the output from the video encoder 200 and the input to the video decoder 300. In some examples, a portion of the memories 106, 120 may be allocated as one or more video buffers for storing, for example, raw, decoded, and / or encoded video data.
[0020] Computer-readable medium 110 can represent any type of medium or device capable of transporting encoded video data from source device 102 to destination device 116. In one example, computer-readable medium 110 represents a communication medium that enables source device 102 to directly transmit encoded video data to destination device 116 in real time via, for example, a radio frequency network or a computer-based network. Output interface 108 can modulate a transmission signal including the encoded video data according to a communication standard such as a wireless communication protocol, and input interface 122 can demodulate the received transmission signal. The communication medium can comprise any wireless or wired communication medium, such as the radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium can 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 can include a router, a switch, a base station, or any other device that can be useful for facilitating communication from source device 102 to destination device 116.
[0021] In some examples, source device 102 can output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 can access the encoded data from storage device 112 via input interface 122. Storage device 112 can include any of a variety of distributed or locally accessible data storage media, such as a hard drive, a Blu-ray disk, a DVD, a CD-ROM, a flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing the encoded video data.
[0022] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device capable of storing the encoded video data generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download.
[0023] The file server 114 may be any type of server device capable of storing encoded video data and transmitting that encoded video data to the destination device 116. The file server 114 may represent a web server (for example, for a website), a server configured to provide file transfer protocol services (such as the 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. The file server 114 may, in addition 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), or HTTP Dynamic Streaming.
[0024] The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an internet connection. This may include wireless channels (e.g., Wi-Fi connection), wired connections (e.g., digital subscriber line (DSL), cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to one or more of the various protocols described above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.
[0025] The 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 where the output interface 108 and input interface 122 include wireless components, the output interface 108 and input interface 122 may be configured to transfer data such as encoded video data according to cellular communication standards such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, or 5G. In some examples where the output interface 108 includes a wireless transmitter, the 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®), or the Bluetooth® standard. In some examples, the source device 102 and / or destination device 116 may include their respective system-on-chip (SoC) devices. For example, source device 102 may include an SoC device for performing functions related to the video encoder 200 and / or output interface 108, and destination device 116 may include an SoC device for performing functions related to the video decoder 300 and / or input interface 122.
[0026] The techniques of this disclosure can be applied to video coding that supports any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded 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 a 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 the characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, picture groups, sequences, etc.). The display device 118 displays the decoded picture of the decoded video data to the user. The display device 118 may represent any of various 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] Although not shown in Figure 1, in some examples the video encoder 200 and video decoder 300 may be integrated with an audio encoder and / or audio decoder, respectively, and may include a suitable MUX-DEMUX unit or other hardware and / or software to handle multiplexed streams containing both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may comply with the ITU H.223 Multiplexer Protocol or other protocols such as the User Datagram Protocol (UDP).
[0029] The video encoder 200 and video decoder 300 may each be implemented as one or more 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 technique is partially implemented in software, the device may store instructions for the software in a suitable non-temporary computer-readable medium and execute the instructions in hardware using one or more processors to perform the technique of this disclosure. Each of the video encoder 200 and video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a composite encoder / decoder (CODEC) in their respective devices. A device including the video encoder 200 and / or video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular telephone.
[0030] The video encoder 200 and video decoder 300 may operate in accordance with video coding standards such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or its extensions, such as the Multiview and / or Scalable Video Coding extension. Alternatively, the video encoder 200 and video decoder 300 may operate in accordance with other proprietary or industry standards, such as Versatile Video Coding (VVC). A draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 9)," ITU-T SG 16 WP 3 and the Joint Video Experts Team (JVET) of ISO / IEC JTC 1 / SC 29 / WG 11, 18th meeting, April 15-24, JVET-R2001-v8 (hereinafter referred to as "VVC Draft 9"). However, the techniques of this disclosure are not limited to any particular coding standard.
[0031] Generally, the video encoder 200 and video decoder 300 can perform block-based coding of a picture. The term “block” generally refers to a structure containing data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may contain a two-dimensional matrix of samples of luminance and / or chrominance data. Generally, the video encoder 200 and video decoder 300 can 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 video decoder 300 can code luminance and chrominance components, and the chrominance component may contain both red and blue chrominance components. In some examples, the video encoder 200 converts the received RGB-formatted data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to RGB format. Alternatively, pre-processing units and post-processing units (not shown) may perform these conversions.
[0032] This disclosure may refer to coding a picture (e.g., encoding and decoding) to include, in general, the process of encoding or decoding the data of a picture. Similarly, this disclosure may refer to coding a block of a picture (e.g., predictive and / or residual coding) to include the process of encoding or decoding the data for that block. An encoded video bitstream generally contains a set of values for syntax elements representing coding decisions (e.g., coding modes) and divisions of the picture into blocks. Thus, references to coding a picture or a block should generally be understood as coding values for the syntax elements that make up the picture or block.
[0033] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transformation units (TUs). According to HEVC, a video coder (such as video encoder 200) divides coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder divides the CTUs and CUs into four equal, non-overlapping squares, and each node in the quadtree has either zero or four child nodes. Nodes without child nodes are sometimes called "leaf nodes," and the CUs of such leaf nodes may contain one or more PUs and / or one or more TUs. The video coder may further divide the PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a division of TUs. In HEVC, PUs represent intra-prediction data, and TUs represent residual data. Intra-predicted CUs contain intra-prediction information, such as intra-mode indications.
[0034] As another example, a video encoder 200 and a video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) divides a picture into multiple coding tree units (CTUs). The video encoder 200 may divide the CTUs according to a tree structure such as a quad-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple division types, such as the distinction between CU, PU, and TU in HEVC. The QTBT structure includes two levels: a first level divided according to quad-tree divisions and a second level divided according to binary tree divisions. 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 an MTT partitioned structure, blocks can be partitioned using quadrant (QT) partitions, binary (BT) partitions, and one or more types of triple tree (TT) partitions (also called ternary tree) partitions. A triple tree or ternary tree partition is a partition in which a block is divided into three subblocks. In some examples, a triple tree or ternary tree partition divides a block into three subblocks without dividing the original block through a 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 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 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] The video encoder 200 and video decoder 300 may be configured to use a quadtree partition, QTBT partition, MTT partition, or other partitioning structure per HEVC. For illustrative purposes, the description of the technique in this disclosure is presented in relation to the QTBT partition. However, it should be understood that the technique in this disclosure may also be applicable to video coders configured to use a quadtree partition or other types of partitions.
[0038] In some examples, a CTU includes a coding tree block (CTB) of a lumen sample, two corresponding CTBs of a chroma sample of a picture having three sample arrays, or a CTB of a sample of a picture coded using three separate color planes and syntax structures used to code a monochrome picture or sample. A CTB can be an N×N block of samples for some value N, such that the division of components into the CTB is a partition. Components can be an array from one of three arrays (lumen and two chroma) of a picture in a 4:2:0, 4:2:2, or 4:4:4 color format, or a single sample from that array, or an array of a picture in a monochrome format, or a single sample from that array. In some examples, a coding block is an M×N block of samples for some values M and N, such that the division of the CTB into the coding block is a partition.
[0039] Blocks (e.g., CTUs or CUs) can be grouped in various ways within a picture. For example, a brick may refer to a rectangular area of a row of CTUs within a particular tile in a picture. A tile can be a rectangular area of CTUs within a particular tile column or row in a picture. A tile column refers to a rectangular area of CTUs with a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular area of CTUs with a height specified by a syntax element (e.g., in a picture parameter set) and a width equal to the width of the picture.
[0040] In some examples, a tile may be divided into multiple bricks, each brick containing one or more CTU rows within the tile. A tile that is not divided into multiple bricks may also be called a brick. However, a brick that is a true subset of a tile may not be called a tile.
[0041] Bricks within a picture can also be arranged in slices. A slice can be an integer number of bricks in a picture that can exclusively be contained within 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 a single tile.
[0042] This disclosure may interchangeably use "N×N" and "N by N," e.g., 16×16 samples or 16 by 16 samples, to refer to the sample dimension of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions. Generally, a 16×16 CU has 16 samples vertically (y=16) and 16 samples horizontally (x=16). Similarly, an N×N CU generally has N samples vertically and N samples horizontally, where N represents a non-negative integer. The samples in a CU can 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 have N×M samples, where M is not necessarily equal to N.
[0043] The video encoder 200 encodes video data for CUs that represent prediction and / or residual information, as well as other information. The prediction information indicates how the CUs will be predicted to form prediction blocks for the CUs. The residual information generally represents the sample-by-sample difference between the samples of the CUs prior to encoding and the samples of the prediction blocks.
[0044] To predict a CU, the video encoder 200 can generally form prediction blocks for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting the CU from data of a previously coded picture, while intra-prediction generally refers to predicting the CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 can generate prediction blocks using one or more motion vectors. The video encoder 200 can generally perform motion search to identify a reference block that exactly matches the CU with respect to the difference between the CU and the reference block. The video encoder 200 can compute a difference metric using absolute difference sum (SAD), squared difference sum (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculations to determine whether the reference block exactly matches the current CU. In some examples, the video encoder 200 can predict the current CU using unidirectional or bidirectional prediction.
[0045] Some examples of VVC also offer an affine motion compensation mode, which can be considered an interpredictive mode. In affine motion compensation mode, the video encoder 200 may determine two or more motion vectors representing 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 prediction block. Several examples of VVCs provide 67 intra-prediction modes, including various directional modes, as well as planar and DC modes. Generally, the video encoder 200 selects an intra-prediction mode that describes adjacent samples to the current block (e.g., a block of CUs) from which to predict a sample of the current block. Such samples could generally be above, above and to the left of, 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 scanning order (left to right, top to bottom).
[0047] The video encoder 200 encodes data representing the prediction mode for the current block. For example, in interprediction mode, the video encoder 200 may encode data representing which of the various available interprediction modes is used, as well as motion information about the corresponding mode. In the case of unidirectional or bidirectional interprediction, for example, the video encoder 200 may encode the motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use similar modes to encode the motion vectors for affine motion compensation mode.
[0048] Following predictions such as intra-prediction or inter-prediction of a block, the video encoder 200 may compute residual data for the block. Residual data, such as a residual block, represents the sample-by-sample difference between the block and the predicted block for that block formed using the corresponding prediction mode. The video encoder 200 may apply one or more transformations to the residual block to generate transformation data in the transformation domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), integer transform, wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a second-order transform such as a mode-dependent non-separable secondary transform (MDNSST), signal-dependent transform, or Karhunen-Loeve transform (KLT) following the first transformation. Following the application of one or more transformations, the video encoder 200 generates transformation coefficients.
[0049] As described above, following any transformation to generate the transformation coefficients, the video encoder 200 may perform quantization of the transformation coefficients. Quantization generally refers to the process of quantizing the transformation coefficients to reduce the amount of data used to represent them as much as possible, thereby achieving further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transformation 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 transformation coefficients and generate a one-dimensional vector from a two-dimensional matrix containing the quantized transformation coefficients. The scan may be designed to place higher-energy (and therefore lower-frequency) transformation coefficients at the beginning of the vector and lower-energy (and therefore higher-frequency) transformation coefficients at the end. In some examples, the video encoder 200 may utilize a predefined scan order for scanning the quantized transformation coefficients to generate a serialized vector and then entropy-encode the quantized transformation coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transformation coefficients to form a one-dimensional vector, the video encoder 200 may entropy-encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy-encode values for syntax elements that describe metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0051] To perform CABAC, the video encoder 200 may assign a context within a context model to the symbols to be transmitted. The context may relate, for example, to whether the symbol's adjacency values are zero-valued. Probability decisions may be based on the context assigned to the symbols.
[0052] The video encoder 200 may further generate syntax data for the video decoder 300, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, in other syntax data such as a picture header, block header, slice header, or sequence parameter set (SPS), picture parameter set (PPS), or video parameter set (VPS). The video decoder 300 may similarly decode such syntax data to determine how to decode the corresponding video data.
[0053] Thus, the video encoder 200 can generate a bitstream containing encoded video data, for example, a bitstream containing syntax elements that describe the division of a picture into blocks (e.g., CUs) and predictive and / or residual information about the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0054] Generally, the video decoder 300 decodes the encoded video data of the bitstream by performing a process that is the reverse of the process performed by the video encoder 200. For example, the video decoder 300 may decode values for syntax elements of the bitstream using CABAC in a substantially similar, but reverse, manner to the CABAC encoding process of the video encoder 200. The syntax elements may define the CUs of the CTUs by defining partitioning information for partitioning the picture into CTUs, and partitioning each CTU according to a corresponding partitioning structure such as a QTBT structure. The syntax elements may further define prediction and residual information for blocks of video data (e.g., CUs).
[0055] Residual information may be represented, for example, by quantized transformation coefficients. The video decoder 300 may dequantize and inverse transform the quantized transformation coefficients of a block in order to reconstruct the residual block for the block. The video decoder 300 uses a signaled prediction mode (intra-prediction or inter-prediction) and associated prediction information (for example, motion information about inter-prediction) to form a prediction block for the block. The video decoder 300 may then synthesize the prediction block and the residual block (sample by sample) to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the block boundaries.
[0056] This disclosure may generally refer to “signaling” certain information, such as syntax elements. The term “signaling” may generally refer to the communication of values for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal values for syntax elements in the bitstream. In general, signaling refers to generating values in the bitstream. As described above, the source device 102 may transport the bitstream to the destination device 116 in substantially real time, or not in real time, such as when storing the syntax elements in the storage device 112 for later retrieval by the destination device 116.
[0057] Figures 2A and 2B are conceptual diagrams showing an exemplary quadtree-binary (QTBT) structure 130 and its corresponding coding tree unit (CTU) 132. Solid lines represent quadtree partitions, and dotted lines represent binary tree partitions. 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 a horizontal partition and 1 indicates a vertical partition. In the case of a quadtree partition, there is no need to indicate the partition type, as the quadtree node divides the block horizontally and vertically into four subblocks of equal size. Thus, the video encoder 200 can encode syntax elements (such as partition information) for the domain tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as partition information) for the predictive tree level (i.e., dashed lines) of the QTBT structure 130, and the video decoder 300 can decode those syntax elements. The video encoder 200 can encode video data such as prediction data and transformation data for CUs represented by terminal leaf nodes of the QTBT structure 130, and the video decoder 300 can decode that video data.
[0058] In general, the CTU132 in Figure 2B can be associated with parameters that define the size of the blocks corresponding to the nodes of the QTBT structure 130 at the first and second levels. These parameters may include the CTU size (representing the size of the CTU132 in the sample), the minimum quadtree size (MinQTSize, representing the minimum allowed quadtree leaf node size), the maximum binary tree size (MaxBTSize, representing the maximum allowed binary tree root node size), the maximum binary tree depth (MaxBTDepth, representing the maximum allowed binary tree depth), and the 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, each of which may be subdivided according to a quadruple tree partition. That is, a node at the first level is either a leaf node (without child nodes) or has four child nodes. An example of QTBT structure 130 represents a node that includes a parent node and child nodes with solid lines for branching. If the nodes at the first level are not larger than the maximum allowable binary tree root node size (MaxBTSize), these nodes may be further subdivided by their respective binary trees. Binary tree partitioning of a single node may be repeated until the resulting nodes reach the minimum allowable binary tree leaf node size (MinBTSize) or the maximum allowable binary tree depth (MaxBTDepth). An example of QTBT structure 130 represents a node that has dashed lines for branching. A leaf node in a binary tree is called a coding unit (CU), and without further distinction, coding units (CUs) are used for prediction (e.g., intra-picture prediction or inter-picture prediction) and transformation. As described above, CUs are sometimes also called "video blocks" or "blocks".
[0060] In one example of a QTBT partitioned structure, the CTU size is set to 128×128 (a chroma sample and two corresponding 64×64 chroma samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. To generate a quadtree leaf node, the quadtree partition is first applied to the CTU. The quadtree leaf node can have sizes ranging from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, the size exceeds MaxBTSize (i.e., 64×64 in this example), so the quadtree leaf node is not further partitioned by a binary tree. Otherwise, the quadtree leaf node may be further partitioned by a binary tree. Therefore, a quad tree leaf node is also the root node of a binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further partitioning is allowed. A binary tree node with a width equal to MinBTSize (4 in this example) suggests that no further vertical partitioning (i.e., partitioning by width) is allowed for that binary tree node. Similarly, a binary tree node with a height equal to MinBTSize suggests that no further horizontal partitioning (i.e., partitioning by height) is allowed for that binary tree node. As mentioned above, a leaf node of a binary tree is called a CU and is further processed according to prediction and transformation without further partitioning.
[0061] Figure 3 is a conceptual diagram illustrating the hybrid video coding framework 140. Video coding standards since H.261 are based on the so-called hybrid video coding principle shown in Figure 3. The term hybrid refers to a combination of two means for reducing redundancy in a video signal, namely, transform coding 144 with predictive residual prediction 142 and quantization. Predictive and transform reduce redundancy in the video signal by decorrelation, while quantization reduces the data in the transform coefficient representation by removing only details that are ideally irrelevant, thereby reducing its precision. 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, a modern hybrid video coder includes block division, prediction 142 including motion compensation or interpicture prediction and intrapicture prediction, transform / quantization 144 including 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 a tree-based partitioning structure to perform flexible partitioning.
[0063] Motion compensation, or interpicture prediction, utilizes the redundancy (and therefore "inter") that exists between pictures in a video sequence. According to block-based motion compensation used in all modern video codecs, the prediction is derived from one or more previously decoded pictures, i.e., reference pictures. The corresponding area for generating the interpicture prediction is indicated by motion information, which includes motion vectors and reference picture indices.
[0064] Figure 4 is a conceptual diagram showing a hierarchical prediction structure 150 using 16 picture group (GOP) sizes. In recent video codecs, a hierarchical prediction structure within picture groups (GOPs) is applied to improve coding efficiency.
[0065] Referring again to Figure 3, intra-picture prediction leverages the spatial redundancy present within the picture (and therefore "intra") by deriving predictions about blocks from already coded / decoded, spatially adjacent (reference) samples. Directional angle prediction, DC prediction, and plane or planar prediction are used in recent video codecs, including AVC, HEVC, and VVC.
[0066] Transformation: Hybrid video coding standards apply a block transform to the predictive residuals (regardless of whether the predictive residuals originate from interpicture or intrapicture predictions). Early standards, including H.261, H.262, and H.263, use the discrete cosine transform (DCT). HEVC and VVC apply additional transform kernels other than the DCT to account for different statistics in a given video signal.
[0067] Quantization aims to reduce the precision of an input value or set of input values in order to decrease the amount of data required to represent the value. In hybrid video coding, quantization is typically applied to individual transformed residual samples, i.e., to the transformation coefficients, resulting in integer coefficient levels. In recent video coding standards, the step size is derived from so-called quantization parameters (QPs) that control fidelity and bitrate. Larger step sizes reduce the bitrate but can 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 modern 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 to the filtering process is typically a reconstructed picture, which is a combination of the reconstructed residual signal (including quantization errors) and the prediction. As shown in Figure 3, the reconstructed picture after in-loop filtering is stored and used as a reference for interpicture prediction of subsequent pictures. Coding artifacts are largely determined by QP, and therefore QP information is generally used in the design of the filtering process. In HEVC, in-loop filtering includes deblocking filtering and sample-adaptive offset (SAO) filtering. In the VVC standard, adaptive loop filtering (ALF) was introduced as a third filter. The ALF filtering process is as follows:
[0070]
number
[0071] Here, 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) represents the filter coefficients, K(x,y) is the clipping function, and c(k,l) represents the clipping parameters. The variables k and l are
[0072]
number
[0073] The difference lies between, where L represents 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 ALF more efficient by reducing the influence of neighboring sample values that are too different from the current sample value. In VVC, the filtering parameters can be signaled in the bitstream, and they can be selected from a predefined set of filters. The ALF filtering process can also be summarized as follows: R'(i,j)=R(i,j)+ALF_residual_ouput(R)
[0074] Figure 5 is a conceptual diagram showing 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 are used in intra-prediction and inter-prediction modules to improve prediction efficiency. In recent years, NN-based in-loop filtering has also become 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] In addition to existing filters such as deblocking filters, sample-adaptive offsets (SAO), and / or adaptive loop filtering (ALF), NN-based filters may be applied. NN-based filters may also be applied exclusively if they are designed to replace all existing filters. As an addition or replacement, NN-based filters 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 the reconstructed sample as input, with the intermediate output being the residual sample, which is then added back to the input to refine the input sample. The NN filter may take all color components (e.g., Y, U, and V, or Y, Cb, and Cr, i.e., luminance, blue chrominance, and red chrominance) as input to leverage intercomponent correlations. 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 a NN-based filter can be predefined and stored in the encoder and decoder. The filter can also be signaled in the bitstream.
[0078] This disclosure acknowledges that, in some cases, predefined filters (e.g., NN-based filters or ALF) are trained on a large set of video and image databases. While a filter may generally be optimal, it may not be optimal for a particular distorted sequence. This disclosure also acknowledges that a predefined training image / video database may not constitute all possible types of video characteristics, and therefore, applying a filter trained on this given database to a sequence with different video characteristics may not yield any objective or subjective benefit, but rather may impair objective or subjective quality.
[0079] The video encoder 200 and video decoder 300 in Figure 1 may be configured to perform any or all of the following techniques individually or in any combination, according to the techniques of this disclosure. In general, multiple filtering models may be used. For each target area of the input picture, the video encoder 200 and / or video decoder 300 may select one or more of the multiple filtering models to perform filtering. The video encoder 200 and video decoder 300 may implicitly derive the selection of an NN model based on information in the bitstream (for example, based on quantization parameters (QP)). Alternatively, the video decoder 300 may derive the selection of an NN model using indices 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, the video encoder 200 may select one or more models and signal an index 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. For example, the video encoder 200 and video decoder 300 may apply the models separately to the target area, and the outputs of the models involved may be combined as the final output of the target area.
[0081] Switching the filtering process off may be used as one option. When "switch off" is selected for the target area, the video encoder 200 and video decoder 300 do not apply any filters, and the output signal is the same as the input signal.
[0082] The granularity of model selection and signaling can be designed at different levels. Possible levels to which the filter model index is signaled include video parameter set / sequence parameter set / picture parameter set (VPS / SPS / PPS) level, intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, CTU level, or a grid size N*N specifically designed for filter signaling. The level of selection used for filter model signaling can 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 exemplary implementation, there are N predefined filter models. At the level of filter model signaling, the video encoder 200 selects one model to determine which filter model should be used and signals the corresponding index for the video decoder 300. Possible levels to signal elements include VPS / SPS / PPS levels, intra-period levels, picture group (GOP) levels, picture levels, slice levels, CTU levels, or grid sizes N*N specifically 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 it can be implicitly derived based on information in the bitstream (e.g., picture resolution, QP, etc.).
[0084] As another example, the video encoder 200 may derive a subset of a predefined model and signal this subset to the video decoder 300 in the bitstream as a syntax element within a sequence parameter set (SPS), slice header, picture header, adaptive parameter set (APS), or any other high-level syntax element body. The size of the subset is here referred to 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 filter model may be associated with a QP value, and for each picture, the 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, reference picture QP, QPs for pictures in the same GOP, QPs for pictures in the same intra-period, etc. Alternatively, QPs for one or more blocks in a slice, i.e., block-level QPs, may be provided to the NN model to filter the current slice or current block.
[0086] As another example, similar to the example above, each filter model may be associated with a QP value, and the video encoder 200 and video decoder 300 may derive a "model selection QP" for each frame. The video encoder 200 and video decoder 300 may derive a subset of all models based on the "model selection QP". The 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 the video decoder 300 to select a model from the QP-derived subset.
[0087] As described above, switching off NN-based modeling can be used as a candidate choice in any or all of the various examples described above. Switching off may be considered an additional normal candidate for the filter model set, and the signaling for the "switch off" case may be integrated with the signaling of the other filter models. In another example, "switching off" may be considered a special candidate, and the signaling is isolated from the other filter models.
[0088] The video encoder 200 and video decoder 300 may be configured to apply on / off control for multi-model-based filtering as described above. That is, the video encoder 200 and video decoder 300 will filter the residuals 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 follows: If (ApplyFilter is true), then {R'(i,j)=R(i,j)+(filter_residual_ouput(R))}, otherwise {R' (i,j) =R(i,j)} Here, ApplyFilter is a control operation that can be determined by the video encoder 200, which can signal data representing the decision (e.g., a flag or other syntax element) to the video decoder 300 in the bitstream.
[0089] For example, the video encoder 200 may calculate the rate distortion (RD) cost of applying the filter and compare it to the RD cost of not applying the filter. Based on the result of this comparison, the video encoder 200 may determine a control action (for example, setting the value of a given flag to either state 0 or state 1, where one state indicates that the filter should be applied and the other indicates 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 it. The granularity at which the control action (flag) is signaled is also important, because a trained filter may not be optimal for the entire video sequence, or for a given frame or region within the sequence.
[0090] In some examples, the video encoder 200 may derive a filter On / Off value and signal this value in the bitstream as a syntax element in a sequence parameter set (SPS), slice header, picture parameter set (PPS), picture header, adaptive parameter set (APS), or any other high-level syntax element body. The video decoder 300 may use the value of this syntax element to determine whether or not to use the filter.
[0091] In some examples, the video encoder 200 may derive a value for a filter On / Off flag and signal this value in the bitstream as a syntax element at the block level, for example, at the CTU level. The video decoder 300 may use the value of this syntax element to determine whether or not to use the filter.
[0092] In some examples, the video encoder 200 may determine the grid size (for signaling) and the values of filter On / Off flags in the corresponding grids, and signal each value of the grid in the bitstream as a respective syntax element. The video decoder 300 may use the values of these syntax elements to determine whether or not to use a filter on each of the grid elements and on the grid itself.
[0093] Instead of using a fixed grid size for signaling (for example, if the grid size is always fixed as the CTU size), the video encoder 200 may selectively choose different grid sizes for a given slice based on the RD cost. For example, for a given slice, the video encoder 200 may apply different grid sizes (for example, M × N sizes, where M and N can take values within the range of [4, 8, 16, ..., frame size]). The video encoder 200 may calculate the corresponding RD costs for both the filter On and filter Off cases. Based on the best RD cost, the video encoder 200 may select a grid size and the corresponding filter On / Off flag and signal the data representing the grid size and filter On / Off flag in the bitstream. The grid size may be predefined in both the video encoder 200 and the video decoder 300, for example, as shown in Table 1 below.
[0094] [Table 1]
[0095] The video encoder 200 may signal grid index values in the bitstream using unary codes, binary, abbreviated binary, or variable-length codes.
[0096] The video decoder 300 may determine the grid size for signaling based on the resolution of the input sequence. For example, a finer-grained grid (i.e., 8x8) may be used for lower-resolution sequences, while a coarser-grained grid (i.e., 128x128) may be used for higher-resolution sequences.
[0097] In some examples, the video encoder 200 may determine a separate filter On / Off flag for each color component. Thus, the lumens (Y), chroma (Cb), and chroma (Cr) each 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 only for the lumens 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 lumens component and a joint flag for the chromens component.
[0099] The video encoder 200 and video decoder 300 may apply separate CABAC contexts for signaling flags for distinct components (for example, Y, Cb, and Cr may have distinct contexts). The video encoder 200 and video decoder 300 may also use spatial / temporal adjacent block flag On / Off information to determine the context used for signaling flags for the current block. Adjacent blocks may be directly or within a certain number of blocks, above and / or to the left of the current block.
[0100] The strain measure used to calculate the RD cost for determining the On / Off flag may be SAD (absolute difference sum), SATD (absolute transform difference sum), or any other strain measure.
[0101] Figure 6 is a block diagram showing an exemplary video encoder 200 capable of performing the techniques of this disclosure. Figure 6 is provided for illustrative purposes and should not be considered a limitation of the techniques that are more broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video encoder 200 in the context of video coding standards such as the ITU-T H.265 / HEVC video coding standard and the VVC video coding standard under development. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to other video coding and decoding standards.
[0102] In the example in Figure 6, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a conversion processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse conversion 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, mode selection unit 202, residual generation unit 204, conversion processing unit 206, quantization unit 208, inverse quantization unit 210, an inverse conversion processing unit 212, a reconstruction unit 214, a filter unit 216, a DPB 218, and an 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, ASIC, or FPGA. Furthermore, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.
[0103] The video data memory 230 can store video data to be encoded by the components of the video encoder 200. The video encoder 200 can receive video data stored in the video data memory 230 from, for example, a video source 104 (Figure 1). The DPB 218 can act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and DPB 218 can be formed by any of various memory devices, such as dynamic random access memory (DRAM) including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and DPB 218 can be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with the other components of the video encoder 200, as shown in the figure, or it may be off-chip relative to those components.
[0104] In this disclosure, references to the video data memory 230 should not be interpreted as being limited to internal memory of the video encoder 200, or external memory of the video encoder 200, unless otherwise specifically described. Rather, references to the video data memory 230 should be understood as reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for the current block to be encoded). Memory 106 in Figure 1 may also provide temporary storage for outputs from various units of the video encoder 200.
[0105] The various units in Figure 6 are illustrated to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide a specific function and are preset for the operations they may perform. Programmable circuits refer to circuits that can be programmed to perform a variety of tasks and offer flexible functionality in the operations they may perform. For example, a programmable circuit may execute software or firmware that operates the programmable circuit in a manner defined by software or firmware instructions. Fixed-function circuits may execute software instructions (e.g., to receive or output parameters), but the type of operation performed by a fixed-function circuit is generally immutable. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0106] The video encoder 200 may include a programmable core formed from an arithmetic logic unit (ALU), an elementary function unit (EFU), digital circuits, analog circuits, and / or programmable circuits. In an example where the operation of the video encoder 200 is performed using software executed by the programmable circuits, memory 106 (Figure 1) may store instructions (e.g., object code) of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0107] The video data memory 230 is configured to store the received video data. The video encoder 200 can retrieve a picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0108] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra-prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. For example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, and the like.
[0109] The mode selection unit 202 generally coordinates multiple coding paths to test combinations of coding parameters and the resulting rate distortion values for such combinations. The coding parameters may include the division of the CTU to the CU, the prediction mode for the CU, the transformation type for the residual data of the CU, and the quantization parameters for the residual data of the CU. The mode selection unit 202 may ultimately select a combination of coding parameters that has a better rate distortion value than other tested combinations.
[0110] The video encoder 200 divides the picture retrieved from the video data memory 230 into a series of CTUs, and may encapsulate one or more CTUs within a slice. The mode selection unit 202 may divide the picture's CTUs according to a tree structure such as the HEVC QTBT structure or quadtree structure described above. As described above, the video encoder 200 may form one or more CUs from dividing the CTUs according to the tree structure. Such CUs are sometimes commonly referred to as "video blocks" or "blocks".
[0111] In general, the mode selection 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 the current block (e.g., the current CU, or in HEVC, the overlapping portion of PU and TU). For intra-prediction of the current block, the motion estimation unit 222 may perform a motion search to identify one or more exactly matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block, for example, according to the sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using sample-by-sample differences between the current block and the reference blocks under consideration. The motion estimation unit 222 can identify the reference block with 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 interpretation, the motion estimation unit 222 may provide a single motion vector, but in the case of bidirectional interpretation, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate predicted blocks. For example, the motion compensation unit 224 may use the motion vectors to extract data for the reference blocks. As another example, if the motion vectors have fractional sample accuracy, the motion compensation unit 224 may interpolate values for the predicted blocks according to one or more interpolation filters. Furthermore, in the case of bidirectional interpretation, the motion compensation unit 224 may extract data for the two reference blocks identified by each motion vector and synthesize the extracted data, for example, by sample-wise averaging or weighted averaging.
[0113] As another example, in the case of intra-prediction or intra-prediction coding, the intra-prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, in directional mode, the intra-prediction unit 226 may generally generate a prediction block by mathematically synthesizing the values of adjacent samples and populating these calculated values in a defined direction across the current block. As another example, in DC mode, the intra-prediction unit 226 may calculate the average of adjacent samples for the current block and generate a prediction block in which each sample of the prediction block should include this resulting average.
[0114] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw, uncoded version of the current block from the video data memory 230 and the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines the residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between sample values in the residual block to generate the residual block using residual difference 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 an example where the mode selection unit 202 divides a CU into PUs, each PU may be associated with a lumar prediction unit and a corresponding chroma prediction unit. The video encoder 200 and video decoder 300 may support PUs of various sizes. As shown above, the size of a CU may refer to the size of the lumar coding block of the CU, and the size of a PU may refer to the size of the lumar prediction unit of the PU. Assuming that the size of a particular CU is 2N × 2N, the video encoder 200 may support PU sizes of 2N × 2N or N × N for intra-prediction, and symmetric PU sizes of 2N × 2N, 2N × N, N × 2N, N × N, or similar for inter-prediction. The video encoder 200 and video decoder 300 may also support asymmetric divisions for PU sizes of 2N × nU, 2N × nD, nL × 2N, and nR × 2N for inter-prediction.
[0116] In cases where the mode selection unit 202 does not further subdivide the CU into PUs, each PU may be associated with a ruma coding block and a corresponding chroma coding block. As described above, the size of the CU may refer to the size of the ruma coding block within the CU. The video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0117] In some examples, such as intra-block copy mode coding, affine mode coding, and other video coding techniques like linear model (LM) mode coding, the mode selection unit 202 generates a predicted block for the current block being coded via the respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 does not need to generate a predicted block; instead, it may generate syntax elements indicating how to reconstruct the block based on the selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the entropy coding unit 220.
[0118] As described above, the residual generation unit 204 receives video data for the current block and the corresponding predicted block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the predicted block and the current block.
[0119] The transformation processing unit 206 applies one or more transformations to the residual block to generate a block of transformation coefficients (referred to herein as the “transformation coefficient block”). The transformation processing unit 206 may apply various transformations to the residual block to form the transformation coefficient block. For example, the transformation processing unit 206 may apply a discrete cosine transform (DCT), a direction transform, a Carunenlobe transform (KLT), or a conceptually similar transformation to the residual block. In some examples, the transformation processing unit 206 may perform multiple transformations on the residual block, such as a rotation transform, a linear transformation, and a quadratic transformation. In some examples, the transformation processing unit 206 does not apply any transformations to the residual block.
[0120] The quantization unit 208 can quantize the transformation coefficients in the transformation coefficient block to produce a quantized transformation coefficient block. The quantization unit 208 can quantize the transformation coefficients of the transformation coefficient block according to the quantization parameter (QP) value associated with the current block. The video encoder 200 can adjust the degree of quantization applied to the transformation coefficient block associated with the current block by adjusting the QP value associated with the CU (for example, via the mode selection unit 202). Quantization may result in a loss of information, and therefore the quantized transformation coefficients may have lower precision than the original transformation coefficients generated by the transformation processing unit 206.
[0121] The inverse quantization unit 210 and the inverse transformation processing unit 212 can reconstruct the residual block from the transformed coefficient block by applying inverse quantization and inverse transformation, respectively. The reconstruction unit 214 can generate a reconstructed block corresponding to the current block (which may be with some distortion) based on the reconstructed residual block and the predicted block generated by the mode selection unit 202. For example, the reconstruction unit 214 can generate a reconstructed block by adding a sample from the reconstructed residual block to a corresponding sample from the predicted block generated by the mode selection unit 202.
[0122] The filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. The operations of the filter unit 216 may be skipped in some examples. The filter unit 216 may be configured to perform various techniques of the Disclosure, for example, to determine one or more of the neural network models (NN models) 232 that should be used to filter the decoded picture and / or to determine whether to apply NN model filtering. The mode selection unit 202 may perform an RD calculation using both the filtered and unfiltered picture to determine the RD cost for determining whether to perform NN model filtering, and then provide the entropy coding unit 220 with data representing, for example, whether to perform NN model filtering, one or more of the NN models 232 that should be used for the current picture or a portion of it, etc.
[0123] Specifically, according to the techniques of the present disclosure, the filter unit 216 may determine that NN model 232 includes a set of available NN models that can be applied to a portion of the decoded picture. In some examples, the filter unit 216 may determine that only a subset of NN model 232 is available for a portion of the decoded picture (where the subset contains fewer NN models than the complete set of NN model 232). In such examples, the filter unit 216 may provide the entropy coding unit 220 with data defining the subset of NN model 232 available for a portion of the decoded picture. The entropy coding unit 220 may signal the data indicating the subset, for example, in an SPS, PPS, APS, slice header, picture header, or other high-level syntax elements.
[0124] In some examples, the 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, the filter unit 216 may determine the quantization parameters for the portion of the decoded picture. Alternatively, the mode selection unit 202 may perform a rate-distortion optimization (RDO) process to determine which of the NN models 232 yields the best RDO performance and select one of the NN models 232 that yields the best RDO performance. The mode selection unit 202 may then provide a value representing an index to the set (or subset) of available NN models 232 corresponding to the determined NN model that yields the best RDO performance.
[0125] In some examples, the mode selection unit 202 may further determine whether to enable or disable the use of the NN model 232 for, for example, a specific region of a decoded picture, the entire decoded picture, or a sequence of decoded pictures. The mode selection unit 202 may provide the entropy coding unit 220 with data indicating whether the use of the NN model 232 is enabled or disabled. The entropy coding unit 220 may further encode the data indicating whether the use of the NN model 232 is enabled or disabled at, for example, one or more of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0126] In some examples, a portion of the decoded video data may be elements of a grid. That is, the video encoder 200 may divide the decoded picture into a grid of elements, for example, elements in the rows and columns of the decoded picture formed by the grid. The entropy coding unit 220 may further encode data representing the grid, for example, the values of syntax elements representing the number of rows and columns and / or the number of elements in the grid.
[0127] The video encoder 200 stores the reconstructed (and possibly filtered) blocks in the DPB 218. For example, in cases where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In cases where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered and reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed from the reconstructed (and possibly filtered) blocks from the DPB 218 to interpret blocks of the picture to be encoded later. In addition, the intraprediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intrapret other blocks in the current picture.
[0128] In general, the entropy coding unit 220 can entropy code syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 can entropy code quantized transformation coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 can entropy code prediction syntax elements from the mode selection unit 202 (e.g., motion information for inter-prediction or intra-mode information for intra-prediction). The entropy coding unit 220 can perform one or more entropy coding operations on syntax elements, which are another example of video data, to generate entropy coded data. For example, the entropy coding unit 220 may perform context-adaptive variable-length coding (CAVLC) operation, CABAC operation, variable-to-variable (V2V) length coding operation, syntax-based context-adaptive binary arithmetic coding (SBAC) operation, probability interval partitioned entropy (PIPE) coding operation, exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode in which syntax elements are not entropically coded.
[0129] The video encoder 200 may output a bitstream containing entropy-encoded syntax elements required to reconstruct a slice or block of a picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0130] The behavior described above is described in relation to blocks. Such descriptions should be understood as behavior for rumacoding blocks and / or chromacoding blocks. As described above, in some examples, the rumacoding block and chromacoding block are the ruma and chroma components of the CU. In some examples, the rumacoding block and chromacoding block are the ruma and chroma components of the PU.
[0131] In some cases, actions performed for a rumacoding block do not need to be repeated for a chromacoding block. For example, actions to identify the motion vector (MV) and reference picture for a rumacoding block do not need to be repeated to identify the MV and reference picture for a chromacoding block. Rather, the MV for the rumacoding block may be scaled to determine the MV for the chromacoding block, and the reference picture may be the same. In another example, the intra-prediction process may be the same for both rumacoding and chromacoding blocks.
[0132] Thus, the video encoder 200 in Figure 6 represents an example of a device for filtering decoded video data, comprising a memory configured to store video data, and one or more processors implemented in the circuit, configured to decode pictures of video data and to code values of syntax elements representing neural network models to be used to filter portions of the decoded pictures, wherein the values represent an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and to filter portions of the decoded pictures using the neural network model corresponding to the index.
[0133] Figure 7 is a block diagram showing an exemplary video decoder 300 capable of performing the techniques of this disclosure. Figure 7 is provided for illustrative purposes and is not intended to limit the techniques that are broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes a video decoder 300 using 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 in 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 transformation 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, entropy decoding unit 302, prediction processing unit 304, inverse quantization unit 306, inverse transformation processing unit 308, reconstruction unit 310, filter unit 312, and 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 to perform these and other functions.
[0135] The prediction processing unit 304 includes a motion compensation unit 316 and an intra-prediction unit 318. The prediction processing unit 304 may include additional units for performing predictions according to other prediction modes. For example, the prediction processing unit 304 may include a pallet unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, and the like. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0136] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by the components of the video decoder 300. The video data stored in the CPB memory 320 may be retrieved, for example, from a computer-readable medium 110 (Figure 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of the encoded picture, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 generally stores the decoded picture, which the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures from the encoded video bitstream. The 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 DPB 314 may be provided by the same memory device or by separate memory devices. In various examples, the CPB memory 320 may be on-chip together with the other components of the video decoder 300, or it may be off-chip relative to those components.
[0137] As an addition or alternative, in some examples, the video decoder 300 may retrieve coded video data from memory 120 (Figure 1). That is, memory 120 may store data as described above with respect to the CPB memory 320. Similarly, memory 120 may store instructions to be executed by the video decoder 300 when some or all of the functions of the video decoder 300 are implemented in software to be executed by the processing circuit of the video decoder 300.
[0138] The various units shown in Figure 7 are illustrated to help understand the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Similar to Figure 6, fixed-function circuits refer to circuits that provide a specific function and are preset for the operations they may perform. Programmable circuits refer to circuits that can be programmed to perform various tasks and offer flexible functionality in the operations they may perform. For example, a programmable circuit may execute software or firmware that operates the programmable circuit in a manner defined by software or firmware instructions. Fixed-function circuits may execute software instructions (e.g., to receive or output parameters), but the type of operation performed by a fixed-function circuit is generally immutable. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0139] The video decoder 300 may include a programmable core formed from an ALU, EFU, digital circuitry, analog circuitry, and / or programmable circuitry. In an example where the operation of the video decoder 300 is performed by software running on the programmable circuitry, on-chip memory or off-chip memory may store software instructions (e.g., object code) that the video decoder 300 receives and executes.
[0140] The entropy decoding unit 302 can receive video data encoded from the CPB and reconstruct the syntax elements by entropy decoding the video data. The prediction processing unit 304, the inverse quantization unit 306, the inverse transformation processing unit 308, the reconstruction unit 310, and the filter unit 312 can generate the decoded video data based on the syntax elements extracted from the bitstream.
[0141] Generally, the video decoder 300 reconstructs the picture block by block. The video decoder 300 can perform the reconstruction operation individually for each block (where the block currently being reconstructed, i.e., decoded, is sometimes called the "current block").
[0142] The entropy decoding unit 302 can entropy decode the quantized transformation coefficients of the quantized transformation coefficient block, as well as syntax elements that define transformation information such as quantization parameters (QP) and / or transformation mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transformation coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transformation coefficients. The inverse quantization unit 306 may thereby form a transformation coefficient block containing the transformation coefficients.
[0143] After the inverse quantization unit 306 has formed a transformation coefficient block, the inverse transformation processing unit 308 may apply one or more inverse transformations to the transformation coefficient block to generate a residual block associated with the current block. For example, the inverse transformation processing unit 308 may apply an inverse DCT, an inverse integer transformation, an inverse Carunenlebe transform (KLT), an inverse rotation transform, an inverse direction transform, or another inverse transformation to the transformation coefficient block.
[0144] Furthermore, the prediction processing unit 304 generates prediction blocks according to the prediction information syntax elements entropy-decoded by the entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is interpredicted, the motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax elements may indicate a reference picture in the DPB 314 from which the reference block should be extracted, 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. The motion compensation unit 316 can generally perform the interprediction process in substantially the same manner as described with respect to the motion compensation unit 224 (Figure 6).
[0145] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a predicted block according to the intra-prediction mode indicated by the prediction information syntax element. Again, the intra-prediction unit 318 may generally perform the intra-prediction process in substantially the same manner as described with respect to the intra-prediction unit 226 (Figure 6). The intra-prediction unit 318 may retrieve adjacent sample data for the current block from the DPB 314.
[0146] The reconstruction unit 310 may reconstruct the current block using the predicted block and the residual block. For example, the reconstruction unit 310 may reconstruct the current block by adding a sample from the residual block to the corresponding sample from the predicted block.
[0147] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 are not necessarily performed in all examples. For example, the video decoder 300 may explicitly or implicitly decide whether to perform neural network model filtering using the NN model 322, for example, one or all of the various techniques described herein. Furthermore, the video decoder 300 may explicitly or implicitly decide one or more of the NN models 322 and / or grid size for the current picture to be decoded and filtered. Thus, when filtering is switched on, the filter unit 312 may use one or more of the NN models 322 to filter a portion of the current decoded picture.
[0148] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU / TU. The operations of the filter unit 312 may be skipped in some examples. The filter unit 312 may be configured to perform various techniques of the Disclosure, for example, to determine one or more of the neural network models (NN models) 232 that should be used to filter the decoded picture and / or to determine whether to apply NN model filtering. The mode selection unit 202 may perform an RD calculation using both the filtered and unfiltered pictures to determine the RD cost for determining whether to perform NN model filtering, and then provide the entropy coding unit 220 with data representing, for example, whether to perform NN model filtering, one or more of the NN models 322 that should be used for the current picture or a portion of it, etc.
[0149] Specifically, according to the techniques of the present disclosure, filter unit 312 may determine that NN model 322 contains a set of available NN models that can be applied to a portion of the decoded picture. In some examples, filter unit 312 may determine that only a subset of NN model 322 is available for a portion of the decoded picture (if the subset contains fewer NN models than the complete set of NN model 322). In such examples, filter unit 312 may receive decoded data from entropy decoding unit 302 that defines the subset of NN model 322 available for a portion of the decoded picture. Entropy decoding unit 302 may decode the data indicating the subset in, for example, an SPS, PPS, APS, slice header, picture header, or other high-level syntax elements.
[0150] In some examples, the filter unit 312 may select one of the NN models 322 for a portion of the decoded picture. To select one of the NN models 322, the filter unit 312 may determine the quantization parameters (QP) for the portion of the decoded picture and determine one of the NN models 322 corresponding to the QP. Alternatively, the filter unit 312 may receive a value representing an index to the set (or subset) of available NN models 322 corresponding to the determined NN model to be used.
[0151] In some examples, the filter unit 312 may further determine whether to enable or disable the use of the NN model 322 for, for example, a specific region of the decoded picture, the entire decoded picture, or a sequence of the decoded picture. The filter unit 312 may receive data from the entropy decoding unit 302 indicating whether the use of the NN model 322 is enabled or disabled. The entropy decoding unit 302 may decode the data indicating whether the use of the NN model 322 is enabled or disabled at one or more of the following levels, for example, the video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0152] In some examples, a portion of the decoded video data may be elements of a grid. That is, the video decoder 300 may divide the decoded picture into a grid of elements, for example, elements in the rows and columns of the decoded picture formed by the grid. The entropy decoding unit 302 may decode data representing the grid, for example, the values of syntax elements representing the number of rows and columns and / or the number of elements in the grid.
[0153] The video decoder 300 may store the reconstructed blocks in the DPB 314. For example, in an example where the filter unit 312 does not operate, the reconstruction unit 310 may store the reconstructed blocks in the DPB 314. In an example where the filter unit 312 operates, the filter unit 312 may store the refined, filtered, and reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide the prediction processing unit 304 with reference information such as the current picture for intra-prediction and samples of previously decoded pictures for subsequent motion compensation. Furthermore, 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 in Figure 1.
[0154] Thus, the video decoder 300 in Figure 7 represents an example of a device for filtering decoded video data, comprising a memory configured to store video data, and one or more processors implemented in the circuit, configured to decode pictures of video data and to code values of syntax elements representing neural network models to be used to filter portions of the decoded pictures, wherein the values represent an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and to filter portions of the decoded pictures using the neural network model corresponding to the index.
[0155] Figure 8 is a flowchart illustrating an exemplary method for encoding the current block using the technique of this disclosure. The current block may include the current CU. While the video encoder 200 (Figures 1 and 3) is described, it should be understood that other devices may be configured to perform a similar method to that shown in Figure 8.
[0156] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predicted block for the current block. The video encoder 200 may then compute the residual block for the current block (352). To compute the residual block, the video encoder 200 may compute the difference between the original uncoded block and the predicted block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). The video encoder 200 may then scan the quantized transformed coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy encoded data of the block (360).
[0157] The video encoder 200 may also encode the current block and then decode the current block, using the decoded version of the current block as reference data for data to be coded later (for example, in inter-prediction mode or intra-prediction mode). Thus, the video encoder 200 may inversely quantize and inversely transform the coefficients to reconstruct the residual block (362). The video encoder 200 may combine the residual block with the prediction block to form a decoded block (364).
[0158] According to the techniques of the present disclosure, after encoding and decoding all blocks of a picture in the manner described above, the video encoder 200 may determine a neural network (NN) model for the decoded portion of the picture, including the current block, to be applied to that portion of the decoded picture (366). In one example, the video encoder 200 may determine quantization parameters (QP) for the portion of the decoded picture and then determine an NN model corresponding to the QP. In another example, the video encoder 200 may perform a rate-distortion optimization (RDO) procedure to select an NN model from a set of available NN models, for example. That is, the video encoder 200 may apply various NN models to the portion of the decoded picture, then calculate the RDO value for each of the various NN models, and select the NN model for the portion of the decoded picture that yields the best tested RDO value.
[0159] Next, the video encoder 200 may encode a value representing an NN model (368). When the video encoder 200 selects an NN model based on QP, the video encoder 200 may simply encode QP to represent the NN model. That is, an encoded QP for a block (for example, as part of 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 (or subset of a set) of available NN models, the video encoder 200 may encode a value of a syntax element representing an index to the set (or subset), where the index corresponds to the position of the NN model in the set or subset. The syntax element may form part of a video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in a GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures. Next, the video encoder 200 can apply the determined NN model to a portion of the decoded picture (369), filter the portion of the decoded picture, and store the decoded picture in the DPB 218.
[0160] In some cases, instead of determining a single NN model, the video encoder 200 may determine multiple NN models for a portion of the decoded picture. The video encoder 200 may apply each of the NN models separately to the portion of the decoded picture to form different filtering results. The video encoder 200 may then combine each of the filtering results to form the final filtered portion of the decoded picture.
[0161] A portion of the decoded picture may correspond to elements of a grid. That is, the video encoder 200 may divide the decoded picture into grids having several elements (for example, areas formed by a certain number of rows and columns). The video encoder 200 may signal data representing the grid, such as the number of rows and columns or the number of elements in the grid, at at least one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level. In some examples, the video encoder 200 may signal values of syntax elements that represent an index to a set of possible grid sizes.
[0162] Thus, the method in Figure 8 represents an example of a method for filtering decoded video data, comprising the steps of: decoding a picture of video data; coding a value for 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 to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and filtering a portion of the decoded picture using the neural network model corresponding to the index.
[0163] Figure 9 is a flowchart illustrating an exemplary method for decoding the current block using the technique of this disclosure. The current block may include the current CU. While the video decoder 300 (Figures 1 and 4) is described, it should be understood that other devices may be configured to perform a similar method to that shown in Figure 9.
[0164] The video decoder 300 may receive entropy-encoded data for the current block, such as entropy-encoded prediction information and entropy-encoded data of the coefficients of the residual block corresponding to the current block (370). The video decoder 300 may entropy-decode the entropy-encoded data to determine the prediction information for the current block, to determine a neural network (NN) model for the portion of the picture containing the current block, and to reconstruct the coefficients of the residual block (372). The video decoder 300 may predict the current block, for example, using an intra-prediction mode or inter-prediction mode as indicated by the prediction information for the current block, in order to compute a prediction block for the current block (374). The video decoder 300 may then backscan the reconstructed coefficients to create a block of quantized transformation coefficients (376). The video decoder 300 may then inversely quantize and inversely transform the quantized transformation coefficients to generate a residual block (378). The video decoder 300 can finally decode the current block by combining the predicted block and the residual block (380).
[0165] The video decoder 300 may also determine from the decoded data which NN model should be applied to the portion of the decoded picture that contains the current block (382). For example, the video decoder 300 may decode quantization parameters (QP) for the portion of the decoded picture (for example, for one or more blocks in the portion) and the QP may determine the corresponding NN model. As another example, the video decoder 300 may decode the value of a syntax element representing an index to a set (or subset of) available NN models and the index may determine the corresponding NN model from the set or subset of available NN models. 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 where the filter is an in-loop filter, the video decoder 300 stores the decoded picture containing the filtered portion in the decoded picture buffer 314.
[0166] Thus, the method in Figure 9 represents an example of a method for filtering decoded video data, comprising the steps of: decoding a picture of video data; coding a value for 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 to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and filtering a portion of the decoded picture using the neural network model corresponding to the index.
[0167] The following clauses summarize the 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 to filter a portion of the decoded picture of the video data, and filtering a portion of the decoded picture using one or more neural network models.
[0169] Clause 2: The method of Clause 1, wherein the step of determining one or more neural network models includes at most the step of determining a single neural network model.
[0170] Clause 3: The method of Clause 1, wherein the step of determining one or more neural network models includes the step of determining multiple neural network models.
[0171] Clause 4: The method of Clause 3, wherein the filtering step includes the steps of applying each of several neural network models separately to a portion to form different results, and combining each of the results to form a final filtered portion.
[0172] Clause 5: Any method of Clauses 1-4, wherein the determination step includes a step of determining using an index signaled in the bitstream containing the video data.
[0173] Clause 6: Any method of Clauses 1-5, wherein a portion of the grid is an element.
[0174] Clause 7: Any method of Clauses 1-6, further comprising the step of determining the number of elements in the grid.
[0175] Clause 8: The method of Clause 7, wherein the step of determining the number of elements in a grid includes the step of decoding at least one syntax element from among the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0176] Clause 9: Any method of Clauses 7 and 8, wherein the step of determining the number of elements in the grid includes the step of decoding the value of a syntax element that represents an index to a set of possible grid sizes.
[0177] Clause 10: Any method of Clauses 1-9, further comprising the step of deciding to apply one or more neural network models before determining one or more neural network models.
[0178] Clause 11: The method of Clause 10, wherein the step of deciding to apply one or more neural network models includes the step of 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 the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0180] Clause 13: Any method of Clauses 1 to 12, wherein a portion includes a portion of the color components of the decoded picture, and the color components include one of the luminance component, the blue chrominance component, or the red chrominance component.
[0181] Clause 14: The method of Clause 13, further comprising the step of decoding a syntax element that collectively represents filtering using one or more neural network models for each of the color components of the decoded picture.
[0182] Clause 15: Any method of Clauses 1 to 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 determination step includes a step determined in accordance with rate strain calculations.
[0184] Clause 17: A device for decoding video data, comprising one or more means for performing any of the methods described in Clauses 1 to 16.
[0185] Clause 18: A device according to Clause 17, wherein one or more means comprises one or more processors implemented in a circuit.
[0186] Clause 19: The device of Clause 17, further comprising a display configured to display decoded video data.
[0187] Clause 20: A device under Clause 17 that comprises one or more of the following: 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 memory configured to store video data.
[0189] Clause 22: A computer-readable storage medium that stores instructions, when executed, causing a processor to perform any of the methods described in Clauses 1 through 16.
[0190] Clause 23: A method for filtering decoded video data, comprising the steps of: decoding a picture of 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, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and filtering a 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 a set of predefined neural network models, wherein the neural network model is one of the subsets of the set of predefined neural network models, and the subset is smaller than the set of predefined neural network models.
[0192] Clause 25: The method of Clause 23, wherein the value of a syntax element representing a neural network model is a value representing multiple 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 values to a 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 the step of coding the value of a syntax element includes the step of coding the value of the syntax element at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0195] Clause 28: The method of Clause 23, further comprising the step of dividing the picture according to a grid, wherein a portion of the picture comprises elements of the grid.
[0196] Clause 29: The method of Clause 28, further comprising the step of determining the number of elements in the grid.
[0197] Clause 30: The method of Clause 29, wherein the step of determining the number of elements in a grid includes the step of decoding at least one syntax element from among the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0198] Clause 31: The method of Clause 29, wherein the step of determining the number of elements in a grid includes the step of decoding the value of a syntax element that represents an index to a set of possible grid sizes.
[0199] Clause 32: The method of Clause 23, further comprising the step of deciding to apply a neural network model before determining the neural network model.
[0200] Clause 33: The method of Clause 32, wherein the step of deciding to apply a neural network model includes the step of decoding the 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 the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0202] Clause 35: The method of Clause 23, wherein a portion of the decoded picture includes a portion of the color components of the decoded picture, the color components including one of the luminance component, the blue chrominance component, or the red chrominance component.
[0203] Clause 36: The method of Clause 35, further comprising the step of coding a syntax element that collectively represents a filtering process using a 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 a portion of the picture.
[0205] Clause 38: The method of Clause 23, further comprising the step of encoding a picture before decoding the picture, wherein the step of coding the values of syntax elements includes the step of encoding the values of syntax elements.
[0206] Clause 39: The method of Clause 38, further comprising the step of determining a neural network model according to rate-distortion calculations.
[0207] Clause 40: A device for filtering decoded video data, comprising: a memory configured to store video data; and one or more processors implemented in a circuit and configured to decode a picture of video data, and to 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 to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and to filter a portion of the decoded picture using the neural network model corresponding to the index.
[0208] Clause 41: A device of Clause 40, wherein one or more processors are further configured to code values representing a subset of a predefined set of neural network models, and the neural network model is one of the subsets of the predefined set of neural network models, and the subset is smaller than the set of predefined neural network models.
[0209] Clause 42: The device of Clause 40, wherein the values of the syntax elements representing neural network models are values representing multiple neural network models, and one or more processors are configured to filter a portion of a decoded picture by separately applying each of the multiple neural network models represented by the values to a portion to form different results, and by combining each of the results to form a final filtered portion.
[0210] Clause 43: A device of Clause 40, in which one or more processors are configured to code the values of syntax elements at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0211] Clause 44: A device of Clause 40 in which one or more processors are configured to divide a picture according to a grid, and a portion of the processors comprises elements of the grid of the picture.
[0212] Clause 45: A device of Clause 44, wherein one or more processors are further configured to decode the value of a syntax element representing the number of elements in a grid, and the syntax element is included in at least one of the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0213] Clause 46: The device of Clause 40, wherein one or more processors are configured to decide to apply a neural network model before determining the neural network model, and in order to decide to apply the neural network model, one or more processors are configured to decode the values of syntax elements indicating that the neural network model should be applied.
[0214] Clause 47: A device under Clause 40 in which a portion of the decoded picture includes a portion of the color components of the decoded picture, the color components including one of the luminance component, the blue chrominance component, or the red chrominance component.
[0215] Clause 48: A device of Clause 40 in which the value of a syntax element includes a quantization parameter (QP) for a portion of a picture.
[0216] Clause 49: The device of Clause 40, wherein one or more processors are further configured to encode a picture before decoding the picture, and one or more processors are configured to encode the values of syntax elements in order to encode the values of syntax elements.
[0217] Clause 50: The device of Clause 49, further configured with one or more processors to determine a neural network model according to rate-distortion calculations.
[0218] Clause 51: The device of Clause 40, further comprising a display configured to display decoded video data.
[0219] Clause 52: A device under Clause 40 comprising one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0220] Clause 53: A computer-readable storage medium storing instructions, wherein, when the instructions are executed, the instructions cause a processor to code a value of a syntax element representing a neural network model to be used to decode a picture of video data and to filter a portion of the decoded picture, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and to filter a portion of the decoded picture using the neural network model corresponding to the index.
[0221] Clause 54: A computer-readable storage medium of Clause 53, further comprising instructions causing a processor to code values representing a subset of a set of predefined neural network models, wherein the neural network model is one of the subsets of the set of predefined neural network models, and the subset is smaller than the set of predefined neural network models.
[0222] Clause 55: A computer-readable storage medium of Clause 53, wherein the values of syntax elements representing neural network models are values representing multiple neural network models, and the instructions for the processor to filter a portion of a decoded picture include instructions for the processor to apply each of the multiple neural network models represented by the values separately to a portion to form different results, and to combine each of the results to form a final filtered portion.
[0223] Clause 56: A computer-readable storage medium of Clause 53, which includes instructions causing a processor to code the values of syntax elements at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in a GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0224] Clause 57: A computer-readable storage medium of Clause 53, further comprising instructions causing a processor to divide a picture according to a grid, the portion of which comprises elements of the grid of the picture.
[0225] Clause 58: A computer-readable storage medium of Clause 57, further comprising instructions causing a processor to decode a value of a syntax element representing the number of elements in a grid, wherein the syntax element is included in at least one of the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in a GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0226] Clause 59: A computer-readable storage medium of Clause 53, further comprising instructions causing a processor to decide to apply a neural network model before determining the neural network model, wherein the instructions causing the processor to decide to apply the neural network model include instructions causing the processor to decode the value of a syntax element indicating that the neural network model should be applied.
[0227] Clause 60: A computer-readable storage medium under Clause 53, wherein a portion of the decoded picture contains a portion of the color components of the decoded picture, the color components containing one of the following: a luminance component, a blue-hue chrominance component, or a red-hue chrominance component.
[0228] Clause 61: A computer-readable storage medium of Clause 53 in which the values of syntax elements include quantization parameters (QP) for a portion of a picture.
[0229] Clause 62: A computer-readable storage medium of Clause 53, further comprising instructions causing the processor to encode a picture before decoding the picture, wherein instructions causing the processor to encode the values of syntax elements comprise instructions causing the processor to encode the values of syntax elements.
[0230] Clause 63: A computer-readable storage medium of Clause 62, further comprising instructions causing a processor to determine a neural network model according to rate-distortion calculations.
[0231] Clause 64: A device for filtering decoded video data, comprising means for decoding a picture of 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, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and means for filtering a portion of the decoded picture using the neural network model corresponding to the index.
[0232] Clause 65: A method for filtering decoded video data, comprising the steps of: decoding a picture of 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, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and filtering a 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 a set of predefined neural network models, wherein the neural network model is one of the subsets of the set of predefined neural network models, and the subset is smaller than the set of predefined neural network models.
[0234] Clause 67: Any method of Clauses 65 and 66, wherein the value of a syntax element representing a neural network model is a value representing multiple 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 values to a portion to form different results, and combining each of the results to form a final filtered portion.
[0236] Clause 69: Any method of Clauses 65-68, wherein the step of coding the value of a syntax element includes the step of coding the value of the syntax element at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0237] Clause 70: Any method of Clauses 65-69, further comprising the step of dividing the picture according to a grid, wherein a portion of the picture is an element of the grid.
[0238] Clause 71: The method of Clause 70, further comprising the step of determining the number of elements in the grid.
[0239] Clause 72: The method of Clause 71, wherein the step of determining the number of elements in a grid includes the step of decoding at least one syntax element from among video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0240] Clause 73: The method of Clause 71, wherein the step of determining the number of elements in a grid includes the step of decoding the value of a syntax element that represents an index to a set of possible grid sizes.
[0241] Clause 74: Any method of Clauses 65-73, further comprising the step of deciding to apply a neural network model before determining the neural network model.
[0242] Clause 75: The method of Clause 74, wherein the step of deciding to apply a neural network model includes the step of decoding the 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 the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0244] Clause 77: Any method of Clauses 65-76, wherein a portion of the decoded picture includes a portion of the color components of the decoded picture, the color components including one of the luminance component, the blue chrominance component, or the red chrominance component.
[0245] Clause 78: The method of Clause 77, further comprising the step of coding a syntax element that collectively represents a filtering process using a neural network model for each of the color components of the decoded picture.
[0246] Clause 79: The value of the syntax element includes a quantization parameter (QP) for a portion of the picture, in any way according to Clauses 65-78.
[0247] Clause 80: The method of Clause 65, further comprising the step of encoding a picture before decoding the picture, wherein the step of coding the values of syntax elements includes the step of encoding the values of syntax elements.
[0248] Clause 81: The method of Clause 80, further comprising the step of determining a neural network model according to rate-distortion calculations.
[0249] Clause 82: A device for filtering decoded video data, comprising: a memory configured to store video data; and one or more processors implemented in a circuit and configured to decode a picture of video data, and to 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 to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and to filter a portion of the decoded picture using the neural network model corresponding to the index.
[0250] Clause 83: A device of Clause 82, wherein one or more processors are further configured to code values representing a subset of a predefined set of neural network models, and the neural network model is one of the subsets of the predefined set of neural network models, and the subset is smaller than the set of predefined neural network models.
[0251] Clause 84: A device according to either Clause 82 or 83, wherein the values of a syntax element representing a neural network model are values representing multiple neural network models, and one or more processors are configured to filter a portion of a decoded picture by separately applying each of the multiple neural network models represented by the values to a portion to form different results, and by combining each of the results to form a final filtered portion.
[0252] Clause 85: Any device according to Clauses 82-84, in which one or more processors are configured to code the values of syntax elements at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0253] Clause 86: Any device according to Clauses 82-85, in which one or more processors are configured to divide a picture according to a grid, and a portion of the processors include elements of the grid of the picture.
[0254] Clause 87: A device of Clause 86, wherein one or more processors are further configured to decode the value of a syntax element representing the number of elements in a grid, and the syntax element is included in at least one of the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in the GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0255] Clause 88: A device according to any of Clauses 82-87, wherein one or more processors are configured to decide to apply a neural network model before determining the neural network model, and in order to decide to apply the neural network model, one or more processors are configured to decode the values of syntax elements indicating that the neural network model should be applied.
[0256] Clause 89: Any device under Clauses 82-88 in which a portion of the decoded picture contains a portion of the color components of the decoded picture, and the color components include one of the following: a luminance component, a blue chrominance component, or a red chrominance component.
[0257] Clause 90: A device according to any of Clauses 82-89, in which the value of the syntax element includes a quantization parameter (QP) for a portion of the picture.
[0258] Clause 91: The device of Clause 82, wherein one or more processors are further configured to encode a picture before decoding the picture, and one or more processors are configured to encode the values of syntax elements in order to encode the values of syntax elements.
[0259] Clause 92: The device of Clause 91, further configured with one or more processors to determine a neural network model according to rate-distortion calculations.
[0260] Clause 93: Any device of Clauses 82-92 further comprising a display configured to display decoded video data.
[0261] Clause 94: A device that includes one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box, as described in any of Clauses 82-93.
[0262] Clause 95: A computer-readable storage medium storing instructions, wherein, when executed, the instructions cause a processor to code a value of a syntax element representing a neural network model to be used to decode a picture of video data and to filter a portion of the decoded picture, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models, and to filter a portion of the decoded picture using the neural network model corresponding to the index.
[0263] Clause 96: A computer-readable storage medium of Clause 95, further comprising instructions causing a processor to code values representing a subset of a set of predefined neural network models, wherein the neural network model is one of the subsets of the set of predefined neural network models, and the subset is smaller than the set of predefined neural network models.
[0264] Clause 97: A computer-readable storage medium according to either Clause 95 or 96, wherein the values of syntax elements representing neural network models are values representing multiple neural network models, and the instructions causing the processor to filter a portion of a decoded picture include instructions causing the processor to apply each of the multiple neural network models represented by the values separately to a portion to form different results, and to combine each of the results to form a final filtered portion.
[0265] Clause 98: A computer-readable storage medium of any of Clauses 95-97, wherein instructions causing a processor to code the values of syntax elements include instructions causing a processor to code the values of syntax elements at one of the following levels: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in a GOP, picture level, slice level, coding tree unit (CTU) level, or grid level for a grid of pictures.
[0266] Clause 99: A computer-readable storage medium according to any of Clauses 95-98, further comprising instructions causing a processor to divide a picture according to a grid, the portion of which comprises elements of the grid of the picture.
[0267] Clause 100: A computer-readable storage medium of Clause 99, further comprising instructions causing a processor to decode a value of a syntax element representing the number of elements in a grid, wherein the syntax element is included in at least one of the following: video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), picture header, slice header, adaptive parameter set (APS), intra-period level, picture group (GOP) level, time layer level in a GOP, picture level, slice level, coding tree unit (CTU) level, or grid size level.
[0268] Clause 101: A computer-readable storage medium of any of Clauses 95-100, further including instructions causing a processor to decide to apply a neural network model before determining the neural network model, wherein the instructions causing the processor to decide to apply the neural network model include instructions causing the processor to decode the value of a syntax element indicating that the neural network model should be applied.
[0269] Clause 102: A computer-readable storage medium of any of Clauses 95 to 101, wherein a portion of the decoded picture contains a portion of the color components of the decoded picture, the color components containing one of the luminance component, the blue chrominance component, or the red chrominance component.
[0270] Clause 103: A computer-readable storage medium of any of Clauses 95-102 in which the values of syntax elements include quantization parameters (QP) for a portion of a picture.
[0271] Clause 104: A computer-readable storage medium of any of Clauses 95-103, further including instructions that cause the processor to encode a picture before decoding the picture, and instructions that cause the processor to encode the values of syntax elements, which include instructions that cause the processor to encode the values of syntax elements.
[0272] Clause 105: A computer-readable storage medium of Clause 104, further comprising instructions causing a processor to determine a neural network model according to rate-distortion calculations.
[0273] Clause 106: A device for filtering decoded video data, comprising: means for decoding a picture of 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, wherein the value represents an index to a predefined set of neural network models, and the index corresponds to a neural network model in the predefined set of neural network models; and means for filtering a portion of the decoded picture using the neural network model corresponding to the index.
[0274] It should be noted that, depending on the example, some of the actions or events of any of the techniques described herein may be performed in different sequences, and may be added, merged, or excluded entirely (for example, not all actions or events described may be necessary for the practice of the technique). Furthermore, in some examples, the actions or events may be performed not sequentially, but concurrently, for example, through multithreading, interrupt handling, or multiple processors.
[0275] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium and executed by a hardware-based processing unit. The computer-readable medium may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including any medium that facilitates the transfer of computer programs from one location to another, for example, according to a communication protocol. Thus, the computer-readable medium may generally correspond to (1) non-transient tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes and / or data structures for implementing the techniques described herein. A computer program product may include computer-readable media.
[0276] As an example, and not an limitation, such computer-readable storage media may include 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 can be accessed by a computer. Any connection is also appropriately referred to as computer-readable media. 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, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but instead refer to non-temporary tangible storage media. The terms "disk" and "disc" as used herein include compact discs (CDs), laser discs, optical discs, digital multipurpose discs (DVDs), floppy disks, and Blu-ray discs. A disk typically reproduces data magnetically, while a disc reproduces data optically using a laser. Any combination of the above should also be included within the scope of computer-readable media.
[0277] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms “processor” and “processing circuit” as used herein may refer to any of the above-described structures or any other structure suitable for implementing the techniques described herein. In addition, in some embodiments, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a composite codec. Furthermore, the techniques may be fully implemented in one or more circuits or logic elements.
[0278] The techniques of this disclosure can be implemented in a wide variety of devices or apparatus, including wireless handsets, integrated circuits (ICs), or sets of ICs (e.g., chipsets). While various components, modules, or units have been described in this disclosure to highlight the functional aspects of devices configured to perform the disclosed techniques, they do not necessarily require implementation by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, or they may be provided by a set of interoperable hardware units, including one or more processors as described above, along with suitable software and / or firmware.
[0279] We have described various examples. These and other examples fall within the scope of the following claims. [Explanation of Symbols]
[0280] 100 video encoding and decoding systems, systems 102 Source Device 104 Video Sources 106 memory 108 Output Interface 110 Computer-Readable Medium 112 Memory Device 114 File Server 116 Destination Device 118 Display Device 120 Memory 122 Input Interface 130 Quadtree-Binary Tree (QTBT) Structure, QTBT Structure 132 Coding Tree Unit (CTU), CTU 140 Hybrid Video Coding Framework 142 Prediction 144 Transform Coding with Quantization, Transform / Quantization 146 Entropy Coding 148 Post / In-Loop Filter Processing 150 Hierarchical Prediction Structure 160 Neural Network-Based Filter 200 Video Encoder 202 Mode Selection Unit 204 Residual Generation Unit 206 Transform Processing Unit 208 Quantization Unit 210 Inverse Quantization Unit 212 Inverse Transform Processing Unit 214 Reconstruction Unit 216 Filter Unit 218 Decoded Picture Buffer (DPB), DPB 220 Entropy Encoding Unit 222 Motion Estimation Unit 224 Motion Compensation Unit 226 Intra Prediction Unit 230 Video Data Memory 232 Neural Network Model (NN Model), NN Model 300 Video Decoder 302 Entropy Decoding Unit 304 Predictive Processing Unit 306 Inverse Quantization Unit 308 Inverse Transform Processing Unit 310 Reconfiguration Unit 312 Filter Unit 314 Decoded Picture Buffer (DPB), DPB 316 Motion Compensation Unit 318 Intra Prediction Units 320 Encoded Picture Buffer (CPB) memory, CPB memory 322 NN model
Claims
1. 1. A method for filtering decoded video data, comprising the steps of: decoding a picture 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 models corresponding to the values, the step including applying each of the plurality of neural network models represented by the values separately to the portion to form different results, and combining each of the results to form a final filtered portion; The method includes:
2. 2. The method of claim 1, further comprising: decoding a value representing a subset of the predefined neural network models, the neural network model being one of the subset of the predefined neural network models, the subset being smaller than the 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 adaptation parameter set, an intra-period level, a picture group level, a temporal layer level in a picture group, a picture level, a slice level, or a coding tree unit level.
4. The method of claim 1, further comprising the step of determining whether to apply a neural network model prior to determining the plurality of neural network models to be used.
5. 5. The method of claim 4, wherein the syntax elements include a first syntax element, and determining to apply a neural network model includes 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 picture group level, a temporal layer level in a picture group, 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 elements include a first syntax element, the method further comprising: decoding a second syntax element that together represent a filtering process using the multiple 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. A method for filtering decoded video data, comprising the steps of: 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 models corresponding to the values, the step including applying each of the plurality of neural network models represented by the values separately to the portion to form different results, and combining each of the results to form a final filtered portion; The method includes:
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 a picture 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 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; one or more processors configured to 16. A device comprising:
13. The device further comprising 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. 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 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 filtering 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; one or more processors configured to 16. A device comprising:
15. A computer-readable storage medium storing instructions which, when executed by a processor, cause the processor to perform a method according to any one of claims 1 to 11.
