Chroma Intra Prediction in Video Coding

By selecting the wide-angle intra prediction direction set based on the size of the luma block in the 4:2:2 chroma sampling format, ensuring that the intra prediction direction of the chroma block is consistent with the luma block, solving the problem of inconsistent intra prediction directions in DM mode solves the problem of low decoding efficiency and achieves more efficient video encoding.

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

Patent Information

Application Number
CN202080023165.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-03-25
Filing Date
2020-03-26
Publication Date
2024-09-20
Estimated Expiration
2040-03-26

AI Technical Summary

Technical Problem

When encoding video using the 4:2:2 chroma sampling format, the direct mode (DM) mode causes the indices of the intra prediction directions to indicate very different directions, reducing decoding efficiency because the intra prediction directions cannot be kept consistent. properties, especially when luma and chroma blocks have different width/height ratios.

Method used

By selecting a wide-angle intra prediction direction set based on the size of the luma block and ensuring that the intra prediction direction of the chroma block is consistent with that of the luma block, this avoids the need to separately indicate the intra prediction mode of the chroma block and maintains direct Use of patterns.

Benefits of technology

This improves video decoding efficiency, avoids the need to additionally send intra prediction modes on chroma blocks, and maintains decoding efficiency and signaling simplification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113615178B_ABST
    Figure CN113615178B_ABST
Patent Text Reader

Abstract

A video decoder selects a wide-angle intra prediction direction set based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format. In addition, the video decoder determines an intra prediction direction for the luma block. The intra prediction direction for the luma block is in the wide-angle intra prediction direction set. The video decoder also determines an intra prediction direction for a chroma block. The luma block is co-located with the chroma block in the picture. The chroma block has a different width / height ratio than the luma block. The intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block. The video decoder uses the intra prediction directions for the luma block and the chroma block to generate prediction blocks for the luma block and the chroma block, respectively.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Patent Application No. 16 / 829,626, filed on March 25, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 826,820, filed on March 29, 2019, each of which is incorporated herein by reference in its entirety. Technical Field

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

[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite 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 standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-TH.264 / MPEG-4 (Part 10, Advanced Video Coding (AVC)), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions of such standards). By implementing such video coding techniques, video devices may more efficiently send, receive, encode, decode, and / or store digital video information.

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction 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 summary, the present disclosure describes techniques for chroma intra prediction modes for chroma sampling formats in video codecs. More specifically, the present disclosure includes examples in which a video encoder and a video decoder determine a set of wide-angle intra prediction directions based on the size of a luma block of a picture having a YUV4:2:2 chroma sampling format. The video encoder and the video decoder determine intra prediction directions for chroma blocks co-located with luma blocks such that, although the chroma blocks have a different width / height ratio (in terms of number of pixels) than the luma blocks, the intra prediction directions for the chroma blocks are guaranteed to have the same intra prediction directions for the luma blocks.

[0006] In one example, the present disclosure describes a method for decoding video data, the method comprising: selecting a wide-angle intra-prediction direction set based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determining an intra-prediction direction for the luma block, wherein the intra-prediction direction for the luma block is in the wide-angle intra-prediction direction set; determining an intra-prediction direction for a chroma block, wherein: the luma block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block; generating a prediction block for the luma block using the intra-prediction direction for the luma block; generating a prediction block for the chroma block using the intra-prediction direction for the chroma block; decoding the luma block based on the prediction block for the luma block; and decoding the chroma block based on the prediction block for the chroma block.

[0007] In another example, the present disclosure describes a device for decoding video data, the device comprising: a memory for storing the video data; and one or more processors implemented in a circuit, the one or more processors being configured to: The invention relates to a method for decoding a chroma block of a luminance block of a picture having a 4:2:2 chroma sampling format and selecting a wide-angle intra-prediction direction set based on the size of a luminance block of a picture having a 4:2:2 chroma sampling format; determining an intra-prediction direction for the luminance block, wherein the intra-prediction direction for the luminance block is in the wide-angle intra-prediction direction set; determining an intra-prediction direction for a chroma block, wherein: the luminance block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio than the luminance block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luminance block; generating a prediction block for the luminance block using the intra-prediction direction for the luminance block; generating a prediction block for the chroma block using the intra-prediction direction for the luminance block; decoding the luminance block based on the prediction block for the luminance block; and decoding the chroma block based on the prediction block for the chroma block.

[0008] In another example, the present disclosure describes an apparatus for decoding video data, the apparatus comprising: a unit for selecting a set of wide-angle intra-prediction directions based on the size of a luma block of a picture in a 4:2:2 chroma sampling format; a unit for determining an intra-prediction direction for the luma block, wherein the intra-prediction direction for the luma block is in the set of wide-angle intra-prediction directions; a unit for determining an intra-prediction direction for a chroma block, wherein: the luma block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block; a unit for generating a prediction block for the luma block using the intra-prediction direction for the luma block; a unit for generating a prediction block for the chroma block using the intra-prediction direction for the chroma block; a unit for decoding the luma block based on the prediction block for the luma block; and a unit for decoding the chroma block based on the prediction block for the chroma block.

[0009] In another example, the present disclosure describes a computer-readable storage medium having instructions stored thereon, which when executed cause one or more processors to perform the following operations: select a set of wide-angle intra-prediction directions based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determine an intra-prediction direction for the luma block, wherein the intra-prediction direction for the luma block is in the set of wide-angle intra-prediction directions; determine an intra-prediction direction for a chroma block, wherein: the luma block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block; generate a prediction block for the luma block using the intra-prediction direction for the luma block; generate a prediction block for the chroma block using the intra-prediction direction for the chroma block; decode the luma block based on the prediction block for the luma block; and decode the chroma block based on the prediction block for the chroma block.

[0010] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0012] Figure 2 is a conceptual diagram illustrating example intra prediction modes.

[0013] Figure 3 is a conceptual diagram showing an example of intra prediction direction 2.

[0014] Figure 4 is a conceptual diagram showing an example of the intra prediction direction 10 .

[0015] Figure 5 is a table showing intraPredAngle as defined in Versatile Video Coding (VVC).

[0016] Figure 6 is a conceptual diagram illustrating an example of wide-angle intra prediction.

[0017] Figure 7 is a conceptual diagram illustrating an example of position-dependent intra prediction combining (PDPC).

[0018] Figure 8 is a conceptual diagram illustrating an example 4:2:2 chroma sampling format.

[0019] Fig. 9A and Fig. 9B is a conceptual diagram illustrating example intra-directions of a square luma block and co-located chroma blocks of the luma block.

[0020] Fig.10 is a conceptual diagram illustrating an example of determining an intra prediction angle based on a luma block size of 4:2:2.

[0021] Fig.11A and Fig. 11B is a conceptual diagram illustrating an example mapping of luma intra-frame angles to chroma intra-frame angles.

[0022] Fig.12 is a conceptual diagram illustrating an example mapping of luma intra-frame angles to chroma intra-frame angles.

[0023] Fig.13 is a conceptual diagram showing an example of a pixel distance and a sample position distance.

[0024] Fig.14A and 14B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

[0025] Fig.15 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0026] Fig.16 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0027] Fig.17 is a flow chart illustrating an example method for encoding a current block.

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

[0029] Fig.19 is a flowchart illustrating example operation of a video coder in accordance with one or more techniques of this disclosure.

[0030] Fig. 20 is a flowchart illustrating example operation of a video coder in accordance with one or more techniques of this disclosure.

[0031] Fig.21 is a flowchart illustrating example operation of a video coder in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION

[0032] Intra-frame prediction is a technique for predicting a block of video data based on adjacent blocks in the same picture. A variety of intra-frame prediction modes can be used to implement intra-frame prediction. Intra-frame prediction modes may include directional intra-frame prediction modes. Each directional intra-frame prediction mode in the directional intra-frame prediction mode corresponds to a different angle. When a block is predicted using a directional intra-frame prediction mode, a video decoder (e.g., a video encoder or a video decoder) may determine, for each corresponding sample of the block, a corresponding reference position in a reference sample set in a row of samples above the block or a column of samples to the left of the current block.

[0033] The reference positions of the samples of the block are located on a line that passes through the samples of the block at an angle corresponding to the directional intra prediction mode (i.e., the intra prediction direction). The video decoder can then determine the sample value corresponding to the reference position of the sample based on the reference sample. The video decoder can assign the sample value corresponding to the reference position of the sample as the prediction value of the sample. By doing this for each sample of the block, the video decoder can determine the prediction value of each sample of the block, and thereby generate a prediction block.

[0034] Wide-angle intra prediction is a technique that can be used with non-square blocks. Wide-angle intra prediction uses an additional directional intra prediction mode that corresponds to an angle exceeding 45° clockwise from the vertical direction or exceeding -135° clockwise from the vertical direction (i.e., exceeding 135° counterclockwise from the vertical direction). For ease of explanation, it can be assumed that the angles used in the present disclosure (i.e., intra prediction directions) are in terms of angles clockwise from the vertical direction. The additional directional intra prediction modes available in non-square blocks allow directional intra prediction modes to correspond to directions ranging from the lower left direction of the block to the upper right direction of the block in a counterclockwise manner. The lower left direction of the block is from the upper right corner of the block to the lower left corner of the block. The upper right direction of the block is from the lower left corner of the block to the upper right corner of the block.

[0035] Therefore, if the height of the block is greater than the width of the block, the non-wide-angle intra-prediction mode set may correspond to an intra-prediction direction that exceeds the upper right direction of the block. Therefore, the video decoder reallocates the index of the intra-prediction mode corresponding to a direction other than the upper right direction of the block to the wide-angle intra-prediction mode, which corresponds to a direction ranging from a direction of -135° clockwise from the vertical direction to a direction of the lower left direction of the block. For example, assume that intra-prediction mode 66 corresponds to a direction of 45° clockwise from the vertical direction. In this example, when the height of the block is greater than the width of the block, the direction of 45° clockwise from the vertical direction exceeds the upper right direction of the block. Therefore, the video decoder may reallocate intra-prediction mode 66 so that intra-prediction mode 66 instead corresponds to a direction between -135° clockwise and the lower left direction of the block.

[0036] Similarly, if the width of the block is greater than the height of the block, the non-wide-angle intra prediction mode set may correspond to a direction beyond the lower right direction of the block. Therefore, the video decoder reallocates the non-wide-angle intra prediction mode corresponding to the direction beyond the lower left direction of the block to the wide-angle intra prediction mode ranging from 45° clockwise from the vertical direction to the upper right direction of the block.

[0037] In many video coding standards, a picture includes a set of luma samples and two sets of chroma samples. A video decoder can perform intra prediction for luma and chroma samples of a picture separately. Therefore, a video decoder can generate a luma prediction block and two chroma prediction blocks for the same portion of a picture. Because a luma block and two corresponding chroma blocks can cover a co-located portion of a picture, a luma block and two corresponding chroma blocks can be referred to as co-located blocks.

[0038] Direct Mode (DM) is a tool for enhancing coding efficiency in intra prediction of chroma blocks. When a video decoder uses DM mode to decode a chroma block, the video decoder assumes that the chroma block uses an intra prediction mode with an intra prediction index as a luminance block co-located with the chroma block. The intra prediction index is a number that identifies the intra prediction mode. The use of DM can increase coding efficiency because the video encoder does not need to signal syntax elements to specify the intra prediction mode for the chroma block. Instead, the video encoder may only need to signal enough syntax elements for the video decoder to determine the intra prediction mode for the co-located luminance block.

[0039] The human eye is generally more sensitive to differences in luma values ​​than to differences in chroma values. Therefore, in some cases, the chroma values ​​of a block may be subsampled relative to the luma values ​​of the same block. For example, when a picture is encoded using a 4:2:2 chroma sampling format, chroma samples are encoded only for every other luma sample in a row of samples. Therefore, in a 4:2:2 chroma sampling format, a chroma sample block has 1 / 2 the width of a corresponding luma sample block. Therefore, when a luma block is square, when a picture is encoded using a 4:2:2 chroma sampling format, the co-located chroma blocks are non-square. When a luma block is non-square, the co-located chroma blocks may be square or non-square.

[0040] When a picture is encoded using a 4:2:2 chroma sampling format and the DM mode is used for intra prediction, specific technical problems may arise. For example, as described in the example above, intra prediction mode 66 may correspond to a direction 45° clockwise from the vertical direction in a square block, but when the height of the block is greater than the width of the block, it corresponds to a direction exceeding -135°. This is almost the opposite direction. Therefore, if the video encoder is to signal the use of intra prediction mode 66 for luminance blocks and use the DM mode, a very different direction from the luminance block will be used to intra predict the co-located chrominance block. Therefore, in pictures encoded using a 4:2:2 chroma sampling format, the use of the DM mode is unlikely to bring decoding efficiency.

[0041] The present disclosure describes techniques that can solve technical problems associated with using a 4:2:2 chroma sampling format and a DM mode. For example, a video decoder (e.g., a video encoder or a video decoder) can select a wide-angle intra-prediction direction set based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format. The intra-prediction direction is a direction corresponding to a directional intra-prediction mode. In addition, the video decoder can determine an intra-prediction direction for a luma block. In this example, the intra-prediction direction for the luma block is in the wide-angle intra-prediction direction set. The video decoder can determine an intra-prediction direction for a chroma block that is co-located with a luma block in a picture. In this example, the chroma block has a different width / height ratio than the luma block. According to one or more techniques of the present disclosure, the intra-prediction direction for the chroma block is guaranteed to have an intra-prediction direction for the luma block.

[0042] Because the intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luminance block, the intra prediction direction for the chroma block is consistent with the intra prediction direction for the luminance block. Therefore, when the YUV 4:2:2 chroma sampling format is used and the luminance block and the chroma block have different width / height ratios, the situation where the same index for the intra prediction direction of the luminance block indicates a very different intra prediction direction for the chroma block is avoided, and the use of the DM mode can be maintained. Therefore, it is possible to avoid signaling separate intra prediction modes for chroma blocks, which can improve decoding efficiency.

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

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

[0045] exist Figure 1 In the example of , the source device 102 includes a video source 104, a memory 106, a video encoder 200, and an output interface 108. The destination device 116 includes an input interface 122, a video decoder 300, a memory 120, and a display device 118. According to the present disclosure, the video encoder 200 of the source device 102 and the video decoder 300 of the destination device 116 can be configured to apply the technology of the chroma intra-frame prediction mode of the chroma sampling format in the video codec. Therefore, the source device 102 represents an example of a video encoding device, and the destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination device may include other components or arrangements. For example, the source device 102 may receive video data from an external video source such as an external camera. Similarly, the destination device 116 may be docked with an external display device instead of including an integrated display device.

[0046] like Figure 1The system 100 shown in is only one example. In general, any digital video encoding and / or decoding device can perform techniques for intra-frame prediction of chroma blocks of a specific chroma sampling format in a video codec. The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates encoded video data for transmission to the destination 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 destination device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0047] Typically, video source 104 represents the source of video data (i.e., original, unencoded video data), and provides a series of pictures (also referred to as "frames") of the order of the video data to video encoder 200, which encodes the data for the pictures. The video source 104 of source device 102 may include a video capture device, such as a camera, a video archive unit containing previously captured original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 may encode captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") to a decoding order for encoding. Video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of destination device 116 .

[0048] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store original video data, such as original video from the video source 104 and original decoded video data from the video decoder 300. In addition 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 as separate 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 memories for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store encoded video data, such as encoded video data 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.

[0049] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to directly send the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate the transmission signal including the encoded video data according to a communication standard such as a wireless communication protocol, and the input interface 122 may demodulate the received transmission information according to a communication standard such as a wireless communication protocol. The communication medium may include any wireless or wired communication medium, for example, 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 device that may be useful for facilitating communication from the source device 102 to the destination device 116.

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

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

[0052] 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 a variety of 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 TM ), Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing the functions assigned to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing the functions assigned to video decoder 300 and / or input interface 122.

[0053] The techniques of the present disclosure may 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.

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

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

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

[0057] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as the ITU-T H.265 (also known as the High Efficiency Video Coding (HEVC) standard) or an extension thereof such as a multi-view 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 the ITU-T H.266 standard, also known as Versatile Video Coding (VVC). A draft of the VVC standard is described in the following document: Bross et al., “Versatile Video Coding (Draft 4)”, Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 13th Meeting: Marrakech, Maryland, January 9-18, 2019, JVET-M1001-v5 (hereinafter referred to as “VVC Draft 4”). However, the technology of the present disclosure is not limited to any particular coding standard.

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

[0059] In general, the present disclosure may relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding 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 typically includes a series of values ​​for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or a block should generally be understood as decoding the values ​​of the syntax elements used to form the picture or the block.

[0060] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (coder) (such as video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further partition the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents a partition 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. The discussion in the present disclosure or CTU may also be applied to super blocks or other types of blocks that act similarly to CTUs.

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

[0062] In the MTT segmentation structure, blocks can be segmented using quadtree (QT) segmentation, binary tree (BT) segmentation, and one or more types of ternary tree (TT) segmentation. A ternary tree segmentation is a segmentation in which a block is divided into three sub-blocks. In some examples, the ternary tree segmentation divides the block into three sub-blocks without dividing the original block through the center. The segmentation types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

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

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

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

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

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

[0068] 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).

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

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

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

[0072] As described above, after any transform to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to potentially reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0073] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector according to a two-dimensional matrix including the quantized transform coefficients. The scan can 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) are placed behind the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values ​​of the syntax elements used to describe the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

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

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

[0076] In this way, the video encoder 200 can generate a bitstream that includes encoded video data, such as a syntax element describing the partitioning 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.

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

[0078] 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 regenerate 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 regenerate 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.

[0079] As briefly described above, the video encoder 200 and the video decoder 300 may generate a prediction block using intra prediction. Figure 2 is a conceptual diagram showing example intra prediction modes. In one example of VVC design, there are 67 intra prediction modes. Figure 2 As shown, 65 of the intra prediction modes are directional modes, and the other two intra prediction modes are planar mode and DC mode. The directional mode uses a prediction direction ranging from 45 degrees (i.e., toward the upper right corner of the square block) to -135 degrees (i.e., toward the lower left corner of the square block).

[0080] In VVC, the intra prediction angle is defined by multiplying the tangent of the angle by 32. For example, Figure 3 2 is a conceptual diagram showing an example of intra prediction direction 2. The tangent value may be defined as the vertical distance from the target pixel position to the reference position divided by the horizontal distance from the target pixel position to the reference position. The target pixel position is the position of the pixel being predicted. Figure 3As shown, for intra direction 2, the horizontal distance 126 and the vertical distance 128 between the target pixel position and its reference position are the same, so the tangent value (i.e., 2 / 2)*32=32. Therefore, the angle of the intra prediction direction (dir) 2 is defined as 32. The intra prediction direction can be represented by "intraPredAngle".

[0081] Figure 4 1 is a conceptual diagram showing an example of an intra prediction direction 10. Figure 4 As shown, for the intra prediction direction 10, the reference position of the target pixel is as follows Figure 4 As shown, the reference sample position of the target pixel has an offset of 1.5 pixels in the vertical direction and 4 pixels in the horizontal direction. In this case, the tangent of the prediction direction is 3 / 8. Therefore, the angle is defined as 12 (ie, 3 / 8×32=12). Figure 5 The angle value of each intra prediction direction defined in VVC is shown in FIG. Figure 5 The expression shows the intraPredAngle as defined in VVC.

[0082] Wide-angle intra prediction directions may be applied (e.g., by the video encoder 200 and the video decoder 300) to non-square blocks to improve decoding efficiency. For non-square blocks, instead of using all directional intra prediction modes ranging from 45° to -135° (e.g., Figure 2 As shown in FIG. 1 , some intra-frame prediction directions are removed and some additional intra-frame prediction directions are added. The newly added intra-frame prediction directions use the intra-frame prediction mode indexes of the removed intra-frame prediction directions, so that the total number of applicable directional intra-frame prediction modes remains unchanged.

[0083] For example, Figure 6 is a conceptual diagram showing an example of wide-angle intra prediction. Figure 6 As shown in the example of Figure 2 However, for a block with width (w) / height (h) = 2, such as Figure 6 As shown, the intra-frame prediction mode 66 is added to the intra-frame prediction mode list. At the same time, the intra-frame prediction mode 66 is removed. Figure 6 Intra-frame prediction mode 2 shown in FIG. 1 is used, and intra-frame prediction mode 66 is encoded in the bitstream using the index of intra-frame prediction mode 2. In other words, index 2 is reused to indicate intra-frame prediction mode 66, rather than indicating the intra-frame prediction mode previously corresponding to index 2. Figure 6 As shown, the index 2 indicates the upward and rightward directions, rather than indicating the downward and leftward directions.

[0084] Position Dependent Intra Prediction Combining (PDPC) is a mode that combines each pixel of an intra prediction block with several intra reference samples in a weighted average manner. The samples involved in the combination are derived based on the position of each pixel to be combined.

[0085] Figure 7 is a conceptual diagram showing an example of PDPC. Figure 7 In the example, the circles represent pixels. Figure 7 The pixel 140, which is distinguished from the other pixels in the image, is a predicted value of a regular, non-PDPC intra mode, and the reference samples 142A, 142B, and 142C (which are distinguished from the reference samples by using gray filling) are shown in FIG. Figure 7 The other pixels in the image are distinguished as top, left and upper left intra reference pixels. The final predicted sample value of the cross-hatched pixel (i.e., pixel 140) is obtained by weighted averaging the regular intra prediction value of pixel 140 and the values ​​of the top, left and upper left reference samples 142A, 142B and 142C. The weights used for the weighted average calculation are related to the distances between the top, left and upper left samples and the target pixel (i.e., pixel 140).

[0086] The YUV format is widely used in video and image processing. The Y component (i.e., brightness component) and the UV component (i.e., chrominance component) can have different sampling rates. The UV component can be a Cb and Cr chrominance component, a Co and Cg chrominance component, or other types of chrominance components. In the YUV 4:2:2 format, the sampling positions of the brightness sample and the chrominance sample are shown in the figure below. Compared with the brightness, the horizontal resolution of the chrominance is halved, and the vertical resolution of the chrominance and brightness are the same.

[0087] Figure 8 is a conceptual diagram illustrating an example 4:2:2 chroma sampling format. Figure 8 As shown, in the case of YUV 4:2:2, the luma block and the co-located chroma block of the luma block have different width / height ratios. In some examples, the luma block can be co-located with the chroma block if the luma block is in the same picture as the chroma block and includes samples co-located with the center of the chroma block. In other examples, the luma block can be co-located with the chroma block if the luma block is in the same picture as the chroma block and includes samples co-located with the upper left corner of the chroma block or other positions within the chroma block.

[0088] Different chroma sampling formats have different sampling frequency ratios between color components. The vertical and horizontal sampling frequency ratios are denoted in this document as Ratio ver and Ratio hor .For example:

[0089] For the YUV 4:2:0 format, the chrominance components have half the sampling frequency of the luma components in both vertical and horizontal directions. In this case, the Ratio ver =Ratio hor =2.

[0090] For the YUV 4:4:4 format, the chrominance components have the same sampling frequency as the luma components in both vertical and horizontal directions. In this case, Ratio ver =Ratio hor =1.

[0091] In the case of YUV 4:2:2, the chroma components have half the sampling frequency of the luma components in the horizontal direction and the same sampling frequency as luma in the vertical direction. In this case, Ratio ver =1 and Ratio hor =2.

[0092] As mentioned above, for the chroma sampling format of YUV 4:2:2, the luma block has a different width / height ratio than the co-located chroma block of the luma block. In the current VVC design, the wide-angle intra prediction direction is derived based on the width / height ratio. Ratios ranging from 1:16 to 16:1 are defined. However, for a luma block with a width / height ratio of 1:16, the width / height ratio of the co-located chroma block is 1:32, but there is no wide-angle intra prediction direction defined in VVC for 1:32.

[0093] In addition, as described above, for the YUV 4:2:2 chroma sampling format, the luma block has a different width / height ratio than the co-located chroma block of the luma block. According to the definition of wide-angle intra prediction provided above, different width / height ratios have different sets of wide-angle intra prediction modes. For example, Fig. 9A and Fig. 9B As shown, for a square luminance block 150, its co-located chrominance block 152 uses a different orientation. Fig. 9A The intra-frame direction of a square luminance block 150 is shown. Fig. 9B A co-located chrominance block of a square luminance block 150 is shown. Fig. 9B In FIG. 1 , the black arrow shown in the chrominance block 152 shows the common direction between the luma block 150 and the chrominance block 152. Fig. 9B In FIG. 1 , the dashed arrows represent directions for which there is no block size for the chroma block 152, and the indices of these dashed arrows are assigned to additional directions (indicated by thick arrows) for which block sizes are assigned. Thus, Fig. 9B The directions corresponding to the available intra prediction modes when a "derive-from" block size (ie, the block size of the chroma blocks) is used are shown.

[0094] Direct mode (DM) is a mode in which the video encoder 200 and the video decoder 300 assume that the intra prediction mode to be used for the chroma blocks is the same as the intra prediction mode to be used for the co-located luma blocks. DM may be advantageous in some cases because DM may avoid the need for the video encoder 200 to explicitly signal the intra prediction mode for the chroma blocks in addition to the intra prediction mode for the co-located luma blocks. For example, if the video encoder 200 selects intra prediction mode 66 for luma block 150, the video encoder 200 and the video decoder 300 use intra prediction mode 66 as the DM mode for chroma block 152. However, because the intra prediction mode is used in the DM mode, the chroma blocks 152 are not used. Fig. 9B In the example of , the chroma sampling format is YUV 4:2:2, so the intra prediction mode 66 is mapped to the intra prediction mode 66'. Fig. 9B It is shown that the intra prediction mode 66 and the intra prediction mode 66' are almost opposite in their directions, and thus the DM mode may not be a good candidate for intra prediction of the chroma block 152. Therefore, since the DM mode cannot be used in this case and the video encoder 200 may instead have to explicitly signal the intra prediction mode for the chroma block, the coding efficiency may be reduced, and thus technical problems may arise.

[0095] The present disclosure describes techniques that can solve one or more of the above problems, and thereby potentially increase decoding efficiency. In order to solve the problems associated with wide-angle DM mode mapping from one color component to another color component, the first solution proposed in the present disclosure is to determine the set of wide-angle intra prediction directions based on deriving from (derive-from) block size rather than deriving (derive-to) block size. In the present disclosure, "derived from block size" refers to the height and width of the "derived from" block. The "derived from" block can be a luminance block of a CU, PU, ​​or other type of block.

[0096] For example, according to the techniques of the present disclosure, for a YUV 4:2:2 chroma sampling format, even though the chroma blocks have a different width / height ratio than their co-located luma block size, the intra prediction direction for the chroma blocks is selected based on the luma block size. In other words, the intra prediction modes available for use in the chroma blocks correspond to the same directions as the intra prediction modes available in blocks having the size of the co-located luma block (i.e., "derived from" the block size). Thus, in this example, the DM mode for the chroma blocks is guaranteed to always have the same prediction direction as the co-located luma block. In other words, the intra prediction direction for the chroma blocks is guaranteed to have the intra prediction direction for the luma block.

[0097] Fig.10The intra prediction directions of square luminance blocks and co-located chrominance blocks based on the current VVC wide-angle intra prediction design are shown. Fig.10 In the example of , a luma block is shown on the left and a chroma block is shown on the right. Instead of using intra prediction mode 66, a wide direction is defined for a block with a width / height ratio of 1 / 2. The direction (153) of intra prediction mode 66 defined for a square block is used for the chroma block.

[0098] Therefore, according to one or more techniques of the present disclosure, a video decoder (e.g., video encoder 200 or video decoder 300) may select a wide-angle intra prediction direction set based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format. In addition, the video decoder may determine an intra prediction direction for a luma block. The intra prediction direction for a luma block may be in a wide-angle intra prediction direction set. In addition, the video decoder may determine an intra prediction direction for a chroma block. The luma block is co-located with a chroma block in a picture, the chroma block has a different width / height ratio than the luma block, and the intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block. Because the intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block, the intra prediction direction for the chroma block is consistent with the intra prediction direction for the luma block. For this reason, the DM mode may continue to be used for the chroma block, thereby avoiding the need to indicate the intra prediction mode for the chroma block separately from the intra prediction mode for the luma block.

[0099] In some examples of the present disclosure, to solve the problems associated with wide-angle DM mode mapping from one color component to another color component, the present disclosure proposes a solution for defining a mapping between intra-prediction angles (including wide-angle intra-prediction directions) of different color components and using the mapping when intra-mode information of another color component (i.e., the "derived from" component) is used for the current color component (i.e., the "derived from" component). The intra-mode information for a color component may include an index to the intra-prediction mode for the color component.

[0100] For example, in VVC for YUV format, for each chroma block, intra prediction mode information (i.e., luma mode information) of the co-located luma block of the chroma block is available. According to the present disclosure, the luma mode information of the co-located luma block can be mapped (e.g., by the video encoder 200 and the video decoder 300) to the chroma mode (i.e., the intra prediction mode available in the chroma block), and the mapped mode can be used to encode and decode the chroma block. Therefore, the DM mode can continue to be used for the chroma block, thereby avoiding the need to separately signal the intra prediction mode for the chroma block.

[0101] Examples of encoding and decoding chroma blocks using mapped modes are as follows. In a first example, the mapped mode can be used (e.g., by the video encoder 200 and the video decoder 300) to replace one or more existing intra prediction modes in the chroma intra prediction mode candidates. For example, the "DM mode" in VVC can be replaced by the current method of the present disclosure. Therefore, when a chroma block is decoded in a picture with a YUV4:2:2 chroma sampling format (where the chroma block has a different width / height ratio from the co-located luminance block), a video decoder (e.g., the video encoder 200 or the video decoder 300) can determine the chroma intra prediction mode that is mapped to the intra prediction mode of the co-located luminance block. The video decoder can then use the determined chroma intra prediction mode to generate a prediction block for the chroma block.

[0102] In a second example of using the mapped mode to encode and decode a chroma block, the mapped mode can be used (e.g., by the video encoder 200 and the video decoder 300) as an additional mode on top of (i.e., in addition to) the current intra-prediction mode list for the chroma block. In other words, the video decoder can determine a set of intra-prediction directions for the chroma block based on the size of the chroma block, and then add the mapped mode to the resulting list of intra-prediction directions. Therefore, the list of intra-prediction directions that the video decoder can use to generate a prediction block for the chroma block can be greater than 65.

[0103] In some examples, if the derived component and the derived from component have exactly the same set of possible intra prediction directions, the definition of the mapping can be straightforward. For example, for YUV 4:4:4, YUV 4:2:0, etc., the sampling frequency ratio Ratio defined in the current VVC draft is hor =Ratio ver =1, luma and chroma components use exactly the same set of intra prediction angles (including wide angle). Each derived intra prediction angle may be mapped (eg, by the video encoder 200 and the video decoder 300) to a derived intra prediction angle of the same value.

[0104] On the other hand, if the derived component and the derived from component do not have exactly the same possible set of intra prediction directions, then in the present disclosure, it is proposed that the video encoder 200 and the video decoder 300 use a ratio-based hor and Ratio ver The intra-frame prediction angles derived from the components are scaled to map each intra-frame prediction direction derived from the components to the derived components. If necessary, rounding of the prediction directions can be applied (e.g., by the video encoder 200 and the video decoder 300), and the accuracy of the prediction angles can be increased to reduce or completely remove the errors introduced by rounding.

[0105] As an example of scaling the intra prediction angle derived from the component, when mapping the horizontal derived intra prediction direction to the chroma intra prediction direction, the angle value derived from the angle value may be multiplied by The horizontal derived intra prediction direction is the direction less than -45° from the vertical direction. When mapping the vertical derived intra prediction direction to chrominance, the derived angle value can be multiplied by A vertically derived intra prediction direction is a direction greater than -45° from the vertical direction. The video encoder 200 and the video decoder 300 may apply rounding and may increase the precision of the angle value.

[0106] Based on the mapping between the derived intra angles and the derived intra angles, different intra prediction methods can be designed for the derived components. Below are several examples of the YUV 4:2:2 format on top of the current VVC design.

[0107] In the first example, the accuracy of the predicted angle value is increased from 1 / 32 pixel accuracy to 1 / 64 pixel accuracy. In addition, in order to map the luma intra angle to the chroma intra angle, the video encoder 200 and the video decoder 300 may multiply the angle value of the horizontal luma intra angle by And multiply the vertical brightness frame angle value by In this first example, the video encoder 200 and the video decoder 300 may use the mapped intra angle as the DM mode for each chroma block co-located with the luma block. In other words, if the DM mode is used to decode the chroma block co-located with the luma block, the video encoder 200 and the video decoder 300 may use the intra prediction mode corresponding to the mapped intra angle to generate a prediction block for the chroma block. Therefore, if the luma mode (i.e., the intra prediction mode of the luma block) is represented as Angle luma , then for the corresponding chroma block, the video encoder 200 and the video decoder 300 may use Map in the encoding process and decoding process of one or more of the co-located chroma blocks. chroma (Angle luma ), for example, as a DM mode.

[0108] Consistent with the first example, Fig.11A and Fig. 11B is a conceptual diagram showing an example mapping of prediction angles from a square luma block to its rectangular co-located chroma block. Fig.11AIn the example of , the intra prediction mode with an angle of -29 is indicated by a thick arrow. As described above, the angle can be defined by a tangent value*32. Multiplying the tangent value by 32 can allow the angle to be represented by an integer instead of a fraction. Therefore, when the video encoder 200 and the video decoder 300 use 1 / 64 pixel precision, a value of -58 can be used instead of -29.

[0109] In the second example, the precision of the intra-frame prediction angle remains unchanged, rather than increasing the precision of the predicted angle value as in the first example. When mapping the luma intra-frame angle to chroma (same as in the first example), when multiplying the intra-frame angle by , fractional angle values ​​may be derived. In this example, the fractional angle values ​​are rounded to a nearby integer value. Different types of rounding may be applied. Video encoder 200 and video decoder 300 may use the mapped chroma angle set as a candidate for chroma prediction angles, and may use the mapping to derive a "map to" mode. Thus, if luma uses Angle luma , then for the corresponding chrominance block, the video encoder 200 and the video decoder 300 use Map chroma (Angle luma ). For example, Map chroma (Angle luma ) can be used as DM mode.

[0110] In the first and second examples above, the derived chroma angles may be different from any angles defined for the luma block. Therefore, additional angles limited to the chroma components may be introduced. In the following example (i.e., the third example), the rounding of the mapped angles is designed in such a way that the candidate directions for the chroma blocks are always possible angle values ​​for the luma blocks.

[0111] In the third example, the scaling process described in the first example is first performed (e.g., by the video encoder 200 and the video decoder 300). As a second step, the scaled angle values ​​are clipped (e.g., by the video encoder 200 and the video decoder 300) to the nearest angle values, which are also defined as possible angle values ​​for the luma block (including all wide angles for different possible width / height ratios). The clipped angles are used in the encoding process (e.g., by the video encoder 200) and decoding process (e.g., by the video decoder 300) of the chroma block, for example, as a DM mode.

[0112] Fig.12 The mapping of prediction angles for rectangular co-located chrominance blocks from square luminance blocks to conformal luminance blocks is shown. Fig.12In the example of , for the vertical luma intra angle -29, the scaled intra angle is -14.5, and its nearest angle value (also a possible angle for the luma block) is -14; so the mapped chroma angle is -14. For the horizontal luma prediction angle 32, the scaled angle value is 64. Although 64 is not a possible luma intra angle for this square block, 64 is in the wide mode candidate set defined for luma blocks with width / height=1 / 2. Therefore, the mapped chroma angle value is 64.

[0113] The methods of mapping the luma frame angle to the chroma frame angle described in the above three examples (i.e., Example 1, Example 2, and Example 3) can be applied in combination. The fourth example described below is a design in which the above three examples are applied in combination. In this fourth example, the scaling process described in the first example is first performed by the video encoder 200 and the video decoder 300. The output of the scaling process is represented as Angle scaled When clipping the scaled angle, consider the range of possible intra-frame angles. Let Angle lmin = the minimum value of the angle in all brightness frames, and let Angle lmax is equal to the maximum value of all angles in the frame. scaled <Angle lmin or Angle scaled >Angle lmax , then use the additional angle. Otherwise, set Angle scaled The clipping is to the nearest angle value so that for an angle value, the video encoder 200 and the video decoder 300 can find a luma block size for which the angle value is a possible intra-angle.

[0114] In the present disclosure, it is proposed to consider the distance of the pixel sample position when calculating the distance between pixels. As an example, for the YUV 4:2:2 format, when the video encoder 200 and the video decoder 300 calculate the weights for the position-dependent intra prediction combination (PDPC) mode, when calculating the weights for the weighted average, the horizontal distance in the number of pixels is multiplied by 2 so that the weighted average is based on the sample position distance instead of the pixel number distance.

[0115] Fig.13 The difference between the distance in number of pixels and the distance of the sample position is shown. Fig.13 In the example of , the circles correspond to chroma samples, and the X marks correspond to luma samples. Fig.13In the figure, the circles with bold outlines correspond to the predicted samples, and the circles with unbold outlines correspond to the reference samples. For the YUV 4:2:2 chroma sampling format, the length of the horizontal sample interval of chroma sampling is twice the length of the vertical sample interval; therefore, the horizontal distance of 2 pixels is actually twice the vertical distance of 2 pixels. Specifically, Fig.13 As shown in the left part of , the predicted sample is 2 pixels away from each of the reference samples in terms of chrominance pixels. Fig.13 As shown in the right part of , the predicted sample is 4 pixels away from the left reference sample in terms of sample position, and is 2 pixels away from the upper reference sample in terms of sample position.

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

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

[0118] generally, Fig. 14BThe CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, which indicates the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, which indicates the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, which indicates the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, which indicates the minimum allowed binary tree leaf node size).

[0119] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be segmented according to a quadtree segmentation. That is, the node of the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node as including a parent node and a child node with a solid line branch. If the node of the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), they may be further segmented by the corresponding binary tree. The binary tree splitting of a node may be iterated until the node generated from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line branch. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As discussed above, a CU may also be referred to as a "video block" or "block".

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

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

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

[0123] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives the video data stored in the 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 the video encoder 200. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or separate memory devices. 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.

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

[0125] Shows Fig.15The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. The unit may be implemented as a fixed-function circuit, a programmable circuit, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is pre-set with respect to the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provide flexible functions with 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. A fixed-function circuit can execute software instructions (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally 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 an integrated circuit.

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

[0127] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.

[0128] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units that perform video prediction according to other prediction modes. 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.

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

[0130] The video encoder 200 may partition 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 partition the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0131] Typically, 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 the overlapping portion of the PU and TU in HEVC). 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 the degree of similarity of the potential reference block 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 typically perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value obtained from these calculations, which indicates the reference block that most closely matches the current block.

[0132] 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 vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values ​​for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

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

[0134] According to one or more techniques of the present disclosure, the intra prediction unit 226 may select a wide-angle intra prediction direction set based on the size of the luma block of a picture having a YUV 4:2:2 chroma sampling format. In addition, the intra prediction unit 226 may determine the intra prediction direction for the luma block. The intra prediction direction for the luma block is in the wide-angle intra prediction direction set. In addition, the intra prediction unit 226 may determine the intra prediction direction for the chroma block. The luma block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio from the luma block, and the intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block. The intra prediction unit 226 may use the intra prediction direction for the luma block to generate a prediction block for the luma block. In addition, the intra prediction unit 226 may use the intra prediction direction for the chroma block to generate a prediction block for the chroma block.

[0135] In some examples, the intra prediction unit 226 may determine the intra prediction mode based on a mapping between the intra prediction angles of the first color component and the second color component. The second color component is different from the first color component. In addition, the intra prediction unit 226 may generate a prediction block for the second color component of the current block based on the intra prediction mode.

[0136] In addition, in an example where the video encoder 200 uses the PDPC mode, the intra-prediction unit 226 can determine a reference sample set for a current sample of a current block of video data formatted in YUV 4:2:2 mode. In addition, the intra-prediction unit 226 can determine a weight for the reference sample. As part of determining the weight for the reference sample, the intra-prediction unit 226 can multiply the horizontal distance of the reference sample in number of pixels by 2. The intra-prediction unit 226 can calculate a weighted average of the reference samples based on the weights. In addition, the intra-prediction unit 226 can include a weighted average of the reference samples in the prediction block for the current block.

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

[0138] In an example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As noted above, the size of a CU may refer to the size of 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 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-prediction, and 2Nx2N, 2NxN, Nx2N, NxN, or similar symmetrical PU sizes for inter-prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-prediction.

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

[0140] For other video coding techniques (such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few 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 how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.

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

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

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

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

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

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

[0147] 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 the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on syntax elements as 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-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 in which the syntax elements are not entropy encoded.

[0148] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required for reconstructing a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.

[0149] The above operations are described with respect to blocks. Unless otherwise specified, 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.

[0150] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated to identify MVs and reference pictures for chroma blocks. Instead, the MVs for luma coding blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0151] In this way, in some examples, video encoder 200 represents an example of a video encoding device, which includes: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: determine a set of wide-angle intra-frame prediction directions based on a derived block size, the derived block size being a block size of a first color component of a current block of video data; use a wide-angle intra-frame prediction direction in the set of wide-angle intra-frame prediction directions to generate a prediction block for a second color component of a current block of video data, the second color component being different from the first color component; and encode the current block based on the prediction block.

[0152] In some examples, video encoder 200 represents an example of video encoding, which includes: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: select a set of wide-angle intra-prediction directions based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determine an intra-prediction direction for the luma block, wherein the intra-prediction direction for the luma block is in the set of wide-angle intra-prediction directions; determine an intra-prediction direction for a chroma block, wherein: the luma block is co-located with a chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block; generate a prediction block for the luma block using the intra-prediction direction for the luma block; generate a prediction block for the chroma block using the intra-prediction direction for the chroma block; encode the luma block based on the prediction block for the luma block; and encode the chroma block based on the prediction block for the chroma block.

[0153] In some examples, video encoder 200 represents an example of a video encoding device, which includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: determine an intra-frame prediction mode based on a mapping between intra-frame prediction angles of the first color component and the second color component for a second color component of the current block based on intra-frame mode information of a first color component of a current block of video data, the second color component being different from the first color component; generate a prediction block for the second color component of the current block based on the intra-frame prediction mode; and encode the current block based on the prediction block.

[0154] In some examples, video encoder 200 represents an example of a video encoding device comprising: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: determine a set of reference samples for a current sample of a current block of video data formatted in YUV 4:2:2 mode; determine weights for the reference samples, wherein determining the weights for the reference samples comprises: multiplying a horizontal distance of the reference samples in number of pixels by 2; calculating a weighted average of the reference samples based on the weights; including the weighted average of the reference samples in a prediction block for the current block; and encoding the current block based on the prediction block.

[0155] Encoding a block based on the prediction block may include subtracting samples of the prediction block from corresponding samples of the current block to generate residual data.

[0156] Fig.16 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Fig.16It is provided for the purpose of explanation and does not limit the techniques widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 300 according to the techniques of VVC and HEVC. However, the techniques of this disclosure can be performed by video decoding devices configured for other video decoding standards.

[0157] exist Fig.16 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 one or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or in processing circuits. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.

[0158] 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 that 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.

[0159] 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 encoded video data (e.g., syntax elements) from an encoded 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, and video decoder 300 may output decoded pictures, and / or use decoded pictures as reference video data when decoding subsequent data or pictures of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 can be on-chip with other components of video decoder 300 , or off-chip relative to those components.

[0160] 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, when some or all of the functions of video decoder 300 are implemented in software to be executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.

[0161] Shows Fig.16 The various units shown in FIG. 3 are shown 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. Fig.15 , fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions with respect to the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.

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

[0163] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to regenerate 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.

[0164] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").

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

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

[0167] 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 a 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 a prediction block in the same manner as described for motion compensation unit 224 ( Fig.15)The inter-frame prediction process is performed in a manner substantially similar to that described in detail above.

[0168] 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. Again, the intra-prediction unit 318 may generally generate a prediction block in the same manner as described with respect to the intra-prediction unit 226 ( Fig.15 The intra prediction process is performed in a substantially similar manner as described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.

[0169] In an example according to one or more techniques of this disclosure, the intra prediction unit 318 may determine a set of wide-angle intra prediction directions based on a derived block size. In this example, the derived block size is a block size of a first color component of a current block of video data. Additionally, in this example, the intra prediction unit 318 may use a wide-angle intra prediction direction from the set of wide-angle intra prediction directions to generate a prediction block for a second color component of the current block of video data. In this example, the second color component is different from the first color component.

[0170] In some examples, the intra prediction unit 318 may select a wide-angle intra prediction direction set based on the size of the luma block of a picture having a YUV 4:2:2 chroma sampling format. In addition, the intra prediction unit 318 may determine an intra prediction direction for the luma block. The intra prediction direction for the luma block is in the wide-angle intra prediction direction set. In addition, the intra prediction unit 318 may determine an intra prediction direction for the chroma block. The luma block is co-located with the chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block. The intra prediction unit 318 may use the intra prediction direction for the luma block to generate a prediction block for the luma block. In addition, the intra prediction unit 318 may use the intra prediction direction for the chroma block to generate a prediction block for the chroma block.

[0171] In another example according to one or more techniques of this disclosure, the intra-prediction unit 318 may determine the intra-prediction mode based on the intra-mode information of the first color component of the current block of video data for the second color component of the current block and based on the mapping between the intra-prediction angles of the first color component and the second color component. In this example, the second color component is different from the first color component. In addition, in this example, the intra-prediction unit 318 may generate a prediction block for the second color component of the current block based on the intra-prediction mode.

[0172] In another example according to one or more techniques of the present disclosure, the intra prediction unit 318 may determine a set of reference samples for a current sample of a current block of video data formatted in YUV 4:2:2 mode. Additionally, the intra prediction unit 318 may determine weights for the reference samples. As part of determining the weights for the reference samples, the intra prediction unit 318 may multiply the horizontal distance of the reference samples in number of pixels by 2. Additionally, the intra prediction unit 318 may calculate a weighted average of the reference samples based on the weights. The intra prediction unit 318 may include the weighted average of the reference samples in the prediction block for the current block.

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

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

[0175] 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 the decoded picture from the DPB for use in, for example, Figure 1 Subsequent presentation on a display device 118 of the display device.

[0176] In this way, in some examples, the video decoder 300 represents an example of a video decoding device, which includes: a memory configured to store video data; and one or more processing units that are implemented in a circuit and configured to: determine a set of wide-angle intra-frame prediction directions based on a derived block size, the derived block size being a block size of a first color component of a current block of video data; use a wide-angle intra-frame prediction direction in the set of wide-angle intra-frame prediction directions to generate a prediction block for a second color component of a current block of video data, the second color component being different from the first color component; and decode the current block based on the prediction block.

[0177] In some examples, the video decoder 300 represents an example of video encoding, which includes: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: select a set of wide-angle intra-prediction directions based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determine an intra-prediction direction for the luma block, wherein the intra-prediction direction for the luma block is in the set of wide-angle intra-prediction directions; determine an intra-prediction direction for a chroma block, wherein: the luma block is co-located with a chroma block in the picture, the chroma block has a different width / height ratio than the luma block, and the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block; generate a prediction block for the luma block using the intra-prediction direction for the luma block; generate a prediction block for the chroma block using the intra-prediction direction for the chroma block; decode the luma block based on the prediction block for the luma block; and decode the chroma block based on the prediction block for the chroma block.

[0178] In some examples, the video decoder 300 represents an example of a video decoding device, which includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: determine an intra-frame prediction mode based on a mapping between intra-frame prediction angles of the first color component and the second color component for a second color component of the current block based on intra-frame mode information of a first color component of a current block of video data, the second color component being different from the first color component; generate a prediction block for the second color component of the current block based on the intra-frame prediction mode; and decode the current block based on the prediction block.

[0179] In some examples, video decoder 300 represents an example of a video decoding device comprising: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: determine a set of reference samples for a current sample of a current block of video data formatted in YUV 4:2:2 mode; determine weights for the reference samples, wherein determining the weights for the reference samples comprises: multiplying a horizontal distance of the reference samples in number of pixels by 2; calculating a weighted average of the reference samples based on the weights; including the weighted average of the reference samples in a prediction block for the current block; and decoding the current block based on the prediction block.

[0180] Decoding the block based on the prediction block may include adding samples of the prediction block to samples of the residual data to reconstruct the current block.

[0181] Fig.171 is a flow chart illustrating an example method for encoding the current block. The flow chart of the present disclosure is provided as an example. In other examples according to the present disclosure, the operation shown in the flow chart of the present disclosure may include more, less or different actions. In addition, in some examples, the action of the operation shown in the flow chart of the present disclosure may be performed in different orders or in parallel.

[0182] exist Fig.17 In the example of , the current block may include the current CU. Although regarding the video encoder 200 ( Figure 1 and 15 ) describes Fig.17 , but it should be understood that other devices may be configured to perform the same Fig.17 A similar approach to the one used in this paper.

[0183] In addition, Fig.17 In the example of , the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 can form a luma prediction block, a Cb prediction block, and a Cr prediction block for the current block. In different decoding modes, the video encoder 200 can use different modes to form prediction blocks for the current block. For example, according to one example of the present disclosure, the video encoder 200 (e.g., the intra prediction unit 226 of the video encoder 200) can generate prediction blocks for luma blocks and chroma blocks, as described elsewhere in the present disclosure, such as with respect to Fig.19 , 20 and 21 described.

[0184] The video encoder 200 may calculate a residual block for the current block (e.g., a luma residual block for the current block or a chroma residual block for the current block) (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, unencoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the 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 the entropy encoded data of the block (360).

[0185] Fig.18 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 15), but it should be understood that other devices may be configured to perform the same Fig.18 A similar approach to the one used in this paper.

[0186] The video decoder 300 may receive entropy coded data for a current block (e.g., 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 regenerate transform coefficients of the residual block (372).

[0187] The video decoder 300 may predict the current block (374), e.g., by computing a prediction block for the current block using an intra-frame or inter-frame prediction mode indicated by the prediction information for the current block. For example, the video decoder 300 may form a luma prediction block, a Cb prediction block, and a Cr prediction block for the current block. In different decoding modes, the video decoder 300 may use different modes to form prediction blocks for the current block. For example, the video decoder 300 (e.g., the intra-frame prediction unit 318 of the video decoder 300) may generate prediction blocks for luma blocks and chroma blocks, as described elsewhere in this disclosure, e.g., with respect to Fig.19 , 20 and 21 described.

[0188] The video decoder 300 may inverse scan the regenerated transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the transform coefficients to generate a residual block (e.g., a luma residual block or a chroma residual block) (378). Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block (380).

[0189] Fig.19 is a flowchart illustrating example operation of a video coder in accordance with one or more techniques of this disclosure. Fig.19 The example operations of may be performed by video encoder 200 or video decoder 300. In some examples, intra prediction unit 226 of video encoder 200 or intra prediction unit 318 of video decoder 300 may perform Fig.19 Actions 400 to 408.

[0190] exist Fig.19In an example, a video decoder selects a wide-angle intra prediction direction set (400) based on the size of a luma block of a picture having a YUV 4:2:2 chroma sampling format. For example, in one example, to select a wide-angle intra prediction direction set, the video decoder may determine a first intra prediction direction set based on the size of the luma block. In this example, the video decoder may remove the first intra prediction direction set from the second intra prediction direction set. The range of the second intra prediction direction set may be 45 degrees to -135 degrees. Then, the video decoder may add the wide-angle intra prediction direction set to the second intra prediction direction set. The wide-angle intra prediction direction utilizes a mode index of the first intra prediction direction set. The wide-angle intra prediction direction set may include one or more intra prediction directions exceeding 45 degrees or exceeding -135 degrees. In some examples, the video decoder may apply a process of general video coding (VVC) to determine a wide-angle intra prediction direction set based on a block size derived therefrom.

[0191] As described above, the video decoder may determine a first intra-frame prediction direction set. If the width of the luminance block is greater than the height of the luminance block, the first intra-frame prediction direction set may include or consist of an intra-frame prediction direction in the second intra-frame prediction direction set that exceeds the lower left direction of the luminance block. If the height of the luminance block is greater than the width of the luminance block, the first intra-frame prediction direction set may include or consist of an intra-frame prediction direction in the second intra-frame prediction direction set that exceeds the upper right direction of the luminance block.

[0192] In addition, Fig.19 In the example of , the video decoder can determine an intra prediction direction for a luma block (402). The intra prediction direction for the luma block is in a second intra prediction direction set. For example, the intra prediction direction for the luma block can be in a wide-angle intra prediction direction set.

[0193] In an example where the video decoder is the video encoder 200, the video encoder 200 may select an intra prediction direction for the luma block from the second intra prediction direction set after adding the wide angle intra prediction direction set to the second intra prediction direction set. For example, the video encoder 200 may perform a rate-distortion analysis on two or more intra prediction directions in the second intra prediction direction set to determine the intra prediction direction for the luma block. In an example where the video decoder is the video decoder 300, the video decoder 300 may determine the intra prediction mode indicated by the prediction information syntax element sent in the signaling. The intra prediction mode corresponds to the intra prediction direction for the luma block.

[0194] In addition, Fig.19, the video decoder determines an intra-prediction direction for a chroma block (404). The luma block is co-located with the chroma block in the picture. In addition, the chroma block has a different width / height ratio than the luma block. According to the techniques of the present disclosure, the intra-prediction direction for the chroma block is guaranteed to have the intra-prediction direction for the luma block. In other words, regardless of the intra-prediction direction for the luma block, the intra-prediction direction for the chroma block is the same as the intra-prediction direction for the luma block. In this way, the video decoder can determine the intra-prediction direction for the chroma block so that the intra-prediction for the chroma block is the same as the intra-prediction direction for the luma block. This is in contrast to the case where the intra-prediction direction for the luma block is not available as the intra-prediction direction for the chroma block because the wide-angle intra-prediction direction set is selected based on the size of the chroma block (e.g., as Fig. 9A and Fig. 9B ).

[0195] like Fig.19 As shown, the video decoder can use the intra-frame prediction direction for the luma block to generate a prediction block for the luma block (406). Similarly, the video decoder can use the intra-frame prediction direction for the chroma block to generate a prediction block for the chroma block (408). The video decoder can use the intra-frame prediction direction for the luma block and the chroma block to generate prediction blocks for the luma block and the chroma block, as described elsewhere in the present disclosure. For example, the video decoder can generate the prediction block by identifying a reference position of samples of the prediction block based on the intra-frame prediction mode. The video decoder can determine a value of the reference position, and can set the samples of the prediction block to the determined value.

[0196] In addition, the video decoder may decode the luma block based on the prediction block for the luma block (410). The video decoder may also decode the chroma block based on the prediction block for the chroma block (412). In an example where the video decoder is the video encoder 200, the video encoder 200 may encode the luma block based on the prediction block for the luma block, and the video encoder 200 may encode the chroma block based on the prediction block for the chroma block. For example, the residual generation unit 204 of the video encoder 200 may generate residual data for the luma block based on samples of the luma block and the prediction block for the luma block. Similarly, the residual generation unit 204 of the video encoder 200 may generate residual data for the chroma block based on samples of the chroma block and the prediction block for the chroma block.

[0197] In an example where the video decoder is a video decoder 300, the video decoder 300 may decode a luma block based on a prediction block for the luma block, and the video decoder 300 may decode a chroma block based on a prediction block for the chroma block. For example, a reconstruction unit 310 of the video decoder 300 may reconstruct a luma block based on a prediction block for the luma block and residual data for the luma block. Similarly, a reconstruction unit 310 of the video decoder 300 may reconstruct a chroma block based on a prediction block for the chroma block and residual data for the chroma block.

[0198] Fig. 20 is a flowchart illustrating example operation of a video coder in accordance with one or more techniques of this disclosure. Fig. 20 The example operations of may be performed by video encoder 200 or video decoder 300. In some examples, intra prediction unit 226 of video encoder 200 or intra prediction unit 318 of video decoder 300 may perform Fig.21 Actions 450 to 452.

[0199] exist Fig. 20 In the example of , as part of predicting the current block, the video coder may determine an intra prediction mode for the second color component based on a mapping between intra prediction angles of the first color component and the second color component (450). The video coder may determine the mapping according to any of the examples provided elsewhere in this disclosure.

[0200] In addition, Fig. 20 In an example of , the video decoder may generate a prediction block for a second color component of the current block based on the intra prediction mode (452). For example, the video decoder may generate the prediction block by identifying a reference position of samples of the prediction block for the second color component based on the intra prediction mode. The video decoder may determine a value of the reference position, and may set the samples of the prediction block for the second color component to the determined value.

[0201] The video decoder may then decode the current block based on the prediction block (454). For example, in an example where the video decoder is the video encoder 200, as part of encoding the current block, the video encoder 200 (e.g., the residual generation unit 204 of the video encoder 200) may generate residual data indicating differences between samples of the second color component of the current block and corresponding samples of the prediction block for the second color component of the current block. As part of decoding the current block, the video decoder 300 (e.g., the reconstruction unit 310) may reconstruct the second color component of the current block by adding the residual samples to the corresponding samples of the prediction block for the second color component of the current block.

[0202] Fig.21is a flowchart illustrating example operation of a video encoder in accordance with one or more techniques of this disclosure. Fig.21 The example operations of may be performed by video encoder 200 or video decoder 300. In some examples, intra prediction unit 226 of video encoder 200 or intra prediction unit 318 of video decoder 300 may perform Fig.21 Actions 500 to 506.

[0203] exist Fig.21 In an example of , a video decoder may determine a reference sample set (500) for a current sample of a current block of a picture of video data formatted in a YUV 4:2:2 chroma sampling format. For example, a video decoder may determine a reference sample set (500) for a current sample of a current block of a picture of video data formatted in a YUV 4:2:2 chroma sampling format. Fig.13 The reference sample set is determined in the manner described in the example of . For example, the reference sample set for the current sample may include one or more samples of a top sample, an upper left sample, and a left sample. The top sample is located directly above the current sample in the upper adjacent block, the upper left sample is located above and to the left of the upper left sample of the current block, and the left sample is located directly to the left of the current sample in the left adjacent block.

[0204] In addition, Fig.21 In the example of , the video decoder may determine weights for the reference samples (502). According to the techniques of the present disclosure, the video decoder may determine weights for the reference samples based on sample position distances rather than pixel number differences. When the current block is a chroma block in a picture formatted in a YUV 4:2:2 chroma sampling format, the sample position distance may be different from the pixel number difference because the sample position distance counts the positions of luma samples that are not present in the chroma block. Therefore, in Fig.13 In the example of , since the picture is formatted in a YUV 4:2:2 chroma sampling format and every other chroma sample is skipped in the horizontal direction in the YUV 4:2:2 chroma sampling format, as part of determining the weight for the reference sample, the video coder may multiply the horizontal distance in the number of pixels of the reference sample by 2. Since chroma samples are not skipped in the vertical direction in the YUV 4:2:2 chroma sampling format, the video coder does not multiply the vertical distance in the number of pixels from the current sample to the reference sample by 2. The video coder may determine the weight for the reference sample as the sum of the horizontal and vertical sample position distances from the current sample to the reference sample divided by the sum of the horizontal and vertical sample position distances from the current sample to each of the reference samples.

[0205] The video decoder may calculate a weighted average of the reference samples based on the weights (504). The video decoder may then include the weighted average of the reference samples in a prediction block for the current block (506). The video decoder may decode the current block based on the prediction block (508). For example, the video encoder 200 (e.g., the residual generation unit 204 of the video encoder 200) may generate residual data indicating a difference between samples of the current block and corresponding samples of the prediction block. To decode the current block based on the prediction block, the video decoder 300 (e.g., the reconstruction unit 310 of the video decoder 300) may reconstruct the current block by adding the residual data to the corresponding samples of the prediction block.

[0206] The following paragraphs provide a non-limiting list of examples that illustrate one or more techniques according to the present disclosure.

[0207] Example 1. A method of decoding video data, the method comprising: determining a set of wide-angle intra prediction directions based on a derived block size, the derived block size being a block size of a first color component of a current block of video data; using a wide-angle intra prediction direction in the set of wide-angle intra prediction directions to generate a prediction block for a second color component of the current block of video data, the second color component being different from the first color component; and decoding the current block based on the prediction block.

[0208] Example 2. A method for decoding video data, the method comprising: determining an intra-frame prediction mode based on a mapping between intra-frame prediction angles of the first color component and the second color component based on intra-frame mode information of a first color component of a current block of video data, the second color component being different from the first color component; generating a prediction block for the second color component of the current block based on the intra-frame prediction mode; and decoding the current block based on the prediction block.

[0209] Example 3. The method of Example 2, wherein the first color component is a luma color component and the second color component is a chroma color component.

[0210] Example 4. The method according to any one of Examples 2-3, wherein: the first color component is a derived color component, and the second color component is a derived color component, and determining the intra-frame prediction mode includes: based on the derived component and the derived component not having the same possible set of intra-frame prediction directions, by scaling the intra-frame prediction angle of the derived component based on the horizontal sampling frequency ratio between the first color component and the second color component and the vertical sampling frequency ratio between the first color component and the second color component, mapping each intra-frame prediction direction of the derived component to the derived component.

[0211] Example 5. A method of decoding video data, the method comprising: determining a reference sample set for a current sample of a current block of video data formatted in a YUV 4:2:2 mode; determining weights for the reference samples, wherein determining the weights for the reference samples comprises: multiplying a horizontal distance of the reference samples in units of a number of pixels by 2; calculating a weighted average of the reference samples based on the weights; including the weighted average of the reference samples in a prediction block for the current block; and decoding the current block based on the prediction block.

[0212] Example 6. The method of any one of Examples 1-5, wherein the decoding comprises decoding.

[0213] Example 7. The method of any one of Examples 1-5, wherein decoding includes encoding.

[0214] Example 8. An apparatus for decoding video data, the apparatus comprising one or more units for performing the method according to any of Examples 1-5.

[0215] Example 9. The apparatus of Example 8, wherein the one or more units include one or more processors implemented in a circuit.

[0216] Example 10. The apparatus of any one of Examples 8 and 9, further comprising: a memory for storing video data.

[0217] Example 11. The apparatus of any of Examples 8-10, further comprising: a display configured to display the decoded video data.

[0218] Example 12. The device of any of Examples 8-11, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0219] Example 13. The apparatus of any of Examples 8-12, wherein the apparatus comprises a video decoder.

[0220] Example 14. The apparatus of any of Examples 8-12, wherein the apparatus comprises a video encoder.

[0221] Example 15. A computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the method of any of Examples 1-5.

[0222] Example 16. A device for encoding video data, the device comprising means for performing the method according to any one of Examples 1-5.

[0223] It is to 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 described actions or events are necessary for the practice of the techniques). In addition, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

[0224] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or sent through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium or a communication medium, the communication medium including, for example, any medium that facilitates the transfer 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-temporary tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to obtain 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.

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

[0226] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Accordingly, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions 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, the techniques may be fully implemented in one or more circuits or logic elements.

[0227] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.

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

Claims

1. A method for decoding video data, the method include: Selecting a set of wide-angle intra prediction directions based on a size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determining an intra prediction direction for the luma block, wherein the intra prediction direction for the luma block is in the wide-angle intra prediction direction set; An intra prediction direction for a chroma block is determined based on the size of the luma block, wherein: The luminance block is co-located with the chrominance block in the picture, The chroma blocks have a different width / height ratio than the luma blocks, and The intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block; generating a prediction block for the luma block using the intra prediction direction for the luma block; generating a prediction block for the chroma block using the intra prediction direction for the chroma block; coding the luma block based on the prediction block for the luma block; and The chroma block is coded based on the prediction block for the chroma block.

2. The method according to claim 1, in, Selecting the wide-angle intra prediction direction set comprises: determining a first set of intra-prediction directions based on the size of the luma block; removing the first set of intra prediction directions from a second set of intra prediction directions, wherein the second set of intra prediction directions ranges from 45 degrees to -135 degrees; and The wide-angle intra prediction direction set is added to the second intra prediction direction set, wherein the wide-angle intra prediction direction set utilizes a mode index of the first intra prediction direction set.

3. The method according to claim 2, in: Decoding the chrominance block includes: encoding the chrominance block, The method further comprises: after adding the wide-angle intra prediction direction set to the second intra prediction direction set, selecting the intra prediction direction for the luma block from the second intra prediction direction set; and Determining the intra prediction direction for the chroma block includes determining the intra prediction direction for the chroma block such that the intra prediction direction for the chroma block is the same as the intra prediction direction for the luma block.

4. The method according to claim 1, in, Determining the intra prediction direction for the luma block includes determining an intra prediction mode indicated by a prediction information syntax element, wherein the intra prediction mode corresponds to the intra prediction direction for the luma block.

5. The method according to claim 1, in, The wide-angle intra prediction direction set includes one or more intra prediction directions exceeding 45 degrees or exceeding −135 degrees.

6. The method according to claim 1, in, Selecting the set of wide-angle intra-prediction directions for the chroma block includes a process of Versatile Video Coding (VVC) to determine the set of wide-angle intra-prediction directions based on a derivation from a block size.

7. The method according to claim 1, in: Decoding the luma block comprises decoding the luma block based on the prediction block for the luma block, and Coding the chroma block includes decoding the chroma block based on the prediction block for the chroma block.

8. The method according to claim 7, in: Decoding the luma block based on the prediction block for the luma block comprises reconstructing the luma block based on the prediction block for the luma block and residual data for the luma block, and Decoding the chroma block based on the prediction block for the chroma block includes reconstructing the chroma block based on the prediction block for the chroma block and residual data for the chroma block.

9. The method according to claim 1, in: Decoding the luma block comprises encoding the luma block based on the prediction block for the luma block, and Coding the chroma block includes encoding the chroma block based on the prediction block for the chroma block.

10. The method according to claim 9, in: Encoding the luma block comprises generating residual data for the luma block based on samples of the luma block and the prediction block for the luma block, and Encoding the chroma block includes generating residual data for the chroma block based on samples of the chroma block and the prediction block for the chroma block.

11. A device for decoding video data, the device include: A memory for storing the video data; as well as One or more processors implemented in circuitry, wherein the one or more processors are configured to: Selecting a set of wide-angle intra prediction directions based on a size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determining an intra prediction direction for the luma block, wherein the intra prediction direction for the luma block is in the wide-angle intra prediction direction set; An intra prediction direction for a chroma block is determined based on the size of the luma block, wherein: The luminance block is co-located with the chrominance block in the picture, The chroma blocks have a different width / height ratio than the luma blocks, and The intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block; generating a prediction block for the luma block using the intra prediction direction for the luma block; generating a prediction block for the chroma block using the intra prediction direction for the chroma block; coding the luma block based on the prediction block for the luma block; and The chroma block is coded based on the prediction block for the chroma block.

12. The device according to claim 11, in, To select the wide-angle intra prediction direction set, the one or more processors are configured to: determining a first set of intra-prediction directions based on the size of the luma block; removing the first set of intra prediction directions from a second set of intra prediction directions, wherein the second set of intra prediction directions ranges from 45 degrees to -135 degrees; and The wide-angle intra prediction direction set is added to the second intra prediction direction set, wherein the wide-angle intra prediction direction set utilizes a mode index of the first intra prediction direction set.

13. The device according to claim 12, in: The one or more processors are further configured to: select the intra prediction direction for the luma block from the second set of intra prediction directions after adding the wide angle set of intra prediction directions to the second set of intra prediction directions; as well as In order to determine the intra-frame prediction direction for the chroma block, the one or more processors are configured to: determine the intra-frame prediction direction for the chroma block so that the intra-frame prediction direction for the chroma block is the same as the intra-frame prediction direction for the luminance block.

14. The device according to claim 11, in, To determine the intra prediction direction for the luma block, the one or more processors determine an intra prediction mode indicated by a prediction information syntax element, wherein the intra prediction mode corresponds to the intra prediction direction for the luma block.

15. The device according to claim 11, in, The wide-angle intra prediction direction set includes one or more intra prediction directions exceeding 45 degrees or exceeding −135 degrees.

16. The device according to claim 11, in, The one or more processors perform a process of Versatile Video Coding (VVC) to determine the set of wide-angle intra prediction directions based on derivation from a block size.

17. The device according to claim 11, in: The one or more processors decode the luma block based on the prediction block for the luma block, and The one or more processors decode the chroma block based on the prediction block for the chroma block.

18. The device according to claim 17, in: To decode the luma block based on the prediction block for the luma block, the one or more processors are configured to: reconstruct the luma block based on the prediction block for the luma block and residual data for the luma block, and To decode the chroma block based on the prediction block for the chroma block, the one or more processors are configured to reconstruct the chroma block based on the prediction block for the chroma block and residual data for the chroma block.

19. The device according to claim 11, in: The one or more processors are configured to: encode the luma block based on the prediction block for the luma block, and The one or more processors are configured to encode the chroma block based on the prediction block for the chroma block.

20. The device according to claim 19, in: To encode the luma block, the one or more processors are configured to: generate residual data for the luma block based on samples of the luma block and the prediction block for the luma block, and To encode the chroma block, the one or more processors are configured to generate residual data for the chroma block based on samples of the chroma block and the prediction block for the chroma block.

21. The device according to claim 11, further comprising: include: A display configured to display the decoded video data.

22. The apparatus according to claim 11, in, The device includes one or more of a camera, a desktop computer, a mobile device, or a broadcast receiver device.

23. A device for decoding video data, the device include: means for selecting a set of wide-angle intra prediction directions based on a size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; means for determining an intra prediction direction for the luma block, wherein the intra prediction direction for the luma block is in the set of wide-angle intra prediction directions; means for determining an intra prediction direction for a chroma block based on the size of the luma block, wherein: The luminance block is co-located with the chrominance block in the picture, The chroma blocks have a different width / height ratio than the luma blocks, and The intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block; means for generating a prediction block for the luma block using the intra prediction direction for the luma block; means for generating a prediction block for the chroma block using the intra prediction direction for the chroma block; means for coding the luma block based on the prediction block for the luma block; and Means for coding the chroma block based on the prediction block for the chroma block.

24. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: Selecting a set of wide-angle intra prediction directions based on a size of a luma block of a picture having a YUV 4:2:2 chroma sampling format; determining an intra prediction direction for the luma block, in, The intra prediction direction for the luma block is in the wide-angle intra prediction direction set; An intra prediction direction for a chroma block is determined based on the size of the luma block, wherein: The luminance block is co-located with the chrominance block in the picture, The chroma blocks have a different width / height ratio than the luma blocks, and The intra prediction direction for the chroma block is guaranteed to have the intra prediction direction for the luma block; generating a prediction block for the luma block using the intra prediction direction for the luma block; generating a prediction block for the chroma block using the intra prediction direction for the chroma block; coding the luma block based on the prediction block for the luma block; and The chroma block is coded based on the prediction block for the chroma block.