Method for adaptively signaling maximum number of merge candidates in multi-hypothesis prediction
By setting the maximum number of candidate lists for merging multiple hypothesis predictions in video coding technology, the problems of inconsistent and inaccurate video decoding are solved, achieving higher quality and more consistent video decoding results.
Patent Information
- Application Number
- CN202380032223.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-03-22
- Publication Date
- 2024-11-15
AI Technical Summary
Existing video coding technologies suffer from decoding inconsistencies and inaccuracies in multi-hypothesis prediction, resulting in poor video data decoding quality.
By setting a maximum number of merge candidates in the multiple hypothesis prediction (MHP) merge candidate list and determining a specific way to achieve that maximum number, the video decoder is able to decode video data more consistently and accurately.
It improves the quality and consistency of video decoding, ensuring accurate decoding of video data.
Smart Images

Figure CN118975248A_ABST
Abstract
Description
[0001] This application claims priority to U.S. Patent Application No. 18 / 175,988, filed on February 28, 2023, and U.S. Provisional Patent Application No. 63 / 362,948, filed on April 13, 2022, the entire contents of which are incorporated herein by reference. U.S. Patent Application No. 18 / 175,988, filed on February 28, 2023, claims the benefit of U.S. Provisional Patent Application No. 63 / 362,948, filed on April 13, 2022. Technical Field
[0002] The present disclosure relates to video encoding and video decoding. Background Art
[0003] Digital video capabilities may be incorporated into a wide variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video gaming consoles, cellular or satellite wireless telephones (so-called "smart phones"), video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 (Part 10, Advanced Video Coding (AVC)), ITU-T H.265 / High Efficiency Video Coding (HEVC), ITU-T H.266 / Versatile Video Coding (VVC), and extensions of such standards, as well as proprietary video codecs / formats such as AOMedia Video 1 (AV1) developed by the Alliance for Open Media. By implementing such video decoding techniques, video devices can more efficiently send, receive, encode, decode and / or store digital video information.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0005] In general, this disclosure describes techniques for inter-frame prediction in video codecs. More specifically, this disclosure describes techniques related to multiple-hypothesis prediction.
[0006] Disclosed are techniques for determining a maximum number of merge candidates for a multiple hypothesis prediction (MHP) merge candidate list. By setting a maximum number of merge candidates for an MHP merge candidate list and a specific manner in which a video decoder can determine the maximum number of merge candidates for an MHP merge candidate list, different video decoders can use the MHP encoded by a video encoder to more consistently and accurately decode video data.
[0007] In one example, a method includes determining that multi-hypothesis prediction (MHP) is enabled; determining a maximum number of merge candidates for an MHP merge candidate list based on determining that MHP is enabled; determining the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and decoding the video data based on the MHP merge candidate list.
[0008] In another example, a device includes: a memory configured to store video data; and one or more processors implemented in a circuit and communicatively coupled to the memory, the one or more processors configured to: determine that multi-hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; determine the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and decode the video data based on the MHP merge candidate list.
[0009] In another example, a device includes: a component for determining that multi-hypothesis prediction (MHP) is enabled; a component for determining a maximum number of merge candidates for an MHP merge candidate list based on determining that MHP is enabled; a component for determining the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and a component for decoding the video data based on the MHP merge candidate list; one or more components for performing any of the techniques of the present disclosure.
[0010] In another example, a computer-readable storage medium is encoded with instructions that, when executed, cause one or more processors to: determine that multiple hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determine the MHP merge candidate list; and decode video data based on the MHP merge candidate list.
[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0013] Figure 2 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0014] Figure 3 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0015] Figure 4 is a conceptual diagram illustrating the selection of a unidirectional prediction motion vector for a geometric prediction mode.
[0016] Figure 5 is a flow chart illustrating an example MHP technique in accordance with one or more aspects of the present disclosure.
[0017] Figure 6 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure.
[0018] Figure 7 is a flowchart illustrating an example method for decoding a current block according to techniques of this disclosure. DETAILED DESCRIPTION
[0019] Disclosed are techniques for determining a maximum number of merge candidates for a multiple hypothesis prediction (MHP) merge candidate list. By setting a specific manner in which a video decoder can determine the maximum number of merge candidates for an MHP merge candidate list, different video decoders can use the MHP encoded by a video encoder to more consistently and accurately decode video data. The techniques disclosed herein can therefore achieve higher quality and consistency of decoded video data.
[0020] Figure 11 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure generally relate to decoding (encoding and / or decoding) video data. Generally speaking, video data includes any data used to process video. Therefore, video data can include unencoded raw video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0021] like Figure 1 As shown in , in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a target device 116. Specifically, source device 102 provides video data to target device 116 via computer-readable medium 110. Source device 102 and target device 116 may include any of a wide variety of devices, including desktop computers, notebook (i.e., laptop) computers, mobile devices, tablet computers, set-top boxes, handheld phones such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, etc. In some cases, source device 102 and target device 116 may be equipped for wireless communication and may therefore be referred to as wireless communication devices.
[0022] exist Figure 1 In the example of, source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Target device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of target device 116 can be configured to apply the technology for multi-hypothesis prediction. Therefore, source device 102 represents an example of video encoding device, and target device 116 represents an example of video decoding device. In other examples, source device and target device may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, target device 116 may be docked with an external display device instead of including an integrated display device.
[0023] like Figure 1The system 100 shown in is only an example. Generally speaking, any digital video encoding and / or decoding device can perform the technology for multi-hypothesis prediction. The source device 102 and the target device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for sending to the target device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (e.g., encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, specifically, respectively represent video encoders and video decoders. In some examples, the source device 102 and the target device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the target device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the target device 116, for example, for video streaming, video playback, video broadcasting or video telephony.
[0024] Generally speaking, video source 104 represents the source of video data (i.e., uncoded raw video data), and provides a series of pictures (also referred to as "frames") of the order of video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream including encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of target device 116 .
[0025] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memory. In some examples, the memories 106, 120 can store original video data, for example, original video from the video source 104 and original decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and the memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memory for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store encoded video data, for example, output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original decoded and / or encoded video data.
[0026] The computer-readable medium 110 may represent any type of medium or device capable of transmitting coded video data from the source device 102 to the target device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to directly transmit coded video data to the target device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate a transmission signal including coded video data, and the input interface 122 may demodulate the received transmission signal. The communication medium may include 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 a portion of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other equipment that may be useful for facilitating communication from the source device 102 to the target device 116.
[0027] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, target 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.
[0028] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Target device 116 may access the stored video data from file server 114 via streaming or downloading.
[0029] The file server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to the target device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide a file transfer protocol service (such as a file transfer protocol (FTP) or a 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 an 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.
[0030] The target device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.
[0031] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to a cellular communication standard (such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee 5G, etc.). TM ),Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or target device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functionality belonging to video encoder 200 and / or output interface 108, and target device 116 may include a SoC device for performing functionality belonging to video decoder 300 and / or input interface 122.
[0032] The techniques disclosed herein can be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0033] The input interface 122 of the target device 116 receives an encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 and also used by the video decoder 300, such as syntax elements with values describing characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays 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.
[0034] Despite Figure 1Not shown, but in some examples, the video encoder 200 and the video decoder 300 can both be integrated with an audio encoder and / or an audio decoder, and can include appropriate MUX-DEMUX units or other hardware and / or software to handle multiplexed streams including both audio and video in a common data stream.
[0035] The video encoder 200 and the video decoder 300 can be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in an appropriate non-transitory computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (codec) in a corresponding device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device (such as a cellular phone).
[0036] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as ITU-TH.265 (also known as high-efficiency video coding (HEVC)) or an extension thereof such as multi-view and / or scalable video coding extensions. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as ITU-TH.266, also known as versatile video coding (VVC). In other examples, the video encoder 200 and the video decoder 300 may operate according to a proprietary video codec / format such as AOMedia Video 1 (AV1), an extension of AV1, and / or a subsequent version of AV1 (e.g., AV2). In other examples, the video encoder 200 and the video decoder 300 may operate according to other proprietary formats or industry standards. However, the techniques of the present disclosure are not limited to any particular coding standard or format. In general, the video encoder 200 and the video decoder 300 may be configured to perform the techniques of the present disclosure in conjunction with any video coding technique using multi-hypothesis prediction.
[0037] Generally speaking, the video encoder 200 and the video decoder 300 may perform block-based decoding of a picture. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, decoded, or otherwise used in 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 speaking, the video encoder 200 and the video decoder 300 may decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, instead of decoding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 may decode luminance components and chrominance components, wherein the chrominance components may include both red hue chrominance components and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB format data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.
[0038] The present disclosure may generally relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may relate to the decoding of a block of a picture to include the process of encoding or decoding data for the block (e.g., prediction and / or residual decoding). The encoded video bitstream generally includes a series of values of syntax elements for representing decoding decisions (e.g., decoding modes) and partitioning of pictures into blocks. Therefore, references to the decoding of a picture or a block should generally be understood as the decoded values of the syntax elements that form the picture or block.
[0039] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder divides the CTU and the CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without a child node may be referred to as a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further divide the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents the division of a TU. In HEVC, a PU represents inter-frame prediction data, and a TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0040] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide the CTUs according to a tree structure (such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partition types, such as the separation between CU, PU, and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitions, and a second level divided according to binary tree partitions. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0041] In the MTT partition structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partition is a partition in which a block is divided into three sub-blocks. In some examples, the ternary tree or ternary tree partition divides the block into three sub-blocks without dividing the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0042] When operating according to the AV1 codec, the video encoder 200 and the video decoder 300 may be configured to decode the video data in blocks. In AV1, the largest decoding block that can be processed is called a super block. In AV1, a super block may be 128x128 luminance samples or 64x64 luminance samples. However, in subsequent video coding formats (e.g., AV2), super blocks may be defined by different (e.g., larger) luminance sample sizes. In some examples, the super block is the top layer of the block quadtree. The video encoder 200 may further divide the super block into smaller decoding blocks. The video encoder 200 may divide the super block and other decoding blocks into smaller blocks using square or non-square partitions. Non-square blocks may include N / 2xN blocks, NxN / 2 blocks, N / 4xN blocks, and NxN / 4 blocks. The video encoder 200 and the video decoder 300 may perform separate prediction and transform processing on each decoding block.
[0043] AV1 also defines tiles of video data. A tile is a rectangular array of super blocks that can be decoded independently of other tiles. That is, the video encoder 200 and the video decoder 300 can encode and decode coded blocks within a tile, respectively, without using video data from other tiles. However, the video encoder 200 and the video decoder 300 can perform filtering across tile boundaries. The size of the tiles can be uniform or non-uniform. Tile-based decoding can enable parallel processing and / or multi-threading specifically implemented by the encoder and decoder.
[0044] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for the corresponding chroma components).
[0045] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, superblock partitioning, or other partitioning structures.
[0046] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples of a picture with three sample arrays, or a CTB of samples of a monochrome picture or a picture coded using three separate color planes and syntax structures for coding the samples. A CTB can be an NxN block of samples for some N value, such that one partition is to divide the components into CTBs. A component is an array or a single sample from one of the three arrays (luminance and two chroma) that make up a 4:2:0, 4:2:2, or 4:4:4 color format picture, or an array or a single sample of an array that makes up a monochrome format picture. In some examples, a coding block is an MxN block of samples for some M and N values, such that one partition is to divide the CTB into coding blocks.
[0047] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular area of a CTU row within a particular tile in a picture. A tile may be a rectangular area of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a rectangular area of a CTU having a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.
[0048] In some examples, a tile may be divided into multiple bricks, each of which may include one or more CTU rows within the tile. Tiles that are not divided into multiple bricks may also be referred to as bricks. However, bricks that are true subsets of tiles may not be referred to as tiles. Bricks in a picture may also be arranged in slices. A slice may be an integer number of bricks of a picture that may be uniquely contained in a single network abstraction layer (NAL) unit. In some examples, a slice includes multiple complete tiles or a continuous sequence of complete bricks that include only one tile.
[0049] This disclosure may use "NxN" and "N times N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 times 16 samples. Generally speaking, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.
[0050] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how to predict the CU in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.
[0051] In order to predict a CU, the video encoder 200 may typically form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU from previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search to identify a reference block that closely matches the CU, for example, based on the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.
[0052] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).
[0053] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as planar modes and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU) from which to predict samples of the current block. Assuming that the video encoder 200 decodes CTUs and CUs in raster scan order (from left to right, from top to bottom), such samples may typically be located above, above left, or to the left of the current block in the same picture as the current block.
[0054] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 may encode data indicating which of various available inter-frame prediction modes is used and motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode motion vectors for affine motion compensation mode.
[0055] AV1 includes two general techniques for encoding and decoding coded blocks of video data. The two general techniques are intra-frame prediction (e.g., intra-frame prediction or spatial prediction) and inter-frame prediction (e.g., inter-frame prediction or temporal prediction). In the content of AV1, when an intra-frame prediction mode is used to predict a block of a current frame of video data, the video encoder 200 and the video decoder 300 do not use video data from other frames of the video data. For most intra-frame prediction modes, the video encoder 200 encodes a block of the current frame based on the difference between the sample value in the current block and the prediction value generated from the reference sample in the same frame. The video encoder 200 determines the prediction value generated from the reference sample based on the intra-frame prediction mode.
[0056] After prediction (such as intra-frame prediction or inter-frame prediction for a block), the video encoder 200 can calculate residual data for the block. The residual data (such as a residual block) represents the sample-by-sample difference between the block and a prediction block for the block, which is formed using a corresponding prediction mode. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than in a sample domain. For example, the video encoder 200 can 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 can apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.
[0057] As noted above, after any transforms that produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bit-by-bit right shift of the value to be quantized.
[0058] After quantization, the video encoder 200 may scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place the transform coefficients of higher energy (and therefore lower frequency) in front of the vector and the transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values of the syntax elements describing the metadata associated with the encoded video data, which is used by the video decoder 300 when decoding the video data.
[0059] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0060] The video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for example in a picture header, a block header, a slice header, or generate other syntax data such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS) to the video decoder 300. The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0061] In this way, the video encoder 200 can generate a bitstream including encoded video data, for example, a syntax element describing the partition of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0062] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements for the bitstream in a manner substantially similar to but reverse to the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partition structure such as a QTBT structure to define CUs of the CTUs. The syntax elements may further define prediction and residual information for a block of video data (e.g., a CU).
[0063] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.
[0064] The present disclosure may generally involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the communication of values of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values of syntax elements in a bitstream. Generally speaking, signaling refers to generating values in a bitstream. As noted above, the source device 102 may transmit the bitstream to the target device 116 in substantially real time or in non-real time (such as may occur when storing syntax elements to the storage device 112 for later retrieval by the target device 116).
[0065] According to the technology of the present disclosure, a method includes: determining that multi-hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determining a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determining an MHP merge candidate list; and decoding video data based on the MHP merge candidate list.
[0066] According to the techniques of this disclosure, a device includes: a memory configured to store video data; and one or more processors implemented in circuits and communicatively coupled to the memory, the one or more processors configured to perform any of the techniques of this disclosure.
[0067] According to the technology of the present disclosure, an apparatus includes one or more components for performing any one of the technologies of the present disclosure.
[0068] According to the techniques of this disclosure, a computer-readable storage medium is encoded with instructions that, when executed, cause a programmable processor to perform any of the techniques of this disclosure.
[0069] Figure 2 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 2 The present disclosure is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video encoder 200 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video encoding devices configured for other video coding standards and video coding formats, such as AV1 and subsequent formats of the AV1 video coding format.
[0070] exist Figure 2In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 can be implemented in one or more processors or in a processing circuit. For example, the units of the video encoder 200 can 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. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.
[0071] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for use when subsequent video data is predicted by video encoder 200. Video data memory 230 and DPB 218 can be formed by any memory device in a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, video data memory 230 can be on-chip with other components of video encoder 200 (as illustrated), or off-chip relative to those components.
[0072] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to a memory inside the video encoder 200 (unless otherwise specified) or a memory outside the video encoder 200 (unless otherwise specified). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .
[0073] Illustrated Figure 2 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functionality and are pre-set for executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of the units in the unit may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units in the unit may be integrated circuits.
[0074] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example in which the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store instructions (eg, object code) for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0075] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve pictures of video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.
[0076] 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. As an example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0077] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for a CU, the transform type for the residual data of a CU, the quantization parameter for the residual data of a CU, etc. The mode selection unit 202 may ultimately select a coding parameter combination that has a better rate-distortion value than other tested combinations.
[0078] The video encoder 200 may divide the picture retrieved from the video data memory 230 into a series of CTUs, and encapsulate one or more CTUs in a slice. The mode selection unit 202 may divide the CTUs of the picture according to a tree structure (such as an MTT structure, a QTBT structure, a super block structure, or the above-mentioned quadtree structure). As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0079] 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 the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). In order to inter-predict the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar the potential reference block will be to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample differences between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations to indicate the reference block that best matches the current block.
[0080] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vector has fractional sample precision, the motion compensation unit 224 may interpolate the values of the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.
[0081] When operating according to the AV1 video coding format, the motion estimation unit 222 and the motion compensation unit 224 may be configured to encode coding blocks of the video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, overlapped block motion compensation (OBMC), and / or composite inter-intra prediction.
[0082] As another example, for intra prediction or intra prediction coding, the intra prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values of the adjacent samples and pad these calculated values across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 may calculate an average of the adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.
[0083] When operating according to the AV1 video coding format, the intra prediction unit 226 may be configured to encode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filter intra prediction, chroma from luma (CFL) prediction, intra-block copy (IBC), and / or palette mode. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes.
[0084] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the uncoded original 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 the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values in the residual block to generate the residual block using residual differential pulse coding modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0085] In an example where the mode selection unit 202 divides the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As noted above, the size of a CU may refer to the size of a luma coding block of the CU, and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-prediction, and 2Nx2N, 2NxN, Nx2N, NxN or similar symmetric PU sizes for inter-prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-prediction.
[0086] In an example where mode selection unit 202 does not further divide a CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As above, the size of a CU may refer to the size of the luma coding block of the CU. Video encoder 200 and video decoder 300 may support CU sizes of 2Nx2N, 2NxN, or Nx2N.
[0087] For 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 prediction block for the current block being encoded via a corresponding unit associated with the coding technique. In some examples (such as palette mode coding), the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating the manner in which the block is reconstructed based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0088] As described above, the residual generation unit 204 receives video data for a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0089] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the 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, the transform processing unit 206 may perform a variety of transforms on the residual block, for example, a primary transform and a secondary transform (such as a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0090] When operating according to AV1, the transform processing unit 206 may apply one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a horizontal / vertical transform combination, which may include a discrete cosine transform (DCT), an asymmetric discrete sine transform (ADST), a flipped ADST (e.g., ADST in reverse order), and an identity transform (IDTX). When the identity transform is used, the transform is skipped in one of the vertical direction or the horizontal direction. In some examples, the transform process may be skipped.
[0091] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may cause a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.
[0092] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0093] Filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0094] When operating according to AV1, filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In other examples, filter unit 216 may apply a constrained directional enhancement filter (CDEF), which may be applied after deblocking and may include the application of a non-separable, non-linear, low-pass directional filter based on the estimated edge direction. Filter unit 216 may also include a loop recovery filter applied after CDEF, and may include a separable symmetric normalized Wiener filter or a dual self-guided filter.
[0095] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks of the current picture in the DPB 218 to perform intra-frame prediction on other blocks in the current picture.
[0096] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode a quantized transform coefficient block from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode a prediction syntax element (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax element (the syntax element is another example of video data) to generate entropy encoded data. For example, the entropy coding unit 220 may perform a context adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode where the syntax element is not entropy encoded.
[0097] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0098] According to AV1, the entropy coding unit 220 may be configured as a symbol-to-symbol adaptive multi-symbol arithmetic decoder. The syntax elements in AV1 include an alphabet of N elements, and the context (e.g., a probability model) includes a set of N probabilities. The entropy coding unit 220 may store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). The entropy coding unit 220 may perform recursive scaling using an update factor based on the size of the alphabet to update the context.
[0099] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.
[0100] In some examples, operations performed for luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to repeat the MVs and reference pictures used to identify chroma blocks. Instead, the MVs for luma coding blocks may be scaled to determine the MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0101] The video encoder 200 represents an example of a device configured to encode video data, the device comprising: a memory configured to store the video data; and one or more processing units implemented in a circuit and configured to: determine that multiple hypothesis prediction (MHP) is enabled; based on determining that the MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determine an MHP merge candidate list; and encode the video data based on the MHP merge candidate list.
[0102] Figure 3 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 3 It is provided for the purpose of explanation and is not a limitation of the techniques extensively illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.
[0103] exist Figure 3 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any 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 can be implemented in one or more processors or in processing circuits. For example, the units of the video decoder 300 can 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. In addition, the video decoder 300 can include additional or alternative processors or processing circuits to perform these and other functions.
[0104] 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 to perform predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0105] As described above, when operating according to AV1, the compensation unit 316 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, OBMC, and / or composite inter-frame intra-frame prediction. As described above, the intra-frame prediction unit 318 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra-frame prediction, non-directional intra-frame prediction, recursive filter intra-frame prediction, CFL, intra-block copy (IBC), and / or palette mode.
[0106] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be obtained from computer readable medium 110 ( Figure 1 ) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, which video decoder 300 may output, and / or use as reference video data when decoding subsequent data or pictures of the coded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as DRAM (including SDRAM), MRAM, RRAM, or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or a separate memory device. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.
[0107] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may utilize CPB memory 320 to store data as discussed above. Likewise, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.
[0108] Illustrated Figure 3 The various units shown in FIG. 1 and FIG. 2 are used to help understand the operations performed by the video decoder 300. The units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 2, fixed-function circuits refer to circuits that provide specific functionality and are pre-set for the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0109] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0110] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0111] Generally speaking, the video decoder 300 reconstructs a picture block by block. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0112] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization to be applied by the inverse quantization unit 306. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0113] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the transform coefficient block.
[0114] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate ... Figure 2 )The inter-frame prediction process is performed in a manner substantially similar to that described in detail above.
[0115] 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. Similarly, the intra-prediction unit 318 is generally capable of generating a prediction block in accordance with the intra-prediction mode indicated by the prediction information syntax element. Figure 2 The intra prediction process is performed in a manner substantially similar to that described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.
[0116] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
[0117] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.
[0118] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As discussed above, the DPB 314 may provide reference information (such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output a decoded picture (e.g., a decoded video) from the DPB 314 for use in, for example, Figure 1 Subsequent presentation on a display device such as display device 118.
[0119] In this way, the video decoder 300 represents an example of a video decoding device, which includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to: store the video data; and one or more processing units implemented in a circuit and configured to: determine that multiple hypothesis prediction (MHP) is enabled; based on determining that the MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determine an MHP merge candidate list; and decode the video data based on the MHP merge candidate list.
[0120] In a video decoder operating according to HEVC, the video encoder 200 or the video decoder 300 may generate a bidirectional prediction signal by averaging two prediction signals obtained from two different reference pictures and / or using two different motion vectors. In VVC, the bidirectional prediction mode is extended beyond simple averaging to allow weighted averaging of two prediction signals. For example, when operating according to VVC, the video encoder 200 or the video decoder 300 may use the following formula to determine the bidirectional prediction signal.
[0121] P bi-pred =((8-w)*P 0 +w*P 1 +4)>>3
[0122] In VVC, five weights are allowed in weighted average bidirectional prediction: w∈{-2,3,4,5,10}. For each bidirectionally predicted CU, the video encoder 200 or the video decoder 300 can determine the weight w in one of the following two ways: 1) For non-merged CUs, the weight index is signaled after the motion vector difference (for example, the video decoder 300 can parse the syntax elements after the motion vector difference in the bitstream to determine the weight index); 2) For merged CUs, the weight index is inferred from neighboring blocks based on the merge candidate index. Bidirectional prediction with CU-level weights (BCW) is only applied to CUs with 256 or more luma samples (for example, the CU width multiplied by the CU height is greater than or equal to 256). For example, the video encoder 200 or the video decoder 300 may apply BCW only to CUs with 256 or more luma samples. For low-latency images, all 5 weights can be used. For non-low-latency images, only 3 weights (w∈{3,4,5}) can be used.
[0123] Now let's discuss adaptive motion vector resolution (AMVR). In HEVC, when use_integer_mv_flag is equal to 0 in the slice header, the motion vector difference (MVD) (between the motion vector of the CU and the predicted motion vector) can be signaled in units of quarter-luma-sample. For example, the video encoder 200 can signal the MVD to the video decoder 300 in units of quarter-luma samples. In VVC, a CU-level AMVR scheme is introduced. AMVR allows the MVD of a CU to be decoded with different precisions. Depending on the mode of the current CU (normal AMVP mode or affine AVMP mode), the MVD of the current CU can be adaptively selected as follows:
[0124] - Normal AMVP mode: quarter brightness samples, half brightness samples, integer brightness samples, or quad brightness samples.
[0125] - Affine AMVP mode: quarter luma samples, integer luma samples, or 1 / 16 luma samples.
[0126] If the current CU has at least one non-zero MVD component, the CU-level MVD resolution indication may be conditionally signaled. For example, the video encoder 200 may conditionally signal the CU-level MVD resolution indication to the video decoder 300. If all MVD components (e.g., both the horizontal MVD and the vertical MVD of reference list L0 and reference list L1) are zero, a quarter luma sample MVD resolution may be inferred.
[0127] For a CU having at least one non-zero MVD component, the video encoder 200 may signal a first flag to indicate whether quarter luma sample MVD precision is used for the CU. If the first flag is 0, no further signaling is required and quarter luma sample MVD precision is used for the current CU. Otherwise, the video encoder 200 may signal a second flag to indicate that half luma samples or other MVD precision (e.g., integer, four luma samples, etc.) are used for normal AMVP CUs. In the case of half luma samples, a 6-tap interpolation filter is used for half luma sample positions instead of the default 8-tap interpolation filter. For example, the video encoder 200 or the video decoder 300 may use a 6-tap interpolation filter. Otherwise, the video encoder 200 may signal a third flag to indicate whether integer luma sample MVD precision or four luma sample MVD precision is used for normal AMVP CUs. In the case of an affine AMVP CU, the second flag is used 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 expected precision (quarter luma samples, half luma samples, integer luma samples, or four luma samples), the motion vector predictor of the CU may be rounded to the same precision as the MVD before being added to the MVD. The motion vector predictor may be rounded toward zero (e.g., a negative motion vector predictor is rounded toward positive infinity, and a positive motion vector predictor is rounded toward negative infinity).
[0128] Now let's discuss the geometric partitioning mode (GPM). In VVC, geometric partitioning mode is supported for inter prediction. The geometric partitioning mode is signaled using a CU level flag as a merge mode, where other merge modes include normal merge mode, merge with motion vector difference (MMVD) mode, combined inter-intra (CIIP) mode, and sub-block merge mode. For each possible CU size w×h=2 m ×2 n ,The geometric partitioning mode supports a total of 64 partitions, where m,n∈{3…6}, excluding 8x64 and 64x8.
[0129] Figure 4is a conceptual diagram illustrating unidirectional prediction MV selection for geometric partitioning mode. When GPM is used, the video encoder 200 or the video decoder 300 can divide the CU into two parts by a geometrically positioned straight line. Each part of the geometric partition in the CU uses its own motion for inter-frame prediction; only unidirectional prediction is allowed for each partition, that is, each part has one motion vector and one reference index. Unidirectional prediction motion constraints are applied to ensure that, as with conventional bidirectional prediction, only two motion compensated predictions are required for each CU. The unidirectional prediction motion for each partition is derived using the process described below: the unidirectional prediction candidate list is directly derived from the merge candidate list constructed according to the extended merge prediction process in VVC. Denote n as the index of the unidirectional prediction motion in the geometric unidirectional prediction candidate list. The LX motion vector (where X is equal to the parity of n) of the nth extended merge candidate is used as the nth unidirectional prediction motion vector for the geometric partitioning mode. These motion vectors are Figure 4 In the case where the corresponding LX motion vector of the n-th extended merge candidate does not exist, the L(1-X) motion vector of the same candidate is used instead as the unidirectional prediction motion vector of the geometric partitioning mode.
[0130] If a geometric partitioning mode is used for the current CU, the video encoder 200 may further signal a geometric partitioning index (angle and offset) and two merge indexes (one for each partition) indicating the partitioning mode of the geometric partitioning. The video encoder 200 may explicitly signal the number of maximum GPM candidates (e.g., the maximum size of the candidate list) in the SPS and specify the syntax binarization for the GPM merge index. After predicting each part of the geometric partition, a blending process with adaptive weights may be used to adjust the sample values along the edges of the geometric partition.
[0131] We now discuss multiple hypothesis prediction (MHP). In almost all previous and current video coding standards, temporal prediction of blocks can use either unidirectional prediction or bidirectional prediction. Multiple hypothesis prediction (MHP) is described in Winken et al., “Multiple-Hypothesis Inter Prediction,” Joint Video Experts Team (JVET) of ITU-T SG 16WP3 and ISO / IEC JTC 1 / SC 29 / WG 11, 10 thMeeting: San Diego, 10–20 April 2018, JVET-J0041, and later in the following literature: Winken et al., “CE 10: Multi-hypothesis inter prediction (Tests 1.5-1.8),” Joint Video Experts Team (JVET) of ITU-T SG16WP 3and ISO / IEC JTC 1 / SC 29 / WG 11, 11 th Meeting: Ljubljana, 11–18July 2018, JVET-K0269; Winken et al.’s “CE 10: Multi-hypothesis inter prediction (Tests 1.2.a-1.2.c),” Joint Video Experts Team (JVET) of ITU-T SG 16WP 3and ISO / IEC JTC 1 / SC29 / WG 11,12 th Meeting: Macao, 3–12 October 2018, JVET-L0148; and Winken et al., “CE10: Multi-hypothesis inter prediction (Test 10.1.2),” Joint Video Experts Team (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 13 th Meeting: Marrakech, 9–18 January 2019, JVET-M0425. In MHP, the inter-frame prediction method allows weighted superposition of more than two motion compensated prediction signals. The resulting total prediction signal is obtained by weighted superposition of each sample. For example, the video encoder 200 or the video decoder 300 may use weighted superposition of each sample to obtain the total prediction signal. Using the unidirectional / bidirectional prediction signal p uni / bi and the first additional inter-frame prediction signal / hypothesis h 3 , the resulting prediction signal p can be obtained as follows 3 :
[0132] p 3 =(1-α)p uni / bi +αh 3
[0133] The weighting factor α may be specified by the syntax element add_hyp_weight_idx according to the following mapping:
[0134] add_hyp_weight_idx α 0 1 / 4 1 -1 / 8
[0135] Similar to the above, more than one additional prediction signal may be used. The resulting total prediction signal may be iteratively accumulated with each additional prediction signal.
[0136] p n+1 =(1-α n+1 ) n +α n+1 h n+1
[0137] The total prediction signal obtained can be used as the final p n (i.e. p n has the largest index n).
[0138] For inter-frame prediction blocks using MERGE mode (rather than SKIP mode), additional inter-frame prediction signals may also be specified. For example, the video encoder 200 or the video decoder 300 may use the additional prediction signals.
[0139] For the additional prediction signal, one of two AMVP candidate lists can be used: 1) if the POC of the reference picture of the additional prediction signal is equal to the POC of the list 1 reference picture used, then the list 1 AMVP candidate list is used; 2) otherwise, the list 0 AMVP candidate list is used.
[0140] Now let's discuss local illumination compensation (LIC). In Chang et al., "Compression efficiency methods beyond VVC", Joint Video Experts Team (JVET) of ITU-TSG 16WP 3 and ISO / IEC JTC 1 / SC 29, 21st Meeting: by teleconference, 6–15 January 2021, JVET-U0100, local illumination compensation (LIC) is adopted. LIC is an inter-frame prediction technique that models the local illumination variation between the current block and its predicted block as a function of the local illumination variation between the current block template and the reference block template. The parameters of the function can be represented by a scale α and an offset β, which form a linear equation, i.e., α*p[x]+β to compensate for illumination variation, where p[x] is the reference sample pointed to by the MV at position x on the reference picture. Since α and β can be derived based on the current block template and the reference block template, they do not require signaling overhead except for signaling the LIC flag for the AMVP mode to indicate the use of LIC. For example, video encoder 200 may signal a LIC flag to indicate the use of LIC and avoid signaling values of α and β.
[0141] Previously in Seregin et al., “CE 4-3.1a and CE 4-3.1b: Unidirectional local illumination compensation with affine prediction”, Joint Video Experts Team (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11,15 th Meeting: Gothenburg, 3–12 July 2019, JVET-O0066 The local illumination compensation proposed in this document is adopted for unidirectionally predicted inter CU with the following modifications: intra neighboring samples can be used for LIC parameter derivation; LIC can be disabled for blocks with less than 32 luma samples; for both non-sub-block mode and affine mode, LIC parameter derivation can be performed based on the template block samples corresponding to the current CU instead of the partial template block samples corresponding to the first upper left 16x16 unit; and the samples of the reference block template are generated by using motion compensation and block MV without rounding the block MV to integer pixel precision.
[0142] Now discuss the merge mode for the additional hypothesis. In U.S. patent application Ser. No. 17 / 655,919, filed on March 22, 2022, the video encoder 200 may signal a merge flag to indicate whether the additional hypothesis is using MERGE mode or AMVP mode, rather than always signaling the reference picture index, motion vector predictor index, and motion vector difference for the additional hypothesis (as in AMVP mode). If the merge flag is true, the video encoder 200 may further signal a merge index to indicate a merge candidate for the additional hypothesis. If the merge flag is false, the video encoder 200 may further signal that the reference picture index, motion vector predictor index, and motion vector difference are for the additional hypothesis.
[0143] Merge candidates for the merge mode in the additional hypothesis are constructed such that each merge candidate represents a unidirectional prediction motion. For example, the video encoder 200 or the video decoder 300 may construct the merge candidate.
[0144] In the enhanced compression model (ECM), the unidirectional prediction candidate list is the same as in the geometric partitioning mode. Therefore, the merge mode in the additional hypothesis shares the same merge candidate list as in the geometric partitioning mode.
[0145] In VVC and ECM, a merge candidate list for a geometric partitioning mode is constructed based on a conventional merge candidate list. For example, the video encoder 200 or the video decoder 300 may construct a merge candidate list for a geometric partitioning mode. The maximum number of candidates in the geometric partitioning mode may be greater than or equal to 2. When the maximum number of conventional merge candidates is less than 2, the geometric partitioning mode may be disabled.
[0146] The following techniques are described in this disclosure.
[0147] In the first technique, if multiple hypothesis prediction (MHP) is enabled, the maximum number of merge candidates for the candidate list of additional hypotheses in the MHP (referred to as the MHP merge candidate list) is signaled in the high-level syntax. For example, the maximum number of conventional merge candidates in the sequence parameter set (SPS). For example, the video encoder 200 may signal the maximum number of merge candidates for the MHP merge candidate list, for example, in the SPS, and the video decoder 300 may parse the maximum number of merge candidates for the MHP merge candidate list to determine the maximum number of merge candidates for the MHP merge candidate list.
[0148] In one example, the maximum number of merge candidates for the MHP merge candidate list is signaled as the difference between the maximum number of conventional merge candidates. For example, the syntax may be defined as max_num_merge_cand_minus_max_num_mhp_cand. The video encoder 200 may set max_num_merge_cand_minus_max_num_mhp_cand equal to the maximum number of conventional merge candidates minus the maximum number of MHP merge candidates. Thus, the maximum number of MHP merge candidates may be less than or equal to the maximum number of conventional merge candidates. The video decoder 300 may parse max_num_merge_cand_minus_max_num_mhp_cand after decoding the maximum number of conventional merge candidates, and set the maximum number of MHP merge candidates equal to the maximum number of conventional merge candidates plus max_num_merge_cand_minus_max_num_mhp_cand. If the maximum number of MHP merge candidates is less than 1, the MHP merge mode may be disabled and the merge flag for the additional hypothesis is not signaled, and the video decoder 300 may infer that the merge flag for the additional hypothesis is false at the block level.
[0149] In another example, the video encoder 200 may signal the maximum number of merge candidates for the MHP merge candidate list independently of the maximum number of conventional merge candidates. The maximum number of merge candidates for the MHP merge candidate list may be in a range from 0 to a predefined integer (e.g., 5). Then, if the value of the maximum number of merge candidates for the MHP merge candidate list is 0, the merge mode for the additional hypothesis may be disabled, and the video encoder 200 does not signal the merge flag, and the video decoder 300 infers that the merge flag is false at the block level.
[0150] In the second technique, the maximum number of MHP merge candidates is set equal to the maximum number of candidates for the geometric partitioning mode. Therefore, with this technique, the video encoder 200 does not separately signal the maximum number of MHP merge candidates in the high-level syntax. The video decoder 300 may first decode the enable flag and the maximum number of candidates for the geometric partitioning mode. If the geometric partitioning mode is not enabled, the video encoder 200 may not signal the merge flag for the additional hypothesis, and the video decoder 300 may infer that the merge is false at the block level.
[0151] In the third technique, the maximum number of merge candidates for the candidate list of the additional hypothesis in the MHP may be fixed to a predefined value and not signaled in the bitstream. For example, the maximum number is 1, such as only one candidate. In this example, the video encoder 200 may not signal the merge index of the additional hypothesis, and the video decoder 300 may infer the merge index to be 0 (e.g., the first and only candidate).
[0152] Figure 5 2 is a flow chart illustrating an example MHP technique according to one or more aspects of the present disclosure. Video encoder 200 or video decoder 300 may determine that multi-hypothesis prediction (MHP) is enabled (340). For example, video encoder 200 may enable MHP based on determining that use of MHP provides the best candidate motion prediction (e.g., the lowest difference metric between a reference block and a current block), signal a syntax element indicating that MHP is enabled, and video decoder 300 may parse the syntax element to determine that MHP is enabled.
[0153] Based on determining that MHP is enabled, the video encoder 200 or the video decoder 300 may determine a maximum number of merge candidates for the MHP merge candidate list (342). For example, the maximum number of merge candidates for the MHP merge candidate list may be signaled in a high-level syntax (such as an SPS), may be signaled in the form of a difference, may be set to be the same as the maximum number of candidates for a geometric partitioning mode, or may be fixed. In examples where the maximum number of merge candidates for the MHP merge candidate list is not fixed or is not the same as the maximum number of candidates for a geometric partitioning mode, the video encoder 200 may determine the maximum number of merge candidates for the MHP merge candidate list by, for example, determining a specific maximum number of merge candidates for the MHP merge candidate list to provide a minimum difference metric between a reference block and a current block. In examples where the maximum number of merge candidates for the MHP merge candidate list is not fixed, the video decoder 300 may, for example, parse a syntax element indicating the maximum number of merge candidates for the MHP merge candidate list to determine the maximum number of merge candidates for the MHP merge candidate list.
[0154] Based on the maximum number of merge candidates of the MHP merge candidate list, video encoder 200 or video decoder 300 may determine the MHP merge candidate list (344). For example, video encoder 200 or video decoder 300 may construct the MHP merge candidate list to include a number of candidates not exceeding the maximum number of merge candidates.
[0155] The video encoder 200 or the video decoder 300 may decode the video data based on the MHP merge candidate list (346). For example, the video encoder 200 may encode the video data using one or more candidates of the MHP merge candidate list, or the video decoder 300 may decode the video data using one or more candidates of the MHP merge candidate list.
[0156] In some examples, as part of determining the maximum number of merge candidates for the MHP merge candidate list, the video decoder 300 may parse a syntax element received in a high-level syntax that indicates the maximum number of merge candidates for the MHP merge candidate list. In some examples, the high-level syntax includes a sequence parameter set. In some examples, the syntax element indicates a difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list. In some examples, the maximum number of merge candidates for the MHP merge candidate list is less than the maximum number of regular merge candidates for the regular merge candidate list.
[0157] In some examples, as part of determining the maximum number of merge candidates for the MHP merge candidate list, the video encoder 200 or the video decoder 300 may determine the maximum number of regular merge candidates for the regular merge candidate list. The video encoder 200 or the video decoder 300 may parse the syntax element to determine the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list. The video encoder 200 or the video decoder 300 may add the maximum number of regular merge candidates for the regular merge candidate list to the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0158] In some examples, the value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list.
[0159] In some examples, the maximum number of merge candidates of the MHP merge candidate list is constrained to be in the range of 0 to a predefined integer. In some examples, the predefined integer is 5.
[0160] In some examples, as part of determining the maximum number of merge candidates for the MHP merge candidate, the video encoder 200 or the video decoder 300 may determine the maximum number of candidates for the geometric partitioning mode candidate list. The video encoder 200 or the video decoder 300 may determine the maximum number of merge candidates for the MHP merge candidate list to be equal to the maximum number of candidates for the geometric partitioning mode candidate list.
[0161] In some examples, the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in a memory. In some examples, the predefined number is 1.
[0162] In some examples, the device (e.g., target device 116) includes a display (e.g., display device 118) configured to display decoded video data. In some examples, the device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0163] Figure 6 2 is a flowchart illustrating an example method for encoding a current block according to the technology of the present disclosure. The current block may include a current CU. Although relative to the video encoder 200 ( Figure 1 and Figure 2 ), but it should be understood that other devices may be configured to perform the same Figure 6 A similar approach to the one used in this paper.
[0164] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. Then, the video encoder 200 may calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the unencoded original block and the prediction block for the current block. Then, the video encoder 200 may transform the residual block and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may use CAVLC or CABAC to encode the transform coefficients. Then, the video encoder 200 may output entropy encoded data for the block (360).
[0165] Figure 7 1 is a flowchart illustrating an example method for decoding a current block of video data according to the techniques of the present disclosure. The current block may include a current CU. Although relative to the video decoder 300 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform the same Figure 7 A similar approach to the one used in this paper.
[0166] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data for transform coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra prediction mode or an inter prediction mode as indicated by the prediction information of the current block, to calculate a prediction block for the current block. The video decoder 300 may then inverse scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize the transform coefficients and apply an inverse transform to the transform coefficients to generate a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction block and the residual block (380).
[0167] This disclosure includes the following non-limiting terms.
[0168] Clause 1A. A method for decoding video data, the method comprising: determining that multiple hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determining a maximum number of merge candidates for an MHP merge candidate list; determining the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and decoding the video data based on the MHP merge candidate list.
[0169] Clause 2A. The method of clause 1A, wherein a syntax element indicating the maximum number of merge candidates for the MHP merge candidate list is signaled in a high-level syntax.
[0170] Clause 3A. The method of clause 2A, wherein the high-level syntax comprises a sequence parameter set.
[0171] Clause 4A. The method of any of clauses 2A to 3A, wherein the syntax element indicates a difference between a maximum number of regular merge candidates for a regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0172] Clause 5A. The method of clause 4A, wherein the maximum number of merge candidates of the MHP merge candidate list is less than the maximum number of regular merge candidates of the regular merge candidate list.
[0173] Clause 6A. A method according to any one of clauses 4A to 5A, wherein determining the maximum number of merge candidates for the MHP merge candidate list comprises: determining the maximum number of regular merge candidates for the regular merge candidate list; parsing the grammatical elements to determine the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list; and adding the maximum number of regular merge candidates for the regular merge candidate list to the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0174] Clause 7A. The method of any of clauses 2A to 3A, wherein the value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list.
[0175] Clause 8A. The method of any of clauses 1A to 7A, wherein the maximum number of merge candidates of the MHP merge candidate list is constrained to be in the range of 0 to a predefined integer.
[0176] Clause 9A. The method of clause 8A, wherein the predefined integer is 5.
[0177] Clause 10A. A method according to Clause 1A, wherein determining the maximum number of merge candidates of the MHP merge candidate list includes: determining the maximum number of candidates of the geometric partitioning mode candidate list; and determining the maximum number of merge candidates of the MHP merge candidate list to be equal to the maximum number of candidates of the geometric partitioning mode candidate list.
[0178] Clause 11A. The method of Clause 1A, wherein the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in memory.
[0179] Clause 12A. The method of Clause 11A, wherein the predefined number is 1.
[0180] Clause 13A. The method of any of clauses 1A to 12A, wherein encoding comprises decoding.
[0181] Clause 14A. The method of any of clauses 1A to 13A, wherein decoding comprises encoding.
[0182] Clause 15A. An apparatus for decoding video data, the apparatus comprising one or more means for performing the method of any of Clauses 1A to 14A.
[0183] Clause 16A. The apparatus of Clause 15A, wherein the one or more components include one or more processors implemented in circuitry.
[0184] Clause 17A. The apparatus of clause 15A or 16A, further comprising a memory for storing the video data.
[0185] Clause 18A. The apparatus of any of Clauses 15A to 17A, further comprising a display configured to display the decoded video data.
[0186] Clause 19A. The device of any of clauses 15A to 18A, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0187] Clause 20A. The apparatus of any of clauses 15A to 19A, wherein the apparatus comprises a video decoder.
[0188] Clause 21A. The apparatus of any of clauses 15A to 20A, wherein the apparatus comprises a video encoder.
[0189] Clause 22A. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any of clauses 1A to 14A.
[0190] Clause 1B. A method for decoding video data, the method comprising: determining that multiple hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determining a maximum number of merge candidates for an MHP merge candidate list; determining the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and decoding the video data based on the MHP merge candidate list.
[0191] Clause 2B. The method of clause 1B, wherein coding comprises decoding, and wherein determining the maximum number of merge candidates for the MHP merge candidate list comprises parsing a syntax element received in a high-level syntax, the syntax element indicating the maximum number of merge candidates for the MHP merge candidate list.
[0192] Clause 3B. The method of clause 2B, wherein the high-level syntax comprises a sequence parameter set.
[0193] Clause 4B. The method of clause 2B or clause 3B, wherein the syntax element indicates a difference between a maximum number of regular merge candidates for a regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0194] Clause 5B. The method of clause 4B, wherein the maximum number of merge candidates of the MHP merge candidate list is less than the maximum number of regular merge candidates of the regular merge candidate list.
[0195] Clause 6B. A method according to clause 4B or clause 5B, wherein determining the maximum number of merge candidates for the MHP merge candidate list includes: determining the maximum number of regular merge candidates for the regular merge candidate list; parsing the syntax elements to determine the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list; and adding the maximum number of regular merge candidates for the regular merge candidate list to the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0196] Clause 7B. The method of clause 2B or clause 3B, wherein the value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list.
[0197] Clause 8B. The method of any of clauses 1B to 7B, wherein the maximum number of merge candidates of the MHP merge candidate list is constrained to be in the range of 0 to a predefined integer.
[0198] Clause 9B. The method of clause 8B, wherein the predefined integer is 5.
[0199] Clause 10B. A method according to Clause 1B, wherein determining the maximum number of merge candidates of the MHP merge candidate list includes: determining the maximum number of candidates of the geometric partitioning mode candidate list; and determining the maximum number of merge candidates of the MHP merge candidate list to be equal to the maximum number of candidates of the geometric partitioning mode candidate list.
[0200] Clause 11B. The method of clause 1B, wherein the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in memory.
[0201] Clause 12B. The method of clause 11B, wherein the predefined number is 1.
[0202] Item 13B. 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 and communicatively coupled to the memory, the one or more processors configured to: determine that multiple hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determine the MHP merge candidate list; and decode the video data based on the MHP merge candidate list.
[0203] Clause 14B. A device according to clause 13B, wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to parse a syntax element received in a high-level grammar, the syntax element indicating the maximum number of merge candidates for the MHP merge candidate list.
[0204] Clause 15B. The apparatus of clause 14B, wherein the high-level syntax comprises a sequence parameter set.
[0205] Clause 16B. The apparatus of clause 14B or clause 15B, wherein the syntax element indicates a difference between a maximum number of regular merge candidates for a regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0206] Clause 17B. The apparatus of clause 16B, wherein the maximum number of merge candidates of the MHP merge candidate list is less than the maximum number of regular merge candidates of the regular merge candidate list.
[0207] Clause 18B. An apparatus according to clause 16B or clause 17B, wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to: determine the maximum number of regular merge candidates for the regular merge candidate list; parse the syntax elements to determine the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list; and add the maximum number of regular merge candidates for the regular merge candidate list to the difference between the maximum number of regular merge candidates for the regular merge candidate list and the maximum number of merge candidates for the MHP merge candidate list.
[0208] Clause 19B. The apparatus of clause 14B or clause 15B, wherein the value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list.
[0209] Clause 20B. The apparatus of any of clauses 13B to 19B, wherein the maximum number of merge candidates of the MHP merge candidate list is constrained to be in the range of 0 to a predefined integer.
[0210] Clause 21B. The apparatus of clause 20B, wherein the predefined integer is 5.
[0211] Clause 22B. A device according to clause 13B, wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to: determine the maximum number of candidates for the geometric partitioning pattern candidate list; and determine the maximum number of merge candidates for the MHP merge candidate list to be equal to the maximum number of candidates for the geometric partitioning pattern candidate list.
[0212] Clause 23B. The apparatus of Clause 13B, wherein the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in memory.
[0213] Clause 24B. The apparatus of clause 23B, wherein the predefined number is one.
[0214] Clause 25B. The apparatus of any of Clauses 13B to 24B, further comprising a display configured to display the decoded video data.
[0215] Clause 26B. The device of any of clauses 13B to 25B, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0216] Item 27B. A non-transitory computer-readable storage medium having instructions stored thereon, which, when executed, cause one or more processors to: determine that multiple hypothesis prediction (MHP) is enabled; based on determining that MHP is enabled, determine a maximum number of merge candidates for an MHP merge candidate list; based on the maximum number of merge candidates for the MHP merge candidate list, determine the MHP merge candidate list; and decode video data based on the MHP merge candidate list.
[0217] Clause 28B. A device for decoding video data, the device comprising: a component for determining that multiple hypothesis prediction (MHP) is enabled; a component for determining a maximum number of merge candidates for an MHP merge candidate list based on determining that MHP is enabled; a component for determining the MHP merge candidate list based on the maximum number of merge candidates for the MHP merge candidate list; and a component for decoding the video data based on the MHP merge candidate list.
[0218] It should be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all actions or events described are necessary to implement the technique). In addition, in some examples, actions or events may be performed concurrently (e.g., by multithreading, interrupt handling, or multiple processors) rather than sequentially.
[0219] In one or more examples, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality may be stored as one or more instructions or codes on a computer-readable medium or sent via a computer-readable medium and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium (which corresponds to a tangible medium such as a data storage medium) or a communication medium, which includes, for example, any medium that facilitates the transmission of a computer program from one place to another according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a non-transient tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0220] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other transient media, but are instead directed to non-transient tangible storage media. As used herein, disks and optical disks include compact discs (CDs), laser optical disks, optical optical disks, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0221] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, these techniques may be fully implemented in one or more circuits or logic elements.
[0222] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or the various units may be provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0223] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: Make sure that Multiple Hypothesis Prediction (MHP) is enabled; Based on determining that the MHP is enabled, determining a maximum number of merge candidates for the MHP merge candidate list; Determining the MHP merge candidate list based on the maximum number of merge candidates of the MHP merge candidate list; as well as The video data is coded based on the MHP merge candidate list.
2. The method of claim 1 , wherein coding comprises decoding, and wherein determining the maximum number of merge candidates for the MHP merge candidate list comprises parsing a syntax element received in a high-level syntax, the syntax element indicating the maximum number of merge candidates for the MHP merge candidate list. The method of claim 2 , wherein the high-level syntax comprises a sequence parameter set. 4 . The method of claim 2 , wherein the syntax element indicates a difference between a maximum number of regular merge candidates of a regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list. 5 . The method of claim 4 , wherein the maximum number of merge candidates of the MHP merge candidate list is smaller than the maximum number of regular merge candidates of the regular merge candidate list.
6. The method of claim 4, wherein determining the maximum number of merge candidates of the MHP merge candidate list comprises: determining the maximum number of regular merge candidates of the regular merge candidate list; parsing the syntax element to determine the difference between a maximum number of regular merge candidates of a regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list; as well as The maximum number of regular merge candidates of the regular merge candidate list is added to the difference between the maximum number of regular merge candidates of the regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list. 7 . The method of claim 2 , wherein the value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list. 8 . The method of claim 1 , wherein the maximum number of merge candidates of the MHP merge candidate list is constrained to be within a range from 0 to a predefined integer.
9. The method of claim 8, wherein the predefined integer is 5.
10. The method of claim 1, wherein determining the maximum number of merge candidates of the MHP merge candidate list comprises: Determining a maximum number of candidates for a geometric partitioning pattern candidate list; as well as The maximum number of merge candidates of the MHP merge candidate list is determined to be equal to the maximum number of candidates of the geometric partition mode candidate list. 11 . The method of claim 1 , wherein the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in a memory. The method according to claim 11 , wherein the predefined number is 1.
13. A device for decoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in circuitry and communicatively coupled to the memory, the one or more processors configured to: Make sure that Multiple Hypothesis Prediction (MHP) is enabled; Based on determining that the MHP is enabled, determining a maximum number of merge candidates for the MHP merge candidate list; Determining the MHP merge candidate list based on the maximum number of merge candidates of the MHP merge candidate list; as well as The video data is coded based on the MHP merge candidate list.
14. The apparatus of claim 13, wherein decoding comprises decoding, and wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to parse syntax elements received in a high-level grammar, the syntax elements indicating the maximum number of merge candidates for the MHP merge candidate list.
15. The apparatus of claim 14, wherein the high-level syntax comprises a sequence parameter set. 16 . The apparatus of claim 14 , wherein the syntax element indicates a difference between a maximum number of regular merge candidates of a regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list. 17 . The apparatus of claim 16 , wherein the maximum number of merge candidates of the MHP merge candidate list is smaller than the maximum number of regular merge candidates of the regular merge candidate list.
18. The apparatus of claim 16, wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to: determining the maximum number of regular merge candidates of the regular merge candidate list; parsing the syntax element to determine the difference between a maximum number of regular merge candidates of a regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list; as well as The maximum number of regular merge candidates of the regular merge candidate list is added to the difference between the maximum number of regular merge candidates of the regular merge candidate list and the maximum number of merge candidates of the MHP merge candidate list.
19. The apparatus of claim 14, wherein a value of the syntax element is equal to the maximum number of merge candidates of the MHP merge candidate list.
20. The apparatus of claim 13, wherein the maximum number of merge candidates of the MHP merge candidate list is constrained to be within a range of 0 to a predefined integer.
21. The apparatus of claim 20, wherein the predefined integer is 5.
22. The apparatus of claim 13, wherein as part of determining the maximum number of merge candidates for the MHP merge candidate list, the one or more processors are configured to: determining said maximum number of candidates for the geometric partitioning pattern candidate list; and The maximum number of merge candidates of the MHP merge candidate list is determined to be equal to the maximum number of candidates of the geometric partition mode candidate list.
23. The apparatus of claim 13, wherein the maximum number of merge candidates of the MHP merge candidate list comprises a predefined number stored in a memory.
24. The apparatus of claim 23, wherein the predefined number is 1.
25. The device of claim 13, further comprising a display configured to display the decoded video data.
26. The device of claim 13, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
27. A non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: Make sure that Multiple Hypothesis Prediction (MHP) is enabled; Based on determining that the MHP is enabled, determining a maximum number of merge candidates for the MHP merge candidate list; Determining the MHP merge candidate list based on the maximum number of merge candidates of the MHP merge candidate list; as well as Video data is coded based on the MHP merge candidate list.
28. A device for decoding video data, the device comprising: A component used to determine whether the multiple hypothesis prediction (MHP) is enabled; means for determining a maximum number of merge candidates for an MHP merge candidate list based on determining that MHP is enabled; means for determining the MHP merge candidate list based on the maximum number of merge candidates of the MHP merge candidate list; and Means for coding the video data based on the MHP merge candidate list.
