Decoded picture buffer index
Through DPB indexing technology, explicitly indicating the removal of pictures in DPB, solving the problem of large signaling overhead in the prior art, improving decoding efficiency and management simplicity.
Patent Information
- Application Number
- CN202080042669.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-17
- Filing Date
- 2020-06-18
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2040-06-18
AI Technical Summary
In the existing video decoding technology, the decoded picture buffer (DPB) management process needs to indicate which pictures to retain for reference, resulting in large signaling overhead and complex image removal process.
Using DPB indexing technology, explicitly indicates which pictures can be removed from the DPB, rather than tagging by reference picture lists, reducing signaling overhead and simplifying the image removal process.
Reduces the signaling overhead of reference picture lists, improves decoding efficiency, and simplifies the DPB management process.
Smart Images

Figure CN113940063B_ABST
Abstract
Description
[0001] This application claims priority to U.S. patent application No. 16 / 903,996, filed on June 17, 2020, which claims priority to U.S. Provisional Application No. 62 / 863,375, filed on June 19, 2019, the entire contents of each of which are incorporated herein by reference. Technical Field
[0002] This disclosure relates to video encoding and video decoding. Background Art
[0003] Digital video capabilities can be incorporated into a wide variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones (so-called "smartphones"), video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques (such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 (Part 10, Advanced Video Coding (AVC)), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions of such standards). By implementing such video coding techniques, video devices can more efficiently send, 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. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the Invention
[0005] A video decoder (e.g., a video encoder and decoder) can use a decoded picture buffer (DPB) to store decoded pictures. The decoded pictures can be output for display. In addition, the decoded pictures stored in the DPB can be used as reference pictures for inter-frame prediction. As long as the pictures can still be used as reference pictures, the pictures can be stored in the DPB. However, the pictures are eventually removed from the DPB to make room for the currently decoded pictures. Typically, pictures are removed from the DPB during the picture marking process based on the pictures indicated in one or more reference picture lists. That is, if a picture is not in the reference picture list and is not marked as needed for output, the video decoder can mark such pictures as "unused for reference" and remove such pictures from the DPB.
[0006] In summary, this disclosure describes techniques for DPB management, including techniques for removing pictures from the DPB. In some examples, this disclosure describes DPB indexing techniques. Instead of performing a picture marking process (wherein a picture is marked as unused for reference and subsequently removed from the DPB based on the pictures in the reference picture list), a video coder can decode a DPB index that explicitly indicates which picture(s) can be removed from the DPB to make room for the currently decoded picture.
[0007] The DPB indexing techniques of the present disclosure can provide greater flexibility in the signaling of reference picture lists because there is no need to indicate which pictures to retain. Signaling which pictures to retain in the DPB (by including them in the reference picture list) has an associated overhead because some pictures are only signaled in the reference picture list of the current picture to be retained (e.g., carried forward) for subsequent pictures, even if these pictures are not used for inter-frame prediction of the current picture. In contrast, in the techniques of the present disclosure, the video encoder can explicitly signal the index (e.g., DPB index) of pictures that can be replaced or bumped (e.g., overwritten or otherwise discarded) from the DPB. In this way, only the pictures actually used for reference need to be signaled in the reference picture list. In this way, overhead signaling is reduced and decoding efficiency is improved.
[0008] In addition, the process for removing pictures from the DPB is simplified because the DPB index is used to explicitly signal the one or more pictures to be removed. Therefore, there is no need for a picture marking process based on a reference picture list. In addition, there is no need to check pictures to determine whether they are still needed for output because the video encoder will not signal the DPB index of the pictures that are still needed for output and are to be removed from the DPB.
[0009] In one example, a method includes decoding a first syntax element indicating a first picture to be removed from a DPB; removing the first picture from the DPB; decoding a current picture; and storing the decoded current picture in the DPB.
[0010] In another example, a device includes: a memory configured to store video data; and one or more processors implemented in circuitry and in communication with the memory, the one or more processors configured to: decode a first syntax element indicating a first picture to be removed from a DPB; remove the first picture from the DPB; decode a current picture; and store the decoded current picture in the DPB.
[0011] In another example, a device includes: a unit for decoding a first syntax element indicating a first picture to be removed from a DPB; a unit for removing the first picture from the DPB; a unit for decoding a current picture; and a unit for storing the decoded current picture in the DPB.
[0012] In another example, a computer-readable storage medium is encoded with instructions that, when executed, cause a programmable processor to: decode a first syntax element indicating a first picture to be removed from a DPB; remove the first picture from the DPB; decode a current picture; and store the decoded current picture in the DPB.
[0013] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0015] Figure 2A and Figure 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).
[0016] Figure 3 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0017] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0018] Figure 5 is a flowchart illustrating an example encoding method of the present disclosure.
[0019] Figure 6 is a flow chart illustrating an example decoding method of the present disclosure.
[0020] Figure 7 is a flow chart illustrating an example decoded picture buffer (DPB) management method performed at a video encoder in accordance with techniques of this disclosure.
[0021] Figure 8 is a flow diagram illustrating an example decoded picture buffer management (DPB) method performed at a video decoder in accordance with techniques of this disclosure. DETAILED DESCRIPTION
[0022] In summary, this disclosure describes techniques for decoded picture buffer (DPB) management, including techniques for removing pictures from the DPB. In some examples, this disclosure describes DPB indexing techniques. Instead of performing a picture marking process (where a picture is marked as unused for reference and subsequently removed from the DPB based on pictures in a reference picture list), a video coder can decode a DPB index that explicitly indicates which picture can be removed from the DPB to make room for the currently decoded picture.
[0023] The DPB indexing techniques of the present disclosure can provide greater flexibility in the signaling of reference picture lists because there is no need to indicate which pictures to retain. Signaling which pictures to retain in the DPB (by including them in the reference picture list) has an associated overhead because some pictures are only signaled in the reference picture list of the current picture to be retained (e.g., carried forward) for subsequent pictures, even if these pictures are not used for inter-frame prediction of the current picture. In contrast, in the techniques of the present disclosure, the video encoder can explicitly signal the index (e.g., DPB index) of pictures that can be replaced or squeezed out (e.g., overwritten or otherwise discarded) from the DPB. In this way, only the pictures actually used for reference need to be signaled in the reference picture list. In this way, overhead signaling is reduced and decoding efficiency is improved.
[0024] In addition, the process for removing pictures from the DPB is simplified because the one or more pictures to be removed are explicitly signaled (e.g., by the encoder or decoder) using the DPB index. Therefore, a picture marking process based on a reference picture list is not required. In addition, there will be no need to check pictures to determine whether they are still needed for output because the video encoder will not signal the DPB index of the picture to be removed from the DPB if the picture is still needed for output.
[0025] Figure 1is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of this disclosure. Generally speaking, the techniques of this disclosure relate to decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Thus, video data can include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (e.g., signaling data).
[0026] like Figure 1 As shown, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may include any of a variety of devices, including desktop computers, notebook computers (i.e., laptop computers), tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and, therefore, may be referred to as wireless communication devices.
[0027] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply a technique for decoding a picture buffer index. 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, the source device and destination device can include other components or arrangements. For example, source device 102 can receive video data from an external video source such as an external camera. Similarly, destination device 116 can interface with an external display device rather than including an integrated display device.
[0028] like Figure 1The illustrated system 100 is merely an example. In general, any digital video encoding and / or decoding device can implement the techniques for decoding picture buffer indexes. Source device 102 and destination device 116 are merely examples of such decoding devices, wherein source device 102 generates decoded video data for transmission to destination device 116. This disclosure refers to a "decoding" device as a device that performs decoding (e.g., encoding and / or decoding) of data. Thus, video encoder 200 and video decoder 300 represent examples of decoding devices (specifically, a video encoder and a video decoder, respectively). In some examples, devices 102 and 116 can operate in a substantially symmetrical manner, such that each of devices 102 and 116 includes video encoding and decoding components. Thus, system 100 can support one-way or two-way video transmission between video devices 102 and 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0029] Typically, video source 104 represents a source of video data (i.e., raw, unencoded video data) and provides a sequential series of pictures (also referred to as "frames") of 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 camera, a video archive unit containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 may encode captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange the pictures from the order in which they were received (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream comprising the encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of destination device 116 .
[0030] Memory 106 of source device 102 and memory 120 of destination device 116 represent general purpose memory. In some examples, memories 106, 120 can store raw video data, e.g., raw video from video source 104 and raw decoded video data from video decoder 300. Additionally or alternatively, memories 106, 120 can store software instructions executable by, for example, video encoder 200 and video decoder 300, respectively. Although shown as separate from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 can also include internal memory for functionally similar or equivalent purposes. Furthermore, memories 106, 120 can store, for example, encoded video data output from video encoder 200 and input to video decoder 300. In some examples, portions of memories 106, 120 can be allocated as one or more video buffers, e.g., to store raw decoded and / or encoded video data.
[0031] The computer-readable medium 110 can represent any type of medium or device capable of transmitting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to send the 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 can modulate a transmission signal including the encoded video data according to a communication standard such as a wireless communication protocol, and the input interface 122 can demodulate the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium can include any wireless or wired communication medium, for example, a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium can form part of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium can include routers, switches, base stations, or any other device that can be useful for facilitating communication from the source device 102 to the destination device 116.
[0032] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0033] In some examples, 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 source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to destination device 116. File server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 via any standard data connection, including an internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of the two suitable for accessing the encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming protocol, a download transfer protocol, or a combination thereof.
[0034] The output interface 108 and the input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where the output interface 108 and the input interface 122 include wireless components, the output interface 108 and the input interface 122 may be configured to transmit data (such as encoded video data) according to a cellular communication standard (such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where the output interface 108 includes a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee 5G), etc.). TM ), Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing the functions assigned to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing the functions assigned to video decoder 300 and / or input interface 122.
[0035] The techniques of the present disclosure can be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0036] The input interface 122 of the destination device 116 receives an 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 such as syntax elements defined by the video encoder 200 (which are also used by the video decoder 300): the syntax elements have values that describe the characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays the decoded pictures of the decoded video data to the 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.
[0037] Despite Figure 1 2. Although not shown, in some examples, the video encoder 200 and the video decoder 300 can each be integrated with an audio encoder and / or an audio decoder and can include appropriate MUX-DEMUX units or other hardware and / or software to process a multiplexed stream including both audio and video in a common data stream. If applicable, the MUX-DEMUX units can follow the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0038] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium and, using one or more processors, execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (CODEC) in the corresponding device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device (such as a cellular phone).
[0039] The video encoder 200 and the video decoder 300 may operate in accordance with a video coding standard, such as the ITU-T H.265 (also known as the High Efficiency Video Coding (HEVC) standard) or an extension thereof, such as the multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate in accordance with other proprietary or industry standards, such as the Joint Exploratory Test Model (JEM) or the ITU-T H.266 standard, also known as Versatile Video Coding (VVC). The latest draft of the VVC standard is described in the following document: Bross et al., “Versatile Video Coding (Draft 5)”, Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v8 (hereinafter referred to as “VVC Draft 5”). However, the techniques of the present disclosure are not limited to any particular coding standard.
[0040] Typically, the video encoder 200 and video decoder 300 can perform block-based decoding of a picture. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block can include a two-dimensional matrix of samples of luma and / or chroma data. Typically, the video encoder 200 and video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than decoding the red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and video decoder 300 can decode luma and chroma components, where the chroma components can include both red and blue hue chroma components. In some examples, the video encoder 200 converts the received RGB formatted data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.
[0041] In general, the present disclosure may relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding the data of the picture. Similarly, the present disclosure may relate to the decoding of a block of a picture to include the process of encoding or decoding the data for the block (e.g., prediction and / or residual decoding). A coded video bitstream typically includes a series of values for syntax elements that represent decoding decisions (e.g., decoding modes) and the partitioning of a picture into blocks. Therefore, references to decoding a picture or block should generally be understood as decoding the values of the syntax elements used to form the picture or block.
[0042] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node," and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further partition the PUs and TUs. For example, in HEVC, the residual quadtree (RQT) represents the partitioning of the TUs. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0043] As another example, the video encoder 200 and the video decoder 300 can be configured to operate according to VVC. According to VVC, a video decoder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 can partition the CTU according to a tree structure (such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partitioning types, such as the separation between CU, PU, and TU in HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).
[0044] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partitioning is a partitioning in which a block is split into three sub-blocks. In some examples, the ternary tree or ternary tree partitioning divides the block into three sub-blocks without dividing the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0045] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for the respective chroma components).
[0046] The video encoder 200 and the video decoder 300 can be configured to use quadtree segmentation per HEVC, QTBT segmentation, MTT segmentation, or other segmentation structures. For the purpose of explanation, the technology of the present disclosure is described with respect to QTBT segmentation. However, it should be understood that the technology of the present disclosure can also be applied to video decoders configured to use quadtree segmentation or other types of segmentation.
[0047] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture or a picture coded using three separate color planes and syntax structures for coding the samples. A CTB can be an NxN block of samples (for some value of N), such that dividing components into CTBs is a partitioning. A component is an array or a single sample from one of the three arrays (one luma and two chroma) that make up a picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array that makes up a picture in monochrome format. In some examples, a coding block is an MxN block of samples (for some values of M and N), such that dividing a CTB into coding blocks is a partitioning.
[0048] Blocks (e.g., CTUs or CUs) can be grouped in a picture in various ways. As an example, a brick can refer to a rectangular area of a CTU row within a particular tile in a picture. A tile can be a rectangular area of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of a CTU with a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a rectangular area of a CTU with a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.
[0049] In some examples, a tile may be partitioned into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.
[0050] Tiles in a picture can also be arranged in slices. A slice can be an integer number of tiles of a picture that can be uniquely contained in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes multiple complete tiles or a continuous sequence of complete tiles of only one tile.
[0051] This disclosure may use "NxN" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of the vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. Typically, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Likewise, an NxNCU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.
[0052] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how the CU will be predicted in order to form a prediction block for the CU. The residual information typically represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.
[0053] To predict a CU, the video encoder 200 may typically form a prediction block for the CU through inter-frame prediction or intra-frame prediction. Inter-frame prediction typically refers to predicting a CU based on data of a previously decoded picture, while intra-frame prediction typically refers to predicting a CU based on previously decoded data of the same picture. To perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.
[0054] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).
[0055] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as planar mode and DC mode. Typically, the video encoder 200 selects an intra prediction mode that describes the neighboring samples of the current block (e.g., the block of the CU) based on which the samples of the current block are to be predicted. Assuming that the video encoder 200 decodes CTUs and CUs in raster scan order (from left to right, from top to bottom), such samples may typically be above, above left, or to the left of the current block in the same picture as the current block.
[0056] The video encoder 200 encodes data indicating a prediction mode for the current block. For example, for inter-frame prediction mode, the video encoder 200 may encode data indicating which of various available inter-frame prediction modes to use, as well as motion information for the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using Advanced Motion Vector Prediction (AMVP) or Merge Mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.
[0057] After a prediction, such as intra-frame prediction or inter-frame prediction, for a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents the sample-by-sample difference between the block and a prediction block for the block, which is formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 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., after the first transform. The video encoder 200 generates transform coefficients after applying the one or more transforms.
[0058] As described above, after any transform to produce transform coefficients, the video encoder 200 may perform quantization on the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to potentially reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0059] After quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place transform coefficients with higher energy (and therefore lower frequency) at the front of the vector and transform coefficients with lower energy (and therefore higher frequency) at the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to produce a serialized vector and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values of syntax elements used to describe metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0060] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0061] The video encoder 200 may also generate syntax data (such as block-based syntax data, picture-based syntax data, and sequence-based syntax data) or other syntax data (such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS)) for the video decoder 300, for example, in a picture header, a block header, or a slice header. Similarly, the video decoder 300 may decode such syntax data to determine how to decode the corresponding video data.
[0062] In this way, the video encoder 200 can generate a bitstream that includes coded video data, such as syntax elements describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Ultimately, the video decoder 300 can receive the bitstream and decode the coded video data.
[0063] In general, the video decoder 300 performs a process that is inverse to the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of syntax elements for the bitstream in a manner substantially similar to, but inverse to, the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., a CU) of video data.
[0064] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as a deblocking process to reduce visual artifacts along block boundaries.
[0065] According to the technology of the present disclosure, the video encoder 200 can be configured to determine the first picture to be removed from the DPB and encode the first syntax element (e.g., DPB index) indicating the first picture to be removed from the DPB. The video encoder 200 can also encode and reconstruct the current picture and store the reconstructed current picture in the DPB. In a reciprocal manner, the video decoder 300 can be configured to decode the first syntax element indicating the first picture to be removed from the DPB, remove the first picture from the DPB, decode the current picture, and store the decoded current picture in the DPB.
[0066] In general, the present disclosure may involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the transmission of values for syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values for syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As described above, source device 102 may transmit the bitstream to destination device 116 in substantially real time or in non-real time (such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116).
[0067] Figure 2A and 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splits, while dashed lines indicate binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates a horizontal split and 1 indicates a vertical split. For quadtree splits, since the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the split type. Thus, the video encoder 200 can encode, and the video decoder 300 can decode, the following: syntax elements (such as split information) for the region tree level (i.e., solid lines) of the QTBT structure 130, and syntax elements (such as split information) for the prediction tree level (i.e., dashed lines) of the QTBT structure 130. The video encoder 200 may encode video data (such as prediction and transform data) for the CU represented by the terminal leaf node of the QTBT structure 130 , and the video decoder 300 may decode the video data.
[0068] generally, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).
[0069] The root node of the QTBT structure corresponding to the CTU can have four child nodes at the first level of the QTBT structure, each of which can be split according to a quadtree partitioning. That is, the nodes at the first level are leaf nodes (no child nodes) or have four child nodes. The example of the QTBT structure 130 represents such nodes as including parent nodes and child nodes with solid branches. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), these nodes can be further partitioned by the corresponding binary tree. The binary tree splitting of a node can be iterated until the node resulting from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such nodes as having dashed branches. The binary tree leaf nodes are called decoding units (CUs), which are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further partitioning. As discussed above, CUs can also be referred to as "video blocks" or "blocks."
[0070] In one example of a QTBT partitioning structure, the CTU size is set to 128x128 (luminance sample and two corresponding 64x64 chroma samples), MinQTSize is set to 16x16, MaxBTSize is set to 64x64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate quadtree leaf nodes. Quadtree leaf nodes can have sizes from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the leaf quadtree node is 128x128, then since the size exceeds MaxBTSize (i.e., 64x64 in this example), the leaf quadtree node will not be further split by the binary tree. Otherwise, the leaf quadtree node will be further split by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical splitting is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.
[0071] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3This is provided for purposes of explanation and should not be considered limiting of the techniques generally exemplified and described in this disclosure. For purposes of explanation, this disclosure describes a video encoder 200 based on techniques of VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265). However, the techniques of this disclosure may be performed by video encoding devices configured for other video coding standards.
[0072] exist Figure 3 In the example of FIG, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any one or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 can be implemented in one or more processors or in processing circuitry. For example, the units of the video encoder 200 can be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Furthermore, the video encoder 200 can include additional or alternative processors or processing circuitry to perform these and other functions.
[0073] 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 from, for example, the video source 104 ( Figure 1 ) receives video data stored in the video data memory 230. The DPB 218 can act as a reference picture memory that stores reference video data for use when the video encoder 200 predicts subsequent video data. The video data memory 230 and the DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 can be provided by the same memory device or a separate memory device. In various examples, the video data memory 230 can be on-chip with other components of the video encoder 200 (as shown), or off-chip relative to those components.
[0074] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to the video encoder 200 (unless specifically described as such), or to memory external to the video encoder 200 (unless specifically described as such). Rather, references to video data memory 230 should be understood as reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .
[0075] Shown Figure 3 The various units of the video encoder 200 are described to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality with respect to the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of these units can be different circuit blocks (fixed-function or programmable), and in some examples, one or more of these units can be integrated circuits.
[0076] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store instructions (eg, object code) for software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0077] The video data memory 230 is configured to store the received video data. The video encoder 200 can retrieve the picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 can be the original video data to be encoded.
[0078] 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 that perform video prediction according to other prediction modes. For example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, and the like.
[0079] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values for such combinations. The encoding parameters may include the partitioning of a CTU into CUs, the prediction mode used for a CU, the transform type used for the residual data of a CU, the quantization parameter used for the residual data of a CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.
[0080] The video encoder 200 may partition a picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs into a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may partition the CTUs according to the tree structure to form one or more CUs. Such CUs may also be generally referred to as "video blocks" or "blocks."
[0081] Typically, mode select unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or, in HEVC, the overlapping portions of a PU and TU). To inter-predict the current block, motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in DPB 218). Specifically, motion estimation unit 222 may calculate values representing how similar potential reference blocks are to the current block, such as based on sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), and the like. Motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations, indicating the reference block that most closely matches the current block.
[0082] 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 the current picture. Motion estimation unit 222 may then provide the motion vectors to motion compensation unit 224. For example, for unidirectional inter prediction, motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, motion estimation unit 222 may provide two motion vectors. Motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, motion compensation unit 224 may interpolate values for the prediction block based on one or more interpolation filters. Furthermore, for bidirectional inter prediction, motion compensation unit 224 may retrieve data for two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or a weighted average.
[0083] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values of adjacent samples and pad these calculated values across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of the adjacent samples of the current block and generate a prediction block to include the obtained average for each sample of the prediction block.
[0084] Mode selection unit 202 provides the prediction block to residual generation unit 204. Residual generation unit 204 receives the original, unencoded version of the current block from video data memory 230 and the prediction block from mode selection unit 202. Residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, residual generation unit 204 may also determine the difference between sample values in the residual block to generate the residual block using residual differential pulse coded modulation (RDPCM). In some examples, residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0085] In the example where the mode select unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As noted above, the size of a CU may refer to the size of the luma coding block of the CU, while the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming a particular CU size of 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra prediction, and symmetrical PU sizes of 2Nx2N, 2NxN, Nx2N, NxN, or similar sizes for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter prediction.
[0086] In an example where mode select unit 202 does not further partition a CU 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 2Nx2N, 2NxN, or Nx2N.
[0087] For other video coding techniques (such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few), mode selection unit 202 generates a prediction block for the current block being encoded via the corresponding unit associated with the coding technique. In some examples (such as palette mode coding), mode selection unit 202 may not generate a prediction block, but instead generate syntax elements that indicate how to reconstruct the block based on the selected palette. In such a mode, mode selection unit 202 may provide these syntax elements to entropy coding unit 220 for encoding.
[0088] As described above, the residual generation unit 204 receives video data for a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0089] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, the 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, the transform processing unit 206 may perform multiple transforms on the residual block, such as a primary transform and a secondary transform (such as a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0090] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.
[0091] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (albeit potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0092] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0093] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks of the current picture in the DPB 218 to perform intra-frame prediction on other blocks in the current picture.
[0094] According to the techniques of this disclosure, as will be explained in more detail below, the video encoder 200 can be configured to determine a first picture to be removed from the DPB 218 and encode a first syntax element (e.g., a DPB index) indicating the first picture to be removed from the DPB at the video decoder 300. The video encoder 200 can signal the first syntax element to the video decoder 300 in the coded video bitstream. The video encoder 200 can also encode and reconstruct the current picture and store the reconstructed current picture in the DPB 218.
[0095] In general, entropy coding unit 220 may entropy encode syntax elements received from other functional components of video encoder 200. For example, entropy coding unit 220 may entropy encode quantized transform coefficient blocks from quantization unit 208. As another example, entropy coding unit 220 may entropy encode prediction syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from mode selection unit 202. Entropy coding unit 220 may perform one or more entropy encoding operations on syntax elements, another example of video data, to generate entropy-encoded data. For example, entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy encoding operation on the data. In some examples, entropy coding unit 220 may operate in a bypass mode in which syntax elements are not entropy encoded.
[0096] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required for reconstructing blocks of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0097] The above operations are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.
[0098] In some examples, the operations performed for luma coding blocks do not need to be repeated for chroma coding blocks. As an example, the operations for identifying the motion vector (MV) and reference picture for the luma coding block do not need to be repeated to identify the MV and reference picture for the chroma coding block. Specifically, the MV for the luma coding block can be scaled to determine the MV for the chroma blocks, and the reference picture can be the same. As another example, the intra prediction process can be the same for luma coding blocks and chroma coding blocks.
[0099] The video encoder 200 represents an example of a device configured to encode video data. The video encoder 200 may, for example, include a memory configured to store video data and include one or more processing units that are implemented in a circuit and configured to determine a first picture to be removed from the DPB and encode a first syntax element (e.g., a DPB index) indicating the first picture to be removed from the DPB. The first syntax element may be encoded in the coded video bitstream. The video encoder 200 may also encode and reconstruct the current picture and store the reconstructed current picture in the DPB.
[0100] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 This is provided for purposes of explanation and does not limit the techniques generally illustrated and described in this disclosure. For purposes of explanation, this disclosure describes a video decoder 300 based on techniques of VVC (under development, ITU-T H.266) and HEVC (ITU-T H.265). However, the techniques of this disclosure may be performed by video coding devices configured for other video coding standards.
[0101] exist Figure 4In the example of FIG, 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 CPB memory 320, entropy decoding unit 302, prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, filter unit 312, and DPB 314 may be implemented in one or more processors or processing circuitry. For example, the units of video decoder 300 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Furthermore, video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.
[0102] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include an addition unit that performs prediction according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0103] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be encoded from computer readable medium 110 ( Figure 1 ) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. Furthermore, CPB memory 320 may store video data other than syntax elements for decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, which video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures in the coded video bitstream. CPB memory 320 and DPB 314 may be formed from any of a variety of memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.
[0104] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may utilize CPB memory 320 to store data as discussed above. Similarly, when some or all of the functions of video decoder 300 are implemented in software to be executed by the processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.
[0105] Shown Figure 4 The various units shown in FIG. 300 help understand the operations performed by the video decoder 300. These units can be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3 , fixed-function circuitry refers to circuits that provide specific functionality and are pre-set with respect to the operations that can be performed. Programmable circuitry refers to circuits that can be programmed to perform various tasks and provide flexible functionality in terms of the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuitry can execute software instructions (e.g., to receive parameters or output parameters), but the type of operations performed by the fixed-function circuitry is generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of these units may be integrated circuits.
[0106] The video decoder 300 may include an ALU, an EFU, digital circuits, analog circuits, and / or a programmable core formed by programmable circuits. In examples where the operation of the video decoder 300 is performed by software executed on the programmable circuits, on-chip or off-chip memory may store instructions (e.g., object code) of the software that the video decoder 300 receives and executes.
[0107] The entropy decoding unit 302 may receive the encoded video data from the CPB and perform entropy decoding on the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0108] Typically, the video decoder 300 reconstructs a picture block by block. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0109] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, similarly, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block comprising the transform coefficients.
[0110] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.
[0111] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 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 the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 may generally generate a prediction block in the same manner as described for motion compensation unit 224 ( Figure 3 ) is performed in a manner substantially similar to that described in the foregoing.
[0112] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. The intra-prediction unit 318 may generally generate a prediction block in the same manner as described for the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in a manner substantially similar to that described in the preceding claims. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.
[0113] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
[0114] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.
[0115] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As discussed above, the DPB 314 may provide reference information (such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output a decoded picture (e.g., decoded video) from the DPB 314 for use in applications such as Figure 1 Subsequent presentation on a display device such as display device 118.
[0116] According to the techniques of this disclosure, as will be described in more detail below, the video decoder 300 can be configured to decode a syntax element (e.g., a DPB index) that indicates a picture to be removed from the DPB 314. In response to the value of the syntax element, the video decoder 300 can be configured to remove the picture associated with the value of the syntax element from the DPB 314. The video decoder 300 can then decode the current picture and store the decoded current picture in the DPB 314.
[0117] In HEVC and VVC, in order to indicate which pictures can be removed from the decoded picture buffer (DPB), the video encoder 200 and the video decoder 300 can perform a marking process on the pictures included in the reference picture list. For example, the video encoder 200 and the video decoder 300 can be configured to mark (e.g., perform a marking process) pictures that are not included in one or more reference picture lists (e.g., reference picture list 0 and reference picture list 1) as "unused for reference". The video encoder 200 and the video decoder 300 can be configured to remove pictures that are marked as "unused for reference" and do not need to be output from the DPB. This is sometimes referred to as a squeeze process. The squeeze process is required to free up memory in the DPB in order to store the currently decoded pictures.
[0118] In some examples, the video encoder 200 and the video decoder 300 can be configured to invoke the picture marking process for the first slice in a picture. For this reason, HEVC defines a constraint that the contents of the reference picture lists in all slices of a picture should be identical. That is, each slice in a picture must have the same picture in the reference picture list.
[0119] The above-mentioned marking and squeezing techniques have several drawbacks. For example, if the video data is decoded according to HEVC, the video encoder 200 and the video decoder 300 may perform a picture marking process on all pictures included in the reference picture list to free up space in the DPB for the currently decoded picture. However, based on the above-mentioned constraints, different slices in the same picture cannot have reference picture lists that include different reference pictures, because the marking process is only invoked for the first slice in the picture and squeezing (e.g., removing the picture from the DPB) is based on the fact that the marking process is invoked only for the first slice in the picture.
[0120] Reference Image List Constraints
[0121] In one example of the present disclosure, the video encoder 200 and the video decoder 300 are configured to perform a marking and squeezing process for the DPB based on relaxed constraints relative to the above-mentioned HEVC constraints. In one example, the video encoder 200 and the video decoder 300 are configured to perform a marking and squeezing process under the constraint that only the first slice in a picture should be included in the reference picture lists (in RefPicList0, RefPicList1, or both) for all pictures used as references in all slices of the same picture. In this case, the video encoder 200 and the video decoder 300 can perform a marking process on these reference picture lists, and all reference pictures required for all slices in the picture will remain in the DPB (e.g., DPB 218 and / or DPB 314).
[0122] A potential advantage of this approach is that subsequent slices in the same picture (the second and subsequent slices in decoding order) may have shorter reference picture lists. This can result in less overhead for signaling, rather than signaling all reference pictures in every slice of a picture.
[0123] The following examples of the present disclosure may be described with reference to the video encoder 200 signaling various syntax elements. It should be understood that the following examples also encompass the video decoder 300 receiving, parsing, and decoding such syntax elements, as well as performing any decoding processes based on the values of the syntax elements. Furthermore, generally, the term "signaling" a syntax element may refer to encoding the syntax element. The term "decoding" may generally refer to both encoding and decoding.
[0124] DPB Index
[0125] In another example of the present disclosure, the video encoder 200 and the video decoder 300 do not use the reference picture list for the squeeze process. As described above, in order to decode or reconstruct a picture, it may be necessary to free up space in the DPB 218 and / or DPB 314 to store the currently reconstructed / decoded picture. In this example of the present disclosure, the video encoder 200 can be configured to explicitly indicate which picture and / or memory location in the DPB 218 and / or DPB 314 to release (i.e., the picture to be removed from the DPB and / or the memory location to be marked as free for use), for example, using syntax elements.
[0126] Typically, in one example of the present disclosure, the video encoder 200 may be configured to encode and signal a first syntax element indicating which picture in the DPB may be removed. The video decoder 300 may be configured to decode the first syntax element indicating the picture to be removed from the DPB, and may remove the picture from the DPB. Removing a picture from the DPB may include overwriting the picture from the DPB, marking a portion of a memory currently storing the picture to be removed as available for overwriting, deleting data in a portion of a memory currently storing the picture to be removed, or freeing up memory space for future writing of data. The video decoder 300 may also be configured to decode the current picture and store the decoded current picture in the DPB.
[0127] For example, the video encoder 200 may signal an index (e.g., dpb_idx) that indicates which picture in the DPB may be released or replaced by the current picture. In one example, dpb_idx should not indicate pictures in the DPB that may not be used for reference but are still needed for output. That is, the video encoder 200 may not signal dpb_idx for any pictures that are still needed for output, even if such pictures are not used as reference. Thus, in the general example above, the first syntax element is the DPB index (dpb_idx), and wherein each value of the DPB index is associated with a specific picture in the decoded picture buffer.
[0128] For example, if the DPB size is 6 pictures, dpb_idx may have a value from 0 to 5. In this example, if the video encoder 200 signals that the dpb_idx value is equal to 2, the video decoder 300 decodes dpb_idx and then replaces and / or squeezes out the third picture in the DPB based on the value of dpb_idx being 2. Other pictures may remain in the DPB.
[0129] Signaling which pictures to keep in the DPB (by including them in the reference picture list) has an associated overhead, because some pictures are only signaled in the reference picture list of the current picture to be kept (e.g., carried forward) for subsequent pictures, even if these pictures are not used for inter-frame prediction of the current picture. In the techniques of the present disclosure, the video encoder can explicitly signal the index of the picture that can be replaced or squeezed out of the DPB (e.g., the DPB index). In this way, only the pictures actually used for reference need to be signaled in the reference picture list. In this way, overhead signaling is reduced and decoding efficiency is improved.
[0130] The video encoder 200 can be configured to signal the DPB index (dpb_idx) in any parameter set, slice header, tile header, or elsewhere. Depending on the syntax structure of the signaled DPB index (dpb_idx), the video encoder 200 and the video decoder 300 can be configured to operate according to the constraint that the signaled DPB index (dpb_idx) should be the same within the same picture, because once reconstructed / decoded, the picture will be placed in the DPB and only one picture currently in the DPB needs to be squeezed out. For example, if the DPB index (dpb_idx) is signaled in the slice header, the constraint can be expressed so that all slices of the same picture should have the same DPB index (dpb_idx) value.
[0131] In one example, when configured to use the DPB index (dpb_idx), as described above, the video encoder 200 and the video decoder 300 can use truncated binarization to decode the value of the DPB index (dpb_idx) because the DPB size is known and the maximum value of the DPB index (dpb_idx) is equal to the DPB size minus 1. In one example, the video encoder 200 and the video decoder 300 can use truncated binary code to decode the value of the DPB index (dpb_idx).
[0132] In other examples of the present disclosure, for some pictures, the video encoder 200 may encode and signal multiple DPB indices (e.g., multiple values of dpb_idx) to indicate which of the multiple pictures to squeeze (e.g., remove) from the DPB if additional storage space is required.
[0133] In some examples, the video encoder 200 and the video decoder 300 are configured to decode the index of the picture to be removed from the DPB using a DPB index syntax element called dpb_idx_plus1. When the value of dpb_idx_plus1 is greater than 0, dpb_idx_plus1 minus 1 specifies the index of the picture in the DPB to be removed. The value of dpb_idx_plus1 equal to 0 specifies that no picture in the DPB is removed. The value of dpb_idx_plus1 should be in the range of 0 to NumBufsInDpb (inclusive), where NumBufsInDpb specifies the number of picture buffers in the DPB. The value of NumBufsInDpb can be equal to the maximum number of buffers that can be stored in the DPB, which is based on one or more of the following: picture size, DPB size, time ID used, etc. In other examples, the video encoder 200 and the video decoder 300 may operate according to additional constraints to ensure that the value of NumBufsInDpb does not exceed a DPB-derived value for a particular operating point of the video decoder 300 (e.g., based on picture size, temporal ID, profile, layer, level, etc.).
[0134] In some examples, the video encoder 200 can use a value other than a DPB index to specify the picture to be removed. For example, the video encoder 200 can use a value related to the picture order count (POC) value of the picture to be removed to specify the picture to be removed. For example, such a value can be the least significant bit (LSB) of the POC of the picture to be removed, a deltaPOC value from the current picture (e.g., the difference between the POC of the current picture and the POC of the picture to be removed), a value derived from the POC LSB of the picture to be removed, or a combination thereof.
[0135] Multiple image removal
[0136] In some examples, the video encoder 200 can be configured to signal a syntax element indicating multiple DPB pictures to be removed. This may occur when the number of buffers that the DPB can store changes suddenly (for example, when a picture resolution change occurs). The video encoder 200 can signal multiple DPB index values (for example, dpb_idx[] values). The video encoder 200 can also signal a syntax element indicating the number of DPB indexes to be signaled (for example, NumDpbIdxsToRemove). For i in the range of 0 to NumDpbIdxsToRemove–1 (inclusive), the video encoder 200 can signal the value of dpb_idx[i].
[0137] In some examples, dpb_idx[i] refers to the index of the picture in the DPB before any removal occurs for the current picture. In other examples, dpb_idx[0] refers to the index before any removal occurs for the current picture, and dpb_idx[i] refers to the index after removal of the picture as indicated by dpb_idx[j] (j = 0..i-1 (inclusive)).
[0138] In some examples, one of the buffers in the DPB indicated by one of dpb_idx[i] may be used to store the current picture. This value may be predetermined (eg, i=0) or may be determined by other syntax elements in the bitstream.
[0139] In some examples, when a picture (eg, the current picture) is inserted at that position in the DPB after removing the picture specified by the DPB index, the indices of the remaining pictures in the buffer may not change.
[0140] Image Tags
[0141] In addition, in another example of the present disclosure, the picture marking process can be removed (e.g., marking as "used for reference" or "unused for reference") because it is known which picture to squeeze out, as indicated by dpb_idx. That is, the video decoder 300 is configured not to perform the picture marking process.
[0142] In yet another example of the present disclosure, the picture marking process for marking pictures as "for short-term reference" and "for long-term reference" can also be removed. However, in some video codecs, if a reference picture is marked as a long-term reference picture, motion vector scaling is typically not performed. To maintain this functionality of motion vector scaling when picture marking is removed, the video encoder 200 can signal a flag that indicates whether motion vector scaling is performed for the reference picture pointed to by the motion vector.
[0143] Number of zero entries in the reference picture list
[0144] In some examples, the size of the reference picture list may be made equal to 0 for all slice types. In this case, inter prediction cannot be used even for non-I slices. Non-I slices are slices for which inter prediction is generally allowed. In I slices, only intra prediction is performed. However, even if not used, syntax signaling related to inter prediction, such as the skip flag, merge index, motion vector predictor (MVP) flag, adaptive motion vector resolution (AMVR) flag, inter prediction direction index (e.g., inter_pred_idc(interDir)), and affine flags (e.g., inter_affine_flag_, prediction mode flags, and other such syntax elements) may be signaled.
[0145] In one example of the present disclosure, when the reference picture list size is 0, the video encoder 200 may conditionally signal inter-prediction related signaling but exclude syntax signaling related to intra-block copy (IBC) that should be allowed.
[0146] In some examples, when the reference picture list size is 0, then:
[0147] The skip flag (cu_skip_flag) is signaled only for block sizes that allow IBC mode and when the advanced tool flag (e.g., sps_ibc_enabled_flag) is enabled. For example, for block sizes from 4x4 to 64x64, the video encoder 200 signals cu_skip_flag. For 128xN and Nx128 blocks, cu_skip_flag is not signaled.
[0148] • The IBC prediction mode flag (pred_mode_ibc_flag) is not signaled, and if inter mode is signaled, the prediction mode flag is inferred to be IBC. In another example, the IBC prediction mode flag (pred_mode_ibc_flag) is signaled to distinguish intra mode from IBC mode.
[0149] When IBC mode is enabled and the IBC High Level Syntax (HLS) flag is enabled (eg, sps_ibc_enabled_flag), one or more merge flags (eg, general_merge_flag or merge_flag) may be signaled for a block.
[0150] In another example, the video encoder 200 and the video decoder 300 can be configured to operate according to the following constraint: for non-I slices, a reference picture list of size 0 cannot be signaled. In another example of a constraint, a reference picture list size of 0 is not applied to P slices and B slices (however, signaling size 0 is possible). The size of the reference picture list can represent the size of the active reference picture list, that is, the list of reference pictures actually used in the slice.
[0151] Additionally, for these slices, the reference picture list size minus 1 is signaled since the size cannot be 0. In other words, the reference picture list size signaling depends on the slice type.
[0152] Figure 5 1 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and 3 ) is described, but it should be understood that other devices may be configured to perform the same Figure 5 A similar approach to the one in the previous section.
[0153] In this example, the video encoder 200 initially predicts a current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, unencoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy coded data for the block (360).
[0154] Figure 6 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 4 ) is described, but it should be understood that other devices may be configured to perform the same Figure 6 A similar approach to the one in the previous section.
[0155] The video decoder 300 may receive entropy-coded data for a current block (e.g., 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 the prediction information for the current block and reproduce the coefficients of the residual block (372). The video decoder 300 may predict the current block (374), e.g., by calculating a prediction block for the current block using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block. The video decoder 300 may then inverse scan the reproduced coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block (380).
[0156] Figure 7 is a flowchart illustrating an example decoded picture buffer management method at a video encoder 200 according to the techniques of the present disclosure. In one example of the present disclosure, the video encoder 200 may be configured to determine the content to be decoded from the DPB (e.g., Figure 3 Video encoder 200 may encode a first syntax element indicating the first picture to be removed from the DPB (400). Video encoder 200 may encode a first syntax element indicating the first picture to be removed from the DPB (402). Video encoder 200 may encode and reconstruct the current picture (404) and store the reconstructed current picture in the DPB (406).
[0157] In one example, the first syntax element is a DPB index (dpb_idx), where each value of the DPB index is associated with a specific picture in the decoded picture buffer. In another example, the first syntax element is a DPB index plus 1 (dpb_idx_plus1). Based on the value of dpb_idx_plus1 being greater than 0, dpb_idx_plus1 minus 1 specifies the index of the specific picture in the decoded picture buffer to be removed. Based on the value of dpb_idx_plus1 being equal to 0, no picture in the decoded picture buffer will be removed.
[0158] In another example of the present disclosure, the first syntax element indicates the first picture to be removed from the DPB using a value related to a picture order count (POC) value of the first picture.
[0159] In another example of the present disclosure, the first picture is not used for reference and is not needed for output. That is, if the first picture is still needed for output, the video encoder 200 will not indicate the first picture to be removed from the DPB.
[0160] In one example of the present disclosure, the video encoder 200 may be configured to encode the first syntax element using truncated binarization.
[0161] In another example of the present disclosure, the video encoder 200 may be configured to indicate a plurality of pictures to be removed from the DPB. In this example, the video encoder 200 may encode a second syntax element indicating the number of pictures to be removed from the DPB, and may encode a first syntax element corresponding to each of the number of pictures, the first syntax element indicating the corresponding picture to be removed from the DPB.
[0162] Figure 8 is a flow chart illustrating an example decoded picture buffer management method at a video decoder according to techniques of the present disclosure. In one example of the present disclosure, the video decoder 300 may be configured to decode a first syntax element indicating a first picture to be removed from the DPB (450), and may remove the first picture from the DPB (452). The video decoder 300 may also decode a current picture (454) and store the decoded current picture in the DPB (456).
[0163] In one example, the first syntax element is a DPB index (dpb_idx), where each value of the DPB index is associated with a specific picture in the decoded picture buffer. In another example, the first syntax element is a DPB index plus 1 (dpb_idx_plus1). Based on the value of dpb_idx_plus1 being greater than 0, dpb_idx_plus1 minus 1 specifies the index of the specific picture in the decoded picture buffer to be removed. Based on the value of dpb_idx_plus1 being equal to 0, no picture in the decoded picture buffer will be removed.
[0164] In another example of the present disclosure, the first syntax element indicates the first picture to be removed from the DPB using a value related to a picture order count (POC) value of the first picture.
[0165] In another example of the present disclosure, the first picture is not used for reference and is not needed for output. That is, if the first picture is still needed for output, the video encoder 200 will not indicate the first picture to be removed from the DPB.
[0166] In one example of the present disclosure, the video decoder 300 may be configured to decode the first syntax element using truncated binarization.
[0167] In another example of the present disclosure, the video decoder 300 may be configured to remove multiple pictures from the DPB. For example, the video decoder 300 may be configured to decode a second syntax element indicating the number of pictures to be removed from the DPB, and decode a corresponding first syntax element for each of the number of pictures, the corresponding first syntax element indicating the corresponding picture to be removed from the DPB. The video decoder 300 may then remove the corresponding picture indicated by the corresponding first syntax element from the DPB.
[0168] In another example of the present disclosure, when a picture is removed from the DPB based on an explicitly signaled syntax element (eg, DPB index), the video decoder 300 may be configured to not perform the picture marking process.
[0169] In another example of the present disclosure, the video decoder 300 may be configured to conditionally decode syntax elements related to inter-prediction based on a reference picture list size being greater than zero.
[0170] In another example of the present disclosure, the video decoder 300 may be configured to decode one or more pictures, wherein the one or more pictures include a first picture, and store the one or more decoded pictures in the DPB. The video decoder 300 may also be configured to use at least a subset of the one or more decoded pictures stored in the DPB to form a reference picture list, and use the inter-frame prediction process and the reference picture list to decode the current picture.
[0171] Other illustrative examples of the disclosure are described below.
[0172] Example 1 - A method of coding video data, the method comprising: coding a syntax element indicating one or more pictures to be removed from a decoded picture buffer; and removing the one or more pictures from the decoded picture buffer according to the syntax element.
[0173] Example 2 - The method of Example 1, wherein the syntax element is dpb_idx.
[0174] Example 3 - The method of Example 2, wherein coding the syntax element comprises coding dpb_idx using truncated binarization.
[0175] Example 4 - The method of Example 1, wherein the syntax element is dpb_idx_plus 1, wherein, if the value of dpb_idx_plus1 is greater than 0, dpb_idx_plus1 minus 1 specifies the index of the picture in the decoded picture buffer to be removed, and dpb_idx_plus1 equal to 0 specifies that no picture in the decoded picture buffer will be removed.
[0176] Example 5 - The method of Example 1, wherein decoding the syntax element indicating the one or more pictures to be removed from the decoded picture buffer includes decoding syntax elements indicating multiple pictures to be removed from the decoded picture buffer.
[0177] Example 6 - The method of Example 1, further comprising: not performing a picture tagging process.
[0178] Example 7 - The method of Example 1, further comprising conditionally not decoding syntax elements related to inter-frame prediction when the reference picture list size is 0.
[0179] Example 8 - The method of any of Examples 1-7, wherein transcoding comprises decoding.
[0180] Example 9 - A method according to any of Examples 1-7, wherein decoding includes encoding.
[0181] Example 10 - An apparatus for decoding video data, the apparatus comprising one or more means for performing the method according to any of Examples 1-9.
[0182] Example 11 - The apparatus of Example 10, wherein the one or more units include one or more processors implemented in circuitry.
[0183] Example 12 - The apparatus of any one of Examples 10 and 11, further comprising a memory for storing the video data.
[0184] Example 13 - The apparatus of any of Examples 10-12, further comprising: a display configured to display the decoded video data.
[0185] Example 14 - A device according to any of Examples 10-13, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0186] Example 15 - The apparatus of any of Examples 10-14, wherein the apparatus comprises a video decoder.
[0187] Example 16 - The apparatus of any of Examples 10-15, wherein the apparatus comprises a video encoder.
[0188] Example 17 - A computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the method of any of Examples 1-7.
[0189] Example 18 - An apparatus for encoding video data, the apparatus comprising: a unit for decoding a syntax element indicating one or more pictures to be removed from a decoded picture buffer; and a unit for removing the one or more pictures from the decoded picture buffer according to the syntax element.
[0190] Example 19 - Any combination of the techniques described in this disclosure.
[0191] It will be appreciated that, depending on the examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to implement the techniques). Furthermore, in some examples, actions or events may be performed concurrently rather than sequentially, for example, through multithreading, interrupt handling, or multiple processors.
[0192] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media such as data storage media or communication media, including any media that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to obtain instructions, codes, and / or data structures for implementing the techniques described in this disclosure. A computer program product may include computer-readable media.
[0193] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (e.g., infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (e.g., infrared, radio and microwave) is included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are instead directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks and Blu-ray discs, wherein disks typically copy data magnetically, while optical discs use lasers to copy data optically. Combinations of the above should also be included within the scope of computer-readable media.
[0194] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Furthermore, the techniques may be implemented entirely in one or more circuits or logic elements.
[0195] The techniques of the present disclosure can be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this disclosure to emphasize functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Specifically, as described above, the various units can be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0196] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: decoding a first syntax element from a coded video bitstream, the first syntax element explicitly indicating whether to remove a first picture from a decoded picture buffer (DPB), wherein, based on a value of the first syntax element being greater than 0, the first syntax element specifies an index of a particular picture in the decoded picture buffer to be removed, and wherein, based on the value of the first syntax element being equal to 0, the first syntax element specifies that no pictures in the decoded picture buffer are to be removed; determining whether to remove the first picture from the DPB based on the value of the first syntax element; Decode the current picture; and storing the decoded current picture in the DPB, The first syntax element is the DPB index plus 1 syntax element dpb_idx_plus1.
2. The method according to claim 1, wherein The first picture is not used for reference and does not need to be output.
3. The method according to claim 1, wherein Decoding the first syntax element includes: The first syntax element is decoded using truncated binarization.
4. The method according to claim 1, further comprising: decoding a second syntax element indicating a number of pictures to be removed from the DPB; decoding a corresponding first syntax element for each picture of the number of pictures, the corresponding first syntax element indicating the corresponding picture to be removed from the DPB; as well as The corresponding picture indicated by the corresponding first syntax element is removed from the DPB.
5. The method according to claim 1, further comprising: The image tagging process is not performed.
6. The method according to claim 1, further comprising: Syntax elements related to inter-prediction are conditionally decoded based on the reference picture list size being greater than zero.
7. The method according to claim 1, further comprising: decoding one or more pictures, wherein the one or more pictures include the first picture; and One or more decoded pictures are stored in the DPB.
8. The method according to claim 7, further comprising: forming a reference picture list using at least a subset of one or more decoded pictures stored in the DPB; as well as The current picture is decoded using an inter prediction process and the reference picture list.
9. The method according to claim 1, further comprising: Displays the decoded current picture.
10. A device configured to decode video data, the device comprising: a memory configured to store video data; as well as one or more processors implemented in circuitry and in communication with the memory, the one or more processors configured to: decoding a first syntax element from a coded video bitstream, the first syntax element explicitly indicating whether to remove a first picture from a decoded picture buffer (DPB), wherein, based on a value of the first syntax element being greater than 0, the first syntax element specifies an index of a particular picture in the decoded picture buffer to be removed, and wherein, based on the value of the first syntax element being equal to 0, the first syntax element specifies that no pictures in the decoded picture buffer are to be removed; determining whether to remove the first picture from the DPB based on the value of the first syntax element; Decode the current picture; and storing the decoded current picture in the DPB, The first syntax element is the DPB index plus 1 syntax element dpb_idx_plus1.
11. The apparatus according to claim 10, wherein The first picture is not used for reference and does not need to be output.
12. The apparatus according to claim 10, wherein To decode the first syntax element, the one or more processors are further configured to: The first syntax element is decoded using truncated binarization.
13. The apparatus according to claim 10, wherein The one or more processors are further configured to: decoding a second syntax element indicating a number of pictures to be removed from the DPB; decoding a corresponding first syntax element for each picture of the number of pictures, the corresponding first syntax element indicating the corresponding picture to be removed from the DPB; as well as The corresponding picture indicated by the corresponding first syntax element is removed from the DPB.
14. The apparatus according to claim 10, wherein The one or more processors are further configured to: The image tagging process is not performed.
15. The apparatus according to claim 10, wherein The one or more processors are further configured to: Syntax elements related to inter-prediction are conditionally decoded based on the reference picture list size being greater than zero.
16. The apparatus according to claim 10, wherein The one or more processors are further configured to: decoding one or more pictures, wherein the one or more pictures include the first picture; and One or more decoded pictures are stored in the DPB.
17. The apparatus according to claim 16, wherein The one or more processors are further configured to: forming a reference picture list using at least a subset of one or more decoded pictures stored in the DPB; as well as The current picture is decoded using an inter prediction process and the reference picture list.
18. The apparatus of claim 10, further comprising: A display configured to display the decoded current picture.
19. A non-transitory computer-readable medium storing instructions that, when executed, cause one or more processors configured to decode video data to: A first syntax element is decoded from a coded video bitstream, the first syntax element explicitly indicating whether a first picture is to be removed from a decoded picture buffer (DPB), wherein The first syntax element specifies an index of a particular picture in the decoded picture buffer to be removed based on a value of the first syntax element being greater than 0, and wherein, based on the value of the first syntax element being equal to 0, the first syntax element specifies that no pictures in the decoded picture buffer are to be removed; determining whether to remove the first picture from the DPB based on the value of the first syntax element; Decode the current picture; and storing the decoded current picture in the DPB, The first syntax element is the DPB index plus 1 syntax element dpb_idx_plus1.
Citation Information
Patent Citations
Method of Decoded Picture Buffer Management for Intra Block Copy Mode
US20180160122A1