Most Probable Modes for Intra Prediction in Video Coding
Patent Information
- Application Number
- JP2023532812
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-22
- Filing Date
- 2021-11-23
- Publication Date
- 2024-11-20
- Estimated Expiration
- 2041-11-23
AI Technical Summary
Existing video coding techniques face inefficiencies in determining intra prediction modes, particularly in constructing most probable mode lists, which affect the overall coding efficiency of video data.
The techniques involve constructing a total most probable mode list with N entries, including intra-prediction modes, and deriving a first-order and second-order most probable mode lists by offsetting modes from neighboring blocks, improving the generation and selection of intra prediction modes.
This approach enhances the coding efficiency by optimizing the determination of intra prediction modes, leading to improved compression and decoding performance in video encoding and decoding processes.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority to U.S. Application No. 17 / 456,080, filed November 22, 2021, and U.S. Provisional Application No. 63 / 131,115, filed December 28, 2020, the entire contents of each of which are incorporated herein by reference. U.S. Application No. 17 / 456,080, filed November 22, 2021, claims the benefit of U.S. Provisional Application No. 63 / 131,115, filed December 28, 2020.
[0002] TECHNICAL FIELD This disclosure relates to video encoding and decoding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Bross et al., "Versatile Video Coding (Draft 10)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 18th Meeting: Remote Conference, June 22-July 1, 2020, JVET-S2001-vA [Non-Patent Document 2] J. Chen, Y. Ye, and S.-H. Kim, "Algorithm description for Versatile Video Coding and Test Model 9 (VTM 9)," JVET-R2002, April 2020. [Non-Patent Document 3] A. Ramasubramonian et al., "CE3-3.1.1: Two MPM modes and shape dependency (Test 3.1.1)", Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 11th Meeting: Ljubljana, Slovenia, July 10-18, 2018. Summary of the Invention [Means for solving the problem]
[0006] In general, this disclosure describes techniques for determining a most probable mode (MPM) list for intra prediction and determining an intra prediction mode from the most probable mode list. The techniques of this disclosure may improve coding efficiency when coding video data using intra prediction. In particular, this disclosure describes techniques for constructing a total most probable mode list and then constructing a first most probable mode list and a second most probable mode list from the total most probable mode list. The first most probable mode list and the second most probable mode list may include intra prediction modes from neighboring blocks and intra prediction modes offset from the intra prediction modes of the neighboring blocks. The techniques of this disclosure may improve the efficiency of generating the first most probable mode list and the second most probable mode list.
[0007] In one example, the method includes the steps of: constructing a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is the first entry in the total most probable mode list; constructing a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0008] In another example, a device includes a memory and one or more processors configured to: construct a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; construct a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; construct a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0009] In another example, a device includes means for constructing a total most probable mode list containing N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list, means for constructing a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N, means for constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list, means for determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, and means for decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0010] In another example, a non-transitory computer-readable storage medium is encoded with instructions that, when executed, cause a programmable processor to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and the planar mode is the first entry in the total most probable mode list; build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0011] In another example, a device includes a memory and one or more processors configured to: construct a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; construct a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; construct a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and encode the current block of video data using the current intra-prediction mode to generate an encoded block of video data.
[0012] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Diagram 2] FIG. 2 is a conceptual diagram illustrating an example of neighboring blocks used to derive a most probable mode list. [Diagram 3] FIG. 13 is a conceptual diagram illustrating another example of neighboring blocks used to derive a most probable mode list. [Figure 4A] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure. [Figure 4B] FIG. 2 is a conceptual diagram illustrating a corresponding coding tree unit (CTU). [Diagram 5] 1 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure. [Figure 6]1 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure. [Figure 7] 1 is a flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 8] 5 is a flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. [Figure 9] 11 is a flowchart illustrating another example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 10] 11 is a flowchart illustrating another example method for decoding a current block, in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Versatile Video Coding (VVC) was developed by the Joint Video Experts Team (JVET) of ITU-T and ISO / IEC to achieve substantial compression capabilities beyond HEVC for a wide range of applications. The VVC specification was finalized in July 2020 and published by both ITU-T and ISO / IEC. The VVC specification specifies normative bitstream and picture formats, high-level syntax (HLS) and coding unit level syntax, and parsing and decoding processes. VVC also specifies profile / tier / level (PTL) restrictions, byte stream formats, hypothetical reference decoders, and supplemental enhancement information (SEI) in annexes.
[0015] In general, this disclosure describes techniques for determining a most probable mode list for intra prediction and determining an intra-prediction mode from the most probable mode list. The techniques of this disclosure may improve the efficiency of generating a first most probable mode list and a second most probable mode list. For example, a video encoder and / or a video decoder may be configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes; build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; and determine an intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list.
[0016] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0017] As shown in Figure 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. Specifically, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, mobile devices, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, broadcast receiver devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and therefore may be referred to as wireless communication devices.
[0018] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for deriving a most probable mode list for intra prediction. Thus, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source device and destination device may include other components or configurations. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.
[0019] The system 100 as shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may perform techniques for deriving a most probable mode list for intra prediction. The source device 102 and the destination device 116 are only examples of coding devices that generate coded video data for the source device 102 to transmit to the destination device 116. This disclosure refers to devices that perform coding (encoding and / or decoding) of data as "coding" devices. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically, video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate in a substantially symmetrical manner such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, the system 100 may support unidirectional or bidirectional video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0020] In general, video source 104 represents a source of video data (i.e., raw, unencoded video data) and provides a continuous series of pictures (also called “frames”) of the video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live, archived, and computer-generated video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may reorder the pictures from the order in which they were received (sometimes called “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data via the output interface 108 onto a computer-readable medium 110 for receipt and / or retrieval by, for example, an input interface 122 of the destination device 116 .
[0021] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although the memories 106 and 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, a portion of the memory 106, 120 may be allocated as one or more video buffers, for example, for storing raw, decoded, and / or encoded video data.
[0022] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that allows the source device 102 to transmit encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data and the input interface 122 may demodulate a received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.
[0023] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0024] In some examples, source device 102 may output the encoded video data to a file server 114 or another intermediate storage device, which may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or download.
[0025] The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (such as File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a Content Delivery Network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a Network Attached Storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.
[0026] The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.
[0027] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee™), the Bluetooth™ standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributed to the video decoder 300 and / or the input interface 122.
[0028] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0029] The input interface 122 of the destination device 116 receives an encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 and also used by the video decoder 300, such as syntax elements having values that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0030] 1, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include an appropriate MUX-DEMUX unit, or other hardware and / or software, to process multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0031] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the techniques are implemented partially in software, a device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device. A device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0032] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as ITU-T H.266, also known as Versatile Video Coding (VVC). A draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 10)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 18th Meeting: Remote Conference, June 22-July 1, 2020, JVET-S2001-vA (hereinafter "VVC Draft 10"). However, the techniques of this disclosure are not limited to any particular coding standard.
[0033] In general, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 may code luminance and chrominance components, where the chrominance components may include chrominance components of both red and blue hues. In some examples, the video encoder 200 converts received RGB formatted data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.
[0034] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include the process of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding of a block of a picture, e.g., predictive and / or residual coding, to include the process of encoding or decoding data for the block. A coded video bitstream generally includes a set of values for syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should generally be understood as coding values for the syntax elements that form the picture or block.
[0035] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as the video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal non-overlapping squares, and each node of the quadtree has either zero or four child nodes. A node without child nodes may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.
[0036] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the distinction between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0037] In the MTT partitioning structure, blocks may be partitioned using quad tree (QT) partitioning, binary tree (BT) partitioning, and one or more types of triple tree (TT) (also called ternary tree (TT)) partitioning. Triple tree or ternary tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, triple tree or ternary tree partitioning divides a block into three sub-blocks without splitting the original block through the center. Partition types in MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.
[0038] In some examples, video encoder 200 and video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, while in other examples, video encoder 200 and video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for both chrominance components (or two QTBT / MTT structures for each chrominance component).
[0039] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures per HEVC. For purposes of illustration, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning.
[0040] In some examples, the CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a picture coded using three separate color planes and syntax structures used to code a monochrome picture or sample. The CTB can be an N×N block of samples for some value of N such that the division of the components into the CTB is partitioned. The components are arrays or single samples of that array from one of three arrays (luma and two chromas) that create a picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or single samples of that array that create a picture in monochrome format. In some examples, the coding block is an M×N block of samples for some value of M and N such that the division of the CTB into the coding block is partitioned.
[0041] Blocks (e.g., CTUs or CUs) may be grouped in various ways in a picture. As an example, a brick may refer to a rectangular region of a CTU row in a particular tile in a picture. A tile may be a rectangular region of CTUs in a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular region of CTUs with a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set, etc.). A tile row refers to a rectangular region of CTUs with a height specified by a syntax element (e.g., in a picture parameter set, etc.) and a width equal to the width of the picture.
[0042] 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.
[0043] Bricks in a picture may also be arranged in slices. A slice may be an integer number of bricks of a picture that may be contained exclusively in a single Network Abstraction Layer (NAL) unit. In some examples, a slice may contain either a certain number of complete tiles or only a contiguous sequence of complete bricks of one tile.
[0044] This disclosure may use "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples within a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may comprise NxM samples, where M is not necessarily equal to N.
[0045] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU will be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU and samples of the predictive block prior to encoding.
[0046] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter prediction or intra prediction. Inter prediction generally refers to predicting a CU from data of a previously coded picture, while intra prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional prediction or bidirectional prediction.
[0047] Some examples of VVC also provide an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, the video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.
[0048] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a predictive block. Some examples of VVC provide 67 intra prediction modes, including various orientation modes, as well as a planar mode and a DC mode. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which to predict samples of the current block. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the CTUs and CUs in raster scan order (left to right, top to bottom).
[0049] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in the case of an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information for the corresponding mode. In the case of unidirectional or bidirectional inter prediction, for example, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.
[0050] Following prediction, such as intra- or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample-by-sample differences between a block and a predictive block for that block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transform data in a transform domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 generates transform coefficients following application of the one or more transforms.
[0051] As mentioned above, following any transformation to generate transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, achieving further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may truncate an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0052] Following quantization, the video encoder 200 may scan the transform coefficients and generate a one-dimensional vector from the two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place transform coefficients of higher energy (and therefore lower frequency) at the front of the vector and transform coefficients of lower energy (and therefore higher frequency) at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order for scanning the quantized transform coefficients to generate a serialized vector and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, e.g., according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode values for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0053] To perform CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values of the symbol are zeroed out or not. The probability determination may be based on the context assigned to the symbol.
[0054] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data to video decoder 300, for example in a picture header, a block header, a slice header, or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.
[0055] In this manner, video encoder 200 may generate a bitstream including syntax elements that describe encoded video data, e.g., partitions of a picture into blocks (e.g., CUs) and predictive and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0056] In general, video decoder 300 performs a process that is inverse to that performed by video encoder 200 to decode encoded video data of a bitstream. For example, video decoder 300 may decode values for syntax elements of a bitstream using CABAC in a manner that is inverse to but substantially similar to the CABAC encoding process of video encoder 200. The syntax elements may define partition information for partitioning of a picture into CTUs and partitioning of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
[0057] The residual information may be represented, for example, by quantized transform coefficients. The video decoder 300 may dequantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-prediction or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block for the block. The video decoder 300 may then combine (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0058] This disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to communication of values for syntax elements and / or other data used to decode the encoded video data. That is, video encoder 200 may signal values for syntax elements in a bitstream. In general, signaling refers to generating values in a bitstream. As mentioned above, source device 102 may transport the bitstream to destination device 116 substantially in real time or not in real time, such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116.
[0059] According to the techniques of this disclosure, as described in more detail below, video encoder 200 and video decoder 300 may be configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and the planar mode is the first entry in the total most probable mode list; build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode.
[0060] Exemplary intra-coding modes include DC mode, planar mode, and multiple directional modes (e.g., non-planar modes). In VVC, J. Chen, Y. Ye, and S.-H. Kim, “Algorithm description for Versatile Video Coding and Test Model 9 (VTM 9),” JVET-R2002, April 2020, 65 directional modes are used for intra prediction of a block. To code the intra-mode value, the video encoder 200 and the video decoder 300 may be configured to derive a most probable mode (MPM) list. If the intra-mode used to code a particular CU is a mode in the MPM list, the video encoder 200 may only signal an index of the determined intra-mode in the MPM list. Otherwise, the video encoder 200 may signal the mode value using bypass coding (e.g., entropy coding with a fixed probability model).
[0061] In VVC, the MPM list has six entries. The first entry in the MPM list is the planar mode. The remaining entries in the MPM list consist of the intra modes of the left (L) and top (A) neighboring blocks of CU400 (see FIG. 2), intra modes derived from the directional intra modes of the neighboring blocks, and a default intra mode. In the remainder of the description in this disclosure, this MPM list is referred to as the primary MPM list.
[0062] In A. Ramasubramonian et al., "CE3-3.1.1: Two MPM modes and shape dependency (Test 3.1.1)," Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 11th Meeting: Ljubljana, Slovenia, 10-18 July 2018 (hereafter "JVET-K0081"), two MPM lists were proposed. One MPM list is a Primary MPM (PMPM) list with 6 entries, and the other MPM list is a Secondary MPM (SMPM) list with 16 entries. The entries in the PMPM list are derived using the intra modes of the left (L), top (A), bottom left (BL), top right (AR), and top left (AL) neighboring blocks of CU402, as shown in Figure 3. The SMPM list is generated from modes that are close (eg, close in angle or index value) to the directional modes included in the PMPM list.
[0063] For example, if the first entry in the PMPM list is intra mode 12 and the maximum offset is 4, then intra modes 11, 10, 9, 8, 13, 14, 15 and 16 are each added to the SMPM list, provided that such intra modes are not already included in the two MPM lists. That is, all modes from intra mode index 12 plus or minus 4 indexes are added to the list, unless such modes are duplicates of modes already in the list.
[0064] The maximum offsets used for the six primary MPMs in JVET-K0081 are {4, 3, 3, 2, 2, 1}. If 16 entries of the SMPM list are not populated by this process, the remaining entries are populated from the default list of intra modes. The video encoder may signal a syntax element that indicates whether the intra prediction mode of the block is from the PMPM list or the SMPM list.
[0065] This disclosure describes different techniques for improving the construction of an MPM list composed of a PMPM list and an SMPM list. In particular, this disclosure describes techniques for constructing a total most probable mode list, and then constructing a first most probable mode list and a second most probable mode list from the total most probable mode list. The first most probable mode list and the second most probable mode list may include intra-prediction modes from neighboring blocks and intra-prediction modes offset from the intra-prediction modes of the neighboring blocks.
[0066] Total MPM list construction
[0067] First, a total MPM (GMPM) list may be defined with N entries, and the i-th entry of the GMPM list is denoted as GMPM[i]. The first entry of this GMPM list is a planar mode. That is, index 0 into the GMPM list (e.g., GMPM[0]) indicates a planar intra mode. For example, as shown in FIG. 3, the intra modes of the left (L), top (A), bottom-left (BL), top-right (AR), and top-left (AL) neighboring blocks of the currently coded block may be denoted as MPM(L), MPM(A), MPM(BL), MPM(AR), and MPM(AL), respectively.
[0068] The video encoder 200 and the video decoder 300 are configured to build a GMPM list by adding intra-modes MPM(L), MPM(A), MPM(BL), MPM(AR), and MPM(AL) to the GMPM list if MPM(j) is available and not already included in the GMPM list. An intra-mode MPM(j) is available if a neighboring block j has an associated intra-prediction mode. For example, a neighboring block may have an associated intra-prediction mode if the neighboring block is coded using intra-prediction. In other examples, a neighboring block may have an associated intra-prediction mode even if it is not coded using intra-prediction.
[0069] Video encoder 200 and video decoder 300 may derive the remaining entries in the GMPM list by offsetting the first Na available directional intra modes among the MPM(L), MPM(A), MPM(BL), MPM(AR), and MPM(AL) intra prediction modes, where Na is a number less than the number of left (L), top (A), bottom-left (BL), top-right (AR), and top-left (AL) neighboring blocks. For example, Na may be less than 5.
[0070] The intra-modes among MPM(L), MPM(A), MPM(BL), MPM(AR), and MPM(AL) included in the GMPM list are denoted as GMPM[p]=MPM(j), where 1≦p≦Nb, Nb is less than or equal to 5, and j is one of L, A, BL, AR, and AL. If p is less than a predefined value q, the maximum offset is set as M1, otherwise the maximum offset is set as M2. If N entries of the GMPM list are not populated by the proposed process, the rest of the entries are populated from the default list. The first Np entries in the GMPM list are set as the PMPM list, and the rest (N-Np) entries in the GMPM list are set as the SMPM list.
[0071] As an example, if the first entry in the PMPM list is intra mode 12 and the maximum offset is 4, then intra modes 11, 10, 9, 8, 13, 14, 15, and 16 are each added to the SMPM list, provided that such intra modes are not already included in the two MPM lists. That is, all of the modes that are plus or minus 4 indexes from intra mode index 12 are added to the list, provided that such modes are not duplicates of modes already in the list. As another example, if the first entry in the PMPM list is intra mode 12 and the maximum offset is 3, then intra modes 11, 10, 9, 13, 14, and 15 are each added to the SMPM list, provided that such intra modes are not already included in the two MPM lists. That is, all of the modes that are plus or minus 3 indexes from intra mode index 12 are added to the list, provided that such modes are not duplicates of modes already in the list.
[0072] In one example, N=22, Np=6, Na=2, q=3, M1=4, and M2=3. In this example, the size of the GMPM list is 22 entries, the first 6 entries are the PMPM list, and the last 16 entries are the SMPM list. The first two available directional intra modes in MPM(L), MPM(A), MPM(BL), MPM(AR), and MPM(AL) are offset to derive a directional intra mode near the two available directional intra modes. In this context, near means plus M1 or M2 indexes or minus M1 or M2 indexes from the index of the available directional intra mode. If GMPM
[0001] and GMPM
[0002] are non-DC modes, the maximum offset is 4 for GMPM
[0001] and GMPM
[0002] . If GMPM
[0001] is in DC mode and GMPM
[0002] and GMPM
[0003] are in non-DC mode, the maximum offset is 4 for GMPM
[0002] and 3 for GMPM
[0003] . If GMPM
[0002] is in DC mode and GMPM
[0001] and GMPM
[0003] are in non-DC mode, the maximum offset is 4 for GMPM
[0001] and 3 for GMPM
[0003] . For example, if GMPM
[0001] =20 and GMPM
[0003] =40, modes 16, 17, 18, 19, 21, 22, 23, and 24 offset from GMPM
[0001] and modes 37, 38, 39, 41, 42, and 43 offset from GMPM
[0003] are added to the GMPM list.
[0073] MPM Index Coding
[0074] In one example for VVC, the video decoder 300 may be configured to first decode and parse the plane flag to determine whether the intra mode of the CU is the first entry of the PMPM list. If the plane flag does not indicate a planar mode, the video decoder 300 may be configured to decode and parse the index value (e.g., a syntax element indicating an index value) to determine which entry of the PMPM list is selected. Note that the parsed index values 0, 1, 2, 3, and 4 correspond to the first entry, second entry, third entry, fourth entry, and fifth entry of the PMPM list, respectively, and the parsed bins for index values 0, 1, 2, 3, and 4 are 0, 10, 110, 1110, and 1111, respectively.
[0075] New coding tools called Intra Sub-Partition (ISP) mode and Multiple reference line (MRL) mode are incorporated into VVC. ISP mode and normal intra mode share the same PMPM list. MRL mode applies to intra modes in the PMPM list except for the first entry, i.e., planar mode. Since normal intra mode, ISP mode, and MRL mode all share the same non-planar PMPM entries, i.e., the first entry, the second entry, the third entry, the fourth entry, and the fifth entry of the PMPM list, context coding conditional on a selected mode among normal intra mode, ISP mode, and MRL mode will improve coding efficiency when signaling PMPM index. Thus, according to the techniques of this disclosure, video encoder 200 and video decoder 300 may be configured to use three context models to code the first bin of a non-planar PMPM index as follows: For (ISP mode): Code the first bin of the non-planar PMPM index with context index 0. Else, if (MRL mode): Code the first bin of the non-planar PMPM index with context index 1. Else (Normal Intra Mode): Code the first bin of the non-planar PMPM index with context index 2.
[0076] When using the techniques of this disclosure, the order of the if-else can be changed to other combinations. An example is as follows: For (MRL mode): Code the first bin of the non-planar PMPM index with context index 0. Else, if (ISP mode): Code the first bin of the non-planar PMPM index with context index 1. Else (Normal Intra Mode): Code the first bin of the non-planar PMPM index with context index 2.
[0077] (Example) As described above, two MPM lists may be used: a Primary MPM (PMPM) list with six entries, and a Secondary MPM (SMPM) list with sixteen entries. According to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may build a Total MPM list with 22 entries, where the first six entries in the Total MPM list are included in the PMPM list, and the rest of the 22 entries are set to be the SMPM list. The first entry (e.g., the ordinal first entry) in the Total MPM list is a planar mode. The remaining entries are composed of intra modes of the left (L), top (A), bottom-left (BL), top-right (AR), and top-left (AL) neighboring blocks, directional modes offset from the first two available directional modes of the neighboring blocks, and a default mode, as shown in FIG. 3. If a CU block is rectangular and vertically oriented, i.e., the height is greater than the width, the order of neighboring blocks checked for available intra prediction modes is A, L, BL, AR, AL, otherwise the order is L, A, BL, AR, AL.
[0078] The maximum offset for the directional mode of the neighboring block depends on the entry point of this directional mode in the total MPM list. If the available directional mode of the neighboring block is in either the second or third entry (note that the first entry is the planar mode), the maximum offset is set as 4, otherwise the maximum offset is set as 3. For example, the i-th entry of the total MPM list is denoted as GMPM[i]. GMPM
[0000] =planar mode. If GMPM
[0001] is DC mode, and GMPM
[0002] and GMPM
[0003] are directional modes, the maximum offset is 4 for GMPM
[0002] and 3 for GMPM
[0003] . Assume GMPM
[0002] =20 and GMPM
[0003] =40. In this case, 16, 17, 18, 19, 21, 22, 23, and 24, which are offset from GMPM
[0002] , and 37, 38, 39, 41, 42, and 43, which are offset from GMPM
[0003] , are added to the GMPM list.
[0079] The video decoder 300 may first decode and parse the planar flag to determine whether the intra mode of the CU is the first entry of the PMPM list. If the planar flag does not indicate that the planar mode should be used, the video decoder 300 decodes and parses the index value of the non-planar mode of the PMPM list to determine which entry of the PMPM list is selected. Note that the parsed index values 0, 1, 2, 3, 4 of the non-planar mode correspond to the first entry, the second entry, the third entry, the fourth entry, and the fifth entry of the PMPM list, and the parsed bins of the index values 0, 1, 2, 3, 4 are 0, 10, 110, 1110, and 1111, respectively. The video encoder 200 and the video decoder 300 may be configured to use three context models to code the first bin of the index of the non-planar mode in the PMPM list as follows: For (ISP): Code the first bin with context index 0. Else if (MRL): Code the first bin with context index 1. Else (normal intra): Code the first bin with context index 2.
[0080] In summary, in one example of this disclosure, the video decoder 300 may be configured to decode a current block of video data using intra prediction. The video decoder 300 may be configured to build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is the first entry in the total most probable mode list. The video decoder 300 may further build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N, and build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list. The video decoder 300 may then determine a current intra prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, and decode the current block of video data using the current intra prediction mode to generate a decoded block of video data. In one example, N is 22 and Np is 6.
[0081] In one example, to determine the current intra-prediction mode, the video decoder 300 may be further configured to decode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list. The video decoder 300 may determine a current intra-prediction mode for a current block of video data based on the index.
[0082] In a further example, to decode an index into the first most probable mode list or the second most probable mode list, the video decoder 300 may further determine a context for entropy decoding the first bin of the index based on the coding tool used for the current block, and entropy decode the first bin of the index using the context. In one example, the coding tool is one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode.
[0083] In another example of this disclosure, to construct the total most probable mode list, the video decoder 300 may be configured to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list and add a number of intra-prediction modes offset from each intra-prediction mode from each neighboring block to the total most probable mode list. In one example, the video decoder 300 may add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra-prediction mode being available and not already added to the total most probable mode list.
[0084] In another example, to determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, the video decoder 300 may be configured to decode a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decode an index to the current most probable mode list, and determine the current intra-prediction mode from the index to the current most probable mode list.
[0085] In a reverse manner, the video encoder 200 is also configured to encode a current block of video data using intra prediction. The video encoder 200 may be configured to construct a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is the first entry in the total most probable mode list. The video encoder 200 may further construct a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N, and a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list. The video encoder 200 may further determine a current intra prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, and encode the current block of video data using the current intra prediction mode to generate an encoded block of video data. In one example, N is 22 and Np is 6.
[0086] In one example of the present disclosure, the video encoder 200 may be configured to encode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list.
[0087] In another example of this disclosure, to encode an index into the first most probable mode list or the second most probable mode list, video encoder 200 may be configured to determine a context for entropy encoding a first bin of the index based on a coding tool used for a current block, and entropy encode the first bin of the index using the context. In one example, the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0088] In another example, to construct the total most probable mode list, video encoder 200 is further configured to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list, and to add a plurality of intra-prediction modes offset from each intra-prediction mode from each neighboring block to the total most probable mode list. Video encoder 200 may add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra-prediction mode being available and not already added to the total most probable mode list.
[0089] 4A and 4B are conceptual diagrams illustrating an exemplary quad-tree bi-tree (QTBT) structure 130 and corresponding coding tree unit (CTU) 132. Solid lines represent quad-tree partitioning, and dotted lines indicate bi-tree partitioning. At each partition (i.e., non-leaf) node of the bi-tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quad-tree partitioning, there is no need to indicate the partition type because the quad-tree node divides a block into four sub-blocks of equal size horizontally and vertically. Thus, the video encoder 200 may encode syntax elements (such as partition information) for the region tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as partition information) for the prediction tree level (i.e., dashed lines) of the QTBT structure 130, and the video decoder 300 may decode those syntax elements. The video encoder 200 may encode, and the video decoder 300 may decode, video data, such as prediction data and transform data, for CUs represented by terminal leaf nodes of the QTBT structure 130.
[0090] 4B may be associated with parameters that define the sizes of blocks corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing the size of the CTU 132 in the sample), a minimum quadtree size (MinQTSize, representing the minimum allowed quadtree leaf node size), a maximum bi-tree size (MaxBTSize, representing the maximum allowed bi-tree root node size), a maximum bi-tree depth (MaxBTDepth, representing the maximum allowed bi-tree depth), and a minimum bi-tree size (MinBTSize, representing the minimum allowed bi-tree leaf node size).
[0091] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, and each of the child nodes may be partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example QTBT structure 130 represents the nodes as including parent nodes and child nodes with solid lines for branching. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), these nodes may be further partitioned by their respective binary trees. The binary tree partitioning of a node may be repeated until the resulting node of the partition reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example QTBT structure 130 represents the nodes as including dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), which are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without further division. As explained above, CUs are sometimes called "video blocks" or "blocks."
[0092] In one example of a QTBT partitioning structure, the CTU size is set as 128x128 (luma samples and two corresponding 64x64 chroma samples), MinQTSize is set as 16x16, MaxBTSize is set as 64x64, MinBTSize (for both width and height) is set as 4, and MaxBTDepth is set as 4. To generate a quadtree leaf node, quadtree partitioning is first applied to the CTU. The quadtree leaf node may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quadtree leaf node is 128x128, the leaf quadtree node is not further split by the binary tree because the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the quadtree leaf node is further partitioned by the binary tree. Thus, the quadtree leaf node is also the root node of the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splits are allowed. A binary tree node with a width equal to MinBTSize (4 in this example) suggests that no further vertical splits (i.e., width splits) are allowed for that binary tree node. Similarly, a binary tree node with a height equal to MinBTSize suggests that no further horizontal splits (i.e., height splits) are allowed for that binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to the prediction and transformation without further partitioning.
[0093] 5 is a block diagram illustrating an example video encoder 200 that may perform techniques of this disclosure. FIG. 5 is provided for illustrative purposes and should not be considered a limitation of the techniques as broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes a video encoder 200 according to VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video encoding devices configured according to other video coding standards.
[0094] 5, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a DPB 218, and an entropy coding unit 220 may be implemented in one or more processors or in a processing circuit. For example, the units of the video encoder 200 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, an ASIC, or an FPGA. Further, video encoder 200 may include additional or alternative processors or processing circuitry for performing these and other functions.
[0095] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with other components of the video encoder 200, as shown, or may be off-chip relative to those components.
[0096] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200, unless specifically described as such, or to memory external to video encoder 200, unless specifically described as such. Rather, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data for a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.
[0097] The various units in FIG. 5 are illustrated to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preset for the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provides flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be different circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.
[0098] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), digital circuits, analog circuits, and / or a programmable core formed from programmable circuits. In examples in which the operations of the video encoder 200 are performed using software executed by programmable circuits, the memory 106 (FIG. 1) may store instructions for the software (e.g., object code) that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0099] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0100] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0101] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of the CTU into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than the other tested combinations.
[0102] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and encapsulate one or more CTUs within a slice. Mode selection unit 202 may partition the CTUs of a picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such a CU may also be generally referred to as a “video block” or a “block.”
[0103] In general, the mode selection unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). In the case of inter prediction of a current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to a current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0104] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in the case of unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in the case of bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of the reference block. As another example, in the case of a motion vector having fractional sample precision, the motion compensation unit 224 may interpolate values for the predictive block according to one or more interpolation filters. Furthermore, in the case of bidirectional inter prediction, the motion compensation unit 224 may retrieve data for the two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, by sample-wise averaging or weighted averaging.
[0105] As another example, for intra prediction or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring the current block. For example, for a directional mode, the intra prediction unit 226 may generally mathematically combine values of neighboring samples and populate these calculated values in a defined direction across the current block to generate a predictive block. As another example, for a DC mode, the intra prediction unit 226 may calculate an average of the neighboring samples for the current block and generate a predictive block to include this resulting average for each sample of the predictive block.
[0106] According to the techniques of this disclosure described above, the intra prediction unit 226 may be configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is the first entry in the total most probable mode list; build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and encode the current block of video data using the current intra prediction mode to generate an encoded block of video data.
[0107] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw, uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0108] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or similar for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0109] In examples where the mode selection unit 202 does not further partition the CUs into PUs, each PU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0110] For other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generate syntax elements that indicate how to reconstruct the block based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be coded.
[0111] As described above, the residual generation unit 204 receives video data for a current block and a corresponding predictive block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates sample-by-sample differences between the predictive block and the current block.
[0112] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms, e.g., a primary transform and a secondary transform, such as a rotation transform, on the residual block. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0113] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to generate a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in loss of information, and thus the quantized transform coefficients may have less precision than the original transform coefficients generated by transform processing unit 206.
[0114] 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 that corresponds to the current block (possibly with some distortion) based on the reconstructed residual block and the predictive 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 predictive block generated by the mode selection unit 202 to generate the reconstructed block.
[0115] Filter unit 216 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.
[0116] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operations of the filter unit 216 are not performed, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operations of the filter unit 216 are performed, the filter unit 216 may store the filtered and reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and possibly filtered) blocks from the DPB 218 to inter predict blocks of a later-encoded picture. In addition, the intra prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.
[0117] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioned entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0118] The video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, the entropy encoding unit 220 may output the bitstream.
[0119] The operations described above are described with respect to blocks. Such descriptions should be understood as being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.
[0120] In some examples, operations performed with respect to luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to be repeated to identify MVs and reference pictures for chroma coding blocks. Rather, the MVs for the luma coding blocks may be scaled to determine the MVs for the chroma coding blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0121] The video encoder 200 represents an example of a device configured to encode video data, the device including a memory configured to store the video data; and one or more processing units implemented in a circuit and configured to: construct a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes, with the planar mode being a first entry in the total most probable mode list; construct a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; construct a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and encode the current block of video data using the current intra-prediction mode to generate an encoded block of video data.
[0122] 6 is a block diagram illustrating an example video decoder 300 that may perform techniques of this disclosure. FIG. 6 is provided for purposes of illustration and not to limit the techniques as broadly illustrated and described in this disclosure. For purposes of illustration, this disclosure describes a video decoder 300 according to VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video coding devices configured according to other video coding standards.
[0123] In the example of FIG. 6, the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Additionally, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0124] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units for performing prediction according to other prediction modes. By way of 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.
[0125] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. The CPU memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or may be off-chip relative to those components.
[0126] Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data such as those described above with respect to CPB memory 320. Similarly, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.
[0127] The various units shown in FIG. 6 are illustrated to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 5, fixed-function circuits refer to circuits that provide specific functions and are preset for operations that may be performed. Programmable circuits refer to circuits that may be programmed to perform various tasks and provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), the types of operations that the fixed-function circuit performs are generally invariant. In some examples, one or more of the units may be different circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.
[0128] The video decoder 300 may include a programmable core formed from ALUs, EFUs, digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video decoder 300 are performed by software executing on programmable circuits, on-chip or off-chip memory may store instructions of the software (e.g., object code) that the video decoder 300 receives and executes.
[0129] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to recover the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0130] In general, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the “current block”).
[0131] The entropy decoding unit 302 may entropy decode the quantized transform coefficients of the quantized transform coefficient block, as well as syntax elements defining transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0132] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the transform coefficient block.
[0133] Further, prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter predicted, motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in DPB 314 from which to retrieve a reference block, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform an inter prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 5).
[0134] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a predictive block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 5). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.
[0135] According to the techniques described above, the intra prediction unit 318 may be configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is the first entry in the total most probable mode list; build a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra prediction mode to generate a decoded block of video data.
[0136] The reconstruction unit 310 may reconstruct the current block using the predictive block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the predictive block to reconstruct the current block.
[0137] Filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of the reconstructed blocks. The operations of filter unit 312 may not be performed in all instances.
[0138] The video decoder 300 may store the reconstructed blocks in the DPB 314. For example, in examples where the operations of the filter unit 312 are not performed, the reconstruction unit 310 may store the reconstructed blocks in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the refined, filtered, and reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Additionally, the video decoder 300 may output the decoded pictures (e.g., decoded video) from the DPB 314 for later presentation on a display device, such as the display device 118 of FIG. 1.
[0139] Thus, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units implemented in a circuit and configured to: construct a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes, with the planar mode being the first entry in the total most probable mode list; construct a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N; construct a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0140] 7 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure. The current block may include a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 5), it should be understood that other devices may be configured to perform a method similar to that of FIG.
[0141] In this example, video encoder 200 first predicts the current block (350). For example, video encoder 200 may form a predictive block for the current block. Video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, video encoder 200 may calculate a difference between an original uncoded block and a predictive block for the current block. Video encoder 200 may then transform the residual block and quantize transform coefficients of the residual block (354). Video encoder 200 may then scan the quantized transform coefficients of the residual block (356). During or following the scan, video encoder 200 may entropy code the transform coefficients (358). For example, video encoder 200 may code the transform coefficients using CAVLC or CABAC. Video encoder 200 may then output entropy coded data for the block (360).
[0142] 8 is a flowchart illustrating an example method for decoding a current block of video data in accordance with the techniques of this disclosure. The current block may include a current CU. Although described with respect to video decoder 300 (FIGS. 1 and 6), it should be understood that other devices may be configured to perform a method similar to that of FIG.
[0143] The video decoder 300 may receive entropy coded data for the current block, such as the entropy coded prediction information and the entropy coded data of the transform coefficients of the 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 to reconstruct the transform coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using an intra prediction mode or an inter prediction mode as indicated by the prediction information for the current block, to calculate a predictive block for the current block (374). The video decoder 300 may then inverse scan the reconstructed transform coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then inverse quantize the transform coefficients and apply an inverse transform to the transform coefficients to generate the residual block (378). The video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).
[0144] 9 is a flowchart illustrating another example method for encoding a current block according to the techniques of this disclosure. The technique of FIG. 9 may be performed by one or more structural units of the video encoder 200, including the intra prediction unit 226 of FIG.
[0145] In one example of this disclosure, a video encoder 200 is configured to encode a current block of video data using intra prediction. The video encoder 200 may be configured to construct (500) a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is a first entry in the total most probable mode list. The video encoder 200 may further construct (502) a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N, and construct (504) a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list. The video encoder 200 may further determine (506) a current intra prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, and encode (508) the current block of video data using the current intra prediction mode to generate an encoded block of video data. In one example, N is 22 and Np is 6.
[0146] In one example of the present disclosure, the video encoder 200 may be configured to encode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list.
[0147] In another example of this disclosure, to encode an index into the first most probable mode list or the second most probable mode list, video encoder 200 may be configured to determine a context for entropy encoding a first bin of the index based on a coding tool used for a current block, and entropy encode the first bin of the index using the context. In one example, the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0148] In another example, to construct the total most probable mode list, video encoder 200 is further configured to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list, and to add a plurality of intra-prediction modes offset from each intra-prediction mode from each neighboring block to the total most probable mode list. Video encoder 200 may add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra-prediction mode being available and not already added to the total most probable mode list.
[0149] 10 is a flowchart illustrating another example method for decoding a current block according to the techniques of this disclosure. The technique of FIG. 10 may be performed by one or more structural units of the video decoder 300, including the intra prediction unit 318 of FIG.
[0150] In one example of this disclosure, the video decoder 300 may be configured to decode a current block of video data using intra prediction. The video decoder 300 may be configured to construct (600) a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra prediction modes and the planar mode is the first entry in the total most probable mode list. The video decoder 300 may further construct (602) a first most probable mode list from the first Np entries in the total most probable mode list, where Np is less than N, and construct (604) a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list. The video decoder 300 may then determine (606) a current intra prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, and decode (608) the current block of video data using the current intra prediction mode to generate a decoded block of video data. In one example, N is 22 and Np is 6.
[0151] In one example, to determine the current intra-prediction mode, the video decoder 300 may be further configured to decode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list. The video decoder 300 may determine a current intra-prediction mode for a current block of video data based on the index.
[0152] In a further example, to decode an index into the first most probable mode list or the second most probable mode list, the video decoder 300 may further determine a context for entropy decoding the first bin of the index based on the coding tool used for the current block, and entropy decode the first bin of the index using the context. In one example, the coding tool is one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode.
[0153] In another example of this disclosure, to construct the total most probable mode list, the video decoder 300 may be configured to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list and add a number of intra-prediction modes offset from each intra-prediction mode from each neighboring block to the total most probable mode list. In one example, the video decoder 300 may add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra-prediction mode being available and not already added to the total most probable mode list.
[0154] In another example, to determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, the video decoder 300 may be configured to decode a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decode an index to the current most probable mode list, and determine the current intra-prediction mode from the index to the current most probable mode list.
[0155] Additional aspects of the disclosure are described below.
[0156] Aspect 1A - A method for coding video data, comprising the steps of: constructing a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes; constructing a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; and determining an intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list.
[0157] Embodiment 2A - The method of embodiment 1A, wherein N is 22 and Np is 6.
[0158] Aspect 3A - The method of any of aspects 1A and 2A, wherein the step of constructing the total most probable mode list includes the steps of adding a planar mode as a first entry in the total most probable mode list, adding each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list, and adding an intra-prediction mode offset from each intra-prediction mode from each neighboring block to the total most probable mode list.
[0159] Aspect 4A - The method of aspect 3A, wherein the step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list includes a step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list if the respective intra prediction mode is available and has not already been added to the total most probable mode list.
[0160] Aspect 5A - The method of any of aspects 1A-4A, further comprising determining a context for coding an index indicating a non-planar mode of the first most probable mode list based on the coding tool used for the current block.
[0161] Example 6A - The method of example 5A, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0162] Aspect 7A - The method of any of aspects 1A-6A, wherein the coding step includes a decoding step.
[0163] Aspect 8A - The method of any of aspects 1A-7A, wherein the coding step includes an encoding step.
[0164] A device for coding video data, comprising one or more means for performing the methods of any of aspects 1A to 8A.
[0165] Embodiment 10A - The device of embodiment 9A, wherein the one or more means comprise one or more processors implemented in circuitry.
[0166] Example 11A - The device of any of examples 9A and 10A, further comprising a memory for storing video data.
[0167] Example 12A - The device of any of examples 9A-11A, further comprising a display configured to display the decoded video data.
[0168] Aspect 13A - The device of any of aspects 9A-12A, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0169] Example 14A - The device of any of examples 9A to 13A, wherein the device comprises a video decoder.
[0170] Example 15A - The device of any of examples 9A to 14A, wherein the device comprises a video encoder.
[0171] Aspect 16A - A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any of aspects 1A-8A.
[0172] Aspect 1B - A method for decoding video data, comprising: constructing a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes, with a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0173] Aspect 2B - The method of aspect 1B, wherein the step of determining the current intra-prediction mode further includes the steps of decoding an index into a first most probable mode list or a second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list, and determining a current intra-prediction mode for a current block of video data based on the index.
[0174] Aspect 3B - The method of aspect 2B, wherein the step of decoding an index into the first most probable mode list or the second most probable mode list includes a step of determining a context for entropy decoding the first bin of the index based on the coding tool used for the current block, and a step of entropy decoding the first bin of the index using the context.
[0175] Aspect 4B - The method of aspect 3B, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0176] Embodiment 5B -The method of embodiment 1B, wherein N is 22 and Np is 6.
[0177] Aspect 6B - The method of aspect 1B, wherein the step of constructing a total most probable mode list includes a step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list, and a step of adding a plurality of intra prediction modes offset from each intra prediction mode from each neighboring block to the total most probable mode list.
[0178] Aspect 7B - The method of aspect 6B, wherein the step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list includes a step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra prediction mode being available and not already added to the total most probable mode list.
[0179] Aspect 8B - The method of aspect 1B, wherein the step of determining a current intra-prediction mode for a current block of video data using a first most probable mode list or a second most probable mode list includes the steps of decoding a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decoding an index to the current most probable mode list, and determining the current intra-prediction mode from the index to the current most probable mode list.
[0180] Aspect 9B - The method of aspect 1B, further comprising displaying a picture including the decoded block of video data.
[0181] Aspect 10B - An apparatus configured to decode video data, comprising: a memory configured to store a current block of video data; and one or more processors implemented in a circuit and in communication with the memory, wherein the one or more processors are configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; build a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0182] Example 11B - The apparatus of example 10B, wherein to determine a current intra-prediction mode, the one or more processors are further configured to decode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list, and determine a current intra-prediction mode for a current block of video data based on the index.
[0183] Example 12B - The apparatus of example 11B, wherein to decode an index into the first most probable mode list or the second most probable mode list, the one or more processors are further configured to determine a context for entropy decoding the first bin of the index based on the coding tool used for the current block, and entropy decode the first bin of the index using the context.
[0184] Example 13B - The apparatus of example 12B, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0185] Embodiment 14B -The apparatus of embodiment 10B, wherein N is 22 and Np is 6.
[0186] Example 15B - The apparatus of example 10B, wherein to construct a total most probable mode list, one or more processors are further configured to add to the total most probable mode list each intra prediction mode from each neighboring block of the current block of video data, and to add to the total most probable mode list a plurality of intra prediction modes offset from each intra prediction mode from each neighboring block.
[0187] Example 16B - The apparatus of example 15B, wherein the one or more processors are further configured to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra prediction mode being available and not already added to the total most probable mode list, in order to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list.
[0188] Example 17B - The apparatus of example 10B, wherein to determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, the one or more processors are further configured to decode a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decode an index into the current most probable mode list, and determine the current intra-prediction mode from the index into the current most probable mode list.
[0189]
[0041] Example 18B - The apparatus of example 10B, further comprising a display configured to display a picture including the decoded block of video data.
[0190] Aspect 19B - An apparatus configured to decode video data, comprising: means for constructing a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; means for constructing a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; means for constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; means for determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and means for decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0191] Example 20B - The apparatus of example 19B, wherein the means for determining a current intra-prediction mode further comprises: means for decoding an index into a first most probable mode list or a second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list; and means for determining a current intra-prediction mode for a current block of video data based on the index.
[0192] Example 21B - The apparatus of example 20B, wherein the means for decoding an index into the first most probable mode list or the second most probable mode list comprises: means for determining a context for entropy decoding a first bin of the index based on a coding tool used for the current block; and means for entropy decoding the first bin of the index using the context.
[0193] Aspect 22B - A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors configured to decode video data to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes, and where a planar mode is a first entry in the total most probable mode list; build a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0194] Example 23B - The non-transitory computer-readable storage medium of example 22B, wherein the instructions further cause one or more processors to decode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list, to determine a current intra-prediction mode, and determine a current intra-prediction mode for a current block of video data based on the index.
[0195] Example 24B - The non-transitory computer-readable storage medium of example 23B, wherein the instructions further cause the one or more processors to determine a context for entropy decoding a first bin of the index based on a coding tool used for the current block, and entropy decode the first bin of the index using the context, to decode an index into the first most probable mode list or the second most probable mode list.
[0196] Aspect 25B - An apparatus configured to encode video data, comprising: a memory configured to store a current block of video data; and one or more processors implemented in a circuit and in communication with the memory, wherein the one or more processors are configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; build a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list; and encode the current block of video data using the current intra-prediction mode to generate an encoded block of video data.
[0197] Example 26B - The apparatus of example 25B, wherein the one or more processors are further configured to encode an index into a first most probable mode list or a second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list.
[0198] Example 27B - The apparatus of example 26B, wherein to encode an index into the first most probable mode list or the second most probable mode list, the one or more processors are further configured to determine a context for entropy encoding the first bin of the index based on the coding tool used for the current block, and entropy encode the first bin of the index using the context.
[0199] Example 28B - The apparatus of example 27B, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0200] Embodiment 29B -The apparatus of embodiment 25B, wherein N is 22 and Np is 6.
[0201] Example 30B - The apparatus of example 25B, wherein to construct a total most probable mode list, one or more processors are further configured to add to the total most probable mode list each intra prediction mode from each neighboring block of the current block of video data, and to add to the total most probable mode list a plurality of intra prediction modes offset from each intra prediction mode from each neighboring block.
[0202] Example 31B - The apparatus of example 25B, wherein the one or more processors are further configured to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra prediction mode being available and not already added to the total most probable mode list, in order to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list.
[0203]
[0041] Example 32B - The apparatus of example 25B, further comprising a camera configured to capture a picture including the current block of video data.
[0204] Aspect 1C - A method for decoding video data, comprising the steps of: constructing a total most probable mode list including N entries, wherein the N entries of the total most probable mode list are intra-prediction modes, with a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from the first Np entries in the total most probable mode list, wherein Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list; and decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0205] Aspect 2C - The method of aspect 1C, wherein the step of determining the current intra-prediction mode further includes a step of decoding an index into a first most probable mode list or a second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list, and a step of determining a current intra-prediction mode for a current block of video data based on the index.
[0206] Aspect 3C - The method of aspect 2C, wherein the step of decoding an index into the first most probable mode list or the second most probable mode list includes a step of determining a context for entropy decoding the first bin of the index based on the coding tool used for the current block, and a step of entropy decoding the first bin of the index using the context.
[0207] Aspect 4C - The method of aspect 3C, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0208] Embodiment 5C - The method of any of embodiments 1C-4C, wherein N is 22 and Np is 6.
[0209] Aspect 6C - A method of any of aspects 1C to 5C, wherein the step of constructing a total most probable mode list includes a step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list, and a step of adding a plurality of intra prediction modes offset from each intra prediction mode from each neighboring block to the total most probable mode list.
[0210] Aspect 7C - The method of aspect 6C, wherein the step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list includes a step of adding each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra prediction mode being available and not already added to the total most probable mode list.
[0211] Aspect 8C - A method of any of aspects 1C to 7C, wherein the step of determining a current intra-prediction mode for a current block of video data using a first most probable mode list or a second most probable mode list includes the steps of decoding a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decoding an index to the current most probable mode list, and determining the current intra-prediction mode from the index to the current most probable mode list.
[0212] Example 9C - The method of any of examples 1C-8C, further comprising displaying a picture including the decoded block of video data.
[0213] Aspect 10C - An apparatus configured to decode video data, comprising: a memory configured to store a current block of video data; and one or more processors implemented in circuitry and in communication with the memory, wherein the one or more processors are configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes, and a planar mode is a first entry in the total most probable mode list; build a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list; and decode the current block of video data using the current intra-prediction mode to generate a decoded block of video data.
[0214] Example 11C - The apparatus of example 10C, wherein to determine a current intra-prediction mode, one or more processors are further configured to decode an index into a first most probable mode list or a second most probable mode list, where the index indicates a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list, and determine a current intra-prediction mode for a current block of video data based on the index.
[0215] Example 12C - The apparatus of example 11C, wherein to decode an index into the first most probable mode list or the second most probable mode list, one or more processors are further configured to determine a context for entropy decoding the first bin of the index based on a coding tool used for the current block of video data, and entropy decode the first bin of the index using the context.
[0216] Example 13C - The apparatus of example 12C, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0217] Embodiment 14C—The apparatus of any of embodiments 10C-13C, wherein N is 22 and Np is 6.
[0218] Example 15C - The apparatus of any of examples 10C to 14C, wherein, to construct a total most probable mode list, one or more processors are further configured to add to the total most probable mode list each intra-prediction mode from each neighboring block of the current block of video data, and to add to the total most probable mode list a plurality of intra-prediction modes offset from each intra-prediction mode from each neighboring block.
[0219] Example 16C - The apparatus of example 15C, wherein the one or more processors are further configured to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra prediction modes being available and not already added to the total most probable mode list, in order to add each intra prediction mode from each neighboring block of the current block of video data to the total most probable mode list.
[0220] Example 17C - An apparatus of any of aspects 10C to 16C, wherein, to determine a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, one or more processors are further configured to decode a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list, decode an index to the current most probable mode list, and determine the current intra-prediction mode from the index to the current most probable mode list.
[0221] Example 18C - The apparatus of any of examples 10C-17C, further comprising a display configured to display a picture including the decoded block of video data.
[0222] Aspect 19C - An apparatus configured to encode video data, comprising: a memory configured to store a current block of video data; and one or more processors implemented in a circuit and in communication with the memory, wherein the one or more processors are configured to: build a total most probable mode list including N entries, where the N entries of the total most probable mode list are intra-prediction modes and a planar mode is a first entry in the total most probable mode list; build a first most probable mode list from a first Np entries in the total most probable mode list, where Np is less than N; build a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determine a current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list; and encode the current block of video data using the current intra-prediction mode to generate an encoded block of video data.
[0223] Example 20C - The apparatus of example 19C, wherein the one or more processors are further configured to encode an index into a first most probable mode list or a second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list.
[0224] Example 21C - The apparatus of example 20C, wherein to encode an index into the first most probable mode list or the second most probable mode list, the one or more processors are further configured to determine a context for entropy encoding the first bin of the index based on a coding tool used for the current block of video data, and entropy encode the first bin of the index using the context.
[0225] Example 22C - The apparatus of example 21C, wherein the coding tool is one of a normal intra prediction mode, an intra sub-partition mode, or a multiple reference line mode.
[0226] Embodiment 23C—The apparatus of any of embodiments 19C-22C, wherein N is 22 and Np is 6.
[0227] Example 24C - The apparatus of any of examples 19C to 23C, wherein, to construct a total most probable mode list, one or more processors are further configured to add to the total most probable mode list each intra prediction mode from each neighboring block of the current block of video data, and to add to the total most probable mode list a plurality of intra prediction modes offset from each intra prediction mode from each neighboring block.
[0228] Example 25 - The apparatus of any of examples 19C to 24C, wherein to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list, the one or more processors are further configured to add each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list based on the respective intra-prediction mode being available and not already added to the total most probable mode list.
[0229]
[0041] Example 26C - The apparatus of any of examples 19C to 25C, further comprising a camera configured to capture a picture including the current block of video data.
[0230] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, or may be added, combined, or omitted entirely (e.g., not all acts or events described are necessary to the practice of the techniques). Furthermore, in some examples, acts or events may be performed simultaneously rather than sequentially, e.g., through multi-threaded processing, interrupt processing, or multiple processors.
[0231] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates transfer of a computer program from one place to another, for example according to a communication protocol. Thus, a computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0232] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.
[0233] The instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a combined codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0234] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). Various components, modules, or units have been described in this disclosure to highlight functional aspects of devices configured to perform the disclosed techniques, but they do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or may be provided by a collection of interoperable hardware units including one or more processors as described above, along with suitable software and / or firmware.
[0235] Various examples have been described. These and other examples are within the scope of the following claims. [Explanation of symbols]
[0236] 100 Video encoding and decoding system, system 102 Source Device 104 Video Sources 106 Memory 108 Output Interface 110 Computer-readable medium 112 Storage Devices 114 File Server 116 Destination Device 118 Display Devices 120 Memory 122 Input Interface 130 Quad-tree / binary-tree (QTBT) structure, QTBT structure 132 Coding Tree Unit (CTU), CTU 200 Video Encoder 202 Mode Selection Unit 204 Residual Generation Unit 206 Conversion Processing Unit 208 Quantization Units 210 Inverse Quantization Unit 212 Inverse Transformation Processing Unit 214 Reconstruction Unit 216 Filter unit 218 Decoded Picture Buffer (DPB), DPB 220 Entropy Coding Unit 222 Motion Estimation Unit 224 Motion Compensation Unit 226 intra prediction units 230 Video Data Memory 300 Video Decoder 302 Entropy Decoding Unit 304 Prediction Processing Unit 306 Inverse Quantization Unit 308 Inverse Transformation Processing Unit 310 Reconstruction Unit 312 Filter unit 314 Decoded Picture Buffer (DPB), DPB 316 Motion Compensation Unit 318 Intra Prediction Units 320 Coded Picture Buffer (CPB) memory, CPB memory 400 CU 402 CU
Claims
1. 1. A method for decoding video data, comprising the steps of: constructing a total most probable mode list including N entries, the N entries of the total most probable mode list being intra-prediction modes, and a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from a first Np number of entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, The step of determining the current intra-prediction mode comprises: decoding an index into the first most probable mode list or the second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list; determining the current intra-prediction mode for the current block of video data based on the index; Including, The step of decoding the index comprises: determining a context for entropy decoding a first bin of the index based on a coding tool used for the current block of video data, the coding tool being one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode, and determining the context includes determining to use a first value for the context for a normal intra-prediction mode, a second value for the context for an intra-sub-partition mode, and a third value for the context for a multiple reference line mode; entropy decoding the first bin of the index using the context; and decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data; The method includes:
2. 2. The method of claim 1, wherein N is 22 and Np is 6.
3. said step of constructing a total most probable mode list further comprising: adding each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list; adding a plurality of intra-prediction modes offset from the respective intra-prediction modes from the respective neighboring blocks to the total most probable mode list; 2. The method of claim 1, comprising:
4. 4. The method of claim 3, wherein the step of adding each of the intra-prediction modes from each of the neighboring blocks of the current block of video data to the total most probable mode list includes the step of adding each of the intra-prediction modes from each of the neighboring blocks of the current block of video data to the total most probable mode list based on the respective intra-prediction modes being available and not already added to the total most probable mode list.
5. determining the current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, decoding a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list; decoding an index into said current most probable mode list; determining the current intra-prediction mode from the index into the current most probable mode list; 2. The method of claim 1, comprising:
6. The method of claim 1 , further comprising displaying a picture including the decoded blocks of video data.
7. 1. An apparatus configured to decode video data, comprising: a memory configured to store a current block of video data; one or more processors implemented in circuitry and in communication with the memory; wherein the one or more processors: constructing a total most probable mode list including N entries, the N entries of the total most probable mode list being intra-prediction modes and a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from a first Np number of entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, determining the current intra-prediction mode, decoding an index into the first most probable mode list or the second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list; determining the current intra-prediction mode for the current block of video data based on the index; and Including, Decoding the index determining a context for entropy decoding a first bin of the index based on a coding tool used for the current block of video data, the coding tool being one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode, and determining the context includes determining to use a first value for the context for a normal intra-prediction mode, a second value for the context for an intra-sub-partition mode, and a third value for the context for a multiple reference line mode; entropy decoding the first bin of the index using the context; determining, decoding the current block of video data using the current intra-prediction mode to generate a decoded block of video data; and An apparatus configured to:
8. 8. The apparatus of claim 7, wherein N is 22 and Np is 6.
9. To construct the total most probable mode list, the one or more processors: adding each intra-prediction mode from each neighboring block of the current block of video data to the total most probable mode list; adding a plurality of intra-prediction modes offset from the respective intra-prediction modes from the respective neighboring blocks to the total most probable mode list; The apparatus of claim 7, further configured to:
10. to add the respective intra-prediction modes from the respective neighboring blocks of the current block of video data to the total most probable mode list, 10. The apparatus of claim 9, further configured to add the respective intra-prediction modes from the respective neighboring blocks of the current block of video data to the total most probable mode list based on the respective intra-prediction modes being available and not already added to the total most probable mode list.
11. to determine the current intra-prediction mode for the current block of video data using the first most probable mode list or the second most probable mode list, the one or more processors: decoding a syntax element indicating a current most probable mode list from either the first most probable mode list or the second most probable mode list; decoding an index into said current most probable mode list; determining the current intra-prediction mode from the index into the current most probable mode list; The apparatus of claim 7, further configured to:
12. a display configured to display a picture including the decoded blocks of video data. The apparatus of claim 7, further comprising:
13. 7. A non-transitory computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors configured to decode video data to perform the method of any one of claims 1 to 6.
14. A method for encoding video data, comprising the steps of: constructing a total most probable mode list including N entries, the N entries of the total most probable mode list being intra-prediction modes, and a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from a first Np number of entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, The step of determining the current intra-prediction mode comprises: encoding an index into the first most probable mode list or the second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list; determining the current intra-prediction mode for the current block of video data based on the index; Including, The step of encoding the index comprises: determining a context for entropy encoding a first bin of the index based on a coding tool used for the current block of video data, the coding tool being one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode, and determining the context includes determining to use a first value for the context for a normal intra-prediction mode, a second value for the context for an intra-sub-partition mode, and a third value for the context for a multiple reference line mode; entropy encoding the first bin of the index using the context; and encoding the current block of video data using the current intra-prediction mode to generate an encoded block of video data; The method includes:
15. 1. An apparatus configured to encode video data, comprising: a memory configured to store a current block of video data; one or more processors implemented in circuitry and in communication with the memory; wherein the one or more processors: constructing a total most probable mode list including N entries, the N entries of the total most probable mode list being intra-prediction modes and a planar mode being a first entry in the total most probable mode list; constructing a first most probable mode list from a first Np number of entries in the total most probable mode list, where Np is less than N; constructing a second most probable mode list from the remaining (N-Np) entries in the total most probable mode list; determining a current intra-prediction mode for a current block of video data using the first most probable mode list or the second most probable mode list, determining the current intra-prediction mode, encoding an index into the first most probable mode list or the second most probable mode list, the index indicating a non-planar intra-prediction mode in the first most probable mode list or the second most probable mode list; determining the current intra-prediction mode for the current block of video data based on the index; and Including, encoding the index, determining a context for entropy encoding a first bin of the index based on a coding tool used for the current block of video data, the coding tool being one of a normal intra-prediction mode, an intra-sub-partition mode, or a multiple reference line mode, and determining the context includes determining to use a first value for the context for a normal intra-prediction mode, a second value for the context for an intra-sub-partition mode, and a third value for the context for a multiple reference line mode; entropy encoding the first bin of the index using the context; determining, encoding the current block of video data using the current intra-prediction mode to generate an encoded block of video data; and An apparatus configured to:
