Supporting spatial scalability in video encoding and decoding - Patents.com

By strategically managing decoded picture buffers during IDR events in multi-layer video decoding, the techniques ensure the availability of required reference pictures, preventing undecodable bitstreams and improving the decoding process.

JP7579279B2Active Publication Date: 2024-11-07QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021571438
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-06-04
Filing Date
2020-06-05
Publication Date
2024-11-07
Estimated Expiration
2040-06-05

AI Technical Summary

Technical Problem

Existing video encoding and decoding technologies face challenges in managing decoded picture buffers for multi-layer video data, particularly when dealing with instantaneous decoding refresh (IDR) pictures, which can lead to undecodable bitstreams due to the unavailability of required reference pictures.

Method used

The techniques involve managing decoded picture buffers by removing all decoded pictures of a layer from the buffer in response to determining that a picture of that layer is an IDR picture, while retaining lower layer pictures, ensuring the decoder can decode future pictures based on lower layer IDs when they do not contain IDR pictures.

Benefits of technology

This approach prevents coding scenarios that result in undecodable bitstreams by maintaining the availability of necessary reference pictures, thereby enhancing the decoding process for multi-layer video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007579279000001
    Figure 0007579279000001
  • Figure 0007579279000002
    Figure 0007579279000002
  • Figure 0007579279000003
    Figure 0007579279000003
Patent Text Reader

Abstract

A video encoder or video decoder may be configured to obtain multi-layer video data including at least a first layer and a second layer, determine a layer identification value for the first layer and a layer identification value for the second layer, wherein the layer identification value for the second layer is higher than the layer identification value for the first layer, store decoded pictures of the first layer and the second layer in a decoded picture buffer, and, in response to determining that the pictures of the layers are instantaneous decoding refresh (IDR) pictures, delete all decoded pictures of the layer to which the IDR picture belongs from the decoded picture buffer while leaving in the decoded picture buffer all decoded pictures having layer identification information lower than the layer identification information of the layer to which the IDR picture belongs.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to U.S. Application No. 16 / 892,709, filed June 4, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 858,901, filed June 7, 2019, the entire contents of each of which are incorporated herein by reference.

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

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

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

[0005] The techniques of this disclosure relate to multi-layer video data encoding and decoding, and more particularly, to techniques for managing a decoded picture buffer for multi-layer video data encoding and decoding. This disclosure also describes techniques for detecting the start of a new access unit in multi-layer video data encoding and decoding. Multi-layer video data may be used to enable spatial scalability.

[0006] According to one example of the present disclosure, a method for decoding multi-layer video data includes the steps of obtaining multi-layer video data, where the multi-layer video data comprises at least a first layer and a second layer; determining a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer; storing a decoded picture of the first layer and a decoded picture of the second layer in a decoded picture buffer; and, in response to determining that an Instantaneous Decoding Refresh (IDR) picture belongs to the second layer, removing all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer.

[0007] According to another example of the present disclosure, a device for decoding multi-layer video data includes a memory configured to store the multi-layer video data and one or more processors implemented in a circuit, where the one or more processors are configured to: obtain multi-layer video data, where the multi-layer video data comprises at least a first layer and a second layer; determine a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer; store decoded pictures of the first layer and the decoded pictures of the second layer in a decoded picture buffer; and, in response to determining that an instantaneous decoding refresh (IDR) picture belongs to the second layer, remove all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer.

[0008] According to another example of the present disclosure, a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to obtain multi-layer video data, where the multi-layer video data comprises at least a first layer and a second layer; determine a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer; store decoded pictures of the first layer and the decoded pictures of the second layer in a decoded picture buffer; and, in response to determining that an instantaneous decoding refresh (IDR) picture belongs to the second layer, remove all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer.

[0009] An apparatus for decoding multi-layer video data includes means for obtaining multi-layer video data, where the multi-layer video data comprises at least a first layer and a second layer; means for determining a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer; means for storing decoded pictures of the first layer and decoded pictures of the second layer in a decoded picture buffer; and means for removing all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer in response to a determination that an instantaneous decoding refresh (IDR) picture belongs to the second layer.

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

[0011] [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Figure 2A] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure and corresponding coding tree unit (CTU). [Figure 2B] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure and corresponding coding tree unit (CTU). [Diagram 3] A diagram showing an example in which pictures within an access unit have the same POC value. [Figure 4] FIG. 2 illustrates an example in which the POC count is continuous across different layers and pictures within an access unit have different POC values. [Diagram 5] A diagram showing an example of an access unit in which not all layers are present in the access unit. [Figure 6] 1 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure. [Figure 7] 1 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure. [Figure 8] 1 is a flowchart illustrating a video encoding process. [Figure 9] 1 is a flowchart illustrating a video decoding process. [Figure 10] 1 is a flowchart illustrating an example process for maintaining a DPB. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Video coding (e.g., video encoding and / or video decoding) typically involves predicting blocks of video data from either already coded blocks of video data in the same picture (e.g., intra prediction) or already coded blocks of video data in a different picture (e.g., inter prediction). In some instances, the video encoder also calculates residual data by comparing the predicted block to the original block. Thus, the residual data represents the difference between the predicted block and the original block. To reduce the number of bits required to signal the residual data, the video encoder transforms and quantizes the residual data and signals the transformed and quantized residual data in the encoded bitstream. The compression achieved by the transform and quantization processes may be lossy, meaning that the transform and quantization processes may introduce distortions into the decoded video data.

[0013] A video decoder decodes the residual data and adds it to the predictive block to generate a reconstructed video block that matches the original video block better than the predictive block alone. Due to losses introduced by transforming and quantizing the residual data, the initial reconstructed block may have distortions or artifacts. One common type of artifact or distortion is called blockiness, where the boundaries of the blocks used to code the video data are visible.

[0014] To further improve the quality of the decoded video, the video decoder may perform one or more filtering operations on the reconstructed video blocks. Examples of these filtering operations include deblocking filtering, sample adaptive offset (SAO) filtering, and adaptive loop filtering (ALF). Parameters for these filtering operations may either be determined by the video encoder and explicitly signaled in the encoded video bitstream, or may be implicitly determined by the video decoder without the parameters having to be explicitly signaled in the encoded video bitstream.

[0015] To enable scalability, which generally refers to the ability of a video bitstream to support multiple spatial resolutions and / or multiple frame rates, some video bitstreams include multiple layers. A multi-layer bitstream may include a base layer and one or more non-base layers. A non-base layer may also be referred to as an enhancement layer. In a scalable bitstream, a base layer may typically have a layer identifier (e.g., nuh_layer_id) equal to zero and may be independently decodable, meaning that the base layer may be decoded without needing information from other layers. A non-base layer may have a layer identifier greater than zero and may provide additional video data not included in the base layer. This additional video data may include, for example, more sample values ​​that may be used to increase spatial resolution or frame rate. A non-base layer may or may not be independently decodable. Some non-base layers cannot be decoded without access to information associated with other layers and are therefore considered to depend on those other layers. A video coding layer (VCL) network abstraction layer (NAL) unit generally refers to a coded slice NAL unit that contains video data for a slice of a picture. A layer generally refers to a set of VCL NAL units and associated non-VCL NAL units that all have a particular value of nuh_layer_id.

[0016] A NAL unit is a syntax structure that contains an indication of the type of data that follows and bytes containing that data in the form of a raw byte sequence payload (RBSP) interspersed with emulation prevention bytes, if necessary. An access unit (AU) is a set of picture units that contain coded pictures that belong to different layers and are associated with the same time. A picture unit is a set of NAL units that are associated with each other according to specified classification rules, are consecutive in decoding order, and contain exactly one coded picture.

[0017] An instantaneous decoding refresh (IDR) picture is a type of picture that does not use inter prediction in the decoding process and therefore may be the first picture in the bitstream in decoding order. IDR pictures appear later in the bitstream and may also be used for random access, which generally refers to the act of starting the decoding process for a bitstream at a point other than the beginning of the stream. Each IDR picture is the first picture of a coded video sequence (CVS) in decoding order.

[0018] Video encoders and video decoders store decoded pictures in a decoded picture buffer (DPB) so that the decoded pictures can be used as reference pictures for encoding and decoding later pictures in the bitstream. Reference pictures include samples that can be used for inter-prediction in the decoding process of subsequent pictures in decoding order. Determining which pictures to keep in the DPB and which pictures to remove, i.e., "bump," can present unique challenges for multi-layer video data, since adding a picture from one layer to the DPB may bump pictures from other layers. This disclosure describes techniques for bumping pictures from the DPB when a layer of video data includes an IDR picture.

[0019] According to some techniques of this disclosure, in response to determining that a picture of a layer is an IDR picture, the video decoder may remove all decoded pictures of the layer to which the IDR picture belongs from the DPB, while leaving all decoded pictures with lower layer IDs in the decoded picture buffer. By configuring the video decoder in this manner, the video decoder can preserve the ability to decode future pictures based on decoded pictures with lower layer IDs when those lower layers do not contain IDR pictures. By managing the DPB in this manner, the video decoder can prevent coding scenarios that result in an undecodable bitstream due to the unavailability of required reference pictures.

[0020] According to some techniques of this disclosure, in response to determining that (1) the VCL NAL unit of the second access unit has a layer identification that is less than the layer identification of the picture that immediately precedes it in decoding order, and (2) the VCL NAL unit of the second access unit has a picture order count (POC) value that is different from the POC value of the picture that immediately precedes it in decoding order, the video decoder may determine that the VCL NAL unit of the second access unit corresponds to the start of the second access unit. This technique may represent an improved method for detecting the start of a new access unit by not placing undue burden on a single-layer video decoder.

[0021] Although the techniques of this disclosure may be described in terms of a video decoder, it should be understood that the described techniques may also be performed by a video encoder. For example, a video encoder typically also decodes video data as part of the process of determining how to encode the video data. In connection with that decoding, the video encoder may maintain the DPB using the same techniques as a video decoder.

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

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

[0024] In the example of FIG. 1, source device 102 includes video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120, and display device 118. According to this disclosure, video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply techniques for continuous picture order count (POC) numbering described in this disclosure. Thus, source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, source device and destination device may include other components or configurations. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.

[0025] The system 100 as shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may perform the techniques for consecutive POC numbering described in this disclosure to support scalability. The source device 102 and the destination device 116 are only examples of coding devices such that the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to devices that perform coding (encoding and / or decoding) of data as "coding" devices. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically, video encoders and video decoders, respectively. In some examples, the devices 102, 116 may operate in a substantially symmetrical manner such that each of the devices 102, 116 includes video encoding and decoding components. Thus, the system 100 may support unidirectional or bidirectional video transmission between the video devices 102, 116, for example, video streaming, video playback, video broadcasting, or video telephony.

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

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

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

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

[0030] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device that may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download. The file server 114 may be any type of server device capable of storing the encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), a fiber optic connection, or a combination of both suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.

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

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

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

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

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

[0036] Video encoder 200 and video decoder 300 may operate according to a video coding standard such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Search Test Model (JEM) or ITU-T H.266, also known as Versatile Video Coding (VVC). A recent draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 5)," ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Joint Video Experts Team (JVET), 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v3 (hereinafter "VVC Draft 5"). However, the techniques of this disclosure are not limited to any particular coding standard.

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

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

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

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

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

[0042] In some examples, 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, 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).

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

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

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

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

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

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

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

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

[0051] As mentioned above, following any transformation to generate transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, resulting in further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 may round 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.

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

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

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

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

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

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

[0058] According to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may be configured to remove all decoded pictures of a layer to which an IDR picture belongs from the DPB in response to determining that the picture of the layer is an IDR picture. In response to determining that the picture of a layer is an IDR picture, the video encoder 200 and the video decoder 300 may also be configured to leave all decoded pictures with a layer ID lower than the layer of the IDR picture in the decoded picture buffer. By configuring the video encoder 200 and the video decoder 300 in this manner, the video encoder 200 and the video decoder 300 can preserve the ability to decode future pictures based on decoded pictures with lower layer IDs when those lower layers do not contain IDR pictures. By managing the DPB in this manner, the video encoder 200 and the video decoder 300 can prevent coding scenarios that result in an undecodable bitstream due to the unavailability of required reference pictures.

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

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

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

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

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

[0064] In VVC, there is a reference picture resampling (RPR) tool under consideration. This tool allows a video coder to use a reference picture with a picture size different from the current picture size. In such cases, a picture resampling process may be invoked to provide an upsampled or downsampled version of the picture that matches the current picture size, for example, similar to spatial scalability as implemented in HEVC. This disclosure describes several techniques that can be used separately or together with each other to add support for spatial scalability in VVC together with the RPR tool.

[0065] This disclosure describes techniques related to VPS signaling that may be used, for example, by a middlebox to deliver streaming video data. In this context, a middlebox generally refers to a video router, a bitstream splicing and extraction device, and other such devices.

[0066] Multi-layer video data may include different types of layer dependencies that may be derived from reference picture lists, i.e., lists of reference pictures that may be used to inter-predict P slices and B slices. Typically, the video encoder 200 and the video decoder 300 may maintain two reference picture lists, reference picture list 0 and reference picture list 1, that are generated for each slice of a non-IDR picture. However, because dependencies between layers cannot be determined by the middlebox without performing substantial decoding operations, the reference picture list is not a convenient mechanism for the middlebox to use when performing sub-bitstream extraction, i.e., when a certain layer or layers are extracted from a separate bitstream. Thus, the middlebox cannot ensure that dependencies are consistent across different pictures. For example, the middlebox cannot simply discard NAL units that are not needed by inspecting the layer IDs.

[0067] This disclosure describes techniques for indicating dependencies between layers in a high-level parameter set (PS), such as a VPS. Middleboxes can use these indications to determine which layers can be decoded alone and which layers depend on other layers. Video encoder 200 and video decoder 300 can be configured to maintain reference picture lists according to these indications and not use other layers for prediction. With such techniques, middleboxes can simply discard NAL units that are not needed by inspecting their layer IDs.

[0068] The reference picture structure is a structure used for picture marking to identify which pictures should be kept in the DPB and which pictures can be removed or bumped from the DPB to free up memory. The reference picture structure may take into account other layers different from the dependent layers shown in the PS. It may be required that pictures from other layers stay in the DPB and are not bumped.

[0069] For example, assume there are three layers: layer0, which is coded alone, and layer1 and layer2, which both depend on layer0 (i.e., layer0 picture may be used to predict layer1 and layer2 pictures). In this example, a middlebox or video decoder may extract layer0 from the bitstream, extract layer0 and layer1 from the bitstream, or extract layer0 and layer2 from the bitstream. Thus, the PS may indicate that layer0 has no layer dependency, layer1 depends on layer0, and layer2 depends on layer0. In each picture of a layer, all reference pictures from all layers required for prediction may be included in the reference picture structure. For example, layer2 may have a layer0 reference picture and a layer1 reference picture. Although layer1 pictures may not be required for layer2 prediction, they may be included in the marking process to determine whether those pictures should be kept or bumped from the DPB. However, since layer2 does not depend on layer1 in this example, the reference picture list for pictures from layer2 may not have the layer1 picture.

[0070] This disclosure describes a "bump process" for removing a reference picture from a decoded picture buffer. In this context, bumping or removing simply means that the reference picture is no longer available for reference and that the memory location used to store the reference picture is available to store other data. The terms bumping or removing do not require or imply any kind of active step to erase or remove the reference picture from memory.

[0071] As mentioned in the previous section, when a picture from a layer is decoded, the decoded picture may bump pictures of other layers from the DPB. However, according to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may be configured to implement a constraint that only pictures of the same layer as the current picture or a higher layer are bumped. A picture may be bumped when a higher layer uses a lower layer picture for prediction. For example, the video encoder 200 and the video decoder 300 may be configured such that, assuming that layer0 is a lower layer than layer1 and layer1 is a lower layer than layer2, the layer1 picture cannot bump a picture of layer0 from the DPB, but the layer1 picture can bump the layer2 picture. In this example, the higher layer may be coded independently from the lower layer, so that the dependency across layers is taken into account. In such an example, the lower layer picture does not bump or mark the higher layer picture.

[0072] According to the techniques of this disclosure, when a layer has an IDR picture, all pictures of that layer and higher layers are removed from the DPB, but lower layer pictures may be kept because the lower layer may not be IDR and pictures in that layer may be needed to continue decoding. Without this constraint, the video decoder may remove all pictures from the DPB so that the lower layer cannot be decoded. To implement this constraint, the video encoder 200 and the video decoder 300 may be configured to determine a layer identification value for the first layer and a layer identification value for the second layer that is higher than the layer identification value for the first layer, and store the decoded pictures of the first layer and the decoded pictures of the second layer in the DPB. In response to determining that the IDR picture belongs to the second layer, the video encoder 200 and the video decoder 300 may be configured to remove all decoded pictures of the second layer from the DPB while leaving all decoded pictures of the first layer in the DPB.

[0073] This disclosure also describes modifications of constraints implemented on access units. In a multi-layer stream, there can be two cases, as shown in Figures 3 and 4. In Figure 3, pictures of different representations can have the same POC value as in the Scalable High Efficiency Coding (SHVC) (H.265 / HEVC) standard, for example. In the example of Figure 3, both the layer0 and layer1 pictures of the access unit 150 have POC n-1 and both the layer0 and layer1 pictures in access unit 152 have a POC value of n and both the layer0 and layer1 pictures in access unit 154 have a POC value of n+1 That is, all pictures of the same access unit have the same POC value. Although such a convention does not change the definition of an AU, it may impose an excessive processing burden on common and widespread single-layer decoders.

[0074] Alternatively, the POC count may be continuous across different layers, as shown in FIG. 4. In FIG. 4, for example, an access unit 160 includes a POC n-1 A layer0 picture with a POC value of n The access unit 162 includes a layer 1 picture having a POC value of n+1 A layer0 picture with a POC value of n+2 In this case, since every POC is unique, a video decoder does not need to process pictures with the same POC number, but the AU definition needs to be changed to reflect the layered stream.

[0075] In one exemplary technique of this disclosure, the definition of an AU includes a layer ID check. For example, a new AU starts when a picture with a layer ID lower than or equal to the layer ID of the previous picture is encountered. This definition contradicts the definition of an AU currently defined in VVC Draft 5, where only the POC value is checked.

[0076] To implement this example, video encoder 200 and video decoder 300 may be configured to implement a constraint requiring the layer ID numbering to be in increasing order.

[0077] Using VVC Draft 5 terminology, the definition of AU can be changed to: Let firstVclNalUnitInAu be the first VCL NAL unit of a coded picture, and its derived PicOrderCntVal is different from the PicOrderCntVal of the previous coded picture, and its nuh_layer_id is less than or equal to the nuh_layer_id of the previous coded picture. The first one of the following NAL units that follows firstVclNalUnitInAu and, if any, the last VCL NAL unit preceding firstVclNalUnitInAu specifies the start of a new access unit. - Access unit delimiter NAL unit (when present), - DPS NAL unit (when present), - VPS NAL unit (when present), - SPS NAL unit (when present), - PPS NAL unit (when present), - APS NAL unit (when present), - Prefix SEI NAL unit (when present), - NAL unit with NalUnitType equal to RSV_NVCL_5, RSV_NVCL_6, RSV_NVCL_21, or RSV_NVCL_22 (when present), - NAL unit with NalUnitType in the range of UNSPEC28..UNSPEC29 (when present) If there is no NAL unit as described above that follows firstVclNalUnitInAu and, if any, the last VCL NAL unit preceding firstVclNalUnitInAu, firstVclNalUnitInAu starts a new access unit if <<nuh_layer_id is less than or equal to the nuh_layer_id of the previous coded picture>>.

[0078] The text within symbols << and >> above is an example of layer ID checking for AU determination, which is specifically needed to know which pictures can be output or displayed, since roughly speaking pictures of the same AU can be considered to have the same content even in different representations (resolutions).

[0079] To process the types of AUs described above, video encoder 200 and video decoder 300 may be configured to determine that a VCL NAL unit of the second access unit corresponds to a start of the second access unit in response to determining that (1) the VCL NAL unit of the second access unit has a layer identification that is less than the layer identification of the picture that immediately precedes it in decoding order, and (2) the VCL NAL unit of the second access unit has a POC value that is different from the POC value of the picture that immediately precedes it in decoding order. NAL units received between the VCL NAL unit of the second access unit and the last VCL NAL unit of the picture that immediately precedes it are access unit delimiter NAL units.

[0080] The video decoder 300 may be configured to process non-complete AUs. As shown in the example of FIG. 5, there may be a coding scenario in which not all layers are present in an access unit. In this scenario, the layer1 picture has a higher layer ID than the layer0 picture, so applying the above definition of an AU may not result in an AU split between pictures. A video decoder may treat such a coding scenario as one AU under the above definition, which may be undesirable because the pictures may not represent the same content.

[0081] To solve this potential problem, this disclosure describes the following potential solutions: Video encoder 200 may be configured to insert an AU delimiter between layer0 and layer1 pictures to indicate the indented AU delimiter. The AU delimiter indicates which NAL units belong to the previous AU and which NAL units belong to the next AU. Thus, video decoder 300 may process the AU delimiter to identify NAL units that belong to the same AU.

[0082] The video encoder 200 may be configured to continue the numbering of the POC in the same way as other layer pictures in the AU, i.e., each AU may have POC of several layers and the AU definition may include different POC checks. That is, the start of a new AU may be signaled by a POC difference between two pictures that is equal to or exceeds a threshold, which may be equal to the number of layers. In other words, the video encoder 200 may be configured to assign a POC value as num_layers*POC+layer_id.

[0083] Video encoder 200 may be configured to assign different temporal IDs to pictures in layer0 and layer1. A check of the temporal IDs may be added to the AU definition. For example, a new AU starts in a NAL unit that has a different temporal ID than the temporal ID of the previous NAL unit. In the above example, to have an AU delimiter, video encoder 200 may assign temporal ID 0 to pictures in layer0 and temporal ID 1 to layer1 pictures. Video decoder 300 can then detect the start of a new AU in the layer1 picture.

[0084] This disclosure also describes techniques related to output pictures. First, pictures in all layers may be marked for output. Thus, for example, if the middlebox extracts layer0, the middlebox outputs all pictures of layer0. However, for example, if more than one layer is present in the bitstream, the layer0 and layer1 pictures may all be marked for output, but pictures in the same AU may have the same content, resulting in only one picture needing to be output from the AU. According to the techniques of this disclosure, the middlebox may be configured to output only the picture with the highest layer ID in the AU. In another example, a flag may be signaled in any parameter set, slice header, or elsewhere to indicate which layer is output or whether all layers are output. Outputting more than one picture in an AU may be useful for overlay or multiview.

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

[0086] In the example of Figure 6, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, an inverse quantization unit 210, an inverse transform 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. Furthermore, the video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.

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

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

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

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

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

[0092] 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. By way of example, the mode selection unit 202 may include a palette coding unit, an intra block copy coding unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine coding unit, a linear model (LM) coding unit, etc.

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

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

[0095] 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 prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). In the case of inter prediction of the current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.

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

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

[0098] 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 receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

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

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

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

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

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

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

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

[0106] Filter unit 216 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.

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

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

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

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

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

[0112] Video encoder 200 is a video encoder including a memory and one or more processors implemented in a circuit, the one or more processors including: obtaining multi-layer video data including at least a first layer, a second layer, and a third layer; determining a layer identification value for the first layer, a layer identification value for the second layer, and a layer identification value for the third layer, where the layer identification value for the third layer is higher than the layer identification value for the second layer and the layer identification value for the second layer is higher than the layer identification value for the first layer; and decoding a decoded picture of the first layer, a decoded picture of the second layer, and a decoded picture of the third layer. in a decoded picture buffer; in response to determining that the picture of the second layer is an IDR picture, removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer; and after removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer, retrieving a copy of the decoded picture of the first layer for predicting a block of a current picture of the multi-layer video data.

[0113] Video encoder 200 also represents an example of a video encoder including a memory and one or more processors implemented in a circuit, where the one or more processors are configured to obtain multi-layer video data including at least a first layer and a second layer, determine a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer, store the decoded pictures of the first layer and the decoded pictures of the second layer in a decoded picture buffer, and, in response to determining that the IDR picture belongs to the second layer, remove all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0128] Filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of the reconstructed blocks. The operations of filter unit 312 may not be performed in all instances.

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

[0130] Video decoder 300 is a video decoder including a memory and one or more processors implemented in a circuit, the one or more processors receiving multi-layer video data including at least a first layer, a second layer, and a third layer; determining a layer identification value for the first layer, a layer identification value for the second layer, and a layer identification value for the third layer, where the layer identification value for the third layer is higher than the layer identification value for the second layer and the layer identification value for the second layer is higher than the layer identification value for the first layer; and decoding a decoded picture of the first layer, a decoded picture of the second layer, and a decoded picture of the third layer. in a decoded picture buffer; in response to determining that the picture of the second layer is an IDR picture, removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer; and after removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer, retrieving a copy of the decoded picture of the first layer for predicting a block of a current picture of the multi-layer video data.

[0131] The video decoder 300 also represents an example of a video decoder including a memory and one or more processors implemented in a circuit, where the one or more processors are configured to obtain multi-layer video data including at least a first layer and a second layer, determine a layer identification value for the first layer and a layer identification value for the second layer, where the layer identification value for the second layer is higher than the layer identification value for the first layer, store the decoded pictures of the first layer and the decoded pictures of the second layer in a decoded picture buffer, and, in response to determining that the IDR picture belongs to the second layer, remove all decoded pictures of the second layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer.

[0132] The video decoder 300 also represents an example of a video decoder including a memory and one or more processors implemented in a circuit, the one or more processors being configured to receive a first picture in the video data, determine a POC value for the first picture, receive a second picture in the video data, determine a POC value for the second picture, and detect a start of a new access unit based on the POC value of the first picture and the POC value of the second picture. To detect a start of a new access unit based on the POC value of the first picture and the POC value of the second picture, the video decoder 300 may, for example, compare the POC value of the first picture with the POC value of the second picture and detect a start of a new access unit in response to the POC value of the second picture differing from the POC value of the first picture by more than a threshold amount. The second picture may belong to the new access unit and the first picture may belong to the previous access unit. The first picture may have the lowest POC value of all pictures in the previous access unit.

[0133] The video decoder 300 also represents an example of a video decoder including a memory and one or more processors implemented in a circuit, the one or more processors configured to receive a first NAL unit in the video data, determine a temporal identification (ID) of the first NAL unit, receive a second NAL unit in the video data, determine a temporal ID of the second NAL unit, and detect a start of a new access unit based on the temporal ID of the first NAL unit and the temporal ID of the second NAL unit. To detect a start of a new access unit based on the temporal ID of the first NAL unit and the temporal ID of the second NAL unit, the video decoder 300 may compare the temporal ID of the first NAL unit with the temporal ID of the second NAL unit, and detect a start of a new access unit in response to the temporal ID of the first NAL unit being different from the temporal ID of the second NAL unit. The second NAL unit may belong to a new access unit, and the first NAL unit belongs to a previous access unit.

[0134] 8 is a flowchart illustrating an example process for encoding a current block. The current block may comprise a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 6), it should be understood that other devices may be configured to perform a process similar to that of FIG.

[0135] In this example, video encoder 200 first predicts the current block (350). As part of predicting the current block, video encoder 200 may maintain the DPB according to the techniques described herein. For example, video encoder 200 may form a predictive block for the current block. Video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, video encoder 200 may calculate a difference between an original uncoded block and a predictive block for the current block. Video encoder 200 may then transform and quantize coefficients of the residual block (354). Video encoder 200 may then scan the quantized transform coefficients of the residual block (356). During or following the scan, video encoder 200 may entropy code the coefficients (358). For example, video encoder 200 may code the coefficients using CAVLC or CABAC. Video encoder 200 may then output entropy coded data for the block (360).

[0136] 9 is a flowchart illustrating an example process for decoding a current block of video data. The current block may comprise a current CU. Although described with respect to video decoder 300 (FIGS. 1 and 8), it should be understood that other devices may be configured to perform a process similar to that of FIG.

[0137] The video decoder 300 may receive entropy coded data for the current block, such as entropy coded prediction information and entropy coded data for coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and to reconstruct the coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using an intra prediction mode or an inter prediction mode as indicated by the prediction information for the current block, to compute a predictive block for the current block (374). As part of predicting the current block, the video encoder 200 may maintain a DPB according to the techniques described herein. The video decoder 300 may then inverse scan the reconstructed coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then inverse quantize and inverse transform the coefficients to generate the residual block (378). Video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).

[0138] FIG. 10 is a flow chart illustrating an example process for maintaining a DPB. The technique of FIG. 10 is described with respect to a universal video decoder. The universal video decoder may correspond, for example, to the video decoder 300 or to the decoding function of the video encoder 200. The universal video decoder may be, for example, part of a wireless communication device including a receiver configured to receive the multi-layer video data. The video decoder may be part of a telephone handset having a receiver configured to demodulate a signal comprising the multi-layer video data according to a wireless communication standard. In other examples, the universal video decoder may be part of one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box. The universal video decoder may include or be in communication with a display configured to display the decoded multi-layer video data in some examples.

[0139] The video decoder obtains multi-layer video data including at least a first layer and a second layer (400). The video decoder 300 may obtain the multi-layer video data, for example, from an encoded bitstream stored in the CPB memory 320. The video encoder 200 may obtain the multi-layer video data, for example, as an output from the filter unit 216 or from the DPB 218. The first layer may be, for example, a layer that is independently decodable, and the second layer may depend on the first layer, meaning that the video decoder 300 needs access to information contained in the first layer to decode the second layer.

[0140] The video decoder determines a layer identification value for the first layer and a layer identification value for the second layer (402). In this example, the layer identification values ​​are different. Specifically, the layer identification value for the second layer is higher than the layer identification value for the first layer.

[0141] The video decoder stores the decoded pictures of the first layer and the decoded pictures of the second layer in a DPB (404). The DPB may correspond to, for example, DPB 218 of FIG. 6 or DPB 314 of FIG.

[0142] In response to determining that the IDR picture belongs to the second layer, the video decoder removes, e.g., discards or bumps, all decoded pictures of the second layer from the DPB while leaving all decoded pictures of the first layer in the decoded picture buffer (406).

[0143] In one example, the multi-layer video data may include a third layer having a layer identification value higher than the layer identification value for the second layer and therefore higher than the layer identification value for the first layer. The video decoder stores the decoded picture of the third layer in a decoded picture buffer, and in response to determining that the IDR picture belongs to the second layer, removes all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer. After removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer, the video decoder retrieves a copy of the decoded picture of the first layer to predict a block of a current picture of the multi-layer video data. After retrieving the copy of the decoded picture of the first layer, the video decoder may, for example, use the copy of the decoded picture of the first layer as a reference picture for performing inter prediction. The video decoder may, for example, extract a decodable bitstream from the multi-layer video data that includes the first layer and the third layer without the second layer.

[0144] The video decoder may additionally be configured to obtain multi-layer video data by receiving a first access unit comprising a first picture of one or more layers and receiving a second access unit comprising one or more second pictures of those layers. The video decoder may determine that the VCL NAL unit of the second access unit corresponds to a start of the second access unit in response to, for example, determining that (1) the VCL NAL unit of the second access unit has a layer identification information that is less than the layer identification information of the immediately preceding picture in decoding order, and (2) the VCL NAL unit of the second access unit has a POC value that is different from the POC value of the immediately preceding picture in decoding order. The NAL unit received between the VCL NAL unit of the second access unit and the last VCL NAL unit of the immediately preceding picture may be an access unit delimiter NAL unit.

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

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

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

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

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

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

[0151] 100 Video encoding and decoding system, system 102 Source Device, Device, Video Device 104 Video Sources 106 Memory 108 Output Interface 110 Computer-readable medium 112 Storage Devices 114 File Server 116 Destination device, device, video device 118 Display Devices 120 Memory 122 Input Interface 130 Quad-tree / binary-tree (QTBT) structure, QTBT structure 132 Coding Tree Unit (CTU), CTU 150 access units 152 access units 154 access units 160 access units 162 access units 200 Video Encoder 202 Mode Selection Unit 204 Residual Generation Unit 206 Conversion Processing Unit 208 Quantization Units 210 Inverse Quantization Unit 212 Inverse Transformation Processing Unit 214 Reconstruction Unit 216 Filter unit 218 Decoded Picture Buffer (DPB), DPB 220 Entropy Coding Unit 222 Motion Estimation Unit 224 Motion Compensation Unit 226 intra prediction units 230 Video Data Memory 300 Video Decoder 302 Entropy Decoding Unit 304 Prediction Processing Unit 306 Inverse Quantization Unit 308 Inverse Transformation Processing Unit 310 Reconstruction Unit 312 Filter unit 314 Decoded Picture Buffer (DPB), DPB 316 Motion Compensation Unit 318 Intra Prediction Units 320 CPB memory

Claims

1. 1. A method for decoding multi-layer video data, comprising: obtaining the multi-layered video data, the multi-layered video data comprising at least a first layer, a second layer, and a third layer; determining a layer identification value for the first layer and a layer identification value for the second layer, the layer identification value for the second layer being higher than the layer identification value for the first layer; determining a layer identification value for a third layer, the layer identification value for the third layer being higher than the layer identification value for the second layer; storing the first layer decoded picture, the second layer decoded picture, and the third layer decoded picture in a decoded picture buffer; in response to determining that an instantaneous decoding refresh (IDR) picture belongs to the second layer, removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer; A method for providing the above.

2. The method of claim 1 , wherein the first layer comprises an independently decodable layer.

3. The method of claim 1 , wherein the second layer depends on the first layer. after removing all the decoded pictures of the second layer and all the decoded pictures of the third layer from the decoded picture buffer, retrieving a copy of the decoded picture of the first layer for predicting a block of a current picture of the multi-layer video data; extracting from the multi-layer video data a decodable bitstream comprising the first layer and the third layer without the second layer; The method of claim 1 , comprising:

5. and wherein the step of obtaining the multi-layered video data comprises receiving the multi-layered video data at a receiver of a wireless communication device, the method comprising: storing the multi-layer video data in a memory of the wireless communication device; decoding the multi-layer video data using one or more processors of the wireless communication device; The method of claim 1 , further comprising:

6. 6. The method of claim 5, wherein the wireless communication device is a telephone handset, and wherein the step of receiving the multi-layered video data at the receiver of the wireless communication device comprises demodulating a signal comprising the multi-layered video data in accordance with a wireless communication standard.

7. 1. A device for decoding multi-layer video data, comprising: a memory configured to store the multi-layer video data; and one or more processors implemented in a circuit, the one or more processors comprising: obtaining the multi-layered video data, the multi-layered video data comprising at least a first layer, a second layer, and a third layer; determining a layer identification value for the first layer and a layer identification value for the second layer, the layer identification value for the second layer being higher than the layer identification value for the first layer; determining a layer identification value for a third layer, the layer identification value for the third layer being higher than the layer identification value for the second layer; storing the first layer decoded picture, the second layer decoded picture, and the third layer decoded picture in a decoded picture buffer; in response to determining that an instantaneous decoding refresh (IDR) picture belongs to the second layer, removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer; A device configured to:

8. The device of claim 7 , wherein the first layer comprises an independently decodable layer.

9. The device of claim 7 , wherein the second layer is dependent on the first layer.

10. The method of claim 10, further comprising: retrieving a copy of the decoded picture of the first layer for predicting a block of a current picture of the multi-layer video data after removing all the decoded pictures of the second layer and all the decoded pictures of the third layer from the decoded picture buffer. The device of claim 7, further configured to:

11. the one or more processors: Extracting a decodable bitstream from the multi-layer video data, the bitstream including the first layer and the third layer without the second layer. The device of claim 10, further configured to:

12. The device of claim 7 , wherein the device is a wireless communication device, and further comprises a receiver configured to receive the multi-layer video data.

13. The device of claim 12 , wherein the wireless communication device is a telephone handset, and the receiver is configured to demodulate a signal comprising the multi-layer video data in accordance with a wireless communication standard.

14. A display configured to display the decoded multi-layer video data.

8. The device of claim 7, further comprising:

15. 1. A computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to: obtaining multi-layer video data, the multi-layer video data comprising at least a first layer, a second layer, and a third layer; determining a layer identification value for the first layer and a layer identification value for the second layer, the layer identification value for the second layer being higher than the layer identification value for the first layer; determining a layer identification value for a third layer, the layer identification value for the third layer being higher than the layer identification value for the second layer; storing the first layer decoded picture, the second layer decoded picture, and the third layer decoded picture in a decoded picture buffer; in response to determining that an instantaneous decoding refresh (IDR) picture belongs to the second layer, removing all decoded pictures of the second layer and all decoded pictures of the third layer from the decoded picture buffer while leaving all decoded pictures of the first layer in the decoded picture buffer; A computer-readable storage medium for causing a computer to perform the above steps.

Citation Information

Patent Citations

  • Improved Inference of NoOutputOfPriorPicsFlag in Video Coding

    JP2017507542A

  • Derivation of SPS time ID nesting information for multilayer bitstreams

    JP2017513352A

  • Method and apparatus for video coding and decoding

    US20150264404A1