Video decoding in triangular prediction unit mode using different chroma formats

By uniformly using the weight set of the YUV 4:2:0 format and disabling intra-frame reference sample smoothing, the chroma components of the YUV 4:4:4 and YUV 4:2:0 formats are processed, solving the differences in the existing technology. The chroma format handles high-complexity issues and improves the efficiency of video encoding and decoding.

CN113557723BActive Publication Date: 2024-08-30QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202080019606.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-26
Publication Date
2024-08-30
Estimated Expiration
2040-02-26

AI Technical Summary

Technical Problem

Existing video encoding and decoding technologies have high complexity when processing different chroma formats, which increases the time and power consumption of decoding video data.

Method used

By uniformly using the weight set for the YUV 4:2:0 format, pixel blending the chroma components of the YUV 4:4:4 and YUV 4:2:0 formats to generate prediction blocks and disabling intra-frame reference sample smoothing, Simplified handling of different colorimetric formats.

Benefits of technology

It reduces the complexity of video data processing by video encoders and decoders, reduces time and power consumption, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113557723B_ABST
    Figure CN113557723B_ABST
Patent Text Reader

Abstract

A device for processing video data includes: a memory configured to store video data and one or more processors implemented in a circuit. The one or more processors are configured to: generate a decoding unit for a chrominance component of a block of video data. The one or more processors are configured to: split the decoding unit for the chrominance component into a first triangle partitioning and a second triangle partitioning. The one or more processors are configured to: when the one or more processors generate the decoding unit for the chrominance component in a YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chrominance component in a YUV 4:4:4 format, apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chrominance component of the block of video data.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Application No. 16 / 800,832, filed on February 25, 2020, which claims the benefit of U.S. Provisional Patent Application 62 / 819,368, filed on March 15, 2019, the entire contents of which are hereby incorporated by reference. Technical Field

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

[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radiotelephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. Video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information by implementing such video coding techniques.

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

[0005] In general, this disclosure describes techniques for supporting different chroma formats in a video codec.

[0006] In one example, a method for processing video data includes: generating, by one or more processors implemented in a circuit, a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; splitting, by the one or more processors, the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on enabling a triangle prediction unit mode; and applying pixel blending by the one or more processors using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, wherein applying pixel blending includes: using the weight set for the YUV 4:2:0 format to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively.

[0007] In another example, an apparatus for processing video data includes: a memory configured to store video data; and one or more processors implemented in circuitry. The one or more processors are configured to: generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on enabling a triangle prediction unit mode; and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component, wherein, in order to apply pixel blending, the one or more processors are configured to: use the weight set for the YUV 4:2:0 format to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively.

[0008] In one example, a computer-readable storage medium includes instructions stored thereon, which when executed cause one or more processors to perform the following operations: generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on enabling a triangle prediction unit mode; and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component, wherein the instructions that cause the one or more processors to apply pixel blending cause the one or more processors to perform the following operations: determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively, using the weight set for the YUV 4:2:0 format.

[0009] In another example, a device for decoding video data includes: a unit for generating a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; a unit for splitting the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on enabling a triangle prediction unit mode; and a unit for applying pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, wherein the unit for applying pixel blending includes: a unit for determining a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively, using the weight set for the YUV 4:2:0 format.

[0010] In one example, a method of processing video data includes: obtaining, by one or more processors implemented in a circuit, unfiltered reference samples for a region of a picture, wherein the one or more processors are configured to disable intra-reference sample smoothing of the unfiltered reference samples for chroma samples in a YUV 4:2:0 format and a YUV 4:4:4 format; and generating, by the one or more processors, chroma samples of a predicted block of a block of the picture based on the unfiltered reference samples when generating the chroma components in the YUV 4:2:0 format and when generating the chroma components in the YUV 4:4:4 format.

[0011] In another example, a device for processing video data includes: a memory configured to store video data; and one or more processors implemented in a circuit and configured to: obtain unfiltered reference samples for a region of a picture of the video data, wherein the one or more processors are configured to disable intra-reference sample smoothing of the unfiltered reference samples for chroma samples in YUV 4:2:0 format and YUV 4:4:4 format; and when generating the chroma components in the YUV 4:2:0 format, and when generating the chroma components in the YUV 4:4:4 format, use intra-prediction to generate chroma samples of a predicted block for a block of the picture based on the unfiltered reference samples.

[0012] In one example, a computer-readable storage medium includes instructions stored thereon, which when executed cause one or more processors to perform the following operations: obtain unfiltered reference samples for a region of a picture of video data, wherein the instructions also cause the one or more processors to disable intra-frame reference sample smoothing of the unfiltered reference samples for chroma samples in YUV 4:2:0 format and YUV4:4:4 format; and when generating the chroma components in the YUV 4:2:0 format, and when generating the chroma components in the YUV 4:4:4 format, use intra-frame prediction to generate chroma samples of a prediction block for a block of the picture based on the unfiltered reference samples.

[0013] In another example, an apparatus for decoding video data includes: a unit for obtaining unfiltered reference samples for a region of a picture; and a unit for generating chroma samples of a prediction block for a block of the picture based on the unfiltered reference samples using intra prediction when generating the chroma components in the YUV 4:2:0 format and when generating the chroma components in the YUV 4:4:4 format.

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

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

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

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

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

[0019] Figure 5A is a conceptual diagram illustrating a first example of splitting a coding unit into a first triangle partition and a second triangle partition based on inter prediction according to the technology of the present disclosure.

[0020] Figure 5B is a conceptual diagram illustrating a second example of splitting a coding unit into a first triangle partition and a second triangle partition based on inter prediction according to the technology of the present disclosure.

[0021] Figure 6 is a conceptual diagram illustrating pixel blending using one set of weights according to techniques of this disclosure.

[0022] Fig. 7A is a diagram showing a method for using the technology according to the present disclosure Figure 6 Conceptual diagram of further details of the first triangle segmentation of pixel blending.

[0023] Figure 7B is a diagram showing a method for using the technology according to the present disclosure Figure 6 Conceptual diagram of further details of the second triangle segmentation of pixel blending.

[0024] Figure 7C is to illustrate the use of the technology according to the present disclosure Figure 6 A conceptual diagram showing further details of the blocks formed by pixel blending.

[0025] Figure 8 is a flowchart illustrating an example method for encoding a current block according to techniques of this disclosure.

[0026] Fig. 9 is a flow chart illustrating an example method for decoding a current block of video data, in accordance with techniques of this disclosure.

[0027] Fig.10 is a flow chart illustrating an example process for pixel blending chroma components for a block of video data using a set of weights for a YUV 4:2:0 sampling format, in accordance with techniques of this disclosure.

[0028] Fig.11 is a flow chart illustrating an example process for generating chroma samples for a prediction block using intra prediction. DETAILED DESCRIPTION

[0029] As described in more detail below, the present disclosure describes example techniques for improving encoding and / or decoding of chroma components of different formats. For example, when using a triangular prediction unit (PU) mode, a video coder (e.g., a video encoder or a video decoder) may split the PU into two triangular partitions. In this example, the video coder may generate motion compensated triangular partitions and combine the motion compensated triangular partitions using a set of weights based on the chroma format. For example, when the chroma components are in YUV 4:4:4 format, the video coder may apply pixel blending using a first set of weights, and when the chroma components are in YUV 4:2:0 format, the video coder may apply a second set of weights that is different from the first set of weights. However, using different sets of weights for different chroma formats may increase the complexity of generating the chroma components.

[0030] According to the technology of the present disclosure, a video decoder (e.g., a video encoder or a video decoder) can be configured to unify the processing of chroma components for different chroma formats. For example, when the chroma components are in YUV 4:4:4 format, the video decoder can use a weight set for YUV 4:2:0 format to apply pixel blending, and when the chroma components are in YUV 4:2:0 format, the video decoder can apply a weight set for YUV 4:2:0 format.

[0031] In some examples, a video decoder (e.g., a video encoder or a video decoder) may be configured to use unfiltered reference samples to generate chroma samples for a prediction block for a block of video data when intra prediction is used and when the chroma components are in YUV 4:2:0 format. In this example, the video decoder may be configured to use filtered reference samples to generate chroma samples for a prediction block for a block of video data when intra prediction is used and when the chroma components are in YUV 4:4:4 format. However, using different reference samples for different chroma formats may increase the complexity of generating chroma components.

[0032] According to the techniques of the present disclosure, a video decoder (e.g., a video encoder or a video decoder) may be configured to unify processing of chroma components for different chroma formats. For example, the video decoder may be configured to disable intra-frame reference sample smoothing when the chroma component is in YUV 4:2:0 format and when the chroma component is in YUV 4:4:4 format. For example, when the chroma component is in YUV 4:2:0 format and when the chroma component is in YUV 4:4:4 format, the video decoder may use unfiltered reference samples to generate chroma samples for a prediction block of a block of video data.

[0033] The techniques described herein for unifying the processing of chrominance components can be applied to any item in the efficient decoding tools in existing video codecs (such as HEVC (High Efficiency Video Coding)) or video codecs under development (such as VVC (Versatile Video Coding)) or any future video coding standards. Although examples describing techniques related to weighted prediction are described with respect to ongoing work in HEVC and Versatile Video Coding (VVC), the techniques described herein can be applied to other existing video codecs and / or future video coding standards.

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

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

[0036] exist Figure 1In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Target device 116 comprises input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of target device 116 can be configured to apply the technology for unifying the weight information for different chroma formats. Therefore, source device 102 represents an example of video encoding device, and target device 116 represents an example of video decoding device. In other examples, source device and target device can include other components or arrangements. For example, source device 102 can receive video data from an external video source such as an external camera. Similarly, target device 116 can be connected to an external display device, rather than including an integrated display device.

[0037] like Figure 1 The system 100 shown is only one example. In general, any digital video encoding and / or decoding device can perform techniques for determining weight information for a first chroma format, determining weight information for a second chroma format different from the first chroma format to correspond to the weight information for the first chroma format, and generating prediction information based on the weight information for the first chroma format. The source device 102 and the target device 116 are only examples of such decoding devices in which the source device 102 generates decoded video data for transmission to the target device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices (specifically, video encoders and video decoders), respectively. In some examples, the devices 102 and 116 can operate in a substantially symmetrical manner so that each of the devices 102 and 116 includes video encoding and decoding components. Thus, system 100 may support one-way or two-way video transmission between device 102 and device 116, eg, for video streaming, video playback, video broadcasting, or video telephony.

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

[0039] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memories. In some examples, the memory 106, memory 120 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memory 106, memory 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. In addition, the memory 106, memory 120 can store encoded video data, for example, output from the video encoder 200 and input to the video decoder 300. In some examples, a portion of memory 106, memory 120 may be allocated as one or more video buffers, eg, to store raw, decoded, and / or encoded video data.

[0040] 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 target device 116. In one example, the computer-readable medium 110 represents a communication medium so that the source device 102 can directly send the encoded video data to the target 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, and the input interface 122 may modulate the received transmission signal according to a communication standard (such as a wireless communication protocol). The communication medium may include any wireless communication medium or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a part of a packet-based network, such as a local area network, a wide area network, or a global network (such as the Internet). The communication medium may include a router, a switch, a base station, or any other equipment that may be used to facilitate communication from the source device 102 to the target device 116.

[0041] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 116. Similarly, target device 116 may access the encoded data from storage device 116 via input interface 122. Storage device 116 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.

[0042] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102. Target device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to target device 116. File server 114 may represent a network server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Target device 116 may access the encoded video data from 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., DSL, cable modem, etc.) suitable for accessing the encoded video data stored on file server 114, or a combination of both. File server 114 and input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.

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

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

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

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

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

[0048] The video encoder 200 and the video decoder 300 may operate in accordance with a video coding standard, such as ITU-T H.265 (also known as High Efficiency Video Coding (HEVC)) or an extension thereof, such as multi-view and / or scalable video coding extensions. Alternatively, the video encoder 200 and the video decoder 300 may operate in accordance with other proprietary standards or industry standards, such as the Joint Exploration Test Model (JEM) or the ITU-T H.266 standard, also known as Versatile Video Coding (VVC). The latest draft of the VVC standard is described in "Versatile Video Coding (Draft 7)" by Bross et al., Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 16th Meeting: Geneva, Switzerland, October 1-11, 2019, JVET-P2001-v9 (hereinafter "VVC Draft 7"). However, the techniques of this disclosure are not limited to any particular coding standard.

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

[0050] YUV 4:4:4 may refer to a YUV representation in which each of the three components (e.g., Y, Cb, Cr) has the same sampling rate and no chroma subsampling. For example, the luma (e.g., Y) component of YUV 4:4:4 may have a first resolution. In this example, the first chroma component (e.g., Cb) component of YUV 4:4:4 may have a first resolution of the luma component, and the second chroma component (e.g., Cr) component of YUV 4:4:4 may have a first resolution of the luma component. In contrast, YUV 4:2:0 may refer to a YUV representation in which each of the chroma components (e.g., Cb, Cr) has a half sampling rate of the luma component in both the vertical and horizontal directions, and thus YUV 4:2:0 may have chroma subsampling. For example, the luma (e.g., Y) component of YUV 4:4:4 may have a first resolution. In this example, a first chroma component (e.g., Cb) component of YUV 4:4:4 may have a second resolution (e.g., vertically and horizontally) that is half the first resolution of the luma component, and a second chroma component (e.g., Cr) component of YUV 4:4:4 may have a second resolution (e.g., vertically and horizontally) that is half the first resolution of the luma component and the same as the second resolution of the first chroma component. Although the present disclosure cites YUV 4:4:4 and YUV 4:2:0 as examples of chroma formats, other examples may use other formats (e.g., YUV 4:2:2, etc.).

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

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

[0053] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide the CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure removes the concept of multiple partition types, such as the separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).

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

[0055] 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 both chroma components (or two QTBT / MTT structures for respective chroma components).

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

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

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

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

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

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

[0062] 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 is used among various available inter-frame prediction modes and motion information for the corresponding mode. For unidirectional inter-frame prediction or bidirectional inter-frame prediction, for example, the video encoder 200 may encode motion vectors using improved motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.

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

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

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

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

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

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

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

[0070] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) sent by the signal to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the initial block. That is, for example, the video decoder 300 may combine the prediction block and the residual block to decode an unfiltered reconstructed block for a block of video data. In some examples, the video decoder 300 may store the unfiltered reconstructed block at the DPB 314. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the block. That is, for example, the video decoder 300 may generate a filtered reconstructed block for a block of video data, wherein generating the filtered reconstructed block includes performing one or more filtering operations on the unfiltered reconstructed block. In this example, the video decoder 300 may store the filtered reconstructed blocks at the DPB 314 .

[0071] According to the technology of the present disclosure, the video encoder 200 and / or the video decoder 300 may be configured to generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In this example, the video encoder 200 or the video decoder 300 may be configured to split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on the enabling of the triangle prediction unit mode. The video encoder 200 or the video decoder 300 may be configured to apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when one or more processors generate a decoding unit for the chroma component in the YUV 4:2:0 format, and when one or more processors generate a decoding unit for the chroma component in the YUV 4:4:4 format. Using a single set of weights for generating coding units for chrominance components for YUV 4:2:0 format and YUV 4:4:4 format can reduce the complexity of decoding video data, which can reduce the amount of time the video encoder 200 and the video decoder 300 take to decode video data and / or reduce power consumption of the video encoder 200 and the video decoder 300.

[0072] To apply pixel blending, the video encoder 200 or the video decoder 300 may be configured to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively, using a weight set for the YUV4:2:0 format.

[0073] In some examples, the video encoder 200 and / or the video decoder 300 may be configured to obtain unfiltered reference samples for a region of a picture. In this example, the video encoder 200 and / or the video decoder 300 may be configured to disable intra-reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV 4:4:4 format. The video encoder 200 and / or the video decoder 300 may be configured to generate chroma samples of a prediction block for a block of a picture based on the unfiltered reference samples when generating chroma components in YUV 4:2:0 format and when generating chroma components in YUV 4:4:4 format. Disabling intra-frame reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV 4:4:4 format can reduce the complexity of decoding video data, which can reduce the amount of time the video encoder 200 and the video decoder 300 take to decode the video data and / or reduce the power consumption of the video encoder 200 and the video decoder 300.

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

[0075] Figure 2A and Figure 2B1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splits, and dashed lines indicate binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates 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. Therefore, 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., solid line) of the QTBT structure 130, and syntax elements (such as split information) for the prediction tree level (i.e., 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.

[0076] Generally speaking, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first level and the second level of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in a sample), 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).

[0077] 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".

[0078] 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 leaf quadtree node is 128x128, since the size exceeds MaxBTSize (i.e., 64x64 in this example), the leaf quadtree node will not be further split by the binary tree. Otherwise, the leaf quadtree 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), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical 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.

[0079] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3 The above description is provided for the purpose of explanation and should not be considered as limiting the techniques broadly exemplified and described in the present disclosure. For the purpose of explanation, the present disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing JEM, VVC (ITU-T H.266) video coding standard. However, the techniques of the present disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.

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

[0081] 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 video data stored in video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for the video encoder 200 to use for predicting subsequent video data. Video data memory 230 and DPB 218 can be formed by any one of various memory devices, such as dynamic random access memory (DRAM), which includes 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.

[0082] In the present disclosure, references to the video data memory 230 should not be interpreted as being limited to memory internal to the video encoder 200 (unless explicitly described as such) or memory external to the video encoder 200 (unless explicitly described as such). Rather, references to the video data memory 230 should be understood as a reference memory storing video data that the video encoder 200 receives 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 .

[0083] Show Figure 3 The various units of the video encoder 200 are described to assist in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is pre-set for the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.

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

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

[0086] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. For example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

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

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

[0089] In some examples, the mode selection unit 202 may be configured to generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV4:2:0 format. In this example, the mode selection unit 202 may be configured to split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on the enabling of the triangle prediction unit mode. The mode selection unit 202 may be configured to apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when one or more processors generate a decoding unit for the chroma component in the YUV 4:2:0 format, and when one or more processors generate a decoding unit for the chroma component in the YUV 4:4:4 format. In this way, the mode selection unit 202 can use a weight set for both the YUV 4:2:0 format and the YUV 4:4:4 format, which can help unify the processing of different chroma formats. Unifying the processing of different chroma formats can help reduce codec processing overhead.

[0090] To apply pixel blending, the mode selection unit 202 may be configured to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition using a set of weights for the YUV 4:2:0 format. An example process for determining the weighted average is explained in further detail below (e.g., see Figures 7A-7C ).

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

[0092] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, and for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate values ​​for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by respective motion vectors, and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

[0093] 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 directional 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 DC mode, the intra prediction unit 226 can calculate the average of samples adjacent to the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0094] The intra prediction unit 226 may be configured to obtain unfiltered reference samples for a region of a picture. The intra prediction unit 226 may be configured to disable intra reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV 4:4:4 format. When intra reference sample smoothing is disabled, the intra prediction unit 226 may use only unfiltered reference samples for chroma samples. The intra prediction unit 226 may be configured to generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples when generating chroma components in YUV 4:2:0 format and when generating chroma components in YUV 4:4:4 format using intra prediction. That is, for example, for chroma components in both YUV 4:4:4 format and YUV 4:4:4 format, the intra prediction unit 226 may use only unfiltered reference samples for chroma samples. In this manner, the complexity of encoding and decoding video data may be reduced, which may reduce the amount of time the intra prediction unit 226 takes to code (eg, encoder or decode) video data and / or reduce power consumption of the intra prediction unit 226 .

[0095] The techniques described herein for disabling intra-reference sample smoothing of unfiltered reference samples for chroma samples may be used in combination with or alone the techniques described herein for generating a decoding unit for chroma components in a YUV 4:2:0 format. For example, the intra-prediction unit 226 may be configured to obtain unfiltered reference samples for a region of a picture in combination with the mode selection unit 202 generating a decoding unit for chroma components for a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In some examples, the intra-prediction unit 226 may be configured to obtain unfiltered reference samples for a region of a picture in combination, and the mode selection unit 202 avoids generating a decoding unit for chroma components for a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format.

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

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

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

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

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

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

[0102] 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 coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients generated by the transform processing unit 206.

[0103] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. 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 free mode selection unit 202 to generate a reconstructed block. That is, for example, the reconstruction unit 214 may combine the prediction block and the residual block to decode an unfiltered reconstructed block for a block of video data. In some examples, the reconstruction unit 214 may store the unfiltered reconstructed block at the DPB 218.

[0104] The filter unit 216 may perform one or more filter operations on the reconstructed block. For example, the filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operation of the filter unit 216 may be skipped. That is, for example, the filter unit 216 may generate a filtered reconstructed block for a block of video data, wherein generating the filtered reconstructed block includes performing one or more filter operations on the unfiltered reconstructed block. In this example, the filter unit 216 may store the filtered reconstructed block at the DPB 218.

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

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

[0107] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or picture. In particular, the entropy encoding unit 220 may output a bitstream.

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

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

[0110] The video encoder 200 represents an example of a device configured to encode video data, the device including: a memory configured to store video data, and one or more processors implemented in circuits and configured to: generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In this example, the video encoder 200 can be configured to: split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on the enabling of the triangle prediction unit mode. The video encoder 200 can be configured to: when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, use the weight set for the YUV 4:2:0 format to apply pixel blending to generate a prediction block for the chroma component. Therefore, the video encoder 200 can use a set of weights for both the YUV 4:2:0 format and the YUV 4:4:4 format, which can help unify the processing of different chroma formats. Unifying the processing of different chroma formats can help reduce codec processing overhead. To apply pixel blending, the video encoder 200 can be configured to: use a set of weights for the YUV 4:2:0 format to determine a weighted average of co-located motion compensated pixels of the first triangle segmentation and the second triangle segmentation based on motion information of the first triangle segmentation and the second triangle segmentation, respectively.

[0111] In some examples, the video encoder 200 represents an example of a device configured to encode video data, the device including: a memory configured to store video data, and one or more processors implemented in a circuit and configured to: obtain unfiltered reference samples for a region of a picture. In this example, the video encoder 200 may be configured to: disable intra-frame reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV 4:4:4 format. The video encoder 200 may be configured to: when generating chroma components in YUV 4:2:0 format, and when generating chroma components in YUV 4:4:4 format, use intra-frame prediction to generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples. That is, for example, for chroma components in both YUV 4:4:4 format and YUV 4:4:4 format, the video encoder 200 may use only unfiltered reference samples for chroma samples. In this manner, the complexity of encoding and decoding video data may be reduced, which may reduce the amount of time video encoder 200 takes to code (e.g., encode or decode) video data and / or reduce power consumption of video encoder 200. The techniques described herein for disabling intra reference sample smoothing for unfiltered reference samples for chroma samples may be used in combination with or alone the techniques described herein for generating coding units for chroma components in a YUV 4:2:0 format.

[0112] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 It is provided for the purpose of explanation and does not limit the techniques as widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 300 according to the techniques of JEM, VVC (ITU-T H.266 under development), and HEVC. However, the techniques of this disclosure can be performed by video decoding devices configured for other video decoding standards.

[0113] exist Figure 4In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or in processing circuitry. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.

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

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

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

[0117] Show Figure 4 Various units are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Figure 3 Similarly, a fixed-function circuit refers to a circuit that provides a specific function and is pre-set for the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provides flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. A fixed-function circuit can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.

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

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

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

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

[0122] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karunan-Loewy transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.

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

[0124] In some examples, the prediction processing unit 304 may be configured to generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV4:2:0 format. In this example, the prediction processing unit 304 may be configured to split the decoding unit for the chroma component into a first triangle partition and a second triangle partition based on the enabling of the triangle prediction unit mode. The prediction processing unit 304 may be configured to apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when the prediction processing unit 304 generates a decoding unit for the chroma component in the YUV4:2:0 format and when the prediction processing unit 304 generates a decoding unit for the chroma component in the YUV4:4:4 format. In this way, the prediction processing unit 304 can use a weight set for both the YUV 4:2:0 format and the YUV 4:4:4 format, which can help unify the processing of different chroma formats. Unifying the processing of different chroma formats can help reduce codec processing overhead.

[0125] To apply pixel blending, the prediction processing unit 304 may be configured to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively, using a set of weights for the YUV 4:2:0 format. An example process for determining the weighted average is explained in further detail below (e.g., see Figures 7A-7C ).

[0126] 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 substantially the same manner as the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in a manner similar to that described in the foregoing description. The intra prediction unit 318 may retrieve data of samples neighboring the current block from the DPB 314.

[0127] In some examples, the intra prediction unit 318 may be configured to obtain unfiltered reference samples for a region of a picture. In this example, the intra prediction unit 318 may be configured to disable intra reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV4:4:4 format. When intra reference sample smoothing is disabled, the intra prediction unit 318 may use only unfiltered reference samples for chroma samples. The intra prediction unit 318 may be configured to generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples when generating chroma components in YUV 4:2:0 format and when generating chroma components in YUV 4:4:4 format. That is, for example, for chroma components in both YUV 4:4:4 format and YUV 4:4:4 format, the intra prediction unit 318 may use only unfiltered reference samples for chroma samples. In this manner, the complexity of encoding and decoding video data may be reduced, which may reduce the amount of time the intra prediction unit 318 takes to code (eg, encoder or decode) video data and / or reduce power consumption of the intra prediction unit 318 .

[0128] The techniques described herein for disabling intra-frame reference sample smoothing of unfiltered reference samples for chroma samples may be used in combination with or alone the techniques described herein for generating decoding units for chroma components in YUV 4:2:0 format. For example, the intra-frame prediction unit 318 may be configured to obtain unfiltered reference samples for a region of a picture in combination with the prediction processing unit 304 generating decoding units for chroma components for blocks of video data in YUV 4:4:4 format or YUV 4:2:0 format. In some examples, the intra-frame prediction unit 318 may be configured to obtain unfiltered reference samples for a region of a picture in combination, and the prediction processing unit 304 avoids generating decoding units for chroma components for blocks of video data in YUV 4:4:4 format or YUV 4:2:0 format.

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

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

[0131] The video decoder 300 may store the reconstructed blocks in the DPB 314. As discussed above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output decoded pictures from the DPB 314 for display on a display device such as a Figure 1 Subsequent presentation on a display device 118).

[0132] In some examples, the video decoder 300 represents an example of a device configured to encode video data, the device comprising: a memory configured to store the video data, and one or more processors implemented in circuits and configured to: generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In this example, the video decoder 300 may be configured to: split the decoding unit for the chroma component into a first triangle partitioning and a second triangle partitioning based on enabling of a triangle prediction unit mode. The video decoder 300 may be configured to: when the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component. Therefore, the video decoder 300 can use a set of weights for both the YUV 4:2:0 format and the YUV 4:4:4 format, which can help unify the processing of different chroma formats. Unifying the processing of different chroma formats can help reduce codec processing overhead. To apply pixel blending, the video decoder 300 can be configured to determine a weighted average of co-located motion compensated pixels of the first triangle partitioning and the second triangle partitioning based on motion information of the first triangle partitioning and the second triangle partitioning, respectively, using a set of weights for the YUV 4:2:0 format.

[0133] In some examples, the video decoder 300 represents an example of a device configured to encode video data, the device including: a memory configured to store video data; and one or more processors implemented in a circuit and configured to: obtain unfiltered reference samples for a region of a picture. In this example, the video decoder 300 can be configured to: disable intra-frame reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and YUV 4:4:4 format. The video decoder 300 can be configured to: when generating chroma components in YUV 4:2:0 format, and when generating chroma components in YUV 4:4:4 format, use intra-frame prediction to generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples. That is, for example, for chroma components in both YUV 4:4:4 format and YUV 4:4:4 format, the video decoder 300 can use only unfiltered reference samples for chroma samples. In this manner, the complexity of decoding the video data may be reduced, which may reduce the amount of time the video decoder 300 takes to decode the video data and / or reduce power consumption of the video decoder 300. The techniques described herein for disabling intra reference sample smoothing for unfiltered reference samples for chroma samples may be used in combination with or alone the techniques described herein for generating coding units for chroma components in a YUV 4:2:0 format.

[0134] Figure 5A 4 is a conceptual diagram showing a first example of splitting a coding unit (CU) 429 into a first triangle partition 433 and a second triangle partition 435 based on inter-frame prediction according to the techniques of the present disclosure. Figure 5AIn an example, when inter-frame prediction is enabled and when the triangle prediction unit mode is enabled, the video decoder (e.g., the video encoder 200 or the video decoder 300) may split the decoding unit 429 into a first triangle partition 433 and a second triangle partition 435. Examples of the triangle prediction unit mode can be found, for example, in the following documents and elsewhere: J. Chen, Y. Ye, S. Kim, "Algorithm description for Versatile Video Coding and Test Model 4 (VTM 4)", Joint Video Exploration Group of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, JVET-M1002, January 2019. For example, based on the enabling of the triangle prediction unit mode, the video decoder may split the CU into two triangle partitions, and each partition in the partition has a reference index and a unidirectional motion vector. The video decoder may be configured to: combine the two motion compensated partitions into a block of prediction samples, and perform pixel blending on the edges of the split edges. In Figure 5A In the example of , the first triangle partition 433 includes the upper right corner sample of CU 429, and the second triangle partition 435 includes the lower left corner sample of CU 429.

[0135] In other words, for example, a video coder (e.g., video encoder 200 or video decoder 300) may generate a coding unit 429 for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In this example, the video coder may split the coding unit 429 for the chroma component into a first triangle partition 433 and a second triangle partition 435 based on enabling of the triangle prediction unit mode.

[0136] Figure 5B 43 is a conceptual diagram illustrating a second example of splitting the decoding unit 431 into the first triangle partition 434 and the second triangle partition 436 based on inter prediction according to the technology of the present disclosure.

[0137] For example, a video coder (e.g., video encoder 200 or video decoder 300) may generate a coding unit 431 for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format. In this example, the video coder may split the coding unit 431 for the chroma component into a first triangle partition 434 and a second triangle partition 436 based on enabling of the triangle prediction unit mode. Figure 5B In the example of , the first triangle partition 433 is arranged at the upper left corner of CU 429. Figure 5BIn the example of , the first triangle partition 434 includes the upper left sample of CU 431 , and the second triangle partition 435 includes the lower right sample of CU 431 .

[0138] Figure 6 2 is a conceptual diagram illustrating pixel blending using a weight set according to the techniques of the present disclosure. A video decoder (eg, video encoder 200 and / or video decoder 300) may be configured to use Figure 6 A weight set shown performs Figure 6 The video decoder may be configured to generate pixels in the mixed region by, for example, weighted averaging co-located motion compensated pixels based on motion information of two triangular partitions. As used herein, a co-located pixel may refer to a first pixel of a first partition (e.g., a first triangular partition) that is located at the same pixel position as a second pixel of a second partition (e.g., a second triangular partition). Figures 7A-7C Weighted average is further explained in .

[0139] That is, for example, a video coder (e.g., video encoder 200 or video decoder 300) may use a set of weights to apply pixel blending to generate a prediction block for a chrominance component of a block of video data. In this example, to apply pixel blending, the video coder may use a set of weights to determine a weighted average of co-located motion compensated pixels of a first triangle partition (shown as "P1") and a second triangle partition (shown as "P2") based on motion information of the first triangle partition (shown as "P1") and the second triangle partition (shown as "P2").

[0140] For example, Figure 6 As shown, a video decoder (e.g., video encoder 200 or video decoder 300) can determine the pixel value P of the pixel marked with "2" in the prediction block 537 for the luma component and / or the prediction block 538 for the luma component by calculating the corresponding value P for each pixel according to Equation 1.

[0141]

[0142] Wherein P1 is the first reference pixel value of a first co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "2" in this example, and wherein P2 is the second reference pixel value of a second co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "2" in this example.

[0143] like Figure 6As further shown, a video decoder (e.g., video encoder 200 or video decoder 300) may determine a pixel value P for a pixel marked with “4” in prediction block 537 for a luma component and / or prediction block 538 for a luma component by calculating a corresponding value P for each pixel according to Equation 2.

[0144]

[0145] Wherein P1 is the first reference pixel value of a first co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "4" in this example, and wherein P2 is the second reference pixel value of a second co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "4" in this example.

[0146] like Figure 6 As further shown, a video decoder (e.g., video encoder 200 or video decoder 300) may determine a pixel value P for a pixel marked with “7” in prediction block 537 for a luma component and / or prediction block 538 for a luma component by calculating a corresponding value P for each pixel according to Equation 3.

[0147]

[0148] Wherein P1 is the first reference pixel value of a first co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "7" in this example, and wherein P2 is the second reference pixel value of a second co-located motion compensated pixel in the first triangle partitioning that is co-located with the corresponding pixel labeled "7" in this example.

[0149] The values ​​"1" and "6" represent equations corresponding to equations 1 to 3. That is, the video coder (e.g., the video encoder 200 or the video decoder 300) can determine the pixel value P of the pixel marked with "1" in the prediction block 537 for the luma component and / or the prediction block 538 for the luma component by calculating the corresponding value P for each pixel according to equation 4.

[0150]

[0151] Wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of a first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the first triangle partitioning.

[0152] A video coder (e.g., video encoder 200 or video decoder 300) may determine the pixel value P of the pixel marked with “6” in prediction block 537 for the luma component and / or prediction block 538 for the luma component by calculating the corresponding value P for each pixel according to Equation 5.

[0153]

[0154] Wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of a first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the first triangle partitioning.

[0155] although Figure 6 The example shown shows an example set of weights {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} for luma and {7 / 8, 4 / 8, 1 / 8} for chroma, but other examples may use different weights. For example, there may be two sets of weights, and in each set, the chroma weights and luma weights may be defined separately:

[0156] • First set: {7 / 8, 6 / 8, 4 / 8, 2 / 8, 1 / 8} for luma, and {7 / 8, 4 / 8, 1 / 8} for chroma.

[0157] • Second set: {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} for luma and {6 / 8, 4 / 8, 2 / 8} for chroma.

[0158] For illustrative purposes only, refer to Fig. 7A -7C explains the second set of weight values ​​(eg, {6 / 8, 4 / 8, 2 / 8}).

[0159] Fig. 7A is a diagram showing a method for using the technology according to the present disclosure Figure 6 639. As shown, the first triangle partition 639 includes co-located motion compensated pixels A, B, and C of the first triangle partition 639. For example, a video coder (e.g., video encoder 200 or video decoder 300) may use motion information (e.g., unidirectional motion vectors) for the first triangle partition 639 to generate the co-located motion compensated pixels A, B, and C of the first triangle partition 639. In this example, the video coder may not apply weighted averaging to the pixels in the first pixel group 642.

[0160] Figure 7B is a diagram showing a method for using the technology according to the present disclosure Figure 6643. As shown, the second triangle partition 640 includes co-located motion compensated pixels A, B, and C of the second triangle partition 640. For example, a video coder (e.g., video encoder 200 or video decoder 300) may use motion information (e.g., unidirectional motion vectors) for the second triangle partition 640 to generate the co-located motion compensated pixels A, B, and C of the second triangle partition 640. In this example, the video coder may not apply weighted averaging to the pixels in the second pixel group 643.

[0161] Figure 7C is to illustrate the use of the technology according to the present disclosure Figure 6 641. In this example, a video coder (e.g., video encoder 200 or video decoder 300) may determine a weighted average of co-located motion compensated pixels of first triangle partition 639 and second triangle partition 640 based on motion information of first triangle partition 639 and second triangle partition 640.

[0162] exist Figure 7C In the example of , the video decoder (e.g., the video encoder 200 or the video decoder 300) can use a second set of weight values ​​(e.g., {6 / 8, 4 / 8, 2 / 8} for chrominance). For example, the video decoder can determine the pixel value P of the pixel 'A' of the prediction block 641 by calculating the pixel value P according to Equation 6.

[0163]

[0164] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'A' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'A' of the second triangle segmentation 640.

[0165] The video coder (eg, the video encoder 200 or the video decoder 300 ) may determine the pixel value P of the pixel 'B' of the prediction block 641 by calculating the pixel value P according to Equation 7.

[0166]

[0167] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'B' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'B' of the second triangle segmentation 640.

[0168] The video coder (eg, the video encoder 200 or the video decoder 300 ) may determine the pixel value P of the pixel 'C' of the prediction block 641 by calculating the pixel value P according to Equation 8.

[0169]

[0170] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'C' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'C' of the second triangle segmentation 640.

[0171] In some examples, the video decoder (e.g., video encoder 200 or video decoder 300) can use a first set of weight values ​​(e.g., {7 / 8, 4 / 8, 1 / 8} for chrominance). For example, the video decoder can determine the pixel value P of pixel 'A' of prediction block 641 by calculating the pixel value P according to Equation 9.

[0172]

[0173] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'A' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'A' of the second triangle segmentation 640.

[0174] The video coder (eg, the video encoder 200 or the video decoder 300 ) may determine the pixel value P of the pixel 'B' of the prediction block 641 by calculating the pixel value P according to Equation 10.

[0175]

[0176] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'B' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'B' of the second triangle segmentation 640.

[0177] The video coder (eg, the video encoder 200 or the video decoder 300 ) may determine the pixel value P of the pixel 'C' of the prediction block 641 by calculating the pixel value P according to Equation 11.

[0178]

[0179] Where P1 is the first co-located motion compensated pixel of the first triangle partition 639 (eg, Fig. 7A 'C' of the first triangle partition 639), and wherein P2 is the second co-located motion compensation pixel of the second triangle partition 640 (eg, Figure 7B The second reference pixel value of 'C' of the second triangle segmentation 640.

[0180] In some video decoders, when the YUV 4:4:4 format is used, the weights of luma and chroma can be unified. As such, if a video encoder (e.g., video encoder 200) encodes a video signal in the YUV 4:4:4 format, the video decoder (e.g., video encoder 200 or video decoder 300) can be configured to not use the chroma portion of each weight set and to apply the luma portion of each weight set to both luma edges and chroma edges.

[0181] In a video codec, samples used for intra prediction may be obtained from reconstructed regions of the same picture, and the obtained samples may be smoothed by applying a certain filter thereto to improve the quality of the prediction signal. For example, an example description of intra reference sample smoothing for HEVC may be found in: J. Lainema, F. Bossen, W. Han, J. Min, and K. Ugur, "Intra Coding of the HEVC Standard", IEEE Transactions on Circuits and Systems for Video Technology, Vol. 22, No. 12, pp. 1792-1801, December 2012. In some examples, the video encoder 200 or the video decoder 300 may be configured to use other intra reference sample smoothing examples.

[0182] In some VVC designs, when the chroma format is YUV 4:2:0, the chroma components will always use unfiltered reference samples. However, in the case of YUV 4:4:4, the chroma components are subject to the same rules as the luminance to determine whether filtered reference samples should be used. In other words, in some VVC designs, when the chroma components are to be generated in the YUV 4:2:0 format, the video encoder 200 or the video decoder 300 can be configured to always use unfiltered reference samples to generate the chroma components. In this example, when the chroma components are to be generated in the YUV 4:4:4 format, the video encoder 200 or the video decoder 300 can be configured to determine whether to use unfiltered reference samples or filtered reference samples to generate the chroma components.

[0183] For example, in response to determining that intra-frame reference sample smoothing is enabled for generating luma samples, a video decoder (e.g., video encoder 200 or video decoder 300) may be configured to perform one or more filtering operations on unfiltered reference samples to generate filtered reference samples. In this example, the video decoder may be configured to generate luma samples for blocks of a picture based on filtered reference samples using intra-frame prediction. In some examples, performing one or more filtering operations on unfiltered reference samples may include performing one or more deblocking operations on unfiltered reference samples.

[0184] As such, some VVC designs may handle different chroma formats differently in triangular PU mode and introduce additional complexity to the codec design. At the same time, the operations defined for the luma component may be more complex than those defined for the chroma components (e.g., Figure 6 As shown, the mixed area for luma has a width of three samples, while for chroma the mixed area is two samples).

[0185] According to the technology of the present disclosure, a video decoder (e.g., video encoder 200 or video decoder 300) can be configured to unify the processing of chroma components for different chroma formats. For example, for the triangular PU mode, the video decoder (encoder 200 or decoder 300) can be configured to use weights for YUV 4:2:0 chroma components instead of the weights for the luma components of the chroma components in the YUV 4:4:4 format. In the example of the current VVC draft, the two weight sets designed for the chroma components in the YUV 4:2:0 format are as follows:

[0186] 1){1, 4, 7}

[0187] 2){2, 4, 6}

[0188] In this example, the video decoder (e.g., video encoder 200 or video decoder 300) can be configured to process YUV 4:4:4 chroma components and YUV 4:2:0 chroma components identically. The video decoder can be configured to apply a combination of these two weight sets to the YUV 4:4:4 chroma components. For example, the video decoder can be configured to apply a weight set {1, 4, 7}, a weight set {2, 4, 6}, or a weight set {1, 4, 7} and {2, 4, 6}.

[0189] In other words, for example, when a video decoder (e.g., video encoder 200 or video decoder 300) generates a decoding unit for a chroma component in a YUV 4:2:0 format, and when the video decoder generates a decoding unit for a chroma component in a YUV 4:4:4 format, the video decoder can apply pixel blending using a weight set for the YUV 4:2:0 format to generate a prediction block for a chroma component of a block of video data. In this example, the video decoder can be configured to apply a weight set {1, 4, 7}, a weight set {2, 4, 6}, or a weight set {1, 4, 7} and {2, 4, 6}.

[0190] In some examples, applying pixel blending includes determining a weighted average, such as Figure 6 and Figures 7A-7C For example, a video decoder (e.g., video encoder 200 or video decoder 300) may be configured to determine a weighted average of co-located motion compensated pixels of a first triangle partition and a second triangle partition based on motion information of the first triangle partition and the second triangle partition using a set of weights for a YUV4:2:0 format.

[0191] An example of the weighted sample prediction process for the triangular merging mode is as follows.

[0192] The inputs to this process are:

[0193] – Two variables nCbW and nCbH, which specify the width and height of the current decoding block,

[0194] – two (nCbW) x (nCbH) arrays predSamplesLA and predSamplesLB,

[0195] – variable triangleDir, which specifies the direction of segmentation,

[0196] – The variable cIdx specifies the color component index.

[0197] The output of this process is a (nCbW)x(nCbH) array pbSamples of prediction sample values.

[0198] The variable nCbR is derived as follows:

[0199] nCbR=(nCbW>nCbH)? (nCbW / nCbH):(nCbH / nCbW)

[0200] (8-841)

[0201] The variable bitDepth is derived as follows:

[0202] – If cIdx is equal to 0, set bitDepth equal to BitDepth Y .

[0203] – Otherwise, set bitDepth equal to BitDepth C .

[0204] The variables shift1 and offset1 are derived as follows:

[0205] – Set the variable shift1 to Max(5,17-bitDepth).

[0206] – Set the variable offset1 equal to 1<<(shift1-1).

[0207] Depending on the values ​​of triangleDir, wS and cIdx, the prediction samples pbSamples[x][y] (where x=0...nCbW-1 and y=0...nCbH-1) are derived as follows:

[0208] – The variable wIdx is derived as follows:

[0209] – If cIdx is equal to 0 and triangleDir is equal to 0, the following applies:

[0210] wIdx=(nCbW>nCbH)? (Clip3(0,8,(x / nCbR-y)+4)) (8-842)

[0211] :(Clip3(0,8,(xy / nCbR)+4))

[0212] – Otherwise, if cIdx is equal to 0 and triangleDir is equal to 1, the following applies:

[0213] wIdx=(nCbW>nCbH)? (Clip3(0,8,(nCbH-1-x / nCbR-y)+4)) (8-843)

[0214] (Clip3(0,8,(nCbW-1-xy / nCbR)+4))

[0215] – Otherwise, if cIdx is greater than 0 and triangleDir is equal to 0, the following applies:

[0216] wIdx=(nCbW>nCbH)? (Clip3(0,4,(x / nCbR-y)+2)) (8-844)

[0217] :(Clip3(0,4,(xy / nCbR)+2))

[0218] – Otherwise (if cIdx is greater than 0 and triangleDir is equal to 1), the following applies:

[0219] wIdx=(nCbW>nCbH)? (Clip3(0,4,(nCbH-1-x / nCbR-y)+2))

[0220] (8-845)

[0221] (Clip3(0,4,(nCbW-1-xy / nCbR)+2))

[0222] – Use wIdx and cIdx as follows to derive the variable wValue that specifies the weight of the prediction sample:

[0223] wValue=(cIdx==0)? Clip3(0,8,wIdx):

[0224] Clip3(0,8,wIdx*2) (8-846)

[0225] – The predicted sample values ​​are derived as follows:

[0226] pbSamples[x][y]=Clip3(0,(1< <bitDepth)-1,

[0227] (predSamplesLA[x][y]*wValue+(8-847)

[0228] predSamplesLB[x][y]*(8-wValue)+offset1)>

[0229] >shift1)

[0230] In the above example, cIdx>0 means chroma. Additionally, wValue=clip3(0,8,wIdx*2) is used for chroma components. Accordingly, when wIdx=0,1,2,3,4, respectively, wValue=8,6,4,2,0. In addition, blended_pixel=(wValue*predLA+(8-mValue)*predLB)>>shift. Accordingly, the blending weights for chroma are 0,2,4,6,8 (e.g., {2,4,6}). In this example, a weight of 0 or 8 may refer to duplicating a candidate pixel, rather than blending two pixels.

[0231] In some examples, for intra prediction, a video decoder (e.g., video encoder 200 or video decoder 300) may be configured to align the behavior of intra reference sample smoothing on chroma components in YUV 4:4:4 format with the behavior of intra reference sample smoothing on chroma components in YUV 4:2:0 format. In the current VVC draft, intra reference sample smoothing is disabled for YUV4:2:0 chroma components. According to some examples, the video encoder 200 and / or the video decoder 300 may be configured to disable intra reference sample smoothing for YUV 4:4:4 chroma components.

[0232] In other words, for example, a video decoder (e.g., video encoder 200 or video decoder 300) may be configured to obtain unfiltered reference samples for a region of a picture. In this example, the video decoder may be configured to disable intra-reference sample smoothing for unfiltered reference samples of chroma samples in YUV 4:2:0 format and chroma samples in YUV 4:4:4 format. In this example, the video decoder may be configured to generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples when generating chroma components in YUV 4:2:0 format and when generating chroma components in YUV 4:4:4 format.

[0233] Figure 8 2 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although relative to the video encoder 200 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform the same Figure 8 A similar approach to the one used in this paper.

[0234] In this example, video encoder 200 initially predicts a current block (750). In some examples, a "current block" may be referred to herein simply as a "block". For example, video encoder 200 may form a prediction block for the current block using uniform weight information for different chroma formats. In some examples, video encoder 200 may generate chroma samples of a prediction block for a block of a picture based on unfiltered reference samples when generating chroma components in a YUV 4:2:0 format and when generating chroma components in a YUV 4:4:4 format.

[0235] The video encoder 200 may then calculate a residual block for the current block (752). To calculate the residual block, the video encoder 200 may calculate the difference between the original uncoded block and the prediction block for the current block, thereby generating a residual block. The video encoder 200 may then transform the residual values ​​of the residual block and quantize the transform coefficients (754). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (756). During or after the scan, the video encoder 200 may entropy encode the coefficients (758). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy coded data of the block (760).

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

[0237] The video decoder 300 may receive entropy coded data for the current block (such as entropy coded prediction information and entropy coded data for coefficients of a residual block corresponding to the current block) (870). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce coefficients of the residual block (872).

[0238] The video decoder 300 may predict the current block (874). For example, the video decoder 300 may predict the current block using unified weight information for different chroma formats, e.g., using an intra-frame or inter-frame prediction mode indicated by the prediction information for the current block to calculate the prediction block for the current block. In some examples, the video decoder 300 may generate chroma samples of a prediction block for a block of the picture based on unfiltered reference samples using intra-frame prediction when generating chroma components in a YUV 4:2:0 format and when generating chroma components in a YUV 4:4:4 format.

[0239] The video decoder 300 may then inverse scan the reproduced coefficients (876) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (878). Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block (880).

[0240] Fig.10 is a flow chart illustrating an example process for pixel blending chrominance components of a block of video data using a set of weights for YUV 4:2:0 in accordance with techniques of the present disclosure. Figure 1 and Figure 3 ) and video decoder 300( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform the same Fig.10 A similar approach to the one used in this paper.

[0241] According to the techniques of this disclosure, a video coder (e.g., video encoder 200 or video decoder 300) may generate a coding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format (982). The video coder may split the coding unit for the chroma component into a first triangle partitioning and a second triangle partitioning based on enabling of a triangle prediction unit mode (984).

[0242] When the one or more processors generate a coding unit for the chroma component in a YUV 4:2:0 format, and when the one or more processors generate a coding unit for the chroma component in a YUV 4:4:4 format, the video coder may apply pixel blending using the set of weights for the YUV 4:2:0 format to generate a prediction block for the chroma component (986). In some examples, to apply pixel blending, the video coder may determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition using the set of weights for the YUV 4:2:0 format.

[0243] In an example where the video decoder includes a video decoder (e.g., video decoder 300), the video decoder may decode the residual block for the block of video data, and combine the prediction block and the residual block for the chrominance component to decode the block of video data. In an example where the video decoder includes a video encoder, the video encoder may generate a residual block for the block of video data based on a difference between the block of video data and the prediction block, and encode the residual block.

[0244] Fig.11 is a flowchart illustrating an example process for generating chroma samples of a prediction block using intra prediction. Figure 1 and Figure 3 ) and video decoder 300( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform the same Fig.11 A similar approach to the one used in this paper.

[0245] According to the techniques of this disclosure, a video coder (e.g., video encoder 200 or video decoder 300) may obtain unfiltered reference samples for a region of a picture (1090). In some examples, the video coder may disable intra reference sample smoothing for unfiltered reference samples for chroma samples in YUV 4:2:0 format and YUV 4:4:4 format. When generating chroma components in YUV 4:2:0 format, and when generating chroma components in YUV 4:4:4 format, the video coder may generate chroma samples for a prediction block for a block of the picture based on the unfiltered reference samples (1092) using intra prediction.

[0246] In an example where the video decoder includes a video decoder (e.g., video decoder 300), the video decoder may decode the residual block for the block of video data, and combine the prediction block and the residual block for the chrominance component to decode the block of video data. In an example where the video decoder includes a video encoder, the video encoder may generate a residual block for the block of video data based on a difference between the block of video data and the prediction block, and encode the residual block.

[0247] Illustrative examples of the present disclosure include:

[0248] Example 1: A method for processing video data, the method comprising: determining weight information for a first chroma format; determining weight information for a second chroma format different from the first chroma format to correspond to the weight information for the first chroma format; and generating prediction information based on the weight information for the first chroma format.

[0249] Example 2: The method according to Example 1 includes: determining that the mode is a triangle prediction unit (PU) mode, wherein determining the weight information for the second chroma format is in response to determining that the mode is the triangle PU mode.

[0250] Example 3. The method according to any combination of Examples 1-2, wherein the first chroma format is YUV 4:2:0, and wherein the second chroma format is YUV 4:4:4.

[0251] Example 4. The method according to Example 3, wherein the weight information for the first chroma format is: 1) {1, 4, 7} 2) {2, 4, 6}.

[0252] Example 5. The method of example 1, comprising, in response to determining that intra prediction is applied, aligning a behavior of intra reference sample smoothing on chroma components in a YUV 4:4:4 format with a behavior of intra reference sample smoothing on chroma components in a YUV 4:2:0 format.

[0253] Example 6. The method of Example 5, wherein aligning comprises: disabling the intra-frame reference sample smoothing for YUV 4:2:0 chroma components; and disabling the intra-frame reference sample smoothing for YUV 4:4:4 chroma components.

[0254] Example 7. The method of any of Examples 1-6, wherein processing comprises decoding.

[0255] Example 8. The method of any of Examples 1-6, wherein processing comprises encoding.

[0256] Example 9. An apparatus for decoding video data, the apparatus comprising one or more means for performing the method according to any of Examples 1-6.

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

[0258] Example 11. The device according to any of Examples 9 and 10, further comprising: a memory for storing the video data.

[0259] Example 12. The device of any of Examples 9-11, further comprising: a display configured to display the decoded video data.

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

[0261] Example 14. The apparatus of any of Examples 9-13, wherein the apparatus comprises a video decoder.

[0262] Example 15. The apparatus of any of Examples 9-14, wherein the apparatus comprises a video encoder.

[0263] Example 16. A computer-readable storage medium having instructions stored thereon, the instructions, when executed, causing one or more processors to perform the method according to any of Examples 1-6.

[0264] It is to be appreciated that, depending on the example, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to implement the techniques). Additionally, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

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

[0266] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the expected program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to send instructions from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waveforms, signals or other temporary media, but are 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, where 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.

[0267] 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. Therefore, 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 implemented entirely in one or more circuits or logic elements.

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

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

Claims

1. A method for processing video data, the method comprising: generating, by one or more processors implemented in the circuit, a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; splitting, by the one or more processors, the coding unit for the chroma component into a first triangular partitioning and a second triangular partitioning based on enabling of a triangular prediction unit mode; as well as When the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, the one or more processors apply pixel blending using the weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component, wherein applying pixel blending includes: using the weight set for the YUV4:2:0 format to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively.

2. The method according to claim 1, wherein: Determining the weighted average includes determining the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

3. The method according to claim 1, wherein: Determining the weighted average includes determining the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

4. The method according to claim 1, wherein: Determining the weighted average includes determining the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

5. The method according to claim 1, wherein: Determining the weighted average includes determining the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

6. The method according to claim 1, wherein: Determining the weighted average includes determining the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

7. The method according to claim 1, comprising: decoding, by the one or more processors, a residual block for a block of the video data; as well as The prediction block and the residual block are combined, by the one or more processors, to decode a block of the video data.

8. The method according to claim 1, comprising: generating, by the one or more processors, a residual block for the block of video data based on a difference between the block of video data and the prediction block; as well as The residual block is encoded by the one or more processors.

9. A device for processing video data, the device comprising: a memory configured to store video data; as well as One or more processors implemented in circuitry and configured to: Generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; splitting the coding unit for the chroma component into a first triangular partitioning and a second triangular partitioning based on enabling of a triangular prediction unit mode; as well as When the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, pixel blending is applied using the weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component, wherein, in order to apply pixel blending, the one or more processors are configured to: use the weight set for the YUV 4:2:0 format to determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively.

10. The device according to claim 9, wherein: To determine the weighted average, the one or more processors are configured to determine the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

11. The device according to claim 9, wherein: To determine the weighted average, the one or more processors are configured to determine the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

12. The device according to claim 9, wherein: To determine the weighted average, the one or more processors are configured to determine the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

13. The apparatus according to claim 9, wherein: To determine the weighted average, the one or more processors are configured to determine the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

14. The apparatus according to claim 9, wherein: To determine the weighted average, the one or more processors are configured to determine the pixel value P of the prediction block by calculating: wherein P1 is a first reference pixel value of a first co-located motion compensated pixel of the first triangle partitioning, and wherein P2 is a second reference pixel value of a second co-located motion compensated pixel of the second triangle partitioning.

15. The apparatus according to claim 9, wherein: The one or more processors are further configured to: decoding a residual block for the block of video data; and The prediction block and the residual block are combined to decode the block of video data.

16. The apparatus according to claim 9, wherein: The one or more processors are further configured to: generating a residual block for the block of video data based on a difference between the block of video data and the prediction block; and The residual block is encoded.

17. The apparatus according to claim 9, wherein: The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

18. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: Generate a decoding unit for a chroma component of a block of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; splitting the coding unit for the chroma component into a first triangular partitioning and a second triangular partitioning based on enabling of a triangular prediction unit mode; and When the one or more processors generate the decoding unit for the chroma component in the YUV 4:2:0 format, and when the one or more processors generate the decoding unit for the chroma component in the YUV 4:4:4 format, pixel blending is applied using the weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component, wherein The instructions that cause the one or more processors to apply pixel blending cause the one or more processors to perform the following operations: using the weight set for the YUV 4:2:0 format, determine a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively.

19. A device for decoding video data, the device comprising: means for generating decoding units for chrominance components of blocks of video data in a YUV 4:4:4 format or a YUV 4:2:0 format; means for splitting the coding unit for the chroma component into a first triangle partitioning and a second triangle partitioning based on enabling of a triangle prediction unit mode; as well as A unit for applying pixel blending using the weight set for the YUV 4:2:0 format to generate a prediction block for the chroma component when generating the decoding unit for the chroma component in the YUV 4:2:0 format and when generating the decoding unit for the chroma component in the YUV 4:4:4 format, wherein the unit for applying pixel blending includes: a unit for determining a weighted average of co-located motion compensated pixels of the first triangle partition and the second triangle partition based on motion information of the first triangle partition and the second triangle partition, respectively, using the weight set for the YUV 4:2:0 format.

Citation Information

Patent Citations

  • Video coding in triangular prediction unit mode using different chroma formats

    US20200296389A1

  • Coding method, decoding method, coding apparatus, decoding apparatus, and image processing system

    CN101360240A

  • Processing method and device for video signals

    CN106101719A