Construction of intra chroma mode lists for video coding
By constructing a list of non-CCLM modes, evaluating the intra-prediction modes of co-located and adjacent luma blocks, and generating a list of intra-prediction modes for chroma blocks, the problem of insufficient flexibility in chroma block prediction modes in existing technologies is solved, thereby improving the compression efficiency and bandwidth utilization of video coding.
Patent Information
- Application Number
- CN202380028819.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-21
- Filing Date
- 2023-03-22
- Publication Date
- 2024-11-05
AI Technical Summary
Existing video coding techniques lack flexibility in determining the intra-frame prediction mode for chroma blocks, resulting in low compression efficiency and increased complexity in encoding or decoding time.
A list of non-cross-component linear model (CCLM) modes is constructed. By evaluating the intra-prediction modes of co-located and adjacent luma blocks, a list of intra-prediction modes of chroma blocks is generated, including modes derived from the co-located luma blocks of the current block and modes of adjacent chroma blocks, increasing the flexibility of encoding and decoding.
It improves the compression efficiency of video encoding, reduces bandwidth utilization, and does not increase the complexity of encoding or decoding time. It also provides a better chroma block prediction factor, thereby reducing the bandwidth requirements of residual information.
Smart Images

Figure CN118901236A_ABST
Abstract
Description
[0001] This application claims priority to U.S. Patent Application No. 18 / 187,517, filed on March 21, 2023, and U.S. Provisional Application No. 63 / 362,939, filed on April 13, 2022, the entire contents of which are hereby incorporated by reference herein. U.S. Patent Application No. 18 / 187,517, filed on March 21, 2023, claims the benefit of U.S. Provisional Application No. 63 / 362,939, filed on April 13, 2022. 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 variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video gaming consoles, cellular or satellite wireless telephones (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), ITU-T H.266 / Versatile Video Coding (VVC), and extensions of such standards, as well as proprietary video codecs / formats such as AOMedia Video 1 (AV1) developed by the Alliance for Open Media. By implementing such video decoding technology, a video device can send, receive, encode, decode and / or store digital video information more efficiently.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0005] In general, the present disclosure describes techniques for determining an intra-frame chroma mode (e.g., an intra-frame prediction mode) of a chroma block. To determine the intra-frame chroma mode, a video encoder and a video decoder may construct a list that excludes cross-component linear model (CCLM) modes, referred to as a non-CCLM mode list. The present disclosure describes examples of constructing one or more non-CCLM mode lists that a video encoder and a video decoder may use to determine an intra-frame chroma mode (e.g., an intra-frame prediction mode of a chroma block). In one or more examples, the construction of the non-CCLM mode list may provide additional flexibility in the intra-frame chroma modes that may be selected by the video encoder and the video decoder, thereby facilitating efficient compression and reduction in bandwidth utilization.
[0006] In one example, the present disclosure describes a method for encoding or decoding video data, the method comprising: constructing a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the constructing comprises adding a first group of intra-frame prediction modes to the chroma intra-frame prediction mode list, the first group comprising two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determining an intra-frame prediction mode for the chroma block from the chroma intra-frame prediction mode list; and encoding or decoding the chroma block based on the intra-frame prediction mode.
[0007] In one example, the present disclosure describes a device for encoding or decoding video data, the device comprising: a memory configured to store the video data; and a processing circuit coupled to the memory and configured to: construct a chroma intra-prediction mode list for a chroma block of a current block of the video data, wherein the constructing comprises adding a first group of intra-prediction modes to the chroma intra-prediction mode list, the first group comprising two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determine an intra-prediction mode for the chroma block from the chroma intra-prediction mode list; and encode or decode the chroma block based on the intra-prediction mode.
[0008] In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to: construct a chroma intra-prediction mode list for a chroma block of a current block of video data, wherein the constructing includes adding a first group of intra-prediction modes to the chroma intra-prediction mode list, the first group including two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determine an intra-prediction mode for the chroma block from the chroma intra-prediction mode list; and encode or decode the chroma block based on the intra-prediction mode.
[0009] 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 and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0011] Figure 2 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0012] Figure 3 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0013] Figure 4 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure.
[0014] Figure 5 is a flowchart illustrating an example method for decoding a current block according to techniques of this disclosure.
[0015] Figure 6 is a conceptual diagram illustrating neighboring blocks used in the derivation of a general most probable mode (MPM) list.
[0016] Figure 7 This is a conceptual diagram illustrating a technique for performing prediction fusion by weighted averaging of two histogram of gradient (HoG) modes and planes.
[0017] Figure 8 is a conceptual diagram illustrating an example of a template used in template-based intra mode derivation (TIMD) and a reference sample of the template.
[0018] Fig.9A and Fig. 9B are conceptual diagrams illustrating luma quadtree binary tree (QTBT) and chroma QTBT structures, respectively, where the position in the luma coding unit (CU) is used to derive the direct mode (DM).
[0019] Fig. 10A and Fig. 10B are conceptual diagrams illustrating luma quadtree binary tree (QTBT) and chroma QTBT structures, respectively, in which chroma modes are derived from co-located luma CUs corresponding to different positions in the chroma CUs.
[0020] Fig.11A and Fig. 11B are conceptual diagrams illustrating luma quadtree binary tree (QTBT) and chroma QTBT structures, respectively, where chroma modes are derived from neighboring chroma and luma CUs.
[0021] Fig. 12A and Fig. 12B are conceptual diagrams illustrating luma quadtree binary tree (QTBT) and chroma QTBT structures, respectively, where a decoder-side intra mode derivation (DIMD) mode is derived from a luma CU corresponding to a chroma CU within a co-located luma block.
[0022] Fig.13 is a flowchart illustrating an example of encoding or decoding video data.
[0023] Fig.14 is another flow chart illustrating an example of constructing a chroma intra prediction mode list according to one or more examples described in this disclosure. DETAILED DESCRIPTION
[0024] Intra prediction mode is an example video coding tool used by a video encoder and a video decoder to encode or decode a current block of video data (e.g., a coding unit (CU)), respectively. In intra prediction mode, the video encoder and the video decoder generate a prediction block based on reference samples within the same picture as the current block. There may be multiple intra prediction modes that define which reference samples are used to generate the prediction block.
[0025] In one or more examples, the video encoder and the video decoder may construct one or more intra-prediction mode lists. In some examples, the video encoder may signal an index to at least one list, and the video decoder may receive an index to at least one list to determine an intra-prediction mode for generating a prediction block. However, decoder-side derivation of the intra-prediction mode is also possible. The current block includes a luma component represented by a luma block and a chroma component represented by a chroma block. The present disclosure describes example techniques for constructing one or more intra-prediction mode lists for chroma blocks.
[0026] For example, there may be multiple intra-prediction modes (also referred to simply as intra-modes) for chroma intra-mode coding (e.g., for encoding or decoding chroma blocks using intra-prediction). The multiple intra-prediction modes may be categorized into two chroma mode groups (e.g., lists): a cross-component linear model (CCLM) mode list and a non-CCLM mode list (e.g., a group that excludes CCLM modes). The present disclosure describes example techniques for constructing a non-CCLM mode list that allows for the inclusion of intra-prediction modes, which may provide encoding and decoding flexibility for enhanced compression without increasing complexity to a point that negatively impacts the amount of encoding or decoding time for the current block.
[0027] In some examples, the video encoder may signal an index to the non-CCLM mode list, and the video decoder may receive the index to the non-CCLM mode list. However, the example techniques are not limited in this regard. In some examples, the non-CCLM mode list may be part of a larger intra-prediction mode list, such as a primary most probable mode (PMPM) list or a secondary MPM (SMPM) list. In some examples, the non-CCLM mode list may be part of a single larger intra-prediction mode list (e.g., a list that includes both CCLM intra-prediction modes and non-CCLM intra-prediction modes).
[0028] Thus, example techniques for constructing a non-CCLM mode list include examples where the non-CCLM mode list is a separate list or part of a larger intra-prediction mode list. In examples where the non-CCLM mode list is part of a larger intra-prediction mode list, the video encoder and video decoder may construct the non-CCLM mode list as part of constructing the larger intra-prediction mode list, or may construct the non-CCLM mode list separately and connect the non-CCLM mode list to the larger intra-prediction mode list.
[0029] For convenience, this disclosure describes examples of constructing an intra prediction coding mode list for a chroma block. As some examples, examples of intra prediction coding mode lists include the above example lists, such as a non-CCLM mode list, or where the non-CCLM mode list is part of a larger intra prediction mode list.
[0030] In one or more examples, a video encoder or a video decoder may evaluate one or more of the intra prediction modes of the co-located luma block and the intra prediction modes of neighboring blocks (e.g., neighboring chroma blocks or neighboring luma blocks of the co-located luma block). For example, various example intra prediction modes may each form a group. As an example, the intra prediction modes of the co-located luma block may be one group, the intra prediction modes of the neighboring chroma blocks may be another group, and the intra prediction modes of the neighboring luma blocks of the co-located luma block may be another group. In some examples, yet another group may be intra prediction modes derived from the intra prediction modes in one or more of these groups.
[0031] The video encoder and the video decoder may construct a chroma intra prediction mode list based on the intra prediction modes in one or more of these example groups. As an example, the video encoder and the video decoder may construct a chroma intra prediction mode list for a chroma block of a current block of video data. To construct the chroma intra prediction mode list, the video encoder and the video decoder may add the intra prediction modes of the first group to the chroma intra prediction mode list. The first group includes two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block.
[0032] In video decoding, the current block includes a chrominance component and a luma component. The division of the luma component to the luma block and the division of the chrominance component to the chrominance component may be different. In addition, the chrominance component may be subsampled relative to the luma component. Therefore, in one or more examples, the chrominance block may be co-located with two or more luma blocks of the same current block. In one or more examples, in order to construct a chrominance intra-frame prediction mode list, the video encoder and the video decoder may evaluate the intra-frame prediction mode of two or more co-located luma blocks co-located with the chrominance block, and add the intra-frame prediction mode of the two or more co-located luma blocks to the chrominance intra-frame prediction mode list. The intra-frame prediction mode of two or more co-located luma blocks may form a set of intra-frame prediction modes.
[0033] Similarly, the video encoder and the video decoder may evaluate the intra prediction modes of the adjacent chroma blocks and add one or more intra prediction modes of the adjacent chroma blocks to the chroma intra prediction mode list. The intra prediction modes of the adjacent chroma blocks may be another set of intra prediction modes. The video encoder and the video decoder may evaluate the intra prediction modes of the luma blocks adjacent to the co-located luma blocks and add one or more intra prediction modes of the luma blocks adjacent to the co-located luma blocks to the chroma intra prediction mode list. The luma blocks adjacent to the co-located luma blocks are luma blocks of blocks adjacent to the current block. The intra prediction modes of the luma blocks adjacent to the co-located luma blocks may be another set of intra prediction modes.
[0034] In some examples, the intra prediction mode may be defined by a numerical value. The video encoder and the video decoder may apply an offset to one or more intra prediction modes (e.g., adding or subtracting the offset from the numerical value) to derive the intra prediction mode. The video encoder and the video decoder may add the derived intra prediction mode to the chroma intra prediction mode list. The derived intra prediction mode may be another set of intra prediction modes.
[0035] The video encoder and video decoder may determine the intra prediction mode from the chroma intra prediction mode list. For example, the video encoder may perform a rate-distortion calculation to determine which intra prediction mode in the chroma intra prediction mode list provides the minimum distortion. For the video decoder, the video encoder may signal an index to the chroma intra prediction mode list, and the video decoder may determine the intra prediction mode based on the index.
[0036] To encode or decode a chroma block, a video encoder and a video decoder may determine a predicted chroma block based on an intra prediction mode. For decoding, a video decoder may receive residual information indicating a difference between the predicted chroma block and the chroma block, and reconstruct the chroma block based on the residual information and the predicted chroma block. For encoding, a video encoder may generate residual information indicating a difference between the predicted chroma block and the chroma block, and signal the residual information.
[0037] In this way, the example techniques improve the operation of intra prediction of chroma blocks. For example, a video encoder and a video decoder may be configured to determine an intra prediction mode for a chroma block using an intra prediction mode of a co-located or adjacent block. By constructing a chroma intra prediction mode list that includes intra prediction modes for co-located and / or adjacent blocks and additional derived intra prediction modes, bandwidth efficiency may be achieved because signaling an index to the chroma intra prediction mode list may require less bandwidth than signaling the actual value of the intra prediction mode.
[0038] In addition, since the chroma intra prediction mode list includes intra prediction modes of co-located or adjacent blocks, the probability that a better intra prediction mode for the chroma block exists in the chroma intra prediction mode list increases compared to the technique that limits the blocks evaluated. Increasing the probability of selecting a better intra prediction mode can result in generating a predicted chroma block with a better chroma block predictor than other techniques. Having a better chroma block predictor can produce a smaller value of residual (e.g., the difference between the predicted chroma block and the chroma block), thereby reducing bandwidth utilization when signaling residual information.
[0039] 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 generally relate to decoding (encoding and / or decoding) video data. Generally speaking, video data includes any data used to process video. Therefore, video data can include unencoded raw video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0040] like Figure 1As shown in , in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a target device 116. Specifically, source device 102 provides video data to target device 116 via computer-readable medium 110. Source device 102 and target device 116 may include any of a wide variety of devices, including desktop computers, notebook (i.e., laptop) computers, mobile devices, tablet computers, set-top boxes, handheld phones such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, etc. In some cases, source device 102 and target device 116 may be equipped for wireless communication and may therefore be referred to as wireless communication devices.
[0041] exist Figure 1 In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Target device 116 comprises 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 target device 116 can be configured to apply the technology for building the intra-frame chroma mode list. Therefore, source device 102 represents an example of a video encoding device, and target device 116 represents an example of a video decoding device. In other examples, source device and target 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, target device 116 may be docked with an external display device, rather than including an integrated display device.
[0042] like Figure 1 The system 100 shown in is only an example. In general, any digital video encoding and / or decoding device can perform the technology for intra-frame chroma mode list construction. The source device 102 and the target device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for sending to the target device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (e.g., encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, specifically, video encoders and video decoders, respectively. In some examples, the source device 102 and the target device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the target device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the target device 116, for example, for video streaming, video playback, video broadcasting or video telephony.
[0043] Generally speaking, video source 104 represents the source of video data (i.e., uncoded raw video data), and provides a series of pictures (also referred to as "frames") of the order of video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream including encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of target device 116 .
[0044] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memory. In some examples, the memories 106, 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 memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and the 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 memories 106, 120 can store encoded video data, for example, output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original decoded and / or encoded video data.
[0045] The computer-readable medium 110 may represent any type of medium or device capable of transmitting coded video data from the source device 102 to the target device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to directly transmit coded video data to the target device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate a transmission signal including coded video data, and the input interface 122 may demodulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a portion 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 any other equipment that may be useful for facilitating communication from the source device 102 to the target device 116.
[0046] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, target device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0047] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Target device 116 may access the stored video data from file server 114 via streaming or downloading.
[0048] The file server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to the target device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide a file transfer protocol service (such as a file transfer protocol (FTP) or a file delivery over unidirectional transport (FLUTE) protocol), a content delivery network (CDN) device, a hypertext transfer protocol (HTTP) server, a multimedia broadcast multicast service (MBMS) or an enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as dynamic adaptive streaming over HTTP (DASH), HTTP live streaming (HLS), real-time streaming protocol (RTSP), HTTP dynamic streaming, etc.
[0049] The target device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.
[0050] 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 (such as encoded video data) according to a cellular communication standard (such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee 5G, etc.). TM ),Bluetooth TMStandards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or target device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functionality belonging to video encoder 200 and / or output interface 108, and target device 116 may include a SoC device for performing functionality belonging to video decoder 300 and / or input interface 122.
[0051] The techniques disclosed herein can be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0052] The input interface 122 of the target device 116 receives an encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 and also used by the video decoder 300, such as syntax elements with values describing characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0053] Despite Figure 1 Not shown, but in some examples, the video encoder 200 and the video decoder 300 can both be integrated with an audio encoder and / or an audio decoder, and can include appropriate MUX-DEMUX units or other hardware and / or software to handle multiplexed streams including both audio and video in a common data stream.
[0054] The video encoder 200 and the video decoder 300 can 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 an appropriate non-transitory computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (codec) in a corresponding device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device (such as a cellular phone).
[0055] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as ITU-TH.265 (also known as High Efficiency Video Coding (HEVC)) or an extension thereof such as a multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as ITU-TH.266, also known as Versatile Video Coding (VVC). In other examples, the video encoder 200 and the video decoder 300 may operate according to a proprietary video codec / format such as AOMedia Video 1 (AV1), an extension of AV1, and / or a subsequent version of AV1 (e.g., AV2). In other examples, the video encoder 200 and the video decoder 300 may operate according to other proprietary formats or industry standards. However, the techniques of the present disclosure are not limited to any particular coding standard or format.
[0056] In general, the video encoder 200 and the video decoder 300 may be configured to perform the techniques of the present disclosure in conjunction with any video decoding technique that uses intra-prediction modes. For example, as described in more detail, the present disclosure describes example techniques for constructing a chroma intra-prediction mode list for a chroma block of a current block of video data. In some examples, the chroma intra-prediction mode list may include intra-prediction modes from one or more groups, and constructing the chroma intra-prediction mode list may include constructing one or more of the following: a first group, the first group including intra-prediction modes derived from intra-prediction modes of co-located luminance blocks of the current block; a second group, the second group including intra-prediction modes derived from intra-prediction modes of neighboring chroma blocks; a third group, the third group including intra-prediction modes derived from intra-prediction modes of luminance blocks adjacent to the co-located luminance blocks; and a fourth group, the fourth group including one or more of the intra-prediction modes derived from intra-prediction modes of one or more of these groups, which may include direct mode (DM), planar mode, horizontal mode, vertical mode, DC mode, and diagonal mode.
[0057] The above groups are provided for example purposes only and should not be considered restrictive. In addition, not all groups are required in every example. For example, the video encoder 200 and the video decoder 300 may construct a chroma intra-prediction mode list for the chroma block of the current block of video data. In order to construct the chroma intra-prediction mode list, the video encoder 200 and the video decoder 300 may add the intra-prediction mode of the first group to the chroma intra-prediction mode list. The first group includes two or more intra-prediction modes derived from the intra-prediction mode of two or more co-located luminance blocks of the current block that are co-located with the chroma block. If the first group fills the chroma intra-prediction mode list, the video encoder 200 and the video decoder 300 may not construct other groups.
[0058] In some examples, the video encoder 200 and the video decoder 300 may start with the second group or the third group, rather than the example first group. The terms "first," "second," "third," and "fourth" groups should not be interpreted as requiring an order. Instead, the terms "first," "second," "third," and "fourth" groups are used to explain that there are different groups.
[0059] The video encoder 200 and the video decoder 300 may be viewed as constructing a chroma intra prediction mode list from one or more groups of intra prediction modes. In some example techniques, the video encoder 200 and the video decoder 300 may first determine one or more of these groups and then selectively add intra prediction modes from the corresponding groups. However, the example techniques should not be viewed as requiring the video encoder 200 and the video decoder 300 to first determine all groups or to be configured to be divided between the groups. Instead, the video encoder 200 and the video decoder 300 may be configured to sequentially evaluate the intra prediction modes of co-located luma blocks, adjacent (e.g., adjacent) luma blocks, and / or adjacent (e.g., adjacent) chroma blocks, and add the intra prediction modes to the chroma intra prediction mode list until the chroma intra prediction mode list is full or based on some other constraint (e.g., based on the number of intra prediction modes in a group).
[0060] The number of intra-prediction modes that can be added from each group in the chroma intra-prediction mode list may be limited. For example, there may be X intra-prediction modes for co-located luma blocks, but the video encoder 200 and the video decoder 300 may only add Y intra-prediction modes of the X intra-prediction modes for co-located luma blocks. The video encoder 20 and the video decoder 300 may then add the intra-prediction modes of other groups (again, without having to first determine all groups). The number of intra-prediction modes of a group that can be added to the chroma intra-prediction mode list may be predefined or signaled. As an example, the video encoder 200 and the video decoder 300 may add an intra-prediction mode from a group to the chroma intra-prediction mode list based on a maximum number of entries for a group, where the maximum number of entries is predefined or signaled.
[0061] One of the groups of intra-frame prediction modes may be derived from other groups. For example, the video encoder 200 and the video decoder 300 may derive one or more intra-frame prediction modes from one or more intra-frame prediction modes in other groups. In this example, the video encoder 200 and the video decoder 300 may add the intra-frame prediction mode in the derived one or more intra-frame prediction modes to the chroma intra-frame prediction mode list. As an example, the video encoder 200 and the video decoder 300 may add or subtract an offset to one or more intra-frame prediction modes in the group to derive the intra-frame prediction mode. For example, the intra-frame prediction mode may be defined by a corresponding value, and the video encoder 200 and the video decoder 300 may add or subtract the offset to the corresponding value to derive one or more intra-frame prediction modes.
[0062] Generally speaking, the video encoder 200 and the video decoder 300 may perform block-based decoding of a picture. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally speaking, the video encoder 200 and the video decoder 300 may decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, instead of decoding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 may decode luminance components and chrominance components, wherein the chrominance components may include both red hue chrominance components and blue hue chrominance components. 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 and post-processing unit (not shown) may perform these conversions.
[0063] The present disclosure may generally relate 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 relate to the decoding of a block of a picture to include the process of encoding or decoding data for the block (e.g., prediction and / or residual decoding). The encoded video bitstream generally includes a series of values of syntax elements for representing decoding decisions (e.g., decoding modes) and partitioning of pictures into blocks. Therefore, references to the decoding of a picture or a block should generally be understood as the decoded values of the syntax elements that form the picture or block.
[0064] 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 a child node may be referred to as a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further divide the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents the division of a TU. In HEVC, a PU represents inter-frame prediction data, and a TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0065] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video 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 CTUs 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 partitions, and a second level divided according to binary tree partitions. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0066] In the MTT partition structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partition is a partition in which a block is divided into three sub-blocks. In some examples, the ternary tree or ternary tree partition divides the block into three sub-blocks without dividing the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0067] When operating according to the AV1 codec, the video encoder 200 and the video decoder 300 may be configured to decode the video data in blocks. In AV1, the largest decoding block that can be processed is called a super block. In AV1, a super block can be 128×128 luma samples or 64×64 luma samples. However, in subsequent video coding formats (e.g., AV2), super blocks may be defined by different (e.g., larger) luma sample sizes. In some examples, the super block is the top level of the block quadtree. The video encoder 200 may further divide the super block into smaller decoding blocks. The video encoder 200 may divide the super block and other decoding blocks into smaller blocks using square or non-square partitions. Non-square blocks may include N / 2×N blocks, N×N / 2 blocks, N / 4×N blocks, and N×N / 4 blocks. The video encoder 200 and the video decoder 300 may perform separate prediction and transform processing on each decoding block.
[0068] AV1 also defines tiles of video data. A tile is a rectangular array of super blocks that can be decoded independently of other tiles. That is, the video encoder 200 and the video decoder 300 can encode and decode coded blocks within a tile, respectively, without using video data from other tiles. However, the video encoder 200 and the video decoder 300 can perform filtering across tile boundaries. The size of the tiles can be uniform or non-uniform. Tile-based decoding can enable parallel processing and / or multi-threading specifically implemented by the encoder and decoder.
[0069] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for the corresponding chroma components).
[0070] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, superblock partitioning, or other partitioning structures.
[0071] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture or a picture coded using three separate color planes and syntax structures for coding the samples. A CTB can be an N×N block of samples for some N value, such that one partition is to divide components into CTBs. A component is an array or a single sample from one of the three arrays (luminance and two chroma) that make up a 4:2:0, 4:2:2, or 4:4:4 color format picture, or an array or a single sample of an array that makes up a monochrome format picture. In some examples, a coding block is an M×N block of samples for some M and N values, such that one partition is to divide a CTB into coding blocks.
[0072] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular area of a CTU row within a particular tile in a picture. A tile may be a rectangular area of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a rectangular area of a CTU having a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.
[0073] In some examples, a tile may be divided into multiple bricks, each of which may include one or more CTU rows within the tile. Tiles that are not divided into multiple bricks may also be referred to as bricks. However, bricks that are true subsets of tiles may not be referred to as tiles. Bricks in a picture may also be arranged in slices. A slice may be an integer number of bricks of a picture that may be uniquely contained in a single network abstraction layer (NAL) unit. In some examples, a slice includes multiple complete tiles or a continuous sequence of complete bricks that include only one tile.
[0074] The present disclosure may use "N×N" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of the vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Generally speaking, a 16×16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N 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. In addition, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.
[0075] 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.
[0076] In order to predict a CU, the video encoder 200 may typically 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 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search to identify a reference block that closely matches the CU, for example, based on the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.
[0077] Some examples of 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 zooming in or out, rotation, perspective motion, or other irregular motion types).
[0078] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as planar modes and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU) from which to predict samples of the current block. Assuming that the video encoder 200 decodes CTUs and CUs in raster scan order (from left to right, from top to bottom), such samples may typically be located above, above left, or to the left of the current block in the same picture as the current block.
[0079] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 may encode data indicating which of various available inter-frame prediction modes is used and motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.
[0080] AV1 includes two general techniques for encoding and decoding coded blocks of video data. The two general techniques are intra-frame prediction (e.g., intra-frame prediction or spatial prediction) and inter-frame prediction (e.g., inter-frame prediction or temporal prediction). In the content of AV1, when an intra-frame prediction mode is used to predict a block of a current frame of video data, the video encoder 200 and the video decoder 300 do not use video data from other frames of the video data. For most intra-frame prediction modes, the video encoder 200 encodes a block of the current frame based on the difference between the sample value in the current block and the prediction value generated from the reference sample in the same frame. The video encoder 200 determines the prediction value generated from the reference sample based on the intra-frame prediction mode.
[0081] After prediction (such as intra-frame prediction or inter-frame prediction for 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 a prediction block for the block, which is formed using a corresponding prediction mode. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than in 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. Additionally, 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 applying one or more transforms.
[0082] As noted above, after any transforms that produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bit-by-bit right shift of the value to be quantized.
[0083] After quantization, the video encoder 200 may scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place the transform coefficients of higher energy (and therefore lower frequency) in front of the vector and the transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 may 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 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values of the syntax elements describing the metadata associated with the encoded video data, which is used by the video decoder 300 when decoding the video data.
[0084] 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 neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0085] The video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for example in a picture header, a block header, a slice header, or generate other syntax data such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS) to the video decoder 300. The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0086] In this way, the video encoder 200 can generate a bitstream including encoded video data, for example, a syntax element describing the partition of a 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.
[0087] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements for the bitstream in a manner substantially similar to but reverse to the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partition structure such as a QTBT structure to define CUs of the CTUs. The syntax elements may further define prediction and residual information for a block of video data (e.g., a CU).
[0088] 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.
[0089] The present disclosure may generally involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the communication of values of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values of syntax elements in a bitstream. Generally speaking, signaling refers to generating values in a bitstream. As noted above, the source device 102 may transmit the bitstream to the target device 116 in substantially 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 target device 116).
[0090] Versatile Video Coding (VVC) is a new video coding standard developed by the Joint Video Experts Group (JVET) of ITU-T and ISO / IEC to achieve high compression capabilities beyond HEVC for a wide range of applications. The VVC specification was completed in July 2020 and published by both ITU-T and ISO / IEC. The VVC specification specifies standard bitstream and picture formats, high-level syntax (HLS) and coding unit-level syntax, and parsing and decoding processes. VVC also specifies profile / layer / level (PTL) restrictions, byte stream formats, hypothetical reference decoders, and supplementary enhancement information (SEI) in the appendix.
[0091] Since April 2021, JVET has been developing the Enhanced Compression Model (ECM) software to enhance compression capabilities beyond VVC, described in M. Coban, F.L. Léannec, MG Sarwer and J. "Algorithm description of Enhanced Compression Model 3 (ECM 3)," JVET-X2025, January 2022. The set of coding tools in the ECM software includes all functional blocks in the hybrid video coding framework, including intra-frame prediction, inter-frame prediction, transform and coefficient coding, in-loop filtering, and entropy coding. The example techniques described in this disclosure can be applied to ECM and video codecs (such as VVC, AV1, etc.).
[0092] The most probable mode in intra prediction of the luminance component is described below. There are two most probable mode (MPM) lists in the ECM. The primary MPM (PMPM) list includes 6 entries, and the secondary MPM (SMPM) list includes 16 entries. The video encoder 200 and the video decoder 300 can construct a general MPM list with 22 entries. The first 6 entries in the general MPM list are included in the PMPM list, and the remaining entries form the SMPM list. The first entry in the general MPM list may be a planar mode. The remaining entries consist of intra modes in the following order: intra modes from 5 neighboring blocks, namely, left (L), top (A), bottom left (BL), top right (AR) and top left (AL), as Figure 6 As shown; DIMD1 and DIMD2 (ie, as Figure 7 The directional mode of the first two available directional modes of the neighboring blocks is added; and the default mode. That is, for block 600, the video encoder 200 and the video decoder 300 may be based on Figure 6 The example neighboring blocks shown are used to build the intra prediction mode list. If the CU block is vertically oriented, the order of the neighboring blocks is A, L, BL, AR, AL; otherwise, the order is L, A, BL, AR, AL. The PMPM flag is parsed first. If the flag is true, the PMPM index is parsed to determine which entry of the PMPM list is selected, otherwise the SMPM flag is parsed to determine whether to parse the SMPM index or the remaining modes.
[0093] Decoder-side intra mode derivation (DIMD) is described below. When DIMD is applied, two intra modes are derived from reconstructed neighboring samples based on a histogram of gradients (HoG) computation, and these two predictors are combined with a planar mode predictor with weights derived from the gradients, as described in Abdoli et al., "Non-CE3: Decoder-side Intra Mode Derivation with Prediction Fusion Using Planar", ITU-T SG 16 WP 3 and ISO / IEC JETC1 / SC 29 / WG 11 JVET, 15 th Meeting: Gothenburg, SE, July 3-12, 2019, as described in JVET-O0449, Figure 7 As shown. Figure 7 , block 700 is a current block, and the reference pixels include reference pixels 702A and 702B. A DIMD flag is signaled to indicate whether the current CU 700 is predicted based on a fusion of M1, M2, and a plane.
[0094] In ECM, DIMD1 and DIMD2 (i.e., Figure 7 M1 and M2 in the frame are included into the MPM list of the most probable mode (MPM) in the frame. Therefore, in one or more examples, the video encoder 200 and the video decoder 300 may perform the HoG process before the MPM list is constructed.
[0095] Template-based intra mode derivation (TIMD) is described below. The TIMD mode is derived from the MPM using neighboring templates. The TIMD mode is used as an additional intra prediction technique for a CU. Figure 8 As shown, for each MPM mode, the reference samples of the template 804 are used to generate the prediction samples of the current CU 800 of the template 802. The cost is calculated as the sum of the absolute transform differences (SATD) between the prediction samples and the reconstructed samples of the template. The first two intra prediction modes with the smallest SATD are selected as TIMD modes, i.e., TIMD1 (lowest cost costTIMD1) and TIMD2 (second lowest cost costTIMD2). The costs of TIMD1 and TIMD2 are compared to decide how to generate the prediction factor. If costTIMD2<2*costTIMD2, the prediction factor (i.e., P_timd) is a fusion of the prediction factor of TIMD1 indicated as Pred1 and the prediction factor of TIMD2 indicated as Pred2, such as P_timd=w1*Pred1+w2*Pred2, where w1=costTIMD2 / (costTIMD1+costTIMD2) and w2=1-weight1. Otherwise, if costTIMD2 ≥ 2*costTIMD2, the predictor is set to the predictor of TIMD1, ie, P_timd = Pred1.
[0096] In some examples, TIMD is derived from MPM, and MPM includes DIMD1 and DIMD2. Therefore, if TIMD is enabled, DIMD1 and DIMD2 are available.
[0097] The above example techniques may be considered as intra prediction modes for luma components. Intra prediction modes for chroma components are described below.
[0098] In ECM, there are 11 intra modes for chroma intra mode decoding, which are classified into 2 chroma mode lists: a cross-component linear model (CCLM) mode list and a non-CCLM mode list. The CCLM mode list includes six cross-component linear model modes, namely LM and LM_L, LM_A, MMLM, MMLM_L and MMLM_A. The non-CCLM mode list includes five or six traditional intra modes, such as direct mode (DM) and default mode. If one of the default modes (e.g., planar mode, horizontal mode, vertical mode, and DC mode) is the same as the DM mode, the default mode is replaced by the diagonal mode. The signaling for CCLM mode is 00 (LM), 010 (MMLM), 01100 (LM_L), 01101 (LM_A), 01110 (MMLM_L), 01111 (MMLM_A), and the signaling for non-CCLM mode is 10 for DM and 1100, 1101, 1110 and 1111 for default mode. In other words, the first binary number indicates whether the intra-frame prediction mode is CCLM mode (0) or non-CCLM mode (1). If non-CCLM mode is true (1), the second binary number is parsed to indicate whether the intra-frame prediction mode is DM mode (0) or default mode (1). If the default mode is true (1), the 2-bit fixed length decoding is parsed to indicate which default mode is used.
[0099] The DM mode can directly depend on the intra prediction mode of the corresponding luminance block. Fig.9A and Fig. 9B As shown, separate block partitioning structures for luma and chroma components (eg, luma block 900A and chroma block 900B) are enabled in an I slice, so one chroma block may correspond to multiple luma blocks. Fig. 9B The chrominance block 900 is illustrated. The chrominance block 900 may be Fig.9A The chrominance block 900 and the luminance blocks 902A-902I may be co-located. The chrominance block 900 and the luminance blocks 902A-902I may be part of the same coding unit (CU). However, due to different block partitions of the CU, the CU may be partitioned to include the luminance blocks 902A-902I and the chrominance block 900.
[0100] Chroma block 900 may be considered to be co-located with luma blocks 902A through 902I. For example, during display, chroma block 900 may have chroma values for the same number of pixels as luma blocks 902A through 902I. There may be other reasons why chroma block 900 and luma blocks 902A through 902I may be considered to be co-located.
[0101] For the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited. Fig.9AThe position "c" of the luma block 902A is illustrated as covering the center position of the current chroma block 900. That is, Fig.9A and Fig. 9B A separate block partitioning structure for luma and chroma components in an I slice is illustrated, where the luma CU covering position "c" in luma block 902A is used to derive the DM mode.
[0102] As described in more detail, in one or more examples described in the present disclosure, the video encoder 200 and the video decoder 300 may be configured to evaluate more than one intra-prediction mode at a center position. For example, the video encoder 200 and the video decoder 300 may evaluate the intra-prediction mode of two or more of the luma blocks 902A to 902I, and determine a first group (e.g., a first group of intra-prediction modes including two or more intra-prediction modes from the intra-prediction modes of blocks 902A to 902I). The video encoder 200 and the video decoder 300 may be configured to add the intra-prediction mode from the first group to the chroma intra-prediction mode list. In some examples, the video encoder 200 and the video decoder 300 may also derive the intra-prediction mode from one or more intra-prediction modes in the first group (e.g., by adding or subtracting an offset value). The video encoder 200 and the video decoder 300 may add the derived intra-prediction mode to the chroma intra-prediction mode list.
[0103] The DIMD of the chroma components is described below. In Li et al., "Non-EE2: On chroma intra prediction mode", ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29, JVET, 25 th Meeting: Teleconference, January 12-21, 2022, JVET-Y0092 (a chroma DIMD) was proposed on top of ECM to derive the chroma_DIMD mode based on the HoG from co-located (co-sited) reconstructed luma samples. The chroma_DIMD flag is signaled after the DM flag is signaled. If the chroma_DIMD flag is true, the chroma_DIMD mode is derived and used in the current CU. Otherwise, the default mode index is parsed to indicate which default mode is selected.
[0104] According to one or more examples described in the present disclosure, the video encoder 200 and the video decoder 300 may construct a non-CCLM mode list, where the list size is represented as M and consists of N1 groups of chroma intra modes. The group may be one of the following non-CCLM chroma mode groups (but not limited to the following groups): (1) a chroma mode derived from an intra-frame prediction mode of a co-located luma CU, (2) a chroma mode derived from an intra-frame prediction mode of an adjacent chroma CU, (3) a chroma mode derived from an intra-frame prediction mode of an adjacent co-located luma CU, and (4) a secondary chroma mode derived from a chroma mode currently in the non-CCLM mode list.
[0105] For example, to determine the intra prediction mode for a chroma block, the video encoder 200 and the video decoder 300 may construct a chroma intra prediction mode list for the chroma block, rather than limiting the video encoder 200 and the video decoder 300 to consider only one position (e.g., Fig.9A The chrominance intra prediction mode list may include intra prediction modes from different groups. Therefore, the number of intra prediction modes that can be used for intra prediction encoding or decoding of chrominance blocks can be increased, thereby allowing better compression.
[0106] For example, the video encoder 200 and the video decoder 300 may determine a first group including two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luminance blocks co-located with a chrominance block. The video encoder 200 and the video decoder 300 may determine a second group including intra-prediction modes based on intra-prediction modes of one or more adjacent chrominance blocks, and determine a third group including intra-prediction modes based on intra-prediction modes of one or more luminance blocks adjacent to at least one of the two or more co-located luminance blocks. The video encoder 200 and the video decoder 300 may determine a fourth group including one or more intra-prediction modes derived from one or more intra-prediction modes in the first group, the second group, and the third group. For example, the video encoder 200 and the video decoder 300 may derive one or more intra-prediction modes by adding or subtracting an offset to one or more intra-prediction modes in the first group, the second group, or the third group.
[0107] In the above examples, the terms "first", "second", "third", and "fourth" groups should not be interpreted as meaning an order of the groups or that each group is required. Instead, the terms "first", "second", "third", and "fourth" groups are used to distinguish different groups. There may be more, fewer, or different groups than the examples identified as the first, second, third, and fourth groups.
[0108] The video encoder 200 and the video decoder 300 may add intra prediction modes from one or more of the first group, the second group, the third group, and the fourth group to construct a chroma intra prediction mode list. For example, the video encoder 200 and the video decoder 300 may construct a chroma intra prediction mode list for a chroma block of a current block of video data by adding the intra prediction modes of the first group to the chroma intra prediction mode list. In one or more examples, the first group includes two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block. The video encoder 200 and the video decoder 300 may similarly add examples to the second group, the third group, and the fourth group.
[0109] In CCLM, the video encoder 200 and the video decoder 300 may use sample values of the luma block to determine a prediction block for a chroma block. In one or more examples of intra prediction modes used to construct a non-CCLM mode list, the actual sample values of the luma block may not be used. Instead, the intra prediction mode of the co-located luma CU may be used to derive an intra prediction mode (e.g., a chroma intra mode) that forms a non-CCLM mode list.
[0110] The example chroma intra prediction mode list may be an example of a non-CCLM mode list, or may be part of a larger list that includes non-CCLM modes. For example, the chroma intra prediction mode list does not include a CCLM mode.
[0111] In some examples, the number of chroma modes in the i-th group may be constrained to not exceed a pre-assigned maximum number of chroma modes for the i-th group, ie, n i . In other words, in one or more examples, there may be a defined maximum number of entries in each group. The video encoder 200 and the video decoder 300 may add intra-prediction modes from a group until the maximum number of entries for the group is reached, even if there are more intra-prediction modes in the group that can be added. If the maximum size of the chroma intra-prediction mode list is not reached, the video encoder 200 and the video decoder 300 may add intra-prediction modes from another group until the maximum number of entries for the group is reached or the maximum size of the chroma intra-prediction mode list is reached, and such a process may be repeated until there are no more groups or the maximum size of the chroma intra-prediction mode list is reached.
[0112] For example, the video encoder 200 and the video decoder 300 may add the intra prediction mode from the first group to the chroma intra prediction mode list based on the maximum number of entries in the first group. Even if there are more intra prediction modes in the first group, the video encoder 200 and the video decoder 300 may continue to add the intra prediction mode from one of the other groups to the chroma intra prediction mode list.
[0113] ni The sum of can be equal to the non-CCLM list size M, that is, n1+n2+…+n N1 =M. That is, M may be the maximum size of the chroma intra prediction mode list. In some examples, the constraint may be that the sum of the number of chroma modes in group 1 to group i does not exceed the pre-assigned maximum number of chroma modes in group 1 to group i, i.e., m i . m N1 The value of may be equal to M. That is, in some examples, the chroma intra prediction mode list may include intra prediction modes from the first group but not other groups.
[0114] When a chroma mode (e.g., an intra-frame prediction mode) of the i-th group is added to a non-CCLM mode list (e.g., a chroma intra-frame prediction mode list), the video encoder 200 and the video decoder 300 may check whether the chroma mode (e.g., an intra-frame prediction mode) is already in the non-CCLM mode list (e.g., a chroma intra-frame prediction mode list). If not, the video encoder 200 and the video decoder 300 may add the chroma mode (e.g., an intra-frame prediction mode) to the chroma intra-frame prediction mode list. After adding the chroma mode (e.g., an intra-frame prediction mode) to the non-CCLM mode list (e.g., a chroma intra-frame prediction mode list), the video encoder 200 and the video decoder 300 may check whether the number of chroma modes (e.g., intra-frame prediction modes) of the i-th group (e.g., the first, second, third, or fourth) is equal to the pre-assigned maximum number, that is, n. i or m i If yes, the video encoder 200 and the video decoder 300 may stop adding the chroma modes from the i-th group and move to add the chroma modes of the next group (ie, the (i+1)-th group).
[0115] One feature is that the first group may always have one chroma mode added to the list, since the non-CCLM mode list is empty at the beginning. That is, the chroma intra prediction mode list for a chroma block may include at least one intra prediction mode from the first group (e.g., an intra prediction mode from a co-located luma block).
[0116] As an example, assume that the sum of the number of chroma modes in the first group to the i-th group (e.g., the sum of the number of intra-prediction modes) is constrained. Assume that there are three groups (N1=3), the non-CCLM list size is 8 (M=8), m1=4, m2=7, and m3=8. Then, in this example, the video encoder 200 and the video decoder 300 may add up to four chroma modes from the first group to the non-CCLM list, up to six chroma modes from the second group (e.g., intra-prediction modes of adjacent chroma blocks) to the non-CCLM list, and up to seven intra-prediction modes from the third group (e.g., intra-prediction modes derived from intra-prediction modes of luminance blocks adjacent to the co-located luminance blocks) to the non-CCLM list.
[0117] In some examples, if there is a repetition in a group or between groups, the video encoder 200 and the video decoder 300 may add one of the repeated intra prediction modes. For example, the video encoder 200 and the video decoder 300 may add at least one chroma mode from the first group to the non-CCLM list. However, if all intra prediction modes in the first group are the same, the video encoder 200 and the video decoder 300 may only add one chroma mode to the non-CCLM list. As described above, the non-CCLM list is an example of a chroma intra prediction mode list.
[0118] If the non-CCLM list is not full, the default mode is added to the chroma intra prediction mode list until the chroma intra prediction mode list is full. In one example, the last p entries in the non-CCLM list of the last group (i.e., the N1th group) may be retained. Therefore, after the chroma mode (e.g., intra prediction mode) is added to the non-CCLM mode list (e.g., the chroma intra prediction mode list), the video encoder 200 and the video decoder 300 may check whether the number of intra prediction modes of the i-th group has reached (Mp). If so, the video encoder 200 and the video decoder 300 stop adding the intra prediction mode from the i-th group and move to add the intra prediction mode from the last group (i.e., the N1th group).
[0119] That is, the video encoder 200 and the video decoder 300 may construct a chroma intra-prediction mode list (e.g., adding one or more intra-prediction modes from multiple groups (such as the example groups described above)). As an example, the video encoder 200 and the video decoder 300 may construct a chroma intra-prediction mode list by adding one or more intra-prediction modes from the first group and one or more intra-prediction modes from additional groups (e.g., the second, third, and fourth groups). The video encoder 200 and the video decoder 300 may determine that the maximum number of entries in the chroma intra-prediction mode list (e.g., M) minus the number of entries in the chroma intra-prediction mode list is equal to the number of entries (p) in the last group of the additional groups (e.g., determine whether Mp is reached). Based on this determination, the video encoder 200 and the video decoder 300 may stop adding intra-prediction modes from other groups and add intra-prediction modes from the last group.
[0120] In some examples, a group may be further divided into N2 subgroups. An example in the group is DM modes from different locations, and there are the following subgroups (but not limited to the following subgroups): (1) DM modes for corresponding luminance blocks that may use DIMD, TIMD or other modes, (2) DM modes for corresponding luminance blocks that use DIMD mode, (3) DM modes for corresponding luminance blocks that use TIMD mode. The same constraints as above may be applied to the N2 subgroups. For example, a constraint on the number of chrominance modes (e.g., intra-frame prediction modes) in the jth subgroup may not exceed the pre-assigned maximum number of chrominance modes for the jth subgroup. A constraint on the sum of the number of chrominance modes in the first to jth subgroups may not exceed the pre-assigned maximum number of chrominance modes for the first to jth groups. A constraint may be about reserving the last q entries of group i for the last subgroup.
[0121] For example, using the constraint about reserving the last q entries of group i for the last subgroup as an example, assume that group i is the first group with a group size of 5, i.e., n1=5. The group is divided into subgroups, i.e., N2=3. The video encoder 200 and the video decoder 300 may reserve the last two entries in the group for the last subgroup (i.e., q=2). After adding the chroma mode (e.g., intra-frame prediction mode) of subgroup j to the non-CCLM mode list (e.g., chroma intra-frame prediction mode list), the video encoder 200 and the video decoder 300 may check whether the number of chroma modes of the i-th group reaches (n1-q). If so, the video encoder 200 and the video decoder 300 stop adding the chroma mode of subgroup j from the first group, and move to add the chroma mode of the last subgroup (i.e., subgroup 3) from the first group.
[0122] Various chroma mode groups (e.g., intra prediction modes) are described below with respect to the first group: "chroma modes derived from intra prediction modes of co-located luma CUs", the second group: "chroma modes derived from intra prediction modes of neighboring chroma and luma CUs", the third group: "DIMD modes derived from co-located luma CUs in co-located luma blocks", and the fourth group: "secondary chroma modes derived from current chroma mode in non-CCLM list". The following description related to "Combinations of chroma mode groups and constraints on the maximum number of chroma modes" describes other combinations of mode groups and constraints on the maximum number of chroma modes (e.g., intra prediction modes) of a group.
[0123] The following describes chroma modes (eg, intra prediction modes) derived from intra prediction modes of a co-located luma CU. Fig. 10A and Fig. 10B The chroma mode derived from a co-located luma CU corresponding to a different position in the current chroma CU is illustrated. For example, Fig. 10A illustrates brightness CU 1000A, and Fig. 10B Chroma CU 1000B is illustrated. Fig. 10A Different positions 1002A to 1002I of the luma CU 1000A are also illustrated.
[0124] For example, Fig. 10A and Fig. 10B An example of a first set of intra prediction modes is illustrated. As an example, the video encoder 200 and the video decoder 300 may construct a chroma intra prediction mode list for a chroma block 1000B of a current block of video data by adding the intra prediction modes of the first set (e.g., from different positions 1002A to 1002I) to the chroma intra prediction mode list. Fig. 10A As illustrated in FIG. 1 , the first group includes two or more co-located luma blocks (eg, Fig. 10A Two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks) at different positions in the frame.
[0125] like Fig. 10A As illustrated in FIG. 1 , one of the options is position 1002A, which is similar to Fig.9A However, in Fig. 10A and Fig. 10B In the example of , the intra prediction mode of the luminance block is not limited to the center position. Fig. 10A As illustrated in FIG. 1 , there may be multiple locations corresponding to two or more co-located luma blocks. Video encoder 200 and video decoder 300 may evaluate various co-located luma blocks and Fig. 10AThe video encoder 200 and the video decoder 300 may add these intra prediction modes to the chroma intra prediction mode list.
[0126] Fig. 10A and Fig. 10B The example of illustrates a first set of DM modes. In DM mode, the intra prediction mode of the co-located luma block is added as an intra prediction mode in the chroma intra prediction mode list. However, in some examples, the video encoder 200 and the video decoder 300 may derive the intra prediction mode added to the intra prediction mode list based on the intra prediction mode of the co-located luma block (e.g., by some scaling and / or offsetting).
[0127] Five chroma mode groups derived from intra prediction of a co-located luma CU (eg, which may be considered as subsets of the first group) are introduced as follows.
[0128] (A) - Multiple DM modes: The chroma mode is derived from the intra prediction mode of the luma block corresponding to different positions in the current chroma CU (e.g., the intra prediction mode added to the chroma intra prediction mode list), as Fig. 10A As shown. The intra prediction mode of the luma block can be matrix-based intra prediction (MIP), template matching intra prediction (TMP), DIMD, TIMD, planar mode, DC mode, or other angle modes. If the luma intra prediction mode is MIP or TMP, the chroma mode (e.g., intra prediction mode) is set to planar mode. Otherwise, the chroma mode is set to luma intra prediction mode.
[0129] (B) - Multiple DM modes using DIMD1: Chroma mode is set to DIMD1 for luma CUs that are using DIMD or TIMD mode. When DIMD or TIMD is enabled, DIMD1 and DIMD2 may be available. The location of the luma CU corresponds to a different location in the current chroma CU, such as Fig. 10A shown.
[0130] (C) – Multiple DM mode using DIMD2: Chroma mode is set to DIMD2 for luma CUs that are using DIMD or TIMD mode. When DIMD or TIMD is enabled and Figure 7 When ampl(M2) in is greater than 0, DIMD1 and DIMD2 may be available. The position of the luma CU corresponds to a different position in the current chroma CU, such as Fig. 10A shown.
[0131] (D) - Multiple DM modes using TIMD1: The chroma mode is set to TIMD1 of the luma CU that is using the TIMD mode. The position of the luma CU corresponds to different positions in the current chroma CU, such as Fig. 10A shown.
[0132] (E) - Multiple DM modes using TIMD2: The chroma mode is set to TIMD2 of the luma CU that is using the TIMD mode and whose costTIMD2<2*costTIMD2 is satisfied. The position of the luma CU corresponds to a different position in the current chroma CU, such as Fig. 10A shown.
[0133] The order of the positions of the luma CUs is block 0 1002A to block 8 1002I, as shown in FIG. Fig. 10A As an example, the order of positions may be block 0 1002A, followed by any order of the 4 corners (i.e., block 1 1002B to block 4 1002E), followed by any order of the 4 centers between the center and the 4 corners (i.e., block 5 1002F to block 8 1002I). As another example, the order of positions may be block 0 1002A, followed by any order of the 4 corners (i.e., block 1 1002B to block 4 1002E), followed by other PxP sub-blocks in the co-located luma block ( Fig. 10A The gray area in the figure) where P can be 4, 8, 16, etc. An example of an order of other PxP sub-blocks is from the top left sub-block to the bottom right sub-block.
[0134] Some variations of the chroma mode group (e.g., a subgroup of the first group) based on the above may be as follows. Multiple DM modes as described in (A): If the DM of the luma CU corresponding to the position in the current chroma CU already exists in the non-CCLM list, then if DIMD2 of the luma CU at the same position is available (the luma CU is using DIMD or TIMD, and ampl(M2) of the luma CU is greater than 0), the chroma mode of the same position is set to DIMD2. When DIMD1 or TIMD1 already exists in the non-CCLM list, the same replacement method may be applied to multiple DMs using DIMD1 or TIMD1 in (B) to (D) to replace DIMD1 or TIMD1 with DIMD2.
[0135] As described in (A) for multiple DM modes: If the DM of the luma CU corresponding to the position in the current chroma CU already exists in the non-CCLM list, then if TIMD2 of the luma CU at the same position is available (the luma CU is using TIMD and costTIMD2<2*costTIMD2 is satisfied), the chroma mode of the same position is set to TIMD2. When DIMD1 or TIMD1 already exists in the non-CCLM list, the same replacement method can be applied to multiple DMs using DIMD1 or TIMD1 in (B) to (D) to replace DIMD1 or TIMD1 with TIMD2.
[0136] The following describes chroma modes derived from intra prediction modes of neighboring chroma and luma CUs. For example, the second group may be intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks. The third group may be intra prediction modes based on intra prediction modes of one or more luma blocks adjacent to at least one of two or more co-located luma blocks. Fig.11A and Fig. 11B Examples of the second and third groups are illustrated.
[0137] Six chroma mode groups (e.g., subgroups of the second and third groups) derived from adjacent chroma and luma CUs are introduced as follows. Fig.11A and Fig. 11B . Fig.11A and Fig. 11B The chroma mode derived from the neighboring chroma and luma CUs is illustrated. For example, Fig.11A A luma CU 1100A is illustrated with adjacent luma CUs 1104A to 1104E, and Fig. 11B Chroma CU 1100B is illustrated with neighboring chroma CUs 1102A through 1102E.
[0138] (F) – Neighboring Chroma Mode: The chroma mode is set to the intra prediction mode of the neighboring chroma block adjacent to the current chroma CU. Fig. 11B As shown, block 0 1102A, block 1 1102B, ... and block 4 1102E are neighboring chroma blocks of chroma CU 1100B. If the intra prediction mode of the neighboring chroma block is CCLM mode, the video encoder 200 and the video decoder 300 bypass the neighboring chroma block. In some examples, if the intra prediction mode of the neighboring chroma block is CCLM mode, the chroma mode is set to planar mode.
[0139] (G) – Neighboring DM mode: The chroma mode is derived from the intra prediction mode of the luma block corresponding to a different position in the neighboring chroma blocks. Fig.11AAs shown, block 5 1104A, block 6 1104B, ..., and block 9 1104E are adjacent luma blocks corresponding to block 0 1102A, block 1 1102B, ..., and block 4 1102E in the adjacent chroma blocks. The intra prediction mode of the luma block may be matrix-based intra prediction (MIP), template matching intra prediction (TMP), DIMD, TIMD, planar mode, DC mode, or other angle modes. If the luma intra prediction mode is MIP or TMP, the chroma mode is set to planar mode. Otherwise, the chroma mode is set to luma intra prediction mode.
[0140] (H) – Adjacent DM Mode Using DIMD1: The chrominance mode is set to DIMD1 for adjacent luma blocks that are using DIMD or TIMD mode. The positions of the luma blocks (i.e., block 5 1104A, block 6 1104B, ..., and block 9 1104E) correspond to the positions of the adjacent chroma blocks (i.e., block 0 1102A, block 11102B, ..., and block 4 1120E), as shown in Fig.11A and Fig. 11B shown.
[0141] (I) - Adjacent DM mode using DIMD2: The chrominance mode is set to DIMD2 for adjacent luma blocks that are using DIMD or TIMD mode and whose ampl(M2) is greater than 0. The positions of the luma blocks (i.e., block 5 1104A, block 6 1104B, ..., and block 9 1104E) correspond to the positions of the adjacent chroma blocks (i.e., block 0 1102A, block 1 1102B, ..., and block 4 1102E), as shown in Fig.11A and Fig. 11B shown.
[0142] (J) - Neighboring DM mode using TIMD1: The chrominance mode is set to TIMD1 of the neighboring luma blocks that are using TIMD mode. The positions of the luma blocks (i.e., block 5 1104A, block 6 1104B, ..., and block 9 1104E) correspond to the positions of the neighboring chroma blocks (i.e., block 0 1102A, block 1 1102B, ..., and block 4 1120E), as shown in Fig.11A and Fig. 11B shown.
[0143] (K) - Neighboring DM mode using TIMD2: The chrominance mode is set to TIMD2 of the neighboring luma block that is using TIMD mode and whose costTIMD2<2*costTIMD2 is satisfied. The positions of the luma blocks (i.e., block 5 1104A, block 6 1104B, ..., and block 9 1104E) correspond to the positions of the neighboring chroma blocks (i.e., block 0 1102A, block 1 1102B, ..., and block 4 1102E), as shown in Fig.11A and Fig. 11B shown.
[0144] The order of the positions of adjacent chroma patterns in (F) is block 0 1102A to block 4 1102E, as shown in FIG. Fig. 11B The order of the positions of adjacent DM patterns in (G), (H), ... and (K) is block 5 1104A to block 9 1104E, as shown. Fig.11A shown.
[0145] Some variations of the chromaticity mode group based on (F) to (K) are provided below.
[0146] Neighboring chroma mode as described in (F): If the intra prediction mode of the neighboring chroma block already exists in a non-CCLM list (e.g., a chroma intra prediction mode list), the chroma mode is set to the neighboring DM mode of the luma block corresponding to the same chroma neighboring block as described in (G). In one example, if the intra prediction mode of the neighboring chroma block already exists in a non-CCLM list, the chroma mode is set to the neighboring DM mode using DIMD1, DIMD2, TIMD1, or TIMD2 of the luma block corresponding to the same chroma neighboring block as described in (H), (I), (J), or (K).
[0147] Adjacent DM mode as described in (G): If the intra prediction mode of the adjacent luminance block already exists in the non-CCLM list, the chrominance mode is set to the adjacent DM mode using DIMD2 or TIMD2 of the same luminance block as described in (I) or (K). When DIMD1 or TIMD1 already exists in the non-CCLM list, the same replacement method can be applied to multiple DMs using DIMD1 or TIMD1 in (H) and (J) to replace DIMD1 or TIMD1 with DIMD2 or TIMD2.
[0148] The above neighboring mode groups may be enabled in each slice. In some examples, some of the neighboring mode groups are enabled only in the I slice.
[0149] The secondary chroma modes derived from the current chroma mode in the non-CCLM list are described below. For example, as described above, the fourth group may include one or more intra-frame prediction modes derived from one or more of the first group, the second group, or the third group. For example, deriving the fourth group may include adding or subtracting an offset from one or more intra-frame prediction modes in the first group, the second group, and / or the third group.
[0150] The first S chroma modes in the non-CCLM mode list are used to derive more chroma modes of the chroma mode group by offsetting the S chroma modes. The first S chroma modes in the non-CCLM mode list (e.g., the intra-prediction mode list) may be the first group, the first group and the second group, or the first group, the second group and the third group of intra-prediction modes from the chroma intra-prediction mode list.
[0151] For S chroma modes, the maximum number of offsets may be different. An example is as follows: Assume that the first three chroma modes (e.g., intra-prediction modes) in a non-CCLM list (e.g., an intra-prediction mode list) (i.e., S=3) are used to derive more chroma modes to form a chroma mode group (e.g., the fourth group). For the first chroma mode (C1), the second chroma mode (C2), and the third chroma mode (C3), the maximum number of offsets is set to 3, 2, and 1, respectively. Then if the resulting offset mode does not exist in the intra-prediction mode list, a mode offset from C1, C2, or C3 (e.g., C1±1, C1±2, C1±3, C2±1, C2±2, and C3±1) is added to the list. In some examples, Ci may be an angle mode that implements the offset. In some examples, the first mode in the non-CCLM mode is a DM mode, and if DM is an angle mode, C1 is a DM mode.
[0152] The following describes the DIMD patterns derived from co-located luma CUs in co-located luma blocks. Fig. 12A The luma CU lDIMD_i 1202 and luma CU DIMD_j 1206 are shown to form a chroma mode group. Based on the above decoder side intra mode derivation (DIMD) and relative to Figure 7 The same calculations described above are used to derive the DIMD mode in lDIMD_i 1202 using templates ATemplate_i 1204A and LTemplate_i 1204B. The same calculations used for DIMD mode derivation are applied to luma CU lDIMD_j 1206 using templates ATemplate_j 1208A and LTemplate_j 1208B.
[0153] The combination of chroma mode groups and the constraint on the maximum number of chroma modes are described below. An example of combining the above chroma mode groups with the above constraint on the pre-assigned maximum number of chroma modes is shown below.
[0154] As Example 1: Assume that the size of a non-CCLM list (e.g., a list of chroma intra prediction lists) is 9, i.e., M=9. Assume that there are 3 groups, i.e., N1=3, group 1 is a plurality of DM modes in (A), group 2 is a plurality of DM modes using DIMD1 in (B), and group 3 is adjacent chroma modes in (F). A constraint is applied to each group that the sum of the number of chroma modes in group 1 to the i-th group does not exceed the pre-assigned maximum number of chroma modes in group 1 to the i-th group. Examples of setting the maximum number of groups 1 to i are 5, 3, and 1 for i=1, 2, and 3, respectively, i.e., m1=5, m1=3, m1=1.
[0155] A chroma mode group may be formed using at least two of the above-mentioned mode groups. An example is that a chroma mode group is formed by adjacent chroma modes (F) and secondary chroma modes in the secondary chroma mode derived from the current chroma mode in the non-CCLM list, as follows: (L) - Mixed chroma mode group: First, adjacent chroma modes of different adjacent blocks are added to the non-CCLM list, as indicated in (F). If the group size is not full (not exceeding the maximum number of chroma modes for the group), the secondary chroma mode indicated in the secondary chroma mode derived from the current chroma mode in the non-CCLM list is added to the non-CCLM list.
[0156] As Example 2: Assume that the size of the non-CCLM list (e.g., a list of chroma intra prediction lists) is 9, i.e., M=9. Assume that there are 3 groups, i.e., N1=3, group 1 is multiple DM modes in (A), group 2 is multiple DM modes using DIMD1 in (B), and group 3 is a mixed chroma mode in (L). A constraint on the maximum number of chroma modes in each group is applied to each group. Examples of setting the maximum number are 5, 3, and 1 for i=1, 2, and 3, respectively, i.e., n1=5, n2=3, n3=1. Therefore, at most 5 chroma modes from group 1, at most 3 chroma modes from group 2, and at most 1 chroma mode from group 3 are added to the non-CCLM list.
[0157] The chroma mode group may have different constraints from the above examples. The following Example 3 describes a chroma mode group having different constraints from the above examples.
[0158] As Example 3: Assume that the non-CCLM list size (e.g., the list of chroma intra prediction lists) is 9, i.e., M=9. Assume that there are 3 groups, i.e., N1=3, group 1 is multiple DM modes in (A), group 2 is multiple DM modes using DIMD1 in (B), and group 3 is a mixed chroma mode in (L). A constraint on the maximum number of chroma modes of the i-th group is applied to group 1 and group 2. Assume that the maximum number of chroma modes of group 1 and group 2 is 4 and 3, i.e., n1=4 and n1=3. In contrast, a constraint on the sum of the number of chroma modes in groups 1 to 3 is applied to group 3. Assume that the sum of the number of chroma modes in groups 1 to 3 does not exceed 8, i.e., m3=8. Therefore, at most 4 chroma modes from group 1 and at most 3 chroma modes from group 2 are added to the non-CCLM list. However, when only 1 chroma mode from group 1 is added to the non-CCLM list, up to 7 chroma modes from group 3 may be added to the list, and all derived chroma modes in group 2 have the same chroma mode as the only mode present in the list. That is, there is only 1 mode in the non-CCLM list, so in this case, up to 7 modes from group 3 are allowed to be added to the list.
[0159] Figure 2 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 2 The present disclosure is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video encoder 200 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video encoding devices configured for other video coding standards and video coding formats, such as AV1 and subsequent formats of the AV1 video coding format.
[0160] exist Figure 2In 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 or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 can be implemented in one or more processors or in a processing circuit. For example, the units of the video encoder 200 can be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.
[0161] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for use when subsequent video data is predicted by video encoder 200. Video data memory 230 and DPB 218 can be formed by any memory device in 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, video data memory 230 can be on-chip with other components of video encoder 200 (as shown), or off-chip relative to those components.
[0162] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to a memory inside the video encoder 200 (unless otherwise specified) or a memory outside the video encoder 200 (unless otherwise specified). 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 for outputs from the various units of the video encoder 200 .
[0163] Illustrated Figure 2 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functionality and are pre-set for executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in the operations that can be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of the units in the unit may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units in the unit may be integrated circuits.
[0164] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example in which the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store instructions (eg, object code) for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0165] 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.
[0166] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. As an 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.
[0167] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for a CU, the transform type for the residual data of a CU, the quantization parameter for the residual data of a CU, etc. The mode selection unit 202 may ultimately select a coding parameter combination that has a better rate-distortion value than other tested combinations.
[0168] 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 an MTT structure, a QTBT structure, a super block structure, or the above-mentioned quadtree structure. As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0169] 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 the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). In order to inter-predict the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar the potential reference block will be to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample differences between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations to indicate the reference block that best matches the current block.
[0170] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the 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 vector has fractional sample precision, the motion compensation unit 224 may interpolate the values of 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 the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.
[0171] When operating according to the AV1 video coding format, the motion estimation unit 222 and the motion compensation unit 224 may be configured to encode coding blocks of the video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, overlapped block motion compensation (OBMC), and / or composite inter-intra prediction.
[0172] As another example, for intra prediction or intra prediction coding, the intra prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values of the adjacent samples and pad these calculated values across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 may calculate an average of the adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.
[0173] According to one or more examples described in the present disclosure, the intra prediction unit 226 may be configured to construct a chroma intra prediction mode list. The intra prediction modes in the chroma intra prediction mode list may include intra prediction modes from a co-located luma block, an adjacent (e.g., neighboring) luma block, and an adjacent (e.g., neighboring) chroma block.
[0174] The intra-prediction unit 226 may be viewed as constructing a chroma intra-prediction mode list from one or more groups of intra-prediction modes. In some example techniques, the intra-prediction unit 226 may first determine one or more of these groups and then selectively add intra-prediction modes from the corresponding groups. However, the example techniques should not be viewed as requiring the intra-prediction unit 226 to first determine all groups or to be configured to be divided between the groups. Instead, the intra-prediction unit 226 may be configured to sequentially evaluate the intra-prediction modes of co-located luma blocks, adjacent (e.g., neighboring) luma blocks, and / or adjacent (e.g., neighboring) chroma blocks, and add the intra-prediction modes to the chroma intra-prediction mode list until the chroma intra-prediction mode list is full or based on some other constraint (e.g., based on the number of intra-prediction modes in a group).
[0175] As described above, the term "group" is used to distinguish blocks whose intra prediction modes are evaluated to construct the chroma intra prediction mode list. Although it is possible to determine an intra prediction mode for each group, the term "group" should not be interpreted as requiring but possible to divide the different intra prediction modes evaluated into groups.
[0176] As an example, intra-prediction unit 226 may construct a chroma intra-prediction mode list for a chroma block of a current block of video data, where the constructing includes adding an intra-prediction mode of a first group to the chroma intra-prediction mode list. In some examples, the first group includes two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma blocks. For example, intra-prediction unit 226 may use Fig. 10A and Fig. 10B to determine the first group.
[0177] In some examples, intra prediction unit 226 may construct a chroma inter prediction mode list for the chroma block, where the constructing includes adding the intra prediction modes of the first group to the chroma intra prediction mode list, and adding one or more intra prediction modes of the second group to the chroma intra prediction mode list. The second group may include intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks (e.g., such as Fig.11A and Fig. 11B exemplified in ).
[0178] In some examples, the intra-prediction unit 226 may construct a chroma inter-prediction mode list for the chroma block, where the constructing includes adding the intra-prediction modes of the first group to the chroma intra-prediction mode list, and adding one or more intra-prediction modes of the second group to the chroma intra-prediction mode list. In this example, the second group includes intra-prediction modes based on intra-prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks (e.g., Fig.11A and Fig. 11B exemplified in ).
[0179] As another example, the intra-prediction unit 226 may construct a chroma inter-prediction mode list for the chroma block, where the constructing includes adding an intra-prediction mode of a first group to the chroma intra-prediction mode list, adding one or more intra-prediction modes of a second group to the chroma intra-prediction mode list, and adding one or more intra-prediction modes of a third group to the chroma intra-prediction mode list. In this example, the second group includes intra-prediction modes based on intra-prediction modes of one or more neighboring chroma blocks, and the third group includes intra-prediction modes based on intra-prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks (e.g., as shown in FIG. 1 ). Fig.11A and Fig. 11B exemplified in ).
[0180] The intra-prediction unit 226 may be configured to derive one or more intra-prediction modes from one or more intra-prediction modes in the first, second, and / or third groups. In some examples, to construct a chroma intra-prediction mode list, the intra-prediction unit 226 may add the derived one or more intra-prediction modes to the chroma intra-prediction mode list (e.g., in addition to the first, second, and / or third groups). To derive the one or more intra-prediction modes, the intra-prediction unit 226 may add or subtract an offset to one or more intra-prediction modes in the first, second, and / or third groups.
[0181] In some examples, intra-prediction unit 226 may determine that the maximum number of entries in the chroma intra-prediction mode list minus the number of entries in the chroma intra-prediction mode list is equal to the number of entries in the last group (e.g., the fourth group). Intra-prediction unit 226 may stop adding intra-prediction modes from other groups (e.g., the first group, the second group, and / or the third group) based on this determination, and add intra-prediction modes from the last group (e.g., the fourth group), even if intra-prediction modes still exist in other groups.
[0182] When operating according to the AV1 video coding format, the intra prediction unit 226 may be configured to encode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filter intra prediction, luma-chroma (CFL) prediction, intra block copy (IBC), and / or palette mode. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes.
[0183] The mode selection unit 202 may determine the intra prediction mode of the chroma block from the chroma intra prediction mode list. For example, the mode selection unit 202 may select the intra prediction mode that provides the minimum rate distortion. In some examples, the mode selection unit 202 may cause the entropy encoding unit 220 to signal an index to the chroma intra prediction mode list so that the video decoder 300 may determine the intra prediction mode from the intra prediction mode list constructed by the video decoder 300. That is, the video decoder 300 may perform the same operation as the video encoder 200 to construct the chroma intra prediction mode list, so that the chroma intra prediction mode lists at the video encoder 200 and the video decoder 300 are the same.
[0184] The mode selection unit 202 may encode the chroma block based on the intra prediction mode. For example, the mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the uncoded original version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates 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.
[0185] In an 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 noted above, the size of a CU may refer to the size of a luma coding block of the CU, and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N, or similar for inter-prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-prediction.
[0186] In an example where mode selection unit 202 does not further divide a 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 luma coding block of the CU. Video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0187] For other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the coding technique. 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 modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0188] 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.
[0189] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 may perform a variety of 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.
[0190] When operating according to AV1, the transform processing unit 206 may apply one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a horizontal / vertical transform combination, which may include a discrete cosine transform (DCT), an asymmetric discrete sine transform (ADST), a flipped ADST (e.g., ADST in reverse order), and an identity transform (IDTX). When the identity transform is used, the transform is skipped in one of the vertical direction or the horizontal direction. In some examples, the transform process may be skipped.
[0191] 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 cause a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.
[0192] 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 from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0193] Filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0194] When operating according to AV1, filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In other examples, filter unit 216 may apply a constrained directional enhancement filter (CDEF), which may be applied after deblocking and may include the application of a non-separable, non-linear, low-pass directional filter based on the estimated edge direction. Filter unit 216 may also include a loop recovery filter applied after CDEF, and may include a separable symmetric normalized Wiener filter or a dual self-guided filter.
[0195] The video encoder 200 stores the reconstructed block in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 may store the reconstructed block in the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 may store the filtered reconstructed block in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed by the reconstructed (and potentially filtered) block from the DPB 218 to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 may use the reconstructed block of the current picture in the DPB 218 to perform intra-frame prediction on other blocks in the current picture.
[0196] 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 a quantized transform coefficient block from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode a prediction syntax element (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 on the syntax element (the syntax element is another example of video data) 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 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 element is not entropy encoded.
[0197] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0198] According to AV1, the entropy coding unit 220 may be configured as a symbol-to-symbol adaptive multi-symbol arithmetic decoder. The syntax elements in AV1 include an alphabet of N elements, and the context (e.g., a probability model) includes a set of N probabilities. The entropy coding unit 220 may store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). The entropy coding unit 220 may perform recursive scaling using an update factor based on the size of the alphabet to update the context.
[0199] 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.
[0200] In some examples, operations performed for luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to repeat the MVs and reference pictures used to identify chroma blocks. Instead, the MVs for luma coding blocks may be scaled to determine the MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0201] Figure 3 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 3 It is provided for the purpose of explanation and is not a limitation of the techniques extensively illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.
[0202] exist Figure 3 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 can be implemented in one or more processors or in processing circuits. For example, the units of the video decoder 300 can be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.
[0203] 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 predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0204] When operating according to AV1, the motion compensation unit 316 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, OBMC, and / or composite inter-intra prediction, as described above. The intra prediction unit 318 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filter intra prediction, CFL, intra block copy (IBC), and / or palette mode, as described above.
[0205] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be obtained from computer readable medium 110 ( Figure 1 ) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, which video decoder 300 may output, and / or use as reference video data when decoding subsequent data or pictures of the coded video bitstream. CPB memory 320 and 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. CPB memory 320 and DPB 314 may be provided by the same memory device or a separate memory device. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.
[0206] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1) to retrieve the decoded video data. That is, memory 120 may utilize CPB memory 320 to store data as discussed above. Likewise, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.
[0207] Illustrated Figure 3 The various units shown in FIG. 1 and FIG. 2 are used to help understand the operations performed by the video decoder 300. The units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 2 , fixed-function circuits refer to circuits that provide specific functionality and are pre-set for executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality 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 (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0208] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0209] 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.
[0210] Generally speaking, the video decoder 300 reconstructs a picture block by block. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0211] 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, determine a degree of inverse quantization to be applied by 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.
[0212] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.
[0213] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax elements 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 ... Figure 2 )The inter-frame prediction process is performed in a manner substantially similar to that described in the accompanying drawings.
[0214] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Similarly, the intra-prediction unit 318 may generally generate a prediction block according to the same method as that used with respect to the intra-prediction unit 226 ( Figure 2 The intra prediction process is performed in a manner substantially similar to that described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.
[0215] The intra-prediction unit 318 may be viewed as constructing a chroma intra-prediction mode list from one or more groups of intra-prediction modes. In some example techniques, the intra-prediction unit 318 may first determine one or more of these groups and then selectively add intra-prediction modes from the corresponding groups. However, the example techniques should not be viewed as requiring the intra-prediction unit 318 to first determine all groups or to be configured to be divided between the groups. Instead, the intra-prediction unit 318 may be configured to sequentially evaluate the intra-prediction modes of co-located luma blocks, adjacent (e.g., neighboring) luma blocks, and / or adjacent (e.g., neighboring) chroma blocks, and add the intra-prediction modes to the chroma intra-prediction mode list until the chroma intra-prediction mode list is full or based on some other constraint (e.g., based on the number of intra-prediction modes in a group).
[0216] As described above, the term "group" is used to distinguish blocks whose intra prediction modes are evaluated to construct the chroma intra prediction mode list. Although it is possible to determine an intra prediction mode for each group, the term "group" should not be interpreted as requiring but possible to divide the different intra prediction modes evaluated into groups.
[0217] As an example, the intra-prediction unit 318 may construct a chroma intra-prediction mode list for a chroma block of a current block of video data, where the constructing includes adding an intra-prediction mode of the first group to the chroma intra-prediction mode list. In some examples, the first group includes two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma blocks. For example, the intra-prediction unit 318 may use Fig. 10A and Fig. 10B to determine the first group.
[0218] In some examples, the intra prediction unit 318 may construct a chroma inter prediction mode list for the chroma block, where the constructing includes adding the intra prediction modes of the first group to the chroma intra prediction mode list, and adding one or more intra prediction modes of the second group to the chroma intra prediction mode list. The second group may include intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks (e.g., such as Fig.11A and Fig. 11B exemplified in ).
[0219] In some examples, the intra-prediction unit 318 may construct a chroma inter-prediction mode list for the chroma block, where the constructing includes adding the intra-prediction modes of the first group to the chroma intra-prediction mode list, and adding one or more intra-prediction modes of the second group to the chroma intra-prediction mode list. In this example, the second group includes intra-prediction modes based on intra-prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks (e.g., Fig.11A and Fig. 11B exemplified in ).
[0220] As another example, the intra-prediction unit 318 may construct a chroma inter-prediction mode list for the chroma block, where the constructing includes adding an intra-prediction mode of a first group to the chroma intra-prediction mode list, adding one or more intra-prediction modes of a second group to the chroma intra-prediction mode list, and adding one or more intra-prediction modes of a third group to the chroma intra-prediction mode list. In this example, the second group includes intra-prediction modes based on intra-prediction modes of one or more neighboring chroma blocks, and the third group includes intra-prediction modes based on intra-prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks (e.g., as shown in FIG. 1 ). Fig.11A and Fig. 11B exemplified in ).
[0221] The intra-prediction unit 318 may be configured to derive one or more intra-prediction modes from one or more intra-prediction modes in the first, second, and / or third groups. In some examples, to construct a chroma intra-prediction mode list, the intra-prediction unit 318 may add the derived one or more intra-prediction modes to the chroma intra-prediction mode list (e.g., in addition to the first, second, and / or third groups). To derive the one or more intra-prediction modes, the intra-prediction unit 318 may add or subtract an offset to one or more intra-prediction modes in the first, second, and / or third groups.
[0222] In some examples, the intra-prediction unit 318 may determine that the maximum number of entries in the chroma intra-prediction mode list minus the number of entries in the chroma intra-prediction mode list is equal to the number of entries in the last group (e.g., the fourth group). The intra-prediction unit 318 may stop adding intra-prediction modes from other groups (e.g., the first group, the second group, and / or the third group) based on this determination, and add intra-prediction modes from the last group (e.g., the fourth group), even if there are still intra-prediction modes in other groups.
[0223] Prediction processing unit 304 may determine the intra prediction mode for the chroma block from the chroma intra prediction mode list. For example, the chroma intra prediction mode lists constructed by video encoder 200 and video decoder 300 may be the same (e.g., because both use the same process to construct the chroma intra prediction mode lists). Video encoder 200 may signal an index to the chroma intra prediction mode list, and prediction processing unit 304 may select the intra prediction mode based on the index.
[0224] 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.
[0225] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.
[0226] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As discussed above, the DPB 314 may provide reference information (such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output a decoded picture (e.g., a decoded video) from the DPB 314 for use in, for example, Figure 1 Subsequent presentation on a display device such as display device 118.
[0227] Figure 4 2 is a flowchart illustrating an example method for encoding a current block according to the technology of the present disclosure. The current block may include a current CU. Although relative to the video encoder 200 ( Figure 1 and Figure 2 ), but it should be understood that other devices may be configured to perform the same Figure 4 A similar approach to the one used in this paper.
[0228] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may use the example techniques described in the present disclosure to form a prediction block for the current block. As an example, the video encoder 200 may use the example techniques described in the present disclosure to construct a chroma intra-prediction mode list. The video encoder 200 may determine (e.g., select) an intra-prediction mode from the chroma intra-prediction mode list. That is, the intra-prediction mode selected by the video encoder 200 is one of the intra-prediction modes in the chroma intra-prediction mode list. The video encoder 200 may form a prediction block based on the intra-prediction mode.
[0229] 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 unencoded original 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 after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may encode the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy encoded data for the block (360).
[0230] Figure 5 1 is a flowchart illustrating an example method for decoding a current block of video data according to the techniques of the present disclosure. The current block may include a current CU. Although relative to the video decoder 300 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform the same Figure 5 A similar approach to the one used in this paper.
[0231] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data for transform coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce transform coefficients of the residual block (372).
[0232] 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 of the current block, to calculate a prediction block for the current block. For example, the video decoder 300 may use the example techniques described in the present disclosure to form a prediction block for the current block. As an example, the video decoder 300 may construct a chroma intra prediction mode list (e.g., such that the chroma intra prediction mode list is the same as the chroma intra prediction mode list of the video encoder 200) using the example techniques described in the present disclosure. The video decoder 300 may determine (e.g., select) an intra prediction mode from the chroma intra prediction mode list. For example, the video decoder 300 may receive an index to the chroma intra prediction mode list, and the video decoder 300 determines the intra prediction mode according to the index. The video decoder 300 may form a prediction block based on the intra prediction mode.
[0233] 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 the transform coefficients and apply an inverse transform to the transform coefficients to generate a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction block and the residual block (380).
[0234] Fig.13 is a flowchart illustrating an example of encoding or decoding video data. For ease of description, the processing circuit of the video decoder is described Fig.13 Examples of video decoders include video encoder 200 and video decoder 300. In some examples, intra prediction unit 226 ( Figure 2 ) and intra prediction unit 318 ( Figure 3 ) can be configured to perform the example techniques.
[0235] exist Fig.13 In the example techniques, the processing circuit of the video decoder may be viewed as constructing a chroma intra-prediction mode list from one or more groups of intra-prediction modes. In some example techniques, the processing circuit may first determine one or more of these groups and then selectively add intra-prediction modes from the corresponding groups. However, the example techniques should not be viewed as requiring the processing circuit to first determine all groups or to be configured to be divided between the groups. Instead, the processing circuit may be configured to evaluate the intra-prediction modes of co-located luminance blocks, adjacent (e.g., adjacent) luminance blocks, and / or adjacent (e.g., adjacent) chrominance blocks in order, and add the intra-prediction modes to the chroma intra-prediction mode list until the chroma intra-prediction mode list is full or based on some other constraint (e.g., based on the number of intra-prediction modes in a group).
[0236] Processing circuitry of a video coder may construct a chroma intra-prediction mode list for a chroma block of a current block of video data, wherein the constructing includes adding an intra-prediction mode of a first group to the chroma intra-prediction mode list 1300. In this example, the first group includes two or more intra-prediction modes derived from intra-prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block.
[0237] As an example, see Fig. 10A and Fig. 10B , there may be multiple intra-prediction modes associated with positions 1002A through 1002I in two or more co-located luma blocks co-located with chroma block 1000B. In one or more examples, processing circuitry may evaluate intra-prediction modes for these co-located luma blocks, including at positions that are not located at the center (e.g., as Fig. 9B in addition to or in place of the center position in brightness block 902A).
[0238] The processing circuitry may add two or more of these intra prediction modes to the chroma intra prediction mode list until the intra prediction mode list is full or all intra prediction modes for a particular set of co-located luma blocks (e.g., positions) have been evaluated. Fig. 10B In the example embodiment, there are multiple locations that are evaluated, and two or more of these locations may be in different co-located luma blocks. Thus, the first group may include two or more intra prediction modes derived from intra prediction modes evaluated at two or more locations in a co-located luma block of the current block that is co-located with a chroma block.
[0239] In some examples, adding the intra prediction mode from the first group may be subject to additional constraints. For example, the processing circuitry of the video coder may add the intra prediction mode from the first group to the chroma intra prediction mode list based on the maximum number of entries for the first group. As described above, there may be more than one group, and there may be a maximum entry limit for two or more groups (including each group).
[0240] In one or more examples, the list of chroma intra prediction modes excludes a cross component linear model (CCLM) mode. In some examples, the first group may include a subgroup, and the subgroup includes a direct mode (DM) mode of two or more co-located luma blocks using one or more of decoder-side intra mode derivation (DIMD) and template-based intra mode derivation (TIMD).
[0241] In some examples, the processing circuitry of the video coder may derive one or more intra-prediction modes from one or more intra-prediction modes in the first group. The processing circuitry may construct a chroma intra-prediction mode list (e.g., adding the intra-prediction modes of the first group and the derived one or more intra-prediction modes to the chroma intra-prediction mode list). Although described with respect to the first group, the processing circuitry may also derive one or more intra-prediction modes from other groups (such as the second and third groups described above). Deriving one or more intra-prediction modes may include adding or subtracting an offset to one or more intra-prediction modes in the first group and / or other groups.
[0242] In some examples, the processing circuitry of the video decoder may determine that the maximum number of entries in the chroma intra prediction mode list minus the number of entries in the chroma intra prediction mode list is equal to the number of entries in the last group in the additional group. For example, there may be multiple groups whose intra prediction modes are added to the chroma intra prediction mode list. For example, based on this determination, the processing circuitry may stop adding intra prediction modes from other groups and add intra prediction modes from the last group. In this way, the processing circuitry can ensure that all intra prediction modes from the last group are added.
[0243] The processing circuitry of the video decoder may determine an intra prediction mode for a chroma block from a chroma intra prediction mode list (1302). For example, from the perspective of the video encoder 200, the video encoder 200 may evaluate rate distortion values of the intra prediction modes and determine an intra prediction mode in the chroma intra prediction mode list having the smallest rate distortion to determine the intra prediction mode. From the perspective of the video decoder 300, the video decoder 300 may receive an index to the chroma intra prediction mode list constructed by the video decoder 300. Based on the index, the video decoder 300 may determine the intra prediction mode.
[0244] The processing circuitry of the video decoder may encode or decode the chroma block based on the intra prediction mode (1304). As an example, the video decoder 300 may determine a predicted chroma block based on the intra prediction mode, receive residual information indicating a difference between the predicted chroma block and the chroma block, and reconstruct the chroma block based on the residual information and the predicted chroma block. As another example, the video encoder 200 may determine a predicted chroma block based on the intra prediction mode, generate residual information indicating a difference between the predicted chroma block and the chroma block, and signal the residual information.
[0245] Fig.14 is another flow chart illustrating an example of constructing a chroma intra prediction mode list according to one or more examples described in this disclosure. Fig.14 The example of the video decoder (eg, the video encoder 200 or the video decoder 300) illustrates an example in which a processing circuit of the video decoder constructs a chroma intra prediction mode list. For convenience, the processing circuit constructs a chroma intra prediction mode list from different groups to describe Fig.14 .
[0246] However, Fig.14 The examples should not be considered limiting. The processing circuit constructs a chroma inter prediction mode list based on co-located luma blocks, adjacent luma blocks, and / or adjacent chroma blocks. The groups identified as first, second, third, and fourth are provided as an example only. These groups should not be considered required in all examples, or that some ordering is required. Instead, these groups are used to illustrate where intra prediction modes are evaluated to add to the chroma intra prediction mode list.
[0247] The processing circuit may add the first group to the intra prediction mode list (1400). In this example, the first group includes two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block (e.g., based on position-defined co-located luma components, such as Fig. 10B those exemplified in ).
[0248] The processing circuit may add a second group to the intra prediction mode list (1402). In this example, the second group includes intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks (e.g., Fig.11A and Fig. 11B exemplified in ).
[0249] The processing circuitry may add one or more intra prediction modes of the third group to the chroma intra prediction mode list 1404. In this example, the third group includes intra prediction modes based on intra prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks.
[0250] In one or more examples, the processing circuitry may also add the derived intra-prediction modes. For example, the processing circuitry may add a fourth group of one or more intra-prediction modes (1406). The fourth group includes intra-prediction modes derived from one or more of the first group, the second group, or the third group. For example, the fourth group includes intra-prediction modes derived by adding or subtracting an offset from one or more intra-prediction modes in the first group, the second group, and / or the third group.
[0251] The following example techniques can be performed together or separately.
[0252] Item 1. A method for decoding video data, the method comprising: constructing a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the chroma intra-frame prediction mode list includes intra-frame prediction modes from one or more groups, and constructing the chroma intra-frame prediction mode list includes constructing one or more of the following: a first group, the first group including intra-frame prediction modes derived from the intra-frame prediction mode of a co-located luminance block of the current block; a second group, the second group including intra-frame prediction modes derived from the intra-frame prediction modes of adjacent chroma blocks; a third group, the third group including intra-frame prediction modes derived from the intra-frame prediction modes of luminance blocks adjacent to the co-located luminance block; and a fourth group, the fourth group including one or more of a direct mode (DM), a planar mode, a horizontal mode, a vertical mode, a DC mode, and a diagonal mode; determining the intra-frame prediction mode of the chroma block based on the intra-frame prediction mode in the chroma intra-frame prediction mode list; and decoding the chroma block based on the determined intra-frame prediction mode.
[0253] Clause 2. The method of clause 1, wherein the chroma intra prediction mode list excludes a cross-component linear model (CCLM) mode.
[0254] Clause 3. A method according to any one of clauses 1 and 2, wherein constructing one or more of the first group, the second group, the third group and the fourth group includes constructing one or more of the first group, the second group, the third group and the fourth group based on the corresponding maximum number of entries of each of the first group, the second group, the third group and the fourth group.
[0255] Clause 4. A method according to any one of clauses 1 to 3, wherein constructing one or more of the first group, the second group, the third group and the fourth group includes constructing one or more subgroups of each of one or more of the first group, the second group, the third group and the fourth group, wherein constructing one or more of the subgroups includes constructing one or more of the following: a subgroup, the subgroup including a direct mode (DM) mode of a corresponding luminance block using one or more of a decoder-side intra-frame mode derivation (DIMD) and a template-based intra-frame mode derivation (TIMD).
[0256] Clause 5. A method according to any one of clauses 1 to 4, wherein decoding the chroma block based on the determined intra-frame prediction mode includes: determining a predicted chroma block based on the determined intra-frame prediction mode; receiving residual information indicating the difference between the predicted chroma block and the chroma block; and reconstructing the chroma block based on the residual information and the predicted chroma block.
[0257] Clause 6. A method according to any one of clauses 1 to 4, wherein decoding the chroma block based on the determined intra-frame prediction mode includes: determining a predicted chroma block based on the determined intra-frame prediction mode; generating residual information indicating the difference between the predicted chroma block and the chroma block; and signaling the residual information.
[0258] Clause 7. A device for decoding video data, the device comprising: a memory configured to store the video data; and a processing circuit configured to perform the method described in any one or any combination of clauses 1 to 6.
[0259] Clause 8. The apparatus of clause 7, further comprising a display configured to display the decoded video data.
[0260] Clause 9. The device of any of clauses 7 and 8, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0261] Clause 10. The apparatus of any of clauses 7 to 9, wherein the apparatus comprises a video decoder.
[0262] Clause 11. The apparatus of any one of clauses 7 to 10, wherein the apparatus comprises a video encoder.
[0263] Clause 12. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to perform the method of any one of clauses 1 to 6.
[0264] Clause 13. An apparatus for decoding video data, the apparatus comprising means for performing the method of any of clauses 1 to 6.
[0265] Item 1A. A method for encoding or decoding video data, the method comprising: constructing a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the constructing comprises adding a first group of intra-frame prediction modes to the chroma intra-frame prediction mode list, the first group comprising two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determining an intra-frame prediction mode for the chroma block from the chroma intra-frame prediction mode list; and encoding or decoding the chroma block based on the intra-frame prediction mode.
[0266] Clause 2A. The method according to Clause 1A further includes deriving one or more intra-frame prediction modes from one or more intra-frame prediction modes in the first group, wherein constructing the chroma intra-frame prediction mode list includes adding the intra-frame prediction mode of the first group and the derived one or more intra-frame prediction modes to the chroma intra-frame prediction mode list.
[0267] Clause 3A. The method of clause 2A, wherein deriving the one or more intra-prediction modes comprises adding or subtracting an offset to the one or more intra-prediction modes in the first set.
[0268] Clause 4A. A method according to any one of clauses 1A to 3A, wherein adding the intra-frame prediction modes of the first group to the chroma intra-frame prediction mode list includes adding the intra-frame prediction modes from the first group to the chroma intra-frame prediction mode list based on a maximum number of entries in the first group.
[0269] Clause 5A. A method according to any one of clauses 1A to 4A, wherein constructing the chroma intra-frame prediction mode list includes: adding the intra-frame prediction mode of the first group to the chroma intra-frame prediction mode list; and adding one or more intra-frame prediction modes of the second group to the chroma intra-frame prediction mode list, the second group including intra-frame prediction modes based on intra-frame prediction modes of one or more adjacent chroma blocks.
[0270] Clause 6A. A method according to any one of clauses 1A to 4A, wherein constructing the chroma intra-frame prediction mode list includes: adding the intra-frame prediction modes of the first group to the chroma intra-frame prediction mode list; and adding one or more intra-frame prediction modes of a second group to the chroma intra-frame prediction mode list, the second group including intra-frame prediction modes based on intra-frame prediction modes of one or more luminance blocks adjacent to at least one of the two or more co-located luminance blocks.
[0271] Clause 7A. A method according to any one of clauses 1A to 4A, wherein constructing the chroma intra-frame prediction mode list includes: adding the intra-frame prediction modes of the first group to the chroma intra-frame prediction mode list; adding one or more intra-frame prediction modes of the second group to the chroma intra-frame prediction mode list, the second group including intra-frame prediction modes based on intra-frame prediction modes of one or more adjacent chroma blocks; and adding one or more intra-frame prediction modes of the third group to the chroma intra-frame prediction mode list, the third group including intra-frame prediction modes based on intra-frame prediction modes of one or more luminance blocks adjacent to at least one of the two or more co-located luminance blocks.
[0272] Clause 8A. The method of any of clauses 1A to 7A, wherein the chroma intra prediction mode list excludes a cross-component linear model (CCLM) mode.
[0273] Clause 9A. A method according to any one of clauses 1A to 8A, wherein the first group includes a subgroup, the subgroup including a direct mode (DM), the direct mode (DM) directly using the intra-frame prediction mode of the two or more co-located luma blocks, or one or more of a decoder-side intra-frame mode derivation (DIMD) and a template-based intra-frame mode derivation (TIMD) derived from adjacent samples of the two or more co-located luma blocks.
[0274] Clause 10A. A method according to any one of clauses 1A to 4A, wherein constructing the chroma intra-frame prediction mode list includes adding one or more intra-frame prediction modes from the first group and one or more intra-frame prediction modes from an additional group, and the method further includes: determining that the maximum number of entries in the chroma intra-frame prediction mode list minus the number of entries in the chroma intra-frame prediction mode list is equal to the number of entries in the last group in the additional group; and based on the determination, stopping adding intra-frame prediction modes from other groups and adding intra-frame prediction modes from the last group.
[0275] Clause 11A. A method according to any one of clauses 1A to 10A, wherein encoding or decoding the chroma block includes decoding the chroma block, wherein decoding the chroma block includes: determining a predicted chroma block based on the intra-frame prediction mode; receiving residual information indicating the difference between the predicted chroma block and the chroma block; and reconstructing the chroma block based on the residual information and the predicted chroma block.
[0276] Clause 12A. A method according to any one of clauses 1A to 10A, wherein encoding or decoding the chroma block includes encoding the chroma block, wherein encoding the chroma block includes: determining a predicted chroma block based on the intra-frame prediction mode; generating residual information indicating the difference between the predicted chroma block and the chroma block; and signaling the residual information.
[0277] Item 13A. A device for encoding or decoding video data, the device comprising: a memory configured to store the video data; and a processing circuit coupled to the memory and configured to: construct a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the constructing comprises adding a first group of intra-frame prediction modes to the chroma intra-frame prediction mode list, the first group comprising two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determine the intra-frame prediction mode of the chroma block from the chroma intra-frame prediction mode list; and encode or decode the chroma block based on the intra-frame prediction mode.
[0278] Item 14A. An apparatus according to Item 13A, wherein the processing circuit is configured to derive one or more intra-frame prediction modes from one or more intra-frame prediction modes in the first group, wherein in order to construct the chroma intra-frame prediction mode list, the processing circuit is configured to add the intra-frame prediction mode of the first group and the derived one or more intra-frame prediction modes to the chroma intra-frame prediction mode list.
[0279] Clause 15A. The apparatus of Clause 14A, wherein to derive the one or more intra-prediction modes, the processing circuit is configured to add or subtract an offset to the one or more intra-prediction modes in the first group.
[0280] Clause 16A. A device according to any one of clauses 13A to 15A, wherein in order to add the intra-frame prediction mode of the first group to the chroma intra-frame prediction mode list, the processing circuit is configured to add the intra-frame prediction mode from the first group to the chroma intra-frame prediction mode list based on a maximum number of entries in the first group.
[0281] Clause 17A. A device according to any one of clauses 13A to 16A, wherein, in order to construct the chroma intra-frame prediction mode list, the processing circuit is configured to: add the intra-frame prediction mode of the first group to the chroma intra-frame prediction mode list; and add one or more intra-frame prediction modes of the second group to the chroma intra-frame prediction mode list, the second group including intra-frame prediction modes based on intra-frame prediction modes of one or more adjacent chroma blocks.
[0282] Clause 18A. The apparatus of any one of clauses 13A to 16A, wherein to construct the chroma intra prediction mode list, the processing circuit is configured to:
[0283] adding the intra-prediction modes of the first group to the chroma intra-prediction mode list; and adding one or more intra-prediction modes of a second group to the chroma intra-prediction mode list, the second group comprising intra-prediction modes based on intra-prediction modes of one or more luminance blocks adjacent to at least one of the two or more co-located luminance blocks.
[0284] Clause 19A. A device according to any one of clauses 13A to 16A, wherein, in order to construct the chroma intra-frame prediction mode list, the processing circuit is configured to: add the intra-frame prediction mode of the first group to the chroma intra-frame prediction mode list; add one or more intra-frame prediction modes of the second group to the chroma intra-frame prediction mode list, the second group including intra-frame prediction modes based on intra-frame prediction modes of one or more adjacent chroma blocks; and add one or more intra-frame prediction modes of the third group to the chroma intra-frame prediction mode list, the third group including intra-frame prediction modes based on intra-frame prediction modes of one or more luminance blocks adjacent to at least one of the two or more co-located luminance blocks.
[0285] Clause 20A. The apparatus of any of clauses 13A to 19A, wherein the chroma intra prediction mode list excludes a cross-component linear model (CCLM) mode.
[0286] Clause 21A. An apparatus according to any one of clauses 13A to 20A, wherein the first group includes a subgroup, the subgroup including a direct mode (DM), the direct mode (DM) directly using the intra-frame prediction mode of the two or more co-located luma blocks, or one or more of a decoder-side intra-frame mode derivation (DIMD) and a template-based intra-frame mode derivation (TIMD) derived from adjacent samples of the two or more co-located luma blocks.
[0287] Clause 22A. A device according to any one of clauses 13A to 15A, wherein in order to construct the chroma intra-frame prediction mode list, the processing circuit is configured to add one or more intra-frame prediction modes from the first group and one or more intra-frame prediction modes from an additional group, wherein the processing circuit is configured to: determine that the maximum number of entries in the chroma intra-frame prediction mode list minus the number of entries in the chroma intra-frame prediction mode list is equal to the number of entries in the last group in the additional group; and based on the determination, stop adding intra-frame prediction modes from other groups and add intra-frame prediction modes from the last group.
[0288] Clause 23A. A device according to any one of clauses 13A to 22A, wherein in order to encode or decode the chroma block, the processing circuit is configured to decode the chroma block, wherein in order to decode the chroma block, the processing circuit is configured to: determine a predicted chroma block based on the intra-frame prediction mode; receive residual information indicating the difference between the predicted chroma block and the chroma block; and reconstruct the chroma block based on the residual information and the predicted chroma block.
[0289] Clause 24A. A device according to any one of clauses 13A to 22A, wherein in order to encode or decode the chroma block, the processing circuit is configured to encode the chroma block, wherein in order to encode the chroma block, the processing circuit is configured to: determine a predicted chroma block based on the intra-frame prediction mode; generate residual information indicating the difference between the predicted chroma block and the chroma block; and signal the residual information.
[0290] Clause 25A. The device of any of clauses 13A to 24A, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0291] Item 26A. A computer-readable storage medium having instructions stored thereon, which when executed cause one or more processors to: construct a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the constructing includes adding a first group of intra-frame prediction modes to the chroma intra-frame prediction mode list, the first group including two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; determine the intra-frame prediction mode of the chroma block from the chroma intra-frame prediction mode list; and encode or decode the chroma block based on the intra-frame prediction mode.
[0292] Clause 27A. The computer-readable storage medium of Clause 26A, further comprising instructions that cause the one or more processors to perform the method of any of Clauses 2A to 12A.
[0293] Item 28A. A device for encoding or decoding video data, the device comprising means for constructing a chroma intra-frame prediction mode list for a chroma block of a current block of the video data, wherein the constructing comprises adding a first group of intra-frame prediction modes to the chroma intra-frame prediction mode list, the first group comprising two or more intra-frame prediction modes derived from intra-frame prediction modes of two or more co-located luminance blocks of the current block that are co-located with the chroma block; means for determining the intra-frame prediction mode of the chroma block from the chroma intra-frame prediction mode list; and means for encoding or decoding the chroma block based on the intra-frame prediction mode.
[0294] Clause 29A. The apparatus of Clause 28A, further comprising means for performing the method of any of Clauses 2A to 12A.
[0295] It should be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all actions or events described are necessary to implement the technique). In addition, in some examples, actions or events may be performed concurrently (e.g., by multithreading, interrupt handling, or multiple processors) rather than sequentially.
[0296] In one or more examples, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality may be stored as one or more instructions or codes on a computer-readable medium or sent via a computer-readable medium and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium (which corresponds to a tangible medium such as a data storage medium) or a communication medium, which includes, for example, any medium that facilitates the transmission of a computer program from one place to another according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a non-transient 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 implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0297] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices 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. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other transient media, but are instead directed to non-transient tangible storage media. As used herein, disks and optical disks include compact discs (CDs), laser optical disks, optical optical disks, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0298] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, these techniques may be fully implemented in one or more circuits or logic elements.
[0299] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or the various units may be provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0300] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for encoding or decoding video data, the method comprising: constructing a chroma intra prediction mode list for a chroma block of a current block of the video data, wherein constructing comprises adding an intra prediction mode of a first group to the chroma intra prediction mode list, the first group comprising two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block; Determine the intra prediction mode of the chroma block from the chroma intra prediction mode list; as well as The chroma block is encoded or decoded based on the intra prediction mode.
2. The method according to claim 1 further includes deriving one or more intra-frame prediction modes from one or more intra-frame prediction modes in the first group, wherein constructing the chroma intra-frame prediction mode list includes adding the intra-frame prediction mode of the first group and the derived one or more intra-frame prediction modes to the chroma intra-frame prediction mode list. 3 . The method of claim 2 , wherein deriving the one or more intra-prediction modes comprises adding or subtracting an offset to the one or more intra-prediction modes in the first group.
4. The method of claim 1, wherein adding the intra prediction modes of the first group to the chroma intra prediction mode list comprises adding intra prediction modes from the first group to the chroma intra prediction mode list based on a maximum number of entries of the first group.
5. The method according to claim 1, wherein constructing the chroma intra prediction mode list comprises: adding the intra prediction mode of the first group to the chroma intra prediction mode list; as well as A second set of one or more intra prediction modes is added to the chroma intra prediction mode list, the second set comprising intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks.
6. The method according to claim 1, wherein constructing the chroma intra prediction mode list comprises: adding the intra prediction mode of the first group to the chroma intra prediction mode list; as well as A second set of one or more intra prediction modes is added to the chroma intra prediction mode list, the second set comprising intra prediction modes based on intra prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks.
7. The method according to claim 1, wherein constructing the chroma intra prediction mode list comprises: adding the intra prediction mode of the first group to the chroma intra prediction mode list; adding one or more intra prediction modes of a second group to the chroma intra prediction mode list, the second group comprising intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks; as well as A third set of one or more intra prediction modes is added to the chroma intra prediction mode list, the third set comprising intra prediction modes based on intra prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks.
8. The method of claim 1, wherein the chroma intra prediction mode list excludes a cross-component linear model (CCLM) mode.
9. The method of claim 1, wherein the first group includes a subgroup including a direct mode (DM) directly using the intra prediction mode of the two or more co-located luminance blocks, or one or more of a decoder-side intra mode derivation (DIMD) and a template-based intra mode derivation (TIMD) derived from adjacent samples of the two or more co-located luminance blocks.
10. The method of claim 1 , wherein constructing the chroma intra prediction mode list comprises adding one or more intra prediction modes from the first group and one or more intra prediction modes from an additional group, the method further comprising: determining that a maximum number of entries in the chroma intra prediction mode list minus a number of entries in the chroma intra prediction mode list is equal to a number of entries in a last group in the additional group; as well as Based on the determination, adding intra prediction modes from other groups is stopped, and the intra prediction mode from the last group is added.
11. The method of claim 1 , wherein encoding or decoding the chroma block comprises decoding the chroma block, wherein decoding the chroma block comprises: Determining a predicted chrominance block based on the intra prediction mode; receiving residual information indicating a difference between the predicted chroma block and the chroma block; as well as The chroma block is reconstructed based on the residual information and the predicted chroma block.
12. The method of claim 1, wherein encoding or decoding the chroma block comprises encoding the chroma block, wherein encoding the chroma block comprises: Determining a predicted chrominance block based on the intra prediction mode; generating residual information indicating a difference between the predicted chroma block and the chroma block; as well as The residual information is signaled.
13. A device for encoding or decoding video data, the device comprising: a memory configured to store the video data; and a processing circuit coupled to the memory and configured to: constructing a chroma intra prediction mode list for a chroma block of a current block of the video data, wherein constructing comprises adding an intra prediction mode of a first group to the chroma intra prediction mode list, the first group comprising two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block; Determine the intra prediction mode of the chroma block from the chroma intra prediction mode list; as well as The chroma block is encoded or decoded based on the intra prediction mode.
14. The apparatus of claim 13 , wherein the processing circuit is configured to derive one or more intra-prediction modes from one or more intra-prediction modes in the first group, wherein in order to construct the chroma intra-prediction mode list, the processing circuit is configured to add the intra-prediction mode of the first group and the derived one or more intra-prediction modes to the chroma intra-prediction mode list.
15. The apparatus of claim 14, wherein to derive the one or more intra-prediction modes, the processing circuit is configured to add or subtract an offset to the one or more intra-prediction modes in the first group.
16. The apparatus of claim 13, wherein in order to add the intra-prediction mode of the first group to the chroma intra-prediction mode list, the processing circuit is configured to add the intra-prediction mode from the first group to the chroma intra-prediction mode list based on a maximum number of entries of the first group.
17. The apparatus of claim 13, wherein to construct the chroma intra prediction mode list, the processing circuit is configured to: adding the intra prediction mode of the first group to the chroma intra prediction mode list; and A second set of one or more intra prediction modes is added to the chroma intra prediction mode list, the second set comprising intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks.
18. The apparatus of claim 13, wherein to construct the chroma intra prediction mode list, the processing circuit is configured to: adding the intra prediction mode of the first group to the chroma intra prediction mode list; and A second set of one or more intra prediction modes is added to the chroma intra prediction mode list, the second set comprising intra prediction modes based on intra prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks.
19. The apparatus of claim 13, wherein to construct the chroma intra prediction mode list, the processing circuit is configured to: adding the intra prediction mode of the first group to the chroma intra prediction mode list; adding one or more intra prediction modes of a second group to the chroma intra prediction mode list, the second group comprising intra prediction modes based on intra prediction modes of one or more neighboring chroma blocks; as well as A third set of one or more intra prediction modes is added to the chroma intra prediction mode list, the third set comprising intra prediction modes based on intra prediction modes of one or more luma blocks neighboring at least one of the two or more co-located luma blocks.
20. The apparatus of claim 13, wherein the chroma intra prediction mode list excludes a cross-component linear model (CCLM) mode.
21. An apparatus according to claim 13, wherein the first group includes a sub-group, the sub-group including a direct mode (DM), the direct mode (DM) directly using the intra-frame prediction mode of the two or more co-located luminance blocks, or one or more of a decoder-side intra-frame mode derivation (DIMD) and a template-based intra-frame mode derivation (TIMD) derived from adjacent samples of the two or more co-located luminance blocks.
22. The apparatus of claim 13, wherein to construct the chroma intra prediction mode list, the processing circuit is configured to add one or more intra prediction modes from the first group and one or more intra prediction modes from an additional group, wherein the processing circuit is configured to: determining that a maximum number of entries in the chroma intra prediction mode list minus the number of entries in the chroma intra prediction mode list is equal to the number of entries in a last group in the additional groups; and Based on the determination, adding intra prediction modes from other groups is stopped, and the intra prediction mode from the last group is added.
23. The apparatus of claim 13, wherein to encode or decode the chroma block, the processing circuit is configured to decode the chroma block, wherein to decode the chroma block, the processing circuit is configured to: Determining a predicted chrominance block based on the intra prediction mode; receiving residual information indicating a difference between the predicted chroma block and the chroma block; and The chroma block is reconstructed based on the residual information and the predicted chroma block.
24. The apparatus of claim 13, wherein to encode or decode the chroma block, the processing circuit is configured to encode the chroma block, wherein to encode the chroma block, the processing circuit is configured to: Determining a predicted chrominance block based on the intra prediction mode; generating residual information indicating a difference between the predicted chroma block and the chroma block; and The residual information is signaled.
25. The device of claim 13, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
26. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: constructing a chroma intra prediction mode list for a chroma block of a current block of the video data, wherein constructing comprises adding an intra prediction mode of a first group to the chroma intra prediction mode list, the first group comprising two or more intra prediction modes derived from intra prediction modes of two or more co-located luma blocks of the current block that are co-located with the chroma block; Determine the intra prediction mode of the chroma block from the chroma intra prediction mode list; as well as The chroma block is encoded or decoded based on the intra prediction mode.
