Simplification of history-based motion vector prediction
By constructing a history-based motion vector prediction candidate history table and optimizing the comparison operation, the efficiency problem caused by repeated entries in the motion vector predictor list in video encoding and decoding is solved, and the efficiency of encoding and decoding is improved.
Patent Information
- Application Number
- CN201980076686.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-26
- Filing Date
- 2019-11-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-11-27
AI Technical Summary
In existing video encoding and decoding technology, duplicate entries exist in the motion vector predictor list, resulting in too many comparison operations, reducing encoding or decoding efficiency, and possibly causing a negative impact on encoding and decoding efficiency.
By constructing a history-based motion vector prediction (HMVP) candidate history table, only comparing HMVP candidates with a subset of the motion vector predictor list, reducing the number of comparison operations and avoiding redundant checks while meeting efficiency requirements, Optimize construction of motion vector predictor lists.
It effectively reduces the time required to build a motion vector predictor list, reduces the time overhead of encoding or decoding, and avoids potential encoding and decoding efficiency losses caused by duplicate entries.
Smart Images

Figure CN113170180B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Application No. 16 / 696,008, filed on November 26, 2019, which claims the benefit of U.S. Provisional Application No. 62 / 771,981, filed on November 27, 2018, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to video encoding and video decoding. Background Art
[0004] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, digital gaming devices, 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 (coding) technology, 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 Codec (AVC), High Efficiency Video Codec (HEVC) standards, ITU-T H.265 / High Efficiency Video Codec (HEVC) and extensions of such standards. By implementing such video coding technology, video devices can more efficiently send, receive, encode, decode and / or store digital video information.
[0005] 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) can be divided into video blocks, which can also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-frame coding (I) slice of a picture are encoded using spatial predictions relative to reference samples in adjacent blocks in the same picture. Video blocks in an inter-frame coding (P or B) slice of a picture can use spatial predictions relative to reference samples in adjacent blocks in the same picture, or temporal predictions relative to reference samples in other reference pictures. Pictures can be referred to as frames, and reference pictures can be referred to as reference frames. Summary of the invention
[0006] In general, the present disclosure describes techniques for inter-frame prediction and motion vector reconstruction in video codecs. More specifically, the present disclosure describes techniques for constructing an inter-frame prediction motion vector candidate list (also referred to as a motion vector predictor list) based on history-based motion vector prediction (history-based motion vector prediction, HMVP). As described in more detail, a video codec (e.g., a video encoder or a video decoder) may be configured to perform a simplified pruning operation. In the present disclosure, a pruning operation generally refers to an operation for determining whether to add an HMVP candidate from an HMVP candidate history table to a motion vector predictor list. In some cases, a pruning operation may refer to removing an HMVP candidate from a motion vector prediction list. As an example of a simplified pruning operation, a video codec may compare a subset of HMVP candidates in an HMVP candidate history table with only a subset of entries in a motion vector predictor list to determine whether the subset of the HMVP candidate is the same or different from the subset of entries in the motion vector predictor list.
[0007] The video codec may add one or more HMVP candidates in the subset of HMVP candidates to the motion vector predictor list only if the one or more HMVP candidates in the subset of HMVP candidates are different from the subset of entries in the motion vector predictor list. In this way, the video codec can limit the number of comparison operations required to determine which HMVP candidates are to be added to the motion vector predictor list. Limiting the number of comparison operations can reduce the amount of time required to construct the motion vector predictor list, thereby reducing the amount of time required to encode or decode video data, and improving the overall operation of the video codec.
[0008] In one example, the present disclosure describes a method for encoding and decoding video data, the method comprising: constructing a history-based motion vector prediction (HMVP) candidate history table, which includes motion vector information of previously encoded and decoded blocks extending beyond adjacent neighboring blocks of a current block of video data; constructing a motion vector predictor list; adding one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein adding one or more HMVP candidates from the HMVP candidate history table comprises: comparing a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list; and when the first HMVP candidate is different from both entries in the motion vector predictor list, adding the first HMVP candidate to the motion vector predictor list; and encoding and decoding the current block of video data using the motion vector predictor list.
[0009] In one example, the present disclosure describes a device for encoding and decoding video data, the device including a memory configured to store a history-based motion vector prediction (HMVP) candidate history table and a motion vector predictor list, the HMVP candidate history table including motion vector information of previously encoded blocks extending beyond adjacent neighboring blocks of a current block of video data. The device includes a processing circuit configured to: construct an HMVP candidate history table for storage in the memory, construct a motion vector predictor list for storage in the memory, add one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein in order to add one or more HMVP candidates from the HMVP candidate history table, the processing circuit is configured to: compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list, but not with other entries in the motion vector predictor list; and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list; and encode and decode the current block of video data using the motion vector predictor list stored in the memory.
[0010] In one example, the present disclosure describes a non-transitory computer-readable storage medium having instructions stored thereon, which, when executed, cause one or more processors to: construct a history-based motion vector prediction (HMVP) candidate history table that includes motion vector information of previously encoded and decoded blocks extending beyond adjacent neighboring blocks of a current block of video data; construct a motion vector predictor list; add one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein the instructions that cause the one or more processors to add the one or more HMVP candidates from the HMVP candidate history table include instructions that cause the one or more processors to perform the following operations: compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list; and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list; and encode and decode the current block of video data using the motion vector predictor 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, drawings, and 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 4A is a conceptual diagram showing spatial neighbor candidates for merge mode.
[0016] Figure 4B is a conceptual diagram illustrating spatial neighboring candidates for an advanced motion vector prediction (AMVP) mode.
[0017] Figure 5 is a conceptual diagram illustrating temporal motion vector predictor (TMVP) candidates and motion vector scaling.
[0018] Figure 6 is a conceptual diagram showing how to obtain non-adjacent spatial merging candidates.
[0019] Figure 7 is a flow chart illustrating an example encoding method.
[0020] Figure 8 is a flow chart illustrating an example decoding method.
[0021] Fig. 9 is a flow chart illustrating an example encoding and decoding method. DETAILED DESCRIPTION
[0022] Video codecs (e.g., video encoding or video decoding) include inter-frame prediction or intrablock copy (IBC). In both inter-frame prediction and IBC, the video encoder determines a prediction block based on a motion vector (for IBC, the motion vector may be a block vector) for a current block, determines residual information (e.g., difference) between the prediction block and the current block, and signals the residual information. The video decoder receives the residual information. In addition, the video decoder determines a motion vector for the current block, and determines a prediction block based on the motion vector. The video decoder adds the residual information to the prediction block to reconstruct the current block.
[0023] One way that a video decoder determines a motion vector for a current block is based on a motion vector predictor list. Both the video encoder and the video decoder utilize similar processes to construct corresponding motion vector predictor lists, such that the motion vector predictor list constructed by the video encoder and the motion vector predictor list constructed by the video decoder are identical. The motion vector predictor list includes motion vector information of previously coded blocks, such as spatially adjacent blocks (e.g., blocks adjacent to the current block in the same picture of the current block) and collocated blocks (e.g., blocks located at specific positions in other pictures).
[0024] The video encoder determines an entry of a motion vector predictor list and signals information indicating the entry. The video decoder determines motion vector information from the motion vector predictor list based on the entry, and determines a motion vector of the current block based on the determined motion vector information. As an example, the video decoder may set the motion vector of the current block equal to the determined motion vector information (e.g., such as in merge mode). As another example, the video decoder may add a motion vector difference (MVD) signaled by the video encoder to the determined motion vector information to determine the motion vector of the current block (e.g., such as in advanced motion vector prediction (AMVP) mode).
[0025] In addition to spatially adjacent blocks or juxtaposed blocks, the video encoder and video decoder can use history-based motion vector prediction (HMVP) candidates to build a motion vector predictor list. The HMVP candidate can be used as part of the HMVP prediction, where the video encoder and video decoder build an HMVP candidate history table including the HMVP candidate. The HMVP candidate may include motion vector information of a previously coded block that is more extended than the spatially adjacent block (e.g., farther away from the current block than the spatially adjacent block).
[0026] In some techniques, a video encoder and a video decoder add an HMVP candidate from an HMVP candidate history table to a motion vector predictor list. However, adding an HMVP candidate to a motion vector predictor list may result in duplicate entries in the motion vector predictor list. As an example, for spatially adjacent blocks, the motion vector information of an HMVP candidate may be the same as the motion vector information already in the motion vector predictor list. Therefore, in some examples, a video encoder and a video decoder perform a pruning operation in which an HMVP candidate is added only if the HMVP candidate is different from an entry already in the motion vector predictor list. For example, a video encoder and a video decoder compare an HMVP candidate with an entry in a motion vector predictor list and only add HMVP candidates that are different from the entries in the motion vector predictor list.
[0027] There may be some technical problems in this pruning operation. For example, comparing each HMVP candidate with each entry in the motion vector predictor list may require many comparison operations, which may reduce the speed of the codec process. However, having duplicate candidates in the motion vector predictor list can also affect the codec efficiency. The maximum size of the motion vector predictor list can be fixed. Therefore, if the motion vector predictor list includes duplicate entries and the motion vector predictor list is full (for example, the number of entries is equal to the maximum size), there is a possibility of missing potential entries that can provide better codec efficiency and presenting duplicates of the same entry, which may have a negative impact on the codec gain.
[0028] This disclosure describes example techniques for constructing a motion vector predictor list using HMVP candidates in a manner that balances the gain of reducing comparison operations with the cost of having duplicate entries in the motion vector predictor list. There may be a subset of HMVP candidates and a subset of entries in the motion vector predictor list that have a higher probability of being duplicated than the remaining HMVP candidates and the remaining entries in the motion vector predictor list.
[0029] In one or more examples described in the present disclosure, the video encoder and the video decoder may compare a subset of HMVP candidates with a subset of entries in a motion vector predictor list to determine whether to add an HMVP candidate in the subset of HMVP candidates. For the remaining HMVP candidates, the video encoder and the video decoder may not compare the HMVP candidate with any entry in the motion vector predictor list.
[0030] As an example, an entry in the motion vector predictor list may include motion vector information of a left neighboring block of the current block. The first HMVP candidate may include motion vector information of a first block adjacent to the left neighboring block on the left, and the second HMVP candidate may include motion vector information of a second block adjacent to the first block on the left.
[0031] In this example, the possibility that the motion information of the first block (e.g., the first HMVP candidate) is the same as the motion information of the left neighboring block is higher than the possibility that the motion information of the second block (e.g., the second HMVP candidate) is the same as the motion information of the left neighboring block. In addition, the possibility that the first HMVP candidate is the same as some other entries in the motion vector predictor list may be relatively small because the other entries in the motion vector predictor list may not be adjacent to or relatively close to the first HMVP.
[0032] The first HMVP candidate has a higher probability of having the same motion vector information as the left neighboring block, which may be due to the proximity of the first block to the left neighboring block. Generally speaking, the probability of the same motion vector information of closer blocks is higher than that of the same motion vector information of farther blocks.
[0033] In some examples, the video encoder and video decoder may compare the first HMVP candidate with entries in a motion vector predictor list to obtain motion vector information for a left-neighboring block, and may compare with a limited number of more entries in the motion vector predictor list (e.g., one more entry), but may not compare the first HMVP candidate with any remaining entries in the motion vector predictor list. If the first HMVP candidate is different from an entry in a subset of the motion vector predictor list, the video encoder and video decoder may add the first HMVP candidate in the motion vector predictor list. If the first HMVP candidate is the same as any entry in the subset of the motion vector predictor list, the video encoder and video decoder may not add the first HMVP candidate to the motion vector predictor list.
[0034] In this way, the number of comparison operations is reduced (for example, the video encoder and the video decoder may compare the first HMVP candidate with only a subset of the entries in the motion vector predictor list). In some examples, there may be duplicate entries in the motion vector predictor list. As an example, there is a possibility that one of the entries in the motion vector predictor list that is not compared with the first HMVP candidate has the same motion vector information as the first HMVP candidate. In this case, there may be duplicate motion vector information in the motion vector predictor list. However, in some examples, the entries in the motion vector predictor list that are not compared with the first HMVP candidate may be for blocks that are relatively far away from the first HMVP candidate. Therefore, the possibility that the first HMVP candidate is the same as any remaining entry in the motion vector predictor list (not compared with the first HMVP candidate) may be relatively low.
[0035] Thus, the number of operations performed for pruning can be reduced while maintaining a low probability of duplicate motion vector information. For example, as part of a pruning operation of a motion vector predictor list, a video encoder and a video decoder can compare a first HMVP candidate in an HMVP candidate history table with two entries in a motion vector predictor list, but not with other entries in the motion vector predictor list, and add the first HMVP candidate to the motion vector predictor list when the first HMVP candidate is not in both entries in the motion vector predictor list. In this example, although the first HMVP candidate is not compared with the remaining entries in the motion vector predictor list, the probability that one of the remaining entries in the motion vector predictor list is a duplicate of the first HMVP candidate is low because the block targeted by the first HMVP candidate is not close to the blocks whose motion vector information is used to construct the remaining entries in the motion vector predictor list.
[0036] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to encoding and decoding (encoding and / or decoding) video data. In general, video data includes any data used to process video. Therefore, video data can include original unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (such as signaling data).
[0037] like Figure 1As shown, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. In particular, source device 102 provides the video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as smart phones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.
[0038] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination 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 destination device 116 can be configured to apply technology for motion vector prediction based on history. Therefore, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination 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, destination device 116 may be connected to an external display device interface instead of including an integrated display device.
[0039] like Figure 1 The system 100 shown in is only an example. In general, any digital video encoding and / or decoding device can perform techniques for historical-based motion vector prediction. The source device 102 and the destination device 116 are only examples of such codec devices, wherein the source device 102 generates codec video data for transmission to the destination device 116. The present disclosure refers to a "codec" device as a device that performs the codec (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, examples of video encoders and video decoders, respectively. In some examples, the devices 102 and 116 can operate in a substantially symmetrical manner so that each of the devices 102 and 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the devices 102 and 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0040] Generally speaking, video source 104 represents the source of video data (i.e., original uncoded video data) and provides a continuous series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive including previously captured original video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live 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 a received order (sometimes referred to as "display order") into a codec order for encoding and 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 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .
[0041] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store raw video data, for example, raw video data from the video source 104 and raw decoded video data from the video decoder 300. In addition or alternatively, the memories 106, 120 can store software instructions executable by the video encoder 200 and the video decoder 300, respectively. Although the video encoder 200 and the video decoder 300 are shown separately in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. Further, the memories 106, 120 can store, for example, encoded video data 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 raw, decoded and / or encoded video data.
[0042] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to transmit the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may modulate 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 part of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.
[0043] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Examples of 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.
[0044] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device that may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device capable of storing the encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 via any standard data connection including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, a cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming protocol, a download transmission protocol, or a combination thereof.
[0045] 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 communicate data, such as encoded video data, in accordance with cellular communication standards 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 communicate data, such as encoded video data, in accordance with cellular communication standards such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ),Bluetooth TM The source device 102 and / or the destination device 116 may include a corresponding system-on-a-chip (SoC) device. For example, the source device 102 may include a SoC device for performing the functionality attributed to the video encoder 200 and / or the output interface 108, while the destination device 116 may include a SoC device for performing the functionality attributed to the video decoder 300 and / or the input interface 122.
[0046] The techniques of the present disclosure may be applied to support video encoding and decoding in 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.
[0047] The input interface 122 of the destination device 116 receives an encoded video bitstream from the computer-readable medium 110 (e.g., the storage device 112, the file server 114, etc.). The encoded video bitstream in the computer-readable medium 110 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 codec units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0048] although Figure 1 200 and 300 may be integrated with an audio encoder and / or an audio decoder, and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols, such as the user datagram protocol (UDP).
[0049] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuit systems, such as one or more microprocessors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA), discrete logic, software, hardware, firmware or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-temporary 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 the 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.
[0050] Video codec standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual and ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multi-view Video Coding (MVC) extensions.
[0051] High Efficiency Video Codec (HEVC) or ITU-T H.265 (G. J. Sullivan, J.-R. Ohm, W.-J. Han, T. Wiegand "Overview of the High Efficiency Video Coding (HEVC) Standard," IEEE Transactions on Circuits and Systems for Video Technology, Vol. 22, No. 12, pp. 1649-1668, December 2012), including its range extension, multi-view extension (MV-HEVC) and scalable extension (SHVC), has been developed by the Joint Collaborative Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG), and the Joint Collaborative Team on 3D Video Codec Extension Development (JCT-3V). The HEVC draft specification, hereinafter referred to as HEVC WD, is available at http: / / phenix.int-evry.fr / jct / doc_end_user / documents / 14_Vienna / wg11 / JCTVC-N1003-v1.zip. The latest version of the Final Draft HEVC International Standard (FDIS) is available at http: / / phenix.it-sudparis.eu / jct / doc_end_user / documents / 12_Geneva / wg11 / JCTVC-L1003-v34.zip.
[0052] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) are studying the potential need for standardization of future video codec technologies with compression capabilities that significantly exceed the current HEVC standard (including its current and near-term extensions for screen content codecs and high dynamic range codecs). The groups work together on this exploration in a joint collaborative activity called the Joint Video Exploration Team (JVET) to evaluate compression technology designs proposed by their experts in this field. The JVET met for the first time during October 19-21, 2015. A version of the reference software, the Joint Exploration Model 7 (JEM 7), can be downloaded from https: / / jvet.hhi.fraunhofer.de / svn / svn_HMJEMSoftware / tags / HM-16.6-JEM-7.2 / . The algorithm description of Joint Exploration Test Model 7 (JEM-7) is described here: J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce, “Algorithm Description of Joint Exploration Test Model 7”, JVET-G1001, July 2017.
[0053] The video encoder 200 and the video decoder 300 may operate according to a video codec standard such as ITU-T H.265, also known as High Efficiency Video Codec (HEVC) or an extension thereof, such as multi-view and / or scalable video codec extensions. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards such as the Joint Exploration Test Model (JEM) and / or the Versatile Video Codec (VCC). However, the technology of the present disclosure is not limited to any particular codec standard.
[0054] In general, the video encoder 200 and the video decoder 300 can perform block-based encoding and decoding of pictures. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of sampling points of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 can encode and decode video data represented in YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data of the sampling points of the picture, where the chrominance components may include red and blue chrominance components. In some examples, the video encoder 200 converts the received RGB format data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) can perform these conversions.
[0055] The present disclosure may generally relate to the encoding and decoding of pictures (e.g., encoding and decoding) to include the process of encoding or decoding picture data. Similarly, the present disclosure may relate to the encoding and decoding of blocks of pictures to include the process of encoding or decoding the data of the blocks, such as prediction and / or residual encoding and decoding. The encoded video bitstream generally includes syntax elements for representing codec decisions (e.g., codec modes) and a series of values for dividing the picture into blocks. Therefore, references to encoding and decoding a picture or a block should generally be understood as encoding and decoding the values of the syntax elements that form the picture or block.
[0056] HEVC defines various blocks, including codec units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video codec (such as video encoder 200) divides a codec tree unit (CTU) into CUs according to a quadtree structure. That is, the video codec divides the CTU and CU into four equal non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without a child node may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video codec may further divide PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the division of a TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.
[0057] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to the examples of JEM and / or VCC. According to JEM / VCC, a video codec (such as the video encoder 200) divides a picture into a plurality of codec tree units (CTUs). The video encoder 200 may divide the CTUs according to a tree structure such as a quadtree-binary tree (QTBT) structure. The example of the JEM / VCC of the QTBT structure removes the concept of multiple partition types, such as the distinction between CU, PU, and TU of HEVC. The example of the JEM / VCC of the QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the codec units (CUs).
[0058] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT 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 structures, such as one QTBT structure for the luma component and another QTBT structure for the two chroma components (or two QTBT structures for corresponding chroma components).
[0059] The video encoder 200 and the video decoder 300 can be configured to use quadtree partitioning according to HEVC, use QTBT partitioning according to the example of JEM / VVC, or use other partitioning structures. For the purpose of explanation, the description of the technology of the present disclosure is presented for QTBT partitioning. However, it should be understood that the technology of the present disclosure can also be applied to a video codec configured to use quadtree partitioning or other types of partitioning.
[0060] The present disclosure may use "N×N" and "N times N" interchangeably to refer to the sampling point dimensions of a block (such as a CU or other video block) in the vertical and horizontal dimensions, for example, 16×16 sampling points or 16 times 16 sampling points. In general, a 16×16 CU will have 16 sampling points in the vertical direction (y=16) and 16 sampling points in the horizontal direction (x=16). Similarly, an N×N CU typically has N sampling points in the vertical direction and N sampling points in the horizontal direction, where N represents a non-negative integer value. The sampling points in a CU can be arranged in rows and columns. In addition, a CU does not necessarily have the same number of sampling points in the horizontal direction as in the vertical direction. For example, a CU may include NxM sampling points, where M is not necessarily equal to N.
[0061] The video encoder 200 encodes the video data of the CU representing the prediction and / or residual information and other information. The prediction information indicates how the CU will be predicted to form the prediction block of the CU. The residual information generally represents the sample-by-sample difference between the sample points of the CU before encoding and the prediction block.
[0062] In order to predict a CU, the video encoder 200 can generally form a prediction block of the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU from previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of square differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to calculate a difference metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.
[0063] JEM or VCC also provides an affine motion compensation mode, which can be considered an inter-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.
[0064] In order to perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. JEM or VCC provides sixty-seven intra prediction modes, including modes of various directions as well as a plane mode and a DC mode. In general, the video encoder 200 selects an intra prediction mode that describes the neighboring sampling points of the current block (e.g., a block of a CU) to predict the prediction sampling points of the current block from it. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such sampling points can usually be above, on the left, or on the left of the current block in the same picture as the current block.
[0065] 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 can encode data representing which of the various available inter-frame prediction modes is used and the motion information of the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 can encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 can use a similar mode to encode the motion vector of the affine motion compensation mode.
[0066] After prediction (such as intra-frame prediction or inter-frame prediction of a block), the video encoder 200 can calculate residual data for the block. The residual data (such as a residual block) represents the sample-by-sample difference between the block and 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 generate transform data in a transform domain rather than a sample point domain. For example, the video encoder 200 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 can apply a secondary transform after a primary 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.
[0067] As described above, after performing any transforms to produce transform coefficients, the video encoder 200 can perform quantization on the transform coefficients. Quantization generally refers to the process of quantizing coefficients to possibly reduce the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 can round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 can perform a bitwise right shift on the value to be quantized.
[0068] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place coefficients with higher energy (and therefore lower frequency) in front of the vector and transform coefficients with lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode values for syntax elements, which describe metadata associated with the encoded video data used by the video decoder 300 in decoding the video data.
[0069] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. For example, the context may relate to whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0070] The video encoder 200 may further generate syntax data such as block-based syntax data, picture-based syntax data, and sequence-based syntax data to the video decoder 300, for example, in a picture header, a block header, a slice header, or generate other syntax data such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). The video decoder 300 may similarly decode such syntax data to determine how to decode the corresponding video data.
[0071] In this way, the video encoder 200 can generate a bitstream including encoded video data, such as syntax elements describing the partitioning of a picture into blocks (eg, 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.
[0072] In general, the video decoder 300 performs a process that is the reverse of that performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode values for syntax elements in the bitstream using CABAC in a manner that is substantially similar, though reverse, to the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of a picture into CTUs, and partitioning of each CTU according to a corresponding partitioning structure such as a QTBT structure to define CUs of the CTU. The syntax elements may further define prediction and residual information for a block (e.g., a CU) of video data.
[0073] 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 the residual block of the block. The video decoder 300 uses the signaled prediction mode (intra-frame 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 block boundaries.
[0074] As described above, in some examples, the video encoder 200 and the video decoder 300 may be configured to encode or decode the current block using inter-frame prediction. In inter-frame prediction, the video encoder 200 and the video decoder 300 determine a prediction block based on a motion vector of the current block. For example, for an intra-block copy (IBC) mode, the motion vector of the current block points to a prediction block in another picture or possibly in the same picture.
[0075] In some examples, instead of the video encoder 200 signaling the value of the motion vector of the current block, the video encoder 200 may signal information of a motion vector predictor that the video decoder 300 uses to determine the motion vector of the current block. For example, the video encoder 200 and the video decoder 300 may be configured to construct a motion vector predictor list that includes motion vector information of previously encoded or decoded blocks. The motion vector information of previously encoded or decoded blocks may be considered as a motion vector predictor. The video encoder 200 and the video decoder 300 may perform similar operations to construct a motion vector predictor list.
[0076] The video encoder 200 may signal information indicating an entry into a motion vector predictor list that identifies a particular motion vector predictor. The video decoder 300 may determine a motion vector predictor based on the entry into the motion vector predictor list. For merge mode, the video decoder 300 may set the motion vector predictor equal to the motion vector of the current block. For AMVP mode, the video decoder 300 may also receive a motion vector difference (MVD) between the motion vector predictor and the motion vector of the current block from the video encoder 200. The video decoder 300 may add the MVD to the motion vector predictor to determine the motion vector of the current block.
[0077] The motion vector predictor list may include motion vector information of spatially adjacent blocks (e.g., blocks adjacent to the current block and in the same picture as the current block) and motion vector information of collocated blocks (e.g., blocks located at a specific position in another picture) as motion vector predictors. The collocated blocks may be referred to as temporally adjacent blocks.
[0078] The video encoder 200 and the video decoder 300 may add the motion vector information of the spatially adjacent blocks and the collocated blocks in the motion vector candidate list to construct the motion vector candidate list. In one or more examples, the video encoder 200 and the video decoder 300 may be configured to further add a history-based motion vector prediction (HMVP) candidate from the HMVP candidate history table to the motion vector candidate list.
[0079] The HMVP candidate refers to the motion vector information of the block extending beyond the neighboring blocks of the current block. For example, the block adjacent to the current block and on the left side of the current block may be an example of a left neighboring block as a spatially adjacent block. The motion information of the left neighboring block may be included in the motion vector candidate list. The block adjacent to the left neighboring block is not a spatially adjacent block, and the motion information of such a block is an example of an HMVP candidate as part of the HMVP candidate history table.
[0080] This disclosure describes example techniques that the video encoder 200 and the video decoder 300 may perform to add HMVP candidates from an HMVP candidate history table to a motion vector predictor list. As an example, the HMVP candidate history table may be considered to include a first subset of HMVP candidates and a second subset of HMVP candidates. In one example, the first subset of HMVP candidates includes two (e.g., the first two) HMVP candidates from the HMVP candidate history table, and the second subset of HMVP candidates includes the remaining HMVP candidates in the HMVP candidate history table.
[0081] The video encoder 200 and the video decoder 300 may be configured to compare each HMVP candidate in the first subset of HMVP candidates with a subset (e.g., less than all entries) of entries in the motion vector candidate list. As an example, the video encoder 200 and the video decoder 300 may construct a motion vector candidate list based on motion vector information of spatially adjacent blocks and collocated blocks. The video encoder 200 and the video decoder 300 may compare each HMVP candidate in the first subset of HMVP candidates with two entries in the motion vector candidate list, and if the HMVP candidate is different from an entry in the motion vector candidate list, the HMVP candidate is added to the first subset of HMVP candidates.
[0082] For example, the first subset of HMVP candidates may include a first HMVP candidate and a second HMVP candidate. In this example, the video encoder 200 and the video decoder 300 may compare the first HMVP candidate with the first entry in the motion vector candidate list and the second entry in the motion vector candidate list, but not with other entries in the motion vector candidate list. If the first HMVP candidate is different from the first entry and the second entry, the video encoder 200 and the video decoder 300 may add the first HMVP candidate to the motion vector candidate list.
[0083] The video encoder 200 and the video decoder 300 may compare the second HMVP candidate with the first entry in the motion vector candidate list and the second entry in the motion vector candidate list, and not with other entries in the motion vector candidate list. If the second HMVP candidate is different from the first entry and the second entry, the video encoder 200 and the video decoder 300 may add the second HMVP candidate to the motion vector candidate list.
[0084] The first HMVP candidate and the second HMVP candidate are used to indicate two HMVP candidates selected from the HMVP candidates. The first HMVP candidate and the second HMVP candidate can be the first two candidates in the HMVP candidate history table, but the exemplary technology is not limited thereto. Similarly, the first entry and the second entry in the motion vector predictor list can be the first two entries in the motion vector predictor list, but the exemplary technology is not limited thereto.
[0085] If, after adding one or more (e.g., one or two) HMVP candidates from the first subset of HMVP candidates, the total number of entries in the motion vector predictor list is less than the maximum number of entries in the motion vector predictor list, the video encoder 200 and the video decoder 300 may add HMVP candidates from the second subset of HMVP candidates until the size of the motion vector predictor list reaches the maximum size or there are no more HMVP candidates in the second subset of HMVP candidates. In one or more examples, the video encoder 200 and the video decoder 300 may add HMVP candidates from the second subset of HMVP candidates without comparing the HMVP candidates from the second subset of HMVP candidates to the entries in the motion vector predictor list.
[0086] The video encoder 200 and the video decoder 300 can construct a motion vector predictor list to include HMVP candidates while balancing the cost of performing comparison operations with the benefit of minimizing duplication of entries in the motion vector predictor list. For example, the video encoder 200 and the video decoder 300 can add an HMVP candidate to the motion vector predictor list without performing any comparison operations to determine whether the HMVP candidate is repeated with an entry already present in the motion vector predictor list. In this case, there is a possibility that the motion vector predictor list becomes full but potentially good motion vector predictor candidates (e.g., motion vectors that are close to the actual motion vector) are excluded because there are duplicate motion vectors in the motion vector predictor list and the motion vector predictor list is full. However, comparing each HMVP candidate to each entry in the motion vector predictor list to exclude any duplicates may increase the processing time required to construct the motion vector predictor list, which in turn increases the time of the encoding or decoding process.
[0087] According to one or more examples described in the present disclosure, by limiting the number of comparisons between HMVP candidates and entries in a motion vector predictor list to determine whether there is a duplication, the number of comparison operations that need to be performed is limited. For example, as described above, the video encoder 200 and the video decoder 300 may compare a first subset of HMVP candidates (e.g., two HMVP candidates) with a subset of entries in a motion vector predictor list (e.g., two entries in a motion vector predictor list). The video encoder 200 and the video decoder 300 may add one or more HMVP candidates from the first subset that are different from the subset of entries in the motion vector predictor list, and exclude one or more HMVP candidates from the first subset that are the same as one of the entries in the subset of entries of the motion vector predictor. In this way, the number of comparisons is reduced compared to the case where all HMVP candidates are compared with all entries in the motion vector predictor list, thereby reducing the amount of time required to construct the motion vector predictor list.
[0088] In addition, the likelihood that a particular HMVP candidate is a duplicate of an entry in a motion vector predictor list may be based on the position of the block of the HMVP candidate and the block whose motion vector information is included in the motion vector predictor list. For example, the first entry in the motion vector predictor list may include motion vector information of a left-neighboring block, and the second entry in the motion vector predictor may include motion vector information of an upper-neighboring block. In some examples, the first HMVP candidate may be motion vector information of a block adjacent to the left side of the left-neighboring block, and the second HMVP candidate may be motion vector information of a block above the upper-neighboring block.
[0089] Due to the relative position of the first HMVP candidate's block relative to the left neighboring block and the upper neighboring block, the first HMVP candidate is more likely to be similar to the first entry or the second entry in the motion vector predictor list than any other entry in the motion vector predictor list. Similarly, due to the relative position of the second HMVP candidate's block relative to the left neighboring block and the upper neighboring block, the second HMVP candidate is more likely to be similar to the first entry or the second entry in the motion vector predictor list than any other entry in the motion vector predictor list.
[0090] Due to the relative position of the blocks of the first HMVP candidate relative to the blocks of the second HMVP candidate, the likelihood that the first HMVP candidate and the second HMVP candidate are the same as any other entry in the motion vector predictor list (e.g., excluding the first and second entries) may be relatively low. In addition, due to the relative positions of their respective blocks, the likelihood that the remaining HMVP candidates (e.g., excluding the first and second HMVP candidates) are the same as any entry in the motion vector predictor list is relatively low. Therefore, in one or more examples, the video encoder 200 and the video decoder 300 can add the second subset of HMVP candidates to the motion vector predictor list without comparing the HMVP candidates to any entry in the motion vector predictor list until the motion vector predictor list is full or there are no more available HMVP candidates.
[0091] Likewise, in the above example, the first subset of HMVP candidates including the first and second HMVP candidates may be the first two HMVP candidates in the HMVP candidate history table, but the example technology is not limited thereto. In addition, the second subset of HMVP candidates may include the remaining HMVP candidates excluding the first and second HMVP candidates. In addition, the subset of entries in the motion vector predictor list may be the first two entries in the motion vector predictor list, but the example technology is not limited thereto.
[0092] The present disclosure may generally relate to "signaling" certain information, such as syntax elements. The term "signaling" may generally relate 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 values for syntax elements in a bitstream. Generally speaking, signaling refers to generating values in a bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 substantially in real time or in non-real time, such as when the transmission may occur while storing the syntax elements to the storage device 112 for later retrieval by the destination device 116.
[0093] Reference Figure 2 and Figure 3 Examples of video encoder 200 and video decoder 300 are shown and described in more detail. Figure 2 and Figure 3 Before, refer to Figure 4A , Figure 4B , Figure 5 and Figure 6 Describes some additional details of the video encoding and decoding process, such as motion vector prediction.
[0094] Let's review the CU structure and motion vector prediction in HEVC. In HEVC, the largest codec unit in a slice is called a codec tree block (CTB) or codec tree unit (CTU). CTB contains a quadtree whose nodes are codec units.
[0095] In the HEVC Main Profile, the CTB size can be from 16x16 to 64x64 (although 8x8 CTB size is technically supported). Codec Units (CUs) can be the same size as CTBs, down to 8x8. Each codec unit is coded in one mode, such as inter-codec or intra-codec. Inter-codec can also be called inter-prediction codec or inter-prediction. Intra-codec can also be called intra-prediction codec or intra-prediction.
[0096] When a CU is inter-coded, the CU can be further divided into 2 or 4 prediction units (PUs), or when no further division is applied, the CU can be a PU. When there are two PUs in a CU, the PU can be a rectangle of half the size, or two rectangles of 1 / 4 or 3 / 4 of the CU size. When a CU is inter-coded, each PU has a set of motion information derived using inter prediction mode.
[0097] Let's review motion vector prediction. In the HEVC standard, there are two inter-frame prediction modes, namely the merge of prediction units (PUs) (skipping special cases considered as merges) and the advanced motion vector prediction (AMVP) mode. In AMVP or merge mode, a motion vector (MV) candidate list is maintained for multiple motion vector predictors. The MV candidate list may be referred to as a motion vector predictor list. The motion vector of the current PU and the reference index in merge mode are generated by selecting a candidate from the MV candidate list. The MV candidate list may contain up to 5 candidates for merge mode and only two candidates for AMVP. The merge candidate may contain a set of motion information, for example, a motion vector corresponding to both a reference picture list (list 0 and list 1) and a reference index. If the merge candidate is identified by a merge index, the reference picture used for the prediction of the current block and the associated motion vector are determined. In other words, the motion vector and reference picture in the motion vector predictor list identified by the merge index are set equal to the motion vector and reference picture of the current block.
[0098] On the other hand, in AMVP mode, for each potential prediction direction from list 0 or list 1, since the AMVP candidates only contain motion vectors, the reference index needs to be explicitly signaled together with the MV predictor (MVP) index to the MV candidate list. In AMVP mode, the predicted motion vector can be further refined (e.g., based on the above-mentioned motion vector difference (MVD)). Candidates for both modes are similarly derived from the same spatial and temporal neighboring blocks.
[0099] The following recalls the spatial neighboring blocks whose motion vector information is formed into a motion vector predictor. In some examples, the spatial MV candidate (e.g., the spatial motion vector predictor) is obtained from Figure 4A and Figure 4B The candidates are derived from the neighboring blocks shown (434 and 438 for a particular PU (PU0) respectively), although the method used to generate candidates from the blocks is different for merge and AMVP modes. Figure 4A is a conceptual diagram illustrating spatial neighboring candidates for merge mode. Figure 4B is a conceptual diagram showing spatial neighbor candidates of the AMVP mode.
[0100] In merge mode, in some examples, up to five spatial MV candidates can be derived, with Figure 4A , and the order is as follows: left (0, A1), top (1, B1), top right (2, B0), bottom left (3, A0), and top left (4, B2), as shown in FIG. Figure 4AFor example, for PU0 434, block A1 is identified as 0 and is to the left of PU0 434, block B1 is identified as 1 and is above PU0 434, block B0 is identified as 2 and is to the upper right of PU0 434 and above PU1 436, block A0 is identified as 3 and is to the lower left of PU0 434, and block B2 is identified as 4 and is to the upper left of PU0 434.
[0101] In AMVP mode, in some examples, neighboring blocks are divided into two groups: a left group, which includes blocks 0 and 1 located below and to the left of PU0 438, respectively; and an upper group, which includes blocks 2, 3, and 4 located above, to the right, above, and to the left of PU01 438, as shown in FIG. Figure 4B As shown. Block 2 is above PU1 440. For each group, potential candidates among neighboring blocks that refer to the same reference picture as the reference picture indicated by the signaled reference index have the highest priority to be selected to form the final candidate for the group. All neighboring blocks may not contain motion vectors pointing to the same reference picture. Therefore, if such a candidate cannot be found, the first available candidate can be scaled to form the final candidate, and the temporal distance difference can therefore be compensated.
[0102] Use Figure 5 Review of temporal motion vector prediction. Figure 5 is a conceptual diagram illustrating temporal motion vector predictor (TMVP) candidates and motion vector scaling for TMVP.
[0103] In some examples, if a TMVP candidate is enabled and available, it is added to the MV candidate list (e.g., motion vector predictor list) after the spatial motion vector candidate (e.g., motion vector information of spatial neighboring blocks). The motion vector derivation process for the TMVP candidate is the same for both merge mode and AMVP mode, but the target reference index of the TMVP candidate is set to 0 in merge mode.
[0104] In some examples, the primary block position for TMVP candidate derivation is the bottom right block outside the collocated PU, such as Figure 5 540 is shown in FIG. The position of block T 540 can compensate for the offset of the upper and left blocks used to generate spatial neighboring candidates. However, if block T 540 is located outside the current CTB row or motion information is not available for block T 540, block T 540 is replaced with the center block 541 of the PU.
[0105] exist Figure 5In FIG. 5 , the motion vector 548 of the TMVP candidate in the current picture 550 is derived from the collocated PU of the collocated picture 546 indicated at the slice level. The motion vector (MV) of the collocated PU is called the collocated MV 542. To derive the TMVP candidate motion vector, the collocated MV 542 may be scaled to compensate for the temporal distance difference, such as Figure 5 For example, the time difference between the collocated picture 546 and the collocated reference picture 544 and the time difference between the current picture 550 and the current reference picture 552 are used to scale the collocated MV 542 to generate the motion vector 548 .
[0106] Some other aspects of motion prediction in HEVC are reviewed below. Several aspects of merge mode and AMVP mode are described below.
[0107] Motion vector scaling: The value of a motion vector can be proportional to the distance between pictures in the presentation time. A motion vector relates two pictures, a reference picture and a picture containing the motion vector (i.e., the containing picture). When a motion vector is used to predict another motion vector, the distance between the containing picture and the reference picture is calculated based on the Picture Order Count (POC) value.
[0108] For a motion vector to be predicted, its associated containing picture and reference picture can be different. Therefore, a new distance is calculated (based on POC) and the motion vector is scaled based on these two POC distances. For spatially adjacent candidates, the containing pictures of the two motion vectors are the same, but the reference pictures are different. In HEVC, motion vector scaling applies to both TMVP and AMVP for both spatial and temporal adjacent candidates.
[0109] Artificial motion vector candidate generation: If the motion vector candidate list is incomplete (e.g., there are fewer than a predetermined number of candidates), artificial motion vector candidates are generated and inserted at the end of the candidate list until the candidate list has all candidates. In merge mode, there are two types of artificial MV candidates: combined candidates derived only for B-slices and zero candidates for AMVP only (if the combined candidates derived for B-slices cannot provide enough artificial candidates to fill the candidate list).
[0110] For each pair of candidates already in the candidate lists and having the necessary motion information, a bidirectional combined motion vector candidate is derived by combining the motion vector of the first candidate referring to the picture in list0 and the motion vector of the second candidate referring to the picture in list1.
[0111] Pruning process for candidate insertion: Candidates from different blocks may happen to be identical, which reduces the efficiency of merging / AMVP candidate lists. A pruning process is applied to address this problem. The pruning process compares a candidate with other candidates in the current candidate list to avoid inserting identical candidates. To reduce complexity, only a limited number of pruning processes are applied to avoid comparing each potential candidate with all other existing candidates in the list.
[0112] The development of VVC includes enhancing motion vector prediction. For example, several inter-frame coding tools have been proposed, which derive or refine the candidate list of motion vector prediction or merge prediction for the current block. Several examples are described below.
[0113] The following describes history-based motion prediction (HMVP), as described in L. Zhang, K. Zhang, H. Liu, Y. Wang, P. Zhao, and D. Hong, "CE4-related: History-based Motion Vector Prediction", JVET-K0104 (July 2018). HMVP is a history-based method in which the video encoder 200 and the video decoder 300 determine an MV predictor for each block based on a list of MVs decoded in the past, except for those MVs in directly adjacent causal neighboring motion fields (e.g., MVs of directly spatially adjacent blocks are examples of MVs in directly adjacent causal neighboring motion fields). HMVP includes the video encoder 200 and the video decoder 300 building a table of previously decoded motion vectors as HMVP candidates.
[0114] In some embodiments, the video encoder 200 and the video decoder 300 may construct a table with multiple HMVP candidates during the encoding / decoding process. Constructing the table may include adding HMVP candidates to the table and removing HMVP candidates from the table. The video encoder 200 and the video decoder 300 may be configured to clear the table (e.g., remove the HMVP candidate) when encountering a new slice for encoding or decoding. Whenever there is an inter-frame codec block, the video encoder 200 and the video decoder 300 may be configured to insert the associated motion information into the table as a new HMVP candidate in a first-in-first-out (FIFO) manner. Then, the video encoder 200 and the video decoder 300 may be configured to apply constrained FIFO rules. In some techniques, when inserting an HMVP candidate into the table, the video encoder 200 and the video decoder 300 may be configured to first apply a redundancy check (e.g., pruning) to determine whether there are exactly the same HMVP candidates in the table. If found, the video encoder 200 and the video decoder 300 may be configured to remove the specific HMVP candidate from the table and all HMVP candidates after the candidate are moved.
[0115] The video encoder 200 and the video decoder 300 may be configured to use HMVP candidates in the merge candidate list construction process. For example, the video encoder 200 and the video decoder 300 may be configured to insert all HMVP candidates from the last entry to the first entry after the TMVP candidate in the table. The video encoder 200 and the video decoder 300 may be configured to apply pruning to the HMVP candidates. Once the total number of available merge candidates reaches the signaled or predetermined maximum number of allowed merge candidates, the video encoder 200 and the video decoder 300 may be configured to terminate the merge candidate list construction process. Merge candidate list construction is an example of constructing a motion vector predictor list.
[0116] Similarly, the video encoder 200 and the video decoder 300 may be configured to construct an AMVP candidate list using HMVP candidates during the AMVP candidate list construction process. The video encoder 200 and the video decoder 300 may be configured to insert the motion vectors of the last K HMVP candidates after the TMVP candidate in the table. The video encoder 200 and the video decoder 300 may be configured to construct the AMVP candidate list using only HMVP candidates having the same reference picture as the AMVP target reference picture. The video encoder 200 and the video decoder 300 may be configured to apply pruning to the HMVP candidates. AMVP candidate list construction is another example of constructing a motion vector predictor list.
[0117] The following describes non-adjacent spatial merge candidates. The construction of non-adjacent spatial merge candidates, as described in R. Yu, et.al., “CE4-2.1: Adding non-adjacent spatial merge candidates,” Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 11th Meeting: 10-18 July 2018, SI Ljubljana (hereinafter referred to as “JVET-K0228”), involves deriving new spatial candidates from two non-adjacent neighboring positions. For example, Figure 6 As shown in , the video encoder 200 and the video decoder 300 can derive new spatial candidates from the nearest non-neighboring block 650 above the current block 648 and / or the nearest non-neighboring block 652 to the left of the current block 648. For example, Figure 6 A current block 648 is shown with neighboring blocks A0, A1, B2, B1, and B0. In some examples, non-adjacent spatial merge candidates include blocks that are not spatially adjacent to the current block 648. Figure 6 The motion information of block HN 652 and block VN 650. That is, Figure 6 An example of a block whose motion vector information can be used to construct the HMVP candidate history table is shown.
[0118] Blocks 650 and 652 are limited to the maximum distance of 1CTU to the current block 648. The process of obtaining non-neighboring candidates starts with tracing the previously decoded blocks in the vertical direction. When the inter-block or backtracking distance reaches 1CTU size, the vertical backtracking stops.
[0119] The acquisition process then tracks the previously decoded blocks in the horizontal direction. The criterion for stopping the horizontal acquisition process depends on whether there are successfully acquired vertical non-adjacent candidates. If no vertical non-adjacent candidates are acquired, the horizontal acquisition process stops when an inter-coded block is encountered or the traceback distance exceeds a CTU size threshold. If a vertical non-adjacent candidate is acquired, the horizontal acquisition process stops when an inter-coded block containing a different MV from the vertical non-adjacent candidate is encountered or the traceback distance exceeds a CTU size threshold. In the merge candidate list, the acquired non-adjacent adjacent candidate is added before the TMVP candidate.
[0120] The paired average candidates are described below. Paired average candidates are used in VTM3.0 (VVC Test Model 3.0). The video encoder 200 and the video decoder 300 can be configured to generate paired average candidates by averaging predefined candidate pairs in the current merge candidate list (including spatial candidates, TMVP and HMVP). In one example, the predefined pairs are defined as {(0,1), (0,2), (1,2), (0,3), (1,3), (2,3)}, where the numbers represent the merge index to the merge candidate list. The video encoder 200 and the video decoder 300 can be configured to calculate the average motion vector of each reference list separately. If two motion vectors are available in one list, the video encoder 200 and the video decoder 300 can be configured to average the two motion vectors, even if the two motion vectors point to different reference pictures. If only one motion vector is available, the video encoder 200 and the video decoder 300 can be configured to use the one motion vector directly. If no motion vector is available, the video encoder 200 and the video decoder 300 may be configured to keep the reference picture lists (eg, one or both of list 0 and list 1) invalid. In the HEVC standard, pairwise average candidates replace combined candidates.
[0121] For example, in bidirectional prediction, a motion vector candidate may include two motion vectors pointing to two references in list 0 and list 1, or a motion vector candidate may include only one motion vector pointing to list 0 (or list 1). Thus, for unidirectional candidates, one list is invalid (e.g., if the motion vector points to list 0, list 1 is invalid, and vice versa).
[0122] An example of determining a paired average candidate for candidate 0 and candidate 1 is described below, where candidate 0 is a bidirectional prediction candidate and includes two motion vectors: (MV0_list0(x_list0, y_list0)) and (MV0_list1(x_list1, y_list1)), and candidate 1 is a unidirectional prediction including only one motion vector (MV1_list0(x_list0, y_list0)). In this example, list 1 is invalid for candidate 1, and the generated paired candidate is a bidirectional MV ((MV0_list0+MV1_list0 / 2), MV0_list1).
[0123] As described above, the HMVP prediction mode uses a history-based lookup table that stores MVs decoded from the past. The HMVP lookup table (also called the HMVP candidate history table) can be applied to inter-frame prediction modes such as merge mode and AMVP mode. When the HMVP candidate in the history table is added to the merge list or the AMVP list, the video encoder 200 and the video decoder 300 can be configured to apply a redundancy check to find out whether there are exactly the same (e.g., repeated) candidates in the list. In some examples, as described above, applying a full redundancy check may be too complex (e.g., requiring many computing resources or clock cycles), especially for hardware implementations. In some examples, the HMVP candidate history table should be updated after encoding / decoding the inter-frame CU. In addition, when a new HMVP candidate is added to the HMVP candidate history table, a redundancy check is also applied.
[0124] In view of these shortcomings, the present disclosure describes several techniques in which the video encoder 200 and the video decoder 300 can be configured to construct the HMVP candidate history table using a modified construction process. In addition, the present disclosure describes additional techniques in which the video encoder 200 and the video decoder 300 can be configured to determine the candidates to be used in the motion vector predictor list (e.g., for the merged motion vector predictor list, for the affine motion vector predictor list, and / or for the AMVP motion vector predictor list) from the HMVP candidate history table.
[0125] In one example of the present invention, the video encoder 200 and the video decoder 300 may be configured to add a new HMVP candidate to the HMVP candidate history table without performing a redundancy check. If the number of HMVP candidates reaches the maximum allowed size of the HMVP candidate history table, the video encoder 200 and the video decoder 300 may be configured to remove the earliest HMVP candidate in the table and then add a new HMVP candidate.
[0126] In another example of the present disclosure, the video encoder 200 and the video decoder 300 may be configured to subsample the HMVP candidate history table when adding one or more HMVP candidates in the HMVP candidate history table to a motion vector predictor list (such as a merge candidate list, an AMVP candidate list, or an affine candidate list). For example, the size of the HMVP candidate history table may be N, the subsampling rate may be R, and the initial position in the HMVP candidate history table may be S. In one example, N=10, R=3, and S=1. Therefore, the HMVP candidate history table is {c1, c2, c3, c4, c5, c6, c7, c8, c9, c10}. In forward order, the selected HMVP candidate is {c1, c4, c7, c10}. If the candidate is selected in the reverse order, the selected HMVP candidate is {c10, c7, c4, c1}.
[0127] That is, in one example, the HMVP candidates include {c1, c2, c3, c4, c5, c6, c7, c8, c9, c10}. If the subsampling rate is 3, the video encoder 200 and the video decoder 300 can make a selection every three sampling points. If the subsampling position is 1, the video encoder 200 and the video decoder 300 select the first HMVP candidate and then make a selection every three sampling points. For example, in the forward direction, the first sampling point is c1, followed by c4 (the third sampling point after c1), then c7 (the third sampling point after c4) and c10. In the backward direction, starting from c10, the result of subsampling is {c10, c7, c4, c1}.
[0128] Sub-sampling is provided as an example, and the techniques are not limited thereto. In some examples, there may be no sub-sampling of the HMVP candidate history table.
[0129] In another example of the present disclosure, the video encoder 200 and the video decoder 300 may be configured to use a simplified pruning algorithm for adding HMVP candidates in the HMVP candidate history table to a motion vector predictor list (such as a merge candidate list, an AMVP candidate list, or an affine candidate list). In one example, when the HMVP candidate in the HMVP candidate history table is added to the motion vector predictor list (e.g., a merge list), the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidate by predefined candidates. The video encoder 200 and the video decoder 300 may be configured to prune each HMVP candidate by the same predefined candidate or different predefined candidates. The predefined candidates may be specified by the position or type of the candidate object.
[0130] For example, the number of predefined candidates is Y. When adding HMVP candidates to the motion vector prediction list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidates using a subset of Y candidates. For example, in VTM and benchmark set (BMS) software, such as Figure 4A , Figure 4B and Figure 5 As shown in , the set of spatial and temporal candidates is {A1, B1, B0, A0, B2, TMVP}. As mentioned above, A1 Figure 4A In the figure, B1 is marked with the number 0. Figure 4A is marked as number 1, B0 is Figure 4A is marked as number 2, A0 is in Figure 4A is identified as number 3 in the Figure 4A The TMVP block is identified as number 4 in Figure 5 540 is identified as block T.
[0131] Candidate HMVPi can be obtained by comparing it with a subset of Y candidates i Y may also include HMVP candidates. As an example, the video encoder 200 and the video decoder 300 may compare a first HMVP candidate (e.g., HMVP1) with a first subset (e.g., subet1) of Y candidates in a motion vector predictor list, and compare a second HMVP candidate (e.g., HMVP2) with a first subset of Y candidates in a motion vector predictor list. In this example, subset1 may include two entries in the motion vector predictor list (e.g., the Y candidates in the motion vector predictor list are equal to the two entries in the motion vector predictor list).
[0132] As an example, Y is {A1, B1, B0, A0, B2, TMVP, HMVPi}. As another example, Y is {A1, B1, B0, A0, B2, TMVP} (e.g., the motion vector predictor list is constructed based on the motion vector information of spatial and temporal neighboring blocks).
[0133] Subset subset1 of Y is {A1 and B1} to indicate two entries in the motion vector predictor list. For example, block A1 (e.g., Figure 4A and block B1 (e.g., Figure 4A The motion vector information of block 1) in may be two entries in the motion vector predictor list, and may be the first two entries.
[0134] In this example, the video encoder 200 and the video decoder 300 may associate the first HMVP candidate with the block A1 (eg, Figure 4Aand block B1 (e.g., Figure 4A If the first HMVP candidate is different from the motion vector information of block A1 and the motion vector information of block B1, the video encoder 200 and the video decoder 300 may add the first HMVP to the motion vector predictor list. If the first HMVP candidate is the same as the motion vector information of block A1 or block B1, the video encoder 200 and the video decoder 300 may not add the first HMVP to the motion vector predictor list.
[0135] Similarly, in this example, the video encoder 200 and the video decoder 300 may associate the second HMVP candidate with the block A1 (eg, Figure 4A and block B1 (e.g., Figure 4A If the second HMVP candidate is different from the motion vector information of block A1 and the motion vector information of block B1, the video encoder 200 and the video decoder 300 may add the second HMVP to the motion vector predictor list. If the second HMVP candidate is the same as the motion vector information of block A1 or block B1, the video encoder 200 and the video decoder 300 may not add the second HMVP to the motion vector predictor list.
[0136] In the above example, the first and second HMVP candidates can be considered to be pruned by {A1, B1}. For example, the first HMVP candidate is added to the motion vector predictor list only when the motion vector information of the first HMVP candidate is different from that of A1 and B1, and the second HMVP candidate is added to the motion vector predictor list only when the motion vector information of the second HMVP candidate is different from that of A1 and B1.
[0137] In some examples, all HMVP candidates are pruned through {A1, B1}. In another example, the HMVP candidates are pruned through {A1, B1, B0, A0}. In another example, different HMVP candidates may be pruned through different candidates. For example, in the above case, the size of the HMVP candidate history table is 10. The video encoder 200 and the video decoder 300 may select one out of every 3 HMVP candidates to add to the merge list {c1, c4, c7, c10}. Candidate c1 is pruned through {A1, B1, B0}. Candidate c4 is pruned through {A1, B1}. Candidate c7 is pruned through {A1}. Candidate c10 is not pruned. In another example, the HMVP candidates may be pruned through other HMVP candidates.
[0138] In another example, when an HMVP candidate in the HMVP candidate history table is added to a motion vector predictor list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidate by a predefined candidate in the motion vector predictor list (e.g., a merge candidate list, an AMVP candidate list, or an affine candidate list). For example, as described above, when an HMVP candidate is added to a merge list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidate by the first M candidates in the merge list. For example, M=2. When an HMVP candidate in the HMVP candidate history table is added to a merge list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidate by the first two candidates in the merge list.
[0139] In other words, the video encoder 200 and the video decoder 300 may construct a motion vector predictor list (e.g., a merge list or an AMVP list). The video encoder 200 and the video decoder 300 may compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list (e.g., M=2 and the two entries are the first two entries in the motion vector predictor list) without comparing with other entries in the motion vector predictor list, and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list. The video encoder 200 and the video decoder 300 may compare a second HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, and when the second HMVP candidate is different from both entries in the motion vector predictor list, add the second HMVP candidate to the motion vector predictor list.
[0140] In another example, when adding HMVP candidates to the merge list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidates by candidates of a specified type in the merge list. For example, the video encoder 200 and the video decoder 300 may be configured to prune the new HMVP candidates by spatial candidates previously added to the merge list. As another example, the video encoder 200 and the video decoder 300 may be configured to prune the new HMVP candidates by spatial candidates, and / or TMVP candidates and / or HMVP candidates in the merge list.
[0141] As another example, when adding HMVP candidates to the merge list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidates by merging a specified number of candidates of a specified type in the merge list. For example, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidates by merging the first M spatial candidates in the merge list.
[0142] For another example, when adding an HMVP candidate to the merge list, the video encoder 200 and the video decoder 300 may be configured to prune the HMVP candidate by the W most recent candidates in the merge list. For example, W=2 and 4 candidates may have been added to the merge list. When adding a new HMVP candidate to the merge list, the video encoder 200 and the video decoder 300 may be configured to prune the new HMVP candidate by the third and fourth candidates in the merge list.
[0143] For another example, when adding an HMVP candidate to AMVP list 0 (e.g., reference picture list 0), the video encoder 200 and the video decoder 300 may be configured to select the HMVP candidate using the same reference (same reference index or same POC) as the current coding block. The video encoder 200 and the video decoder 300 may check the HMVP candidates in forward order or backward order as described above. The video encoder 200 and the video decoder 300 may be configured to prune the first number M of HMVP candidates through the N number of AMVP candidates specified in the list. For bidirectional prediction, AMVP list 1 may be generated in the same manner as list 0. For example, in a virtual test model (VTM), the size of the AMVP list is 2. If M=1 and N=1, only the first HMVP candidate is pruned through the first AMVP candidate in the list. If M=0, no pruning is applied.
[0144] In another example, the video encoder 200 and the video decoder 300 may be configured to define a block (region) of size WxH. The video encoder 200 and the video decoder 300 may be configured to use the same HMVP candidate history table to encode and decode blocks within the same WxH region.
[0145] The next section deals with merge list organization. In one example, the video encoder 200 and the video decoder 300 can be configured to not use HMVP candidates to generate paired average candidates. For example, the predefined pairs are defined as {(0,1), (0,2), (1,2), (0,3), (1,3), (2,3)}, where the number represents the merge index into the merge candidate list. If any candidate in the pair is an HMVP candidate, the video encoder 200 and the video decoder 300 can be configured to not use the pair to generate paired candidates.
[0146] In another example, the video encoder 200 and the video decoder 300 may be configured to place the paired average candidates in front of the HMVP candidates. For example, the video encoder 200 and the video decoder 300 may be configured to reduce the number of pairs of paired candidates to N, and place the N paired candidates in front of the HMVP candidate. For example, when N=2, the video encoder 200 and the video decoder 300 may use only {(0,1), (0,2)} to generate paired candidates and place them in front of the HMVP candidate. As another example, when N=1, the video encoder 200 and the video decoder 300 may use only {(0,1)} to generate paired candidates and place them in front of the HMVP candidate.
[0147] In one example, the video encoder 200 and the video decoder 300 may be configured to perform pruning by comparing the reference direction, and / or reference index, and / or POC and / or motion vector (with / without scaling) between two motion vector predictors. If one or more comparisons match, the video encoder 200 and the video decoder 300 may be configured not to add the motion vector predictor to the candidate list.
[0148] In another example, the size (N), sub-sampling rate (R), initial position (S), number of HMVP tables, selection method, pruning method, and / or WxH region size of the HMVP table in which the codec blocks share the same history table may be predefined in the video encoder 200 and the video decoder 300, or set to a value signaled at a sequence level, a picture level, a slice level, or a block level from the video encoder 200 to the video decoder 300. For example, such example information may be signaled in a sequence parameter set (SPS), a picture parameter set (PPS), a slice header (SH), a codec tree unit (CTU), or a codec unit (CU).
[0149] Figure 2 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 2It is provided for the purpose of illustration and should not be considered as limiting the techniques widely exemplified and described in this disclosure. For the purpose of illustration, this disclosure describes the video encoder 200 in the context of video codec standards such as the HEVC video codec standard and the H.266 / VVC video codec standard under development. However, the techniques of this disclosure are not limited to these video codec standards and are generally applicable to video encoding and decoding.
[0150] exist Figure 2 In the example, 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.
[0151] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory, which stores reference video data for predicting subsequent video data by video encoder 200. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. 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 shown), or off-chip relative to those components.
[0152] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to only memory inside the video encoder 200, unless specifically described as such, or should not be interpreted as limited to only memory outside the video encoder 200, unless specifically described as such. Instead, 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 of a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage of outputs from the various units of the video encoder 200 .
[0153] Show Figure 2The various units of the video encoder 200 are described to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functionality and are preset on 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 so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.
[0154] 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 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.
[0155] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve a picture 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.
[0156] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. 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.
[0157] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of a CTU into CUs, a prediction mode for a CU, a transform type for residual data of a CU, a quantization parameter for residual data of a CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.
[0158] 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 210 may divide the CTUs of the picture according to a tree structure such as the QTBT structure or quadtree structure of the HEVC described above. 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".
[0159] Typically, 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). For inter prediction of the current block, the motion estimation unit 222 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 can calculate a value representing how similar the potential reference block is to the current block, for example, based on the sum of absolute differences (absolute difference, SAD), the sum of squared differences (sum of squared difference, SSD), the mean absolute difference (mean absolute difference, MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 can generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 can identify the reference block with the lowest value produced by these calculations, which indicates the reference block that most closely matches the current block.
[0160] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, 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 accuracy, the motion compensation unit 224 may interpolate values for the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by corresponding motion vectors, for example, by sample-by-sample averaging or weighted averaging, and combine the retrieved data.
[0161] According to the technology of the present disclosure, the motion estimation unit 222 and the motion compensation unit 224 can use the HMVP candidate history table to perform inter-frame prediction and motion vector prediction techniques. For example, as will be described in more detail below, the motion estimation unit 222 and the motion compensation unit 224 can be configured to construct a history-based motion vector prediction (HMVP) candidate history table, add one or more HMVP candidates from the HMVP candidate history table to a motion vector predictor list, and encode and decode a video data block using the motion vector predictor list.
[0162] For example, the motion estimation unit 222 and the motion compensation unit 224 may be configured to construct a history-based motion vector prediction (HMVP) candidate history table that includes motion vector information of previously coded blocks extending beyond the adjacent neighboring blocks of the current block. For example, the HMVP candidate history table includes HMVP candidates, such as motion vector information of blocks that are not directly adjacent to the current block. The current block may be encoded in merge mode, but other modes such as AMVP and / or intra-block copy (IBC) mode are possible.
[0163] The motion estimation unit 222 and the motion compensation unit 224 may also construct a motion vector predictor list. The motion vector predictor list includes motion vector information of spatially adjacent blocks or collocated blocks (e.g., temporally adjacent blocks). As an example, the motion vector predictor list may include motion vector information of one or more of the spatially adjacent blocks A1, B1, B0, A0, and B2, wherein Figure 4A434, block A1 is identified as 0 and is to the left of PU0 434, block B1 is identified as 1 and is above PU0 434, block B0 is identified as 2 and is to the upper right of PU0 434 and above PU1 436, block A0 is identified as 3 and is to the lower left of PU0 434, and block B2 is identified as 4 and is to the upper left of PU0 434. The motion vector predictor list may also include motion vector information of a temporally adjacent block T 540.
[0164] The motion estimation unit 222 and the motion compensation unit 224 may add one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list. For example, in order to add one or more HMVP candidates from the HMVP candidate history table, the motion estimation unit 222 and the motion compensation unit 224 may be configured to compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list, but not with other entries in the motion vector predictor list, and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list. The motion estimation unit 222 and the motion compensation unit 224 may also be configured to compare a second HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list, but not with other entries in the motion vector predictor list, and when the second HMVP candidate is different from both entries in the motion vector predictor list, add the second HMVP candidate to the motion vector predictor list.
[0165] In some examples, the first of the two entries in the motion vector predictor list may include the left neighboring block (e.g., Figure 4A The second entry of the two entries in the motion vector predictor list may include the upper neighboring block (e.g., Figure 4A The first and second entries in the motion vector predictor list may be the first two entries in the motion vector predictor list, but the present technology is not limited thereto. In addition, the first HMVP and the second HMVP candidates may be the first two candidates in the HMVP candidate history table.
[0166] In some examples, the size of the motion vector predictor list may not reach its maximum size even after the motion estimation unit 222 and the motion compensation unit 224 include one or both of the first and second HMVP candidates into the motion vector predictor list. In this case, the first and second HMVP candidates may be considered as examples of a first subset of HMVP candidates, although more HMVP candidates may be included in the first subset of HMVP candidates. The motion estimation unit 222 and the motion compensation unit 224 may add one or more HMVP candidates in the second subset of one or more HMVP candidates in the HMVP candidate history table that follow the first subset of one or more HMVP candidates to the motion vector predictor list without comparing the one or more HMVP candidates from the second candidate to the entries in the motion vector predictor list.
[0167] The motion estimation unit 222 and the motion compensation unit 224 may be configured to determine a motion vector of a current block for identifying a prediction block. The motion estimation unit 222 and the motion compensation unit 224 may determine an entry into a motion vector predictor list based on the determined motion vector of the current block. For example, for the merge mode, the motion estimation unit 222 and the motion compensation unit 224 may determine an entry in the motion vector predictor list that has the same motion vector information as the motion vector information of the determined motion vector. For the AMVP mode, the motion estimation unit 222 and the motion compensation unit 224 may determine an entry in the motion vector predictor list that has motion vector information similar to the motion vector information of the determined motion vector. The motion estimation unit 222 and the motion compensation unit 224 may also determine a motion vector difference (MVD) between the motion vector information of the entry and the determined motion vector of the current block.
[0168] As another example, for intra prediction or intra prediction codec, the intra prediction unit 226 can generate a prediction block based on sample points adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values of adjacent sample points and fill these calculated values in a defined direction across the current block to generate a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average value of adjacent sample points to the current block and generate a prediction block to include the resulting average value for each sample point of the prediction block.
[0169] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The obtained sample-by-sample difference defines the residual block of the current block. In some examples, the residual generation unit 204 can also determine the difference between the sample point values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 can be formed using one or more subtractor circuits that perform binary subtraction.
[0170] In the example where the mode selection unit 202 divides the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As indicated above, the size of the CU may refer to the size of the luma codec block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-frame prediction, and symmetric PU sizes of 2Nx2N, 2NxN, Nx2N, NxN or the like for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N and nRx2N for inter-frame prediction.
[0171] In an example where the mode selection unit does not further divide the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As described above, the size of a CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.
[0172] For other video codec techniques, such as intra block copy mode codec, affine mode codec, and linear model (LM) mode codec (to name a few), the mode selection unit 202 generates a prediction block for the current block being encoded via various units associated with the codec technique. In some examples, such as palette mode codec, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In this mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0173] As described above, the residual generation unit 204 receives video data of 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.
[0174] 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 multiple transforms on the residual block, for example, a primary transform and an auxiliary transform (such as a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0175] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.
[0176] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add the sampling points of the reconstructed residual block to the corresponding sampling points of the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0177] 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 edge of the CU. In some examples, the operation of filter unit 216 may be skipped.
[0178] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks 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 possibly 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 in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.
[0179] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode prediction syntax elements (e.g., motion information for inter-prediction or intra-mode information for intra-prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on syntax elements, which is another example of video data, to generate entropy-coded 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 entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode where the syntax elements are not entropy encoded.
[0180] As shown, in some examples, entropy coding unit 220 can receive information from mode selection unit 202. As an example, motion estimation unit 222 and motion compensation unit 224 can be configured to output information indicating an entry into a motion vector predictor list (e.g., as constructed using the example techniques described above). Entropy coding unit 220 can encode and signal the information indicating the entry into the motion vector predictor list. Entropy coding unit 220 can also encode and signal information indicating the difference between a prediction block identified by a motion vector of the current block and the current block.
[0181] The video encoder 200 may output a bitstream including entropy encoding syntax elements required to reconstruct a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0182] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma codec blocks and / or chroma codec blocks. As described above, in some examples, the luma codec blocks and chroma codec blocks are the luma and chroma components of a CU. In some examples, the luma codec blocks and chroma codec blocks are the luma and chroma components of a PU.
[0183] In some examples, operations performed with respect to chroma codec blocks need not be repeated for luma codec blocks. As an example, operations performed for luma codec blocks to identify motion vectors (MVs) and reference pictures need not be repeated for chroma blocks to identify MVs and reference pictures. Instead, the MVs for luma codec 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 codec blocks and chroma codec blocks.
[0184] 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 illustration and does not limit the techniques widely illustrated and described in this disclosure. For the purpose of illustration, this disclosure describes a video decoder 300 according to the techniques of H.266 / VVC, JEM, and HEVC. However, the techniques of this disclosure can be performed by a video codec device configured for other video codec standards.
[0185] exist Figure 3In 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. The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include an addition unit 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.
[0186] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be, for example, received from the computer-readable medium 110 ( Figure 1 ). The CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of coded and decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, which the video decoder 300 may output and / or which the video decoder 300 may use as reference video data when decoding subsequent data or pictures of the coded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or a separate memory device. In various examples, the CPB memory 320 may be located on-chip with other components of the video decoder 300, or off-chip relative to these components.
[0187] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1) to retrieve the coded video data. That is, memory 120 may store data together with CPB memory 320 as discussed above. Likewise, when some or all of the functionality of video decoder 300 is implemented in software to be executed by the processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.
[0188] Figure 3 The various units shown are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 2 Similarly, a fixed-function circuit refers to a circuit that provides specific functionality and has preset operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provides flexible functionality in the operations that can be performed. For example, a programmable circuit can execute software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. A fixed-function circuit can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), while in some examples, one or more units may be integrated circuits.
[0189] 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 a 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.
[0190] 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.
[0191] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, ie, the block being decoded, may be referred to as a "current block").
[0192] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block and transform information such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, likewise, a degree of inverse quantization to be applied 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.
[0193] 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 transform, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotation transform, an inverse directional transform, or another inverse transform to the coefficient block.
[0194] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in a manner substantially similar to that described with respect to motion compensation unit 224 ( Figure 2 ) to perform inter-frame prediction processing in the manner described.
[0195] According to the techniques of the present disclosure, when a block is encoded using an HMVP candidate history table, the motion compensation unit 316 can perform inter-frame prediction and motion vector prediction techniques. For example, as will be explained in more detail below, the motion compensation unit 316 can be configured to construct a history-based motion vector prediction (HMVP) candidate history table, add one or more HMVP candidates in the HMVP candidate history table to a motion vector predictor list, and encode the video data block using the motion vector predictor list.
[0196] For example, the motion compensation unit 316 can be configured to construct a history-based motion vector prediction (HMVP) candidate history table that includes motion vector information of previously encoded blocks extending beyond the adjacent neighboring blocks of the current block. For example, the HMVP candidate history table includes HMVP candidates, such as motion vector information of blocks that are not directly adjacent to the current block. As described below, the current block can be encoded in merge mode, but other modes such as AMVP and / or intra-block copy (IBC) mode are also possible.
[0197] The motion compensation unit 316 may also construct a motion vector predictor list. The motion vector predictor list includes motion vector information of spatially adjacent blocks or collocated blocks (e.g., temporally adjacent blocks). As an example, the motion vector predictor list may include motion vector information of one or more of the spatially adjacent blocks A1, B1, B0, A0, and B2, wherein Figure 4A 434, block A1 is identified as 0 and is to the left of PU0 434, block B1 is identified as 1 and is above PU0 434, block B0 is identified as 2 and is to the upper right of PU0 434 and above PU1 436, block A0 is identified as 3 and is to the lower left of PU0 434, and block B2 is identified as 4 and is to the upper left of PU0 434. The motion vector predictor list may also include motion vector information of a temporally adjacent block T 540.
[0198] The motion compensation unit 316 may add one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list. For example, to add one or more HMVP candidates from the HMVP candidate history table, the motion compensation unit 316 may be configured to compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list. The motion compensation unit 316 may also be configured to compare a second HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, and when the second HMVP candidate is different from both entries in the motion vector predictor list, add the second HMVP candidate to the motion vector predictor list.
[0199] In some examples, the first of the two entries in the motion vector predictor list may include the left neighboring block (e.g., Figure 4AThe second entry in the two entries in the motion vector predictor list may include the upper neighboring block (eg, Figure 4A The first entry and the second entry in the motion vector predictor list may be the first two items in the motion vector predictor list, but the present technology is not limited thereto. In addition, the first HMVP and the second HMVP candidate may be the first two candidates in the HMVP candidate history table.
[0200] In some examples, the size of the motion vector predictor list may not reach its maximum size even after the motion compensation unit 316 includes one or both of the first and second HMVP candidates into the motion vector predictor list. In this case, the first and second HMVP candidates may be considered as examples of a first subset of HMVP candidates, although more HMVP candidates may be included in the first subset of HMVP candidates.
[0201] The motion compensation unit 316 may add one or more HMVP candidates from a second subset of one or more HMVP candidates that follow the first subset of one or more HMVP candidates in the HMVP candidate history table to the motion vector predictor list without comparing the one or more HMVP candidates from the second subset with entries in the motion vector predictor list.
[0202] In some examples, entropy decoding unit 302 may decode information indicating an entry into a motion vector predictor list. Motion compensation unit 316 may receive information indicating an entry into a motion vector predictor list and retrieve motion vector information from the entry of the motion vector predictor list.
[0203] The motion compensation unit 316 may determine the motion vector of the current block based on the retrieved motion vector information. For example, in merge mode, the motion compensation unit 316 may set the motion vector of the current block equal to the retrieved motion vector information. In AMVP mode, the motion compensation unit 316 may also receive a motion vector difference (MVD) between the retrieved motion vector information and the actual motion vector. The motion compensation unit 316 may add the MVD to the retrieved motion vector information to determine the motion vector of the current block.
[0204] The motion compensation unit 316 may determine a prediction block for the current block based on the motion vector of the current block. For example, the motion compensation unit 316 may retrieve sampling point values from a reference picture including a reference block identified by the motion vector. The motion compensation unit 316 may determine a prediction block based on the retrieved sampling points.
[0205] 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 may generally generate a prediction block in the same manner as the intra-prediction unit 226 ( Figure 2 The intra prediction unit 318 may retrieve data of neighboring sample points for the current block from the DPB 314.
[0206] 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 the sampling points of the residual block to the corresponding sampling points of the prediction block to reconstruct the current block. In other words, the reconstruction unit 310 may add the prediction block to the received residual information indicating the difference between the prediction block and the current block to reconstruct the current block.
[0207] 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.
[0208] The video decoder 300 may store the reconstructed blocks in the DPB 314. As discussed above, the DPB 314 may provide reference information to the prediction processing unit 304, such as the sampling points of the current picture for intra prediction and the sampling points of the previously decoded picture for subsequent motion compensation. In addition, the video decoder 300 may output the decoded picture from the DPB for subsequent use in, for example, Figure 1 The display device 118 is displayed on the display device.
[0209] In this manner, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units that are implemented in a circuit system and configured to construct a history-based motion vector prediction (HMVP) candidate history table, add one or more HMVP candidates in the HMVP candidate history table to a motion vector predictor list, and encode and decode a block of video data using the motion vector predictor list.
[0210] Figure 7 2 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and Figure 2 ), but it should be understood that other devices may be configured to perform similar Figure 7 method.
[0211] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 can form a prediction block for the current block. In one or more examples, the video encoder 200 can be configured to form the prediction block based on the motion vector. The video encoder 200 can be configured to construct a motion vector predictor list using example techniques described in the present disclosure, and signal information of the entry in the motion vector predictor list to the video decoder 300 for determining the motion vector.
[0212] The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original unencoded block and the predicted block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy encoded data for the block (360).
[0213] Figure 8 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 3 ), but it should be understood that other devices may be configured to perform similar Figure 8 method.
[0214] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data of 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 coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block to calculate a prediction block for the current block.
[0215] As an example, the video decoder 300 can be configured to construct a motion vector predictor list using the example techniques described in the present disclosure. The video decoder 300 can then receive an entry into the motion vector predictor list and can determine the motion vector of the current block based on the motion vector information in the entry of the motion vector predictor list. The video decoder 300 can then calculate a prediction block based on the determined motion vector.
[0216] The video decoder 300 may then inverse scan the reproduced coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). The video decoder 300 may finally decode the current block by combining the prediction block and the residual block (380).
[0217] Fig. 9 is a flow chart showing an example encoding and decoding method. For ease of description, the processing circuit system is described Fig. 9 Examples of processing circuitry include fixed-function and / or programmable processing circuitry forming video encoder 200 or video decoder 300. For example, both video encoder 200 and video decoder 300 may be configured to perform example techniques described in this disclosure.
[0218] The processing circuit system may be configured to construct a history-based motion vector prediction (HMVP) candidate history table that includes motion vector information of previously coded blocks extending beyond adjacent neighboring blocks of the current block (400). For example, the processing circuit system may access a memory (e.g., video data memory 230 or DPB 314) to obtain motion vector information of previously coded blocks that are not directly adjacent to the current block. The processing circuit system may add the motion vector information of these previously coded blocks to the HMVP candidate history table.
[0219] The processing circuitry may construct a motion vector predictor list (402). The processing circuitry may construct the motion vector predictor list using motion information of one or more spatially neighboring blocks or collocated blocks (e.g., temporally neighboring blocks). For example, the processing circuitry may add motion vector information of the spatially neighboring blocks or collocated blocks to the motion vector predictor list to construct the motion vector predictor list.
[0220] In the techniques described in the present disclosure, the processing circuitry may also add one or more HMVP candidates from the HMVP candidate history table to a motion vector predictor list for the current block (404). The processing circuitry may add the one or more HMVP candidates for a current block that is encoded and decoded in merge mode, and in general, the processing circuitry may add the one or more HMVPs for a current block that is encoded and decoded in one of merge mode, advanced motion vector prediction (AMVP) mode, or intra block copy (IBC) merge mode.
[0221] To add one or more HMVP candidates from the HMVP candidate history table, the processing circuit system may be configured to compare a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list, but not with other entries in the motion vector predictor list, and when the first HMVP candidate is different from both entries in the motion vector predictor list, add the first HMVP candidate to the motion vector predictor list. In addition, the processing circuit system may be configured to compare a second HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list, but not with other entries in the motion vector predictor list, and when the second HMVP candidate is different from both entries in the motion vector predictor list, add the second HMVP candidate to the motion vector predictor list. In some examples, the two entries in the motion vector predictor list may be a first entry of a left neighboring block of the current block and a second entry of an upper neighboring block of the current block.
[0222] In some examples, the first and second HMVP candidates may be considered to be a first subset of HMVP candidates. However, there may be more than two HMVP candidates in the first subset of candidates. The processing circuit system may be further configured to add one or more HMVP candidates in the second subset of one or more HMVP candidates in the HMVP candidate history table that follow the first subset of one or more HMVP candidates to the motion vector predictor list without comparing the one or more HMVP candidates from the second subset to the entries in the motion vector predictor list.
[0223] The processing circuit system may be configured to encode a current block of video data using the motion vector predictor list (406). As an example, where the processing circuit system represents video decoder 300, the processing circuit system may be configured to retrieve motion vector information from an entry in the motion vector predictor list, determine a motion vector for the current block based on the retrieved motion vector information, determine a prediction block based on the motion vector, and add the prediction block to the received residual information indicating the difference between the prediction block and the current block to reconstruct the current block. As another example, where the processing circuit system represents video encoder 200, the processing circuit system may be configured to determine a motion vector for the current block identifying the prediction block, signal information indicating an entry into the motion vector predictor list based on the determined motion vector for the current block, and signal residual information indicating the difference between the prediction block and the current block.
[0224] It should be appreciated that, depending on the example, certain actions or events of any technique described herein may be performed in a different order, may be added, combined, or omitted altogether (e.g., not all described actions or events are necessary for the practice of the technique). Additionally, in some examples, actions or events may be performed concurrently, e.g., through multithreading, interrupt handling, or multiple processors, rather than sequentially.
[0225] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including, for example, any medium that facilitates the transmission of a computer program from one place to another according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) non-transitory, tangible computer-readable storage media or (2) communication media such as signals or carrier waves. Data storage media may be any available media 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 computer-readable media.
[0226] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send instructions from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but point to non-temporary tangible storage media. Disks and optical disks used herein include compact discs (CDs), laser optical disks, optical disks, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein disks usually reproduce data magnetically, while optical disks reproduce data optically with lasers. The above combination should also be included in the scope of computer-readable media.
[0227] Instructions may be executed by one or more processors such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. Additionally, 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. Furthermore, these techniques may be fully implemented in one or more circuits or logic elements.
[0228] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handheld devices, integrated circuits (ICs), or sets of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units including one or more processors as described above in combination with appropriate software and / or firmware.
[0229] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for encoding and decoding video data, the method include: constructing a history-based motion vector prediction (HMVP) candidate history table including motion vector information of previously coded blocks extending beyond adjacent neighboring blocks of a current block of the video data; Build a motion vector predictor list; Adding one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein adding one or more HMVP candidates from the HMVP candidate history table comprises: comparing a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, wherein the two entries in the motion vector predictor list include an entry for a left neighboring block of the current block and an entry for an upper neighboring block of the current block; and When the first HMVP candidate is different from the two entries in the motion vector predictor list, adding the first HMVP candidate to the motion vector predictor list; as well as The current block of video data is encoded and decoded using the motion vector predictor list.
2. The method according to claim 1, wherein adding one or more HMVP candidates further include: comparing a second HMVP candidate in the HMVP candidate history table with the two entries in the motion vector predictor list and not with other entries in the motion vector predictor list; as well as When the second HMVP candidate is different from the two entries in the motion vector predictor list, the second HMVP candidate is added to the motion vector predictor list.
3. The method according to claim 1, wherein the adding of the one or more HMVP candidates include: The one or more HMVP candidates are added for the current block, the current block being encoded and decoded in one of a merge mode, an advanced motion vector prediction (AMVP) mode, or an intra block copy (IBC) merge mode.
4. The method of claim 1 , wherein the two entries in the motion vector predictor list include: A first entry is for a left neighboring block of the current block and a second entry is for an above neighboring block of the current block.
5. The method of claim 1, wherein adding the one or more HMVP candidates comprises adding a first subset of one or more HMVP candidates, the method further comprising: include: One or more HMVP candidates in a second subset of one or more HMVP candidates following the first subset of the one or more HMVP candidates in the HMVP candidate history table are added to the motion vector predictor list without comparing the one or more HMVP candidates from the second subset with entries in the motion vector predictor list.
6. The method of claim 1, wherein the motion vector predictor list is constructed include: The motion vector predictor list is constructed using motion information of one or more spatially neighboring blocks or collocated blocks.
7. The method of claim 1, wherein encoding and decoding the current block comprises decoding the current block, and wherein decoding the current block include: retrieving motion vector information from an entry of the motion vector predictor list; determining a motion vector of the current block based on the retrieved motion vector information; determining a prediction block based on the motion vector; as well as The prediction block is added to the received residual information indicating a difference between the prediction block and the current block to reconstruct the current block.
8. The method of claim 1, wherein encoding and decoding the current block comprises encoding the current block, and wherein encoding the current block include: determining a motion vector of the current block for identifying a prediction block; signaling information indicating an entry into the motion vector predictor list based on the determined motion vector of the current block; as well as Residual information indicating a difference between the predicted block and the current block is signaled.
9. A device for encoding and decoding video data, the device include: Memory, configured to store: a history-based motion vector prediction (HMVP) candidate history table including motion vector information of previously coded blocks extending beyond adjacent neighboring blocks of a current block of the video data, and Motion vector predictor list; as well as A processing circuit system is configured to: Constructing the HMVP candidate history table for storage in the memory; constructing the motion vector predictor list for storage in the memory; adding one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein to add the one or more HMVP candidates from the HMVP candidate history table, the processing circuit system is configured to: comparing a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, wherein the two entries in the motion vector predictor list include an entry for a left neighboring block of the current block and an entry for an upper neighboring block of the current block; and When the first HMVP candidate is different from the two entries in the motion vector predictor list, adding the first HMVP candidate to the motion vector predictor list; as well as The current block of video data is encoded and decoded using the motion vector predictor list stored in the memory.
10. The apparatus of claim 9, wherein to add one or more HMVP candidates, the processing circuitry is configured to: comparing a second HMVP candidate in the HMVP candidate history table with the two entries in the motion vector predictor list and not with other entries in the motion vector predictor list; and When the second HMVP candidate is different from the two entries in the motion vector predictor list, the second HMVP candidate is added to the motion vector predictor list.
11. The apparatus of claim 9, wherein to add the one or more HMVP candidates, the processing circuit system is configured to: add the one or more HMVP candidates for the current block, the current block being encoded and decoded in one of a merge mode, an advanced motion vector prediction (AMVP) mode, or an intra block copy (IBC) merge mode.
12. The apparatus of claim 9, wherein the two entries in the motion vector predictor list include: A first entry is for a left neighboring block of the current block and a second entry is for an above neighboring block of the current block.
13. The apparatus of claim 9, wherein to add the one or more HMVP candidates, the processing circuitry is configured to add a first subset of one or more HMVP candidates, and wherein the processing circuitry is configured to: One or more HMVP candidates in a second subset of one or more HMVP candidates following the first subset of the one or more HMVP candidates in the HMVP candidate history table are added to the motion vector predictor list without comparing the one or more HMVP candidates from the second subset with entries in the motion vector predictor list.
14. The apparatus of claim 9, wherein to construct the motion vector predictor list, the processing circuit system is configured to: construct the motion vector predictor list using motion information of one or more spatially neighboring blocks or collocated blocks.
15. The apparatus of claim 9, wherein to encode and decode the current block, the processing circuitry is configured to decode the current block, and wherein to decode the current block, the processing circuitry is configured to: retrieving motion vector information from an entry of the motion vector predictor list; determining a motion vector of the current block based on the retrieved motion vector information; determining a prediction block based on the motion vector; and The prediction block is added to the received residual information indicating a difference between the prediction block and the current block to reconstruct the current block.
16. The apparatus of claim 9, wherein to encode and decode the current block, the processing circuitry is configured to encode the current block, and wherein to encode the current block, the processing circuitry is configured to: determining a motion vector of the current block for identifying a prediction block; signaling information indicative of an entry into the motion vector predictor list based on the determined motion vector of the current block; and Residual information indicating a difference between the predicted block and the current block is signaled.
17. The device of claim 9, wherein the device is a wireless communication device.
18. A non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: constructing a history-based motion vector prediction (HMVP) candidate history table that includes motion vector information of previously coded blocks extending beyond adjacent neighboring blocks of a current block of video data; Build a motion vector predictor list; adding one or more HMVP candidates from the HMVP candidate history table to the motion vector predictor list, wherein the instructions causing the one or more processors to add the one or more HMVP candidates from the HMVP candidate history table include instructions causing the one or more processors to: comparing a first HMVP candidate in the HMVP candidate history table with two entries in the motion vector predictor list without comparing with other entries in the motion vector predictor list, wherein the two entries in the motion vector predictor list include an entry for a left neighboring block of the current block and an entry for an upper neighboring block of the current block; and When the first HMVP candidate is different from the two entries in the motion vector predictor list, adding the first HMVP candidate to the motion vector predictor list; and The current block of video data is encoded and decoded using the motion vector predictor list.
19. The computer-readable storage medium of claim 18, wherein the instructions that cause the one or more processors to add one or more HMVP candidates include instructions that cause the one or more processors to: comparing a second HMVP candidate in the HMVP candidate history table with the two entries in the motion vector predictor list and not with other entries in the motion vector predictor list; and When the second HMVP candidate is different from the two entries in the motion vector predictor list, the second HMVP candidate is added to the motion vector predictor list.
20. The computer-readable storage medium of claim 18, wherein the instructions causing the one or more processors to add the one or more HMVP candidates include instructions causing the one or more processors to perform the following operations: adding the one or more HMVP candidates for the current block, the current block being encoded and decoded in one of a merge mode, an advanced motion vector prediction (AMVP) mode, or an intra block copy (IBC) merge mode.
21. The computer-readable storage medium of claim 18, wherein the two entries in the motion vector predictor list include: A first entry is for a left neighboring block of the current block and a second entry is for an above neighboring block of the current block.
22. The computer-readable storage medium of claim 18, wherein the instructions causing the one or more processors to add the one or more HMVP candidates include instructions causing the one or more processors to add a first subset of one or more HMVP candidates, wherein the instructions further include instructions causing the one or more processors to: One or more HMVP candidates in a second subset of one or more HMVP candidates following the first subset of the one or more HMVP candidates in the HMVP candidate history table are added to the motion vector predictor list without comparing the one or more HMVP candidates from the second subset with entries in the motion vector predictor list.
23. The computer-readable storage medium of claim 18, wherein the instructions causing the one or more processors to construct the motion vector predictor list include instructions causing the one or more processors to perform the following operations: construct the motion vector predictor list using motion information of one or more spatially neighboring blocks or collocated blocks.
24. The computer-readable storage medium of claim 18, wherein the instructions causing the one or more processors to encode and decode the current block include instructions causing the one or more processors to decode the current block, and wherein the instructions causing the one or more processors to decode the current block include instructions causing the one or more processors to: retrieving motion vector information from an entry of the motion vector predictor list; determining a motion vector of the current block based on the retrieved motion vector information; determining a prediction block based on the motion vector; and The prediction block is added to the received residual information indicating a difference between the prediction block and the current block to reconstruct the current block.
25. The computer-readable storage medium of claim 18, wherein the instructions causing the one or more processors to encode and decode the current block include instructions causing the one or more processors to encode the current block, and wherein the instructions causing the one or more processors to encode the current block include instructions causing the one or more processors to: determining a motion vector of the current block for identifying a prediction block; signaling information indicating an entry into the motion vector predictor list based on the determined motion vector of the current block; and Residual information indicating a difference between the predicted block and the current block is signaled.
