Multiple Hypothesis Prediction for Video Coding

JP2024501154A5Active Publication Date: 2024-11-27QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023533329
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-15
Filing Date
2021-12-16
Publication Date
2024-11-27
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Conventional multiple hypothesis prediction (MHP) signaling in video coding techniques suffer from high signaling overhead and processing requirements, which affect prediction accuracy for motion vector predictors and predictive blocks.

Method used

Implementing multiple hypothesis prediction (MHP) with bi-prediction mode using unequal weights and adaptive motion vector resolution, along with CU-level weighting and selective application of additional prediction signals to reduce signaling overhead and improve prediction accuracy.

Benefits of technology

The proposed techniques reduce signaling overhead and increase prediction accuracy by optimizing MHP signaling, leading to improved video coding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
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 radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.

[0004]

[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, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention

[0005]

[0005] In general, 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. In general, 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 (on a previously coded picture) or intra prediction (on 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, where 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 is to 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 is to be predicted using the MHP mode with the bi-prediction mode as a 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. The method includes generating a first prediction block (a first prediction block), 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 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 inter-predictively coded using a bi-prediction mode, where the first weight and the second weight are different from the second weight; in response to determining that the first weight and the second weight are specified, 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 a 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 inter-predictively coded using a bi-prediction mode, where 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-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 a 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 inter-predictively coded using a bi-prediction mode, where the first weight and the second weight are different from the second weight, in response to determining that the first weight and the second weight are specified, means for determining 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 a base mode, means for generating a first predictive block according to the bi-prediction 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 description of the drawings]

[0010] [Figure 1]

[0011] 1 is a block diagram illustrating an example video encoding and decoding system in which techniques of this disclosure may be implemented. [Figure 2A]

[0012] 1 is a conceptual diagram illustrating an exemplary Quad Tree Binary Tree (QTBT) structure. [Figure 2B] A conceptual diagram showing a corresponding coding tree unit (CTU). [Diagram 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. [Diagram 5]

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

[0016] 6 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 PREFERRED EMBODIMENTS

[0011]

[0019] In video coding, a video is represented by a sequence of pictures. Each picture may be partitioned into blocks, and each block may be coded individually. In general, 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 (on a previously coded picture) or intra prediction (on 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 that represents a neighboring block 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 a motion vector prediction candidate that represents a neighboring block to a current block from which a motion vector should be predicted, along with motion vector difference (MVD) information that represents 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), the 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 ¼ luma samples (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 samples, 1 / 2 luma samples, integer luma samples, or 4 luma samples, and in affine AMVP mode, the video coder may select from 1 / 16 luma samples, 1 / 4 luma samples, or integer luma samples.

[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 ¼ luma sample MVD precision is used for the CU. If the first flag is 0, no further signaling is needed and ¼ luma sample MVD precision is currently used for the CU. In other cases, the video coder may code a second flag to indicate whether ½ luma sample MVD precision or another MVD precision (integer or 4 luma sample) is used for the normal AMVP CU. In the case of ½ luma sample, the video coder may apply a 6-tap interpolation filter instead of the default 8-tap interpolation filter for the ½ luma sample positions. In other cases, 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 the normal AMVP CU.

[0015]

[0023] For affine AMVP CUs 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 towards 0 (i.e., negative motion vector predictors are rounded towards positive infinity and positive motion vector predictors are rounded towards 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 the 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; 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, 10-18 July 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, 3-12 October 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, the inter prediction technique allows for 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 global prediction signal by sample-wise weighted overlap. uni / bi Using 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 of 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 may 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 upon. 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 predictive blocks.

[0032]

[0033] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

[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, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and thus may be referred to as wireless communication devices.

[0034]

[0035] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for 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 only an example. In general, any digital video encoding and / or decoding device may implement techniques for coding data for multiple hypothesis prediction. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, in particular video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and video decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.

[0036]

[0037] Generally, the 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 the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of live, archived, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may reorder the pictures from a received order (sometimes called a "display order") into a coding order for coding. The 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 an output interface 108, for receipt and / or retrieval by, for example, an input interface 122 of a destination device 116.

[0037]

[0038] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although the memories 106 and 120 are shown in this example separately from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, 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 the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. In accordance with a communication standard, such as a wireless communication protocol, the output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may demodulate a received transmission signal. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.

[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 a 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] The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to a destination device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (such as 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. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.

[0042]

[0043] The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a Digital Subscriber Line (DSL), a cable modem, etc.), or a combination of both, that is suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols described above for retrieving or receiving media data from the file server 114, or other such protocols for retrieving media data.

[0043]

[0044] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable 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, the storage device 112, the 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, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units, or other hardware and / or software, to handle multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).

[0047]

[0048] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, 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, the 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. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device. The device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.

[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 described 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 that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a sample of a picture, 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 format data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to the 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 processes of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding a block of a picture to include processes 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 partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally 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 children may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partition of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.

[0052]

[0053] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[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. A triple or ternary tree partitioning is a partitioning in which a block is split into three sub-blocks. In some examples, a triple or ternary tree partitioning splits a block into three sub-blocks without splitting the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.

[0054]

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

[0055]

[0056] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures in accordance with HEVC. For purposes of explanation, 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, the CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture, or a picture coded using three separate color planes and syntax structures 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. The components are arrays or single samples from one of three arrays (luma and two chromas) for pictures in 4:2:0, 4:2:2, or 4:4:4 color formats, or arrays or single samples of arrays for pictures in monochrome formats. In some examples, the 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 in a particular tile in a picture. A tile may be a rectangular region of a CTU in 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 include 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 "NxN" and "N by N", e.g., 16x16 samples or 16 by 16 samples, interchangeably to refer to sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. 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 NxM 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 samples of the CU prior to encoding and the predictive block.

[0062]

[0063] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU from data of a previously coded picture, while intra-prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional 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, the video encoder 200 may select an intra prediction mode to generate a predictive block. Some examples of VVC provide 67 intra prediction modes, including various directional modes, as well as planar and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which samples of the current block should be predicted. Such samples may generally be above, to the left of, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the 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- 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 transformed 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. Additionally, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.

[0067]

[0068] As mentioned 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, providing further compression. By performing a 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 produce 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 rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy code the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy 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, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values ​​of the symbol are zero-valued or not. The probability determination may be based on the context assigned to the symbol.

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

[0072]

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

[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 (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.

[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, the video encoder 200 and the 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, the video encoder 200 and the video decoder 300 may apply MHP as an extension of BCW. For example, when applied on top of VVC, the video encoder 200 and the video decoder 300 will only code the "additional prediction signal" in non-merged mode when the BCW uses a weight other than "4". Note that the weights for the "additional prediction signal" also imply unequal weights.

[0076]

[0077] In another example, in addition to or as an alternative to the above techniques, for non-merged mode, the MVD resolution of the "additional prediction signal" is the same as the selected MVD resolution in the base mode. Alternatively, the video encoder 200 and the video decoder 300 may code the MVD resolution of the "additional prediction signal" as in the case of 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 merged or non-merged 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 modes when the AMVR mode is ½ luma sample, where a different interpolation filter is applied for motion compensation. Predictors may be generated by smooth interpolation filters in ½ luma sample AMVR modes, and therefore applying MHP (using weighted averaging) to generate smooth predictors is not of much help 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 the 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 that it assigns more weight to some samples than to others, and a "smooth" filter means that it assigns relatively similar weights across different samples.

[0080]

[0081] In another example, in addition to or as an alternative to the above technique, the video encoder 200 and the 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, the video encoder 200 and the 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 of Table 2.

[0082] [Table 2]

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

[0084]

[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 described 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 in 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. The solid lines represent quad-tree splitting, and the 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]

[0086] In general, the CTU 132 of Fig. 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 quad tree size (MinQTSize representing the minimum allowed quad tree 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 the CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such a node including a parent node and a child node with solid lines for branching. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), the nodes may be further partitioned by their respective binary trees. The binary tree splitting of one node may be repeated until the nodes resulting from the split reach the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node with dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), and the 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 a "block."

[0088] In one example of a QTBT partitioning structure, the CTU size is set as 128×128 (luma samples and two corresponding 64×64 chroma samples), MinQTSize is set as 16×16, MaxBTSize is set as 64×64, MinBTSize is set as 4 (for both width and height), 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 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quad tree leaf node is 128×128, the quad tree leaf node is not further split by the binary tree because the size exceeds MaxBTSize (i.e., in this example, 64×64). In other cases, the quad tree leaf node may be further partitioned by the binary tree. Thus, the quad tree leaf node is also the root node for the binary tree and has the binary tree depth as 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 node of the binary tree is called a CU and is further processed according to the prediction and transformation without further partitioning.

[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 as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the 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 selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 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]

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

[0093] The various units in FIG. 3 are shown to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preconfigured with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and 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 parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0094]

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

[0095]

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

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

[0097]

[0097] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values ​​for such combinations. The encoding parameters may include partitioning of the CTU into CUs, prediction modes for the CUs, transform types for the residual data of the CUs, quantization parameters for the residual data of the CUs, etc. The mode selection unit 202 may finally select a combination of encoding 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 various other factors described above, such as weights to be applied to the predicted block, MVD resolution, etc.

[0098]

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

[0099] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for 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 a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.

[0100]

[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 a 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 prediction block using the motion vector and various weights, and the mode selection unit 202 may finally determine an appropriate weight among the weights. For example, the motion compensation unit 224 may retrieve data of a reference block using the motion vector. As another example, if the motion vector has fractional sample accuracy, the motion compensation unit 224 may interpolate values ​​for the prediction 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]

[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 produces 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., weight values ​​other than 4).

[0103]

[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 with 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 code the motion information using a non-merged mode, such as AMVP.

[0104]

[0104] The mode selection unit 202 may also determine a weighting factor for combining the intermediate prediction block with the additional prediction block according to the MHP. The weighting factor for the MHP is separate from the unequal weights of the BCW. For example, the mode selection unit 202 may provide the value of the weighting factor to be coded according to a table specifying an additional hypothesis weight index value (e.g., add_hyp_weight_idx) for the weighting factor to the entropy coding unit 220. The entropy coding unit 220 may determine the value of the additional hypothesis weight index value from the table. Thus, the entropy coding unit 220 may code both data representing the unequal weights of the BCW as well as the weighting factor for the MHP.

[0105]

[0105] The mode selection unit 202 may provide the weight values ​​and the 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]

[0107] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples adjacent to a current block. For example, in a directional mode, the intra prediction unit 226 may generally mathematically combine values ​​of adjacent samples to produce a predictive block, and populate these calculated values ​​in a defined direction across the current block. As another example, in a DC mode, the intra prediction unit 226 may calculate an average of the adjacent samples for the current block, and generate a predictive block to include this resulting average for each sample of the predictive block.

[0108]

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

[0109]

[0109] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or 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 an example in which the mode selection unit 202 does not further partition the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.

[0111]

[0111] In other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but may instead generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the 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]

[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 secondary transform such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0114]

[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 selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in loss of information, and thus the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.

[0115]

[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 corresponding to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode selection unit 202 to produce a 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]

[0117] The video encoder 200 stores the reconstructed block in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed block in the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed block in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed from the reconstructed (and potentially filtered) block from the DPB 218 to inter predict blocks of a picture to be subsequently encoded. Furthermore, the intra prediction unit 226 may use the reconstructed block in the DPB 218 of the current picture to intra predict other blocks in the current picture.

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

[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 being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.

[0121]

[0121] In some examples, the operations performed with respect to the luma coding block do not need to be repeated for the chroma coding block. As an example, the operations for identifying a motion vector (MV) and a reference picture for the luma coding block do not need to be repeated to identify the MV and the reference picture for the chroma block. Rather, the MV for the luma coding block may be scaled to determine the MV for the chroma block, and the reference picture may be the same. As another example, the intra prediction process may be the same for the luma coding block and the chroma coding block.

[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 is not intended to 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] In the example of FIG. 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, an ASIC, or an FPGA. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.

[0124]

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

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

[0126] Additionally or alternatively, in some examples, the video decoder 300 may retrieve coded video data from the memory 120 (FIG. 1). That is, the memory 120 may store data as described above along with the CPB memory 320. Similarly, the memory 120 may store instructions to be executed by the video decoder 300 when some or all of the functionality of the video decoder 300 is implemented in software to be executed by processing circuitry of the video decoder 300.

[0127]

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

[0128]

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

[0129]

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

[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 (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the "current block").

[0131]

[0131] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or a transform mode indication(s). The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may 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 block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the transform coefficient block.

[0133]

[0133] Furthermore, the prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by the entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, the motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in the DPB 314 from which the reference block should be retrieved, 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. The motion compensation unit 316 may generally perform an inter-prediction process in a manner substantially similar to that described with respect to the motion compensation unit 224 (FIG. 3).

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

[0135]

[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 not equal, the entropy decoding unit 302 may further determine that additional motion information for the additional prediction signal should be entropy decoded. Thus, 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 the weights and all of the 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 the MHP. The entropy decoding unit 302 may determine the weighting factor from the weighting factor index using a weighting factor table that maps the index value to a weighting factor.

[0136]

[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 with unequal weights to form an 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 weight of BCW.

[0137]

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

[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 a different syntax element than the additional motion information.

[0139]

[0139] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a prediction block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 3). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the 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] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed block. The operations of the filter unit 312 are not necessarily performed in all examples.

[0142]

[0142] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of a 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]

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

[0144]

[0144] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predictive block for the current block. The video encoder 200 may form the predictive block according to the MHP described above, according to the techniques of this disclosure. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate a difference between the original uncoded block and the predictive block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy code the coefficients (358). For example, the video encoder 200 may code the coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy coded data for the block (360).

[0145]

[0145] Video encoder 200 may also decode the current block after encoding the current block 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 inter-predictively coded using a bi-predictive mode, where the first weight and the second weight are 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 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.

[0147]

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

[0148]

[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 coefficients of the residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and to reconstruct the coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using an intra-prediction or inter-prediction mode indicated by the prediction information for the current block, to compute 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 inverse quantize and inverse transform the quantized transform coefficients to produce the residual block (378). Video decoder 300 may finally 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 inter-predictively coded using a bi-predictive mode, where in response to determining that a first weight and a second weight are specified, the first weight being different from the second weight, determining whether the current block is to 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 is to 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 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 the 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, ½ pixel, ¼ pixel, ⅛ pixel, etc.

[0152]

[0152] The video decoder 300 may further decode data representing the 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 the weights W1406 to the samples of the first bi-predictive block 402 and the weights W2408 to the samples of the second bi-predictive block 404. That is, the video decoder 300 may multiply the weights W1406 with the values ​​of each of the samples of the first bi-predictive block 402 and multiply the weights W2408 with the values ​​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 values ​​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 weighting value, e.g., 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]

[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 multiple hypothesis prediction should be implemented as an extension of the BCW. Thus, 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, for example, using an AMVP mode or another non-merged 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 thus 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]

[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 samples of the intermediate prediction block 410 and apply WF2 416 to 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]

[0155] Figure 8 is a flow chart illustrating an example method of decoding (e.g., reproducing) a current block of video data in accordance with the techniques of this disclosure. The method of Figure 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 Figure 8 may generally correspond to step 350 of Figure 5 or step 374 of Figure 6. For purposes of example and explanation, the method of Figure 8 will be described with respect to video decoder 300.

[0156]

[0156] First, the video decoder 300 may generate a first predictive block (430) and generate a second predictive block (432). For example, the video decoder 300 may receive motion information encoded 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 a bi-predictive block with CU level weighting (BCW) block.

[0157]

[0157] In this example, the video decoder 300 may determine that the weights are unequal values, for example, both weights are not equal to 4. Thus, 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 the MHP (436).

[0158] In response to determining that the weights are not equal, 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 a plurality 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 pre-determined 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]

[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, for example, as described with respect 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 respect 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 respect 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 inter-predictively coded using a bi-predictive mode, where in response to determining that a first weight and a 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, 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, the weights being specified, where in response to determining that the at least two motion vectors are coded using a mode other than merge mode, 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, where the two or more motion vectors are coded using a mode other than a 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 according to any one of clauses 1 and 2 and the method according to clause 3.

[0166]

[0166] Clause 5: A method as described in any of clauses 3 and 4, further comprising decoding data representing a precision for the MVD value for the base motion vector, and inferring a 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 a 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, the two or more motion vectors including 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 in accordance with 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 in accordance with 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 in accordance with 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 according to any one of clauses 1 to 7 and the method according to 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 ½ luma sample resolution; in response to determining that the AMVR for the at least one motion vector is ½ 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 the 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 according to any one of clauses 1 to 11 and the method according to 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, where 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 in accordance with 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 in accordance with 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 according to any one of clauses 1 to 16 and the method according to clause 17.

[0180]

[0180] Clause 19: A method as described in any of clauses 17 and 18, wherein determining a weight to apply to the second intermediate prediction block comprises decoding a value for an add_hyp_weight_idx syntax element, and determining that the weight comprises 1 / 4 when the value for the add_hyp_weight_idx syntax element is 0, determining that the weight comprises -1 / 8 when the value for the add_hyp_weight_idx syntax element is 1, and determining that the weight comprises 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 as described in 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 with weights specified, where the at least two motion vectors are coded using a mode other than merge mode, and in response to determining that weights are specified, means for determining whether the current block should be predicted using multiple hypothesis prediction (MHP), means for forming a predictive block for the current block in accordance with MHP using the at least two motion vectors, 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, where the two or more motion vectors are coded using a mode other than a 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 in accordance with 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 in accordance with 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 in accordance with 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 ½ luma sample resolution; means for determining, in response to determining that the AMVR for the at least one motion vector is ½ 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 the 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, where 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 in accordance with 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 in accordance with 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 inter-predictively coded using a bi-prediction mode, wherein in response to determining that a first weight and a 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-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 predictive block according to the bi-prediction 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 of 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 of 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 a 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 of 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 of 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, the one or more processors configured to: determine that a first weight and a second weight are specified for a current block of video data inter-predictively coded using a bi-prediction mode, where the first weight and the second weight are different from the second weight; in response to determining that the first weight and the second weight are specified, 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.

[0205]

[0205] Clause 44: The device 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: The device 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 of 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, 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 a motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has an MVD resolution without decoding additional data representing an MVD resolution for the third motion vector.

[0209]

[0209] Clause 48: The device 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 a final prediction block.

[0210]

[0210] Clause 49: The device 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 which, when executed, cause a processor to determine that a first weight and a second weight are specified for a current block of video data inter-predictively coded using a bi-prediction mode, where in response to determining that a first weight and a 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-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, 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.

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

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

[0217]

[0217] Clause 56: The method further comprises instructions to cause the processor to decode a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, to decode a second motion vector using the AMVP mode for the bi-prediction mode, and to 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 instructions to cause the processor to generate a first intermediate prediction block using the first motion vector, to generate a second intermediate prediction block using the second motion vector, and to decode a first weighted intermediate prediction block using the first weighted intermediate prediction block. 54. The computer-readable storage medium of claim 53, comprising instructions to cause a processor to generate a first prediction block using a third motion vector, applying a first weight to the first intermediate prediction block to form a second 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 the processor to generate the second prediction 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 a motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has an MVD resolution without decoding additional data representing an 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 a 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 a third weight comprise instructions for causing the processor to decode an index value and determine a third weight to which the index value is mapped in the mapping table, and the instructions for causing the processor to determine a fourth weight comprise 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 inter-predictively coded using a bi-prediction mode, wherein in response to determining that a first weight and a 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-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 predictive block according to the bi-prediction 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: 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 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 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 an MVD resolution without decoding additional data representing the 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 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 a final prediction block.

[0228]

[0228] Clause 67: The device described in Clause 66, wherein the means for determining the third weight comprises means for decoding the index value and means for determining a third weight to which the index value is mapped in the mapping table, and the means for determining the 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 inter-predictively coded using a bi-prediction mode, wherein in response to determining that a first weight and a 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-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 predictive block according to the bi-prediction 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 of 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 of 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 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, and wherein generating the second prediction block comprises generating the second prediction block using the third motion vector.

[0234]

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

[0235]

[0235] Clause 74: A method according to any of clauses 69 to 73, 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.

[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, the one or more processors configured to: determine that a first weight and a second weight are specified for a current block of video data inter-predictively coded using a bi-prediction mode, where the first weight and the second weight are different from the second weight; in response to determining that the first weight and the second weight are specified, 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.

[0239]

[0239] Clause 78: The device 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: The device 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]

[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 to 79, further configured to: apply a first weight to the first intermediate predictive block to form a 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 to generate the second predictive block, the one or more processors are configured to generate the second predictive 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 a motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has an MVD resolution without decoding additional data representing an MVD resolution for the third motion vector.

[0243]

[0243] Clause 82: A device described in any of clauses 77 to 81, 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.

[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 an index value and determine a third weight to which the index value is mapped in a 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 prior to 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 which, when executed, cause a processor to determine that a first weight and a second weight are specified for a current block of video data inter-predictively coded using a bi-prediction mode, where in response to determining that a first weight and a 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-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, 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.

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

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

[0251] Clause 90: The method further comprises instructions to cause the processor to decode a first motion vector using an advanced motion vector prediction (AMVP) mode for a bi-prediction mode, to decode a second motion vector using the AMVP mode for the bi-prediction mode, and to 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 instructions to cause the processor to generate a first intermediate prediction block using the first motion vector, to generate a second intermediate prediction block using the second motion vector, and to decode a first weighted intermediate prediction block using the second motion vector. 90. The computer-readable storage medium of any of clauses 87-89, comprising instructions to cause a processor to generate a second weighted intermediate predictive block, applying a first weight to the first intermediate predictive block to form a second 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 the instructions to cause a processor to generate the second predictive block using a third motion vector comprise instructions to cause a processor to generate the second predictive 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 a motion vector differential (MVD) resolution for the first motion vector and the second motion vector, and determine that the third motion vector has an MVD resolution without decoding additional data representing an MVD resolution for the third motion vector.

[0253]

[0253] Clause 92: A computer-readable storage medium according to 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 a 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 the 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 according to any of clauses 87 to 93, further comprising instructions for causing a processor to encode the current block using the final predicted block prior to 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 inter-predictively coded using a bi-prediction mode, wherein in response to determining that a first weight and a 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-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 predictive block according to the bi-prediction 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: 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 the second weight.

[0259]

[0259] Clause 98: A device as 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 prediction block comprises means for generating a first intermediate prediction block using the first motion vector, means for generating a second intermediate prediction block using the second motion vector, means for applying a first weight to the first intermediate prediction block to form a first weighted intermediate prediction block, means for applying a second weight to the second intermediate prediction block to form a second weighted intermediate prediction block, and means for combining the first weighted intermediate prediction block with the second weighted intermediate prediction block to form the first prediction block, wherein the means for generating the second prediction block comprises means for generating the second prediction block using the third motion vector.

[0260]

[0260] Clause 99: The device described in Clause 98, further comprising 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 an MVD resolution without decoding additional data representing the 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: The device described in Clause 100, wherein the means for determining the third weight comprises means for decoding the index value and means for determining a third weight to which the index value is mapped in the 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]

[0264] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (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 multi-threaded processing, interrupt processing, or multiple processors.

[0265]

[0265] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or may include a communication medium, which includes any medium that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes and / or data structures for implementation of 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 may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if the instructions are transmitted from a website, server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. 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 circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures, or any other structures suitable for implementing the techniques described herein. Furthermore, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.

[0268]

[0268] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). In this disclosure, various components, modules, or units have been described to highlight functional aspects of devices configured to implement the disclosed techniques, but 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.

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, where the first weight is different from the second weight; in response to determining that the first weight and the second weight are specified, 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; 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; 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 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. 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 that 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; Further equipped with 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 weights 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 representative of 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 predictive block to form a second weighted predictive block; combining the first weighted prediction block with the second weighted prediction block to form the final prediction block; The method of claim 1 , comprising:

6. Determining the third weight comprises: Decoding the index value; and 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, where the first weight is different from the second weight; in response to determining that the first weight and the second weight are specified, 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; 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; 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 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. 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 4 and that the second weight is not equal to 4.

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; [0023] 20. The method according to claim 1, further comprising: 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 weights 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; [0023] 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 representative of 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 predictive block to form a second weighted predictive block; combining the first weighted prediction block with the second weighted prediction block to form the final prediction block; [0023] Preferably, to determine the third weight, the one or more processors Decoding the index value; and determining the third weight to which the index value is mapped in a mapping table; [0023] 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. 10. 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 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 instructions stored thereon which, when executed, cause a processor to perform the method of any one of claims 1 to 7.