Inter-intra prediction modes for video data
By employing position-independent weighting schemes for inter-intra prediction based on neighboring block coding information, the video coding efficiency is enhanced, addressing inefficiencies in existing standards like VVC and improving compression performance.
Patent Information
- Application Number
- JP2021545901
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-02-04
- Filing Date
- 2020-02-05
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-02-05
AI Technical Summary
Existing video coding techniques do not effectively utilize coding information of neighboring blocks for improved inter-intra prediction, leading to inefficiencies in video compression, particularly in standards like Versatile Video Coding (VVC).
Implement position-independent weighting schemes for inter-predicted and intra-predicted samples based on the number of intra-predicted and inter-predicted neighboring blocks, using techniques such as multi-hypothesis intra-mode (MHI) to combine inter-intra predictions, enhancing the coding performance by adaptively determining weights for improved video compression.
The proposed techniques enhance video coding efficiency by improving the performance of inter-intra coding, reducing artifacts, and optimizing compression in video data transmission and storage across various devices and platforms.
Smart Images

Figure 0007584423000001 
Figure 0007584423000002 
Figure 0007584423000003
Abstract
Description
[Technical field]
[0001] This application claims priority to U.S. Application No. 16 / 781,751, filed February 4, 2020, and U.S. Provisional Application No. 62 / 802,515, filed February 7, 2019, the entire contents of each of which are incorporated herein by reference.
[0002] TECHNICAL FIELD This disclosure relates to video coding, including video encoding and video decoding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] U.S. Application Serial No. 16 / 684,379 [Non-patent literature]
[0006] [Non-Patent Document 1] "CE10.1.1: Multi-hypothesis prediction for improving AMVP mode, skip or merge mode, and intra mode," JVET-L0100, M.-S. Chiang, C.-W. Hsu, Y.-W. Huang, S.-M. Lei, October 2018 Summary of the Invention [Means for solving the problem]
[0007] In general, this disclosure describes techniques for performing combined inter-intra prediction. That is, in video coding, a video coder (e.g., a video encoder or video decoder) may perform block-based coding of pictures forming a video sequence. The video coder may code blocks of pictures by forming predictive blocks and coding residual blocks that represent sample-by-sample differences between the predictive blocks and the actual blocks to be coded. Inter prediction represents prediction from reference blocks of previously coded pictures, while intra prediction represents prediction from previously coded reference data of a current picture. Combined inter-intra prediction represents prediction using both inter and intra prediction. Specifically, this disclosure describes improved techniques for performing combined inter-intra prediction. The techniques of this disclosure may be used, for example, in the Versatile Video Coding (VVC) standard, or other video coding standards that support combined inter-intra prediction.
[0008] In one example, a method for coding video data includes forming an inter-prediction block for a current chrominance block of the video data, forming an intra-prediction block for the current chrominance block of the video data, determining a number of intra-prediction coded neighboring blocks for a luminance block corresponding to the current chrominance block, determining a first weight and a second weight according to the number of intra-prediction coded neighboring blocks, applying the first weight to the inter-prediction block and the second weight to the intra-prediction block, combining the first weighted inter-prediction block and the second weighted intra-prediction block to form a predictive block for the current chrominance block, and coding the current chrominance block using the predictive blocks.
[0009] In another example, a device for coding video data includes a memory for storing the video data and one or more processors implemented in a circuit, where the one or more processors are configured to form an inter-predictive block for a current chrominance block of the video data, form an intra-predictive block for the current chrominance block of the video data, determine a number of intra-predictive coded neighboring blocks for a luminance block corresponding to the current chrominance block, determine a first weight and a second weight according to the number of intra-predictive coded neighboring blocks, apply the first weight to the inter-predictive block and the second weight to the intra-predictive block, combine the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current chrominance block, and code the current chrominance block using the predictive block.
[0010] In another example, a computer-readable storage medium storing instructions that, when executed, cause a processor to form an inter-prediction block for a current chrominance block of the video data, form an intra-prediction block for the current chrominance block of the video data, determine a number of intra-prediction coded neighboring blocks for a luminance block corresponding to the current chrominance block, determine a first weight and a second weight according to the number of intra-prediction coded neighboring blocks, apply the first weight to the inter-prediction block and the second weight to the intra-prediction block, combine the first weighted inter-prediction block and the second weighted intra-prediction block to form a predictive block for the current chrominance block, and code the current chrominance block using the predictive block.
[0011] In another example, a device for coding video data includes means for forming an inter-predictive block for a current chrominance block of the video data, means for forming an intra-predictive block for the current chrominance block of the video data, means for determining a number of intra-predictive coded neighboring blocks for a luminance block corresponding to the current chrominance block, means for determining a first weight and a second weight according to the number of intra-predictive coded neighboring blocks, means for applying the first weight to the inter-predictive block and the second weight to the intra-predictive block, means for combining the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current chrominance block, and means for coding the current chrominance block using the predictive blocks.
[0012] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Figure 2A] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure and corresponding coding tree unit (CTU). [Figure 2B] FIG. 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure and corresponding coding tree unit (CTU). [Figure 3A] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 3B] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 3C] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 3D] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 3E] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 3F] FIG. 2 is a conceptual diagram illustrating example locations of neighboring blocks relative to a current block. [Figure 4] 1 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure. [Diagram 5] 1 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure. [Figure 6] 1 is a flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 7] 5 is a flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. [Figure 8] 1 is a flowchart illustrating an example method for coding (encoding or decoding) video data in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, and ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC) including its Scalable Video Coding (SVC) and Multiview Video Coding (MVC) extensions.
[0015] High Efficiency Video Coding (HEVC) was finalized in April 2013 by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG).
[0016] The Joint Video Experts Team (JVET), a collaborative team formed by MPEG and ITU-T Study Group 16's VCEG, is currently working on a new video coding standard that will be known as Versatile Video Coding (VVC). The primary goal of VVC is to provide significant improvements in compression performance over the existing HEVC standard to support the deployment of higher quality video services and emerging applications such as 360° omnidirectional immersive multimedia and high dynamic range (HDR) video.
[0017] This disclosure describes techniques that may improve the combined inter-intra prediction mode for prediction of video data. Multi-hypothesis intra mode (MHI) has been shown to improve the merge mode by combining one intra prediction and one merge indexed prediction, and was adopted in "CE10.1.1: Multi-hypothesis prediction for improving AMVP mode, skip or merge mode, and intra mode" by M.-S. Chiang, C.-W. Hsu, Y.-W. Huang, S.-M. Lei, at the 12th JVET Macau Conference: JVET-L0100, October 2018. According to MHI, candidates in a set of four intra modes including planar prediction, DC prediction, horizontal prediction, and vertical prediction are evaluated to select the best candidate for combining with the merge indexed prediction. In the combining process described in the above example, equal weights are deployed if planar mode or DC mode is selected or the size of the block is less than four. Otherwise, the weights (wIntra, wInter) for the intra- and inter-predicted samples may differ based on the region of the samples within the coding block.
[0018] This disclosure recognizes that in the inter-intra prediction techniques described in JVET-L0100, coding information of neighboring blocks is not utilized to improve the coding performance of these tools. Furthermore, region-based weights are used for horizontal and vertical prediction modes, which may cause artifacts along region boundaries.
[0019] The techniques of this disclosure may improve the performance of inter-intra coding. These improvements may occur due to the position-independent weighting scheme of these techniques. According to the techniques of this disclosure, the weights for the inter-prediction samples and the intra-prediction samples may be adaptively determined using coding information, such as the number of intra-coded neighboring blocks, the number of inter-predictions (uni-prediction or bi-prediction) of the merge-indexed block, and / or the size of the current block.
[0020] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0021] 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. Specifically, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and therefore may be referred to as wireless communication devices.
[0022] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for inter-intra coding. Thus, source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, the source device and destination device may include other components or configurations. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.
[0023] The system 100 as shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may perform techniques for inter-intra coding. The source device 102 and the destination device 116 are only examples of coding devices that generate coded video data for the source device 102 to transmit to the destination device 116. This disclosure refers to devices that perform coding (encoding and / or decoding) of data as "coding" devices. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically, video encoders and video decoders, respectively. In some examples, the devices 102, 116 may operate in a substantially symmetrical manner such that each of the devices 102, 116 includes video encoding and decoding components. Thus, the system 100 may support unidirectional or bidirectional video transmission between the video devices 102, 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0024] In general, video source 104 represents a source of video data (i.e., raw, uncoded video data) and provides a continuous series of pictures (also called “frames”) of the video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live, archived, and computer-generated video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may reorder the pictures from the order in which they were received (sometimes called “display order”) to a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data via the output interface 108 onto a computer-readable medium 110 for receipt and / or retrieval by, for example, an input interface 122 of the destination device 116 .
[0025] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memory 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memory 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although 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 may also include internal memory for functionally similar or equivalent purposes. Additionally, the memory 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, a portion of the memory 106, 120 may be allocated as one or more video buffers, e.g., for storing raw decoded and / or encoded video data.
[0026] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that allows the source device 102 to transmit encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data and the input interface 122 may demodulate a received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.
[0027] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray® disc, a DVD, a CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0028] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device that may store the encoded video data generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download. The file server 114 may be any type of server device capable of storing the encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.
[0029] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee™), the Bluetooth™ standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributed to the video decoder 300 and / or the input interface 122.
[0030] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0031] The input interface 122 of the destination 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 may include signaling information defined by the video encoder 200 and also used by the video decoder 300, such as syntax elements having values that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0032] 1, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include an appropriate MUX-DEMUX unit, or other hardware and / or software, to process multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0033] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, 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 techniques are implemented partially in software, a device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (codec) in the respective device. The device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0034] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also referred to as High Efficiency Video Coding (HEVC), or an extension thereof, such as a multiview and / or scalable video coding extension. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as Joint Search and Test Model (JEM), also referred to as Versatile Video Coding (VVC), or ITU-T H.266. However, the techniques of this disclosure are not limited to any particular coding standard.
[0035] In general, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 may code luminance and chrominance components, where the chrominance components may include chrominance components of both red and blue hues. In some examples, the video encoder 200 converts received RGB formatted data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.
[0036] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include the process of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding of a block of a picture, e.g., predictive and / or residual coding, to include the process of encoding or decoding data for the block. A coded video bitstream generally includes a set of values for syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should generally be understood as coding values for the syntax elements that form the picture or block.
[0037] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as the video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal non-overlapping squares, and each node of the quadtree has either zero or four child nodes. A node without child nodes may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.
[0038] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the distinction between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0039] In the MTT partition structure, blocks may be partitioned using quad-tree (QT) partitioning, binary-tree (BT) partitioning, and one or more types of triple-tree (TT) partitioning. Triple-tree partitioning is a partition in which a block is divided into three sub-blocks. In some examples, triple-tree partitioning divides a block into three sub-blocks without splitting the original block through the center. Partition types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0040] In some examples, video encoder 200 and video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, while in other examples, video encoder 200 and video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for both chrominance components (or two QTBT / MTT structures for each chrominance component).
[0041] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures per HEVC. For purposes of illustration, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning.
[0042] This 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, e.g., 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may comprise NxM samples, where M is not necessarily equal to N.
[0043] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU will be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU and samples of the predictive block prior to encoding.
[0044] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter prediction or intra prediction. Inter prediction generally refers to predicting a CU from data of a previously coded picture, while intra prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional prediction or bidirectional prediction.
[0045] Some instances of JEM and VVC also provide an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.
[0046] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a predictive block. Some examples of JEM and VVC provide 67 intra prediction modes, including various orientation modes, as well as planar and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which to predict samples of the current block. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom).
[0047] According to the techniques of this disclosure, video encoder 200 may perform inter-intra prediction of a block (e.g., a CU) of video data. That is, video encoder 200 may form a predictive block using both inter-predicted and intra-predicted blocks. Video encoder 200 may form a final predictive block for a current block by performing a weighted combination of samples of the inter-predicted and intra-predicted blocks. When the current block is a chrominance block, video encoder 200 may determine a weight according to the number of intra-predictive coded neighboring blocks (and / or the number of inter-predictive coded blocks) for a luminance block corresponding to the current chrominance block. That is, instead of determining a weight according to the neighboring blocks for the current chrominance block, video encoder 200 may determine the number of intra-predicted and / or inter-predicted blocks neighboring the luminance block corresponding to the current chrominance block, and then determine a weight based on the number of intra-predicted and / or inter-predicted blocks neighboring the luminance block.
[0048] As an example, the video encoder 200 may determine whether the top neighboring block and / or the left neighboring block relative to the corresponding luminance block are inter predicted. When neither of these neighboring blocks are inter predicted, the video encoder 200 may determine that a weight of 3 is applied to the intra predicted block and a weight of 1 is applied to the inter predicted block. When both of these neighboring blocks are inter predicted, the video encoder 200 may determine that a weight of 3 is applied to the inter predicted block and a weight of 1 is applied to the intra predicted block. When one of these neighboring blocks is inter predicted and the other is intra predicted, the video encoder 200 may determine that a weight of 2 is applied to both the inter predicted block and the intra predicted block. In some examples, the video encoder 200 may count neighboring blocks predicted using inter intra prediction and / or intra block copies as inter predictive coded blocks. The video decoder 300 may perform substantially the same process to determine weights to be applied to the inter predicted and intra predicted blocks for the current chrominance block based on the prediction modes for the neighboring blocks relative to the luminance block corresponding to the current chrominance block.
[0049] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in the case of an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information for the corresponding mode. In the case of unidirectional or bidirectional inter prediction, for example, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.
[0050] Following prediction, such as intra- or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample-by-sample differences between a block and a predictive block for that block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transform data in a transform domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 generates transform coefficients following application of the one or more transforms.
[0051] As mentioned above, following any transformation to generate transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, resulting in further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 may round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0052] Following quantization, the video encoder 200 may scan the transform coefficients and generate a one-dimensional vector from the two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (hence lower frequency) transform coefficients at the front of the vector and lower energy (hence higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order for scanning the quantized transform coefficients to generate a serialized vector and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, e.g., according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode values for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0053] To perform CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values of the symbol are zero-valued or not. The probability determination may be based on the context assigned to the symbol.
[0054] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data to 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). Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.
[0055] In this manner, video encoder 200 may generate a bitstream including syntax elements that describe encoded video data, e.g., partitions of a picture into blocks (e.g., CUs) and predictive and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0056] In general, video decoder 300 performs a process that is the inverse of that performed by video encoder 200 to decode encoded video data of a bitstream. For example, video decoder 300 may decode values for syntax elements of a bitstream using CABAC in a manner that is the inverse of but substantially similar to the CABAC encoding process of video encoder 200. The syntax elements may define partition information of a picture into CTUs and partitions of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTUs. The syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
[0057] The residual information may be represented, for example, by quantized transform coefficients. The video decoder 300 may dequantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-prediction or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block for the block. The video decoder 300 may then combine (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0058] In accordance with the techniques of this disclosure, video encoder 200 and / or video decoder 300 may be configured to perform inter-intra coding, i.e., video encoder 200 and / or video decoder 300 may predict blocks of video data using combined inter-intra prediction according to any or all of the techniques described herein.
[0059] For example, the video encoder 200 and the video decoder 300 may adaptively determine the weights to be applied to the inter-prediction samples and the intra-prediction samples based on a position-independent weighting scheme. For example, the video encoder 200 and the video decoder 300 may adaptively determine the weights according to (e.g., in response to) coding information such as the number of intra-coded and / or inter-coded neighboring blocks, the number of inter-predictions (uni-predictive or bi-predictive) of the merge-indexed block, the size of the current block, etc. In the following description, (wInter, wIntra) is taken as the weights for the inter-prediction samples and the intra-prediction samples. That is, wInter represents the weight value applied to the sample of the inter-prediction block, and wIntra represents the weight value applied to the sample of the intra-prediction block. In some examples, wInter+wIntra=1, where wInter and wIntra are rational values between 0 and 1.
[0060] This disclosure generally refers to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to communication of values for syntax elements and / or other data used to decode the encoded video data. That is, video encoder 200 may signal values for syntax elements in a bitstream. In general, signaling refers to generating values in the bitstream. As mentioned above, source device 102 may transport the bitstream to destination device 116 substantially in real time or not in real time, such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116.
[0061] 2A and 2B are conceptual diagrams illustrating an exemplary quad-tree bi-tree (QTBT) structure 130 and corresponding coding tree unit (CTU) 132. Solid lines represent quad-tree partitioning, and dotted lines indicate bi-tree partitioning. At each partition (i.e., non-leaf) node of the bi-tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. For quad-tree partitioning, there is no need to indicate the partition type, since the quad-tree node divides a block horizontally and vertically into four sub-blocks of equal size. Thus, the video encoder 200 may encode syntax elements (such as partition information) for the region tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as partition information) for the prediction tree level (i.e., dashed lines) of the QTBT structure 130, and the video decoder 300 may decode those syntax elements. The video encoder 200 may encode video data, such as prediction data and transform data, for CUs represented by terminal leaf nodes of the QTBT structure 130, and the video decoder 300 may decode the video data.
[0062] 2B may be associated with parameters that define the sizes of blocks corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing the size of the CTU 132 in the sample), a minimum quadtree size (MinQTSize, representing the minimum allowed quadtree leaf node size), a maximum bipartite size (MaxBTSize, representing the maximum allowed bipartite root node size), a maximum bipartite depth (MaxBTDepth, representing the maximum allowed bipartite depth), and a minimum bipartite size (MinBTSize, representing the minimum allowed bipartite leaf node size).
[0063] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, and each of the child nodes may be partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example QTBT structure 130 represents the nodes as including parent nodes and child nodes with solid lines for branching. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), these nodes may be further partitioned by their respective binary trees. The binary tree partitioning of a node may be repeated until the resulting node of the partition reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example QTBT structure 130 represents the nodes as including dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), which are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without further division. As explained above, CUs are sometimes called "video blocks" or "blocks."
[0064] In one example of a QTBT partitioning structure, the CTU size is set as 128x128 (luma samples and two corresponding 64x64 chroma samples), MinQTSize is set as 16x16, MaxBTSize is set as 64x64, MinBTSize (for both width and height) is set as 4, and MaxBTDepth is set as 4. To generate a quadtree leaf node, quadtree partitioning is first applied to the CTU. The quadtree leaf node may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quadtree leaf node is 128x128, it is not further partitioned by the binarization tree since the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the leaf quadtree node is further partitioned by the binarization tree. Thus, the quadtree leaf node is also the root node of the binarization tree and has the binarization depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splits are allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it suggests that no further horizontal splits are allowed. Similarly, a binary tree node with a height equal to MinBTSize suggests that no further vertical splits are allowed for that binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to the prediction and transformation without further partitioning.
[0065] 3A-3F are conceptual diagrams illustrating example locations of neighboring blocks relative to a current block. 3A represents an example of a current block 140 having an upper neighboring block 142 and a left neighboring block 144; FIG. 3B represents an example of a current block 146 having an upper right neighboring block 148 and a lower left neighboring block 150; FIG. 3C represents an example of a current block 152 having an upper right neighboring block 154, a left neighboring block 156, and an upper left (upper l) neighboring block 158; FIG. 3D represents an example of a current block 160 having an upper right neighboring block 162, a lower left (left b) neighboring block 164, and an upper left neighboring block 166; FIG. 3E represents an example of a current block 168 having an upper neighboring block 170, an upper right neighboring block 172, a left neighboring block 174, and a lower left neighboring block 176; and FIG. 3F represents an example of a current block 178 having an upper neighboring block 180, an upper right neighboring block 182, a left neighboring block 184, a lower left neighboring block 186, and an upper left neighboring block 188.
[0066] According to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may adaptively determine weights for intra and inter samples based on the number of intra-coded and / or inter-coded neighboring blocks, for example, as described in U.S. Application No. 16 / 684,379, filed November 14, 2019, the entire contents of which are incorporated herein by reference. However, according to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may blend only inter and intra predicted samples without position-dependent intra prediction combining (PDPC). The video encoder 200 and the video decoder 300 may use a reference neighboring block to determine the weights, where the reference neighboring block may be any combination of an upper neighboring block, an upper right neighboring block, an upper left neighboring block, a left neighboring block, or a lower left neighboring block, for example, as shown in various examples of Figures 3A-3F.
[0067] 3A, video encoder 200 and video decoder 300 use above neighboring block 142 and left neighboring block 144 to determine weights to apply to intra- and inter-predicted samples for inter-intra prediction of current block 140. That is, above neighboring block 142 and left neighboring block 144 are used for intra-coded neighboring checks for current block 140 in this example.
[0068] 3B, video encoder 200 and video decoder 300 use upper right neighboring block 148 and lower left neighboring block 150 to determine weights to apply to intra- and inter-predicted samples for inter-intra prediction of current block 146. That is, upper right neighboring block 148 and lower left neighboring block 150 are used for intra-coded neighboring checks for current block 146 in this example.
[0069] In another example, for example, as shown in FIG. 3C, above neighboring block 154, left neighboring block 156, and above-left neighboring block 158 are used for intra-coded neighboring checks for current block 152.
[0070] In another example, for example, as shown in FIG. 3D, an upper right neighboring block 162, a lower left neighboring block 164, and an upper left neighboring block 166 are used for intra-coded neighboring checks for the current block 160.
[0071] In another example, for example, as shown in FIG. 3E, above neighboring block 170, above right neighboring block 172, left neighboring block 174, and below left neighboring block 176 are used for intra-coded neighboring checks for current block 168.
[0072] In another example, for example, as shown in FIG. 3F, an upper neighboring block 180, an upper right neighboring block 182, a left neighboring block 184, a lower left neighboring block 186, and an upper left neighboring block 188 are used for intra-coded neighboring checks for the current block 178.
[0073] In some examples, the video encoder 200 and the video decoder 300 select the reference neighboring block according to the block size (e.g., blkWidth and blkHeight) of the current block. For example, if the blkWidth and blkHeight are the same, the video encoder 200 and the video decoder 300 may use the combination of Figure 3D, Figure 3E, or Figure 3F. In another example, if the blkWidth and blkHeight are different, the video encoder 200 and the video decoder 300 may use, for example, the top r and the left b as shown in Figure 3B.
[0074] In another example, if blkWidth and blkHeight are identical, video encoder 200 and video decoder 300 may select neighboring block positions symmetrically along the width and height dimensions of the current block, e.g., per the examples of Figures 3A-3F. On the other hand, if blkWidth and blkHeight are different, video encoder 200 and video decoder 300 may select neighboring block positions asymmetrically along the width and height dimensions of the current block. For example, if blkWidth is greater than blkHeight, video encoder 200 and video decoder 300 may select neighboring block as being above r and to the left, whereas if blkWidth is less than blkHeight, video encoder 200 and video decoder 300 may select neighboring block as being to the left b and above.
[0075] In some examples, if the inspected neighboring block is IBC / CPR coded (intra block copy / current picture reference), the neighboring block may be considered an inter-coded block.
[0076] In some examples, if the inspected neighboring block is IBC / CPR coded, the neighboring block may be considered an intra-coded block.
[0077] In some examples, when the examined neighboring block is a synthesized intra-inter block, the neighboring block may be considered an inter-coded block.
[0078] In some examples, when the examined neighboring block is a synthesized intra-inter block, the neighboring block may be considered an intra-coded block.
[0079] In some examples, when a single luma chroma coding tree or a dual (separate) luma chroma coding tree is enabled, the video encoder 200 and the video decoder 300 may determine weights for blending of chroma blocks according to intra-checks of the corresponding luma blocks or neighboring blocks of the corresponding luma blocks.
[0080] In some examples, when dual tree coding is enabled, the video encoder 200 and the video decoder 300 may determine weights for blending of chroma blocks according to intra-examination of neighboring chroma blocks.
[0081] The video encoder 200 and the video decoder 300 may determine the weights based on the intra check. Let wInter and wIntra be the weights for the inter and intra samples in the inter-intra blend. The weights are multiplied by 2 where n is an integer equal to the sum of the weights. n In other words, these weights can be normalized by 4, 8, 16, ..., which can be implemented with a simple right-shift operation.
[0082] In some examples, if all inspected neighboring blocks are intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for intra samples are higher than the weights for inter samples (e.g., (wInter, wIntra)=(1, 3) or (wInter, wIntra)=(3, 5)).
[0083] In some examples, if all inspected neighboring blocks are not intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for intra samples are lower than the weights for inter samples (e.g., (wInter, wIntra)=(3,1) or (wInter, wIntra)=(5,3)).
[0084] In some examples, if only one of the examined neighboring blocks is intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for the intra and inter samples are the same.
[0085] In some examples, if the top-left neighboring block, the top r neighboring block, and the left b neighboring block are all intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights (wInter, wIntra) are (1, 3) or (3, 5). In another example, if at least one of the top-left neighboring block, the top r neighboring block, or the left b neighboring block is intra-coded, the video encoder 200 and the video decoder 300 may set (wInter, wIntra) equal to (2, 2) or (4, 4). In yet another example, if the top-left neighboring block, the top r neighboring block, and the left b neighboring block are all not intra-coded, the video encoder 200 and the video decoder 300 may set (wInter, wIntra) equal to (3, 1) or (5, 3).
[0086] In some examples, if at least one of the examined blocks is an MHI-coded (multiple hypothesis intra) block, the video encoder 200 and the video decoder 300 may copy the weights for the current block from the weights of one of the examined blocks.
[0087] In some examples, if only one of these inspected blocks is intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for intra samples are higher than the weights for inter samples (e.g., (wInter, wIntra)=(1, 3) or (wInter, wIntra)=(3, 5)).
[0088] In some examples, if only one of these inspected blocks is intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for intra samples are lower than the weights for inter samples (e.g., (wInter, wIntra)=(3,1) or (wInter, wIntra)=(5,3)).
[0089] In some examples, if all these checked blocks are not intra-coded, the video encoder 200 and the video decoder 300 may determine that the weights for intra samples are higher than the weights for inter samples (e.g., (wInter, wIntra)=(1, 3) or (wInter, wIntra)=(3, 5)).
[0090] In some examples, the video encoder 200 and the video decoder 300 may determine (wInter, wIntra) according to the intra-prediction mode of the examined neighboring block. In one example, if there is at least one neighboring block that is coded using DC intra mode or planar mode, the weights for intra samples may be higher than the weights for inter samples (e.g., (wInter, wIntra)=(1, 3) or (wInter, wIntra)=(3, 5)).
[0091] In some examples, the video encoder 200 and the video decoder 300 may determine (wInter, wIntra) based on the number of inter predictions of the merge indexed block, i.e., whether the merge indexed block is predicted using unidirectional prediction or bidirectional prediction.
[0092] In some examples, if the merge indexed block is bi-predictive, the video encoder 200 and the video decoder 300 may set wInter higher than wIntra (e.g., (wInter, wIntra)=(3, 1) or (wInter, wIntra)=(5, 3)).
[0093] In some examples, if the merge indexed block is uni-predictive, the video encoder 200 and the video decoder 300 may set wInter higher than wIntra (e.g., (wInter, wIntra)=(3, 1) or (wInter, wIntra)=(5, 3)).
[0094] In some examples, if the merge indexed block is bi-predictive, the video encoder 200 and the video decoder 300 may set wInter higher than wIntra (e.g., (wInter, wIntra)=(3,1) or (wInter, wIntra)=(5,3)). On the other hand, for a merge indexed block with uni-prediction, the video encoder 200 and the video decoder 300 may determine (wInter, wIntra) using the number of neighboring intra and / or inter blocks, e.g., as described above.
[0095] In some examples, the video encoder 200 and the video decoder 300 may determine (wInter, wIntra) according to the size of the current block. The size of the current block (SIZEblk) is based on its width and height.
[0096] In some examples, the video encoder 200 and the video decoder 300 may determine the size of the current block as the minimum of the width and height of the current block. In another example, the video encoder 200 and the video decoder 300 may determine the size of the current block as the maximum of the width and height of the current block. In yet another example, the video encoder 200 and the video decoder 300 may determine the size of the current block by multiplication (i.e., product) of the width and height of the current block. In yet another example, the video encoder 200 and the video decoder 300 may determine the size of the current block by addition of the width and height of the current block.
[0097] In some examples, if SIZEblk is higher than a predefined threshold, the video encoder 200 and the video decoder 300 may set wInter higher or lower than wIntra (e.g., (wInter, wIntra)=(3,1) or (wInter, wIntra)=(5,3)).
[0098] In some examples, if SIZEblk is lower than a predefined threshold, the video encoder 200 and the video decoder 300 may set wInter higher or lower than wIntra (e.g., (wInter, wIntra)=(3, 1) or (wInter, wIntra)=(5, 3)).
[0099] In some examples, if the merge indexed block is bi-predictive, the video encoder 200 and the video decoder 300 may set wInter higher or lower than wIntra (e.g., (wInter, wIntra)=(3,1) or (wInter, wIntra)=(5,3)). On the other hand, for a merge indexed block with uni-prediction, the video encoder 200 and the video decoder 300 may adaptively determine (wInter, wIntra) according to the size of the current block.
[0100] In some examples, the weight pair set (wInter, wIntra) may be predefined. The weight pair set may be signaled in a bitstream header or a sequence parameter set (SPS). That is, the video encoder 200 may encode the weight pair set, but the video decoder 300 may decode the weight pair set. During the encoding process of the MHI block, the video encoder 200 may determine the best weight using a rate-distortion (RD) evaluation. In this example, the video encoder 200 may derive the RD cost of all elements in the weight pair. The video encoder 200 may select the pair with the minimum RD cost to encode the current block and signal the index of this pair in the bitstream. The video encoder 200 may encode the index using a CABAC algorithm that uses bypass or context-based entropy coding. The video decoder 300 may perform a decoding process to obtain an index for determining a weight (e.g., a pair of weights) to apply to the current block.
[0101] In some examples, video encoder 200 and video decoder 300 may code lists of weights or headers (tiles, slices, coding units, etc.) in a parameter set (such as an SPS, a picture parameter set (PPS), a video parameter set (VPS), an adaptive parameter set (APS), etc.) corresponding to the cases described in the techniques above based on neighboring block mode inspection, block size, etc.
[0102] 4 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. FIG. 4 is provided for purposes of explanation and should not be considered a limitation of the techniques as broadly illustrated and described in this disclosure. For purposes of explanation, this disclosure describes video encoder 200 in the context of video coding standards, such as the HEVC video coding standard and the developing H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are applicable to video encoding and decoding generally.
[0103] In the example of Figure 4, 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, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a DPB 218, and an entropy coding unit 220 may be implemented in one or more processors or processing circuits. Furthermore, the video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.
[0104] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with other components of the video encoder 200, as shown, or may be off-chip relative to those components.
[0105] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200, unless specifically described as such, or to memory external to video encoder 200, unless specifically described as such. Rather, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data for a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.
[0106] The various units in FIG. 4 are illustrated to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preset for the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provides flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0107] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), digital circuits, analog circuits, and / or a programmable core formed from programmable circuits. In examples in which the operations of the video encoder 200 are performed using software executed by programmable circuits, the memory 106 (FIG. 1) may store object code for the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0108] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0109] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0110] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of the CTU into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than the other tested combinations.
[0111] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and encapsulate one or more CTUs within a slice. Mode selection unit 202 may partition the CTUs of a picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such a CU may also be generally referred to as a “video block” or a “block.”
[0112] In general, the mode selection unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). In the case of inter prediction of the current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0113] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in the case of unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in the case of bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of the reference block. As another example, in the case of a motion vector having fractional sample precision, the motion compensation unit 224 may interpolate values for the predictive block according to one or more interpolation filters. Furthermore, in the case of bidirectional inter prediction, the motion compensation unit 224 may retrieve data for the two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, by sample-wise averaging or weighted averaging.
[0114] As another example, for intra prediction or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring the current block. For example, for a directional mode, the intra prediction unit 226 may generally mathematically combine values of neighboring samples and populate these calculated values in a defined direction across the current block to generate a predictive block. As another example, for a DC mode, the intra prediction unit 226 may calculate an average of the neighboring samples for the current block and generate a predictive block to include this resulting average for each sample of the predictive block.
[0115] According to the techniques of this disclosure, the mode selection unit 202 may perform inter-intra prediction of a block (e.g., a CU) of video data. That is, the mode selection unit 202 may form a prediction block by having the motion estimation unit 222 and the motion compensation unit 224 form an inter-predicted block and the intra prediction unit 226 form an intra-predicted block. The mode selection unit 202 may form a final prediction block for the current block by performing a weighted combination of samples of the inter-predicted block and the intra-predicted block. When the current block is a chrominance block, the mode selection unit 202 may determine weights for performing weighted prediction according to the number of intra-predictively coded and / or inter-predictively coded neighboring blocks for a luminance block corresponding to the current chrominance block. That is, instead of determining weights according to neighboring blocks for the current chrominance block, the mode selection unit 202 may determine the number of inter-predicted blocks neighboring the luminance block corresponding to the current chrominance block, and then determine weights based on the number of inter-predicted blocks neighboring the luminance block.
[0116] As an example, the mode selection unit 202 may determine whether an upper neighboring block and / or a left neighboring block relative to a corresponding luminance block are inter predicted. When neither of these neighboring blocks are inter predicted, the mode selection unit 202 may determine that a weight of 3 is applied to the intra predicted block and a weight of 1 is applied to the inter predicted block. When both of these neighboring blocks are inter predicted, the mode selection unit 202 may determine that a weight of 3 is applied to the inter predicted block and a weight of 1 is applied to the intra predicted block. When one of these neighboring blocks is inter predicted and the other is intra predicted, the mode selection unit 202 may determine that a weight of 2 is applied to both the inter predicted block and the intra predicted block. In some examples, the mode selection unit 202 may count neighboring blocks predicted using inter intra prediction and / or intra block copy as inter predictive coded blocks.
[0117] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0118] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or similar for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0119] In examples where the mode selection unit does not further partition the CUs into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. Video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0120] 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 predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generates syntax elements that indicate how to reconstruct the block based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be coded.
[0121] In some examples, the mode selection unit 202 may select an inter-intra prediction mode. In such examples, the mode selection unit 202 may weight the inter prediction blocks generated by the motion compensation unit 224 and the intra prediction blocks generated by the intra prediction unit 226 according to any of the various techniques of this disclosure. The mode selection unit 202 may generate a prediction block from the weighted inter prediction block and intra prediction block and output the generated prediction block.
[0122] As described above, the residual generation unit 204 receives video data for a current block and a corresponding predictive block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates sample-by-sample differences between the predictive block and the current block.
[0123] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms, e.g., a primary transform and a secondary transform, such as a rotation transform, on the residual block. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0124] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to generate 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 result in loss of information, and thus the quantized transform coefficients may have less precision than the original transform coefficients generated by transform processing unit 206.
[0125] Inverse quantization unit 210 and inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. Reconstruction unit 214 may generate a reconstructed block that corresponds to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by mode selection unit 202. For example, reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by mode selection unit 202 to generate the reconstructed block.
[0126] Filter unit 216 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.
[0127] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to inter predict blocks of a later-encoded picture. In addition, the intra prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.
[0128] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioned entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0129] The video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, the entropy encoding unit 220 may output the bitstream.
[0130] The operations described above are described with respect to blocks. Such descriptions should be understood as being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.
[0131] In some examples, operations performed with respect to luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to be repeated to identify MVs and reference pictures for chroma coding blocks. Rather, the MVs for the luma coding blocks may be scaled to determine the MVs for the chroma coding 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.
[0132] The video encoder 200 of FIG. 4 represents an example of a device for coding video data, comprising one or more processors configured to form an inter-predictive block for a current block of video data, form an intra-predictive block for the current block of video data, apply a first weight to the inter-predictive block and a second weight to the intra-predictive block, combine the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current block, and code (i.e., in this example, encode) the current block using the predictive block.
[0133] The video encoder 200 also represents an example of a device for coding video data, comprising one or more processors configured to form an inter-predictive block for a current chrominance block of the video data, form an intra-predictive block for the current chrominance block of the video data, determine a number of intra-predictive coded neighboring blocks for a luminance block corresponding to the current chrominance block, determine a first weight and a second weight according to the number of intra-predictive coded neighboring blocks, apply the first weight to the inter-predictive block and the second weight to the intra-predictive block, combine the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current chrominance block, and code the current chrominance block using the predictive block.
[0134] 5 is a block diagram illustrating an example video decoder 300 that may perform techniques of this disclosure. FIG. 5 is provided for purposes of illustration and is not intended to limit the techniques as broadly illustrated and described in this disclosure. For purposes of illustration, this disclosure describes a video decoder 300 according to JEM, VVC, and HEVC techniques. However, the techniques of this disclosure may be performed by video coding devices configured according to other video coding standards.
[0135] In the example of Figure 5, the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. Additionally, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0136] 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 prediction according to other prediction modes. By way of example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0137] In some examples, prediction processing unit 304 may select an inter-intra prediction mode. In such examples, prediction processing unit 304 may weight the inter prediction block generated by motion compensation unit 316 and the intra prediction block generated by intra prediction unit 318 according to any of the various techniques of this disclosure. Prediction processing unit 304 may generate a prediction block from the weighted inter prediction block and intra prediction block and output the generated prediction block.
[0138] According to the techniques of this disclosure, prediction processing unit 304 may perform inter-intra prediction of a block (e.g., a CU) of video data. That is, prediction processing unit 304 may form a prediction block by having motion compensation unit 316 form an inter-predicted block and intra prediction unit 318 form an intra-predicted block. Prediction processing unit 304 may form a final prediction block for a current block by performing a weighted combination of samples of the inter-predicted block and the intra-predicted block. When the current block is a chrominance block, prediction processing unit 304 may determine a weight for performing weighted prediction according to the number of intra-predictive coded neighboring blocks for a luminance block corresponding to the current chrominance block. That is, instead of determining a weight according to the neighboring blocks for the current chrominance block, prediction processing unit 304 may determine the number of intra-predicted blocks neighboring the luminance block corresponding to the current chrominance block, and then determine a weight based on the number of intra-predicted blocks neighboring the luminance block.
[0139] As an example, prediction processing unit 304 may determine whether an upper neighboring block and / or a left neighboring block relative to a corresponding luminance block are inter predicted. When neither of these neighboring blocks are inter predicted, prediction processing unit 304 may determine that a weight of 3 is applied to the intra predicted block and a weight of 1 is applied to the inter predicted block. When both of these neighboring blocks are inter predicted, prediction processing unit 304 may determine that a weight of 3 is applied to the inter predicted block and a weight of 1 is applied to the intra predicted block. When one of these neighboring blocks is inter predicted and the other is intra predicted, prediction processing unit 304 may determine that a weight of 2 is applied to both the inter predicted block and the intra predicted block. In some examples, prediction processing unit 304 may count neighboring blocks predicted using inter intra prediction and / or intra block copies as inter predictive coded blocks.
[0140] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), 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 separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300 or off-chip relative to those components.
[0141] Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data such as those described above with respect to CPB memory 320. Similarly, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.
[0142] The various units shown in FIG. 5 are illustrated to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 4, a fixed-function circuit refers to a circuit that provides a specific function and is preset for the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provides flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0143] The video decoder 300 may include a programmable core formed from ALUs, EFUs, digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video decoder 300 are performed by software executing on programmable circuits, on-chip or off-chip memory may store instructions of the software (e.g., object code) that the video decoder 300 receives and executes.
[0144] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to recover the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0145] In general, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the “current block”).
[0146] The entropy decoding unit 302 may entropy decode the quantized transform coefficients of the quantized transform coefficient block, as well as syntax elements defining transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may, 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.
[0147] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the coefficient block.
[0148] Further, prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter predicted, motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in DPB 314 from which to retrieve a reference block, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform an inter prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 4).
[0149] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a predictive block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 4). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.
[0150] The reconstruction unit 310 may reconstruct the current block using the predictive block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the predictive block to reconstruct the current block.
[0151] Filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of the reconstructed blocks. The operations of filter unit 312 may not be performed in all instances.
[0152] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Additionally, the video decoder 300 may output decoded pictures from the DPB for later presentation on a display device, such as display device 118 of FIG. 1.
[0153] The video decoder 300 of FIG. 5 represents an example of a device for coding video data, comprising one or more processors configured to form an inter-predicted block for a current block of video data, form an intra-predicted block for the current block of video data, apply a first weight to the inter-predicted block and a second weight to the intra-predicted block, combine the first weighted inter-predicted block and the second weighted intra-predicted block to form a predictive block for the current block, and code (i.e., in this example, decode) the current block using the predictive block.
[0154] The video decoder 300 also represents an example of a device for coding video data comprising one or more processors configured to form an inter-predictive block for a current chrominance block of the video data, form an intra-predictive block for the current chrominance block of the video data, determine a number of intra-predictive coded neighboring blocks for a luminance block corresponding to the current chrominance block, determine a first weight and a second weight according to the number of intra-predictive coded neighboring blocks, apply the first weight to the inter-predictive block and the second weight to the intra-predictive block, combine the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current chrominance block, and code the current chrominance block using the predictive block.
[0155] 6 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of FIG.
[0156] In this example, video encoder 200 first predicts the current block (350). For example, video encoder 200 may form a predictive block for the current block using inter-intra prediction according to the techniques of this disclosure. Video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, video encoder 200 may calculate a difference between the original uncoded block and the predictive block for the current block. Video encoder 200 may then transform and quantize coefficients of the residual block (354). Video encoder 200 may then scan the quantized transform coefficients of the residual block (356). During or following the scan, video encoder 200 may entropy code the coefficients (358). For example, video encoder 200 may code the coefficients using CAVLC or CABAC. Video encoder 200 may then output entropy coded data for the block (360).
[0157] In this manner, the method of FIG. 6 represents one example of a method that includes forming an inter-predicted block for a current block of video data, forming an intra-predicted block for the current block of video data, applying a first weight to the inter-predicted block and a second weight to the intra-predicted block, combining the first weighted inter-predicted block and the second weighted intra-predicted block to form a predictive block for the current block, and coding (i.e., encoding) the current block using the predictive block.
[0158] 7 is a flowchart illustrating an example method for decoding a current block according to the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to the video decoder 300 (FIGS. 1 and 5), it should be understood that other devices may be configured to perform a method similar to that of FIG.
[0159] The video decoder 300 may receive entropy coded data for the current block, such as the entropy coded prediction information and entropy coded data for coefficients of the residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and to reconstruct the coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using an inter-intra prediction mode according to the techniques of this disclosure as indicated by the prediction information for the current block, to compute a predictive block for the current block (374). The video decoder 300 may then inverse scan the reconstructed coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then inverse quantize and inverse transform the coefficients to generate a residual block (378). The video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).
[0160] In this manner, the method of FIG. 7 represents one example of a method that includes forming an inter-predicted block for a current block of video data, forming an intra-predicted block for the current block of video data, applying a first weight to the inter-predicted block and a second weight to the intra-predicted block, combining the first weighted inter-predicted block and the second weighted intra-predicted block to form a predictive block for the current block, and coding (i.e., decoding) the current block using the predictive block.
[0161] 8 is a flowchart illustrating an example method of coding (encoding or decoding) video data in accordance with the techniques of this disclosure. For purposes of example and explanation, the method of FIG. 8 is described with respect to the video decoder 300 of FIG. 1 and FIG. 5, although the video encoder 200 of FIG. 1 and FIG. 4 or other video coding devices may perform the method or a similar method. The method of FIG. 8 may be performed by the video encoder 200 when predicting the current chrominance block, e.g., at step 350 of the method of FIG. 6, or by the video decoder 300 when predicting the current chrominance block, e.g., at step 374 of FIG. 7.
[0162] First, the video decoder 300 forms an inter-predicted block for a current chrominance block (400). The video decoder 300 may also form an intra-predicted block for the current chrominance block (402). The video decoder 300 may then determine a luma block that corresponds to the chrominance block, e.g., a luma block that is co-located with the chrominance block in a luma array (404).
[0163] The video decoder 300 may then determine prediction modes of neighboring blocks relative to the luma block (406). For example, the video decoder 300 may determine prediction modes for the top neighboring block 142 and the left neighboring block 144 of FIG. 3A, the top right neighboring block 148 and the bottom left neighboring block 150 of FIG. 3B, etc., for other examples of neighboring blocks as shown in FIGs. 3A-3F. The video decoder 300 may also determine a number of intra-predicted neighboring blocks relative to the luma block (408). Alternatively, the video decoder 300 may determine a number of inter-predicted neighboring blocks relative to the luma block.
[0164] The video decoder 300 may also determine weights to be applied to the inter-predicted blocks and the intra-predicted blocks according to the number of intra-predicted neighboring blocks relative to the luminance block (410). If there are more inter-predicted blocks than intra-predicted blocks, the video decoder 300 may determine that the weights to be applied to the inter-predicted blocks are greater than the weights to be applied to the intra-predicted blocks. For example, the weights to be applied to the inter-predicted blocks may be 3, and the weights to be applied to the intra-predicted blocks may be 1. If the number of intra-predicted blocks is greater than the number of inter-predicted blocks, the video decoder 300 may determine that the weights to be applied to the intra-predicted blocks are greater than the weights to be applied to the inter-predicted blocks. For example, the weights to be applied to the intra-predicted blocks may be 3, and the weights to be applied to the inter-predicted blocks may be 1. If the number of intra-predicted blocks and the number of inter-predicted blocks are the same, the weights may be equal, for example, 2 for each.
[0165] The video decoder 300 may then combine the inter-predicted block and the intra-predicted block using the weights to form a predictive block for the current chrominance block (412). The video decoder 300 may then code the current chrominance block using the predictive block (414).
[0166] In this manner, the method of FIG. 8 represents an example of a method of coding a video decoder comprising the steps of forming an inter-predictive block for a current chrominance block of video data, forming an intra-predictive block for the current chrominance block of video data, determining a number of intra-predictively coded neighboring blocks for a luminance block corresponding to the current chrominance block, determining a first weight and a second weight according to the number of intra-predictively coded neighboring blocks, applying the first weight to the inter-predictive block and the second weight to the intra-predictive block, combining the first weighted inter-predictive block and the second weighted intra-predictive block to form a predictive block for the current chrominance block, and coding the current chrominance block using the predictive block.
[0167] Several techniques of this disclosure are summarized in the following examples.
[0168] Example 1: A method of coding video data, comprising the steps of forming an inter-predicted block for a current block of video data, forming an intra-predicted block for the current block of video data, applying a first weight to the inter-predicted block and a second weight to the intra-predicted block, combining the first weighted inter-predicted block and the second weighted intra-predicted block to form a predictive block for the current block, and coding the current block using the predictive block.
[0169] Example 2: The method of Example 1, wherein the step of coding the current block comprises a step of decoding the current block, and the step of decoding comprises a step of decoding a residual block for the current block and a step of combining samples of the residual block with samples of the predictive block.
[0170] Example 3: The method of any of Examples 1 and 2, wherein the step of coding the current block comprises the step of encoding the current block, the encoding step comprising the steps of subtracting samples of the predictive block from samples of the current block to form a residual block, and encoding the residual block.
[0171] Example 4: The method of any of Examples 1-3, further comprising determining the first weight and the second weight according to a number of intra-coded neighboring blocks to the current block.
[0172] Example 5: The method of example 4, wherein the adjacent block includes an upper adjacent block.
[0173] Example 6: Any of the methods of examples 4 and 5, wherein the adjacent block includes a left adjacent block.
[0174] Example 7: Any of the methods of Examples 4 to 6, wherein the adjacent block includes an upper-right adjacent block.
[0175] Example 8: Any of the methods of examples 4 to 7, wherein the neighboring blocks include a lower-left neighboring block.
[0176] Example 9: Any of the methods of examples 4 to 8, wherein the neighboring blocks include an upper-left neighboring block.
[0177] Example 10: The method of any of Examples 4-9, further comprising determining a neighboring block according to a height of the current block and a width of the current block.
[0178] Example 11: The method of example 10, wherein when the heights and widths are equal, the neighboring blocks include an upper-right neighboring block and a lower-left neighboring block.
[0179] Example 12: The method of example 11, wherein the neighboring blocks further include an above neighboring block and a left neighboring block.
[0180] Example 13: The method of example 12, wherein the neighboring blocks further include an upper-left neighboring block.
[0181] Example 14: Any of the methods of Examples 10-13, wherein when the heights and widths are different, the adjacent blocks include an upper right adjacent block and a lower left adjacent block.
[0182] Example 15: The method of example 10, wherein the adjacent block is symmetric along the width and height dimensions of the current block when the heights and widths are equal, and wherein the adjacent block is asymmetric along the width and height dimensions of the current block when the heights and widths are unequal.
[0183] Example 16: The method of example 15, wherein when the width is greater than the height, the neighboring blocks include an upper right neighboring block and a left neighboring block, and when the height is greater than the width, the neighboring blocks include an upper right neighboring block and a lower left neighboring block.
[0184] Example 17: The method of any of Examples 4-16, further comprising determining that one of the intra block copy coded or current picture reference coded neighboring blocks is an inter coded block.
[0185] Example 18: The method of any of Examples 4-16, further comprising determining that one of the intra block copy coded or current picture reference coded neighboring blocks is an intra coded block.
[0186] Example 19: The method of any of Examples 4-18, further comprising determining that one of the inter-intra-coded neighboring blocks is an inter-coded block.
[0187] Example 20: The method of any of Examples 4-18, further comprising determining that one of the inter-intra-coded neighboring blocks is an intra-coded block.
[0188] Example 21: The method of any of Examples 4-20, wherein the step of determining the first weight and the second weight comprises a step of selecting the second weight to be higher than the first weight when all of the neighboring blocks are intra-coded.
[0189] Example 22: The method of any of Examples 4 to 21, wherein the step of determining the first weight and the second weight comprises a step of selecting the first weight to be higher than the second weight when at least one of the neighboring blocks is not intra-coded.
[0190] Example 23: The method of any of Examples 4 to 22, wherein the step of determining the first weight and the second weight comprises a step of selecting the first weight to be equal to the second weight when only one of the neighboring blocks is intra-coded.
[0191] Example 24: The method of any of Examples 4 to 23, wherein determining the first weight and the second weight comprises selecting the first weight to be 1 and the second weight to be 3 when the upper-left neighboring block, the upper-right neighboring block, and the lower-left neighboring block to the current block are intra-coded.
[0192] Example 25: The method of any of Examples 4 to 23, wherein determining the first weight and the second weight comprises selecting the first weight to be 3 and the second weight to be 5 when the upper-left neighboring block, the upper-right neighboring block, and the lower-left neighboring block to the current block are intra-coded.
[0193] Example 26: The method of any of Examples 4 to 25, wherein the step of determining the first weight and the second weight comprises selecting the first weight to be 2 and the second weight to be 2 when at least one of an upper-left neighboring block, an upper-right neighboring block, or a lower-left neighboring block to the current block is intra-coded.
[0194] Example 27: The method of any of Examples 4 to 25, wherein determining the first weight and the second weight comprises selecting the first weight to be 4 and the second weight to be 4 when at least one of an upper-left neighboring block, an upper-right neighboring block, or a lower-left neighboring block to the current block is intra-coded.
[0195] Example 28: The method of any of Examples 4 to 27, wherein the step of determining the first weight and the second weight comprises the step of selecting the first weight to be 3 and the second weight to be 1 when none of the upper-left neighboring block, the upper-right neighboring block, and the lower-left neighboring block to the current block are intra-coded.
[0196] Example 29: The method of any of Examples 4 to 27, wherein the step of determining the first weight and the second weight comprises the step of selecting the first weight to be 5 and the second weight to be 3 when none of the upper-left neighboring block, the upper-right neighboring block, and the lower-left neighboring block to the current block are intra-coded.
[0197] Example 30: The method of any of Examples 4-29, wherein determining the first weights and the second weights comprises copying the first weights and the second weights from one of the multi-hypothesis intra-coded neighboring blocks.
[0198] Example 31: The method of any of Examples 4 to 30, wherein the step of determining the first weight and the second weight comprises a step of selecting the second weight to be higher than the first rate when only one of the neighboring blocks is intra-coded.
[0199] Example 32: The method of example 31, wherein the second weight is 3 and the first weight is 1.
[0200] Example 33: The method of example 31, wherein the second weight is 5 and the first weight is 3.
[0201] Example 34: The method of any of Examples 4 to 30, wherein the step of determining the first weight and the second weight comprises a step of selecting the first weight to be higher than the second rate when only one of the neighboring blocks is intra-coded.
[0202] Example 35: The method of example 34, wherein the first weight is 3 and the second weight is 1.
[0203] Example 36: The method of example 34, wherein the first weight is 5 and the second weight is 3.
[0204] Example 37: The method of any of Examples 4 to 30, wherein the step of determining the first weight and the second weight comprises a step of selecting the second weight to be higher than the first rate when none of the neighboring blocks are intra-coded.
[0205] Example 38: The method of example 37, wherein the second weight is 3 and the first weight is 1.
[0206] Example 39: The method of example 37, wherein the second weight is 5 and the first weight is 3.
[0207] Example 40: The method of any of Examples 4 to 30, wherein determining the first weight and the second weight comprises selecting the second weight to be higher than the first rate when at least one of the neighboring blocks is predicted using DC intra mode or planar mode.
[0208] Example 41: The method of example 40, wherein the second weight is 3 and the first weight is 1.
[0209] Example 42: The method of example 40, wherein the second weight is 5 and the first weight is 3.
[0210] Example 43: The method of any of Examples 1-42, further comprising determining the first weight and the second weight according to a luma block of one of the neighboring blocks when the one of the neighboring blocks enables a single luma macro coding tree or a dual luma macro coding tree.
[0211] Example 44: The method of any of Examples 1 to 43, further comprising determining the first weight and the second weight according to a chroma block of one of the neighboring blocks when one of the neighboring blocks enables a dual luma-chroma coding tree.
[0212] Example 45: The method of any of Examples 1-44, further comprising determining the first weight and the second weight according to a number of inter predictions of the merge indexed block.
[0213] Example 46: The method of Example 45, wherein determining the first weight and the second weight comprises setting the first weight higher than the second weight when the merge indexed block is bi-predictive.
[0214] Example 47: The method of example 46, wherein the first weight is 3 and the second weight is 1.
[0215] Example 48: The method of example 46, wherein the first weight is 5 and the second weight is 3.
[0216] Example 49: The method of any of Examples 46 to 48, wherein the step of determining the first weight and the second weight comprises a step of determining the first weight and the second weight according to one of Examples 4 to 42 when the merge indexed block is uni-predictive.
[0217] Example 50: The method of Example 45, wherein determining the first weight and the second weight comprises setting the first weight higher than the second weight when the merge indexed block is uni-predictive.
[0218] Example 51 : The method of example 50, wherein the first weight is 3 and the second weight is 1.
[0219] Example 52: The method of example 50, wherein the first weight is 5 and the second weight is 3.
[0220] Example 53: The method of any of Examples 1-52, further comprising determining the first weight and the second weight according to a size of the current block.
[0221] Example 54: The method of example 53, wherein the size of the current block comprises the minimum of the current block width and the current block height.
[0222] Example 55: The method of example 53, wherein the size of the current block comprises the maximum of the current block width and the current block height.
[0223] Example 56: The method of example 53, wherein the size of the current block comprises the product of the current block width and the current block height.
[0224] Example 57: The method of example 53, wherein the size of the current block comprises the sum of the current block width and the current block height.
[0225] Example 58: The method of any of Examples 53-57, wherein determining the first weight and the second weight comprises setting the first weight higher than the second weight when the size of the block is higher than a predefined threshold.
[0226] Example 59: The method of example 58, wherein the first weight is 3 and the second weight is 1.
[0227] Example 60: The method of example 58, wherein the first weight is 5 and the second weight is 3.
[0228] Example 61: The method of any of Examples 53-57, wherein determining the first weight and the second weight comprises setting the second weight higher than the first weight when the size of the block is higher than a predefined threshold.
[0229] Example 62: The method of example 61, wherein the second weight is 3 and the first weight is 1.
[0230] Example 63: The method of example 61, wherein the second weight is 5 and the first weight is 3.
[0231] Example 64: The method of any of Examples 53-57, wherein determining the first weight and the second weight comprises setting the first weight higher than the second weight when the size of the block is lower than a predefined threshold.
[0232] Example 65: The method of example 64, wherein the first weight is 3 and the second weight is 1.
[0233] Example 66: The method of example 64, wherein the first weight is 5 and the second weight is 3.
[0234] Example 67: The method of any of Examples 53-57, wherein determining the first weight and the second weight comprises setting the second weight higher than the first weight when the size of the block is lower than a predefined threshold.
[0235] Example 68: The method of example 67, wherein the second weight is 3 and the first weight is 1.
[0236] Example 69: The method of example 67, wherein the second weight is 5 and the first weight is 3.
[0237] Example 70: The method of any of Examples 1-69, further comprising coding data in the bitstream representative of the first weight and the second weight.
[0238] Example 71: The method of example 70, wherein the data of the bitstream comprises at least one of a sequence parameter set, a picture parameter set, an adaptation parameter set, a video parameter set, a picture header, a slice header, a tile header, or a block header.
[0239] Example 72: A device for coding video data, comprising one or more means for performing the method of any of Examples 1 to 71.
[0240] Example 73: The device of example 72, wherein the one or more means comprises one or more processors implemented in circuitry.
[0241] Example 74: The device of example 72, further comprising a display configured to display the decoded video data.
[0242] Example 75: The device of example 72 comprising one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0243] Example 76: The device of Example 72, further comprising a memory configured to store video data.
[0244] Example 77: A device for encoding video data, comprising: means for forming an inter-predicted block for a current block of video data; means for forming an intra-predicted block for the current block of video data; means for applying a first weight to the inter-predicted block and a second weight to the intra-predicted block; means for combining the first weighted inter-predicted block and the second weighted intra-predicted block to form a predictive block for the current block; and means for coding the current block using the predictive blocks.
[0245] Example 78: A computer-readable storage medium having stored thereon instructions that, when executed, cause a processor to perform the method of any of Examples 1-71.
[0246] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, or may be added, combined, or omitted entirely (e.g., not all acts or events described are necessary to the practice of the techniques). Furthermore, in some examples, acts or events may be performed simultaneously rather than sequentially, e.g., through multi-threaded processing, interrupt processing, or multiple processors.
[0247] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates transfer of a computer program from one place to another, for example according to a communication protocol. Thus, a computer-readable medium may generally correspond to (1) a non-transitory 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, code and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0248] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.
[0249] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0250] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). Various components, modules, or units are described in this disclosure to highlight functional aspects of devices configured to perform the disclosed techniques, but they do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or may be provided by a collection of interoperable hardware units including one or more processors as described above, along with appropriate software and / or firmware.
[0251] Various examples have been described. These and other examples are within the scope of the following claims. [Explanation of symbols]
[0252] 100 Video encoding and decoding system, system 102 Source Device, Device, Video Device 104 Video Sources 106 Memory 108 Output Interface 110 Computer-readable medium 112 Storage Devices 114 File Server 116 Destination device, device, video device 118 Display Devices 120 Memory 122 Input Interface 130 Quad-tree / binary-tree (QTBT) structure, QTBT structure 132 Coding Tree Unit (CTU), CTU 140 Current Block 142 Upper adjacent block 144 Left adjacent block 146 Current Block 148 Upper Right Adjacent Block 150 Lower Left Adjacent Block 152 Current Block 154 Upper adjacent block 156 Left adjacent block 158 Upper left (upper l) adjacent block, upper left adjacent block 160 Current Block 162 Upper Right Adjacent Block 164 Lower left (left b) adjacent block, lower left adjacent block 166 Upper left adjacent block 168 Current Block 170 Upper adjacent block 172 Upper Right Adjacent Block 174 Left adjacent block 176 Lower Left Adjacent Block 178 Current Block 180 Upper adjacent block 182 Upper Right Adjacent Block 184 Left adjacent block 186 Lower Left Adjacent Block 188 Upper left adjacent block 200 Video Encoder 202 Mode Selection Unit 204 Residual Generation Unit 206 Conversion Processing Unit 208 Quantization Units 210 Inverse Quantization Unit 212 Inverse Transformation Processing Unit 214 Reconstruction Unit 216 Filter unit 218 Decoded Picture Buffer (DPB), DPB 220 Entropy Coding Unit 222 Motion Estimation Unit 224 Motion Compensation Unit 226 intra prediction units 230 Video Data Memory 300 Video Decoder 302 Entropy Decoding Unit 304 Prediction Processing Unit 306 Inverse Quantization Unit 308 Inverse Transformation Processing Unit 310 Reconstruction Unit 312 Filter unit 314 Decoded Picture Buffer (DPB), DPB 316 Motion Compensation Unit 318 Intra Prediction Units 320 CPB memory
Claims
1. 1. A method for decoding video data, comprising the steps of: forming an inter-predicted block for a current block of video data; forming an intra-predicted block for the current block of video data; determining whether a first neighboring block to the current block is intra-predictive coded, determining whether the first neighboring block is coded according to a first intra-prediction mode other than combined intra-prediction and intra-block copying; and determining whether a second neighboring block to the current block is intra-predictive coded, determining whether the image was coded using a second intra-prediction mode other than combined intra-prediction and intra-block copy; and determining a first weight and a second weight according to a number of the first and second neighboring blocks determined to be intra-predictive coded; applying the first weighting to the inter-predicted block and the second weighting to the intra-predicted block; combining the first weighted inter predicted block and the second weighted intra predicted block to form a predicted block for the current block; decoding the current block using the predicted block; A method comprising:
2. The method of claim 1 , wherein the first and second neighboring blocks include an above neighboring block and a left neighboring block.
3. decoding data of a bitstream representing the first weight and the second weight; 2. The method of claim 1, wherein the data of the bitstream representing the first weight and the second weight comprises at least one of a sequence parameter set, a picture parameter set, an adaptation parameter set, a video parameter set, a picture header, a slice header, a tile header, or a block header.
4. 4. The method of claim 3, wherein the step of decoding the current block further comprises: decoding a residual block for the current block; combining samples of the residual block with samples of the prediction block; The method of claim 1 , comprising:
5. The method of claim 1 , wherein the current block is a luminance block.
6. 2. The method of claim 1, wherein determining the first weight and the second weight includes selecting the second weight to be smaller than the first weight when it is determined that neither the first nor the second neighboring block is intra-predictively coded.
7. selecting the second weight to be smaller than the first weight when it is determined that neither the first nor the second neighboring block is intra-predictively coded, selecting said first weight to be 3 and said second weight to be 1; or selecting said first weight to be 5 and said second weight to be 3.
7. The method of claim 6, comprising:
8. 1. A method for encoding video data, comprising the steps of: forming an inter-predicted block for a current block of video data; forming an intra-predicted block for the current block of video data; determining whether a first neighboring block to the current block is intra-predictive coded, determining whether the first neighboring block is coded according to a first intra-prediction mode other than combined intra-prediction and intra-block copying; and determining whether a second neighboring block to the current block is intra-predictive coded, determining whether the image was coded using a second intra-prediction mode other than combined intra-prediction and intra-block copy; and determining a first weight and a second weight according to a number of the first and second neighboring blocks determined to be intra-predictive coded; applying the first weighting to the inter-predicted block and the second weighting to the intra-predicted block; combining the first weighted inter predicted block and the second weighted intra predicted block to form a predicted block for the current block; encoding the current block using the predicted block; A method comprising:
9. encoding data in a bitstream representing the first weight and the second weight; 9. The method of claim 8, wherein the data of the bitstream representing the first weight and the second weight comprises at least one of a sequence parameter set, a picture parameter set, an adaptation parameter set, a video parameter set, a picture header, a slice header, a tile header, or a block header.
10. 1. A device for decoding video data, comprising: a memory for storing said video data; and one or more processors implemented in a circuit, the one or more processors comprising: forming an inter-predicted block for a current block of the video data; forming an intra-predicted block for the current block of the video data; and determining whether a first neighboring block to the current block is intra-predictive coded, determining whether the first neighboring block is coded according to a first intra-prediction mode other than combined intra-prediction and intra-block copying; determining, determining whether a second neighboring block to the current block is intra-predictive coded, Determining whether the image was coded using a second intra-prediction mode other than combined intra-prediction and intra-block copy. determining, determining a first weight and a second weight according to a number of the first and second neighboring blocks determined to be intra-predictive coded; applying the first weighting to the inter-predicted block and the second weighting to the intra-predicted block; combining the first weighted inter predicted block and the second weighted intra predicted block to form a predicted block for the current block; decoding the current block using the predicted block; A device configured to:
11. the one or more processors are further configured to decode data of a bitstream representing the first weights and the second weights; 11. The device of claim 10, wherein the data of the bitstream representing the first weight and the second weight comprises at least one of a sequence parameter set, a picture parameter set, an adaptation parameter set, a video parameter set, a picture header, a slice header, a tile header, or a block header.
12. The device of claim 10 , wherein the current block is a luminance block.
13. 1. A device for encoding video data, comprising: a memory for storing said video data; and one or more processors implemented in a circuit, the one or more processors comprising: forming an inter-predicted block for a current block of the video data; forming an intra-predicted block for the current block of the video data; and determining whether a first neighboring block to the current block is intra-predictive coded, determining whether the first neighboring block is coded according to a first intra-prediction mode other than combined intra-prediction and intra-block copying; determining, determining whether a second neighboring block to the current block is intra-predictive coded, Determining whether the image was coded using a second intra-prediction mode other than combined intra-prediction and intra-block copy. determining, determining a first weight and a second weight according to a number of the first and second neighboring blocks determined to be intra-predictive coded; applying the first weighting to the inter-predicted block and the second weighting to the intra-predicted block; combining the first weighted inter predicted block and the second weighted intra predicted block to form a predicted block for the current block; encoding the current block using the predicted block; A device configured to:
14. the one or more processors are further configured to encode data in a bitstream representing the first weights and the second weights; 14. The device of claim 13, wherein the data of the bitstream representing the first weight and the second weight comprises at least one of a sequence parameter set, a picture parameter set, an adaptation parameter set, a video parameter set, a picture header, a slice header, a tile header, or a block header.
15. A computer readable storage medium having instructions stored thereon which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 9.
Citation Information
Patent Citations
Video signal processing method and apparatus using multiple hypothesis prediction
JP2022502972A
Extended Applications of Hybrid Intra-Inter Prediction
JP2022517666A
Position-dependent intra-inter prediction combination in video coding
US20200162737A1
Video signal processing method and apparatus using multi-assumption prediction
US20210235072A1
Extended application of combined intra-inter prediction
US20210274167A1
