Multi-hypothesis prediction for video coding

The implementation of multiple hypothesis prediction in video coding technologies addresses the challenge of enhancing prediction fidelity and reducing processing requirements.

JP7795538B2Active Publication Date: 2026-01-07QUALCOMM INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023533329
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-12-15
Filing Date
2021-12-16
Publication Date
2026-01-07
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Existing video coding technologies fail to efficiently utilize multiple hypothesis prediction (MHP) to improve data fidelity and reduce processing requirements.

Method used

Implement multiple hypothesis prediction (MHP) techniques in video coding, using weighted averaging and iterative accumulation of multiple motion vectors to enhance prediction accuracy and reduce signaling overhead.

Benefits of technology

Enhances prediction accuracy and reduces processing requirements by using multiple hypothesis prediction (MHP) to enhance prediction fidelity and reduce processing requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007795538000006
    Figure 0007795538000006
  • Figure 0007795538000007
    Figure 0007795538000007
  • Figure 0007795538000008
    Figure 0007795538000008
Patent Text Reader

Abstract

An exemplary device for decoding video data includes one or more processors configured to determine that first and second weights are specified for a bi-predictive mode predicted current block of the video data; determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as a base mode, determine an additional inter-prediction mode of the MHP mode; generate a first prediction block according to the bi-predictive mode; generate a second prediction block according to the additional inter-prediction mode; generate a final prediction block for the current block according to the MHP mode using the first prediction block and the second prediction block; and decode the current block using the final prediction block.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001]

[0001] This application claims priority to U.S. Patent Application No. 17 / 644,519, filed December 15, 2021, and U.S. Provisional Application No. 63 / 130,232, filed December 23, 2020, the entire contents of which are incorporated herein by reference. U.S. Patent Application No. 17 / 644,519, filed December 15, 2021, claims the benefit of U.S. Provisional Application No. 63 / 130,232, filed December 23, 2020.

[0002] FIELD OF THE DISCLOSURE

[0002] 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 radiotelephones, so-called "smartphones," video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-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]

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, video slices (e.g., video pictures or portions of video pictures) 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 intra-coded (I) slices of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in inter-coded (P or B) slices 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. Summary of the Invention

[0005]

[0005] Generally, this disclosure describes techniques for inter-prediction in video coding (encoding and decoding). In particular, these techniques relate to multiple hypothesis prediction. In video coding, a video is represented by a series of pictures. Each picture may be partitioned into blocks, and each block may be coded individually. Generally, a block is coded using a predictive block and a residual block. A video coder may generally form a predictive block according to inter-prediction (with respect to a previously coded picture) or intra-prediction (with respect to a previously coded block of the same picture). In inter-prediction, a block may be predicted using unidirectional (one motion vector) or bidirectional (two motion vectors) prediction. Furthermore, in inter-prediction, a block may be predicted using multiple hypothesis prediction, i.e., using three or more motion vectors.

[0006]

[0006] In one example, a method for decoding video data includes determining that a first weight and a second weight are specified for a current block of video data that is inter-prediction coded using a bi-prediction mode, wherein the first weight is different from the second weight; in response to determining that the first weight and the second weight are specified, determining whether the current block should be predicted using a multi-hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; and generating a second prediction block according to the additional inter-prediction mode. generating a final prediction block for the current block according to an MHP mode using the first prediction block and the second prediction block; and decoding the current block using the final prediction block.

[0007]

[0007] In another example, a device for decoding video data includes a memory configured to store the video data and one or more processors implemented in circuitry, wherein the one or more processors are configured to: determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-prediction mode; in response to determining that the first weight and the second weight are specified, wherein the first weight is different from the second weight, determine whether the current block is to be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; in response to determining that the current block is to be predicted using the MHP mode with the bi-prediction mode as the base mode, determine an additional inter-prediction mode of the MHP mode; generate a first predictive block according to the bi-prediction mode; generate a second predictive block according to the additional inter-prediction mode; generate a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and decode the current block using the final predictive block.

[0008]

[0008] In another example, a computer-readable storage medium stores instructions that, when executed, cause a processor to: determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-prediction mode; in response to determining that the first weight and the second weight are specified, wherein the first weight is different from the second weight, determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determine an additional inter-prediction mode of the MHP mode; generate a first prediction block according to the bi-prediction mode; generate a second prediction block according to the additional inter-prediction mode; generate a final prediction block for the current block according to the MHP mode using the first prediction block and the second prediction block; and decode the current block using the final prediction block.

[0009] In another example, a device for decoding video data includes means for determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, means for determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; means for determining an additional inter-prediction mode of the MHP mode in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode; means for generating a first predictive block according to the bi-predictive mode; means for generating a second predictive block according to the additional inter-prediction mode; means for generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and means for decoding the current block using the final predictive block.

[0009]

[0010] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief explanation of the drawings]

[0010] [Figure 1]

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

[0012] 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure. [Figure 2B] A conceptual diagram showing the corresponding coding tree unit (CTU). [Figure 3]

[0013] 1 is a block diagram illustrating an example video encoder that may implement the techniques of this disclosure. [Figure 4]

[0014] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Figure 5]

[0015] 10 is a flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 6]

[0016] 10 is a flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. [Figure 7]

[0017] FIG. 1 is a conceptual diagram showing an example of applying bi-prediction with CU-level weighting (BCW) and multiple hypothesis prediction (MHP) as an extension of BCW. [Figure 8]

[0018] 1 is a flowchart illustrating an example method for decoding (eg, reproducing) a current block of video data, in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0011]

[0019] In video coding, a video is represented by a series of pictures. Each picture may be partitioned into blocks, and each block may be coded individually. Generally, a block is coded using a predictive block and a residual block. A video coder may generally form a predictive block according to inter-prediction (with respect to a previously coded picture) or intra-prediction (with respect to a previously coded block of the same picture). In inter-prediction, a block may be predicted using unidirectional (one motion vector) or bidirectional (two motion vectors) prediction.

[0012]

[0020] The video coder may further code the motion vector using, for example, a merge mode or an advanced motion vector prediction (AMVP) mode. In the merge mode, the video coder codes a merge candidate, which represents a neighboring block relative to a current block from which motion information for the motion vector (e.g., a reference picture index, a reference picture list, and the motion vector itself, e.g., the x- and y-components of the motion vector) should be inferred. The x-component represents the horizontal displacement for the motion vector, and the y-component represents the vertical displacement for the motion vector. In the AMVP mode, the video coder codes the motion vector prediction candidate, which represents a neighboring block relative to a current block from which a motion vector should be predicted, along with motion vector difference (MVD) information representing an offset to apply to the x- and y-components of the motion vector prediction candidate. In AMVP, the video coder also explicitly codes reference picture identification information, e.g., a reference picture index and a reference picture list.

[0013]

[0021] In ITU-T H.265 / High Efficiency Video Coding (HEVC), a video coder codes the MVD value (i.e., the difference between the motion vector predictor and the motion vector for the current CU) in units of 1 / 4 luma sample (when sub-pixel precision is enabled, e.g., when 'use_integer_mv_flag' has a value of 0 in the slice header). ITU-T H.266 / Generic Video Coding (VVC) introduced a CU-level adaptive motion vector resolution (AMVR) scheme that allows the MVD of a CU to be coded with different precisions. Depending on the mode for the current CU (normal AMVP mode or affine AMVP mode), the video coder may adaptively select the MVD resolution according to VVC as follows: in normal AMVP mode, the video coder may select from 1 / 4 luma sample, 1 / 2 luma sample, integer luma sample, or 4 luma sample; in affine AMVP mode, the video coder may select from 1 / 16 luma sample, 1 / 4 luma sample, or integer luma sample.

[0014]

[0022] In VVC, for a CU with at least one non-zero MVD component, the video coder may code a first flag to indicate whether quarter-luma sample MVD precision is used for the CU. If the first flag is 0, no further signaling is needed and quarter-luma sample MVD precision is currently used for the CU. Otherwise, the video coder may code a second flag to indicate whether half-luma sample MVD precision or another MVD precision (integer or 4 luma samples) is used for a regular AMVP CU. In the case of half-luma samples, the video coder may apply a 6-tap interpolation filter instead of the default 8-tap interpolation filter for half-luma sample positions. Otherwise, the video coder may code a third flag to indicate whether integer-luma sample MVD precision or 4 luma sample MVD precision is used for a regular AMVP CU.

[0015]

[0023] For an affine AMVP CU in VVC, the video coder may use a second flag to indicate whether integer luma sample MVD precision or 1 / 16 luma sample MVD precision is used. To ensure that the reconstructed MV has the intended precision (1 / 4 luma sample, 1 / 2 luma sample, integer luma sample, or 4 luma sample), the video coder may round the motion vector predictor for the CU to the same precision as that of the MVD before adding the motion vector predictor with the MVD. The video coder may round the motion vector predictor toward 0 (i.e., negative motion vector predictors are rounded toward positive infinity, and positive motion vector predictors are rounded toward negative infinity).

[0016]

[0024] In HEVC, a video coder generates a bi-predictive signal by averaging two prediction signals obtained from two different reference pictures and / or by using two different motion vectors. In VVC, the bi-predictive mode is extended beyond simple averaging to allow weighted averaging of two prediction signals, for example, as follows:

[0017]

number

[0018]

[0025] In VVC, five weights w are allowed in weighted averaging bi-prediction, with w∈{-2, 3, 4, 5, 10}. For each bi-predictive coding unit (CU, i.e., block), the weight w is determined in one of two ways: 1) for non-merged CUs, the video coder codes data representing a weight index following the motion vector differential data in the bitstream; or 2) for merged CUs, the video coder infers the weight index from neighboring blocks based on the merge candidate index. In VVC, bi-prediction with CU-level weighting (BCW) is applied only to CUs with 256 or more luma samples (i.e., CU width × CU height is greater than or equal to 256). For low-latency pictures, all five weights are used. For non-low-latency pictures, only three weights (w∈{3, 4, 5}) are used.

[0019]

[0026] Furthermore, in inter prediction, a block may be predicted using multiple hypothesis prediction, i.e., using more than two motion vectors. Multiple hypothesis prediction (MHP) is described below.

[0020] Winken et al., "Multi-hypothesis Inter-prediction," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 10th Meeting: San Diego, USA, April 10-20, 2018, document JVET-J0041-v2. Winken et al., "CE10: Multi-Hypothesis Inter Prediction (Tests 1.5 - 1.8)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 11th Meeting: Ljubljana, Slovenia, July 10-18, 2018, document JVET-K0269, Winken et al., "CE10: Multi-Hypothesis Inter Prediction (Tests 1.2.a - 1.2.c)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 12th Meeting: Macau, China, October 3-12, 2018, document JVET-L0148-v3, and Winken et al., "CE10: Multi-hypothesis inter prediction (Test 10.1.2)", Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 13th Meeting: Marrakech, Morocco, 9-18 January 2019, document JVET-M0425-v2.

[0021]

[0027] In MHP, inter-prediction techniques allow weighted overlap of three or more motion-compensated prediction signals (e.g., using three or more motion vectors). The video coder may obtain a resulting overall prediction signal by sample-wise weighted overlap. uni / bi Using the first additional inter prediction signal / hypothesis h3, the first additional inter prediction signal / hypothesis h3, and the weighting factor α, the video coder may obtain a resulting prediction signal p3 as follows:

[0022]

number

[0023]

[0028] According to MHP, a video coder may code data for the weighting factor α in the syntax element add_hyp_weight_idx, for example, according to the mapping in Table 1 below.

[0024] [Table 1]

[0025]

[0029] Similar to the techniques described above, the video coder may use two or more additional prediction signals. The video coder may iteratively accumulate the resulting overall prediction signal with each additional prediction signal, as follows:

[0026]

number

[0027]

[0030] The video coder is the last p n (i.e., p with maximum index n n ) the resulting overall predicted signal can be obtained as

[0028]

[0031] For inter-predicted blocks that use merge mode (but do not use skip mode) according to these conventional MHP techniques, the video coder may also specify an additional inter-prediction signal. For the additional prediction signal, the video coder may use one of two AMVP candidate lists.

[0029] If the picture order count (POC) of a reference picture of the additional prediction signal is equal to the POC of the used list1 reference picture, the video coder may use the list1 AMVP candidate list.

[0030] Otherwise, the video coder may use the list0 AMVP candidate list.

[0031]

[0032] This disclosure recognizes that the conventional MHP signaling described above may be improved. The techniques of this disclosure may achieve improvements in video coding related to the use of MHP in that these techniques may reduce signaling overhead, reduce processing requirements, and / or improve data fidelity by increasing prediction accuracy for motion vector predictors and / or prediction blocks.

[0032]

[0033] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. Generally, 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.

[0033]

[0034] 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. In particular, 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, mobile devices, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, etc. 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.

[0034]

[0035] In the example of FIG. 1 , source device 102 includes a video source 104, memory 106, a video encoder 200, and an 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, video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply techniques for coding data for multiple hypothesis prediction. Thus, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, 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.

[0035]

[0036] The system 100 shown in FIG. 1 is merely an example. In general, any digital video encoding and / or decoding device may implement techniques for coding data for multiple-hypothesis prediction. Source device 102 and destination device 116 are merely examples of coding devices, such that source device 102 generates coded video data for transmission to destination device 116. This disclosure refers to a “coding” device as a device that performs coding (encoding and / or decoding) of data. Accordingly, video encoder 200 and video decoder 300 represent examples of coding devices, particularly video encoders and video decoders, respectively. In some examples, source device 102 and destination device 116 may operate substantially symmetrically, such that each of source device 102 and destination device 116 includes video encoding and video decoding components. Thus, system 100 may support one-way or two-way video transmission between source device 102 and destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.

[0036]

[0037] Generally, 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 live 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 their received order (sometimes referred to as “display order”) into 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 onto a computer-readable medium 110 via the output interface 108 for receipt and / or retrieval by, for example, the input interface 122 of the destination device 116.

[0037]

[0038] Memory 106 of source device 102 and memory 120 of destination device 116 represent general-purpose memory. In some examples, memory 106, 120 may store raw video data, e.g., raw video from video source 104 and raw decoded video data from video decoder 300. Additionally or alternatively, memory 106, 120 may store software instructions executable by, e.g., video encoder 200 and video decoder 300, respectively. While memory 106 and memory 120 are shown separate from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 may also include internal memory for functionally similar or equivalent purposes. Additionally, memory 106, 120 may store encoded video data, e.g., output from video encoder 200 and input to video decoder 300. In some examples, portions of the memory 106, 120 may be allocated as one or more video buffers, for example, to store raw decoded and / or encoded video data.

[0038]

[0039] 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 for enabling 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 containing the encoded video data, and the input interface 122 may demodulate a received transmission signal, in accordance with 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 for facilitating communication from the source device 102 to the destination device 116.

[0039]

[0040] 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, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0040]

[0041] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device, which may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or download.

[0041]

[0042] File server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to destination device 116. File server 114 may represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (e.g., File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a network-attached storage (NAS) device. File server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.

[0042]

[0043] Destination device 116 may access the encoded video data from 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, that is suitable for accessing the encoded video data stored on file server 114. Input interface 122 may be configured to operate according to any one or more of the various protocols described above for retrieving or receiving media data from file server 114, or other such protocols for retrieving media data.

[0043]

[0044] Output interface 108 and 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 output interface 108 and input interface 122 comprise wireless components, output interface 108 and 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 output interface 108 comprises a wireless transmitter, output interface 108 and 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, source device 102 and / or destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include an SoC device for performing functions attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include an SoC device for performing functions attributed to the video decoder 300 and / or the input interface 122.

[0044]

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

[0045]

[0046] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 that is 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 liquid crystal display (LCD), a plasma display, an organic light-emitting diode (OLED) display, or another type of display device.

[0046]

[0047] 1, in some examples, video encoder 200 and video decoder 300 may each be integrated with an audio encoder and / or decoder and may include an appropriate MUX-DEMUX unit or other hardware and / or software to handle 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).

[0047]

[0048] Video encoder 200 and video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, or any combination thereof, 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, etc. 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 implement the techniques of this disclosure. Video encoder 200 and video decoder 300 may each 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. Devices including video encoder 200 and / or video decoder 300 may comprise integrated circuits, microprocessors, and / or wireless communication devices such as cellular phones.

[0048]

[0049] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as Versatile Video Coding (VVC). A draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 9)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 18th Meeting, April 15-24, JVET-R2001-v8 (hereinafter "VVC Draft 9"). However, the techniques of this disclosure are not limited to any particular coding standard.

[0049]

[0050] Generally, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure containing data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of luminance and / or chrominance data samples. Generally, the video encoder 200 and the video decoder 300 may code video data represented in YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a picture sample, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red and blue hues of chrominance components. 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.

[0050]

[0051] 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 a block of a picture to include the process of encoding or decoding data for the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values ​​for syntax elements that represent coding decisions (e.g., coding modes) and the 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.

[0051]

[0052] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as 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 referred to as a "leaf node," and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partitioning 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.

[0052]

[0053] As another example, video encoder 200 and video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as video encoder 200) partitions a picture into multiple coding tree units (CTUs). 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 separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels: a first level partitioned according to quad-tree partitioning and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[0053]

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

[0054]

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

[0055]

[0056] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures according to HEVC. For illustrative purposes, 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 as well.

[0056]

[0057] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB for a monochrome picture or a picture coded using three separate color planes and syntax structures used to code the samples. The CTB may be an N×N block of samples, for some value of N such that the division of the components into the CTB is partitioned. A component is an array or a single sample from one of three arrays (luma and two chroma) for a picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array for a picture in monochrome format. In some examples, a coding block is an M×N block of samples, for some value of M and N such that the division of the CTB into coding blocks is partitioned.

[0057]

[0058] Blocks (e.g., CTUs or CUs) may be grouped in various ways in a picture. As an example, a brick may refer to a rectangular region of a CTU row within a particular tile in a picture. A tile may be a rectangular region of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular region of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular region of a CTU having a height specified by a syntax element (e.g., in a picture parameter set) and a width equal to the width of the picture.

[0058]

[0059] In some examples, a tile may be partitioned into multiple bricks, each of which may contain one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.

[0059]

[0060] The bricks in a picture may also be arranged into slices. A slice may be an integer number of bricks of a picture that may be contained entirely in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes either several complete tiles or only a continuous sequence of complete bricks of one tile.

[0060]

[0061] This disclosure may use "N x N" 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 the vertical and horizontal dimensions, e.g., 16 x 16 samples or 16 by 16 samples. Generally, a 16 x 16 CU has 16 samples in the vertical direction (y = 16) and 16 samples in the horizontal direction (x = 16). Similarly, an N x N 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. Moreover, 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 N x M samples, where M is not necessarily equal to N.

[0061]

[0062] 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 should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between the samples of the CU prior to encoding and the predictive block.

[0062]

[0063] To predict a CU, 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, video encoder 200 may generate a predictive block using one or more motion vectors. Video encoder 200 may generally perform motion search to identify a reference block that closely matches the CU, e.g., with respect to the difference between the CU and the reference block. Video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, video encoder 200 may predict the current CU using unidirectional prediction or bidirectional prediction.

[0063]

[0064] Some examples of 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.

[0064]

[0065] To perform intra prediction, video encoder 200 may select an intra prediction mode to generate a predicted block. Some examples of VVC provide 67 intra prediction modes, including various directional modes, as well as planar and DC modes. Generally, 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 samples of the current block should be predicted. Such samples may generally be above, above-left, or to the left of the current block in the same picture as the current block, assuming that video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom).

[0065]

[0066] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in 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. For example, in unidirectional or bidirectional inter prediction, 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.

[0066]

[0067] Following prediction, such as intra-prediction or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample-by-sample differences between the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce 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. Furthermore, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, or a Karhunen-Loeve transform (KLT), following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.

[0067]

[0068] As described above, following any transformation to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may truncate 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.

[0068]

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

[0069]

[0070] To implement CABAC, 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 values. A probability determination may be based on the context assigned to the symbol.

[0070]

[0071] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for video decoder 300, e.g., 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.

[0071]

[0072] 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 prediction and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.

[0072]

[0073] Generally, video decoder 300 performs an inverse process to 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 reverse to, but substantially similar to, the CABAC encoding process of video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and the partitioning of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks of video data (e.g., CUs).

[0073]

[0074] 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- 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 the predictive block and the residual block (sample by sample) 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.

[0074]

[0075] In accordance with the techniques of this disclosure, video encoder 200 and video decoder 300 may be configured to perform multiple hypothesis prediction (MHP). In particular, video encoder 200 and video decoder 300 may be configured to perform any or all of the following techniques for MHP, in any combination:

[0075]

[0076] In one example, video encoder 200 and video decoder 300 may apply MHP for non-merged mode only when bi-prediction with CU-level weighting (BCW) uses unequal weights (i.e., weights for predictors from different references are different). Thus, video encoder 200 and video decoder 300 may apply MHP as an extension of BCW. For example, when applied on VVC, video encoder 200 and video decoder 300 will only code an "additional prediction signal" in non-merged mode when the BCW uses a weight other than "4". Note that the weight for the "additional prediction signal" also implies unequal weights.

[0076]

[0077] In another example, in addition to or as an alternative to the above techniques, for non-merge mode, the MVD resolution of the "additional prediction signal" is the same as the selected MVD resolution in the base mode. Alternatively, video encoder 200 and video decoder 300 may code the MVD resolution of the "additional prediction signal" as in AMVR for the base mode. Thus, the MVD resolution of the "additional prediction signal" may be adaptive and different from that in the base mode. The additional mode refers to the mode (either merge mode or non-merge mode) in which the "additional prediction signal" is signaled.

[0077]

[0078] In another example, in addition to or as an alternative to the above techniques, video encoder 200 and video decoder 300 may be configured to apply MHP using only different motion vectors or different reference pictures. This may reduce the signaling cost for additional motion vectors and may ensure that the final prediction may not be a duplicate of the BCW.

[0078]

[0079] In another example, in addition to or as an alternative to the above techniques, video encoder 200 and video decoder 300 may be configured to not apply MHP to blocks with motion vectors coded using non-merge mode when the AMVR mode is half luma sample, where a different interpolation filter is applied for motion compensation. Predictors may be generated by smooth interpolation filters in half luma sample AMVR modes, and therefore applying MHP (using weighted averaging) to generate smooth predictors is not very helpful in such modes. Avoiding signaling of additional prediction signals may reduce some overhead for such modes.

[0079]

[0080] In another example, in addition to or as an alternative to the above techniques, video encoder 200 and video decoder 300 may be configured to determine whether to apply MHP according to a selected interpolation filter (e.g., a selected interpolation filter index) to interpolate sub-integer pixel values ​​for sub-integer precision motion vectors. In some designs, a set of interpolation filters with different characteristics may be used. The selection of an interpolation filter may be per block, signaled, or inherited as a filter index. The interpolation filters may be different for different fractional (sub-integer) positions (phases). MHP may be disabled for some filter combinations. In one example, the set of interpolation filters may include a sharp filter and a smooth filter. In that case, video encoder 200 and video decoder 300 may disable MHP for a block if a smooth filter is selected. In general, a “sharp” filter means assigning more weight to some samples than to others, and a “smooth” filter means assigning relatively similar weights across different samples.

[0080]

[0081] In another example, in addition to or as an alternative to the above techniques, video encoder 200 and video decoder 300 do not select an AMVP candidate list for a motion vector for an additional prediction signal based on whether the POC of the reference picture list is equal to the POC of the list1 reference picture used. Instead, video encoder 200 and video decoder 300 may be configured to determine the list to use according to the reference index. This may simplify the process and provide coding improvements.

[0081]

[0082] In another example, in addition to or as an alternative to the above techniques, video encoder 200 and video decoder 300 may be configured with additional weighting factors available for MHP other than those in Table 1. For example, video encoder 200 and video decoder 300 may be configured to use the weighting factors in Table 2.

[0082] [Table 2]

[0083] In the above example, an additional weight of 1 / 2 may be used, which allows video encoder 200 to assign more importance to the additional hypotheses than is possible with conventional methods.

[0084] This disclosure may generally refer 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 encoded video data. That is, video encoder 200 may signal values ​​for syntax elements in a bitstream. Generally, signaling refers to generating values ​​in a bitstream. As mentioned above, source device 102 may transport the bitstream to destination device 116 in substantially real time, or may transport the bitstream to destination device 116 in non-real time, such as may be done when storing syntax elements to storage device 112 for later retrieval by destination device 116.

[0085] 2A and 2B are conceptual diagrams illustrating an exemplary quad-tree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quad-tree splitting, and dotted lines represent binary-tree splitting. At each split (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which splitting type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. In quad-tree splitting, the quad-tree node splits a block horizontally and vertically into four sub-blocks with equal size, so there is no need to indicate the splitting type. Thus, video encoder 200 may encode, and video decoder 300 may decode, syntax elements (such as splitting information) for the region tree level (i.e., solid lines) of QTBT structure 130 and syntax elements (such as splitting information) for the prediction tree level (i.e., dashed lines) of QTBT structure 130. Video encoder 200 may encode, and video decoder 300 may decode, video data, such as prediction and transform data, for CUs represented by terminal leaf nodes of QTBT structure 130.

[0086] 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 binary tree size (MaxBTSize, representing the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, representing the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, representing the minimum allowed binary tree leaf node size).

[0087]

[0087] The root node of the QTBT structure corresponding to a CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to quadtree partitioning. That is, a node at the first level is either a leaf node (without child nodes) or has four child nodes. The example QTBT structure 130 represents a node including a parent node and child nodes with solid lines for branching. If a node at the first level is not larger than the maximum allowable binary tree root node size (MaxBTSize), the node may be further partitioned by its respective binary tree. The binary tree splitting of a node may be repeated until the node resulting from the split reaches the minimum allowable binary tree leaf node size (MinBTSize) or the maximum allowable binary tree depth (MaxBTDepth). The example QTBT structure 130 represents a node with dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), and CUs are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without further partitioning. As explained above, a CU may also be referred to as a "video block" or "block."

[0088] In one example of a QTBT partitioning structure, the CTU size is set as 128x128 (luma sample 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. Quad-tree partitioning is first applied to the CTU to generate a quad-tree leaf node. The quad-tree leaf node may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quad-tree leaf node is 128x128, the quad-tree leaf node is not further split by the binary tree because its size exceeds MaxBTSize (i.e., 64x64 in this example). In other cases, the quad-tree leaf node may be further partitioned by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. A binary tree node with a width equal to MinBTSize (4 in this example) implies that no further vertical splitting (i.e., width division) is allowed for that binary tree node. Similarly, a binary tree node with a height equal to MinBTSize implies that no further horizontal splitting (i.e., height division) is 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 division.

[0089]

[0089] Figure 3 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. Figure 3 is provided for illustrative purposes and should not be considered limiting of the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes video encoder 200 in the context of video coding standards such as the ITU-T H.265 / HEVC video coding standard and the developing VVC video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to other video encoding and decoding standards.

[0090] 3, the video encoder 200 includes a video data memory 230, a mode select 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 select unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. For example, the units of video encoder 200 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Moreover, video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.

[0091] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data stored in video data memory 230, for example, from video source 104 (FIG. 1). DPB 218 may serve as a reference picture memory that stores reference video data for use in predicting subsequent video data by video encoder 200. Video data memory 230 and DPB 218 may be formed by any of a variety of memory devices, such as synchronous dynamic random access memory (DRAM), including DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 may be provided by the same memory device or separate memory devices. In various examples, video data memory 230 may be on-chip with other components of video encoder 200, as shown, or off-chip relative to those components.

[0092] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically so described, nor should they be construed as limited to memory external to video encoder 200 unless specifically so described. Instead, 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.

[0093] The various units in FIG. 3 are shown to aid in understanding the operations performed by video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is pre-configured as to the operations that may be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and to provide 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. A fixed-function circuit may execute software instructions (e.g., to receive or output parameters), but the types of operations that the fixed-function circuit performs are 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 units may be integrated circuits.

[0094]

[0094] Video encoder 200 may include an arithmetic logic unit (ALU), a basic functional unit (EFU), a programmable core formed from digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of video encoder 200 are implemented using software executed by programmable circuits, memory 106 (FIG. 1) may store instructions (e.g., object code) of the software that video encoder 200 receives and executes, or another memory (not shown) within video encoder 200 may store such instructions.

[0095]

[0095] The video data memory 230 is configured to store 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.

[0096] The mode select unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode select unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode select 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.

[0097]

[0097] The mode selection unit 202 generally coordinates multiple coding passes to test combinations of coding parameters and obtained rate-distortion values ​​for such combinations. The coding parameters may include partitioning of the CTU into CUs, a prediction mode for the CU, a transform type for the residual data of the CU, a quantization parameter for the residual data of the CU, etc. The mode selection unit 202 may finally select a combination of coding parameters that has a rate-distortion value that is better than other tested combinations. According to the techniques of this disclosure, the mode selection unit 202 may select whether to predict the current block using multiple hypothesis prediction (MHP) according to the techniques of this disclosure, as well as any of the other various factors described above, such as weights to be applied to the predicted block, MVD resolution, etc.

[0098] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs, encapsulating one or more CTUs in a slice. Mode select unit 202 may partition the CTUs of the picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as “video blocks” or “blocks.”

[0099] Generally, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for a current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 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). In particular, 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 sample-by-sample differences between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations, indicating the reference block that most closely matches the current block.

[0100] 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 the current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. In MHP, the motion estimation unit 222 may provide an additional motion vector.

[0101]

[0101] The motion compensation unit 224 may then generate a predictive block using the motion vector and various weights, and the mode select unit 202 may finally determine an appropriate weight among the weights. For example, the motion compensation unit 224 may use the motion vector to retrieve data of the reference block. As another example, if the motion vector has fractional sample precision, the motion compensation unit 224 may interpolate values ​​for the predictive block according to one or more interpolation filters. Moreover, in bidirectional inter prediction and / or MHP, the motion compensation unit 224 may retrieve data for two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, through sample-wise averaging or weighted averaging.

[0102] In some examples, the mode selection unit 202 may determine to apply MHP as an extension of bi-prediction with CU-level weighting (BCW). For example, the mode selection unit 202 may determine that coding a block using MHP as an extension of BCW results in the best rate-distortion optimization (RDO) value. In particular, the motion estimation unit 222 may determine motion information for generating an intermediate prediction block in a base bi-prediction mode, as well as motion information for generating an additional prediction block using an additional prediction mode (e.g., bi-prediction or uni-prediction). The mode selection unit 202 may determine that the prediction blocks generated using BCW should be combined using unequal weights (e.g., a weight value other than 4).

[0103] The motion compensation unit 224 may generate two inter prediction blocks (for the BCW predicted intermediate prediction block) and combine the two inter prediction blocks using unequal weights to form an intermediate prediction block. The motion compensation unit 224 may then generate an additional prediction block using an additional prediction mode. The motion compensation unit 224 may further combine the intermediate prediction block with the additional prediction block according to MHP. Furthermore, the mode selection unit 202 may determine to encode the motion information using a non-merge mode, such as AMVP.

[0104] The mode select unit 202 may also determine weighting factors for combining the intermediate predictive block with the additional predictive block according to MHP. The weighting factors for MHP are separate from the unequal weights of the BCW. For example, the mode select unit 202 may provide the entropy encoding unit 220 with values ​​of the weighting factors to be coded according to a table specifying additional hypothesis weight index values ​​(e.g., add_hyp_weight_idx) for the weighting factors. The entropy encoding unit 220 may determine the values ​​of the additional hypothesis weight index values ​​from the table. Thus, the entropy encoding unit 220 may encode both data representing the unequal weights of the BCW as well as the weighting factors for the MHP.

[0105] The mode selection unit 202 may provide weight values ​​and motion information for the base bi-prediction mode and the additional prediction mode to the entropy encoding unit 220. In some examples, the motion estimation unit 222 and the motion compensation unit 224 may be configured to use an MVD precision for the MVD of the motion information for the additional prediction signal that is the same as the MVD precision for the MVD of the base bi-prediction mode. Thus, the mode selection unit 202 does not need to provide data representing the MVD precision for the additional prediction mode to the entropy encoding unit 220.

[0106] In another example, when the mode selection unit 202 determines to predict the current block using a bi-prediction mode with equal weights, the mode selection unit 202 may prevent the use of an additional prediction signal for MHP. Thus, the entropy coding unit 220 does not need to code additional motion information when the weights are equal for BCW.

[0107] As another example, for intra prediction, or intra-predictive coding, intra prediction unit 226 may generate a predictive block from samples neighboring a current block. For example, in a directional mode, 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 produce a predictive block. As another example, in a DC mode, intra prediction unit 226 may calculate an average of neighboring samples for the current block and generate a predictive block to include this resulting average for each sample of the predictive block.

[0108] The mode select 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 select 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.

[0109] In examples in which the mode select 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 the like 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.

[0110] In examples where the mode select unit 202 does not further partition 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. The video encoder 200 and the video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.

[0111] In other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, for example, mode select 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, mode select unit 202 may not generate a predictive block, but may instead generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, mode select unit 202 may provide these syntax elements to be coded to entropy coding unit 220.

[0112]

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

[0113] 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 on the residual block, e.g., a linear transform and a quadratic transform such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0114] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode select unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in a loss of information, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.

[0115] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may produce 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 the mode select unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode select unit 202 to produce the reconstructed block.

[0116]

[0116] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.

[0117] 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. Furthermore, 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.

[0118] Generally, 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 select unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on the syntax elements, which are another example of video data, to generate entropy-encoded data. For example, 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, entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.

[0119]

[0119] Video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, entropy encoding unit 220 may output the bitstream.

[0120]

[0120] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are 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.

[0121]

[0121] 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 blocks. Rather, MVs for luma coding blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0122]

[0122] Figure 4 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. Figure 4 is provided for illustrative purposes and does not limit the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 in accordance with VVC and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.

[0123] 4, 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. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.

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

[0125] 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 coded pictures, 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. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as synchronous dynamic random access memory (DRAM), including DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300 or off-chip relative to those components.

[0126] 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 as described above along with 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.

[0127] The various units shown in FIG. 4 are presented to aid in understanding the operations performed by video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 3, a fixed-function circuit refers to a circuit that provides a specific function and is pre-configured as to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to provide 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. A fixed-function circuit may execute software instructions (e.g., to receive or output parameters), but the types of operations that the fixed-function circuit performs are generally invariant. In some examples, one or more units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

[0128]

[0128] The video decoder 300 may include a programmable core formed from an ALU, an EFU, 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 (e.g., object code) of the software that the video decoder 300 receives and executes.

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

[0130] Generally, 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 (here, the block currently being reconstructed, i.e., decoded, may be referred to as the “current block”).

[0131] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of a quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or one or more transform mode indications. 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 to apply. The inverse quantization unit 306 may perform, for example, 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.

[0132] After the inverse quantization unit 306 forms the transform coefficient blocks, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient blocks to generate residual blocks 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 transform coefficient blocks.

[0133] Furthermore, prediction processing unit 304 generates a predictive 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 predictive 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 the inter-prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 3).

[0134] For example, motion compensation unit 316 may be configured to perform unidirectional prediction or bidirectional prediction, or MHP, in accordance with the techniques of this disclosure. Prediction processing unit 304 may be configured in accordance with the techniques of this disclosure to determine whether MHP is available for the current block and, accordingly, control motion compensation unit 316 to perform or not perform MHP. Entropy decoding unit 302, in some examples, may decode data representing MVD weights for motion vectors and / or weights to be applied to predictive blocks to form weighted combinations of predictive blocks.

[0135] In some examples, the entropy decoding unit 302 may decode data representing weights for the BCW mode for the current block. When the weights for the BCW mode are unequal, the entropy decoding unit 302 may further determine that additional motion information for the additional prediction signal should be entropy decoded. Accordingly, the entropy decoding unit 302 may entropy decode the additional motion information as well as the motion information for the base bi-prediction mode for BCW and provide all of the weights and motion information to the prediction processing unit 304. The entropy decoding unit 302 may further entropy decode a weighting factor index value for MHP, which represents a weighting factor to be used when combining the prediction blocks according to MHP. The entropy decoding unit 302 may determine the weighting factor from the weighting factor index using a weighting factor table that maps index values ​​to weighting factors.

[0136] The motion compensation unit 316 may generate two inter prediction blocks (for the BCW predicted intermediate prediction block) and combine the two inter prediction blocks using unequal weights to form the intermediate prediction block. The motion compensation unit 316 may then generate an additional prediction block using an additional prediction mode. The motion compensation unit 316 may further combine the intermediate prediction block with the additional prediction block according to MHP using a weighting factor. Again, the weighting factor for MHP is separate from the BCW weight.

[0137] In some examples, the motion compensation unit 316 may be configured to use an MVD precision for the MVD of the motion information for the additional prediction signal that is the same as the MVD precision for the MVD of the base bi-prediction mode. Thus, the entropy decoding unit 302 may not decode data representing the MVD precision for the additional prediction mode.

[0138] In another example, if the entropy decoding unit 302 decodes data indicating that the current block should be predicted using a bi-prediction mode with equal weights, the entropy decoding unit 302 may determine that no additional motion information should be decoded for the current block. Thus, subsequent data in the bitstream may correspond to different syntax elements than the additional motion information.

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

[0140]

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

[0141]

[0141] 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 are not necessarily performed in all examples.

[0142] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operations of the filter unit 312 are not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the filtered reconstructed block 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. Moreover, the video decoder 300 may output the decoded picture from the DPB 314 for subsequent presentation on a display device, such as the display device 118 of FIG. 1 .

[0143] 5 is a flowchart illustrating an example method for encoding a current block in accordance with the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 3), it should be understood that other devices may be configured to implement a method similar to that of FIG.

[0144] 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. Video encoder 200 may form the predictive block according to the MHP described above in accordance with 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 the difference between the original uncoded block and the predictive block for the current block. Video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, video encoder 200 may 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 encode the coefficients using CAVLC or CABAC. Video encoder 200 may then output the entropy-coded data for the block (360).

[0145] Video encoder 200 may also decode the current block after encoding it to use the decoded version of the current block as reference data for later-coded data (e.g., in inter-prediction or intra-prediction modes). Accordingly, video encoder 200 may dequantize and inverse transform coefficients to reconstruct a residual block (362). Video encoder 200 may combine the residual block with the predictive block to form a decoded block (364). Video encoder 200 may then store the decoded block in DPB 218 (366).

[0146]

[0146] Thus, the method of Figure 5 represents an example of a method for decoding (and / or encoding) a current block, including determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode, and in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determining an additional inter-prediction mode of the MHP mode, generating a first predictive block according to the bi-predictive mode, generating a second predictive block according to the additional inter-prediction mode, generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block, and decoding the current block using the final predictive block.

[0147] 6 is a flowchart illustrating an example method for decoding a current block in accordance with the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video decoder 300 (FIGS. 1 and 4), it should be understood that other devices may be configured to implement a method similar to that of FIG.

[0148] The video decoder 300 may receive entropy-coded data for the current block, such as entropy-coded prediction information and entropy-coded data for the 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 the intra-prediction or inter-prediction mode indicated by the prediction information for the current block, to calculate a predictive block for the current block (374). The video decoder 300 may form the predictive block according to the MHP described above in accordance with the techniques of this disclosure. 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 dequantize and inverse transform the quantized transform coefficients to produce the residual block (378). Video decoder 300 may ultimately decode the current block by combining the predictive block and the residual block (380).

[0149]

[0149] Thus, the method of Figure 6 represents an example of a method for decoding a current block, including determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode, and in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determining an additional inter-prediction mode of the MHP mode, generating a first predictive block according to the bi-predictive mode, generating a second predictive block according to the additional inter-prediction mode, generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block, and decoding the current block using the final predictive block.

[0150]

[0150] Figure 7 is a conceptual diagram illustrating an example of applying bi-prediction with CU level weighting (BCW) and multiple hypothesis prediction (MHP) as an extension of BCW. The example of Figure 7 is described with respect to the video decoder 300 of Figures 1 and 4. However, the video encoder 200 may also be configured to implement these or similar techniques.

[0151]

[0151] First, the video decoder 300 may form a first bi-prediction (BP) block 402 and a second bi-prediction block 404. The video decoder 300 may use a first motion vector to form the first bi-prediction block 402 and a second motion vector to form the second bi-prediction block 404. The video decoder 300 may also decode motion information representing the first and second motion vectors according to a mode other than merge mode, such as, for example, AMVP. Thus, the video decoder 300 may decode, for example, an AMVP candidate index identifying a neighboring block to be used as a motion vector predictor, a motion vector difference (MVD) value representing the difference between the MVP and the actual first and second motion vectors, a reference picture list identifier, and a reference picture index value identifying a reference picture in the corresponding reference picture list. The MVD value may have a particular resolution, such as full pixel, half pixel, quarter pixel, or eighth pixel.

[0152] The video decoder 300 may further decode data representing weights W1406 and W2408. The weights W1406 and W2408 may be summed to form a total value of 8. The video decoder 300 may apply weight W1406 to samples of the first bi-predictive block 402 and weight W2408 to samples of the second bi-predictive block 404. That is, the video decoder 300 may multiply weight W1406 by the value of each of the samples of the first bi-predictive block 402 and multiply weight W2408 by the value of each of the samples of the second bi-predictive block 404. Rather than performing an explicit multiplication function, the video decoder 300 may perform a bitwise left-shift operation according to the value of the respective weights. The video decoder 300 may then combine the weighted samples of the first bi-predictive block 402 with the weighted samples of the second bi-predictive block 404 and divide the sum for each of those samples by the total weight value, for example, 8. Rather than performing an explicit division operation, the video decoder 300 may perform a bitwise right shift by 3 bits. The resulting block is referred to in FIG. 7 as the intermediate (int.) prediction block 410.

[0153] When the weights W1406 and W2408 are not equal (e.g., both W1406 and W2408 are not equal to 4), the video decoder 300 may determine that multi-hypothesis prediction should be implemented as an extension of BCW. Accordingly, the video decoder 300 may further decode motion information for the additional inter-prediction mode from the video bitstream. The video decoder 300 may decode the motion information using, for example, AMVP mode or another non-merge mode. In some examples, the video decoder 300 may determine that the MVD value for the additional inter-prediction mode has the same MVD resolution as the motion information for the bi-predictive motion information used to form the first bi-predictive block 402 and the second bi-predictive block 404, and therefore, additional data representing the MVD resolution for the additional inter-prediction mode does not need to be decoded. The video decoder 300 may also use the motion information to generate the additional prediction block 412.

[0154] The video decoder 300 may also decode data representing weighting factor values ​​WF1 414 and WF2 416. For example, the video decoder 300 may decode a weighting factor index value, such as a value for an add_hyp_weight_idx syntax element. The video decoder 300 may determine values ​​of WF1 414 and WF2 416 according to the weighting factor index value, e.g., using a weighting factor index table. The video decoder 300 may then apply WF1 414 to the samples of the intermediate prediction block 410 and apply WF2 416 to the samples of the additional prediction block 412. Finally, the video decoder 300 may combine the weighted values ​​of the samples of the intermediate prediction block 410 with the weighted values ​​of the samples of the additional prediction block 412 to generate the final prediction block 418. The video decoder 300 may then use the final prediction block 418 to decode (reconstruct) the corresponding block, including, for example, adding samples of the final prediction block 418 to corresponding samples of the residual block.

[0155] 8 is a flowchart illustrating an example method for decoding (e.g., reconstructing) a current block of video data in accordance with the techniques of this disclosure. The method of FIG. 8 may be implemented by video encoder 200 (during the decoding loop of the encoding process) or by video decoder 300. For example, the method of FIG. 8 may generally correspond to step 350 of FIG. 5 or step 374 of FIG. 6. For purposes of example and explanation, the method of FIG. 8 will be described with reference to video decoder 300.

[0156]

[0156] First, the video decoder 300 may generate a first predictive block (430) and may generate a second predictive block (432). For example, the video decoder 300 may receive motion information coded in AMVP mode, including respective motion vector differential (MVD) values, AMVP candidate identifiers, reference list identifiers, and reference list indexes, as well as weights to be applied to form bi-predictive with CU-level weighting (BCW) blocks.

[0157] In this example, the video decoder 300 may determine that the weights are unequal, for example, both weights are not equal to 4. Therefore, the video decoder 300 may determine that multiple hypothesis prediction (MHP) should be applied as an extension of the BCW. The video decoder 300 may then apply weights to the first prediction block and the second prediction block (434). The video decoder 300 may also combine the first weighted prediction block and the second weighted prediction block to form an intermediate prediction block for MHP (436).

[0158] In response to determining that the weights are unequal, the video decoder 300 may decode additional motion information for the additional prediction mode, e.g., an AMVP candidate index, an MVD, a reference list identifier, and a reference list index (or multiple of such values ​​if the additional prediction mode is bi-predictive). The video decoder 300 may then generate an additional prediction block using the additional motion information (438). The video decoder 300 may further determine weights for the intermediate prediction block and the additional prediction block. Such weights may be predetermined or signaled, e.g., using an index into a weighting factor table. The video decoder 300 may then apply weights to the intermediate prediction block and the additional prediction block (440) and combine the weighted intermediate prediction block and the weighted additional prediction block to form a final prediction block (442).

[0159] Finally, the video decoder 300 may decode the current block using the final predicted block (444). For example, the video decoder 300 may combine samples of the final predicted block with corresponding samples of the reconstructed residual block, e.g., as described with reference to steps 376-380 of FIG. 6. When the method of FIG. 8 is implemented by the video encoder 200, the video encoder 200 may subtract samples of the final predicted block from corresponding samples of the residual block, as described with reference to steps 352-358 of FIG. 5, to encode the current block. Furthermore, the video encoder 200 may add samples of the final predicted block to corresponding samples of the current block, as described with reference to steps 362-366 of FIG. 5, to decode the current block.

[0160]

[0160] Thus, the method of Figure 8 represents an example of a method for decoding (and / or encoding) a current block, including determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode, and in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determining an additional inter-prediction mode of the MHP mode, generating a first predictive block according to the bi-predictive mode, generating a second predictive block according to the additional inter-prediction mode, generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block, and decoding the current block using the final predictive block.

[0161]

[0161] Various techniques of the present disclosure are summarized in the following paragraphs.

[0162]

[0162] Clause 1: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using at least two motion vectors having weights specified, wherein in response to determining that the at least two motion vectors are coded using a mode other than merge mode and having weights specified, determining whether the current block is to be predicted using multiple hypothesis prediction (MHP); in response to determining that the current block is to be predicted using MHP, forming a predictive block for the current block in accordance with MHP using the at least two motion vectors; and decoding the current block using the predictive block.

[0163]

[0163] Clause 2: The method described in clause 1, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the weight includes a weight value of 4.

[0164]

[0164] Clause 3: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using two or more motion vectors, wherein the two or more motion vectors are coded using a mode other than merge mode, and the two or more motion vectors include a base motion vector and an additional motion vector; determining that a precision for a motion vector differential (MVD) value for the additional motion vector is equal to a precision for the MVD value for the base motion vector; forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more motion vectors; and decoding the current block using the predictive block.

[0165]

[0165] Clause 4: A method comprising the method described in any one of clauses 1 and 2 and the method described in clause 3.

[0166]

[0166] Clause 5: A method described in any of clauses 3 and 4, further comprising decoding data representing the precision for the MVD value for the base motion vector, and inferring the precision for the MVD value for the additional motion vector from the precision for the MVD value for the base motion vector without decoding additional data representing the precision for the MVD value for the additional motion vector.

[0167]

[0167] Clause 6: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using two or more motion vectors; decoding data representing a first precision for a motion vector differential (MVD) value for the additional motion vector, wherein the two or more motion vectors include a base motion vector and the additional motion vector; decoding data representing a second precision for the MVD value for the base motion vector; forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more motion vectors; and decoding the current block using the predictive block.

[0168]

[0168] Clause 7: A method comprising the method described in any one of clauses 1 and 2 and the method described in clause 6.

[0169]

[0169] Clause 8: A method of decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using two or more sets of motion information according to multiple hypothesis prediction (MHP); the first set of motion information includes a first motion vector and first reference picture identifying data representing a first reference picture to which the first motion vector points; in response to determining that the current block is inter-predictively coded using two or more sets of motion information according to MHP, determining that a second set of motion information includes at least one of a second motion vector different from the first motion vector, or second reference picture identifying data representing a second reference picture different from the first reference picture; forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more sets of motion information; and decoding the current block using the predictive block.

[0170]

[0170] Clause 9: A method comprising the method described in any one of clauses 1 to 7 and the method described in clause 8.

[0171]

[0171] Clause 10: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using at least one motion vector; determining that an advanced motion vector resolution (AMVR) for the at least one motion vector is 1 / 2 luma sample resolution; in response to determining that the AMVR for the at least one motion vector is 1 / 2 luma sample resolution, determining that the current block is not predicted using multiple hypothesis prediction (MHP); forming a predictive block for the current block using at least one motion vector without using MHP; and decoding the current block using the predictive block.

[0172]

[0172] Clause 11: A method comprising the method according to any one of clauses 1 to 9 and the method according to clause 10.

[0173]

[0173] Clause 12: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using at least one motion vector having sub-pixel accuracy; decoding data representing an interpolation filter to be used to interpolate values ​​for sub-pixels of a reference picture; determining whether the current block should be predicted using multiple hypothesis prediction (MHP) in accordance with the data representing the interpolation filter; forming a predictive block for the current block using the at least one motion vector; and decoding the current block using the predictive block.

[0174]

[0174] Clause 13: A method comprising the method described in any one of clauses 1 to 11 and the method described in clause 12.

[0175]

[0175] Clause 14: A method according to any of clauses 12 and 13, wherein determining whether the current block should be predicted using MHP comprises determining whether the interpolation filter assigns more weight to a first sample of the reference picture than to a second sample of the reference picture, and determining that the current block should be predicted using MHP when the interpolation filter assigns more weight to the first sample of the reference picture than to the second sample of the reference picture.

[0176]

[0176] Clause 15: A method for decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using two or more sets of motion information according to multiple hypothesis prediction (MHP); determining a first motion vector prediction candidate list according to the first reference index, wherein the first set of motion information includes a first reference index and the second set of motion information includes a second reference index; decoding a first motion vector of the first set of motion information using the first motion vector prediction candidate list; determining a second motion vector prediction candidate list according to the second reference index; decoding a second motion vector of the second set of motion information using the second motion vector prediction candidate list; forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the first motion vector and the second motion vector; and decoding the current block using the predictive block.

[0177]

[0177] Clause 16: A method comprising the method according to any one of clauses 1 to 14 and the method according to clause 15.

[0178]

[0178] Clause 17: A method of decoding video data, the method comprising: determining that a current block of data is inter-predictively coded using two or more motion vectors according to multiple hypothesis prediction (MHP); forming a first intermediate prediction block using a first motion vector of the two or more motion vectors; forming a second intermediate prediction block using a second motion vector of the two or more motion vectors; determining a weight to apply to the second intermediate prediction block, the weight comprising one of 1 / 4, -1 / 8, or 1 / 2; and combining the first intermediate prediction block and the second intermediate prediction block using the weight to form a predictive block; forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using two or more motion vectors; and decoding the current block using the predictive block.

[0179]

[0179] Clause 18: A method comprising the method described in any one of clauses 1 to 16 and the method described in clause 17.

[0180]

[0180] Clause 19: A method as described in any of clauses 17 and 18, wherein determining the weight to be applied to the second intermediate prediction block comprises decoding a value for an add_hyp_weight_idx syntax element, and determining that the weight is 1 / 4 when the value for the add_hyp_weight_idx syntax element is 0, determining that the weight is -1 / 8 when the value for the add_hyp_weight_idx syntax element is 1, and determining that the weight is 1 / 2 when the value for the add_hyp_weight_idx syntax element is 2.

[0181]

[0181] Clause 20: The method of any of clauses 1 to 19, further comprising encoding the current block prior to decoding the current block.

[0182]

[0182] Clause 21: A device for decoding video data, the device comprising one or more means for performing the method according to any of clauses 1 to 20.

[0183]

[0183] Clause 22: A device according to clause 21, wherein the one or more means comprise one or more processors implemented in circuitry.

[0184]

[0184] Clause 23: The device of clause 21, further comprising a display configured to display the decoded video data.

[0185]

[0185] Clause 24: The device of clause 21, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0186]

[0186] Clause 25: The device of clause 21, further comprising a memory configured to store video data.

[0187]

[0187] Clause 26: A computer-readable storage medium storing instructions which, when executed, cause a processor of a device for decoding video data to perform a method described in any of clauses 1 to 20.

[0188]

[0188] Clause 27: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using at least two motion vectors, the weights of which are specified; means for determining whether the current block is to be predicted using multiple hypothesis prediction (MHP) in response to determining that the weights of the at least two motion vectors are coded using a mode other than merge mode; means for forming a predictive block for the current block in accordance with MHP using the at least two motion vectors in response to determining that the current block is to be predicted using MHP; and means for decoding the current block using the predictive block.

[0189]

[0189] Clause 28: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using two or more motion vectors, wherein the two or more motion vectors are coded using a mode other than merge mode, and the two or more motion vectors include a base motion vector and an additional motion vector, means for determining that a precision for a motion vector differential (MVD) value for the additional motion vector is equal to a precision for the MVD value for the base motion vector, means for forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more motion vectors, and means for decoding the current block using the predictive block.

[0190]

[0190] Clause 29: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using two or more motion vectors; means for decoding data representing a first precision for a motion vector differential (MVD) value for the additional motion vector, the two or more motion vectors including a base motion vector and the additional motion vector; means for decoding data representing a second precision for the MVD value for the base motion vector; means for forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more motion vectors; and means for decoding the current block using the predictive block.

[0191]

[0191] Clause 30: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using two or more sets of motion information according to multiple hypothesis prediction (MHP); means for determining, in response to determining that the current block is inter-predictively coded using two or more sets of motion information according to MHP, the first set of motion information including a first motion vector and first reference picture identification data representing a first reference picture to which the first motion vector points, determining that the second set of motion information includes at least one of a second motion vector different from the first motion vector, or second reference picture identification data representing a second reference picture different from the first reference picture; means for forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the two or more sets of motion information; and means for decoding the current block using the predictive block.

[0192]

[0192] Clause 31: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using at least one motion vector; means for determining that an advanced motion vector resolution (AMVR) for the at least one motion vector is 1 / 2 luma sample resolution; means for determining, in response to determining that the AMVR for the at least one motion vector is 1 / 2 luma sample resolution, that the current block is not predicted using multiple hypothesis prediction (MHP); means for forming a predictive block for the current block using at least one motion vector without using MHP; and means for decoding the current block using the predictive block.

[0193]

[0193] Clause 32: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using at least one motion vector having sub-pixel accuracy; means for decoding data representing an interpolation filter to be used to interpolate values ​​for sub-pixels of a reference picture; means for determining whether the current block should be predicted using multiple hypothesis prediction (MHP) in accordance with the data representing the interpolation filter; means for forming a predictive block for the current block using the at least one motion vector; and means for decoding the current block using the predictive block.

[0194]

[0194] Clause 33: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using two or more sets of motion information according to multiple hypothesis prediction (MHP); means for determining a first motion vector prediction candidate list according to the first reference index, wherein the first set of motion information includes a first reference index and the second set of motion information includes a second reference index; means for decoding a first motion vector of the first set of motion information using the first motion vector prediction candidate list; means for determining a second motion vector prediction candidate list according to the second reference index; means for decoding a second motion vector of the second set of motion information using the second motion vector prediction candidate list; means for forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using the first motion vector and the second motion vector; and means for decoding the current block using the predictive block.

[0195]

[0195] Clause 34: A device for decoding video data, the device comprising: means for determining that a current block of data is inter-predictively coded using two or more motion vectors according to multiple hypothesis prediction (MHP); means for forming a first intermediate predictive block using a first motion vector of the two or more motion vectors; means for forming a second intermediate predictive block using a second motion vector of the two or more motion vectors; means for determining a weight to apply to the second intermediate predictive block, the weight comprising one of 1 / 4, -1 / 8, or 1 / 2; and means for combining the first intermediate predictive block and the second intermediate predictive block using the weight to form a predictive block; means for forming a predictive block for the current block according to multiple hypothesis prediction (MHP) using two or more motion vectors; and means for decoding the current block using the predictive block.

[0196]

[0196] Clause 35: A method for decoding video data, the method comprising: determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight being different from the second weight, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first predictive block according to the bi-predictive mode; generating a second predictive block according to the additional inter-prediction mode; generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and decoding the current block using the final predictive block.

[0197]

[0197] Clause 36: The method described in clause 35, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0198]

[0198] Clause 37: The method described in clause 35, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0199]

[0199] Clause 38: The method of clause 35, further comprising decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, decoding a second motion vector using the AMVP mode for the bi-prediction mode, and decoding a third motion vector for an additional inter-prediction mode, wherein generating the first prediction block comprises generating a first intermediate prediction block using the first motion vector, generating a second intermediate prediction block using the second motion vector, applying a first weight to the first intermediate prediction block to form a first weighted intermediate prediction block, applying a second weight to the second intermediate prediction block to form a second weighted intermediate prediction block, and combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block, wherein generating the second prediction block comprises generating the second prediction block using the third motion vector.

[0200]

[0200] Clause 39: The method described in Clause 38, further comprising decoding data representing motion vector difference (MVD) resolution for the first motion vector and the second motion vector, and determining that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0201]

[0201] Clause 40: The method described in Clause 35, wherein generating a final prediction block comprises determining a third weight and a fourth weight for an MHP mode, applying the third weight to the first prediction block to form a first weighted prediction block, applying the fourth weight to the second prediction block to form a second weighted prediction block, and combining the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0202]

[0202] Clause 41: The method described in Clause 40, wherein determining the third weight comprises decoding an index value and determining a third weight to which the index value is mapped in a mapping table, and determining the fourth weight comprises calculating the fourth weight as 1 - the third weight.

[0203]

[0203] Clause 42: The method of clause 35, further comprising encoding the current block using the final predicted block prior to decoding the current block.

[0204]

[0204] Clause 43: A device for decoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit, wherein the one or more processors are configured to: determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight being different from the second weight, determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determine an additional inter-prediction mode of the MHP mode; generate a first predictive block according to the bi-predictive mode; generate a second predictive block according to the additional inter-prediction mode; generate a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and decode the current block using the final predictive block.

[0205]

[0205] Clause 44: A device as described in Clause 43, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0206]

[0206] Clause 45: A device as described in Clause 43, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0207]

[0207] Clause 46: The device described in Clause 43, wherein the one or more processors are further configured to decode a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, decode a second motion vector using the AMVP mode for the bi-prediction mode, and decode a third motion vector for an additional inter-prediction mode, wherein, to generate the first predictive block, the one or more processors are configured to generate a first intermediate predictive block using the first motion vector, generate a second intermediate predictive block using the second motion vector, apply a first weight to the first intermediate predictive block to form a first weighted intermediate predictive block, apply a second weight to the second intermediate predictive block to form a second weighted intermediate predictive block, and combine the first weighted intermediate predictive block with the second weighted intermediate predictive block to form the first predictive block, and wherein, to generate the second predictive block, the one or more processors are configured to generate the second predictive block using the third motion vector.

[0208]

[0208] Clause 47: The device described in Clause 46, wherein the one or more processors are further configured to decode data representing motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0209]

[0209] Clause 48: A device as described in Clause 43, wherein to generate a final prediction block, one or more processors are configured to determine a third weight and a fourth weight for an MHP mode, apply the third weight to the first prediction block to form a first weighted prediction block, apply the fourth weight to the second prediction block to form a second weighted prediction block, and combine the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0210]

[0210] Clause 49: A device as described in Clause 48, wherein, to determine the third weight, the one or more processors are configured to decode the index value and determine a third weight to which the index value is mapped in the mapping table, and, to determine the fourth weight, the one or more processors are configured to calculate the fourth weight as 1 - the third weight.

[0211]

[0211] Clause 50: The device of clause 43, wherein the one or more processors are configured to encode the current block using the final predicted block prior to decoding the current block.

[0212]

[0212] Clause 51: The device of clause 43, further comprising a display configured to display the decoded video data.

[0213]

[0213] Clause 52: The device of clause 43, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0214]

[0214] Clause 53: A computer-readable storage medium storing instructions that, when executed, cause a processor to determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode, and in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determine an additional inter-prediction mode of the MHP mode, generate a first prediction block according to the bi-predictive mode, generate a second prediction block according to the additional inter-prediction mode, generate a final prediction block for the current block according to the MHP mode using the first prediction block and the second prediction block, and decode the current block using the final prediction block.

[0215]

[0215] Clause 54: A computer-readable storage medium as described in Clause 53, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP include instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0216]

[0216] Clause 55: A computer-readable storage medium as described in Clause 53, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP include instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0217]

[0217] Clause 56: Further comprising instructions that cause the processor to decode a first motion vector using an Advanced Motion Vector Prediction (AMVP) mode for a bi-prediction mode, decode a second motion vector using the AMVP mode for the bi-prediction mode, and decode a third motion vector for an additional inter-prediction mode, wherein the instructions that cause the processor to generate the first prediction block include the instructions that cause the processor to generate a first intermediate prediction block using the first motion vector, generate a second intermediate prediction block using the second motion vector, and generate a first weighted intermediate prediction block using the first weighted intermediate prediction block. 54. The computer-readable storage medium of claim 53, comprising instructions that cause a processor to: apply a first weight to the first intermediate predictive block to form a second weighted intermediate predictive block; apply a second weight to the second intermediate predictive block to form a second weighted intermediate predictive block; and combine the first weighted intermediate predictive block with the second weighted intermediate predictive block to form the first predictive block, wherein the instructions that cause a processor to generate the second predictive block comprise instructions that cause a processor to generate the second predictive block using a third motion vector.

[0218]

[0218] Clause 57: A computer-readable storage medium as described in Clause 56, further comprising instructions that cause a processor to decode data representing motion vector differential (MVD) resolution for a first motion vector and a second motion vector, and determine that a third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0219]

[0219] Clause 58: A computer-readable storage medium as described in Clause 53, wherein the instructions for causing a processor to generate a final prediction block include instructions for causing the processor to determine a third weight and a fourth weight for an MHP mode, apply the third weight to the first prediction block to form a first weighted prediction block, apply the fourth weight to the second prediction block to form a second weighted prediction block, and combine the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0220]

[0220] Clause 59: A computer-readable storage medium as described in Clause 58, wherein the instructions for causing the processor to determine the third weight include instructions for causing the processor to decode an index value and determine a third weight to which the index value is mapped in a mapping table, and the instructions for causing the processor to determine the fourth weight include instructions for causing the processor to calculate the fourth weight as 1 - the third weight.

[0221]

[0221] Clause 60: The computer-readable storage medium of clause 53, further comprising instructions that cause the processor to encode the current block using the final predicted block prior to decoding the current block.

[0222]

[0222] Clause 61: A device for decoding video data, the device comprising: means for determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight being different from the second weight, means for determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; means for determining an additional inter-prediction mode of the MHP mode in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode; means for generating a first predictive block according to the bi-predictive mode; means for generating a second predictive block according to the additional inter-prediction mode; means for generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and means for decoding the current block using the final predictive block.

[0223]

[0223] Clause 62: The device described in Clause 61, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0224]

[0224] Clause 63: A device as described in clause 61, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0225]

[0225] Clause 64: The device described in Clause 61, further comprising: means for decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode; means for decoding a second motion vector using the AMVP mode for the bi-prediction mode; and means for decoding a third motion vector for an additional inter-prediction mode, wherein the means for generating a first predictive block comprises: means for generating a first intermediate predictive block using the first motion vector; means for generating a second intermediate predictive block using the second motion vector; means for applying a first weight to the first intermediate predictive block to form a first weighted intermediate predictive block; means for applying a second weight to the second intermediate predictive block to form a second weighted intermediate predictive block; and means for combining the first weighted intermediate predictive block with the second weighted intermediate predictive block to form the first predictive block, wherein the means for generating the second predictive block comprises: means for generating the second predictive block using the third motion vector.

[0226]

[0226] Clause 65: The device described in Clause 64, further comprising means for decoding data representing motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and means for determining that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0227]

[0227] Clause 66: The device described in Clause 61, wherein the means for generating a final prediction block comprises means for determining a third weight and a fourth weight for an MHP mode, means for applying the third weight to the first prediction block to form a first weighted prediction block, means for applying the fourth weight to the second prediction block to form a second weighted prediction block, and means for combining the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0228]

[0228] Clause 67: A device as described in Clause 66, wherein the means for determining the third weight comprises means for decoding an index value and means for determining a third weight to which the index value is mapped in a mapping table, and the means for determining a fourth weight comprises means for calculating the fourth weight as 1 - the third weight.

[0229]

[0229] Clause 68: The device of clause 61, further comprising means for encoding the current block using the final predicted block prior to decoding the current block.

[0230]

[0230] Clause 69: A method for decoding video data, the method comprising: determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight being different from the second weight, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first predictive block according to the bi-predictive mode; generating a second predictive block according to the additional inter-prediction mode; generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and decoding the current block using the final predictive block.

[0231]

[0231] Clause 70: The method described in clause 69, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0232]

[0232] Clause 71: The method described in clause 69, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0233]

[0233] Clause 72: A method according to any of clauses 69 to 71, further comprising decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, decoding a second motion vector using the AMVP mode for the bi-prediction mode, and decoding a third motion vector for an additional inter-prediction mode, wherein generating the first predictive block comprises generating a first intermediate predictive block using the first motion vector, generating a second intermediate predictive block using the second motion vector, applying a first weight to the first intermediate predictive block to form a first weighted intermediate predictive block, applying a second weight to the second intermediate predictive block to form a second weighted intermediate predictive block, and combining the first weighted intermediate predictive block with the second weighted intermediate predictive block to form the first predictive block, wherein generating the second predictive block comprises generating the second predictive block using the third motion vector.

[0234]

[0234] Clause 73: The method described in Clause 72, further comprising decoding data representing motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determining that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0235]

[0235] Clause 74: A method described in any of clauses 69 to 73, wherein generating the final prediction block comprises determining a third weight and a fourth weight for the MHP mode, applying the third weight to the first prediction block to form a first weighted prediction block, applying the fourth weight to the second prediction block to form a second weighted prediction block, and combining the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0236]

[0236] Clause 75: The method described in Clause 74, wherein determining the third weight comprises decoding an index value and determining a third weight to which the index value is mapped in a mapping table, and determining the fourth weight comprises calculating the fourth weight as 1 - the third weight.

[0237]

[0237] Clause 76: The method of any of clauses 69 to 75, further comprising encoding the current block using the final predicted block prior to decoding the current block.

[0238]

[0238] Clause 77: A device for decoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit, wherein the one or more processors are configured to: determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode; in response to determining that the first weight and the second weight are specified, wherein the first weight is different from the second weight, determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determine an additional inter-prediction mode of the MHP mode; generate a first predictive block according to the bi-predictive mode; generate a second predictive block according to the additional inter-prediction mode; generate a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and decode the current block using the final predictive block.

[0239]

[0239] Clause 78: A device as described in Clause 77, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0240]

[0240] Clause 79: A device as described in Clause 77, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0241] Clause 80: The one or more processors are further configured to decode a first motion vector using an Advanced Motion Vector Prediction (AMVP) mode for a bi-prediction mode, decode a second motion vector using the AMVP mode for the bi-prediction mode, and decode a third motion vector for an additional inter-prediction mode, wherein, to generate the first prediction block, the one or more processors generate a first intermediate prediction block using the first motion vector, generate a second intermediate prediction block using the second motion vector, and decode a first weighted 80. The device of any of clauses 77-79, configured to: apply a first weight to the first intermediate prediction block to form a weighted intermediate prediction block; apply a second weight to the second intermediate prediction block to form a second weighted intermediate prediction block; and combine the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block, wherein to generate the second prediction block, the one or more processors are configured to generate the second prediction block using a third motion vector.

[0242]

[0242] Clause 81: The device described in Clause 80, wherein the one or more processors are further configured to decode data representing motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0243]

[0243] Clause 82: A device described in any of clauses 77 to 81, configured to: determine a third weight and a fourth weight for an MHP mode to generate a final prediction block; apply the third weight to the first prediction block to form a first weighted prediction block; apply the fourth weight to the second prediction block to form a second weighted prediction block; and combine the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0244]

[0244] Clause 83: A device as described in Clause 82, wherein, to determine the third weight, the one or more processors are configured to decode the index value and determine a third weight to which the index value is mapped in the mapping table, and, to determine the fourth weight, the one or more processors are configured to calculate the fourth weight as 1 - the third weight.

[0245]

[0245] Clause 84: A device described in any of clauses 77 to 83, wherein one or more processors are configured to encode the current block using the final predicted block before decoding the current block.

[0246]

[0246] Clause 85: The device of any of clauses 77 to 84, further comprising a display configured to display the decoded video data.

[0247]

[0247] Clause 86: A device according to any of clauses 77 to 85, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0248]

[0248] Clause 87: A computer-readable storage medium storing instructions that, when executed, cause a processor to determine that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight is different from the second weight, determine whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as the base mode, and in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode, determine an additional inter-prediction mode of the MHP mode, generate a first prediction block according to the bi-predictive mode, generate a second prediction block according to the additional inter-prediction mode, generate a final prediction block for the current block according to the MHP mode using the first prediction block and the second prediction block, and decode the current block using the final prediction block.

[0249]

[0249] Clause 88: A computer-readable storage medium as described in clause 87, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP include instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0250]

[0250] Clause 89: A computer-readable storage medium as described in clause 87, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP include instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0251] Clause 90: The method further comprises instructions to cause a processor to decode a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, decode a second motion vector using the AMVP mode for the bi-prediction mode, and decode a third motion vector for an additional inter-prediction mode, wherein the instructions to cause the processor to generate a first prediction block include: generating a first intermediate prediction block using the first motion vector; generating a second intermediate prediction block using the second motion vector; 90. The computer-readable storage medium of any of clauses 87 to 89, comprising instructions to cause a processor to generate the second prediction block using a third motion vector, applying a first weight to the first intermediate prediction block to form a third weighted intermediate prediction block, applying a second weight to the second intermediate prediction block to form a second weighted intermediate prediction block, and combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block, wherein the instructions to cause a processor to generate the second prediction block comprise instructions to cause a processor to generate the second prediction block using a third motion vector.

[0252]

[0252] Clause 91: A computer-readable storage medium as described in Clause 90, further comprising instructions that cause a processor to decode data representing motion vector differential (MVD) resolution for a first motion vector and a second motion vector, and determine that a third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0253]

[0253] Clause 92: A computer-readable storage medium described in any of clauses 87 to 91, wherein the instructions for causing a processor to generate a final prediction block include instructions for causing the processor to determine a third weight and a fourth weight for an MHP mode, apply the third weight to the first prediction block to form a first weighted prediction block, apply the fourth weight to the second prediction block to form a second weighted prediction block, and combine the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0254]

[0254] Clause 93: A computer-readable storage medium as described in Clause 92, wherein the instructions for causing the processor to determine the third weight include instructions for causing the processor to decode an index value and determine a third weight to which the index value is mapped in a mapping table, and the instructions for causing the processor to determine the fourth weight include instructions for causing the processor to calculate the fourth weight as 1 - the third weight.

[0255]

[0255] Clause 94: A computer-readable storage medium described in any of clauses 87 to 93, further comprising instructions that cause a processor to encode the current block using the final predicted block before decoding the current block.

[0256]

[0256] Clause 95: A device for decoding video data, the device comprising: means for determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein in response to determining that the first weight and the second weight are specified, the first weight being different from the second weight, means for determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-predictive mode as a base mode; means for determining an additional inter-prediction mode of the MHP mode in response to determining that the current block should be predicted using the MHP mode with the bi-predictive mode as the base mode; means for generating a first predictive block according to the bi-predictive mode; means for generating a second predictive block according to the additional inter-prediction mode; means for generating a final predictive block for the current block according to the MHP mode using the first predictive block and the second predictive block; and means for decoding the current block using the final predictive block.

[0257]

[0257] Clause 96: The device described in Clause 95, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4.

[0258]

[0258] Clause 97: A device as described in clause 95, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to the second weight.

[0259]

[0259] Clause 98: A device described in any of Clauses 95 to 97, further comprising means for decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, means for decoding a second motion vector using the AMVP mode for the bi-prediction mode, and means for decoding a third motion vector for an additional inter-prediction mode, wherein the means for generating a first predictive block comprises means for generating a first intermediate predictive block using the first motion vector, means for generating a second intermediate predictive block using the second motion vector, means for applying a first weight to the first intermediate predictive block to form a first weighted intermediate predictive block, means for applying a second weight to the second intermediate predictive block to form a second weighted intermediate predictive block, and means for combining the first weighted intermediate predictive block with the second weighted intermediate predictive block to form the first predictive block, wherein the means for generating the second predictive block comprises means for generating the second predictive block using the third motion vector.

[0260]

[0260] Clause 99: The device described in Clause 98, further comprising means for decoding data representing motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and means for determining that the third motion vector has MVD resolution without decoding additional data representing MVD resolution for the third motion vector.

[0261]

[0261] Clause 100: A device described in any of clauses 95 to 99, wherein the means for generating a final prediction block comprises means for determining a third weight and a fourth weight for an MHP mode, means for applying the third weight to the first prediction block to form a first weighted prediction block, means for applying a fourth weight to the second prediction block to form a second weighted prediction block, and means for combining the first weighted prediction block with the second weighted prediction block to form the final prediction block.

[0262]

[0262] Clause 101: A device as described in Clause 100, wherein the means for determining the third weight comprises means for decoding an index value and means for determining a third weight to which the index value is mapped in a mapping table, and the means for determining the fourth weight comprises means for calculating the fourth weight as 1 - the third weight.

[0263]

[0263] Clause 102: The device of any of clauses 95 to 101, further comprising means for encoding the current block using the final predicted block prior to decoding the current block.

[0264] It should be recognized that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or entirely excluded (e.g., not all described acts or events may be required to practice the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multithreaded processing, interrupt processing, or multiple processors.

[0265] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which correspond to tangible media such as data storage media, or communication media, including any medium that facilitates transfer of a computer program from one place to another, for example, according to a communications protocol. In this manner, computer-readable media may generally correspond to (1) tangible computer-readable storage media that are non-transitory, or (2) communication media such as a signal or carrier wave. Data storage media 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 implementing the techniques described in this disclosure. A computer program product may include a computer-readable medium.

[0266]

[0266] 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 can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed 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 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 discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically and discs reproduce data optically with a laser. Combinations of the above should also be included within the scope of computer-readable media.

[0267]

[0267] 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. Accordingly, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.

[0268] The techniques of this 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). Although various components, modules, or units have been described in this disclosure to highlight functional aspects of devices configured to implement the disclosed techniques, those components, modules, or units 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 provided by a collection of interoperable hardware units, including one or more processors described above, along with suitable software and / or firmware.

[0269]

[0269] Various examples have been described. These and other examples are within the scope of the following claims. The inventions described in the claims of the present application as originally filed are set forth below. [C1] 1. A method for decoding video data, the method comprising: determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; In response to determining that the first weight and the second weight are assigned, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; and In response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; generating a second prediction block according to the additional inter prediction mode; generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block; decoding the current block using the final predicted block; A method comprising: [C2] The method of C1, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4. [C3] The method of C1, wherein determining whether the current block should be predicted using MHP comprises determining that the current block should be predicted using MHP when the first weight is not equal to the second weight. [C4] decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; decoding a second motion vector using the AMVP mode for the bi-predictive mode; decoding a third motion vector for the additional inter prediction mode; Furthermore, wherein generating the first predicted block comprises: generating a first intermediate predicted block using the first motion vector; generating a second intermediate predicted block using the second motion vector; applying the first weight to the first intermediate predicted block to form a first weighted intermediate predicted block; applying the second weight to the second intermediate prediction block to form a second weighted intermediate prediction block; combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; Equipped with 3. The method of claim 1, wherein generating the second predictive block comprises generating the second predictive block using the third motion vector. [C5] decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector; The method of C4, further comprising: [C6] generating the final predicted block, determining a third weight and a fourth weight for the MHP mode; applying the third weight to the first prediction block to form a first weighted prediction block; applying the fourth weight to the second prediction block to form a second weighted prediction block; combining the first weighted predicted block with the second weighted predicted block to form the final predicted block; The method of claim C1, comprising: [C7] Determining the third weight includes: Decoding the index value; determining the third weight to which the index value is mapped in a mapping table; Equipped with The method of C6, wherein determining the fourth weight comprises calculating the fourth weight as 1 minus the third weight. [C8] The method of C1, further comprising encoding the current block using the final predicted block prior to decoding the current block. [C9] 1. A device for decoding video data, said device comprising: a memory configured to store video data; one or more processors implemented in the circuit; wherein the one or more processors: determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; In response to determining that the first weight and the second weight are assigned, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; and In response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; generating a second prediction block according to the additional inter prediction mode; generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block; decoding the current block using the final predicted block; A device configured to: [C10] The device of C9, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4. [C11] The device of C9, wherein, to determine whether the current block should be predicted using MHP, the one or more processors are configured to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight. [C12] the one or more processors: decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; decoding a second motion vector using the AMVP mode for the bi-predictive mode; decoding a third motion vector for the additional inter prediction mode; further configured to: wherein, to generate the first predicted block, the one or more processors: generating a first intermediate predicted block using the first motion vector; generating a second intermediate predicted block using the second motion vector; applying the first weight to the first intermediate predicted block to form a first weighted intermediate predicted block; applying the second weight to the second intermediate prediction block to form a second weighted intermediate prediction block; combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; configured to: wherein, in order to generate the second predictive block, the one or more processors are configured to generate the second predictive block using the third motion vector. [C13] the one or more processors: decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector; The device of C12, further configured to: [C14] To generate the final predicted block, the one or more processors: determining a third weight and a fourth weight for the MHP mode; applying the third weight to the first prediction block to form a first weighted prediction block; applying the fourth weight to the second prediction block to form a second weighted prediction block; combining the first weighted predicted block with the second weighted predicted block to form the final predicted block; 10. The device of claim 9, configured to: [C15] To determine the third weight, the one or more processors: Decoding the index value; determining the third weight to which the index value is mapped in a mapping table; configured to: The device of C14, wherein, to determine the fourth weight, the one or more processors are configured to calculate the fourth weight as 1 minus the third weight. [C16] The device of C9, wherein the one or more processors are configured to encode the current block using the final predicted block prior to decoding the current block. [C17] The device of C9, further comprising a display configured to display the decoded video data. [C18] The device of C9, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box. [C19] A computer-readable storage medium having stored thereon instructions that, when executed, cause a processor to: determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; In response to determining that the first weight and the second weight are assigned, determining whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; and In response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; generating a second prediction block according to the additional inter prediction mode; generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block; decoding the current block using the final predicted block; A computer-readable storage medium that causes the [C20] 19. A computer-readable storage medium as described in C19, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP comprise instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4. [C21] 19. A computer-readable storage medium as described in C19, wherein the instructions that cause the processor to determine whether the current block should be predicted using MHP comprise instructions that cause the processor to determine that the current block should be predicted using MHP when the first weight is not equal to the second weight. [C22] the processor, decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; decoding a second motion vector using the AMVP mode for the bi-predictive mode; decoding a third motion vector for the additional inter prediction mode; and further comprising instructions to: wherein the instructions for causing the processor to generate the first predicted block include causing the processor to: generating a first intermediate predicted block using the first motion vector; generating a second intermediate predicted block using the second motion vector; applying the first weight to the first intermediate predicted block to form a first weighted intermediate predicted block; applying the second weight to the second intermediate prediction block to form a second weighted intermediate prediction block; combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; and wherein the instructions that cause the processor to generate the second prediction block comprise instructions that cause the processor to generate the second prediction block using the third motion vector. [C23] the processor, decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector; 20. The computer-readable storage medium of claim 19, further comprising instructions to: [C24] The instructions that cause the processor to generate the final predicted block may include instructions that cause the processor to: determining a third weight and a fourth weight for the MHP mode; applying the third weight to the first prediction block to form a first weighted prediction block; applying the fourth weight to the second prediction block to form a second weighted prediction block; combining the first weighted predicted block with the second weighted predicted block to form the final predicted block; 19. The computer-readable storage medium of claim 19, comprising instructions to: [C25] The instructions for causing the processor to determine the third weight may include causing the processor to: Decoding the index value; determining the third weight to which the index value is mapped in a mapping table; and 20. The computer-readable storage medium of claim 19, wherein the instructions that cause the processor to determine the fourth weight comprise instructions that cause the processor to calculate the fourth weight as 1 minus the third weight. [C26] 19. The computer-readable storage medium of claim 19, further comprising instructions that cause the processor to encode the current block using the final predicted block prior to decoding the current block. [C27] 1. A device for decoding video data, said device comprising: means for determining that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; means for determining, in response to determining that the first weight and the second weight are specified, whether the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode; means for determining an additional inter-prediction mode of the MHP mode in response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode; means for generating a first prediction block according to the bi-prediction mode; means for generating a second predicted block according to the additional inter prediction mode; and means for generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block. means for decoding the current block using the final predicted block; A device comprising: [C28] The device of C27, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to 4 and the second weight is not equal to 4. [C29] The device of C27, wherein the means for determining whether the current block should be predicted using MHP comprises means for determining that the current block should be predicted using MHP when the first weight is not equal to the second weight. [C30] means for decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; means for decoding a second motion vector using the AMVP mode for the bi-predictive mode; and means for decoding a third motion vector for the additional inter prediction mode; wherein the means for generating the first prediction block comprises: means for generating a first intermediate prediction block using the first motion vector; means for generating a second intermediate predicted block using the second motion vector; means for applying the first weight to the first intermediate prediction block to form a first weighted intermediate prediction block; means for applying the second weight to the second intermediate prediction block to form a second weighted intermediate prediction block; means for combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; Equipped with 3. The device of claim 27, wherein the means for generating the second predictive block comprises means for generating the second predictive block using the third motion vector. [C31] means for decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; and means for determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector. [C32] The means for generating the final predicted block comprises: means for determining a third weight and a fourth weight for the MHP mode; means for applying the third weight to the first prediction block to form a first weighted prediction block; means for applying the fourth weight to the second prediction block to form a second weighted prediction block; means for combining the first weighted prediction block with the second weighted prediction block to form the final prediction block; 20. The device of claim 19, further comprising: [C33] The means for determining the third weight comprises: means for decoding the index value; means for determining the third weight to which the index value is mapped in a mapping table; Equipped with The device of C32, wherein the means for determining the fourth weight comprises means for calculating the fourth weight as 1 minus the third weight. [C34] The device of C27, further comprising means for encoding the current block using the final predicted block prior to decoding the current block.

Claims

1. 1. A method for decoding video data, the method comprising: receiving a bitstream containing encoded video data; determining, based on the encoded video data, that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; In response to determining that the first weight and the second weight are designated, determining that the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode based on the first weight being different from the second weight; In response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; generating a second prediction block according to the additional inter prediction mode; generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block; decoding the current block using the final predicted block; A method comprising:

2. 2. The method of claim 1 , wherein determining that the current block should be predicted using MHP comprises determining that the first weight is not equal to 4 and the second weight is not equal to 4.

3. decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; decoding a second motion vector using the AMVP mode for the bi-predictive mode; decoding a third motion vector for the additional inter prediction mode; Furthermore, wherein generating the first predicted block comprises: generating a first intermediate predicted block using the first motion vector; generating a second intermediate predicted block using the second motion vector; applying the first weight to the first intermediate prediction block to form a first weighted intermediate prediction block; applying the second weights to the second intermediate prediction block to form a second weighted intermediate prediction block; combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; Equipped with 2. The method of claim 1, wherein generating the second predictive block comprises generating the second predictive block using the third motion vector.

4. decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector; The method of claim 3 further comprising:

5. generating the final predicted block, determining a third weight and a fourth weight for the MHP mode; applying the third weight to the first prediction block to form a first weighted prediction block; applying the fourth weight to the second prediction block to form a second weighted prediction block; combining the first weighted predicted block with the second weighted predicted block to form the final predicted block; The method of claim 1 , comprising:

6. Determining the third weight includes: Decoding the index value; determining the third weight to which the index value is mapped in a mapping table; Equipped with The method of claim 5 , wherein determining the fourth weight comprises calculating the fourth weight as 1 minus the third weight.

7. The method of claim 1 , further comprising encoding the current block using the final predicted block prior to decoding the current block.

8. 1. A device for decoding video data, said device comprising: a memory configured to store video data; one or more processors implemented in the circuit; wherein the one or more processors: receiving a bitstream containing encoded video data; determining, based on the encoded video data, that a first weight and a second weight are specified for a current block of video data that is inter-predictively coded using a bi-predictive mode, wherein the first weight is different from the second weight; In response to determining that the first weight and the second weight are designated, determining that the current block should be predicted using a multiple hypothesis prediction (MHP) mode with the bi-prediction mode as a base mode based on the first weight being different from the second weight; In response to determining that the current block should be predicted using the MHP mode with the bi-prediction mode as the base mode, determining an additional inter-prediction mode of the MHP mode; generating a first prediction block according to the bi-prediction mode; generating a second prediction block according to the additional inter prediction mode; generating a final predicted block for the current block according to the MHP mode using the first predicted block and the second predicted block; decoding the current block using the final predicted block; A device configured to:

9. 10. The device of claim 8, wherein determining that the current block should be predicted using MHP comprises determining that the first weight is not equal to four and the second weight is not equal to four.

10. the one or more processors: decoding a first motion vector using an advanced motion vector prediction (AMVP) mode for the bi-predictive mode; decoding a second motion vector using the AMVP mode for the bi-predictive mode; decoding a third motion vector for the additional inter prediction mode; further configured to: wherein, to generate the first predicted block, the one or more processors: generating a first intermediate predicted block using the first motion vector; generating a second intermediate predicted block using the second motion vector; applying the first weight to the first intermediate prediction block to form a first weighted intermediate prediction block; applying the second weights to the second intermediate prediction block to form a second weighted intermediate prediction block; combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block; configured to:

9. The device of claim 8, wherein, to generate the second predictive block, the one or more processors are configured to generate the second predictive block using the third motion vector.

11. the one or more processors: decoding data representing a motion vector differential (MVD) resolution for the first motion vector and the second motion vector; determining that the third motion vector has the MVD resolution without decoding additional data representing the MVD resolution for the third motion vector; The device of claim 10 further configured to:

12. To generate the final predicted block, the one or more processors: determining a third weight and a fourth weight for the MHP mode; applying the third weight to the first prediction block to form a first weighted prediction block; applying the fourth weight to the second prediction block to form a second weighted prediction block; combining the first weighted predicted block with the second weighted predicted block to form the final predicted block; configured to: To determine the third weight, the one or more processors: Decoding the index value; determining the third weight to which the index value is mapped in a mapping table; configured to:

9. The device of claim 8, wherein to determine the fourth weight, the one or more processors are configured to calculate the fourth weight as 1 minus the third weight.

13. 9. The device of claim 8, wherein the one or more processors are configured to encode the current block using the final predicted block prior to decoding the current block.

14. 10. The device of claim 8, further comprising a display configured to display the decoded video data, or wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

15. A computer readable storage medium having stored thereon instructions that, when executed, cause a processor to perform the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Motion compensation considering out-of-boundary conditions in video coding.

    JP2024540760A

  • Interaction of asymmetric weighted merges and other coding tools

    US20200366928A1

  • Harmonization between local illumination compensation and inter prediction coding

    WO2020084508A1

  • Difference calculation based on patial position

    WO2020103852A1

  • Method and apparatus for deblocking an image

    WO2020123442A1