Simplified intra-chroma mode coding in video coding - Patents.com

By using a unified set of indices and a common binarization table for LM modes in VVC, the memory and complexity issues associated with identifying intra-coding modes in VVC are addressed, ensuring efficient encoding and decoding without compromising compression efficiency.

JP7547394B2Active Publication Date: 2024-09-09QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021576132
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-22
Filing Date
2020-04-23
Publication Date
2024-09-09
Estimated Expiration
2040-04-23

AI Technical Summary

Technical Problem

The existing video coding techniques, particularly in the ITU-T H.266 standard (Versatile Video Coding, VVC), require two different sets of indices and binarization tables to identify intra-coding modes, leading to increased memory usage and complexity due to the enablement or disablement of Linear Model (LM) modes for chroma blocks.

Method used

A unified set of indices and a common binarization table is defined for both enabled and disabled LM modes, reducing the number of tables from two to one, thereby simplifying the encoding and decoding processes and minimizing memory requirements.

Benefits of technology

This approach reduces memory usage and maintains encoding efficiency without adverse effects on compression, simplifying the hardware implementation of video encoders and decoders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547394000026
    Figure 0007547394000026
  • Figure 0007547394000022
    Figure 0007547394000022
  • Figure 0007547394000032
    Figure 0007547394000032
Patent Text Reader

Abstract

This disclosure describes video encoding and decoding techniques for encoding and decoding video data in chroma intra-prediction mode. The techniques may improve the encoding and decoding process by simplifying aspects of the encoding and decoding process and by reducing the number of binarization tables used for encoding and decoding. Furthermore, reducing the number of binarization tables may reduce the amount of memory required in an encoder or decoder device to perform the video encoding or decoding process.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0001] This application claims priority to U.S. Provisional Patent Application No. 62 / 866,445, filed June 25, 2019, and U.S. Provisional Patent Application No. 62 / 871,548, filed July 8, 2019, the entire contents of each of which are incorporated herein by reference.

[0002] 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 game 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]

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

[0005]

[0005] Generally, the present disclosure describes video encoding and decoding techniques for encoding and decoding video data in a so-called "chroma intra prediction mode". The present techniques may improve the encoding and decoding process by simplifying aspects of the encoding and decoding process and by reducing the number of binarization tables used for encoding and decoding. Moreover, reducing the number of binarization tables may reduce the amount of memory required in an encoder device or a decoder device to perform a video encoding or decoding process. The present techniques may be applicable to one or more video compression standards, and in particular, to the ITU-T H.266 standard, also referred to as Versatile Video Coding (VVC).

[0006]

[0006] According to some test models of VVC, a linear model (LM) mode may be used to encode and decode a chroma block. The LM mode may also be referred to herein as an LM intra-prediction mode. Moreover, according to some test models of VVC, a syntax element may be used to indicate whether all LM modes are disabled for a picture of video data. According to these test models, if the LM mode is disabled, a first set of indexes may be used to identify the chroma intra-prediction coding mode to be used for the block, but if the LM mode is enabled, a second set of indexes (different from the first set) may be used. Moreover, two different binarization tables may be used to handle these two situations.

[0007]

[0007] The use of two different sets of indexes to identify intra-coding modes and the use of two different binarization tables are both problems that may arise from such a test model of VVC that uses a syntax element to indicate whether all LM intra-prediction modes are disabled for a picture of video data, which may cause complications in the encoding and decoding process and may require additional memory to store two binarization tables. The techniques of the present disclosure address these problems by defining a common set of indexes that may be used for intra-mode identification, thereby eliminating the two different sets of indexes that may otherwise be required when LM mode is enabled and when LM mode is disabled. Furthermore, the techniques of the present disclosure address these problems of defining a common binarization table that may be used for all situations associated with intra-coding mode signaling, thereby reducing the number of binarization tables from two to one, which may reduce the amount of memory required in the encoder and decoder for the encoding and decoding process.

[0008]

[0008] In one example, this disclosure describes a method of decoding video data. The method may include decoding a first syntax element indicating whether all LM modes are disabled for a picture of the video data, decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture, and determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. Determining the chroma intra prediction mode for the chroma block may comprise determining that a chroma intra prediction mode for the chroma block is inherited from a collocated luma block based on the chroma prediction mode index for the chroma block being equal to a particular value, where the collocated luma block is collocated with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The method may further include decoding the chroma block based on a chroma intra prediction mode for the chroma block.

[0009]

[0009] In another example, the present disclosure describes a method of encoding video data. The method may include encoding a first syntax element indicating whether all LM modes are disabled for a picture of the video data, determining a chroma intra prediction mode for a chroma block of the picture, and determining a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block. Determining the chroma intra prediction mode index may include selecting a specific value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block, and the specific value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The method may further include encoding a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0010]

[0010] In another example, the present disclosure describes a video decoding device including a memory configured to store video data and a processing circuit. The processing circuit may be configured to decode a first syntax element indicating whether all LM modes are disabled for a picture of the video data, decode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture, and determine a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. To determine the chroma intra prediction mode for the chroma block, the processing circuit may be configured to determine that a chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a specific value, where the co-located luma block is co-located with the chroma block, and the specific value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The processing circuitry may decode the chroma block based on a chroma intra-prediction mode for the chroma block.

[0011]

[0011] In another example, the present disclosure describes a video encoding device including a memory configured to store video data and a processing circuit. The processing circuit may be configured to encode a first syntax element indicating whether all LM modes are disabled for a picture of the video data, determine a chroma intra prediction mode for a chroma block of the picture, and determine a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block. To determine the chroma intra prediction mode index, the processing circuit may be configured to select a specific value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block, and the specific value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The processing circuit may encode a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0012]

[0012] In another example, the present disclosure describes a video decoding device comprising: means for decoding a first syntax element indicating whether all LM modes are disabled for a picture of the video data; means for decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture; and means for determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. Determining a chroma intra prediction mode for the chroma block may comprise determining that a chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value, where the co-located luma block is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The device may also include means for decoding the chroma block based on the chroma intra prediction mode for the chroma block.

[0013]

[0013] In another example, the present disclosure describes a video encoding device comprising: means for encoding a first syntax element indicating whether all LM modes are disabled for a picture of the video data; means for determining a chroma intra prediction mode for a chroma block of the picture; and means for determining a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block. Determining the chroma intra prediction mode index may comprise selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The device may also include means for encoding a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0014] In another example, this disclosure describes a computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video decoding device to decode a first syntax element indicating whether all LM modes are disabled for a picture of the video data, decode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture, and determine a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. Determining the chroma intra prediction mode for the chroma block may comprise determining that a chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value, where the co-located luma block is co-located with the chroma block and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The instructions may also cause the one or more processors to decode the chroma block based on a chroma intra prediction mode for the chroma block.

[0015]

[0015] In another example, the present disclosure describes a computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video encoding device to encode a first syntax element indicating whether all LM modes are disabled for a picture of the video data, determine a chroma intra prediction mode for a chroma block of the picture, and determine a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block. Determining the chroma intra prediction mode index may comprise selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The instructions may also cause the one or more processors to encode a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0016]

[0016] 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]

[0017] [Figure 1]

[0017] A block diagram illustrating an example video encoding and decoding system in which the techniques of this disclosure may be implemented. [Figure 2A]

[0018] 1 is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure. [Figure 2B] A conceptual diagram showing a corresponding coding tree unit (CTU). [Diagram 3]

[0019] 1 is a block diagram illustrating an example video encoder that may implement the techniques of this disclosure. [Figure 4]

[0020] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Diagram 5]

[0021] 1 is a conceptual diagram illustrating an example normal intra-prediction mode. [Figure 6]

[0022] 1 is a conceptual diagram showing sample locations for deriving parameters related to the Linear Model (LM) prediction mode. [Figure 7]

[0023] A diagram showing a signal tree for chroma coding, in which the rectangular portion shows a branch when sps_cclm_enabled_flag is equal to 0, which is a branch of the signaling tree, in accordance with one or more techniques of this disclosure. [Figure 8]

[0024] 1 is a flowchart illustrating an example method for encoding a current block. [Figure 9]

[0025] 4 is a flowchart illustrating an example method for decoding a current block of video data. [Figure 10]

[0026] 4 is a flow chart illustrating an exemplary encoding method according to this disclosure. [Figure 11]

[0027] 4 is a flow chart illustrating an exemplary decoding method according to this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018]

[0028] This disclosure describes video encoding and video decoding techniques for encoding and decoding video data in so-called "chroma intra-prediction modes". The techniques may improve the encoding and decoding processes by simplifying aspects of the encoding and decoding processes and by reducing the number of binarization tables used for encoding and decoding. In particular, the techniques may eliminate the need for a first binarization table when a linear model (LM) mode is enabled and a second binarization table when the LM mode is disabled. Instead, a unified binarization table may be used to replace the two binarization tables. By reducing the number of binarization tables, the techniques may serve to reduce the amount of memory required in an encoder or decoder device to perform a video encoding or decoding process, as well as potentially reducing the physical complexity of the hardware implementing the video encoding or decoding process. The techniques may be applicable to one or more video compression standards, and in particular, to the ITU-T H.266 standard, also referred to as Versatile Video Coding (VVC).

[0019]

[0029] According to some test models of VVC, a LM mode may be used to encode and decode a chroma block. Moreover, according to some test models of VVC, a syntax element may be used to indicate whether all LM modes are disabled for a picture of video data. According to these test models, if the LM mode is disabled, a first set of indexes may be used to identify a chroma intra-predictive coding mode to be used for a block, but if the LM mode is enabled, a second set of indexes (different from the first set) may be used. Moreover, two different binarization tables may be used to handle these two situations.

[0020]

[0030] The use of two different sets of indexes to identify intra-coding modes and the use of two different binarization tables are both issues that may arise from such a test model of VVC that uses a syntax element to indicate whether all LM modes are disabled for a picture of video data, which may cause complications in the encoding and decoding process and may require additional memory to store two binarization tables. The techniques of this disclosure address these issues by defining a common set of indexes that may be used for intra-mode identification, thereby eliminating two different sets of indexes that may otherwise be required when LM modes are enabled and when LM modes are disabled. Furthermore, the techniques of this disclosure address these issues of defining a common binarization table that may be used for all situations associated with intra-coding mode signaling, thereby reducing the number of binarization tables from two to one, which may reduce the amount of memory required in the encoder and decoder for the encoding and decoding process, as well as potentially reducing the physical complexity of the device implementing the encoding and decoding process.

[0021]

[0031] By eliminating the two binarization tables and replacing them with one unified binarization table, the mode index can be made consistent for the situation when the LM mode is enabled versus the situation when the LM mode is disabled. The benefits of such simplification and memory reduction can be realized without adverse impacts on compression and on encoding and coding efficiency.

[0022]

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

[0023]

[0033] 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. In particular, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may include any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and therefore may be referred to as wireless communication devices.

[0024]

[0034] 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 simplified intra-chroma mode coding. 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 and destination devices may include other components or arrangements. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.

[0025]

[0035] The system 100 shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may implement the techniques for simplified intra-chroma mode coding. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically video encoders and video decoders, respectively. In some examples, the devices 102, 116 may operate substantially symmetrically, such that each of the devices 102, 116 includes video encoding and decoding components. Thus, the system 100 may support one-way or two-way video transmission between the video devices 102, 116, for example, video streaming, video playback, video broadcasting, or video telephony.

[0026]

[0036] Generally, the 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 the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data or a combination of live, archival, and computer-generated video as the source video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may reorder the pictures from a receiving order (sometimes called a “display order”) into a coding order for coding. The 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 .

[0027]

[0037] 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 in this example as separate from the video encoder 200 and the video decoder 300, 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, portions of the memory 106, 120 may be allocated as one or more video buffers, for example, to store raw decoded and / or encoded video data.

[0028]

[0038] 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 for enabling the source device 102 to transmit the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 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 include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.

[0029]

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

[0030]

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

[0031]

[0041] 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 include 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 includes 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 attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.

[0032]

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

[0033]

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

[0034]

[0044] 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 handle multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol, or other protocols such as the User Datagram Protocol (UDP).

[0035]

[0045] 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, or any combination thereof, 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, etc. When the techniques are implemented partially in software, a device may store software instructions on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to implement 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 include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.

[0036]

[0046] 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 Joint Exploration Test Model (JEM), or Generic Video Coding (VVC). A recent draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 5)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 14th Meeting, Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v8 (hereinafter, "VVC Draft 5"). J. Chen, Y. Ye, S. Kim, "Algorithm description for Versatile Video Coding and Test Model 5 (VTM5)," 14th JVET Meeting, Geneva, Switzerland, March 2019, JVET-N1002 (hereinafter "VTM5") is a test model for VVC. However, the techniques of this disclosure are not limited to any particular coding standard.

[0037]

[0047] Generally, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure 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. Generally, 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 a sample of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red and blue hues of chrominance components. In some examples, the video encoder 200 converts received RGB format data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.

[0038]

[0048] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include processes of encoding or decoding data of a picture. Similarly, this disclosure may refer to coding a block of a picture to include processes of encoding or decoding data of the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series 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 be understood generally as coding values ​​of the syntax elements that form the picture or block.

[0039]

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

[0040]

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

[0041]

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

[0042]

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

[0043]

[0053] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures in accordance with 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 as well.

[0044]

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

[0045]

[0055] 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.

[0046]

[0056] The bricks in a picture may also be arranged into slices. A slice may be an integer number of bricks of a picture that may be contained entirely in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes either several complete tiles or only a continuous sequence of complete bricks of one tile.

[0047]

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

[0048]

[0058] 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 should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU prior to encoding and the predictive block.

[0049]

[0059] 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 a 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 or bidirectional prediction.

[0050]

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

[0051]

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

[0052]

[0062] The present disclosure describes video encoding and decoding techniques for encoding and decoding video data in a so-called "chroma intra prediction mode". The techniques may improve the encoding and decoding process by simplifying aspects of the encoding and decoding process and by reducing the number of binarization tables used for encoding and decoding. In particular, the techniques may eliminate the need for a first binarization table when the LM mode is enabled and a second binarization table when the LM mode is disabled. Instead, a unified binarization table may be used to replace the two binarization tables. By reducing the number of binarization tables, the techniques may serve to reduce the amount of memory required in an encoder or decoder device to perform a video encoding or decoding process. The techniques may be applicable to one or more video compression standards, and in particular, to the ITU-T H.266 standard, also referred to as VVC.

[0053]

[0063] According to some test models of VVC, a LM mode may be used to encode and decode a chroma block. Moreover, according to some test models of VVC, a syntax element may be used to indicate whether all LM modes are disabled for a picture of video data. According to these test models, if the LM mode is disabled, a first set of indexes may be used to identify a chroma intra-predictive coding mode to be used for a block, but if the LM mode is enabled, a second set of indexes (different from the first set) may be used. Moreover, two different binarization tables may be used to handle these two situations.

[0054]

[0064] The use of two different sets of indexes to identify intra-coding modes and the use of two different binarization tables are both problems that may arise from such a test model of VVC that uses a syntax element to indicate whether all LM modes are disabled for a picture of video data, which may cause complications in the encoding and decoding process and may require additional memory to store two binarization tables. The techniques of this disclosure address these problems by defining a common set of indexes that may be used for intra-mode identification, thereby eliminating two different sets of indexes that may otherwise be required when LM modes are enabled and when LM modes are disabled. Furthermore, the techniques of this disclosure address these problems of defining a common binarization table that may be used for all situations associated with intra-coding mode signaling, thereby reducing the number of binarization tables from two to one, which may reduce the amount of memory required in the encoder and decoder for the encoding and decoding process.

[0055]

[0065] By eliminating the two binarization tables and replacing them with one unified binarization table, the mode indexes can be made consistent for the situation when LM mode is enabled versus the situation when LM mode is disabled. The benefits of such simplification and memory reduction can be realized without adverse impacts on compression and without adverse impacts on encoding and coding efficiency.

[0056]

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

[0057]

[0067] 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 the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than 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. Additionally, 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 produces transform coefficients following application of the one or more transforms.

[0058]

[0068] As mentioned above, following any transformation to produce 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, providing 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 round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0059]

[0069] Following quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (and therefore lower frequency) transform coefficients at the front of the vector and lower energy (and therefore higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy code 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 code the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy code values ​​for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.

[0060]

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

[0061]

[0071] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for video decoder 300, e.g., in a picture header, block header, 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.

[0062]

[0072] 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.

[0063]

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

[0064]

[0074] 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- 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.

[0065]

[0075] As described above, video encoder 200 and video decoder 300 may apply CABAC encoding and decoding to values ​​of syntax elements. To apply CABAC encoding to a syntax element, video encoder 200 may binarize the value of the syntax element to form a series of one or more bits called "bins." Additionally, video encoder 200 may identify a coding context. The coding context may identify a probability of a bin having a particular value. For example, the coding context may indicate a probability of 0.7 of coding a bin with a value of 0 and a probability of 0.3 of coding a bin with a value of 1. After identifying the coding context, video encoder 200 may divide the interval into a lower sub-interval and an upper sub-interval. One of the sub-intervals may be associated with a value of 0 and the other sub-interval may be associated with a value of 1. The width of the sub-interval may be proportional to the probability indicated for the associated value by the identified coding context. If a bin of a syntax element has a value associated with a lower subinterval, the encoded value may be equal to the lower bound of the lower subinterval. If the same bin of a syntax element has a value associated with an upper subinterval, the encoded value may be equal to the lower bound of the upper subinterval. To encode the next bin of the syntax element, video encoder 200 may repeat these steps in an interval that is the subinterval associated with the value of the encoded bit. When video encoder 200 repeats these steps for the next bin, video encoder 200 may use a modified probability that is based on the identified coding context and the probability indicated by the actual value of the encoded bin.

[0066]

[0076] When the video decoder 300 performs CABAC decoding on the value of the syntax element, the video decoder 300 may identify a coding context. The video decoder 300 may then divide the interval into a lower sub-interval and an upper sub-interval. One of the sub-intervals may be associated with a value of 0, and the other sub-interval may be associated with a value of 1. The width of the sub-interval may be proportional to the probability indicated for the associated value by the identified coding context. If the encoded value is within the lower sub-interval, the video decoder 300 may decode a bin having a value associated with the lower sub-interval. If the encoded value is within the upper sub-interval, the video decoder 300 may decode a bin having a value associated with the upper sub-interval. To decode the next bin of the syntax element, the video decoder 300 may repeat these steps with the interval being the sub-interval containing the encoded value. When the video decoder 300 repeats these steps for the next bin, the video decoder 300 may use a modified probability based on the identified coding context and the probability indicated by the decoded bin. The video decoder 300 may then de-binarize the bins to recover the values ​​of the syntax elements.

[0067]

[0077] In some instances, the video encoder 200 may encode a bin using bypass CABAC coding. Performing bypass CABAC coding on a bin may be less computationally expensive than performing regular CABAC coding on a bin. Furthermore, performing bypass CABAC coding may enable a higher degree of parallelization and throughput. Bins encoded using bypass CABAC coding may be referred to as "bypass bins." Grouping bypass bins together may increase the throughput of the video encoder 200 and the video decoder 300. The bypass CABAC coding engine may be capable of coding several bins in a single cycle, whereas a regular CABAC coding engine may be capable of coding only a single bin in a cycle. The bypass CABAC coding engine may be simpler because it does not select a context and may assume a 1 / 2 probability for both symbols (0 and 1). Thus, in bypass CABAC coding, an interval is directly split in half.

[0068]

[0078] According to some techniques of this disclosure, a video coder (e.g., video encoder 200 or video decoder 300) may code a first syntax element (e.g., sps_cclm_enabled_flag) that indicates whether all LM modes are disabled for a picture of the video data. CCLM indicates cross-component linear model intra prediction. In this example, the video coder may code a second syntax element (e.g., intra_chroma_pred_mode) that indicates a chroma prediction mode index for a chroma block of the picture. A value of the second syntax element indicates that the intra prediction mode of the chroma block is inherited from the co-located luma block of the picture, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In this example, the video coder may code the chroma blocks of the picture based on the chroma prediction mode index.

[0069]

[0079] According to some techniques of this disclosure, the video encoder 200 may include a processing circuit configured to encode a first syntax element indicating whether all LM modes are disabled for a picture of the video data and to determine a chroma intra prediction mode for a chroma block of the picture. In addition, the processing circuit of the video encoder 200 may determine a chroma intra prediction index to specify a chroma intra prediction mode for the chroma block. For example, determining the chroma intra prediction mode index may include selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block. The co-located luma block may be co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The processing circuit of the video encoder 200 may encode a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0070]

[0080] Reciprocally, the video decoder 300 may include a processing circuit configured to decode a first syntax element indicating whether all LM modes are disabled for a picture of the video data and to decode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture. The processing circuit of the video decoder 300 may determine a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. Determining the chroma intra prediction mode for the chroma block may include determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value. The co-located luma block refers to a luma block that is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The processing circuitry of the video decoder 300 may decode the chroma block based on the chroma intra prediction mode for the chroma block, such as by using a chroma intra prediction mode to generate prediction data and by either using the prediction data as a chroma block or adding a residual value to the prediction data to define the chroma block.

[0071]

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

[0072]

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

[0073]

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

[0074]

[0084] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which 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 such a node including a parent node and a child node 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), the nodes may be further partitioned by their respective binary trees. The binary tree splitting of one node may be repeated until the nodes resulting from the split reach the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example QTBT structure 130 represents such a node with dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), and the CUs are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without further partitioning. As explained above, a CU may also be referred to as a "video block" or a "block."

[0075]

[0085] 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 is set as 4 (for both width and height), and MaxBTDepth is set as 4. Quad tree partitioning is first applied to the CTU to generate a quad tree leaf node. The quad tree leaf node may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quad tree leaf node is 128x128, it is not further split by the binary tree since the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the quad tree leaf node is further partitioned by the binary tree. Therefore, the quad tree leaf node is also the root node for the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it implies that no further vertical splitting is allowed. Similarly, a binary tree node having a height equal to MinBTSize implies that no further horizontal splitting is 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.

[0076]

[0086] 3 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. FIG. 3 is provided for illustrative purposes and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes video encoder 200 in the context of video coding standards, such as the developing H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.

[0077]

[0087] In the example of Figure 3, 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, 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 DPB 218, and an entropy coding unit 220 may be implemented in one or more processors or processing circuits. Moreover, the video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.

[0078]

[0088] 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 synchronous dynamic random access memory (DRAM), including 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 the other components of the video encoder 200, as shown, or off-chip relative to those components.

[0079]

[0089] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically so described, or to memory external to video encoder 200 unless specifically so described. Instead, 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.

[0080]

[0090] The various units in FIG. 3 are shown 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 with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to 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. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally unchanging. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0081]

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

[0082]

[0092] 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.

[0083]

[0093] 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.

[0084]

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

[0085]

[0095] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and encapsulate one or more CTUs in 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 CUs may also be generally referred to as “video blocks” or “blocks.”

[0086]

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

[0087]

[0097] 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 unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of the reference block. As another example, if the motion vectors have sub-sample precision, the motion compensation unit 224 may interpolate values ​​for the predictive block according to one or more interpolation filters. Moreover, in 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, through sample-wise averaging or weighted averaging.

[0088]

[0098] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring a current block. For example, in a directional intra prediction mode, the intra prediction unit 226 may generally mathematically combine values ​​of neighboring samples and populate these calculated values ​​in a prescribed direction across the current block to produce a predictive block. As another example, in 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.

[0089]

[0099] 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.

[0090]

[0100] 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 the like for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.

[0091]

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

[0092]

[0102] In 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 may generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the entropy coding unit 220.

[0093]

[0103] As described above, the residual generation unit 204 receives the 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 may calculate sample-by-sample differences between the predictive block and the current block.

[0094]

[0104] 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 on the residual block, e.g., a linear transform and a secondary transform such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0095]

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

[0096]

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

[0097]

[0107] 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.

[0098]

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

[0099]

[0109] 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.

[0100]

[0110] Video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture.

[0101]

[0111] 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.

[0102]

[0112] 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 blocks. Rather, the MVs for luma coding blocks may be scaled to determine the MVs for chroma 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.

[0103]

[0113] Video encoder 200 represents an example of a device configured to encode video data including a memory configured to store video data and one or more processing units implemented in a circuit, the one or more processing units configured to encode a first syntax element (e.g., sps_cclm_enabled_flag) indicating whether all LM modes are disabled for a picture of the video data. In this example, the one or more processing units of video encoder 200 may encode a second syntax element (e.g., intra_chroma_pred_mode) indicating a chroma prediction mode index for a chroma block of the picture. A value of the second syntax element indicates that an intra prediction mode of a chroma block is inherited from a co-located luma block of the picture, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In this example, the one or more processing units of video encoder 200 may encode the chroma block of the picture based on the chroma prediction mode index. For example, to encode a chroma block based on a chroma prediction mode index, video encoder 200 may generate a predictive block for the chroma block using a chroma prediction mode and generate a chroma prediction mode index to indicate the chroma prediction mode. Video encoder 200 may use the predictive block to generate residual data, as described elsewhere in this disclosure.

[0104]

[0114] The video encoder 200 further represents an example of a video encoding device comprising a memory 230 configured to store video data, a processing circuit (e.g., a mode selection unit 226 implemented by one or more processors) configured to: encode a first syntax element indicating whether all LM modes are disabled for a picture of the video data; determine a chroma intra prediction mode for a chroma block of the picture; determine a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block; and encode a second syntax element indicating a chroma prediction mode index for the chroma block of the picture, where determining the chroma intra prediction mode index includes selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The processing circuit may further implement an entropy encoding unit 220 that may be configured to encode the second syntax element using the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In various examples, the binarization table may specify different fixed length codes for different chroma prediction mode indexes, specify variable length codes for at least some of the chroma prediction mode indexes, and / or specify Golomb codes for the different chroma prediction mode indexes.

[0105]

[0115] 4 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. FIG. 4 is provided for illustrative purposes and is not intended to limit the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 in accordance with JEM, VVC, and HEVC techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.

[0106]

[0116] In the example of Figure 4, 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. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.

[0107]

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

[0108]

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

[0109]

[0119] 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 as described above along with 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.

[0110]

[0120] The various units shown in FIG. 4 are shown 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. 3, a fixed-function circuit refers to a circuit that provides a specific function and is preset with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to 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. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuit performs are generally unchanging. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0111]

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

[0112]

[0122] 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.

[0113]

[0123] 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., the block currently being decoded, may be referred to as the “current block”).

[0114]

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

[0115]

[0125] 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.

[0116]

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

[0117]

[0127] 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. 3). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.

[0118]

[0128] 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.

[0119]

[0129] Filter unit 312 may perform one or more filter operations on the reconstructed block. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed block. The operations of filter unit 312 are not necessarily performed in all examples.

[0120]

[0130] The video decoder 300 may store the reconstructed block 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 block in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the filtered reconstructed block 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. Moreover, the video decoder 300 may output the decoded picture from the DPB 314 for subsequent presentation on a display device, such as the display device 118 of FIG. 1.

[0121]

[0131] The video decoder 300 represents an example of a video decoding device including a memory configured to store video data and one or more processing units implemented in a circuit, the one or more processing units configured to decode a first syntax element (e.g., sps_cclm_enabled_flag) indicating whether all LM modes are disabled for a picture of the video data. In this example, the one or more processing units of the video decoder 300 may decode a second syntax element (e.g., intra_chroma_pred_mode) indicating a chroma prediction mode index for a chroma block of the picture. A value of the second syntax element indicates that an intra prediction mode of the chroma block is inherited from a co-located luma block of the picture, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In this example, the one or more processing units of the video decoder 300 may decode the chroma block of the picture based on the chroma prediction mode index. For example, to decode a chroma block based on a chroma prediction mode index, the video decoder 300 may use the chroma prediction mode index to determine a chroma prediction mode for the chroma block. The video decoder 300 may then generate a predictive block for the chroma block using the chroma prediction mode. The video decoder 300 may use the predictive block and the residual data to reconstruct the chroma block, as described elsewhere in this disclosure.

[0122]

[0132] In some examples, the video decoder 300 may also represent a video decoding device comprising a memory (e.g., the CPB memory 320) configured to store video data; a processing circuit (e.g., the intra prediction unit 318) configured to decode a first syntax element indicating whether all LM modes are disabled for a picture of the video data, decode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture, and determine a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. Determining the chroma intra prediction mode for the chroma block may include determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value. The co-located luma block may be co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. Video decoder 300 may decode a chroma block based on a chroma intra-prediction mode for the chroma block.

[0123]

[0133] The processing circuit may further implement an entropy decoding unit 302 that may decode the second syntax element using the same binarization table, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. Again, the binarization table may specify different fixed length codes for different chroma prediction mode indexes, specify variable length codes for at least some chroma prediction mode indexes, and / or specify Golomb codes for the different chroma prediction mode indexes.

[0124]

[0134] In order to capture any edge direction presented in natural video, the number of directional intra modes in VTM5 is extended to 65 from 33 used in HEVC. Figure 5 is a conceptual diagram showing exemplary normal intra prediction modes. In detail, Figure 5 is a conceptual diagram showing normal intra prediction modes in VTM5. The directional modes in VTM5 and not in HEVC are shown as dashed arrows in Figure 5, and the planar and DC modes remain the same. These denser directional intra prediction modes are applied for all block sizes and for both luma intra prediction and chroma intra prediction.

[0125]

[0135] In addition to traditional intra prediction (hereafter referred to as "normal" chroma mode) consisting of directional, DC and planar prediction modes in 4:2:0 chroma video coding, a method called linear model (LM) mode has been introduced. See J. Chen, V. Seregin, W.-J. Han, J.-S. Kim, B.-M. Joen, "CE6.a.4: Chroma intra prediction by reconstructed luma samples," Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, JCTVC-E266, Geneva, March 16-23, 2011. In the LM mode, a video coder (e.g., video encoder 200 or video decoder 300) predicts chroma samples based on reconstructed luma samples of the same block by using a linear model as follows:

[0126]

number

[0127] Here, pred c (i,j) represents the prediction of the chroma sample in the block, and rec L(i,j) represents the downsampled reconstructed luma samples of the same block. The video coder may derive parameters α and β by minimizing the regression error between neighboring reconstructed luma and chroma samples around the current block.

[0128]

number

[0129] The parameters α and β are solved as follows:

[0130]

number

[0131]

number

[0132] where x i is the downsampled reconstructed luma reference sample, and y i is the reconstructed chroma reference sample, and N is the number of reference samples used. Figure 6 is a conceptual diagram showing sample locations for deriving parameters related to the Linear Model (LM) mode.

[0133]

[0136] In VTM5, both normal and LM modes may be used for intra prediction for chroma components. The five normal chroma modes are DC (intra prediction mode 1), planar (intra prediction mode 0), vertical (intra prediction mode 50), horizontal (intra prediction mode 18), and derived (called DM_CHROMA, which indicates that the chroma intra prediction mode is derived from luma, i.e., chroma and luma share the same intra prediction mode). When a video coder (e.g., video encoder 200 or video decoder 300) uses DM_CHROMA for intra prediction of a chroma block, the video coder generates a predictive block for the chroma block using an intra prediction mode with the same intra prediction mode index as the luma block corresponding to the chroma block. In other words, the chroma block may inherit the intra prediction mode of the co-located luma component. There are three types of LM modes depending on the samples used to derive the associated parameters: 1) LM_CHROMA: uses samples from both top and left templates, 2) LM_A: uses samples only from top template, and 3) LM_L: uses samples only from left template. Thus, there are a total of eight chroma prediction modes, five normal modes and three LM modes. The derivation of the chroma prediction modes depending on the corresponding luma block is shown below.

[0134] [Table 1]

[0135] For example, in Table 1, if the corresponding luma intra prediction mode is 0 and the chroma prediction mode index is 1, then the chroma intra prediction mode is 50. If the chroma prediction mode index is 7, then the chroma intra prediction mode is the same as the corresponding luma intra prediction mode. Table 1 generally shows chroma intra prediction modes defined based on the chroma prediction mode index (shown in the leftmost column of Table 1) and the corresponding luma intra prediction mode (shown in the top row of numbers in Table 1).

[0136]

[0137] In this example, mode 81: LM_CHROA, mode 82: LM_A, mode 83: LM_L. A chroma prediction mode index equal to 7 indicates DM_CHROMA. Chroma prediction mode indexes 0, 1, 2, and 3 indicate planar (mode 0), vertical (mode 50), horizontal (mode 18), and DC (mode 1), respectively, unless the luma intra prediction mode matches the indicated chroma intra prediction mode (in which case the mode is modified to 66). This is because chroma intra prediction mode index 7 already incorporates the case where the luma and chroma modes are the same. Thus, for chroma prediction mode index 0 (indicating planar mode), when the luma intra prediction mode is 0 (planar), the chroma mode is modified to 66 to remove redundancy. Thus, the same is applicable for chroma intra prediction mode indexes 1, 2, and 3.

[0137]

[0138] VTM5 provides a function to disable all LM modes per frame. In particular, in VVC draft 5, an upper layer (e.g., SPS) flag "sps_cclm_enabled_flag" may be signaled. When the upper layer flag is equal to 0, the LM mode is excluded, and thus the number of chroma prediction modes is 5 (consisting only of normal mode). When the upper layer flag is equal to 1, the LM mode is not excluded. Thus, the number of chroma prediction modes is equal to 8. When the LM mode is excluded, the block may not be coded using any of the LM modes.

[0138] [Table 2]

[0139]

[0139] With different numbers of intra prediction modes depending on whether sps_cclm_enabled is 0 or not, the VTM5 specification describes two different binarization tables, shown below as Table 3 and Table 4. The binarization tables may be used to encode values ​​using bin strings, for example, according to a context-adaptive binary arithmetic coding scheme. Upon determining the intra chroma prediction mode (which may be called intra_chroma_pred_mode) based on an index (which may be a chroma prediction mode index), a binarization table such as Table 3 may be used for the binary zyton of the intra chroma prediction mode.

[0140] [Table 3]

[0141] [Table 4]

[0142] There are some issues with the scheme for intra-chroma prediction mode coding in VVC draft 5 and VTM5. In this disclosure, the phrases intra-chroma prediction mode and chroma prediction mode may be used synonymously when referring to intra-coding techniques. For example, DM_CHROMA mode has a chroma prediction mode index (e.g., intra_chroma_pred_mode) value of 7 when sps_cclm_enabled_flag is 1, and has a chroma prediction mode index value of 4 when sps_cclm_enabled_flag is 0, which does not match. Furthermore, in the specification text for chroma prediction mode index, two different binarization tables are required, which may be inconvenient and may add complexity to the video coder and / or consume storage resources.

[0143]

[0141] The techniques of this disclosure may address these issues. The techniques of this disclosure may be applied independently, or one or more of the techniques may be applicable together.

[0144]

[0142] According to VVC draft 5 and VTM5, LM mode may be used to encode and decode chroma blocks. Moreover, according to some test models of VVC, a syntax element may be used to indicate whether all LM modes are disabled for a picture of video data. According to these test models, if LM mode is disabled, a first set of indexes may be used to identify the chroma intra-predictive coding mode to be used for the block, but if LM mode is enabled, a second set of indexes (different from the first set) may be used. Moreover, two different binarization tables (e.g., Table 3 and Table 4) may be used to handle these two situations.

[0145]

[0143] The use of two different sets of indexes to identify intra-coding modes and the use of two different binarization tables are both problems that may arise from such a test model of VVC that uses a syntax element to indicate whether all LM modes are disabled for a picture of video data, which may cause complications in the encoding and decoding process and may require additional memory to store two binarization tables. The techniques of the present disclosure address these problems by defining a common set of indexes that may be used for intra-mode identification, thereby eliminating the two different sets of indexes that may otherwise be required when LM mode is enabled and when LM mode is disabled. Furthermore, the techniques of the present disclosure address these problems of defining a common binarization table that may be used for all situations associated with intra-coding mode signaling, thereby reducing the number of binarization tables from two to one, which may reduce the amount of memory required in the encoder and decoder for the encoding and decoding process.

[0146]

[0144] By eliminating the two binarization tables and replacing them with one unified binarization table, the chroma intra-prediction mode indexes can be made consistent for the situation when the LM mode is enabled versus the situation when the LM mode is disabled. In some examples, the benefits of such simplification and memory reduction can be realized without adverse impacts on compression and without adverse impacts on encoding and coding efficiency.

[0147] For consistency in the specification text, the techniques of this disclosure use the same value of intra_chroma_pred_mode for DM_CHROMA (e.g., 4) for both sps_cclm_enabled_flag being 0 or 1. The resulting chroma prediction mode table may be as follows:

[0148] [Table 5]

[0149] In Table 5, a value of 4 indicates that the intra prediction mode of the luma block is inherited by the chroma block regardless of whether LM mode is enabled. This differs from Tables 3 and 4, whose use depends on whether LM mode is enabled, where a different value of 4 or 7 indicates inheritance depending on whether LM mode is enabled.

[0150]

[0147] The techniques of this disclosure may avoid specifying two binarization tables for intra_chroma_pred_mode. Instead, this disclosure proposes a unified binarization table that may be used (e.g., by video encoder 200 and video decoder 300) for both cases where sps_cclm_enabled_flag is 0 and 1. For example, regardless of the value of sps_cclm_enabled_flag, the value of intra_chroma_pred_mode may be used to define a bin string according to a unified binarization table, such as Table 3, Table 4, or Table 6, Table 7, or Table 8 below.

[0151] [Table 6]

[0152]

[0148] Figure 7 is a signal tree for chroma coding in which a rectangular portion shows a branch when sps_cclm_enabled_flag is equal to 0, which is a branch of the signaling tree, in accordance with one or more techniques of this disclosure. Here, the first bin indicates whether the chroma prediction mode is one of the normal modes (0) or one of the LM modes (1). If the first bin indicates that the chroma prediction mode is a normal mode, the video coder (e.g., video encoder 200 or video decoder 300) derives the next bin in the same manner as described in Table 3. If the first bin indicates that the chroma prediction mode is one of the LM modes (i.e., the first bin is equal to 1), the next bin (i.e., the second bin) indicates whether the chroma prediction mode is LM_CHROMA (i.e., the second bin is equal to 0). If the chroma prediction mode is not LM_CHROMA (i.e., the second bin is equal to 1), the next bin (i.e., the third bin) indicates whether the chroma prediction mode is LM_L (i.e., the third bin is equal to 0) or LM_A (i.e., the third bin is equal to 1). When s_cclm_enabled_flag is 0, the video coder may discard the first bin of the binarization table for the corresponding intra_chroma_pred_mode prior to entropy coding. For example, when sps_cclm_enabled_flag is equal to 0, the video encoder 200 does not include bin 0 in the binarization of the intra_chroma_pred_mode, and the video decoder 300 may discard the first-occurring bin of the binarization of the intra_chroma_pred_mode. In other words, the first bin (i.e., bin 0) is inferred to be 0 and thus not to be coded. In response, the video decoder 300 may decode a bin string for the second syntax element. To decode a bin string for the second syntax element, the video decoder 300 may infer a first portion of the bin string associated with a chroma prediction mode used to decode the chroma blocks of the picture based on the value of the first syntax element and determine a second portion of the bin string associated with a chroma prediction mode used to decode the chroma blocks of the picture based on the value of the second syntax element.

[0153] In another example, video encoder 200 or video decoder 300 may use variable length codes for the four normal modes to give preference to the most likely mode among the four normal modes compared to Table 6. In other words, the most likely mode may be assigned a shorter bin string and the less likely mode may be assigned a longer bin string, which may improve compression of a picture of frame video data that uses different modes for different blocks within a picture of a frame.

[0154] [Table 7]

[0155]

[0150] In another example, the video encoder 200 and the video decoder 300 may use a different binarization table (e.g., Table 8) while keeping the number of bins for DM_CHROMA at 1 (instead of 2, as described above in Tables 6 and 7).

[0156] [Table 8]

[0157]

[0151] In Table 6, the following contexts may be used (all or perhaps only a subset may be used) to CABAC code the bin string for the intra_chroma_pred_mode syntax element:

[0158] · Context 0: 1st bin (LM mode or not).

[0159] Context 1: Second bin corresponding to first bin = 0 (DM_CHROMA or not).

[0160] Context 2: The second bin (LM_CHROMA or not) that corresponds when the first bin = 1.

[0161] Context 3: The third bin (LM_L or LM_A) that corresponds when the first bin = 1. However, in some examples, contexts 0-2 may be used as defined above and the third bin may be bypass coded.

[0162] [Table 9]

[0163] In Table 9, the context for each binIdx is shown for three different scenarios, defined by the values ​​of the syntax elements shown in the leftmost column of Table 9.

[0164]

[0152] In another example, to reduce the amount of parsing or context selection dependency, a video coder (e.g., video encoder 200 or video decoder 300) may use the following, where the same context (context 1) for binIdx=1 is selected regardless of the binIdx value:

[0165] · Context 1: First bin (LM mode or normal mode).

[0166] Context 2: The second bin (LM_CHROMA or not, and DM_CHROMA or not).

[0167] [Table 10]

[0168] Defining contexts as shown in Table 10 may help to reduce the amount of parsing or context selection dependency that might otherwise exist, for example, following the technique of using different contexts for every possible scenario of the values ​​of the syntax elements shown in the leftmost column of Table 10, without reducing or significantly affecting coding efficiency.

[0169] In Table 7, the following contexts may be used (in some examples, all of the following contexts may be used, and in other examples, only a subset of the contexts may be used): · Context 0: 1st bin (LM mode or not).

[0170] Context 1: Second bin corresponding to first bin = 0 (DM_CHROMA or not).

[0171] · Context 2: The third bin (planar or not) that corresponds when the first two bins are 01.

[0172] Context 3: When the first bin = 1, the corresponding second bin (LM_CHROMA or not).

[0173] · Context 4: The third bin (LM_L or LM_A) corresponding to when the first two bins are 11.

[0174]

[0154] Figure 8 is a flowchart showing an example method for encoding a current block. The current block may be or may include a current CU. Although described with respect to video encoder 200 (Figures 1 and 3), it should be understood that other devices may be configured to implement a method similar to that of Figure 8.

[0175]

[0155] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predictive block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate a difference between the original uncoded block and the predictive block for the current block. The video encoder 200 may then transform and quantize transform coefficients of the residual block (354). The video encoder 200 may then scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy code the transform coefficients (358), as well as entropy code an indication of the prediction mode used to form the predictive block. According to the techniques of this disclosure, if the current block is a chroma block and the chroma block is indicated as being coded using a derived mode (e.g., DM_CHROMA), i.e., that a prediction mode is to be derived, then video encoder 200 may code a value for a syntax element that represents the derived mode, where the value is the same regardless of whether linear mode is enabled for the picture that includes the current block. 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).

[0176]

[0156] According to FIG. 8, predicting the current block (350) may include encoding a first syntax element indicating whether all LM modes are disabled for a picture of the video data, determining a chroma intra prediction mode for a chroma block of the picture, and determining a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block. In this example, the chroma block may correspond to the current block referred to in (350) of FIG. 8. Moreover, in this example, determining a chroma intra prediction mode index may include selecting a specific value to specify that the chroma intra prediction mode for the chroma block is inherited from the co-located luma block. Furthermore, in this example, the co-located luma block is co-located with the chroma block, and the specific value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. The process of entropy encoding (358) may include encoding a second syntax element indicating a chroma prediction mode index for the chroma block of the picture. Further, the step of entropy encoding the transform coefficients (358) may include encoding a second syntax element, including encoding the second syntax element using the binarization table, the same binarization table, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0177]

[0157] Figure 9 is a flowchart illustrating an example method for decoding a current block of video data. The current block may be or may include a current CU. Although described with respect to a video decoder 300 (Figures 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of Figure 9.

[0178]

[0158] 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 for 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). According to the techniques of this disclosure, the video decoder 300 may decode a value for a syntax element that represents an intra prediction mode for the chroma block, and the value may be the same regardless of whether linear mode is enabled for the picture that includes the current block. The video decoder 300 may predict the current block, for example, using the intra prediction or inter prediction mode indicated by the prediction information for the current block, to compute 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 dequantize and inverse transform the transform coefficients to produce a residual block (378). The video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).

[0179]

[0159] According to the techniques of this disclosure, when the current block is a chroma block, the process of predicting the current block (374) may include decoding a first syntax element indicating whether all LM modes are disabled for the picture of the video data. Furthermore, the process of entropy decoding the entropy encoded data may include decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture, and determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction index. In this example, determining a chroma intra prediction mode for the chroma block may include determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value. Furthermore, in this example, the co-located luma block is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. Further, the video decoder 300 may decode the chroma block based on a chroma intra prediction mode for the chroma block. For example, the video decoder 300 may decode the chroma block by generating prediction data based on the chroma intra prediction mode, such as by adding residual values ​​to the prediction data to create a decoded block, or by simply using the prediction data as the decoded block. Further, entropy decoding the data (372) may include using the binarization table, which is the same binarization table, regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0180]

[0160] Figure 10 is a flowchart illustrating an example encoding method according to this disclosure. Although Figure 10 is described from the perspective of video encoder 200, other encoders may use the encoding method of this disclosure. As shown in the example of Figure 10, video encoder 200 may encode a first syntax element (e.g., sps_cclm_enabled_flag) that indicates whether all LM modes are disabled for a picture of the video data (1001). For example, to encode the first syntax element, video encoder 200 may include an unsigned integer representing the first syntax element in a bitstream that includes an encoded representation of the video data.

[0181]

[0161] Video encoder 200 may also determine a chroma intra prediction mode for a chroma block of a picture (1002). For example, video encoder 200 may compare results of encoding the chroma block using multiple different chroma intra prediction modes and determine the chroma intra prediction based on the comparison.

[0182]

[0162] Furthermore, the video encoder 200 may determine a chroma intra prediction index to specify a chroma intra prediction mode for the chroma block (1003). Furthermore, determining the chroma intra prediction index chroma intra prediction mode index may include selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from the co-located luma block. In the example of Figure 10, the co-located luma block is co-located with the chroma block, and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0183]

[0163] The video encoder 200 may then encode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture (1004). As described herein, encoding the second syntax element (1004) may include encoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In other words, the video encoder 200 may use the binarization table to look up a bin string corresponding to the chroma prediction mode index. After using the binarization table to look up the bin string corresponding to the chroma prediction mode index, the video encoder 200 may apply CABAC encoding to the bin string and include the resulting CABAC encoded bin string in the bitstream. In different examples, the binarization table may specify different fixed length codes for different chroma prediction mode indexes, specify variable length codes for at least some chroma prediction mode indexes, and / or specify Golomb codes for different chroma prediction mode indexes. The chroma prediction mode index defines a chroma prediction mode from a group of modes consisting of mode index 0-planar mode, mode index 1-vertical mode, mode index 2-horizontal mode, mode index 3-DC mode, mode index 4-DM_Chroma mode, mode index 5-LM_Chroma mode, mode index 6-LM_L mode, and mode index 7-LM_A mode.

[0184]

[0164] In some examples, using a binarization table may include encoding a bin string for the second syntax element based on the chroma prediction mode index using a binarization table that may correspond to Table 6, Table 7, or Table 8 above.

[0185]

[0165] As mentioned above, in some examples, encoding the second syntax element (e.g., intra_chroma_pred_mode) may include using a binarization table, and using the binarization table may include using the binarization table to determine a bin string based on a chroma prediction mode index. In some such examples, the video encoder 200 may exclude from the encoded video data a first portion (e.g., bin 0) of the bin string associated with a chroma prediction mode used to encode the chroma blocks of the picture. However, in such examples, the first portion is inferable (e.g., by the video decoder 300) based on a value of the first syntax element (e.g., sps_cclm_enabled_flag). In such examples, the video decoder 300 may include in the encoded video data a second portion (e.g., bins 1-3) of the bin string associated with a chroma prediction mode used to encode the chroma blocks of the picture.

[0186]

[0166] In some examples, encoding the second syntax element (e.g., intra_chroma_pred_mode) may include using a binarization table to determine a bin string based on a chroma prediction mode index, and applying a CABAC technique to encode the bin string for the second syntax element. To apply the CABAC technique to encode the bin string, the video encoder 200 may use a first context to encode a first-occurring bin of the bin string based on the first syntax element indicating that all LM modes are disabled for the picture, and use a second context to encode a second-occurring bin of the bin string according to a value of the first bin of the bin string. In this example, the first context and the second context are different from each other. The second-occurring bin indicates whether the chroma intra prediction mode for the chroma block is inherited from the co-located luma block.

[0187]

[0167] Figure 11 is a flowchart illustrating an example decoding method according to this disclosure. Although Figure 11 is described from the perspective of a video encoder 300, other decoders may use the decoding method of this disclosure. As shown in the example of Figure 11, the video decoder 300 decodes (1101) a first syntax element (e.g., sps_cclm_enabled_flag) indicating whether all LM modes are disabled for a picture of the video data. For example, to decode the first syntax element, the video decoder 300 may parse an unsigned integer value representing the first syntax element from a bitstream.

[0188] Further, the video decoder 300 decodes a second syntax element (e.g., intra_chroma_pred_mode) indicating a chroma prediction mode index for the chroma block of the picture (1102). The video decoder 300 determines a chroma intra prediction mode for the chroma block based on the chroma intra prediction index for the chroma block (1103). Determining the chroma intra prediction mode for the chroma block may include determining that the chroma intra prediction mode for the chroma block is inherited from the co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value. The co-located luma block is co-located with the chroma block, and the particular value is the same value (e.g., 4 in Tables 5 and 6) regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0189]

[0169] Further, in the example of FIG. 11, the video decoder 300 then decodes the chroma block based on a chroma intra prediction mode for the chroma block (1104). For example, using the chroma intra prediction mode, the video decoder 300 may either generate prediction data and use the prediction data as a decoded block or add a residual value to the prediction data to create a decoded block. As described herein, decoding the second syntax element (1102) may include decoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. In other words, the video decoder 300 may apply CABAC decoding to the bin string parsed from the bitstream. The video decoder 300 may use the binarization table to look up a chroma prediction mode index corresponding to the CABAC decoded bin string. As an example, the binarization table may specify different fixed length codes for different chroma prediction mode indexes, specify variable length codes for at least some chroma prediction mode indexes, and / or specify Golomb codes for different chroma prediction mode indexes. The binarization table may correspond to Table 6, Table 7, or Table 8 above. The chroma prediction mode index may define a chroma prediction mode from a group of modes consisting of mode index 0-planar mode, mode index 1-vertical mode, mode index 2-horizontal mode, mode index 3-DC mode, mode index 4-DM_Chroma mode, mode index 5-LM_Chroma mode, mode index 6-LM_L mode, and mode index 7-LM_A mode.

[0190]

[0170] In some examples, as part of decoding the second syntax element using the binarization table, the video decoder 300 may use the binarization table to determine a bin string for the second syntax element and to determine a chroma prediction mode index from the bin string. In some such examples, to determine a bin string for the second syntax element, the video decoder 300 may infer a first portion of the bin string associated with a chroma prediction mode used to decode a chroma block of the picture based on the value of the first syntax element. On the other hand, based on the value of the first syntax element indicating that all LM modes are enabled, the video decoder 300 may determine that the bin string includes the first portion. In any case, the video decoder 300 may determine a second portion of the bin string (e.g., bins 1-3) based on the value of the second syntax element.

[0191] In some examples, decoding the second syntax element may include the video decoder 300 applying a CABAC technique to determine a bin string for the second syntax element and using a binarization table to determine a chroma prediction mode index from the bin string. Applying a CABAC technique to determine a bin string for the second syntax element may include using a first context to decode a first occurring bin of the bin string based on the first syntax element indicating that all LM modes are disabled for the picture, and using a second context to decode a second occurring bin of the bin string according to a value of the first bin of the bin string, where the first context and the second context are different from each other and the second occurring bin indicates whether a chroma intra prediction mode for the chroma block is inherited from a co-located luma block.

[0192] EXAMPLES - The following examples illustrate one or more aspects of the present disclosure.

[0193]

[0173] Example 1 - A method for decoding video data, the method comprising: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture; determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction index, wherein determining the chroma intra prediction mode for the chroma block comprises determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value, wherein the co-located luma block is co-located with the chroma block and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0194]

[0174] Example 2 - A method as described in Example 1, wherein decoding the second syntax element comprises decoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0195] Example 3 - The method according to any combination of Examples 1-2, wherein the binarization table specifies different fixed length codes for different chroma prediction mode indexes.

[0196] Example 4 - The method of any combination of Examples 1-3, wherein the binarization table specifies variable length codes for at least some of the chroma prediction mode indexes.

[0197] Example 5 - The method of any combination of Examples 1-4, wherein the binarization table specifies Golomb codes for different chroma prediction mode indexes.

[0198]

[0178] Example 6 - A method according to any combination of Examples 1 to 5, wherein the chroma prediction mode index defines a chroma prediction mode from a group of modes consisting of mode index 0 - planar mode, mode index 1 - vertical mode, mode index 2 - horizontal mode, mode index 3 - DC mode, mode index 4 - DM_Chroma mode, mode index 5 - LM_Chroma mode, mode index 6 - LM_L mode, and mode index 7 - LM_A mode.

[0199]

[0179] Example 7 - A method according to any combination of Examples 1 to 6, wherein using the binarization table comprises determining a bin string for the second syntax element and using the binarization table to determine a chroma prediction mode index from the bin string.

[0200]

[0180] Example 8: If the binarization table is

[0201] [Table 11]

[0202] The method of any combination of Examples 1-7, comprising:

[0203]

[0181] Example 9 - A method according to any combination of Examples 1 to 8, wherein decoding the second syntax element using the binarization table comprises determining a bin string for the second syntax element and using the binarization table to determine a chroma prediction mode index from the bin string, and determining the bin string for the second syntax element comprises inferring a first portion of the bin string associated with a chroma prediction mode used to decode the chroma blocks of the picture based on the value of the first syntax element, and determining a second portion of the bin string associated with a chroma prediction mode used to decode the chroma blocks of the picture based on the value of the second syntax element.

[0204]

[0182] Example 10 - A method according to any combination of Examples 1 to 9, wherein decoding the second syntax element comprises applying a context-adaptive binary arithmetic coding (CABAC) technique to determine a bin string for the second syntax element and using a binarization table to determine a chroma prediction mode index from the bin string, wherein applying the CABAC technique to determine a bin string for the second syntax element comprises using a first context to decode a first occurring bin of the bin string based on the first syntax element indicating that all LM modes are disabled for the picture, and using a second context to decode a second occurring bin of the bin string depending on the value of the first bin of the bin string, wherein the first context and the second context are different from each other and the second occurring bin indicates whether the chroma intra prediction mode for the chroma block is inherited from the co-located luma block or not.

[0205]

[0183] Example 11 - A method for encoding video data, the method comprising: encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; determining a chroma intra prediction mode for a chroma block of the picture; and determining a chroma intra prediction index to specify the chroma intra prediction mode for the chroma block, wherein determining the chroma intra prediction mode index comprises selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, wherein the co-located luma block is co-located with the chroma block and the particular value is the same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0206]

[0184] Example 12 - The method described in Example 11, wherein encoding the second syntax element comprises encoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

[0207]

[0185] Example 13 - The method according to any combination of Examples 11-12, wherein the binarization table specifies different fixed length codes for different chroma prediction mode indexes.

[0208]

[0186] Example 14 - The method of any combination of Examples 11-13, wherein the binarization table specifies variable length codes for at least some chroma prediction mode indexes.

[0209]

[0187] Example 15 - The method of any combination of Examples 11-14, wherein the binarization table specifies Golomb codes for different chroma prediction mode indexes.

[0210]

[0188] Example 16 - A method according to any combination of Examples 11 to 15, wherein the chroma prediction mode index defines a chroma prediction mode from a group of modes consisting of mode index 0 - planar mode, mode index 1 - vertical mode, mode index 2 - horizontal mode, mode index 3 - DC mode, mode index 4 - DM_Chroma mode, mode index 5 - LM_Chroma mode, mode index 6 - LM_L mode, and mode index 7 - LM_A mode.

[0211]

[0189] Example 17 - A method according to any combination of Examples 11 to 16, wherein using a binarization table comprises encoding a bin string for a second syntax element based on a chroma prediction mode index using the binarization table.

[0212]

[0190] Example 18 - If the binarization table is

[0213] [Table 12]

[0214] The method of any combination of Examples 11-17, comprising:

[0215]

[0191] Example 19 - A method according to any combination of Examples 11 to 18, wherein encoding the second syntax element using a binarization table comprises using the binarization table to determine a bin string based on a chroma prediction mode index, excluding from the encoded video data a first portion of the bin string associated with a chroma prediction mode used to encode the chroma blocks of the picture, wherein the first portion is inferable based on the value of the first syntax element.

[0216]

[0192] Example 20 - A method according to any combination of Examples 11 to 19, wherein encoding the second syntax element comprises using a binarization table to determine a bin string based on a chroma prediction mode index, and applying a context-adaptive binary arithmetic coding (CABAC) technique to encode the bin string for the second syntax element, wherein applying the CABAC technique to encode the bin string comprises using a first context to encode a first occurring bin of the bin string based on the first syntax element indicating that all LM modes are disabled for the picture, and using a second context to encode a second occurring bin of the bin string depending on the value of the first bin of the bin string, wherein the first context and the second context are different from each other, and the second occurring bin indicates whether the chroma intra prediction mode for the chroma block is inherited from the co-located luma block.

[0217] Example 21 - A video decoding device configured to perform any combination of the methods described in Examples 1-10.

[0218] Example 22 - A video decoding device comprising means for performing any combination of the steps recited in Examples 1-10.

[0219]

[0195] Example 23 - A computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video decoding device to perform a method according to any combination of Examples 1-10.

[0220] Example 24 - A video encoding device configured to perform any combination of the methods described in Examples 11-20.

[0221] Example 25 - A video encoding device comprising means for performing any combination of the steps recited in Examples 11-20.

[0222]

[0198] Example 26 - A computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video encoding device to perform a method according to any combination of Examples 11-20.

[0223]

[0199] In accordance with the above examples, it should be recognized that some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all described acts or events are necessary to the practice of the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.

[0224]

[0200] 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 codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or may include a communication medium, which includes any medium that enables the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, the 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. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.

[0225]

[0201] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that 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 the instructions are transmitted from a website, server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the 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 with lasers. Combinations of the above should also be included within the scope of computer readable media.

[0226]

[0202] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic 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. Furthermore, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.

[0227]

[0203] 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). In this disclosure, various components, modules, or units have been described to highlight functional aspects of devices configured to implement the disclosed techniques, but the components, modules, or units 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 provided by a collection of interoperable hardware units, including one or more processors described above, along with suitable software and / or firmware.

[0228]

[0204] Various examples have been described. These and other examples are within the scope of the following claims. The invention as described in the claims of the original application is set forth below. [C1] 1. A method for decoding video data, the method comprising: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture; determining a chroma intra prediction mode for the chroma block based on a chroma intra prediction index, where determining the chroma intra prediction mode for the chroma block comprises determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a particular value, where the co-located luma block is co-located with the chroma block and the particular value is a same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. and decoding the chroma block based on the chroma intra prediction mode for the chroma block. [C2] The method of C1, wherein decoding the second syntax element comprises decoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. [C3] The method of C2, wherein the binarization table specifies different fixed length codes for different chroma prediction mode indexes. [C4] The method of C2, wherein the binarization table specifies variable length codes for at least some chroma prediction mode indexes. [C5] The method of C2, wherein the binarization table specifies Golomb codes for different chroma prediction mode indexes. [C6] The chroma prediction mode index is Mode index 0 - planar mode, Mode index 1 - vertical mode, Mode index 2 - horizontal mode, Mode index 3-DC mode, Mode index 4 - DM_Chroma mode, Mode index 5 - LM_Chroma mode, Mode index 6-LM_L mode; The method of claim 1, further comprising defining a chroma prediction mode from a group of modes consisting of mode index 7-LM_A mode. [C7] Using the binarization table, determining a bin string for the second syntax element; and and using the binarization table to determine the chroma prediction mode index from the bin string. [C8] The binarization table is

Table 13

Table 14

Table 15

Table 16

Claims

1. 1. A method for decoding video data, the method comprising: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; decoding a second syntax element indicating a chroma intra prediction mode index for a chroma block of the picture; determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction mode index, wherein determining the chroma intra prediction mode for the chroma block comprises determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma intra prediction mode index for the chroma block being equal to a particular value, wherein the co-located luma block is co-located with the chroma block and the particular value is a same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. decoding the chroma block based on the chroma intra prediction mode for the chroma block; wherein decoding the second syntax element comprises decoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. A method comprising:

2. The method of claim 1 , wherein the binarization table specifies different fixed length codes for different chroma intra-prediction mode indexes.

3. The method of claim 1 , wherein the binarization table specifies variable length codes for at least some chroma intra-prediction mode indexes.

4. The method of claim 1 , wherein the binarization table specifies Golomb codes for different chroma intra-prediction mode indexes.

5. Using the binarization table determining a bin string for the second syntax element; and using the binarization table to determine the chroma intra-prediction mode index from the bin string.

6. Decoding the second syntax element includes: applying a context-adaptive binary arithmetic coding (CABAC) technique to determine a bin string for the second syntax element; using the binarization table to determine the chroma intra-prediction mode index from the bin string; wherein applying the CABAC technique to determine the bin string for the second syntax element comprises: based on the first syntax element indicating that all LM modes are disabled for the picture, using a first context to decode a first occurring bin of the bin string; 2. The method of claim 1 , comprising: using a second context to decode a second occurring bin of the bin string depending on a value of the first occurring bin of the bin string, wherein the first context and the second context are different from each other and the second occurring bin indicates whether the chroma intra prediction mode for the chroma block is inherited from a co-located luma block or not.

7. 1. A method for encoding video data, the method comprising: encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; determining a chroma intra prediction mode for a chroma block of the picture; determining a chroma intra prediction mode index to specify the chroma intra prediction mode for the chroma block, wherein determining a chroma intra prediction mode index comprises selecting a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, wherein the co-located luma block is co-located with the chroma block and the particular value is a same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. encoding a second syntax element indicating the chroma intra prediction mode index for the chroma block of the picture, wherein encoding the second syntax element comprises encoding the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. A method comprising:

8. the binarization table specifying different fixed length codes for different chroma intra-prediction mode indexes; the binarization table specifies variable length codes for at least some chroma intra-prediction mode indexes; or The method of claim 7 , wherein the binarization table specifies Golomb codes for different chroma intra-prediction mode indexes.

9. The chrominance intra-prediction mode index is Mode index 0 - planar mode; Mode index 1 - vertical mode; Mode index 2 - horizontal mode; Mode index 3-DC mode; Mode index 4 - DM_Chroma mode; Mode index 5 - LM_Chroma mode; Mode index 6-LM_L mode; The method of claim 7, further comprising defining a chroma prediction mode from a group of modes consisting of mode index 7-LM_A mode.

10. Using the binarization table 8. The method of claim 7 comprising encoding a bin string for the second syntax element based on the chroma intra-prediction mode index using the binarization table.

11. encoding the second syntax element using the binarization table, using the binarization table to determine a bin string based on the chroma intra-prediction mode index; excluding from the encoded video data a first portion of the bin string associated with a chroma prediction mode used to encode the chroma blocks of the picture, wherein the first portion is inferable based on the value of the first syntax element. and including in the encoded video data a second portion of the bin string associated with the chroma prediction mode used to encode the chroma blocks of the picture.

12. 1. A video decoding device, comprising: a memory configured to store video data; and a processing circuit, the processing circuit comprising: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; decoding a second syntax element indicating a chroma intra prediction mode index for a chroma block of the picture; determining a chroma intra prediction mode for the chroma block based on the chroma intra prediction mode index, where for determining the chroma intra prediction mode for the chroma block, the processing circuitry is configured to determine that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block based on the chroma intra prediction mode index for the chroma block being equal to a particular value, where the co-located luma block is co-located with the chroma block and the particular value is a same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. and decoding the chroma block based on the chroma intra prediction mode for the chroma block. The processing circuit is configured to decode the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

13. 1. A video encoding device, comprising: a memory configured to store video data; and a processing circuit, the processing circuit comprising: encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a picture of the video data; determining a chroma intra prediction mode for a chroma block of the picture; determining a chroma intra prediction mode index to specify the chroma intra prediction mode for the chroma block, where for determining the chroma intra prediction mode index, the processing circuitry is configured to select a particular value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luma block, where the co-located luma block is co-located with the chroma block and the particular value is a same value regardless of whether the first syntax element indicates that all LM modes are disabled for the picture. and encoding a second syntax element indicating the chroma intra prediction mode index for the chroma block of the picture; The processing circuit is configured to encode the second syntax element using a binarization table that is the same binarization table regardless of whether the first syntax element indicates that all LM modes are disabled for the picture.

14. 12. A computer readable storage medium storing instructions which, when executed, cause one or more processors of a video decoding device to perform a method according to any one of claims 1 to 11.