Simplified intra-frame chroma mode decoding in video decoding

By defining a common index set and a binarized table, the LM mode under the ITU-T H.266 standard is uniformly processed, solving the complexity and memory requirements caused by enabling and disabling the linear model mode, and achieving simplified video encoding and decoding. process and reduce hardware complexity.

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

Patent Information

Application Number
CN202080044227.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-22
Filing Date
2020-04-23
Publication Date
2024-09-13
Estimated Expiration
2040-04-23

AI Technical Summary

Technical Problem

When existing video encoding and decoding technology uses the ITU-T H.266 standard, enabling and disabling the linear model (LM) mode leads to complexity in the encoding and decoding process, requiring additional memory to store two different binarization tables. Increased hardware complexity and memory requirements.

Method used

By defining a common index set and a common binarization table, intra-frame pattern recognition and encoding are unified and the number of binarization tables is reduced, thereby simplifying the encoding and decoding process and reducing memory requirements.

Benefits of technology

Achieving mode index consistency when LM mode is enabled or disabled reduces encoder and decoder memory requirements and reduces hardware complexity without affecting compression efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113994694B_ABST
    Figure CN113994694B_ABST
Patent Text Reader

Abstract

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

Description

[0001] This patent application claims priority to U.S. Patent Application No. 16 / 855,462, filed on April 22, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 866,445, filed on June 25, 2019, and U.S. Provisional Patent Application No. 62 / 871,548, filed on July 8, 2019. The entire contents of each of the above applications are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to video encoding and video decoding. Background Art

[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 radiotelephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. Video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information by implementing such video coding techniques.

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove inherent redundancy in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) can be divided into video blocks, which can 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 relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture can use spatial prediction relative to reference samples in neighboring blocks in the same picture, or temporal prediction relative to reference samples in other reference pictures. Pictures can be referred to as frames, and reference pictures can be referred to as reference frames. Summary of the invention

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

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

[0007] The use of two different sets of indexes to identify intra-frame decoding modes and two different binarization tables are both problems that may arise from such a VVC test model, which uses syntax elements to indicate whether all LM intra-frame prediction modes are disabled for a picture of video data, which may lead to complexity in the encoding and decoding process and may require additional memory to store two binarization tables. The technology of the present disclosure can solve these problems by defining a common set of indexes that can be used for intra-frame mode identification, thereby eliminating two different sets of indexes that may otherwise be required when enabling LM mode and disabling LM mode. In addition, the technology of the present disclosure can solve these problems: define a common binarization table that can be used for all situations associated with intra-frame decoding mode signaling, thereby reducing the number of binarization tables from two to one, which can reduce the amount of memory required for the encoding and decoding process in the encoder and decoder.

[0008] In one example, the present disclosure describes a method for decoding video data. The method may include: decoding a first syntax element indicating whether all LM modes are disabled for a picture of 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 include: determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value, wherein the co-located luminance 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 also include decoding the chroma block based on the chroma intra prediction mode for the chroma block.

[0009] In another example, the present disclosure describes a method for 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 luminance block, wherein the co-located luminance 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 also include encoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture.

[0010] In another example, the present disclosure describes a video decoding device comprising a memory and a processing circuit configured to store video data. The processing circuit may be configured to perform the following operations: 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. In order to determine the chroma intra prediction mode for the chroma block, the processing circuit may be configured to determine that the chroma intra prediction mode for the chroma block is inherited from a co-located luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value, wherein the co-located luminance 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 decode the chroma block based on the chroma intra prediction mode for the chroma block.

[0011] In another example, the present disclosure describes a video encoding device comprising 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. In order 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 luminance block, wherein the co-located luminance 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 a chroma block of the picture.

[0012] In another example, the present disclosure describes a video decoding device, which includes a unit for decoding a first syntax element indicating whether all LM modes are disabled for a picture of video data, a unit for decoding a second syntax element indicating a chroma prediction mode index for a chroma block of the picture; and a unit for 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 include: determining that the chroma intra prediction mode for the chroma block is inherited from a co-located luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value, wherein the co-located luminance 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 device may also include a unit for decoding the chroma block based on the chroma intra prediction mode for the chroma block.

[0013] In another example, the present disclosure describes a video encoding device that includes a unit for encoding a first syntax element indicating whether all LM modes are disabled for a picture of video data, a unit for determining a chroma intra prediction mode for a chroma block of the picture, and a unit 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 include selecting a specific value to specify that the chroma intra prediction mode for the chroma block is inherited from a co-located luminance block, wherein the co-located luminance 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 device may also include a unit for encoding a second syntax element indicating a chroma prediction mode index for the chroma block of the picture.

[0014] 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 decoding device to perform the following operations: decode a first syntax element indicating whether all LM modes are disabled for a picture of 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 luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value, wherein the co-located luminance 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 instructions may also cause one or more processors to decode the chroma block based on the chroma intra prediction mode for the chroma block.

[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 perform the following operations: encode a first syntax element indicating whether all LM modes are disabled for a picture of video data; determine a chroma intra-frame prediction mode for a chroma block; and determine a chroma intra-frame prediction index to specify a chroma intra-frame prediction mode for the chroma block. Determining the chroma intra-frame prediction mode may include: selecting a specific value to specify that the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block, wherein the co-located luminance 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 instructions 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] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

[0018] Figure 2A and 2B is a conceptual diagram illustrating an example quadtree-binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

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

[0020] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0021] Figure 5 is a conceptual diagram illustrating an example conventional intra prediction mode.

[0022] Figure 6 is a conceptual diagram showing sample locations for deriving parameters associated with a linear model (LM) prediction mode.

[0023] Figure 7 is a signal tree for chroma decoding in which the rectangular portion indicates a branch, which is a branch of the signal tree, when sps_cclm_enabled_flag is equal to 0 in accordance with one or more techniques of this disclosure.

[0024] Figure 8 is a flow chart illustrating an example method for encoding a current block.

[0025] Fig. 9 is a flow chart illustrating an example method for decoding a current block of video data.

[0026] Fig.10 is a flow chart illustrating an example encoding method consistent with the present disclosure.

[0027] Fig.11 is a flowchart illustrating an example decoding method consistent with the present disclosure DETAILED DESCRIPTION

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

[0029] According to some test models of VVC, chroma blocks can be encoded and decoded using the LM mode. In addition, according to some test models of VVC, syntax elements can 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 is used to identify the chroma intra-frame prediction coding mode for the block, but if the LM mode is enabled, a second set of indexes (different from the first set) can be used. In addition, two different binarization tables can be used to handle these two cases.

[0030] The use of two different sets of indexes to identify intra-frame decoding modes and two different binarization tables are both issues that may result from the VVC test model, which uses syntax elements to indicate whether all LM modes are disabled for a picture of video data, which may result in complexity in the encoding and decoding processes and may require additional memory to store two binarization tables. The technology of the present disclosure can solve these problems by defining a common set of indexes that can be used for intra-frame mode recognition, thereby eliminating two different sets of indexes that may be required when enabling LM mode and disabling LM mode. In addition, the technology of the present disclosure can solve these problems by defining a common binarization table that can be used for all situations associated with intra-frame decoding mode signaling, thereby reducing the number of binarization tables from two to one, which can reduce the amount of memory required for the encoding and decoding processes in encoders and decoders, as well as potentially reducing the physical complexity of devices that implement the encoding and decoding processes.

[0031] By eliminating two binarization tables and replacing them with a unified binarization table, the mode index when LM mode is enabled can be made consistent with the mode index when LM mode is disabled. Such simplification and memory reduction advantages can be achieved without any negative impact on compression and without any negative impact on encoding and encoding efficiency.

[0032] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to decoding (encoding and / or decoding) video data. In general, video data includes any data used to process video. Thus, video data can include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

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

[0034] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply a technology for simplified intra-frame chroma mode decoding. Therefore, 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, source device and destination device 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 be connected to an external display device, rather than including an integrated display device.

[0035] like Figure 1 The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform the technology for simplified intra-frame chroma mode decoding. The source device 102 and the destination device 116 are only examples of such decoding devices as follows: the source device 102 generates a decoding device for the decoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, particularly video encoders and video decoders, respectively. In some examples, the devices 102, 116 can operate in a substantially symmetrical manner so that each of the devices 102, 116 includes a video encoding component and a video decoding component. Therefore, the system 100 can support one-way video transmission or two-way video transmission between video devices 102, 116, for example, for video streaming, video playback, video broadcasting or video telephony.

[0036] In general, the video source 104 represents the source of video data (i.e., the original, unencoded video data) and a sequential series of pictures (also referred to as "frames") that provide 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 camera, a video archive containing previously captured raw video, and / or a video feed interface) to receive video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they are received (sometimes referred to as "display order") to a decoding order for decoding. The video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .

[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 memory 106, memory 120 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memory 106, memory 120 can store software instructions executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memory for functionally similar or equivalent purposes. In addition, the memory 106, memory 120 can store encoded video data, for example, output from the video encoder 200 and input to the video decoder 300. In some examples, a portion of the memory 106, memory 120 can be allocated as one or more video buffers, for example, to store original, decoded and / or encoded video data.

[0038] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the 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 so that the source device 102 can directly transmit the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 can modulate a transmission signal including the encoded video data, and the input interface 122 can demodulate the received transmission signal according to a communication standard (such as a wireless communication protocol). The communication medium may include any wireless communication medium 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 a router, a switch, a base station, or other devices that can be used to facilitate communication from the source device 102 to the destination device 116.

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

[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 data generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to the destination device 116. The file server 114 may represent a network 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 via any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of 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 transfer protocol, a download transfer protocol, or a combination thereof.

[0041] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data (e.g., encoded video data) according to a cellular communication standard (e.g., 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (e.g., encoded video data) according to other wireless standards (e.g., IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee), Bluetooth 5G, etc.). TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include respective system-on-chip (SoC) devices. For example, source device 102 may include an SoC device to perform functions attributed to video encoder 200 and / or output interface 108, and destination device 116 may include an SoC device to perform functions attributed to video decoder 300 and / or input interface 122.

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

[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, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements with values ​​describing characteristics of video blocks or other decoded units (e.g., slices, pictures, groups of pictures, sequences, etc.) and / or processing of video blocks or other encoded units. The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 can 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.

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

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

[0046] The video encoder 200 and the 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 an extension thereof such as multi-view and / or scalable video coding extensions. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as the Joint Exploration Test Model (JEM) or ITU-T H.266, also known as Versatile Video Coding (VVC). The latest draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 5)" ITU-TSG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Joint Video Experts Group (JVET), 14th meeting: Geneva, Switzerland, March 2019, JVET-P2001-v14 (hereinafter referred to as "VVC Draft 7"), and J. Chen, Y. Ye, S. Kim, "Algorithm description for Versatile Video Coding and Test Model 5 (VTM5)" 14th meeting: Geneva, Switzerland, March 2019, JVET-N1002 (hereinafter referred to as "VTM5") is a test model for VVC. However, the technology of the present disclosure is not limited to any particular coding standard.

[0047] In general, the video encoder 200 and the video decoder 300 can perform block-based decoding of the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can decode the luminance component and the chrominance component instead of decoding the red, green, and blue (RGB) data of the samples of the picture, wherein the chrominance component may include both the red chrominance component and the blue chrominance component. In some examples, the video encoder 200 converts the received RGB format data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.

[0048] The present disclosure may generally refer to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may refer to the decoding of a block of a picture to include the process of encoding or decoding data for the block, for example, prediction and / or residual decoding. The encoded video bitstream typically includes a series of values ​​for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or a block should generally be understood as decoding values ​​for syntax elements that form a picture or a block.

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

[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 decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide the CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure removes the concept of multiple partition types, such as the separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).

[0051] In the MTT partition structure, a block may be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) partitioning. A ternary tree partition is a partition that splits a block into three sub-blocks. In some examples, a ternary tree partition divides a block into three sub-blocks without splitting the initial block by the center. The partition types in MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.

[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 luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for respective chroma components).

[0053] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partitioning structures per HEVC. For purposes of explanation, the description of the techniques of the present disclosure is given with respect to QTBT partitioning. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree partitioning or to use other types of partitioning.

[0054] Blocks (e.g., CTUs or CUs) can be grouped in various ways in a picture. For example, a brick may refer to a rectangular area of ​​a CTU row within a specific tile in a picture. A tile may be a rectangular area of ​​a CTU within a specific tile column and a specific tile row in a picture. A tile column refers to a rectangular area of ​​a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a set of picture parameters). A tile row refers to a rectangular area of ​​a CTU having a height specified by a syntax element (e.g., such as in a set of picture parameters) and a width equal to the width of the picture.

[0055] In some examples, a tile may be divided into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not divided 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.

[0056] Tiles in a picture may also be arranged in slices. A slice may be an integer number of tiles of a picture that may be contained exclusively in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes multiple complete tiles or only a contiguous sequence of complete tiles of a tile.

[0057] The present disclosure may use "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. In general, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. Furthermore, a CU need not necessarily 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.

[0058] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how to predict the CU in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.

[0059] In order to predict a CU, the video encoder 200 can generally form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU from previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform a motion search to identify a reference block that closely matches the CU, for example, according to the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of squared errors (SSD), the mean absolute difference (MAD), the mean square error (MSD) or other such differential calculations to calculate the differential metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.

[0060] Some examples of JEM and VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion, such as enlargement or reduction, rotation, perspective motion, or other irregular motion types.

[0061] In order to perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of JEM and VVC provide sixty-seven intra prediction modes, including modes of various directions as well as planar modes and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes the neighboring samples of the samples from which the current block is predicted for the current block (e.g., a block of a CU). Assuming that the video encoder 200 decodes the CTU and CU in a raster scan order (left to right, top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.

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

[0063] According to some test models of VVC, the LM mode can be used to encode and decode chroma blocks. In addition, according to some test models of VVC, syntax elements can 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 is used to identify the chroma intra-frame prediction decoding mode for the block, but if the LM mode is enabled, a second set of indexes (different from the first set) can be used. In addition, two different binarization tables can be used to handle these two cases.

[0064] The use of two different sets of indexes to identify intra-frame decoding modes and two different binarization tables are both problems derived from such a VVC test model, which uses syntax elements to indicate whether all LM modes are disabled for a picture of video data, which may lead to complexity in the encoding and decoding process and may require additional memory to store two binarization tables. The technology of the present disclosure can solve these problems by defining a common set of indexes that can be used for intra-frame mode recognition, thereby eliminating two different sets of indexes that may be required when enabling LM mode and disabling LM mode. In addition, the technology of the present disclosure can solve these problems of defining a common binarization table that can be used for all situations associated with intra-frame decoding mode signaling, thereby reducing the number of binarization tables from two to one, which can reduce the amount of memory required for the encoding and decoding process in the encoder and decoder.

[0065] By eliminating two binarization tables and replacing them with a unified binarization table, the mode index when LM mode is enabled can be made consistent with the mode index when LM mode is disabled. Such simplification and memory reduction advantages can be achieved without any negative impact on compression and without any negative impact on encoding and decoding efficiency.

[0066] More generally, the video encoder 200 encodes data representing a prediction mode for a current block. For example, for an inter-frame prediction mode, the video encoder 200 may encode data indicating which inter-frame prediction mode of various available inter-frame prediction modes is used and motion information for the corresponding mode. For unidirectional inter-frame prediction or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using improved motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.

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

[0068] As described above, after any transformation to produce transform coefficients, the video encoder 200 can 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 the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 can round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 can perform a bitwise right shift of the value to be quantized.

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

[0070] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether the value of the symbol's neighbors is a zero value. The probability determination may be based on the context assigned to the symbol.

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

[0072] In this way, the video encoder 200 can generate a bitstream including the encoded video data, such as a syntax element describing the partition of the picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

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

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

[0075] As described above, the video encoder 200 and the video decoder 300 may apply CABAC encoding and decoding to the values ​​of the syntax elements. In order to apply CABAC encoding to the syntax elements, the video encoder 200 may binarize the values ​​of the syntax elements to form a sequence of one or more bits, which is referred to as a "binary symbol". In addition, the video encoder 200 may identify a decoding context. The decoding context may identify the probability of a binary symbol having a specific value. For example, the decoding context may indicate a 0.7 probability of decoding a 0-value binary symbol and a 0.3 probability of decoding a 1-value binary symbol. After identifying the decoding context, the video encoder 200 may divide the interval into a lower sub-interval and a higher sub-interval. One of the sub-intervals may be associated with a value of 0, and another sub-interval may be associated with a value of 1. The width of the sub-interval may be proportional to the probability indicated by the identified decoding context for the associated value. If the binary symbol of the syntax element has a value associated with a lower sub-interval, the encoded value may be equal to the lower boundary of the lower sub-interval. If the same binary symbol of the syntax element has a value associated with a higher subinterval, the encoded value may be equal to the lower boundary of the higher subinterval. To encode the next binary symbol of the syntax element, the video encoder 200 may repeat these steps, where the interval is the subinterval associated with the value of the encoded bit. When the video encoder 200 repeats these steps for the next binary symbol, the video encoder 200 may use the modified probability based on the probability indicated by the identified decoding context and the actual value of the encoded binary symbol.

[0076] When the video decoder 300 performs CABAC decoding on the value of the syntax element, the video decoder 300 can identify the decoding context. Then, the video decoder 300 can divide the interval into a lower sub-interval and a higher sub-interval. One of the sub-intervals can be associated with a value of 0, and the other sub-interval can be associated with a value of 1. The width of the sub-interval can be proportional to the probability indicated by the identified decoding context for the associated value. If the encoded value is within the lower sub-interval, the video decoder 300 can decode the binary symbol with the value associated with the lower sub-interval. If the encoded value is within the higher sub-interval, the video decoder 300 can decode the binary symbol with the value associated with the higher sub-interval. In order to decode the next binary symbol of the syntax element, the video decoder 300 can repeat these steps, wherein the interval is a sub-interval containing the encoded value. When the video decoder 300 repeats these steps for the next binary symbol, the video decoder 300 can use the modified probability based on the identified decoding context and the probability indicated by the decoded binary symbol. The video decoder 300 may then binarize the binary symbols to restore the values ​​of the syntax elements.

[0077] In some examples, the video encoder 200 may use bypass CABAC decoding to encode binary symbols. Compared with performing conventional CABAC decoding on binary symbols, the computational cost of performing bypass CABAC decoding on binary symbols may be lower. In addition, performing bypass CABAC decoding can allow a higher degree of parallelization and throughput. Binary symbols encoded using bypass CABAC decoding can be referred to as "bypass binary symbols". Grouping bypass binary symbols together can increase the throughput of the video encoder 200 and the video decoder 300. The bypass CABAC decoding engine may be able to decode several binary symbols in one cycle, while the conventional CABAC decoding engine may only be able to decode a single binary symbol in one cycle. The bypass CABAC decoding engine may be simpler because the bypass CABAC decoding engine does not select a context and may assume that the probability of two symbols (0 and 1) is 1 / 2. Therefore, in bypass CABAC decoding, the interval is directly split into two halves.

[0078] According to some techniques of the present 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) indicating whether all LM modes are disabled for a picture of video data. CCLM stands for cross-component linear model intra prediction. In this example, the video coder may code a second syntax element (e.g., intra_chroma_pred_mode) indicating a chroma prediction mode index for a chroma block of a picture. The value of the second syntax element indicates that the 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 video coder may code the chroma block of the picture based on the chroma prediction mode index.

[0079] According to some techniques of the present 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 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 a chroma block. For example, determining a chroma intra prediction mode index may include selecting a specific value to specify that the chroma intra prediction mode for a chroma block is inherited from a co-located luminance block. The co-located luminance block may be 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 of the video encoder 200 may encode a second syntax element indicating a chroma prediction mode index for a chroma block of the picture.

[0080] Likewise, 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 a chroma block based on a chroma intra prediction index. Determining a chroma intra prediction mode for a chroma block may include determining that the chroma intra prediction mode for a chroma block is inherited from a co-located luminance block based on a chroma prediction mode index for the chroma block being equal to a specific value. A co-located luminance block refers to a luminance block co-located with a 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 a picture. The processing circuit of the video decoder 300 may decode a chroma block based on a chroma intra prediction mode for a chroma block, such as by generating prediction data using a chroma intra prediction mode, and using the prediction data as a chroma block or adding a residual value to the prediction data to define a chroma block.

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

[0082] Figure 2A and Figure 2B1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splits, and dashed lines indicate binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where in this example, 0 indicates a horizontal split, and 1 indicates a vertical split. For quadtree splits, there is no need to indicate the type of split, because the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size. Therefore, the video encoder 200 may encode syntax elements (such as split information) for the region tree level (i.e., the first level) (i.e., the solid line) of the QTBT structure 130 and syntax elements (such as split information) for the prediction tree level (i.e., the second level) (i.e., the dotted line) of the QTBT structure 130, and the video decoder 300 may decode syntax elements (such as split information) for the region tree level (i.e., the first level) (i.e., the solid line) of the QTBT structure 130 and syntax elements (such as split information) for the prediction tree level (i.e., the second level) (i.e., the dotted line) of the QTBT structure 130. The video encoder 200 may encode video data (such as prediction data and transform data) for a CU represented by a terminal leaf node of the QTBT structure 130, and the video decoder 300 may decode video data (such as prediction data and transform data) for a CU represented by a terminal leaf node of the QTBT structure 130.

[0083] Generally speaking, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first level and at the second level of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).

[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 divided according to a quadtree partition. That is, the node at the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node as a child node including a parent node and a solid line for branching. If the node at the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), the node may be further divided by the respective binary trees. The binary tree splitting of a node may be iterated until the node derived from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as a dotted line for branching. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture prediction or inter-picture prediction) and transformation without any further partitioning. As discussed above, a CU may also be referred to as a “video block” or a “block.”

[0085] In one example of a QTBT partitioning structure, the CTU size is set to 128x128 (luminance sample and two corresponding 64x64 chrominance samples), MinQTSize is set to 16x16, MaxBTSize is set to 64x64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quadtree leaf node is 128x128, the leaf quadtree node will not be further split by the binary tree because the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the quadtree leaf node will be further divided by the binary tree. Therefore, the quadtree leaf node is still the root node for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further splitting is not allowed. A binary tree node with a width equal to MinBTSize (4 in this example) implies that further vertical splitting of the binary tree node is not allowed. Similarly, a binary tree node with a height equal to MinBTSize implies that further horizontal splitting of the binary tree node is not allowed. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further partitioning.

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

[0087] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any one or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or in processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these functions and other functions.

[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 from, for example, a video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory that stores reference video data for prediction of subsequent video data performed by video encoder 200. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, as shown, video data memory 230 can be on-chip with other components in video encoder 200, or off-chip relative to these components.

[0089] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory inside the video encoder 200 (unless explicitly described as such) or memory outside the video encoder 200 (unless explicitly described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage of outputs from the various units of the video encoder 200 .

[0090] Show Figure 3 The various units of the video encoder 200 are provided to assist 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 pre-set for the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provides flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by instructions of the software or firmware. A fixed-function circuit can execute software instructions (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0091] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed from programmable circuits. In an example where software executed by a programmable circuit is used to perform operations on the video encoder 200, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.

[0092] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve pictures of 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 original video data to be encoded.

[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 to perform video prediction according to other prediction modes. For example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0094] The mode selection unit 202 generally coordinates multiple encoding stages to test combinations of encoding parameters and the resulting rate-distortion values ​​for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for the CU, the transform type for the residual data of the CU, the quantization parameter for the residual data of the CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than some other tested combinations.

[0095] The video encoder 200 may divide the picture retrieved from the video data memory 230 into a series of CTUs, and encapsulate one or more CTUs in a slice. The mode selection unit 202 may divide the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs from the divided CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[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 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). In particular, the motion estimation unit 222 can calculate values ​​representing the degree of similarity of potential reference blocks to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared errors (SSD), the mean absolute difference (MAD), the mean square error (MSD), etc. The motion estimation unit 222 can generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 can identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.

[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, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate values ​​for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by respective motion vectors, and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

[0098] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block from samples adjacent to the current block. For example, for directional intra prediction mode, the intra prediction unit 226 can generally mathematically combine the values ​​of adjacent samples and fill these calculated values ​​in a direction defined across the current block to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of adjacent samples to the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0099] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original, uncoded version of the current block from the video data memory 230 and the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse coding modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0100] In the example where the mode selection unit 202 divides the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As indicated above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-frame prediction, and support 2Nx2N, 2NxN, Nx2N, NxN or similar symmetric PU sizes for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-frame prediction.

[0101] In an example where the mode selection unit does not further divide the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As above, the size of a CU may refer to the size of the chroma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.

[0102] For other video coding techniques, such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, as a few examples, the mode selection unit 202 generates a prediction block for the current block being encoded via the respective units associated with the coding techniques. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating the manner in which the block is reconstructed based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be encoded.

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

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

[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 introduce a loss of information, and thus the quantized transform coefficients may have a lower precision than the original transform coefficients generated by the transform processing unit 206.

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

[0107] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, operations on filter unit 216 may be skipped.

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

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

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

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

[0112] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. For example, operations for identifying motion vectors (MVs) and reference pictures for chroma coding blocks need not be repeated for identifying MVs and reference pictures for chroma blocks. Instead, the MVs for luma coding blocks may be scaled to determine 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.

[0113] The video encoder 200 represents an example of a device configured to encode video data, the device including a memory configured to store the video data, and one or more processing units implemented in a circuit and configured to 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 the 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. The 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 one or more processing units of the video encoder 200 may encode the chroma block of the picture based on the chroma prediction mode index. For example, in order to encode the chroma block based on the chroma prediction mode index, the video encoder 200 may generate a prediction block for the chroma block using the chroma prediction mode, and generate the chroma prediction mode index to indicate the chroma prediction mode. The video encoder 200 may use the prediction blocks to generate residual data, as described elsewhere in this disclosure.

[0114] The video encoder 200 further represents an example of a video encoding device, which includes a memory 230 configured to store video data, a processing circuit (e.g., a mode selection unit 226 implemented by one or more processors), the processing circuit being 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-frame prediction mode for a chroma block of the picture, determine a chroma intra-frame prediction index to specify the chroma intra-frame prediction mode for the chroma block, wherein determining the chroma intra-frame prediction mode index includes selecting a specific value to specify that the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block, wherein the co-located luminance 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, and encode a second syntax element indicating a chroma prediction mode index for the chroma block of the picture. The processing circuit may further implement an entropy encoding unit 220, which may be 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. 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 chroma prediction mode indexes, and / or specify Golomb codes for different chroma prediction mode indexes.

[0115] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 It is provided for the purpose of explanation and is not limited to the techniques broadly exemplified and described in the present disclosure. For the purpose of explanation, the present disclosure describes the video decoder 300 according to the techniques of JEM, VVC and HEVC. However, the techniques of the present disclosure can be performed by a video decoding device configured for other video decoding standards.

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

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

[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, for example, a video encoded bitstream received from the computer readable medium 110 ( Figure 1 ). The CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, and the video decoder 300 may output the decoded pictures and / or use the decoded pictures as reference video data when decoding subsequent data or pictures of the coded 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 a separate memory device. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to these components.

[0119] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may store data together with CPB memory 320 as discussed above. Likewise, when some or all of the functions of video decoder 300 are implemented in software to be executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.

[0120] Show Figure 4 Various units 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. Figure 3Similarly, a fixed-function circuit refers to a circuit that provides a specific function and is pre-set for the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provides flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more of the units can be distinct circuit blocks (fixed-function or programmable), and in some examples, one or more of the units can be integrated circuits.

[0121] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed from a programmable circuit. In an example where the operation of the video decoder 300 is performed by software on a programmable circuit, an on-chip memory or an off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.

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

[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 (where the block currently being reconstructed (ie, decoded) may be referred to as a "current block").

[0124] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, likewise, a degree of inverse quantization to be applied for the inverse quantization unit 306. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[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 Karunan-Loewy transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.

[0126] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in a manner substantially similar to that described with respect to motion compensation unit 224 ( Figure 3 ) to perform the inter-frame prediction process in the manner described.

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

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

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

[0130] The video decoder 300 may store the reconstructed blocks in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed blocks to the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed blocks to the DPB 314. As discussed above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output the decoded pictures from the DPB 314 for display on a display device (such as Figure 1 Subsequent presentation on a display device 118).

[0131] The video decoder 300 represents an example of a video decoding device, which includes a memory configured to store video data, and one or more processing units implemented in a circuit and 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. The value of the second syntax element indicates that the intra prediction mode of the chroma block is inherited from the co-located luminance 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, in order to decode the chroma block based on the chroma prediction mode index, the video decoder 300 may use the chroma prediction mode index to determine the chroma prediction mode for the chroma block. Then, the video decoder 300 may use the chroma prediction mode to generate a prediction block for the chroma block. The video decoder 300 may use the prediction blocks and the residual data to reconstruct the chroma blocks, as described elsewhere in this disclosure.

[0132] In some examples, the video decoder 300 may also represent a video decoding device, which includes a memory configured to store video data (e.g., CPB memory 320) and a processing circuit implemented by one or more processors (e.g., intra prediction unit 318), the processing circuit being 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 of 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 luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value. The co-located luminance block may be 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 video decoder 300 may decode the chroma block based on the chroma intra prediction mode for the chroma block.

[0133] The processing circuit may further implement an entropy decoding unit 302 that may 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. Similarly, 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.

[0134] To capture arbitrary edge directions present in natural videos, the number of directional intra modes in VTM5 is extended to 65 from 33 used in HEVC. Figure 5 is a conceptual diagram showing an example conventional intra prediction mode. Specifically, Figure 5 is a conceptual diagram showing the regular intra prediction mode in VTM5. Figure 5 In , directional modes in VTM5 that are not in HEVC are depicted as dashed arrows, and planar and DC modes remain unchanged. These dense directional intra prediction modes apply to all block sizes and both luma and chroma intra prediction.

[0135] In 4:2:0 chroma video coding, in addition to the traditional (hereinafter referred to as "normal" chroma mode) intra prediction (including directional, DC and planar prediction modes), a method called linear model (LM) mode is 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 Collaboration Group on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG1, JCTVC-E266, Geneva, March 16-23, 2011. In 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 the following linear model:

[0136] pred C (i,j)=α·rec L (i,j)+β (3)

[0137] where pred C (i,j) represents the prediction of the chrominance samples in the block, and rec L (i, j) identifies the downsampled reconstructed luma samples of the same block. The video decoder can derive parameters α and β by minimizing the regression error of neighboring reconstructed luma and chroma samples around the current block.

[0138]

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

[0140]

[0141] β=(Σy i -α·∑x i ) / N (6)

[0142] where x i is the downsampled reconstructed luminance reference sample, y i are the reconstructed chrominance reference samples, and N is the number of reference samples used. Figure 6 is a conceptual diagram showing sample locations for deriving parameters associated with a linear model (LM) model.

[0143] In VTM5, both the normal mode and the LM mode can be used for intra-frame prediction for chroma samples. The five normal chroma modes are DC (intra-frame mode 1), plane (intra-frame prediction mode 0), vertical (intra-frame prediction mode 50), horizontal (intra-frame prediction mode 18), and derived (called DM_CHROMA, indicating that the chroma intra-frame prediction mode is derived from chroma, that is, chroma and luminance share the same intra-frame prediction mode). When a video decoder (e.g., video encoder 200 or video decoder 300) uses DM_CHROMA for intra-frame prediction of a chroma block, the video decoder uses an intra-frame prediction mode with the same intra-frame prediction mode index as the luminance block corresponding to the chroma block to generate a prediction block for the chroma block. In other words, the chroma block can inherit the intra-frame prediction mode of the co-located luminance component. There are three LM modes depending on the samples used to derive the associated parameters: 1) LM_CHROMA: use samples from both the template above and the template to the left, 2) LM_A: use samples from only the template above, and 3) LM_L: use samples from only the template to the left. Thus, there are a total of 8 chroma prediction modes, including 5 conventional and 3 LM modes.

[0144] The derivation of the chroma prediction mode depending on the corresponding luma block is shown as follows:

[0145] Table 1: Chroma intra prediction modes depending on mode index (0-7) and luma prediction mode

[0146]

[0147] For example, in Table 1, if the corresponding luma intra prediction mode is 0 and the chroma prediction mode index is 1, the chroma intra prediction mode is 50. If the chroma prediction mode index is 7, 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 topmost row number of Table 1).

[0148] In this example, mode 81: LM_CHROMA, mode 82: LM_A, mode 83: LM_L.A chroma prediction mode index equal to 7 indicates DM_CHROMA. Chroma prediction mode indices 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 is consistent with the indicated chroma intra prediction mode (in the latter case, the mode is modified to 66). This is because the chroma intra prediction mode index 7 has been incorporated into the case where the luma mode and the chroma mode are the same. Therefore, for the 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. This also applies to chroma intra prediction mode indices 1, 2, and 3 accordingly.

[0149] VTM5 provides the function of disabling all LM modes on a frame basis. Specifically, in VVC Draft 5, a signal can be sent to the high-level (e.g., SPS) flag "SPS_cclm_enabled_flag". When the high-level flag is equal to 0, the LM mode is excluded, so the number of chroma prediction modes is 5 (consisting only of regular modes). When the high-level flag is equal to 1, the LM mode is not excluded. Therefore, the number of chroma prediction modes is equal to 8. When the LM mode is excluded, no LM mode in the LM mode can be used to encode the block.

[0150] Table 2: Chroma prediction mode depending on chroma prediction mode index (0-4) and luma intra prediction mode when ccm is disabled. Mode Index Indicates DM_CHROMA

[0151]

[0152] Due to the different number of intra prediction modes depending on whether sps_cclm_enabled is 0, the VTM5 specification describes two different binarization tables, which are shown in Tables 3 and 4 below. For example, the binarization table can be used to encode values ​​using a binary symbol string according to a context-adaptive binary arithmetic decoding scheme. When determining an intra chroma prediction mode (which can be called intra_chroma_pred_mode) based on an index (which can be a chroma prediction mode index), a binarization table such as Table 3 can be used to binarize the intra chroma prediction mode.

[0153] Table 3: Binarization for intra_chroma_pred_mode when sps_cclm_enabled_flag is equal to 0

[0154]

[0155] Table 4: Binarization for intra_chroma_pred_mode when sps_cclm_enabled_flag is equal to 1

[0156]

[0157] There are many problems with intra-frame chroma prediction mode decoding in VVC Draft 5 and VTM5. In the present disclosure, when referring to intra-frame decoding technology, the phrases intra-frame chroma prediction mode and chroma prediction mode are sometimes used synonymously. For example, when sps_cclm_enabled_flag is 1, the chroma prediction mode index (e.g., intra_chroma_pred_mode) value of the DM_CHROMA mode is 7, and when sps_cclm_enabled_flag is 0, its chroma prediction mode index value is 4, which is inconsistent. In addition, two different binarization tables are required in the specification text of the chroma prediction mode index, which may be inconvenient, may increase the complexity of the video decoder, and / or may consume storage resources.

[0158] The technology of the present disclosure can solve these problems. The technology of the present disclosure can be applied independently, or one or more technologies can be applied together.

[0159] According to VVC Draft 5 and VTM5, the LM mode can be used to encode and decode chroma blocks. In addition, according to some test models of VVC, syntax elements can be used to indicate whether all LM modes are disabled for pictures of video data. According to these test models, if the LM mode is disabled, a first set of indexes is used to identify the chroma intra-frame prediction decoding mode for the block, but if the LM mode is enabled, a second set of indexes (different from the first set) can be used. In addition, two different binarization tables (e.g., Table 3 and Table 4) can be used to handle these two cases.

[0160] The use of two different sets of indexes to identify intra-frame decoding modes and two different binarization tables are both issues that may arise from the VVC test model, which uses syntax elements to indicate whether all LM modes are disabled for a picture of video data, which may lead to complexity in the encoding and decoding process and may require additional memory to store two binarization tables. The technology of the present disclosure can solve these problems by defining a common set of indexes that can be used for intra-frame mode recognition, thereby eliminating two different sets of indexes that may be required when enabling LM mode and disabling LM mode. In addition, the technology of the present disclosure can solve the problem of defining a common binarization table that can be used for all situations associated with intra-frame decoding mode signaling, thereby reducing the number of binarization tables from two to one, which can reduce the amount of memory required in the encoder and decoder for the encoding and decoding process.

[0161] By eliminating two binarization tables and replacing them with a unified binarization table, the chroma intra prediction mode index when the LM mode is enabled can be made consistent with the chroma intra prediction mode index when the LM mode is disabled. In some examples, the advantages of such simplification and memory reduction can be achieved without any negative impact on compression and without any negative impact on encoding and decoding efficiency.

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

[0163] Table 5: Modified chroma prediction mode table using consistent intra_chroma_pred_mode=4 for both sps_cclm_enabled_flag 0 or 1

[0164]

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

[0166] The technology of the present disclosure can avoid specifying two binarization tables for intra_chroma_pred_mode. Instead, the present disclosure proposes a unified binarization table that can be used (e.g., by the video encoder 200 and the 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 can be used to define a binary symbol string according to a unified binarization table (such as Table 3, Table 4, or Table 6, Table 7, or Table 8 below).

[0167] Table 6: Unified binarization table (option 1)

[0168]

[0169] Figure 7is a signal tree for chroma coding, wherein, according to one or more techniques of the present disclosure, when sps_cclm_enabled_flag is equal to 0, the rectangular portion indicates a branch, which is a branch of the signal tree. Here, the first binary symbol indicates whether the chroma prediction mode is one of the normal modes (0) or one of the LM modes (1). If the first binary symbol indicates that the chroma prediction mode is the normal mode, the video decoder (e.g., video encoder 200 or video decoder 300) derives the next binary symbol in the same manner as described in Table 3. If the first binary symbol indicates that the chroma prediction mode is one of the LM modes (i.e., the first binary symbol is equal to 1), the next binary symbol (i.e., the second binary symbol) indicates whether the chroma prediction mode is LM_CHROMA (i.e., the second binary symbol is equal to 0). If the chroma prediction mode is not LM_CHROMA (i.e., the second binary symbol is equal to 1), the next binary symbol (i.e., the third binary symbol) indicates whether the chroma prediction mode is LM_L (i.e., the third binary symbol is equal to 0) or LM_A (i.e., the third binary symbol is equal to 1). For the case where sps_cclm_enabled_flag is 0, the video decoder may discard the first binary symbol of the binarization table of the corresponding intra_chroma_pred_mode before entropy encoding. For example, when sps_cclm_enabled_flag is equal to 0, the video encoder 200 does not include the binary symbol 0 in the binarization of intra_chroma_pred_mode, and the video decoder 300 interprets the first binary symbol of the binarization of intra_chroma_pred_mode as the binary symbol 1. In other words, the first binary symbol (i.e., binary symbol 0) is inferred to be 0 and is therefore not decoded. Therefore, the video decoder 300 may decode the binary symbol string for the second syntax element. In order to decode the binary symbol string for the second syntax element, the video decoder 300 may infer a first portion of the binary symbol string associated with the chroma prediction mode for decoding the chroma block of the picture based on the value of the first syntax element, and determine a second portion of the binary symbol string associated with the chroma prediction mode for decoding the chroma block of the picture based on the value of the second syntax element.

[0170] In another example, the video encoder 200 or the video decoder 300 may use variable length codes for the 4 regular modes to provide a preference for the most likely mode among the 4 regular modes, as compared to Table 6. In other words, the most likely mode may be assigned a shorter binary symbol string, while the less likely mode may be assigned a longer binary symbol string, which may improve compression of pictures of frame video data that use different modes for different blocks within a picture of the frame.

[0171] Table 7: Unified binarization table (option 2)

[0172]

[0173] In another example, the video encoder 200 and the video decoder 300 may use a different binarization table (eg, Table 8) while maintaining the number of binary symbols for DM_CHROMA as 1 (instead of 2, which is described in Tables 6 and 7 above).

[0174] Table 8: Unified Binarization Table (Option 3)

[0175]

[0176] For Table 6, the following contexts (all or possibly only a subset may be used) may be used for CABAC coded binary symbol strings for the intra_chroma_pred_mode syntax element.

[0177] • Context 0: First binary symbol (LM mode or not LM mode).

[0178] Context 1: The second binary symbol corresponding to when the first binary symbol=0 (DM-CHROMA or not DM-CHROMA).

[0179] Context 2: The second binary symbol corresponding to when the first binary symbol=1 (LM-CHROMA or not LM-CHROMA).

[0180] Context 3: The third binary symbol (LM_L or LM_A) corresponding to when the second binary symbol = 1. However, in some examples, contexts 0-2 are used as defined above and the third binary symbol may be bypass coded.

[0181] Table 9 - Context for each binary symbol index

[0182]

[0183] In Table 9, the context for each binary index is shown for three different scenarios, which are defined by the values ​​of the syntax elements shown in the leftmost column of Table 9.

[0184] In another example, to reduce the degree of parsing or context selection dependencies, a video coder (eg, video encoder 200 or video decoder 300 ) may use the following, where the same context (context 1 ) for binary index=1 is selected regardless of the binary index.

[0185] • Context 1: First binary symbol (LM mode or normal mode).

[0186] • Context 2: Second binary symbol (LM_CHROMA or not LM_CHROMA and DM_CHROMA or not DM_CHROMA).

[0187] Table 10

[0188]

[0189] For example, Fig.10 The definition of context shown can help reduce the extent of parsing or context selection dependencies that may otherwise exist without reducing or severely impacting decoding efficiency, based on the different context techniques for each possible scenario using the values ​​of the syntax elements shown in the leftmost column of Table 10.

[0190] For Table 7, the following contexts may be used (in some examples, all of the contexts below may be used, and in other examples, only a subset of the contexts may be used.) Context

[0191] • Context 0: First binary symbol (LM mode or not LM mode).

[0192] Context 1: The second binary symbol corresponding to when the first binary symbol=0 (DM_CHROMA or not DM_CHROMA).

[0193] Context 2: The third binary symbol (plane or not plane) corresponding to when the current two binary symbols are 01.

[0194] Context 3: The second binary symbol corresponding to when the first binary symbol=1 (LM_CHROMA or not LM_CHROMA).

[0195] Context 4: When the current two binary symbols are 11 (the corresponding third binary symbol is LM_L or LM_A).

[0196] Figure 8 2 is a flowchart illustrating 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 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform the same Figure 8 A similar approach to the one used in this paper.

[0197] In this example, the video encoder 200 initially predicts a current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the initial, unencoded block and the prediction block for the current block. The video encoder 200 may then transform the residual block and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy encode the transform coefficients (358) and as an indication of the prediction mode used to form the prediction block. According to the technology of the present disclosure, if the current block is a chroma block and the chroma block is indicated to be encoded using a derived mode (e.g., DM_CHROMA), that is, the prediction mode is to be derived, then the video encoder 200 can encode the value of the syntax element representing the derived mode, where the value is the same regardless of whether the linear mode is enabled for the picture including the current block. For example, the video encoder 200 can encode the transform coefficients using CAVLC or CABAC. The video encoder 200 can then output the entropy encoded data of the block (360).

[0198] and Figure 8 Consistent with the above, the step of 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 Figure 8(350) of the current block referenced in. Further, in this example, determining the chroma intra prediction mode index may include selecting a particular value to specify, for the chroma block, that the chroma intra prediction mode is inherited from the co-located luma block. Further, 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. 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 the second syntax element including 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.

[0199] Fig. 9 3 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 video decoder 300 ( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform the same Fig. 9 A similar approach to the one used in this paper.

[0200] The video decoder 300 may receive entropy-encoded data for a current block, such as entropy-encoded prediction information and entropy-encoded data for transform coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy-encoded data to determine prediction information for the current block and reproduce transform coefficients of the residual block (372). According to the techniques of the present disclosure, the video decoder 300 may decode a value for a syntax element representing an intra-prediction mode for a chroma block, and the value may be the same regardless of whether a linear model is enabled for a picture including the current block. The video decoder 300 may predict the current block (374), for example, using an intra-prediction mode or an inter-prediction mode as indicated by the prediction information for the current block to calculate a prediction block for the current block. The video decoder 300 may then inverse scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize 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 prediction block and the residual block ( 380 ).

[0201] Consistent with the techniques of the present 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 a picture of the video data. Additionally, 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 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 luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value. Furthermore, in this example, the co-located luminance 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. Furthermore, the video decoder 300 may decode the chroma block based on the chroma intra prediction mode for the chroma block. For example, the video decoder 300 can decode the chroma block by generating prediction data based on the chroma intra prediction mode, such as by adding a residual value to the prediction data to create a decoded block, or simply by using the prediction data as the decoded block. In addition, the step of entropy decoding the data (372) can include 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.

[0202] Fig.10 200 is a flowchart illustrating an example encoding method consistent with the present disclosure. Although other encoders may use the encoding method of the present disclosure, the present disclosure will be described from the perspective of the video encoder 200. Fig.10 .like Fig.10 As shown in the example of , the video encoder 200 may 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 (1001). For example, to encode the first syntax element, the video encoder 200 may include an unsigned integer representing the first syntax element in a bitstream including an encoded representation of the video data.

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

[0204] In addition, the video encoder 200 may determine a chroma intra prediction index to specify a chroma intra prediction mode for the chroma block (1003). In addition, determining the chroma intra prediction index and 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 the co-located luma block. Fig.10 In the example of , the co-located luminance block is co-located with the chrominance 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.

[0205] 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 binary symbol string corresponding to the chroma prediction mode index. After using the binarization table to look up the binary symbol string corresponding to the chroma prediction mode index, the video encoder 200 may apply CABAC encoding to the binary symbol string and include the resulting CABAC-encoded binary symbol 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 the chroma prediction mode according to a set of modes, which include: 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.

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

[0207] As described 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 binary symbol string based on a chroma prediction mode index. In some such examples, the video encoder 200 may exclude a first portion (e.g., binary symbol 0) of the binary symbol string associated with the chroma prediction mode for encoding the chroma blocks of the picture from the encoded video data. However, in such examples, the first portion is inferable (e.g., by the video decoder 300) based on the value of the first syntax element (e.g., sps_cclm_enabled_flag). In such examples, the video decoder 300 may include a second portion of the binary symbol string (e.g., binary symbols 1-3) associated with the chroma prediction mode for encoding the chroma blocks of the picture in the encoded video data.

[0208] In some examples, encoding a second syntax element (e.g., intra_chroma_pred_mode) may include using a binarization table to determine a binary symbol string based on a chroma prediction mode index, and applying CABAC techniques to encode the binary symbol string for the second syntax element. In order to apply CABAC techniques to encode the binary symbol string, the video encoder 200 may be based on a first syntax element indicating that all LM modes are disabled for a picture: encoding a first occurrence of the binary symbol of the binary symbol string using a first context, and encoding a second occurrence of the binary symbol of the binary symbol string using a second context depending on the value of the first binary symbol of the binary symbol string. In this example, the first context and the second context are different from each other. The second occurrence of the binary symbol indicates whether the chroma intra prediction mode for the chroma block is inherited from a co-located luminance block.

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

[0210] Additionally, the video decoder 300 decodes a second syntax element (e.g., intra_chroma_pred_mode) indicating a chroma prediction mode index for a chroma block of a 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 a co-located luma block based on the chroma prediction mode index for the chroma block being equal to a specific value. The co-located luma block is co-located with the chroma block, and the specific 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.

[0211] In addition, Fig.11 In an example of , the video decoder 300 then decodes the chroma block based on the chroma intra prediction mode for the chroma block (1104). For example, using the chroma intra prediction mode, the video decoder 300 can generate prediction data and either 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) can 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 can apply CABAC decoding to the binary symbol string parsed from the bitstream. The video decoder 300 can use the binarization table to look up the chroma prediction mode index corresponding to the binary symbol string decoded by CABAC. As an example, the binarization table can 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 according to a set of modes, including: 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.

[0212] In some examples, as part of decoding the second syntax element using a binarization table, the video decoder 300 may determine a binary symbol string for the second syntax element, and determine a chroma prediction mode index from the binary symbol string using the binarization table. In some such examples, to determine the binary symbol string for the second syntax element, the video decoder 300 may infer a first portion of the binary symbol string associated with the chroma prediction mode for decoding the 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 binary symbol string includes the first portion. In either case, the video decoder 300 may determine a second portion of the binary symbol string (e.g., binary symbols 1-3) based on the value of the second syntax element.

[0213] In some examples, decoding the second syntax element may include the video decoder 300 applying CABAC techniques to determine a binary symbol string for the second syntax element, and using a binarization table to determine a chroma prediction mode index based on the binary symbol string. Applying the CABAC technique to determine the binary symbol string for the second syntax element may include, based on a first syntax element indicating that all LM modes are disabled for a picture: decoding a first occurrence of a binary symbol of the binary symbol string using a first context, and decoding a second occurrence of a binary symbol of the binary symbol string using a second context depending on a value of the first binary symbol of the binary symbol string, wherein the first context and the second context are different from each other, and the second occurrence of the binary symbol indicates whether to inherit a chroma intra prediction mode for a chroma block from a co-located luminance block.

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

[0215] 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-frame prediction mode for the chroma block based on the chroma intra-frame prediction index, wherein determining the chroma intra-frame prediction mode for the chroma block comprises: determining that the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block based on the chroma prediction mode index for the chroma block being equal to a specific value, wherein the co-located luminance 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; and decoding the chroma block based on the chroma intra-frame prediction mode for the chroma block.

[0216] Example 2: The method of 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.

[0217] 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 indices.

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

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

[0220] Example 6: A method according to any combination of Examples 1–5, wherein the chrominance prediction mode index defines a chrominance prediction mode according to a set of modes, the modes comprising: 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.

[0221] Example 7: A method according to any combination of Examples 1-6, wherein using a binarization table comprises: determining a binary symbol string for a second syntax element; and determining a chrominance prediction mode index based on the binary symbol string using the binarization table.

[0222] Example 8: The method according to any combination of Examples 1-7, wherein the binarization table includes:

[0223]

[0224] Example 9: A method according to any combination of Examples 1-8, wherein decoding the second syntax element using a binarization table includes: determining a binary symbol string for the second syntax element; and using the binarization table to determine a chroma prediction mode index based on the binary symbol string, and wherein determining the binary symbol string for the second syntax element includes: inferring a first part of the binary symbol string associated with a chroma prediction mode for decoding the chroma of a picture based on a value of the first syntax element; and determining a second part of the binary symbol string associated with a chroma prediction mode for decoding a chroma block of the picture based on a value of the second syntax element.

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

[0226] 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-frame prediction mode for a chroma block of the picture; determining a chroma intra-frame prediction index to specify the chroma intra-frame prediction mode for the chroma block, wherein determining the chroma intra-frame prediction mode index comprises: selecting a specific value to specify that the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block, wherein the co-located luminance 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; and encoding a second syntax element indicating the chroma prediction mode index for the chroma block of the picture.

[0227] Example 12: The method of 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.

[0228] 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 indices.

[0229] 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 indices.

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

[0231] Example 16: A method according to any combination of Examples 11-15, wherein the chrominance prediction mode index defines the chrominance prediction mode according to a set of modes, the modes comprising: 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.

[0232] Example 17 - The method of any combination of Examples 11-16, wherein using the binarization table comprises encoding the binary symbol string for the second syntax element based on the chroma prediction mode index using the binarization table.

[0233] Example 18: The method according to any combination of Examples 11-17, wherein the binarization table includes:

[0234]

[0235] Example 19: A method according to any combination of Examples 11-18, wherein encoding the second syntax element using a binarization table includes: determining a binary symbol string using the binarization table based on a chroma prediction mode index, excluding a first portion of the binary symbol string associated with a chroma prediction mode for encoding chroma blocks of a picture from the encoded video data, wherein the first portion is inferable based on a value of the first syntax element; and including a second portion of the binary symbol string associated with the chroma prediction mode for encoding chroma blocks of a picture in the encoded video data.

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

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

[0238] Example 22: A video decoding device comprising means for performing any combination of the steps set forth in Examples 1-10.

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

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

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

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

[0243] It is to be appreciated that, depending on the example, certain actions or events of any of the techniques described herein may be performed in a different sequence, may be added together, merged, or omitted (e.g., not all described actions or events are necessary for practicing the techniques). In addition, in some examples, actions or events may be performed simultaneously, for example, through multithreading, interrupt processing, or multiple processors, rather than sequentially.

[0244] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored in or sent via a computer-readable medium as one or more instructions or codes, and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium (such as a data storage medium), or a communication medium including any medium that facilitates the transmission of a computer program from one place to another, for example, according to a communication protocol. In the manner described, a computer-readable medium may generally correspond to (1) a non-temporary tangible computer-readable storage medium or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for the implementation of the technology described in the present disclosure. A computer program product may include a computer-readable medium.

[0245] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to send instructions from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are instead directed to non-temporary, tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually reproduce data magnetically, while optical disks usually reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0246] 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 logic circuits or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" as used herein may refer to any of the aforementioned structures or any other structure suitable for the implementation of the techniques described herein. In addition, in some aspects, the functions described herein may be provided within dedicated hardware modules and / or software modules configured for encoding and decoding, or incorporated into a combined video codec. In addition, the techniques may be fully implemented in one or more circuits or logic elements.

[0247] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or collections of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but are not necessarily required to be implemented by different hardware units. Rather, as described above, the various units may be combined in a video codec hardware unit, or provided by a group of interoperable hardware units (including one or more processors as described above) in conjunction with appropriate software and / or firmware.

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

Claims

1. A method for decoding video data, the method comprising: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of the video data; decoding a second syntax element indicating a chroma prediction mode index for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; determining a chroma intra prediction mode for the chroma block based on the chroma 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 prediction mode index for the chroma block being equal to a specific value, wherein 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 the LM modes are disabled for the picture; and The chroma block is decoded 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 of the LM modes are disabled for the picture.

2. The method according to claim 1, wherein: Determining the chroma intra prediction mode for the chroma block further includes: In response to the first syntax element indicating that all of the LM modes are not disabled for the picture, determining that the chroma prediction mode index indicates a cross-component linear model intra prediction mode.

3. The method according to claim 1, wherein: The binarization table specifies different fixed-length codes for different chroma prediction mode indexes.

4. The method according to claim 1, wherein: The binarization table specifies variable length codes for at least some chroma prediction mode indexes.

5. The method according to claim 1, wherein: The binarization table specifies Golomb codes for different chroma prediction mode indexes.

6. The method according to claim 1, wherein: The chroma prediction mode index defines a chroma prediction mode according to a set of chroma prediction modes, the set of chroma prediction modes comprising: Mode index 0 - plane 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.

7. The method according to claim 1, wherein: Decoding the second syntax element using the binarization table includes: determining a binary symbol string for the second syntax element; and The binarization table is used to determine the chroma prediction mode index from the binary symbol string for the second syntax element.

8. The method according to claim 7, wherein: The binarization table includes:

9. The method according to claim 1, wherein: Using the binarization table to decode the second syntax element comprises: determining a binary symbol string for the second syntax element; and using the binarization table to determine the chroma prediction mode index from the binary symbol string for the second syntax element, and Wherein, determining the binary symbol string for the second syntax element comprises: inferring a first portion of the binary symbol string for the second syntax element associated with a chroma prediction mode for decoding the chroma block of the picture based on a value of the first syntax element; and A second portion of the binary string of symbols associated with the chroma prediction mode for decoding the chroma block of the picture is determined based on a value of the second syntax element.

10. The method according to claim 1, wherein: Decoding the second syntax element includes: applying a Context-Adaptive Binary Arithmetic Coding (CABAC) technique to determine a binary symbol string for the second syntax element; and using the binarization table to determine the chroma prediction mode index from the binary symbol string for the second syntax element, Wherein applying the CABAC technique to determine the binary symbol string for the second syntax element comprises, based on the first syntax element indicating disabling all the LM modes for the picture: decoding a first occurrence of the binary symbol for the string of binary symbols for the second syntax element using a first context; and Decoding a second occurrence of a binary symbol of the binary symbol string for the second syntax element using a second context, depending on the value of the first occurrence of the binary symbol of the binary symbol string for the second syntax element, wherein the first context and the second context are different from each other and the second occurrence of the binary symbol indicates whether the chroma intra-prediction mode for the chroma block is inherited from a co-located luminance block.

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 sequence parameter set (SPS) of the video data; determining a chroma intra prediction mode for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; determining a chroma prediction mode index to specify the chroma intra prediction mode for the chroma block, wherein determining the chroma prediction mode index comprises: selecting a specific 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 specific value is the same value regardless of whether the first syntax element indicates that all of the LM modes are disabled for the picture; and A second syntax element indicating the chroma prediction mode index for the chroma block of the picture is encoded, 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 disabling all of the LM modes for the picture.

12. The method according to claim 11, wherein: Determining the chroma prediction mode index further includes: In response to the first syntax element indicating that all of the LM modes are not disabled for the picture, determining that the chroma prediction mode index indicates a cross-component linear model intra prediction mode.

13. The method according to claim 11, wherein: The binarization table specifies different fixed-length codes for different chroma prediction mode indexes.

14. The method according to claim 11, wherein: The binarization table specifies variable length codes for at least some chroma prediction mode indexes.

15. The method according to claim 11, wherein: The binarization table specifies Golomb codes for different chroma prediction mode indexes.

16. The method according to claim 11, wherein: The chroma prediction mode index defines a chroma prediction mode according to a set of chroma prediction modes, the set of chroma prediction modes comprising: Mode index 0 - plane 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.

17. The method according to claim 11, wherein: Using the binarization table to encode the second syntax element includes: A binary symbol string for the second syntax element is encoded based on the chroma prediction mode index using the binarization table.

18. The method according to claim 17, wherein: The binarization table includes:

19. The method according to claim 11, wherein: Using the binarization table to encode the second syntax element comprises: Determining a binary symbol string using the binarization table based on the chroma prediction mode index; excluding from encoded video data a first portion of the string of binary symbols associated with a chroma prediction mode for encoding the chroma block of the picture, wherein the first portion is inferable based on a value of the first syntax element; and A second portion of the string of binary symbols associated with the chroma prediction mode for encoding the chroma blocks of the picture is included in the encoded video data.

20. The method according to claim 11, wherein: Encoding the second syntax element includes: Determining a binary symbol string for the second syntax element using the binarization table based on the chroma prediction mode index; and applying a Context-Adaptive Binary Arithmetic Coding (CABAC) technique to encode the string of binary symbols for the second syntax element, Wherein, applying the CABAC technique to encode the binary symbol string for the second syntax element comprises, based on the first syntax element indicating disabling all the LM modes for the picture: encoding a first occurrence of the binary symbol for the string of binary symbols for the second syntax element using a first context; and Depending on the value of the first occurrence of the binary symbol of the binary symbol string for the second syntax element, a second occurrence of the binary symbol of the binary symbol string for the second syntax element is encoded using a second context, wherein the first context and the second context are different from each other and the second occurrence of the binary symbol indicates whether the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block.

21. A video decoding device, comprising: a memory configured to store video data; as well as A processing circuit configured to perform the following operations: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of the video data; decoding a second syntax element indicating a chroma prediction mode index for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; determining a chroma intra prediction mode for the chroma block based on the chroma prediction mode index, wherein, to determine the chroma intra prediction mode for the chroma block, the processing circuit 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 prediction mode index for the chroma block being equal to a specific value, wherein 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; and The chroma block is decoded based on the chroma intra prediction mode for the chroma block, wherein 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.

22. The video decoding device according to claim 21, wherein: In order to determine the chroma intra prediction mode for the chroma block, the processing circuit is further configured to: In response to the first syntax element indicating that all LM modes are not disabled for the picture, determining that the chroma prediction mode index indicates a cross-component linear model intra prediction mode.

23. The video decoding device according to claim 21, wherein: The binarization table specifies different fixed-length codes for different chroma prediction mode indexes.

24. The video decoding device according to claim 21, wherein: The binarization table specifies variable length codes for at least some chroma prediction mode indexes.

25. The video decoding device according to claim 21, wherein: The binarization table specifies Golomb codes for different chroma prediction mode indexes.

26. The video decoding device according to claim 21, wherein: The chroma prediction mode index defines a chroma prediction mode according to a set of chroma prediction modes, the set of chroma prediction modes comprising: Mode index 0 - plane 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.

27. The video decoding device according to claim 21, wherein: When using the binarization table, the processing circuit is configured to perform the following operations: determining a binary symbol string for the second syntax element; as well as The binarization table is used to determine the chroma prediction mode index based on the binary symbol string.

28. The video decoding device according to claim 27, wherein: The binarization table includes:

29. The video decoding device according to claim 21, wherein: In order to decode the second syntax element using the binarization table, the processing circuit is configured to perform the following operations: determining a binary symbol string for the second syntax element; as well as using the binarization table to determine the chroma prediction mode index from the binary symbol string, and In order to determine the binary symbol string for the second syntax element, the processing circuit is configured to perform the following operations: inferring a first portion of the binary symbol string associated with a chroma prediction mode for decoding the chroma block of the picture based on a value of the first syntax element; as well as A second portion of the binary string of symbols associated with the chroma prediction mode for decoding the chroma block of the picture is determined based on a value of the second syntax element.

30. The video decoding device according to claim 21, wherein: To decode the second syntax element, the processing circuit is configured to perform the following operations: Applying a Context-Adaptive Binary Arithmetic Coding (CABAC) technique to determine a binary symbol string for the second syntax element; as well as Using the binarization table to determine the chroma prediction mode index according to the binary symbol string, In order to apply the CABAC technique to determine the binary symbol string for the second syntax element, the processing circuit is configured to perform the following operations based on the first syntax element indicating that all LM modes are disabled for the picture: decoding a first occurrence of the binary symbol of the string of binary symbols using the first context; and Depending on the value of the first occurrence of the binary symbol of the binary symbol string, a second occurrence of the binary symbol of the binary symbol string is decoded using a second context, wherein the first context and the second context are different from each other and the second occurrence of the binary symbol indicates whether the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block.

31. A video encoding device, comprising: a memory configured to store video data; as well as A processing circuit configured to perform the following operations: encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of the video data; determining a chroma intra prediction mode for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; determining a chroma prediction mode index to specify the chroma intra prediction mode for the chroma block, wherein, to determine the chroma prediction mode index, the processing circuit is 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, wherein 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; and encoding a second syntax element indicating the chroma prediction mode index for the chroma block of the picture, wherein 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.

32. The video encoding device according to claim 31, wherein: In order to determine the chroma prediction mode index, the processing circuit is further configured to: In response to the first syntax element indicating that all LM modes are not disabled for the picture, determining that the chroma prediction mode index indicates a cross-component linear model intra prediction mode.

33. The video encoding device according to claim 31, wherein: The binarization table specifies different fixed-length codes for different chroma prediction mode indexes.

34. The video encoding device according to claim 31, wherein: The binarization table specifies variable length codes for at least some chroma prediction mode indexes.

35. The video encoding device according to claim 31, wherein: The binarization table specifies Golomb codes for different chroma prediction mode indexes.

36. The video encoding device according to claim 31, wherein: The chroma prediction mode index defines a chroma prediction mode according to a set of chroma prediction modes, the set of chroma prediction modes comprising: Mode index 0 - plane 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.

37. The video encoding device according to claim 31, wherein: In order to encode the second syntax element using a binarization table, the processing circuit is configured to perform the following operations: A binary symbol string for the second syntax element is encoded based on the chroma prediction mode index using the binarization table.

38. The video encoding device according to claim 37, wherein: The binarization table includes:

39. The video encoding device according to claim 31, wherein: In order to encode the second syntax element using the binarization table, the processing circuit is configured to perform the following operations: Determining a binary symbol string using the binarization table based on the chroma prediction mode index; excluding from coded video data a first portion of the string of binary symbols associated with a chroma prediction mode for encoding the chroma block of the picture, wherein the first portion is inferable based on a value of the first syntax element; as well as A second portion of the string of binary symbols associated with the chroma prediction mode for encoding the chroma blocks of the picture is included in the encoded video data.

40. The video encoding device according to claim 31, wherein: In order to encode the second syntax element using the binarization table, the processing circuit is configured to perform the following operations: Determining a binary symbol string using the binarization table based on the chroma prediction mode index; as well as applying a Context-Adaptive Binary Arithmetic Coding (CABAC) technique to encode the string of binary symbols for the second syntax element, In order to apply the CABAC technique to encode the binary symbol string, the processing circuit is configured to perform the following operations based on the first syntax element indicating that all LM modes are disabled for the picture: encoding a first occurrence of the binary symbol of the string of binary symbols using a first context; and Depending on the value of the first occurrence of the binary symbol of the binary symbol string, a second occurrence of the binary symbol of the binary symbol string is encoded using a second context, wherein the first context and the second context are different from each other and the second occurrence of the binary symbol indicates whether the chroma intra-frame prediction mode for the chroma block is inherited from a co-located luminance block.

41. A video decoding device, comprising: means for decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of video data; means for decoding a second syntax element indicating a chroma prediction mode index for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; means for determining a chroma intra prediction mode for the chroma block based on the chroma prediction mode index, wherein the means for determining the chroma intra prediction mode for the chroma block comprises: means for 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 specific value, wherein 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; and and a unit for decoding the chroma block based on the chroma intra prediction mode for the chroma block, wherein the unit for decoding the second syntax element comprises: a unit for 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.

42. A video encoding device comprising: means for encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of video data; means for determining a chroma intra prediction mode for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; means for determining a chroma prediction mode index to specify the chroma intra prediction mode for the chroma block, wherein the means for determining the chroma prediction mode index comprises means for 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; and A unit for encoding a second syntax element indicating the chroma prediction mode index for the chroma block of the picture, wherein the unit for encoding the second syntax element includes: a unit for 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.

43. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video decoding device to perform the following operations: decoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of video data; decoding a second syntax element indicating a chroma prediction mode index for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; A chroma intra prediction mode for the chroma block is determined based on the chroma prediction mode index, wherein: To determine the chroma intra prediction mode for the chroma block, the instructions cause the one or more processors to: determine 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 specific value, wherein 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; and The chroma block is decoded based on the chroma intra prediction mode for the chroma block, wherein the instructions cause the one or more processors to perform the following operations: 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.

44. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video encoding device to: encoding a first syntax element indicating whether all linear model (LM) modes are disabled for a sequence parameter set (SPS) of video data; determining a chroma intra prediction mode for a chroma block of a picture in a sequence of pictures associated with the SPS of the video data; determining a chroma prediction mode index to specify the chroma intra prediction mode for the chroma block, wherein to determine the chroma prediction mode index, the instructions cause the one or more processors 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, 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; and encoding a second syntax element indicating the chroma prediction mode index for the chroma block of the picture, wherein the instructions cause the one or more processors 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.