Motion Vector Prediction
By employing motion vector predictors from non-adjacent blocks and generating synthetic candidates, the techniques improve video compression efficiency, addressing the increased data proportion of motion vectors and enhancing video quality transmission.
Patent Information
- Application Number
- JP2023140905
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-06-08
- Filing Date
- 2023-08-31
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2038-06-11
AI Technical Summary
The proportion of encoded data representing motion vectors in video compression has increased, necessitating improved methods to enhance video compression efficiency, particularly for encoding motion vectors to allow higher quality video transmission through existing infrastructure and reduce network congestion.
Techniques that utilize motion vector predictors from non-adjacent blocks within the current picture, generating synthetic motion vector candidates, and additional temporal motion vector predictors, along with methods for determining most probable intra-prediction modes, to improve motion vector prediction and compression efficiency.
Enhances video compression efficiency by fully utilizing reconstructed motion vector information, reducing the amount of data required for encoding motion vectors, thereby improving video quality transmission and reducing network congestion.
Smart Images

Figure 0007536973000014 
Figure 0007536973000022 
Figure 0007536973000027
Abstract
Description
Claiming priority
[0001] This application claims the benefit of U.S. Provisional Patent Application No. 62 / 519,007, filed June 13, 2017, the entire contents of which are incorporated by reference. [Technical field]
[0002] The present disclosure relates to devices configured to perform video coding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radiotelephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video compression techniques such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), or ITU-T H.265, High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video compression techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004]
[0004] Video compression techniques may perform spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video frame or a portion of a video frame) may be partitioned into video blocks, such as coding tree blocks and coding blocks. The spatial or temporal prediction produces a predictive block for a block to be coded. The residual data represents pixel differences between the original block to be coded and the predictive block. For further compression, the residual data may be transformed from the pixel domain to a transform domain, resulting in residual transform coefficients, which may then be quantized. Summary of the Invention
[0005]
[0005] Generally, this disclosure describes techniques related to motion vector prediction. The techniques of this disclosure may be applied to either existing video codecs, such as High Efficiency Video Coding (HEVC), or any future video coding standard.
[0006]
[0006] In one example, the disclosure describes a method for decoding video data, the method comprising: determining, by a video decoder, a motion vector of a non-adjacent block of a current picture of the video data; determining, by the video decoder, a motion vector predictor (MVP) for the current block based on the motion vector of the non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture; determining, by the video decoder, a motion vector for the current block based on the MVP for the current block; determining, by the video decoder, a predictive block based on the motion vector of the current block; and reconstructing, by the video decoder, sample values of the current picture based on the predictive block.
[0007]
[0007] In another example, this disclosure describes a method for encoding video data, the method comprising: determining, by a video encoder, a motion vector of a non-adjacent block of a current picture of the video data; determining, by the video encoder, a motion vector predictor (MVP) for a current block based on the motion vector of the non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture; determining, by the video encoder, a motion vector for a current block; determining, by the video encoder, a predictive block based on the motion vector of the current block, where the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; and generating, by the video encoder, residual sample values based on the predictive block.
[0008]
[0008] In another example, the disclosure describes an apparatus for decoding video data, the apparatus comprising one or more storage media configured to store the video data and one or more processors, the one or more processors configured to: determine motion vectors of non-adjacent blocks of a current picture of the video data; determine a motion vector predictor (MVP) for a current block based on the motion vectors of non-adjacent blocks that are not adjacent to a current block of the current picture, the non-adjacent blocks being non-adjacent to a current block of the current picture; determine a motion vector for the current block based on the MVP for the current block; determine a predictive block based on the motion vector of the current block; and reconstruct sample values of the current picture based on the predictive block.
[0009]
[0009] In another example, this disclosure describes an apparatus for encoding video data, the method comprising: determining, by a video encoder, a motion vector of a non-adjacent block of a current picture of the video data; determining, by the video encoder, a motion vector predictor (MVP) for a current block based on the motion vector of the non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture; determining, by the video encoder, a motion vector for a current block; determining, by the video encoder, a predictive block based on the motion vector of the current block, where the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; and generating, by the video encoder, residual sample values based on the predictive block.
[0010]
[0010] In another example, the disclosure describes an apparatus for decoding video data, the apparatus comprising: means for determining a motion vector of a non-adjacent block of a current picture of the video data; means for determining a motion vector predictor (MVP) for a current block based on the motion vector of a non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture; means for determining a motion vector of the current block based on the MVP for the current block; means for determining a predictive block based on the motion vector of the current block; and means for reconstructing sample values of the current picture based on the predictive block.
[0011]
[0011] In another example, the disclosure describes an apparatus for encoding video data, the apparatus comprising: means for determining a motion vector of a non-adjacent block of a current picture of the video data; means for determining a motion vector predictor (MVP) for a current block based on the motion vector of the non-adjacent block, where the non-adjacent block is not adjacent to the current block of the current picture; means for determining a motion vector of the current block; means for determining a predictive block based on the motion vector of the current block, where the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; and means for generating a residual sample value based on the predictive block.
[0012]
[0012] In another example, the disclosure describes a computer-readable storage medium storing instructions that, when executed, cause one or more processors to determine a motion vector of a non-adjacent block of a current picture of video data, determine a motion vector predictor (MVP) for the current block based on the motion vector of the non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture, determine a motion vector for the current block based on the MVP for the current block, determine a predictive block based on the motion vector of the current block, and reconstruct sample values of the current picture based on the predictive block.
[0013]
[0013] In another example, the present disclosure describes a computer-readable storage medium storing instructions that, when executed, cause one or more processors to determine a motion vector of a non-adjacent block of a current picture of video data; determine a motion vector predictor (MVP) for a current block based on the motion vector of a non-adjacent block, where the non-adjacent block is not adjacent to a current block of the current picture; determine a motion vector for the current block; determine a predictive block based on the motion vector of the current block, where the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; and generate residual sample values based on the predictive block.
[0014]
[0014] The details of one or more aspects of this disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the techniques described in this disclosure will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0015] [Figure 1]
[0015] A block diagram illustrating an example video encoding and decoding system that may use one or more techniques described in this disclosure. [Diagram 2]
[0016] FIG. 13 is a diagram of an example of spatial and temporal neighboring motion vector candidates for merge / skip mode. [Diagram 3]
[0017] FIG. 13 is an example of bilateral matching. [Figure 4]
[0018] FIG. 13 is a diagram illustrating an example of template matching. [Diagram 5]
[0019] FIG. 1 is a diagram of an example of unilateral motion estimation in frame-rate up conversion. [Figure 6]
[0020] FIG. 1 is a diagram of an example of decoder-side motion vector refinement based on bi-directional template matching. [Figure 7]
[0021] 1 is a diagram of an example of advanced temporal motion vector prediction motion prediction for a coding unit. [Figure 8]
[0022] A diagram of an example of one coding unit having four sub-blocks and its neighboring blocks. [Figure 9]
[0023] 1 is a block diagram of an example simplified affine motion model for a current affine block. [Figure 10]
[0024] FIG. 13 is a diagram of an example of a simplified affine motion model for the current affine block. [Figure 11]
[0025] FIG. 2 is a diagram of an example of a motion compensated prediction motion vector field. [Figure 12]
[0026] FIG. 2 is a diagram of an example of a stored motion vector field. [Figure 13]
[0027] FIG. 13 is a diagram of an example of motion vector prediction for AF_INTER. [Figure 14A]
[0028] FIG. 13 is a block diagram showing the selection order for candidate blocks for AF_MERGE. [Figure 14B]
[0029] 1 is a block diagram showing candidates for AF_MERGE when the bottom-left candidate block is coded in affine mode. [Figure 15]
[0030] 1 is a block diagram illustrating example non-adjacent blocks in accordance with techniques of this disclosure. [Figure 16]
[0031] 1 is a block diagram illustrating an example of non-adjacent block selection in accordance with techniques of this disclosure. [Figure 17]
[0032] FIG. 1 is a block diagram illustrating an example of non-adjacent block selection based on a parent block. [Figure 18A]
[0033] 1 is a block diagram illustrating an example of repositioning non-adjacent blocks in accordance with techniques of this disclosure. [Figure 18B]
[0034] 1 is a block diagram illustrating an example of repositioning non-adjacent blocks in accordance with techniques of this disclosure. [Figure 19A]
[0035] 4 is a block diagram illustrating an example of thresholds for modifying non-adjacent blocks in accordance with techniques of this disclosure. [Figure 19B]
[0036] 4 is a block diagram illustrating an example of thresholds for modifying non-adjacent blocks in accordance with techniques of this disclosure. [Figure 20]
[0037] 1 is a block diagram illustrating an example of non-adjacent block selection in accordance with techniques of this disclosure. [Figure 21]
[0038] 1 is a block diagram illustrating an example of non-adjacent block selection in accordance with techniques of this disclosure. [Figure 22]
[0039] 1 is a block diagram illustrating an example of non-adjacent block selection in accordance with techniques of this disclosure. [Figure 23]
[0040] 1 is a block diagram illustrating an example of non-adjacent block selection based on a parent block, in accordance with techniques of this disclosure. [Figure 24]
[0041] 1 is a block diagram illustrating an example video encoder that may implement one or more techniques described in this disclosure. [Diagram 25]
[0042] 1 is a block diagram illustrating an example video decoder that may implement one or more techniques described in this disclosure. [Figure 26]
[0043] 6 is a flowchart illustrating an example operation of a video encoder for encoding video data, in accordance with one or more techniques of this disclosure. [Figure 27]
[0044] 6 is a flowchart illustrating an example operation of a video decoder to decode video data, in accordance with one or more techniques of this disclosure. [Figure 28]
[0045] 1 is a flowchart illustrating an example operation for determining an NA-SMVP using frame rate up-conversion (FRUC) motion vector candidates in accordance with techniques of this disclosure. [Figure 29]
[0046] 11 is a flowchart illustrating an example operation of a video encoder that includes combining candidates in a list of MVP candidates for a current block, in accordance with one or more techniques of this disclosure. [Diagram 30]
[0047] 6 is a flowchart illustrating an example operation of a video decoder that includes combining candidates in a list of MVP candidates for a current block, in accordance with one or more techniques of this disclosure. [Diagram 31]
[0048] 6 is a flowchart illustrating an example operation of a video encoder for encoding video data in accordance with techniques of this disclosure. [Diagram 32]
[0049] 6 is a flowchart illustrating an example operation of a video decoder for decoding video data in accordance with techniques of this disclosure. [Diagram 33]
[0050] 6 is a flowchart illustrating an example operation of a video encoder for encoding video data in accordance with techniques of this disclosure. [Diagram 34]
[0051] 6 is a flowchart illustrating an example operation of a video decoder for decoding video data in accordance with techniques of this disclosure. [Diagram 35]
[0052] 6 is a flowchart illustrating an example operation of a video encoder for encoding video data in accordance with techniques of this disclosure. [Diagram 36]
[0053] 6 is a flowchart illustrating an example operation of a video decoder for decoding video data in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016]
[0054] As video compression has improved, the proportion of encoded data used to represent motion vectors has increased. Therefore, it may be desirable to improve how motion vectors are encoded to achieve greater video compression. Achieving greater video compression is desirable for many reasons, such as being able to send higher quality video data through existing infrastructure and reducing network congestion. Motion vector prediction is one common way to reduce the amount of data used to encode a motion vector for a block. In most motion vector prediction systems, a video encoder determines a list of motion vector predictors for a block, selects a motion vector predictor, and then signals the position in the list of the selected motion vector. A video decoder determines the same list of motion vector predictors and determines the selected motion vector predictor based on the data signaled in the bitstream. The video decoder may then use the motion vector predictor to determine one or more motion vectors for the block.
[0017]
[0055] This disclosure describes techniques that may improve motion vector prediction, thereby potentially improving video compression efficiency, by more fully using reconstructed motion vector information. For example, this disclosure describes techniques that use a motion vector predictor from one or more blocks of a current picture that are not spatially adjacent to a current block of the current picture. In this example, a video coder (e.g., a video encoder or video decoder) may determine a motion vector of a non-adjacent block of a current picture of video data. The non-adjacent block is not adjacent to a current block of the current picture. Furthermore, in this example, the video coder may determine a motion vector predictor (MVP) for the current block based on the motion vector of the non-adjacent block. The video coder may then determine a motion vector for the current block (e.g., based on the MVP for the current block). Furthermore, the video coder may determine a predictive block based on the motion vector of the current block.
[0018]
[0056] In addition, this disclosure describes techniques for generating a composite motion vector candidate. This disclosure also describes techniques for generating additional temporal motion vector predictor candidates. In addition, this disclosure describes techniques that use intra-prediction modes from one or more blocks of a current picture that are not spatially adjacent to a current block of the current picture to determine one or more most probable intra-prediction modes in a set of most probable intra-prediction modes for a current block. The techniques of this disclosure, or subcombinations thereof, may be used together or separately.
[0019]
[0057] FIG. 1 is a block diagram illustrating an example video encoding and decoding system 10 that may utilize techniques of this disclosure. As shown in FIG. 1, system 10 includes a source device 12 that provides encoded video data to be subsequently decoded by a destination device 14. Source device 12 may be an apparatus for encoding video data, and destination device 14 may be an apparatus for decoding video data. In particular, source device 12 provides the encoded video data to destination device 14 via a computer-readable medium 16. Source device 12 and destination device 14 may comprise any of a wide range of devices and apparatuses, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, tablet computers, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, and the like. In some cases, source device 12 and destination device 14 are equipped for wireless communication. Thus, source device 12 and destination device 14 may be wireless communication devices. The techniques described in this disclosure may be applied to wireless and / or wired applications. Source device 12 is an exemplary video encoding device (i.e., a device for encoding video data). Destination device 14 is an exemplary video decoding device (i.e., a device for decoding video data).
[0020]
[0058] The illustrated system 10 of FIG. 1 is only an example. The techniques for processing video data may be implemented by any digital video encoding and / or decoding device. In some examples, the techniques may be implemented by a video encoder / decoder, commonly referred to as a "codec." Source device 12 and destination device 14 are examples of coding devices, such that source device 12 generates coded video data for transmission to destination device 14. In some examples, source device 12 and destination device 14 operate substantially symmetrically, such that each of source device 12 and destination device 14 includes video encoding and decoding components. Thus, system 10 may support one-way or two-way video transmission between source device 12 and destination device 14, for example, video streaming, video playback, video broadcasting, or video telephony.
[0021]
[0059] In the example of Figure 1, source device 12 includes a video source 18, a storage medium 19 configured to store video data, a video encoder 20, and an output interface 22. Destination device 14 includes an input interface 26, a storage medium 28 configured to store encoded video data, a video decoder 30, and a display device 32. In other examples, source device 12 and destination device 14 include other components or configurations. For example, source device 12 may receive video data from an external video source, such as an external camera. Similarly, destination device 14 may interface with an external display device rather than including an integrated display device.
[0022]
[0060] Video source 18 is a source of video data. The video data may comprise a series of pictures. Video source 18 may include a video capture device such as a video camera, a video archive containing previously captured video, and / or a video feed interface for receiving video data from a video content provider. In some examples, video source 18 generates computer graphics-based video data or a combination of live video, archived video, and computer-generated video. Storage medium 19 may be configured to store the video data. In each case, the captured video, pre-captured video, or computer-generated video may be encoded by video encoder 20.
[0023]
[0061] Output interface 22 may output the encoded video information to computer-readable medium 16. Output interface 22 may comprise various types of components or devices. For example, output interface 22 may comprise a wireless transmitter, a modem, a wired networking component (e.g., an Ethernet card), or another physical component. In examples in which output interface 22 comprises a wireless transmitter, output interface 22 may be configured to transmit data, such as encoded video data, modulated according to a cellular communication standard, such as 4G, 4G-LTE, LTE Advanced, 5G, etc. In some examples in which output interface 22 comprises a wireless transmitter, output interface 22 may be configured to transmit data, such as encoded video data, modulated according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the circuitry of output interface 22 is incorporated into the circuitry of video encoder 20 and / or other components of source device 12. For example, video encoder 20 and output interface 22 may be part of a system on a chip (SoC), which may also include other components, such as a general-purpose microprocessor, a graphics processing unit, etc.
[0024]
[0062] The destination device 14 may receive the encoded video data to be decoded via a computer-readable medium 16. The computer-readable medium 16 may comprise any type of medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In some examples, the computer-readable medium 16 comprises a communication medium for enabling the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful for enabling communication from the source device 12 to the destination device 14. The destination device 14 may comprise one or more data storage media configured to store the encoded video data and the decoded video data.
[0025]
[0063] In some examples, output interface 22 may output data, such as encoded video data, to an intermediate device, such as a storage device. Similarly, input interface 26 of destination device 14 may receive encoded data from an intermediate device. The intermediate device 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. In some examples, the intermediate device corresponds to a file server. Exemplary file servers include a web server, an FTP server, a network attached storage (NAS) device, or a local disk drive.
[0026]
[0064] Destination device 14 may access the encoded video data through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both, that is suitable for accessing encoded video data stored on a file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.
[0027]
[0065] Computer-readable medium 16 may include a temporary medium, such as a wireless broadcast or wired network transmission, or a storage medium (i.e., non-transitory storage medium), such as a hard disk, flash drive, compact disc, digital video disc, Blu-ray disc, or other computer-readable medium. In some examples, a network server (not shown) may receive encoded video data from source device 12, e.g., via a network transmission, and provide the encoded video data to destination device 14. Similarly, a computing device of a media production facility, such as a disc stamping facility, may receive encoded video data from source device 12 and generate a disc including the encoded video data. Thus, computer-readable medium 16 may be understood to include one or more computer-readable media of various forms in various examples.
[0028]
[0066] The input interface 26 of the destination device 14 receives data from the computer-readable medium 16. The input interface 26 may comprise various types of components or devices. For example, the input interface 26 may comprise a wireless receiver, a modem, a wired networking component (e.g., an Ethernet card), or another physical component. In examples where the input interface 26 comprises a wireless receiver, the input interface 26 may be configured to receive data, such as a bitstream, modulated according to a cellular communication standard, such as 4G, 4G-LTE, LTE Advanced, 5G, etc. In some examples where the input interface 26 comprises a wireless receiver, the input interface 26 may be configured to receive data, such as a bitstream, modulated according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the circuitry of the input interface 26 may be incorporated into the circuitry of the video decoder 30 and / or other components of the destination device 14. For example, the video decoder 30 and the input interface 26 may be part of a SoC. An SoC may also include other components, such as a general purpose microprocessor, a graphics processing unit, etc.
[0029]
[0067] Storage medium 28 may be configured to store encoded video data, such as the encoded video data (e.g., a bitstream) received by input interface 26. Display device 32 displays the decoded video data to a user. Display device 32 may comprise any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0030]
[0068] The video encoder 20 and the video decoder 30 may each be implemented as any of a variety of suitable circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the techniques are implemented partially in software, the device may store instructions of the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to implement the techniques of the present disclosure. Each of the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (codec) in the respective device. In some examples, the video encoder 20 and the video decoder 30 encode and decode video data according to a video coding standard or specification. For example, video encoder 20 and video decoder 30 may encode and decode video data in accordance with 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, or another video coding standard or specification. In some examples, video encoder 20 and video decoder 30 encode and decode video data in accordance with High Efficiency Video Coding (HEVC), also known as ITU-T H.265, its range and screen content coding extensions, its 3D video coding extension (3D-HEVC), its multi-view extension (MV-HEVC), or its scalable extension (SHVC).HEVC, SHVC, and 3D-HEVC were developed by the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG) through the Joint Collaboration Team on Video Coding (JCT-VC) and the Joint Collaboration Team on 3D Video Coding Extension Development (JCT-3V).
[0031]
[0069] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC1 / SC29 / WG11) are currently studying the potential need for standardization of future video coding technologies with compression capabilities significantly beyond those of the current HEVC standard (including its current and near-term extensions for screen content coding and high dynamic range coding). The groups are collaborating on this exploration activity in a joint collaboration effort known as the Joint Video Exploration Team (JVET) to evaluate compression technology designs proposed by their experts in this area. The JVET met for the first time on October 19-21, 2015. Chen et al., "Algorithm Description of Joint Exploration Test Model 5," Joint Video Exploration Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC 1 / SC29 / WG11, 5th Meeting, Geneva, Switzerland, January 12-20, 2017, document JVET E-1001 is the algorithm description of Joint Exploration Test Model 6 (JEM5). Chen et al., "Algorithm Description of Joint Exploration Test Model 6," Joint Video Exploration Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC 1 / SC29 / WG11, 6th Meeting, Hobart, Australia, March 31-April 7, 2017, document JVET F-1001 is the algorithm description of Joint Exploration Test Model 6 (JEM6). Video encoder 20 and video decoder 30 may operate according to a joint search model or according to the new Versatile Video Coding (VVC) standard currently under development.
[0032]
[0070] This disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to communication of syntax elements and / or other data used to decode encoded video data. Such communication may occur in real-time or near real-time. Alternatively, such communication may occur over a period of time, such as may occur when storing syntax elements in a bitstream to a computer-readable storage medium at the time of encoding, and then the elements may be retrieved by a decoding device at any time after being stored to the medium.
[0033]
[0071] In HEVC and other video coding specifications, video data includes a series of pictures. A picture is sometimes called a "frame." A picture may include one or more sample arrays. Each respective sample array of a picture may comprise an array of samples for each color component. A picture is a set of S L , S Cb , and S Cr The sample array may include three sample arrays denoted as S L is a two-dimensional array (i.e., block) of luma samples. S Cb is a two-dimensional array of Cb chroma samples. S Cr is a two-dimensional array of Cr chroma samples. In other cases, the picture may be monochrome and contain only an array of luma samples.
[0034]
[0072] As part of encoding the video data, video encoder 20 may encode pictures of the video data. In other words, video encoder 20 may generate encoded representations of the pictures of the video data. The encoded representations of the pictures are sometimes referred to herein as “coded pictures” or “encoded pictures.”
[0035]
[0073] To generate an encoded representation of a picture, video encoder 20 may encode a block of the picture. Video encoder 20 may include an encoded representation of the video block in a bitstream. In some examples, to encode a block of a picture, video encoder 20 performs intra prediction or inter prediction to generate one or more predictive blocks. Furthermore, video encoder 20 may generate residual data for the block. The residual block comprises residual samples. Each residual sample may indicate a difference between a sample of one of the generated predictive blocks and a corresponding sample of the block. In this manner, video encoder 20 may generate residual sample values based on the predictive block. Video encoder 20 may apply a transform to the block of residual samples to generate transform coefficients. Furthermore, video encoder 20 may quantize the transform coefficients. In some examples, video encoder 20 may generate one or more syntax elements to represent the transform coefficients. Video encoder 20 may entropy encode one or more of the syntax elements representing the transform coefficients.
[0036]
[0074] More specifically, when encoding video data according to HEVC or other video coding specifications, to generate an encoded representation of a picture, video encoder 20 may partition each sample array of a picture into coding tree blocks (CTBs) and encode the CTBs. A CTB may be an N×N block of samples in a sample array of a picture. In the HEVC Main Profile, technically, an 8×8 CTB size may be supported, but the size of the CTB may range from 16×16 to 64×64.
[0037]
[0075] A coding tree unit (CTU) of a picture may comprise one or more CTBs and may comprise a syntax structure used to code samples of one or more CTBs. For example, each CTU may comprise a CTB for luma samples, two corresponding CTBs for chroma samples, and a syntax structure used to code samples of the CTBs. In a monochrome picture or a picture with three separate color planes, a CTU may comprise a single CTB and a syntax structure used to code samples of that CTB. A CTU may also be referred to as a "tree block" or "largest coding unit" (LCU). In this disclosure, a "syntax structure" may be defined as zero or more syntax elements present together in a bitstream in a specified order. In some codecs, a coded picture is a coded representation that includes all CTUs of that picture.
[0038]
[0076] To encode a CTU of a picture, video encoder 20 may partition the CTB of the CTU into one or more coding blocks. A coding block is an N×N block of samples. In some codecs, to encode a CTU of a picture, video encoder 20 may recursively perform quadtree partitioning on the coding tree blocks of the CTU to partition the CTB into coding blocks, hence the name "coding tree unit". A coding unit (CU) may comprise one or more coding blocks and a syntax structure used to code samples of one or more coding blocks. For example, a CU may comprise a coding block of luma samples of a picture having a luma sample array, a Cb sample array, and a Cr sample array, two corresponding coding blocks of chroma samples of the picture, and a syntax structure used to code samples of those coding blocks. In a monochrome picture or a picture with three separate color planes, a CU may comprise a single coding block and a syntax structure used to code samples of that coding block. In HEVC, the largest coding unit in a slice is called a coding tree block (CTB) or coding tree unit (CTU). The CTB contains a quadtree whose nodes are CUs. The size of the CTB can range from 16x16 to 64x64 in the HEVC Main Profile (although technically an 8x8 CTB size can be supported). A coding unit (CU) can be the same size of the CTB, but can be as small as 8x8. Each coding unit is coded using one mode.
[0039]
[0077] Further, video encoder 20 may encode a CU of a picture of the video data. In some codecs, as part of encoding a CU, video encoder 20 may partition a coding block of the CU into one or more predictive blocks. A predictive block is a rectangular (i.e., square or non-square) block of samples to which the same prediction is applied. A prediction unit (PU) of a CU may comprise one or more predictive blocks of the CU and a syntax structure used to predict the one or more predictive blocks. For example, a PU may comprise a predictive block of luma samples and two corresponding predictive blocks of chroma samples and a syntax structure used to predict the predictive blocks. In a monochrome picture or a picture with three separate color planes, a PU may comprise a single predictive block and a syntax structure used to predict the predictive block.
[0040]
[0078] Video encoder 20 may generate predictive blocks (e.g., luma, Cb, and Cr prediction blocks) for the predictive blocks (e.g., luma, Cb, and Cr prediction blocks) of the PU of the CU. Video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks. If video encoder 20 uses intra prediction to generate the predictive blocks, video encoder 20 may generate the predictive blocks based on decoded samples of the picture including the CU. If video encoder 20 uses inter prediction to generate the predictive blocks of the PU of the current picture, video encoder 20 may generate the predictive blocks of the PU based on decoded samples of a reference picture (i.e., a picture other than the current picture). In HEVC, video encoder 20 generates a "prediction_unit" syntax structure within a "coding_unit" syntax structure for an inter-predicted PU but does not generate a "prediction_unit" syntax structure within a "coding_unit" syntax structure for an intra-predicted PU. Rather, in HEVC, syntax elements related to intra-predicted PUs are directly included in the "coding_unit" syntax structure. When a CU is inter-coded, it may be further partitioned into two or four PUs, or it may be just one PU when no further partitioning is applied. When there are two PUs in one CU, they may be 1 / 2 size rectangles, or two rectangle sizes with 1 / 4 or 3 / 4 size of the CU. When a CU is inter-coded, there is one set of motion information for each PU. Furthermore, each PU is coded with a unique inter prediction mode to derive the set of motion information. In this disclosure, the term "block" may refer to a CU, a PU, or any other coding unit used for video coding purposes.
[0041]
[0079] A video coder, such as video encoder 20 or video decoder 30, may perform intra prediction using an intra prediction mode selected from a plurality of available intra prediction modes. The intra prediction modes may include a directional intra prediction mode, sometimes referred to as an intra prediction direction. Different directional intra prediction modes correspond to different angles. In some examples, to determine a value of a current sample of a predictive block using a directional intra prediction mode, the video coder may determine a point where a line passing through the current sample at an angle corresponding to the directional intra prediction mode intersects a set of boundary samples. The boundary samples may comprise a sample in the column immediately to the left of the predictive block and a sample in the row immediately above the predictive block. If the point is between two of the boundary samples, the video coder may interpolate or otherwise determine a value corresponding to the point. If the point corresponds to a single one of the boundary samples, the video coder may determine that the value of the point is equal to the boundary sample. The video coder may set the value of the current sample of the predictive block equal to the determined value of the point.
[0042]
[0080] In HEVC and some other codecs, video encoder 20 encodes a CU using only one prediction mode (i.e., intra prediction or inter prediction). Thus, in HEVC and certain other codecs, video encoder 20 may generate a predictive block for each PU of a CU using intra prediction, or video encoder 20 may generate a predictive block for each PU of a CU using inter prediction. When video encoder 20 uses inter prediction to encode a CU, video encoder 20 may partition the CU into two or four PUs, or one PU corresponds to the entire CU. When there are two PUs in one CU, the two PUs may be a rectangle with a 1 / 2 size, or two rectangles with a 1 / 4 or 3 / 4 size of the CU. In HEVC, there are eight partition modes for CUs coded with inter prediction modes: PART_2N×2N, PART_2N×N, PART_N×2N, PART_N×N, PART_2N×nU, PART_2N×nD, PART_nL×2N, and PART_nR×2N. When a CU is intra predicted, 2N×2N and N×N are the only allowed PU shapes, and a single intra prediction mode is coded within each PU (chroma prediction mode is signaled at the CU level).
[0043]
[0081] Video encoder 20 may generate one or more residual blocks for the CU. For example, video encoder 20 may generate a luma residual block for the CU. Each sample in the luma residual block of the CU indicates a difference between a luma sample in one of the predictive luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Furthermore, video encoder 20 may generate a Cb residual block for the CU. Each sample in the Cb residual block of the CU may indicate a difference between a Cb sample in one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU. Video encoder 20 may also generate a Cr residual block for the CU. Each sample in the Cr residual block of the CU may indicate a difference between a Cr sample in one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.
[0044]
[0082] Further, video encoder 20 may decompose the residual block of a CU into one or more transform blocks. For example, video encoder 20 may use quadtree partitioning to decompose the residual block of a CU into one or more transform blocks. A transform block is a rectangular (e.g., square or non-square) block of samples to which the same transform is applied. A transform unit (TU) of a CU may comprise one or more transform blocks. For example, a TU may comprise a transform block of luma samples, two corresponding transform blocks of chroma samples, and a syntax structure used to transform the transform block samples. Thus, each TU of a CU may have a luma transform block, a Cb transform block, and a Cr transform block. The luma transform block of the TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome picture or a picture with three separate color planes, a TU may comprise a single transform block and the syntax structures used to transform the samples of that transform block.
[0045]
[0083] Video encoder 20 may apply one or more transforms to a transform block of a TU to generate a coefficient block for the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficients may be scalar quantities. In some examples, the one or more transforms convert the transform block from the pixel domain to the frequency domain. Thus, in such examples, the transform coefficients may be scalar quantities considered to be in the frequency domain. A transform coefficient level is an integer quantity that represents a value associated with a particular two-dimensional frequency index in the decoding process prior to scaling for computation of the transform coefficient value.
[0046]
[0084] In some examples, video encoder 20 skips applying a transform to a transform block. In such examples, video encoder 20 may treat the residual sample values in the same manner as transform coefficients. Thus, in examples in which video encoder 20 skips applying a transform, the following description of transform coefficients and coefficient blocks may be applicable to the transform blocks of residual samples.
[0047]
[0085] According to JEM, a video coder (such as video encoder 200) partitions a picture into multiple coding tree units (CTUs). Video encoder 200 may partition the CTUs according to a tree structure, such as a quadtree-binary tree (QTBT) structure. JEM's QTBT structure eliminates the notion of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. Thus, in the context of JEM, the terms "PU" or "TU" may apply to a CU. JEM's QTBT structure includes two levels, a first level partitioned according to a quadtree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0048]
[0086] In some examples, video encoder 200 and video decoder 300 may use a single QTBT structure to represent each of the luminance and chrominance components, and in other examples, video encoder 200 and video decoder 300 may use two or more QTBT structures, such as one QTBT structure for the luminance component and another QTBT structure for both chrominance components (or two QTBT structures for each chrominance component).
[0049]
[0087] After generating a coefficient block, video encoder 20 may quantize the coefficient block to possibly reduce the amount of data used to represent the coefficient block, potentially providing further compression. Quantization generally refers to a process in which a range of values is compressed to a single value. For example, quantization may be performed by dividing the value by a constant and then rounding to the nearest integer. To quantize a coefficient block, video encoder 20 may quantize transform coefficients of the coefficient block. Quantization may reduce the bit depth associated with some or all of the transform coefficients. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m. In some examples, video encoder 20 skips quantization.
[0050]
[0088] Video encoder 20 may generate syntax elements indicating some or all of the potentially quantized transform coefficients. Video encoder 20 may entropy encode one or more of the syntax elements indicating the quantized transform coefficients. For example, video encoder 20 may perform Context-Adaptive Binary Arithmetic Coding (CABAC) on the syntax elements indicating the quantized transform coefficients. Thus, a coding block (e.g., a coding CU) may include entropy encoded syntax elements indicating the quantized transform coefficients.
[0051]
[0089] Video encoder 20 may output a bitstream including the encoded video data. In other words, video encoder 20 may output a bitstream including an encoded representation of the video data. The encoded representation of the video data may include an encoded representation of a picture of the video data. For example, the bitstream may comprise a sequence of bits that form an encoded picture representation of the video data and associated data. In some examples, the encoded picture representation may include an encoded representation of a block of the picture.
[0052]
[0090] Video decoder 30 may receive a bitstream generated by video encoder 20. As mentioned above, the bitstream may comprise an encoded representation of the video data. Video decoder 30 may decode the bitstream to reconstruct pictures of the video data. As part of decoding the bitstream, video decoder 30 may obtain syntax elements from the bitstream. Video decoder 30 may reconstruct pictures of the video data based at least in part on the syntax elements obtained from the bitstream. The process for reconstructing pictures of the video data may generally be the inverse of the process performed by video encoder 20 to encode the pictures.
[0053]
[0091] For example, as part of decoding a picture of the video data, the video decoder 30 may use inter prediction or intra prediction to generate a predictive block. Furthermore, the video decoder 30 may determine transform coefficients based on syntax elements obtained from the bitstream. In some examples, the video decoder 30 inverse quantizes the determined transform coefficients. Inverse quantization maps quantized values to reconstructed values. For example, the video decoder 30 may inverse quantize the values by determining values multiplied by a quantization step size. Furthermore, the video decoder 30 may apply an inverse transform to the determined transform coefficients to determine values of residual samples. The video decoder 30 may reconstruct a block of the picture based on the residual samples and corresponding samples of the generated predictive block. For example, the video decoder 30 may add the residual samples to corresponding samples of the generated predictive block to determine reconstructed samples of the block.
[0054]
[0092] More specifically, in HEVC and other video coding specifications, video decoder 30 may use inter prediction or intra prediction to generate one or more predictive blocks for each PU of the current CU. Furthermore, video decoder 30 may inverse quantize coefficient blocks of the TUs of the current CU. Video decoder 30 may perform an inverse transform on the coefficient blocks to reconstruct transform blocks of the TUs of the current CU. Video decoder 30 may reconstruct coding blocks of the current CU based on samples of the predictive blocks of the PUs of the current CU and residual samples of the transform blocks of the TUs of the current CU. In some examples, video decoder 30 may reconstruct coding blocks of the current CU by adding samples of the predictive blocks for the PUs of the current CU to corresponding decoded samples of the transform blocks of the TUs of the current CU. By reconstructing coding blocks for each CU of a picture, video decoder 30 may reconstruct the picture.
[0055]
[0093] A slice of a picture may include an integer number of blocks of a picture. For example, in HEVC and other video coding specifications, a slice of a picture may include an integer number of CTUs of a picture. The CTUs of a slice may be consecutively ordered in a scan order, such as a raster scan order. In HEVC and potentially other codecs, a slice is defined as an integer number of CTUs that are contained within an independent slice segment and all subsequent dependent slice segments (if any) that precede the next independent slice segment (if any) in the same access unit. Furthermore, in HEVC and potentially other codecs, a slice segment is defined as an integer number of CTUs that are consecutively ordered in a tile scan and contained within a single NAL unit. A tile scan is a particular consecutive ordering of CTBs that partition a picture, where the CTBs are consecutively ordered in a CTB raster scan within a tile, but the tiles in a picture are consecutively ordered in a raster scan of the tiles of the picture. A tile is a rectangular region of CTBs within a particular tile column and a particular tile row in a picture.
[0056]
[0094] As mentioned above, a video coder (e.g., video encoder 20 or video decoder 30) may apply inter prediction to generate a predictive block for a video block of a current picture. For example, in the context of HEVC and other video coding specifications, the video coder may apply inter prediction to generate a predictive block for a predictive block of a PU of a CU of the current block. When the video coder applies inter prediction to generate a predictive block, the video coder may generate the predictive block based on decoded samples of one or more reference pictures. A reference picture is a picture other than the current picture. The video coder may determine one or more reference picture lists. Each of the reference picture lists may include zero or more reference pictures. In the context of HEVC and other video coding specifications, one of the reference picture lists may be referred to as reference picture list 0 (i.e., RefPicList0 or list0) and another reference picture list may be referred to as reference picture list 1 (i.e., RefPicList1 or list1).
[0057]
[0095] The video coder may apply uni-directional inter prediction or bi-directional inter prediction to generate the predictive block. When the video coder applies uni-directional inter prediction to generate the predictive block for the video block, the video coder determines a single reference block for the video block based on samples of a single reference picture. Furthermore, when the video coder applies uni-directional inter prediction, the video coder may set the predictive block equal to the reference block. When the video coder applies bi-directional inter prediction to generate the predictive block for the video block, the video coder determines two reference blocks for the video block. In some examples, the two reference blocks are in reference pictures in different reference picture lists. Furthermore, when the video coder applies bi-directional inter prediction, the video coder may determine the predictive block based on the two reference blocks. For example, the video coder may determine the predictive block such that each sample of the predictive block is a weighted average of corresponding samples of the two reference blocks. A reference list indicator may be used to indicate which of the reference picture lists includes the reference picture used to determine the reference block.
[0058]
[0096] As described above, the video coder may determine the reference block based on samples of the reference picture. In some examples, the video coder may determine the reference block such that each sample of the reference block is equal to a sample of the reference picture. In some examples, as part of determining the reference block, the video coder may interpolate samples of the reference block from samples of the reference picture. For example, the video coder may determine that a sample of the predictive block is a weighted average of two or more samples of the reference picture.
[0059]
[0097] In some examples, when video encoder 20 performs unidirectional inter prediction, video encoder 20 searches for a reference block in one or more reference pictures in one of the reference picture lists. The reference block may be a block of samples that is similar to the predictive block. In some examples, video encoder 20 uses mean squared error to determine the similarity between the reference block and the predictive block. Furthermore, video encoder 20 may determine motion information for the predictive block. The motion information (i.e., motion parameters) for the predictive block may include a motion vector and a reference index. The motion vector may indicate a spatial displacement between a location of a particular video block in a current picture (i.e., the picture that includes the particular video block) and a location of the reference block in the reference picture. The reference index indicates a position within a reference picture list of a reference frame that includes the reference picture list. The predictive block for a particular video block may be equal to the reference block.
[0060]
[0098] When video encoder 20 performs bidirectional inter prediction for a particular video block, video encoder 20 may search for a first reference block in a reference picture in a first reference picture list ("list 0") and may search for a second reference block in a reference picture in a second reference picture list ("list 1"). Video encoder 20 may generate a predictive block for the particular video block based at least in part on the first and second reference blocks. Further, video encoder 20 may generate a first motion vector indicating a spatial displacement between the particular video block and the first reference block. Video encoder 20 may also generate a first reference index that identifies a location in the first reference picture list of a reference picture that includes the first reference block. Further, video encoder 20 may generate a second motion vector that indicates a spatial displacement between the particular video block and the second reference block. Video encoder 20 may also generate a second reference index that identifies a location in the second reference picture list of a reference picture that includes the second reference block.
[0061]
[0099] When video encoder 20 performs unidirectional inter prediction on a particular video block, video decoder 30 may use the motion information of the particular video block to identify a reference block for the particular video block. Video decoder 30 may then generate a predictive block of the particular video block based on the reference block. When video encoder 20 performs bidirectional inter prediction to determine a predictive block for a particular video block, video decoder 30 may use the motion information of the particular video block to determine two reference blocks. Video decoder 30 may generate a predictive block of the particular video block based on the two reference samples of the particular video block. In this manner, for either unidirectional inter prediction or bidirectional inter prediction, video encoder 20 and video decoder 30 may determine a predictive block based on the motion vector of the block.
[0062]
[0100] Video encoder 20 may signal motion information of a video unit in various manners. Such motion information may include motion vectors, reference indexes, reference picture list indicators, and / or other data related to motion. In some examples, video encoder 20 and video decoder 30 may use motion prediction to reduce an amount of data used to signal motion information. Motion prediction may comprise determining motion information of a video unit (e.g., a PU) based on motion information of one or more other video units. There are various types of motion prediction. For example, merge mode and advanced motion vector prediction (AMVP) mode are two types of motion prediction. That is, in the HEVC standard, there are two inter-prediction modes for a prediction unit (PU), referred to as merge mode (skip is considered as a special case of merge) and advanced motion vector prediction (AMVP) mode, respectively. In either AMVP mode or merge mode, a motion vector (MV) candidate list is maintained for multiple motion vector predictors. See J.-L. Lin, Y.-W. Chen, Y.-W. Huang, and S.-M. Lei, "Motion vector coding in the HEVC standard," Selected Topics in Signal Processing, IEEE Journal, vol. 7, no. 6, pp. 957-968, 2013.
[0063]
[0101] In the merge mode, video encoder 20 generates a candidate list. The candidate list includes a set of candidates indicating motion information of one or more source video units. The source video units may be spatially or temporally neighboring to the current video unit. Furthermore, in the merge mode, video encoder 20 may select a candidate from the candidate list and use the motion information indicated by the selected merge candidate as the motion information of the current video unit. Video encoder 20 may signal a position in the candidate list of the selected candidate. Video decoder 30 may determine an index into the candidate list based on information obtained from the bitstream. Furthermore, video decoder 30 may generate the same candidate list and may determine the selected candidate based on the index. Video decoder 30 may then use the motion information of the selected candidate to generate a predictive block for the current video unit.
[0064]
[0102] Skip mode is similar to merge mode. In skip mode, video encoder 20 and video decoder 30 generate and use a candidate list in the same manner as video encoder 20 and video decoder 30 use a candidate list in merge mode. However, when video encoder 20 uses skip mode to signal motion information of a current video unit, video encoder 20 does not signal residual data for the current video unit. Thus, video decoder 30 may determine a predictive block for the video unit based on one or more reference blocks indicated by the motion information of a selected candidate in the candidate list, without the use of residual data.
[0065]
[0103] In skip and merge modes, a merge index is signaled to indicate which candidate in the merging candidate list is used. No inter prediction indicator, reference index, or motion vector differential is transmitted. In merge mode, two or more types of merging candidates are considered, including spatial motion vector predictor (SMVP) and temporal motion vector predictor (TMVP). In SMVP derivation, up to four merge candidates are selected from the candidates at the positions shown in Figure 2. The order of derivation is A 1 →B 1 →B 0 →A 0 →(B 2 In HEVC, position B 2 is position A 1 , B 1 , B 0 , A 0 When the PU at position A is not available or is intra-coded, or 1 , B 1 , B 0 , A 0 From, ...
[0066]
[0104] In the derivation of TMVP, a scaled motion vector is derived based on a co-located PU that belongs to one of the reference pictures of the current picture in the signaled reference picture list. The reference picture list used for the derivation of the co-located PU may be explicitly signaled in the slice header of the slice of the current picture. The scaled motion vector for the temporal merge candidate may be obtained with the scaled motion vector of the co-located PU using the POC distances, tb and td, where tb is defined to be the POC difference between the reference picture of the current picture and the current picture, and td is defined to be the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate is set equal to 0. The actual realization of the scaling process is described in the HEVC draft specification available at https: / / www.itu.int / rec / T-REC-H.265. For a B slice, two motion vectors, one for reference picture list 0 and the other for reference picture list 1, are obtained and combined to make a bi-predictive merge candidate.
[0067]
[0105] The location of the co-located PU is selected between two candidate locations, C and H, as shown in Figure 2. If the PU at location H is not available, is intra-coded, or is outside the current CTU row (i.e., the CTU row that currently contains the PU), then location C is used. Otherwise, location H is used for derivation of temporal merge candidates.
[0068]
[0106] In addition to SMVP and TMVP, there can be two types of combined merge candidates: (1) combined bi-predictive MVP and (2) 0MVP. Combined bi-predictive MVP is generated by utilizing SMVP and TMVP. In HEVC, combined bi-predictive merge candidates are used for B slices only. For example, two candidates in the original merge candidate list with mvL0 and refIdxL0 or mvL1 and refIdxL1 are used to create a combined bi-predictive merge candidate. 0MVP has one or more motion vectors with magnitude of 0.
[0069]
[0107] In the process of candidate selection, duplicated candidates with the same motion parameters as the previous candidate in the processing order can be removed from the candidate list. This process is defined as a pruning process. Also, to aid in parallel merging processes, candidates in the same merge estimation region (MER) are not considered. In order not to emulate a virtual 2N×2N partition, redundant partition shapes are avoided.
[0070]
[0108] Between each step of generating merge candidates in the merge candidate list, the derivation process may be stopped if the number of merge candidates reaches MaxNumMergeCand. In HEVC and potentially other codecs, MaxNumMergeCand is set equal to 5. Since the number of candidates is constant, the index of the best merge candidate may be encoded using a truncated unary binarization.
[0071]
[0109] The AMVP mode is similar to the merge mode in that video encoder 20 may generate a candidate list and select a candidate from the candidate list. However, for each respective reference block used in determining a predictive block for a current block (i.e., a video unit), video encoder 20 may signal a respective motion vector differential (MVD) for the current block, a respective reference index for the current block, and a respective candidate index indicating a selected candidate in the candidate list. The MVD for the block may indicate the difference between the motion vector of the block and the motion vector of the selected candidate. The reference index for the current block indicates the reference picture from which the reference block is determined.
[0072]
[0110] Furthermore, when the AMVP mode is used, for each respective reference block used in determining a predictive block for the current block, video decoder 30 may determine an MVD for the current block, a reference index for the current block, a candidate index, and a motion vector prediction (MVP) flag. Video decoder 30 may generate the same candidate list and determine a selected candidate in the candidate list based on the candidate index. As mentioned above, the list may include the same reference index as well as the motion vector of a neighboring block associated with a temporal motion vector predictor derived based on motion parameters of the neighboring blocks of the co-located block in the temporal reference picture. Video decoder 30 may reconstruct the motion vector of the current PU by adding the MVD to the motion vector indicated by the selected AMVP candidate. That is, video decoder 30 may determine the motion vector of the current PU based on the motion vector indicated by the selected AMVP candidate and the MVD. Video decoder 30 may then use the reconstructed motion vector, or the motion vector of the current PU, to generate a predictive block for the current PU.
[0073]
[0111] When a video coder (e.g., video encoder 20 or video decoder 30) generates an AMVP candidate list for a current PU, the video coder may derive one or more AMVP candidates based on motion information of PUs (i.e., spatially neighboring PUs) that cover a location that is spatially neighboring to the current PU, and derive one or more AMVP candidates based on motion information of PUs that are temporally neighboring to the current PU. In this disclosure, a PU (or other type of video unit or block) may be said to "cover" a location if a predictive block (or other type of sample block of a video unit) of the PU includes the location. The candidate list may include motion vectors of neighboring blocks associated with the same reference index, as well as a temporal motion vector predictor derived based on motion parameters (i.e., motion information) of neighboring blocks of the co-located block in the temporal reference picture. Candidates in a merge candidate list or an AMVP candidate list based on motion information of PUs (i.e., PUs that are in a different time instance than the current PU) that are temporally neighboring to the current PU may be referred to as TMVP. TMVP is used to improve coding efficiency of HEVC and may differ from other coding tools in that TMVP may need to access motion vectors of frames in the decoded picture buffer, and more specifically, in the reference picture list.
[0074]
[0112] In AMVP mode, an inter prediction indicator is transmitted to indicate list 0 prediction, list 1 prediction, or bi-prediction. Then, when there are multiple reference pictures, one or two reference indexes are transmitted. An index is transmitted for each prediction direction to select one motion candidate from the candidate list. As shown in Figure 2, the candidate list for inter mode includes two spatial motion candidates and one temporal motion candidate.
[0075] 1. Left candidate (A 0 , A 1 (first available from 2. Upper candidate (B 0 , B 1 , B 2(first available from 3. Time candidates (first available from H and C)
[0113] In HEVC, the video coder searches for left spatial motion candidates from bottom left to left (i.e., A 0 and A 1 ), the video coder selects the first available candidate as the left candidate. The video coder searches for top spatial motion candidates from the top right to the top left (i.e., B 0 , B 1 and B. 2 ), the video coder selects the first available candidate as the top candidate. The video coder may select a temporal motion candidate from a block (H or C) located in a reference picture, called a temporal co-located picture. A temporal co-located picture is indicated by sending one flag in the slice header to specify which reference picture list, and sending one reference index in the slice header to indicate which reference picture in the reference list is used as the co-located reference picture. In HEVC, after the index is sent, one or two corresponding motion vector differentials (MVDs) are sent.
[0076]
[0114] Furthermore, in HEVC and potentially other codecs, a fixed candidate list size is used to separate candidate list construction from index parsing. To compensate for the coding performance loss caused by the fixed list size, additional candidates are allocated to empty positions in the candidate list. In this process, the index is coded with a maximum-length shortened unary code, where the maximum length is transmitted in the slice header in skip and merge modes and is fixed to 2 in inter mode. As explained above, in skip and merge modes, if the number of available candidates is less than the fixed candidate list size after derivation and pruning of four spatial and one temporal motion candidates, additional synthesis candidates are derived and added to fill empty positions in the merging candidate list. In AMVP mode, a zero vector motion candidate is added to fill empty positions in the AMVP candidate list after derivation and pruning of two spatial and one temporal motion candidates.
[0077]
[0115] In the JEM reference software, there are several inter-coding tools that derive and / or refine the motion vector (MV) for the current block at the decoder side or utilize affine motion models. These new inter prediction techniques are detailed below.
[0078]
[0116] The pattern matched motion vector derivation (PMMVD) mode is a special merge mode based on the frame rate up-conversion (FRUC) technique. In PMMVD mode, the motion information of a block is not signaled, but instead is derived at the decoder side. A FRUC flag is signaled for a block (e.g., a CU) when its merge flag is true. When the FRUC flag is false, a merge index is signaled and a normal merge mode is used. When the FRUC flag is true, an additional FRUC mode flag is signaled to indicate which method (bidirectional matching or template matching) should be used to derive the motion information for the block.
[0079]
[0117] On the encoder side, the decision on whether to use the FRUC merge mode for a CU may be based on a rate / distortion (RD) cost selection as is usually done for merge candidates. That is, two matching modes (bidirectional matching and template matching) may both be examined for a CU by using the RD cost selection. Furthermore, the mode that leads to the minimum cost is compared with the other CU modes. If the FRUC matching mode is the most efficient mode, the FRUC flag is set to true for the CU and the associated matching mode is used.
[0080]
[0118] The motion derivation process in FRUC merge mode includes two steps. CU level motion search may be performed first, followed by sub-CU level motion refinement. At the CU level, an initial motion vector (i.e., starting MV) is derived for all CUs based on bidirectional matching or template matching. First, a list of MV candidates is generated (FRUC MV candidates), and the candidate that leads to the minimum matching cost is selected as the starting point for further CU level refinement. Then, a local search based on bidirectional matching or template matching around the starting point is performed, and the MV that produces the minimum matching cost is taken as the MV for all CUs. After that, the motion information is further refined at the sub-CU level using the derived CU motion vector as the starting point.
[0081]
[0119] For example, the following derivation process may be implemented for W×H CU motion information derivation, where W is width and H is height. In the first stage, the MV for the entire W×H CU is derived. In the second stage, the CU is further split into M×M sub-CUs. The value of M is calculated as in equation (1) below, and D is a predefined splitting depth, which is set to 3 by default in JEM. Then, the MV for each sub-CU is derived.
[0082]
number
[0083]
[0120] As shown in Figure 3, bidirectional matching is used to derive the motion information of the current CU by finding the best match between two blocks along the motion trajectory of the current CU in two different reference pictures. Under the assumption of continuous motion trajectory, the motion vectors MV0 and MV1 pointing to two reference blocks are proportional to the temporal distances between the current picture and the two reference pictures, i.e., TD0 and TD1. As a special case, when the current picture is between the two reference pictures in time and the temporal distances from the current picture to the two reference pictures are the same, the bidirectional matching becomes mirror-based bidirectional MV.
[0084]
[0121] As shown in FIG. 4, template matching is used to derive the motion information of the current CU by finding the best match between a template in the current picture (above and / or left neighboring blocks of the current CU) and a block in the reference picture (same size as the template). Except for the above-mentioned FRUC merge mode, template matching is also applied to the AMVP mode. In JEM, as in HEVC, AMVP has two candidates. In the template matching method, a new candidate is derived. If the newly derived candidate by template matching is different from the first existing AMVP candidate, the newly derived candidate is inserted at the very beginning of the AMVP candidate list, and then the list size is set to 2 (meaning deleting the second existing AMVP candidate). When applied to the AMVP mode, only the CU level search is applied.
[0085]
[0122] In the CU-level FRUC MV candidate set, the MV candidate set at the CU level comprises or consists of the following:
[0086] (i) If the CU is currently in AMVP mode, the original AMVP candidate (ii) all merge candidates; (iii) Some MVs in the interpolated MV field, introduced elsewhere in this disclosure (iv) Top and left neighboring motion vectors
[0123] When using bidirectional matching, each valid MV of a merge candidate is used as input to generate an MV pair using the assumption of bidirectional matching. For example, one valid MV of a merge candidate is (MV a ,ref a ) Then, the paired bidirectional MV reference picture ref b But ref a and ref b and are found in another reference list B such that they are on different sides of the current picture in time. b If is not available in reference list B, ref b ref a and its temporal distance to the current picture is the smallest temporal distance in list B. b After the decision was made, MV b current picture and ref a , ref b MV based on the time distance between a It is derived by scaling
[0087]
[0124] Also, four MVs from the interpolated MV field may be added to the CU level candidate list. More specifically, the interpolated MVs at the positions (0,0), (W / 2,0), (0,H / 2) and (W / 2,H / 2) of the current CU may be added. When FRUC is applied in AMVP mode, the original AMVP candidates may also be added to the CU level MV candidate set. At the CU level, up to 15 MVs for the AMVP CU and up to 13 MVs for the merged CU are added to the candidate list. In this disclosure, an AMVP CU is a CU whose motion information is predicted using the AMVP mode. Furthermore, in this disclosure, a merged CU is a CU whose motion information is predicted using the merged mode.
[0088]
[0125] In some examples, the MV candidate set at the sub-CU level consists of or comprises the following:
[0089] (i) MVs determined from CU-level exploration; (ii) top, left, top-left and top-right neighbouring MVs; (iii) a scaled version of the collocated MV from the reference picture; (iv) up to four advanced temporal motion vector prediction (ATMVP) candidates; (v) Up to four spatial-temporal motion vector prediction (STMVP) candidates.
[0090]
[0126] The scaled MV from the reference picture may be derived as follows: All reference pictures in both lists are traversed. The MV at the co-located position of the sub-CU in the reference picture is scaled to the reference of the starting CU level MV. That is, like TMVP in HEVC, the MV at the co-located position may be scaled according to the POC distance. The ATMVP and STMVP candidates are limited to a maximum of four ATMV and STMVP candidates. At the sub-CU level, a maximum of 17 MVs are added to the candidate list.
[0091]
[0127] As mentioned above, in the CU level FRUC MV candidate set, the MV candidate set at the CU level may include one or more MVs in the interpolated MV field. Before coding a frame, an interpolated motion field (i.e., an interpolated MV field) is generated for the entire picture based on unidirectional motion estimation. The motion field may then be used later as a CU level MV candidate or a sub-CU level MV candidate. First, the motion fields of each reference picture in both reference lists may be traversed at the 4×4 block level. FIG. 5 is an example of unidirectional motion estimation in frame rate up-conversion. Picture 500 in FIG. 5 is a reference picture for a current picture. The current picture has an output time corresponding to the output time of picture 502. Picture 504 is a reference picture for picture 500. The video coder uses the motion vectors of blocks in picture 500 that point to locations in picture 504 to interpolate samples of the current picture. Picture 502 contains the obtained interpolated samples. In some examples, for each 4×4 block in the picture 500 of FIG. 5, the motion associated with the 4×4 block passes through the 4×4 block in the current picture, and if the 4×4 block is not assigned an interpolated motion, the motion of the reference block is scaled to the current picture according to the temporal distances TD0 and TD1 (in the same manner as the MV scaling of TMVP in HEVC), and the scaled motion is assigned to the block in the current frame. If a scaled MV is not assigned to the 4×4 block in the current frame, the motion of the block in the current frame is marked as unavailable in the interpolated motion field. In other examples, other block sizes may be used.
[0092]
[0128] When the motion vector points to a fractional sample position, motion compensated interpolation may be required. Motion compensated interpolation may interpolate sample values for locations between the actual samples of the picture from the actual samples of the picture. To keep the complexity of motion compensated interpolation low, bilinear interpolation may be used for both bidirectional matching and template matching instead of the normal 8-tap HEVC interpolation. The calculation of the matching cost is different in different steps. For example, when selecting the best candidate from the candidate set at the CU level, the matching cost is the sum of absolute differences (SAD) of bidirectional matching or template matching. After the starting MV is determined, the matching cost C may be calculated using equation (2) below:
[0093]
number
[0094] In equation (2), w is a weighting factor that is empirically set to 4, and MV and MV S indicate the current MV and the starting MV, respectively (MV x and M.V. x s are the horizontal components of the current MV and the starting MV, respectively, and MV y and M.V. y s are the vertical components of the current MV and the starting MV, respectively), and || denotes the absolute value.
[0095]
[0129] In some examples, in FRUC mode, the MV is derived by using only luma samples. In such examples, the derived motion may be used for both luma and chroma for motion compensated inter prediction. After the MV is derived, the final motion compensation is performed using an 8-tap interpolation filter for luma and a 4-tap interpolation filter for chroma.
[0096]
[0130] MV refinement may include pattern-based MV search with bidirectional matching cost or template matching cost criteria. Two search patterns are supported in JEM: (1) unrestricted center-biased diamond search (UCBDS) and (2) adaptive cross search for MV refinement at CU level and sub-CU level, respectively. For both CU level and sub-CU level MV refinement, MV may be directly searched at 1 / 4 luma sample MV accuracy, which may then be followed by 1 / 8 luma sample MV refinement. The search range of MV refinement for both CU and sub-CU steps may be set equal to 8 luma samples.
[0097]
[0131] The video coder may select a prediction direction in the template matching FRUC merge mode as follows: In the bidirectional matching merge mode, bi-prediction is always applied because the motion information of the CU is derived based on the best match between two blocks along the motion trajectory of the current CU in two different reference pictures. In JEM, there is no such limitation on the template matching merge mode. In the template matching merge mode, the video coder may select among uni-prediction from list0, uni-prediction from list1, or bi-prediction for the CU. The selection may be based on the template matching cost as follows:
[0098]
number
[0099] In the pseudocode of sequence 1 above, cost0 is the SAD of list0 template matching, cost1 is the SAD of list1 template matching, and costBi is the SAD of bi-predictive template matching. The value of the factor is equal to 5 / 4, which means that the selection process is biased towards bi-prediction. In JEM, the inter prediction direction selection is only applied to the CU level template matching process.
[0100]
[0132] In the bi-predictive template matching operation, in the case of prediction of one block region, two prediction blocks formed using the MVs of list0 and list1, respectively, are combined to form a single prediction signal. In the decoder-side motion vector refinement (DMVR) method, the two motion vectors of the bi-prediction are further refined by a bilateral template matching process. The bilateral template matching may be applied in the video decoder 30 to perform a distortion-based search between the bilateral templates and the reconstructed samples in the reference picture to obtain the refined MV without transmitting additional motion information.
[0101]
[0133] In DMVR, a bidirectional template is generated as a weighted combination (i.e., average) of two prediction blocks from the initial MV0 in list0 and MV1 in list1, respectively, as shown in FIG. 6. The template matching operation may include or consist of calculating a cost measure between the generated bidirectional template and a sample region (around the initial prediction block) in the reference picture. For each of the two reference pictures, the MV that results in the smallest template cost may be considered as the updated MV of that list to replace the original MV. The template cost may be calculated as the sum of absolute difference (SAD) or sum of squared difference (SSD) between the current template and the reference samples. In JEM, nine MV candidates are searched for each list. The nine MV candidates include the original MV and eight surrounding MVs with one luma sample offset relative to the original MV in either the horizontal or vertical direction, or both. Finally, two new MVs, namely MV0′ and MV1′ shown in FIG. 6, are used to generate the final bi-prediction result. The SAD can be used as the cost measure.,Figure 6 is the proposed DMVR based on bidirectional template,matching.
[0102]
[0134] Thus, in the example of FIG. 6, a current block 600 in a current picture 602 has a first motion vector 604 (MV0) and a second motion vector 606 (MV1). The motion vector 604 points to a reference block 608 in a list0 reference picture 610. The motion vector 606 points to a reference block 612 in a list1 reference picture 614. The reference block 608 and the reference block 612 may be referred to herein as a predictive block. After identifying the reference block 608 and the reference block 612, a video coder may generate a predictive block 616 as a weighted average of the reference block 608 and the reference block 612. The predictive block 616 may be referred to herein as a bidirectional template. Thus, in the example of FIG. 6, the video coder may generate a bidirectional template from the predictive blocks referenced by MV0 and MV1. Additionally, the video coder may search in the reference picture 610 for a block that best matches the predictive block 616. In the example of Figure 6, the video coder identified block 618 of reference picture 610 as the best match for predictive block 616. The video coder may also search in reference picture 614 for a block that best matches predictive block 616. In the example of Figure 6, the video coder identified block 620 as the best match for predictive block 616. Motion vector 622 (MV0') indicates the spatial displacement between current block 600 and block 618. Motion vector 624 (MV1') indicates the spatial displacement between current block 600 and block 620.
[0103]
[0135] DMVR can be applied for bi-predictive merge modes that use one MV from a reference picture in the past and another MV from a reference picture in the future without sending additional syntax elements. In JEM5, DMVR is not applied when local illumination compensation (LIC), affine motion, FRUC, or sub-CU merge candidates are enabled for a CU.
[0104]
[0136] In JEM with QTBT, each CU can have at most one set of motion for each prediction direction. Two sub-CU level motion vector prediction methods are given by splitting a large CU into sub-CUs and deriving motion information for all sub-CUs of the large CU. The advanced temporal motion vector prediction (ATMVP) method allows each CU to fetch multiple sets of motion information from multiple blocks smaller than the current CU in the co-located reference picture. In the spatio-temporal motion vector prediction (STMVP) method, the motion vector of a sub-CU is derived recursively by using a temporal motion vector predictor and a spatial neighborhood motion vector. To keep a more accurate motion field for sub-CU motion prediction, motion compression for reference frames is currently disabled in JEM.
[0105]
[0137] In the Advanced Temporal Motion Vector Prediction (ATMVP) method, the temporal motion vector prediction (TMVP) of motion vectors is improved by allowing each CU to fetch multiple sets of motion information (including motion vectors and reference indexes) from multiple blocks smaller than the current CU. As shown in Figure 7, a sub-CU is a square NxN block (N is set to 4 by default).
[0106]
[0138] ATMVP predicts motion vectors of sub-CUs within a CU in two steps. The first step is to identify the corresponding blocks in a reference picture using a so-called time vector. The reference picture is called a motion source picture. The second step is to split the current CU into sub-CUs and obtain the motion vectors of each sub-CU as well as the reference index from the blocks corresponding to each sub-CU, as shown in Figure 7.
[0107]
[0139] FIG. 7 shows ATMVP motion prediction for a current CU 700 in a current picture 702. In a first step, a reference picture 704 and a corresponding block 706 are determined by motion information of spatial neighboring blocks of the current CU 700. The reference picture 704 is sometimes called a motion source picture 704 because the video coder uses the motion source picture 704 as a source of motion information for the current CU 700 in the current picture 702. To avoid an iterative scanning process of neighboring blocks, the motion information of the first merge candidate in the merge candidate list of the current CU 700 is used to determine the reference picture 704 and the corresponding block 706. The first available motion vector as well as its associated reference index are set to be a time vector 708 and an index into the motion source picture 704. In this way, in ATMVP, the corresponding block 706 can be identified more accurately compared to TMVP, where the corresponding block (sometimes called a co-located block) is always at a lower right or center position relative to the current CU 700.
[0108]
[0140] In a second step, the corresponding blocks of the sub-CUs of the current CU 700 are identified by the time vector 708 in the motion source picture 704 by adding the time vector 708 to the (x,y) coordinates of the current CU 700. For each sub-CU of the current CU 700, the motion information of its corresponding block (the minimum motion grid covering the center pixel) is used to derive the motion information for the sub-CU. After the motion information of the corresponding N×N block is identified, the motion information of the corresponding N×N block is converted to the motion vector and reference index of the current sub-CU in the same manner as in TMVP, where motion scaling and other procedures are applied. For example, video decoder 30 may check whether a low latency condition is met, and possibly calculate the motion vector MV for each sub-CU. y To predict the motion vector MV x(motion vector corresponding to reference picture list X) is used, where X is equal to 0 or 1, and Y is equal to 1-X. This is done in the same way as for temporal motion vector prediction.
[0109]
[0141] In spatio-temporal motion vector prediction, the motion vectors of sub-CUs are derived recursively according to the raster scan order. Figure 8 illustrates this concept. For example, consider an 8x8 CU (shown in Figure 8 as squares with thicker outlines) that contains four 4x4 sub-CUs A, B, C, and D, as shown in Figure 8. The neighboring NxN blocks in the current frame are labeled as a, b, c, and d in Figure 8.
[0110]
[0142] The motion derivation for sub-CU A starts by identifying its two spatial neighbors. The first neighbor is the N×N block (block c) above sub-CU A. If block c is not available or is intra-coded, other N×N blocks above sub-CU A are examined (starting at block c, from left to right). The second neighbor is the block (block b) to the left of sub-CU A. If block b is not available or is intra-coded, other blocks to the left of sub-CU A are examined (looking from top to bottom at block b). The motion information obtained from the neighboring blocks for each list is scaled to the first reference frame for a given list. Then, the temporal motion vector predictor (TMVP) of sub-block A is derived by following the same procedure of TMVP derivation as specified in HEVC and described above in this disclosure. The motion information of the co-located block at location D is fetched and scaled accordingly. Finally, after extracting and scaling the motion information, all available motion vectors (up to 3) are averaged separately for each reference list, and the averaged motion vector is assigned as the motion vector of the current sub-CU.
[0111]
[0143] In sub-CU motion prediction mode signaling, sub-CU modes are enabled as additional merge candidates, and no additional syntax elements are required to signal those modes. Two additional merge candidates are added to the merge candidate list of each CU to represent ATMVP and STMVP modes. If the sequence parameter set indicates that ATMVP and STMVP are enabled, up to seven merge candidates are used. In coding, the logic of the additional merge candidates is the same as the merge candidates in the HEVC test model (HM), which means that for each CU in a P or B slice, two or more RD checks are required for the two additional merge candidates. To improve the merge index coding, in JEM, all bins of the merge index are context coded by CABAC. During HEVC, only the first bin is context coded, and the remaining bins are context bypass coded.
[0112]
[0144] Performing bypass CABAC coding on a bin may be less computationally expensive than performing regular CABAC coding on a bin. Furthermore, performing bypass CABAC coding may enable a higher degree of parallelization and throughput. Bins coded using bypass CABAC coding may be referred to as "bypass bins." Grouping bypass bins together may increase the throughput of video encoder 20 and video decoder 30. A bypass CABAC coding engine may be capable of coding several bins in a single cycle, whereas a regular CABAC coding engine may be capable of coding only a single bin in a cycle. A bypass CABAC coding engine may be simpler because it does not select a context and may assume a 1 / 2 probability for both symbols (0 and 1). Thus, in bypass CABAC coding, the interval is directly split in half. However, compression efficiency may be reduced.
[0113]
[0145] In HEVC, only the transform motion model is applied for motion compensated prediction (MCP). In the real world, there are many kinds of motions, such as zoom in / out, rotation, perspective motion and other irregular motions. In JEM, affine transform motion compensated prediction is applied to improve coding efficiency. If a block follows an affine motion model, the MV of a position (x, y) in the block can be determined by the affine motion model.
[0114]
number
[0115] In equation (3), a, b, c, d, e, and f are affine parameters. x is the horizontal component of the MV at position (x,y), and v y is the vertical component of the MV at position (x,y).
[0116]
[0146] 9 is a block diagram of a simplified affine motion model for a current affine block 900. As shown in FIG. 9, the six-parameter affine motion model is 0 ,y 0 )'s motion vector v 0 and the upper right control point 904(x 1 ,y 1 )'s motion vector v 1 and the lower left control point 906(x 2 ,y 2 )'s motion vector v 2 The top left control point 902 is the origin of the coordinate system, which is (x 0 ,y 0 Assuming that θ=(0,0) means that the MV of a position (x,y) in the current affine block 900 is expressed below by equation (4).
[0117]
number
[0118] In equation (4), (v 0x ,v 0y ) is the motion vector of the upper left corner control point 902, and (v 1x ,v 1y ) is the motion vector of the upper right corner control point 904, and (v 2x ,v 2y ) is the motion vector of the bottom left corner control point 906, and w=(x 1 -x 0 ) is the horizontal distance between the top-left control point 902 and the top-right control point 904, and h=(y 2 -y 0 ) is the vertical distance between the top left control point 902 and the bottom left control point 906. In equation (4), v x is the horizontal component of the MV at position (x,y), and v y is the vertical component of the MV at position (x,y).
[0119]
[0147] However, in JEM, the affine motion model is simplified to a four-parameter affine motion model by assuming a=e and b=-d in equation (3), which is expressed as v x and v y This results in the following equation.
[0120]
number
[0121] The four-parameter affine motion model then uses the top-left control point 902 (x 0 ,y 0 )'s motion vector v 0 and the upper right control point 904(x 1 ,y 1 )'s motion vector v 1 In equation (5), v x is the horizontal component of the MV at position (x,y), and v yis the vertical component of the MV for position (x,y). Figure 10 is an example of a simplified affine motion model for a current affine block 1000. As shown in Figure 10, the affine motion field of the block is determined by two control point motion vectors, v 0 and v 1 The motion vector field (MVF) of a block is expressed by equation (6).
[0122]
number
[0123] In equation (6), (v 0x ,v 0y ) is the motion vector of the upper left corner control point 1002, and (v 1x ,v 1y ) is the motion vector of the upper right corner control point 1004, and w=(x 1 -x 0 ) is the horizontal distance between the top left control point 1002 and the top right control point 1004. x is the horizontal component of the MV at position (x,y), and v y is the vertical component of the MV at position (x,y).
[0124]
[0148] To further simplify motion compensation prediction, block-based affine transformation prediction may be applied. To derive a motion vector for each subblock, the motion vector of the center sample of each subblock, shown in FIG. 11, is calculated according to equation (6) and rounded to 1 / 16 fractional accuracy. Then, a video coder may apply a motion compensation interpolation filter to generate a prediction of each subblock using the derived motion vector. The interpolated motion vector for each subblock in the affine block is referred to as an MCP motion vector field (MVF) in the following context. The subblock size may vary according to the MV difference between the control points. FIG. 11 is an exemplary MCP MV field in which the MV of each subblock (e.g., a 4×4 block) is interpolated by the MV of the control points, and the MV is then used to perform motion compensation prediction (MCP) for each subblock. The motion vector of each subblock may be used to identify a corresponding reference block, the combination of which forms a prediction block. Thus, in this manner, a video coder may generate a prediction block based on the motion vector of the block (e.g., the motion vector of the control points of the block).
[0125]
[0149] After motion compensation prediction, the high-confidence motion vector of each subblock is rounded and stored to the same confidence as the normal motion vector. In JEM and in HEVC, the motion vector for each inter prediction CU or PU is stored for MV prediction of other inter blocks. The storage unit for motion vectors is a 4x4 block. In other words, in JEM, the interpolated MV of the affine block is generated and stored for each 4x4 block. However, since the MV of the control point can be used for the subsequent block, the stored MV for the corner 4x4 block is the MV of the control point, not the associated MV used for MCP, as shown in FIG. 12. Note that in JEM6, the MV of the bottom-left and bottom-right control point is generated by the MV of the top-left and top-right control point.
[0126]
[0150] 12, CU 1200 includes 16 sub-blocks. For each respective sub-block of the 12 sub-blocks that are not at a corner of CU 1200, the video coder stores a motion vector(s) for a center point of the respective sub-block. For each respective sub-block at a corner of CU 1200, the video coder stores a motion vector(s) for an outer corner of the respective sub-block.
[0127]
[0151] In JEM, there are two affine motion modes: Affine Inter (AF_INTER) mode and Affine Merge (AF_MERGE) mode. For CUs with both width and height larger than 8, the AF_INTER mode may be applied. An affine flag at the CU level is signaled in the bitstream to indicate whether the AF_INTER mode is used. In this mode, the motion vector set {(MVP 0 ,MVP 1 )|MVP 0 ={v A ,v B ,v c},MVP 1 ={v D ,v E A candidate list with}} is constructed using the neighbor blocks. As shown in Figure 13, 0 is selected from the motion vectors of blocks A, B, or C. Figure 13 shows an example of MVP for AF_INTER. The motion vectors from the neighbor blocks are scaled according to the reference list and the relationship between the Picture Order Count (POC) of the references for the neighbor blocks, the POC of the references for the current CU, and the POC of the current CU. MVP from neighbor blocks D and E 1 The method for selecting the AMVP candidate is similar. In JEM, if the number of candidates in the candidate list is less than 2, the list is divided into AMVP candidates {AMVP 0 ,AMVP 0} and {AMVP 1 ,AMVP 1} are padded with motion vector pairs created by duplicating each of
[0128]
[0152] Furthermore, in JEM, when the number of candidates in the candidate list is greater than two, the candidates are first sorted according to the consistency of the neighboring motion vectors (the similarity of the two motion vectors in a pair candidate), and only the first two candidates are kept, as shown in the right part of FIG. 13. The video coder may use a rate-distortion (RD) cost check, which is used to determine which motion vector set candidate is selected as the control point motion vector prediction (CPMVP) of the current CU. An index indicating the position of the CPMVP in the candidate list is signaled in the bitstream. After the CPMVP of the current affine CU is determined, affine motion estimation is applied to find the control point motion vector (CPMV). Then, the difference between the CPMV and the CPMVP may be signaled in the bitstream.
[0129]
[0153] When a CU is applied in affine merge (AF_MERGE) mode, the CU obtains the first block coded using affine mode from the valid neighbor reconstructed blocks based on the visiting order A1→B1→B0→A0→B2. The selection order for the candidate blocks is from left, top, top right, bottom left, to top left, as shown in FIG. 14A. If the neighbor bottom left block A is coded in affine mode as shown in FIG. 14B, the motion vectors v of the top left, top right and bottom left corners of the CU containing block A are 2 , v 3 and v 4 The motion vector v 0 is (x 2 ,y 2 ), but (x 2 ,y 2 ) = (0,0), we use equation (7) below to determine v2 , v 3 and v 4 Second, the current CU's upper right motion vector v 1 is calculated in a similar manner. Equation (7) is shown below.
[0130]
number
[0131] In equation (7), (v 2x ,v 2y ) is the upper left corner control point (x 2 ,y 2 ), and (v 3x ,v 3y ) is the upper right corner control point (x 3 ,y 3 ), and (v 4x ,v 4y ) is the lower-left corner control point (x 4 ,y 4 ), and w=(x 3 -x 2 ) is the horizontal distance between the top-left and top-right control points, and h=(y 4 -y 2 ) is the vertical distance between the top-left and bottom-left control points, and v x is the horizontal component of the motion vector for location (x,y), and v y is the vertical component of the motion vector for location (x,y).
[0132]
[0154] Currently, CU's CPMV, v 0 and v 1 After is derived, the MVF of the current CU is generated according to the affine motion model equation (6). To identify whether the current CU is coded using the AF_MERGE mode, an affine flag is signaled in the bitstream when there is at least one neighbor block coded in the affine mode.
[0133]
[0155] In HEVC, the motion vector differential (MVD) (between the motion vector of the PU and the predicted motion vector) is signaled in units of 1 / 4 luma samples. In JEM, Advanced Motion Vector Resolution (AMVR) is introduced. In JEM5, MVD can be coded in units of 1 / 4 luma samples, integer luma samples or 4 luma samples. In JEM5, MVD resolution is controlled at the CU level, and an MVD resolution flag is conditionally signaled for each CU that has at least one non-0 MVD component.
[0134]
[0156] For a CU that has at least one non-zero MVD component, a first flag is signaled to indicate whether ¼ luma sample MV precision is used in the CU. When the first flag (equal to 1) indicates that ¼ luma sample MV precision is not used, another flag is signaled to indicate whether integer luma sample MV precision or 4 luma sample MV precision is used.
[0135]
[0157] When the first MVD resolution flag of a CU is 0 or not coded for a CU (meaning all MVDs in the CU are 0), a quarter luma sample MV resolution is used for that CU. When a CU uses integer luma sample MV precision or 4 luma sample MV precision, the MVPs in the AMVP candidate list for the CU are rounded to the corresponding precision.
[0136]
[0158] On the encoder side, video encoder 20 may use a CU-level RD check to determine which MVD resolution is used for a CU. That is, the CU-level RD check may be performed three times, one for each MVD resolution. To accelerate the encoder speed, the following encoding scheme is applied in JEM.
[0137] During RD testing of a CU with normal 1 / 4 luma sample MVD resolution, the motion information (integer luma sample accuracy) of the current CU is stored. The stored motion information (after rounding) is used as a starting point for a smaller range of motion vector refinements during RD testing for the same CU with integer luma samples and 4 luma sample MVD resolution, so that the time-consuming motion estimation process is not duplicated three times.
[0138] RD check of a CU with 4 luma sample MVD resolution is conditionally invoked: when the RD cost for an integer luma sample MVD resolution for a CU is much larger than the RD cost for ¼ luma sample MVD resolution (e.g., the ratio of the RD cost for integer luma sample MVD resolution to the RD cost for ¼ luma sample MVD resolution is larger than a threshold), the RD check of 4 luma sample MVD resolution for that CU is skipped.
[0139]
[0159] The reconstructed motion vector information is not fully utilized in existing schemes of motion vector prediction in existing video codecs, such as HEVC / H.265, AVC / H.264, and JEM.
[0140]
[0160] This disclosure describes techniques that may improve a computing device that performs motion vector prediction (MVP). The techniques are detailed in several different aspects described below. The following techniques may be applied individually. Alternatively, any combination of the techniques may be applied.
[0141]
[0161] According to one or more techniques of this disclosure, a video coder may use a motion vector of a block that is not directly adjacent to a current block, since the motion vector of the non-adjacent block can further improve prediction efficiency, especially when the correlation between spatial motion vectors is strong enough that the motion information of the current block is similar to that of the non-adjacent block. Thus, the motion information from the non-adjacent block may be a good MVP candidate for the current block. This disclosure proposes that one or more non-adjacent spatial motion vector predictors (NA-SMVP) are used to derive a motion vector predictor for the motion information of the current block, or the NA-SMVP may be directly reused by the current block to perform inter prediction. This disclosure describes techniques for adaptively incorporating NA-SMVP with other MV predictors (e.g., normal SMVP, TMVP, synthetic MVP) for MV prediction.
[0142]
[0162] Thus, according to the techniques of this disclosure, video encoder 20 may determine a motion vector of a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to the current block of the current picture. Furthermore, video encoder 20 may determine an MVP for the current block based on the motion vector of the non-adjacent block. Video encoder 20 may also determine a motion vector of the current block. The motion vector may be equal to the motion vector of the MVP for the current block or may be equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream. Furthermore, video encoder 20 may determine a predictive block based on the motion vector of the current block. Video encoder 20 may generate residual sample values based on the predictive block.
[0143]
[0163] Similarly, video decoder 30 may determine a motion vector of a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to the current block of the current picture. Further, video decoder 30 may determine an MVP for the current block based on the motion vector of the non-adjacent block. Further, video decoder 30 may determine a motion vector for the current block based on the MVP for the current block. Video decoder 30 may also determine a predictive block based on the motion vector of the current block. Video decoder 30 may then reconstruct sample values of the current picture based on the predictive block.
[0144]
[0164] In some examples, the non-adjacent spatial motion vector predictor (NA-SMVP) is derived from motion information of spatially non-adjacent blocks located in the same picture, slice, or predefined region in which the current block is located. Since the motion information of non-adjacent blocks can be reused as a motion vector predictor for the current block, only non-adjacent blocks whose motion information is reconstructed are considered for non-adjacent MVP derivation. The present disclosure proposes to further add a constraint to the NA block to constrain the distance between the NA block and the current block to be within a range. The distance can be measured in pixel distance in L1 or L2 terms, or the distance can be measured in block distance in L1 or L2 terms. The L1 distance between two coordinate points in an n-dimensional real vector space with a fixed Cartesian coordinate system is the sum of the lengths of the projections of line segments between the points onto the coordinate axes. For the L1 pixel distance, the length of the projection is the height or width of one pixel. For the L1 block distance, the length of the projection is the width or height of the block. The L2 distance is the Euclidean distance between two points. The distance may be measured between the block centers or any specified points within each block. In some examples, another constraint is added to the NA block that constrains the NA block to be a block that is not adjacent to the current block and is not adjacent to any block that is directly adjacent to the current block.
[0145]
[0165] FIG. 15 is a block diagram illustrating an example non-adjacent block according to the techniques of this disclosure. As shown in FIG. 15, the non-adjacent block 1500 is a reconstructed block that is not directly adjacent to a current block 1502. The size of the non-adjacent block may be defined as the smallest unit block (e.g., 4×4 block) used to store motion information, or the basic unit for inter prediction (e.g., PU in HEVC), or the sub-block used in affine mode in JEM, FRUC mode, or other specified block size. FIG. 15 also illustrates adjacent, unreconstructed blocks 1504 and non-adjacent, unreconstructed blocks 1506.
[0146]
[0166] FIG. 16 is a block diagram showing an example of non-adjacent block selection according to the techniques of this disclosure. FIG. 17 is a block diagram showing an example of non-adjacent block selection based on a parent block according to the techniques of this disclosure. Although potentially all non-adjacent blocks can be used for MVP derivation, it may be more desirable (in terms of implementation complexity) to select only a limited number of non-adjacent blocks (NA blocks) for MVP derivation. Several ways for selecting N (where N is a non-negative integer) non-adjacent blocks for motion vector predictor (MVP) derivation are detailed below. For example, in one example of selecting N non-adjacent blocks for MVP derivation, a fixed pattern of non-adjacent blocks is selected for NA-SMVP derivation. The fixed pattern is positioned relative to the position of the current block. In one example shown in FIG. 16, the neighboring blocks (e.g., A, B, C, D, E, F, F, G, H, H, I ... 0 , A 1 , B 0 , B 1 and B. 2 ), plus the 11 NA blocks (NA 1,1 , N.A. 1,2 , N.A. 1,3 , N.A. 1,4 , N.A.1,5 , N.A. 1,6 , N.A. 1,7 , N.A. 1,8 , N.A. 1,9 , N.A. 1,10 , N.A. 1,11 ) is used to derive the NA-SMVP. 1 and the vertical distance t 1 are the two descriptors for this pattern.
[0147]
[0167] In another example shown in Figure 17. In the example of Figure 17, besides the neighboring blocks used to derive the normal SMVP used in HEVC, the video coder uses the neighboring blocks of the parent block 1700, which contains the current block 1702, as NA blocks for MVP derivation. 1,1 , N.A. 1,2 , N.A. 1,3 , N.A. 1,4 , N.A. 1,5 , N.A. 1,6 , N.A. 1,7 , N.A. 1,8 , N.A. 1,9 ) is selected as a non-adjacent block for the blocks in the parent block 1700 that contains the current block 1702. The size of the parent block 1700 may be predetermined, signaled in the bitstream, dependent on the size of the current block 1702, or dependent on the coding mode (e.g., skip / merge / AMVP) of the current block 1702. The NA-SMVP of this disclosure may be derived from, but is not limited to, the disclosed patterns of non-adjacent spatial blocks.
[0148]
[0168] An example of multi-level surrounding NA blocks is given as follows: Note that for each level, the number of NA blocks can be different.
[0149]
[0169] Pattern A1: Multi-level surrounding NA blocks. Each level (level i) has a distance parameter (s i and t i20, 21 and 22 show examples of two-level surrounding NA blocks, but the number of levels can be any non-negative integer. In the examples of Figs. 20, 21 and 22, the black squares correspond to NA blocks at the first level and the grey squares correspond to NA blocks at the second level. t 1 indicates the vertical distance from the current block 2000, 2100, or 2200 to the first level. 2 indicates the vertical distance from the current block 2000, 2100, or 2200 to the second level. 1 indicates the horizontal distance from the current block 2000, 2100, or 2200 to the first level. 2 indicates the horizontal distance from the current block 2000, 2100, or 2200 to the second level.
[0150]
[0170] Pattern A2: Multi-level surrounding NA blocks based on the parent block. Each level (level i) has a distance parameter (s i and t i ) The size of the parent block can be predetermined or signaled in the bitstream. Figure 23 shows an example of a two-level surrounding NA block, but the number of levels can be any non-negative integer.
[0151]
[0171] Furthermore, in some examples, the distance between the current block and the non-adjacent blocks is defined by an L1 norm (ie, L1 distance) or an L2 norm (ie, Euclidean distance).
[0152]
[0172] In some examples, video encoder 20 and video decoder 30 select the N non-adjacent blocks according to a reverse coding order. For example, a video coder (e.g., video encoder 20 or video decoder 30) may select the non-adjacent blocks by scanning the blocks according to an order that is the opposite of the order in which the video coder coded the blocks.
[0153]
[0173] In some examples, video encoder 20 and video decoder 30 build a global MV candidate list by inserting all reconstructed MVs into this list according to a predefined order. The global MV candidate list may include MVs derived from neighboring blocks as well as MVs derived from non-neighboring blocks. The MV predictor of the current block may then be derived using this global MV candidate. Thus, in such examples, a video coder (e.g., video encoder 20 or video decoder 30) may determine a global motion vector candidate list comprising MVP candidates that specify a motion vector for each block in the current picture that is coded before the current block. Furthermore, the video coder may determine motion vectors of non-neighboring blocks from the MVP candidates in the global motion vector candidate list.
[0154]
[0174] In some examples, since directly fetching non-adjacent MV candidates may increase the size of the line buffer, the video coder applies an alternative way to store the reconstructed MVs. For example, the video coder may store the reconstructed MVs in the history buffer in a first-in-first-out manner. To mimic non-adjacent MV candidates, only those old MVs in the history buffer are taken as non-adjacent MV candidates. The old MVs in the history buffer may be defined as MVs close to the end of the history buffer. For example, if the size of the history buffer is N, a threshold T (such as T=N / 4) may be signaled or set such that the T MVs closest to the exit in the history buffer are defined as old MVs.
[0155]
[0175] In some examples, a constraint is added to derive a non-adjacent spatial motion vector predictor to reduce the buffer size of a buffer used to store non-adjacent motion information (i.e., motion information of a non-adjacent block). If the distance between the non-adjacent block and the current block (or the current CTU) is greater than a threshold, the position of the non-adjacent block may be changed. In other words, instead of determining an MV candidate based on an NA block at a first location (e.g., a location designated by a fixed pattern of NA blocks), the video coder may determine a second position based on the first position when the distance from the first position to the current block is greater than a threshold. In some examples, instead of determining an MV candidate based on an NA block at a first location (e.g., a location designated by a fixed pattern of NA blocks), the video coder may determine that the first position is not valid when the distance from the first position to the current block is greater than a threshold. The threshold may be different for horizontal and vertical distances. Thus, in some examples, prior to determining a motion vector of the non-adjacent block and based on the distance between the non-adjacent block and the current block being greater than a threshold distance, the video coder may change the position of the non-adjacent block. In some examples, prior to determining the motion vector of the non-adjacent block and based on the distance between the non-adjacent block and the current coding tree block being greater than a threshold distance, the video coder may reposition the non-adjacent block, in such examples, the current coding tree block contains the current block.
[0156]
[0176] An example of a position change may be rounding the first position to a coarser grid, i.e., reducing the stored non-adjacent motion. Thus, in this example, the video coder may change the position of the non-adjacent block, at least in part, by rounding the position of the non-adjacent block to a position on a first grid of blocks in the current picture that is coarser than the second grid of blocks in the current picture.
[0157]
[0177] Another example of repositioning may be clipping the position to a threshold if the distance to the first position is greater than a threshold. Clipping the position to a threshold means modifying the position to be the threshold if the position exceeds the threshold. Thus, in this example, the video coder may reposition the non-adjacent blocks, at least in part, by clipping the positions of the non-adjacent blocks to a distance threshold. Multiple repositioning methods using different thresholds may be combined.
[0158]
[0178] 18A and 18B are block diagrams showing an example of repositioning a non-adjacent block according to the techniques of this disclosure. FIGs. 19A and 19B are block diagrams showing an example of thresholds for repositioning a non-adjacent block according to the techniques of this disclosure. Some examples of repositioning are given below. In these examples, assuming that the position of a non-adjacent block is (xNA, yNA), the reposition of the non-adjacent block is (xNA', yNA'), the position of the top-left grid of the current CTU 1800, 1900 is (xCTU, yCTU), and the position of the current CU is (xCU, yCU). Examples of constraints may be as follows:
[0159] 1. If (yCTU-yNA)>(or≧) yThrd, then yNA'=yThrd. If (xCTU-xNA)>(or≧) xThrd, then xNA'=xThrd. yThrd can be smaller than xThrd. FIG. 18A shows an example using yThrd, where Thrd is an abbreviation for a threshold value. Thus, in FIG. 18A, CTU 1800 currently contains CU(curr) 1802. If the difference between the vertical coordinate of the non-adjacent block's location NA 1804 and the vertical coordinate of CTU 1800 is greater than a threshold value (yThrd), the video coder clips the vertical coordinate of location NA 1804 to the threshold value, resulting in location NA' 1806.
[0160] 2. When (yCTU - yNA) > (or ≥) yThrd and (or) (xCTU - xNA) > (or ≥) xThrd, abs(xNA’, yNA’) = ((xNA >> CompressedLog2SizeX) << CompressedLog2SizeX, (yNA >> CompressedLog2SizeY) << CompressedLog2SizeY). CompressedLog2SizeX and CompressedLog2SizeY are values for controlling position rounding. For example, if (xNA, yNA) is (36, 18) and (CompressedLog2SizeX, CompressedLog2SizeY) is (4, 4), the rounded position (xNA’, yNA’) is ((36 >> 4) << 4, (18 >> 4) << 4) = (32, 16). In other words, when the positions of non - adjacent blocks are far from the current block, the video coder can round the positions to a coarser grid. Thus, the motion buffer may only store the motions of non - adjacent blocks on a coarser grid. Figure 18B shows an example. Thus, in the example of Figure 18B, CTU1850 contains the current CU (curr)1852. When the difference between the vertical (y) coordinate of position NA1854 and the vertical coordinate of the position of CTU1850 is greater than the vertical threshold (yThrd), and / or the difference between the horizontal (x) coordinates of position NA1854 is greater than the horizontal threshold (xThrd), the video coder may determine the horizontal coordinate of the modified position NA’1856 to (xNA >> CompressedLog2SizeX) << CompressedLog2SizeX and the vertical coordinate of the modified position NA’1856 to (yNA >> CompressedLog2SizeY) << CompressedLog2SizeY. In some examples, xThrd is negative infinity. Thus, in such examples, (xCTU - xNA) is always greater than xThrd.
[0161] 3. In some examples, if the threshold for changing a non-adjacent block is as follows, i.e., (yCTU-yNA)>yThrd, the non-adjacent block is changed. FIG. 19A shows an example, and the shaded blocks are the non-adjacent block positions that should be changed. In particular, in the example of FIG. 19A, CTU 1900 currently includes CU (curr) 1902. If the vertical coordinate of the non-adjacent block differs from the vertical coordinate of CTU 1900 by more than the threshold (yThrd), the video coder may change the position of the non-adjacent block.
[0162] 4. The threshold of modifying a non-adjacent block may be a combination of two or more rules. An example may be as follows: (1) If (yCTU-yNA)>yThrd, the non-adjacent block should be modified. (2) If (yCTU-yNA)>0 and (xCTU-xNA)>0, the non-adjacent block should be modified. FIG. 19B shows an example of the combination of two rules, and the shaded blocks are the non-adjacent block positions that should be modified. In particular, in the example of FIG. 19B, CTU 1950 currently includes CU(curr) 1952. If the vertical coordinate of the non-adjacent block differs from the vertical coordinate of CTU 1950 by more than the vertical threshold (yThrd), the video coder may modify the non-adjacent block vertical coordinate. Further, if the difference between the horizontal coordinate of the non-adjacent block and the horizontal coordinate of the CTU 1950 is greater than 0 and the difference between the vertical coordinate of the non-adjacent block and the vertical coordinate of the CTU 1950 is greater than 0, the video coder may change the horizontal coordinate of the non-adjacent block. In one example, only non-adjacent blocks located in the same CTU row as the current block may be selected. In another example, only non-adjacent blocks located in the same CTU as the current block may be selected.
[0163]
[0179] After the video coder determines that N non-adjacent blocks are determined, the video coder may derive M (where M≦N) non-adjacent spatial motion vector predictors (NA-SMVPs) from the N non-adjacent blocks (NA blocks). There are different ways to utilize non-adjacent SMVPs depending on the inter prediction mechanism used in the video codec. For example, when a competitive motion candidate mechanism (e.g., merge / skip mode in HEVC or JEM) is used, one or more non-adjacent spatial MVPs (NA-SMVPs) are derived and inserted into the candidate list according to a predefined order. In one example shown in FIG. 16, 11 non-adjacent MVPs are inserted into the merging candidate list after the conventional spatial MVP, the temporal MVP, and before the composite combined candidate, the composite 0 candidate.
[0164]
[0180] In some examples, a full motion pruning process may be applied to the NA-SMVP and other merging candidates, or a partial motion pruning process may be applied to the NA-SMVP and other merging candidates. The full motion pruning process compares a candidate currently in the candidate list with all previously derived candidates to avoid inserting candidates that are equivalent to a certain degree. To reduce complexity, the partial motion pruning process compares only a limited number of candidates instead of comparing each potential candidate with all other existing candidates. More insertion orders of non-adjacent blocks are given below in Sequence 2 to Sequence 5. The NA-SMVP of the present disclosure may be inserted into the candidate list, including but not limited to the insertion orders disclosed.
[0165]
number
[0166]
[0181] A competitive spatio-temporal motion candidate scheme may include a system in which a motion predictor is selected from a set of available motion predictors. When a competitive spatio-temporal motion candidate scheme is used, such as the AMVP mode in HEVC or JEM or other video codecs, non-adjacent MVP candidates are derived and inserted into the candidate list according to a predefined order. In one example, the video coder inserts the 11 non-adjacent MVPs of FIG. 16 into the AMVP candidate list after the conventional spatial MVP, the temporal MVP, and before any composite 0 candidates. The NA-SMVP derivation may follow the same derivation rules as HEVC, or any other rules that apply to SMVPs derived from adjacent blocks.
[0167]
[0182] The order of the NA-SMVP candidates may be determined either by some predefined rule or in an adaptive manner. For example, the video coder may construct M candidates from N non-adjacent blocks in the same order that the N NA blocks are selected according to any of the examples given elsewhere in this disclosure. Alternatively, in one example, the video coder sorts the M candidates according to their frequency (i.e., their occurrence among all MV candidates) and / or the distance between the NA blocks and the current block. Thus, in this example, the video coder may place more frequent candidates and / or candidates from NA blocks closer to the current block forward in the NA-SMVP candidate list (i.e., the candidate list including the NA-SMVP candidates and possibly other candidates). Furthermore, the video coder may insert all NA-SMVP candidates at fixed positions in the candidate list, as described above in Sequences 2 to 5, and those NA-SMVP candidates are allowed to be sorted among the NA-SMVP candidates only. In another example, the video coder may sort all candidates in the list (including NA-SMVP and other candidates) according to some criteria, such as the frequency of motion information (i.e., the number of occurrences of motion vectors among all MV candidates) or any available motion statistics from the current picture and / or previously coded pictures. The order of NA-SMVP in the candidate list may be different for some coding modes, e.g., merge and / or AMVP modes, and is not necessarily limited to the disclosed candidate order. For example, the video coder may insert NA-SMVP candidates into the merge candidate list according to a first order and NA-SMVP candidates into the AMVP candidate list according to a second order different from the first order.
[0168]
[0183] In some examples, the pruning process is adaptive to block size. In one example, a threshold value may be used to define what needs to be pruned. For example, if the block size is large (i.e., larger than a predefined block size), the video coder may increase the threshold value accordingly. Considering two candidates with motion vectors MV0 and MV1 (which were added to the list earlier), in one example, if the L1 or L2 norm of the distance between MV0 and MV1 is smaller than a threshold value, the video coder prunes the candidate for MV1. Video encoder 20 may signal the threshold value signaled through the SPS, PPS, slice header, or in another syntax structure.
[0169]
[0184] In another example, the threshold is adaptive based on the current block size. For example, in this example, a first threshold is applied for blocks having a size smaller than a predefined block size, and a second different threshold is applied for blocks having a size larger than the predefined block size. In this example, when generating a candidate list for blocks having a size smaller than a predefined block size, the video coder may prune a candidate from the list if the L1 or L2 norm of the distance between the motion vector of a candidate and the motion vector of another candidate in the list is smaller than the first threshold. In this example, when generating a candidate list for blocks having a size larger than a predefined block size, the video coder may prune a candidate from the list if the L1 or L2 norm of the distance between the motion vector of a candidate and the motion vector of another candidate in the list is smaller than the second threshold.
[0170]
[0185] In another exemplary pruning process, the threshold is adaptive based on the distance between the spatial location of the candidate and the spatial location of the current block. The video coder may use a larger threshold if the candidate is located farther away from the current block. For example, when generating a candidate list for the current block, the video coder may determine a first NA-SMVP based on a particular non-adjacent block. In this example, the video coder may prune the first NA-SMVP candidate from the list if the L1 or L2 norm of the distance between the motion vector of the first NA-SMVP candidate and the motion vector of the second candidate in the list is smaller than a particular threshold. In this example, the particular threshold may depend on the distance between the particular non-adjacent block and the current block.
[0171]
[0186] In some examples, classification of motion vectors may be performed using methods including, but not limited to, K-means or support vector machines, N c The first M from each of the classes c Only M candidates should be kept in the candidate list, where M c and the number of classes N c can be predefined or signaled in a high level syntax.
[0172]
[0187] In a scheme in which only a single MVP is used, such as the affine merge mode in JEM, the video coder (e.g., video encoder 20 or video decoder 30) may also include one or more non-adjacent SMVPs (NA-SMVPs) in the candidate set along with other MVPs. The last MVP is then selected as the first available MVP according to a predefined order. In one example, when a CU is applied in an affine merge (AF_MERGE) mode, it obtains the first block coded using affine mode from the reconstructed blocks of valid neighbors based on the visiting order, A1→B1→B0→A0→B2→NA blocks. Thus, in this example, if none of blocks A1, B1, B0, A0, or B2 are coded using affine mode, the video coder may determine that the MVP for the CU is the first MVP of the non-adjacent blocks coded in affine mode.
[0173]
[0188] As briefly described above, the motion derivation process in the FRUC merge mode includes two steps. In particular, a CU level motion search is performed first, followed by a sub-CU level motion refinement. At the CU level, the video coder derives an initial motion vector for every CU based on bidirectional matching or template matching. To derive an initial motion vector for every CU, the video coder may first generate a list of MV candidates (FRUC CU level MV candidate set), and the video coder selects the candidate that leads to the minimum matching cost as a starting point for further CU level refinement. Then, the video coder performs a local search based on bidirectional matching or template matching around the starting point. The video coder then takes the MV that results in the minimum matching cost as the MV for every CU. After that, the video coder may further refine the motion information at the sub-CU level using the FRUC sub-CU level MV candidate set that includes the derived CU motion vector.
[0174]
[0189] This disclosure proposes adding one or more NA-SMVPs to the FRUC CU level MV candidate set, the FRUC sub-CU level MV candidate set, or both. Thus, a video coder (e.g., video encoder 20 or video decoder 30) may determine a set of CU level FRUC motion vector candidates. According to the techniques of this disclosure, the set of CU level FRUC motion vector candidates may include one or more NA-SMVPs. Furthermore, the video coder may select a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates. The video coder may then determine the CU level motion vector by, at least in part, performing a local search starting from the selected CU level FRUC motion vector candidate. The video coder may also refine the CU level motion vector at the sub-CU level using the set of FRUC sub-CU level motion vector candidates. In this example, at least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates may include an NA-SMVP that specifies a motion vector of a non-adjacent block. The NA-SMVP may be determined according to any of the examples given elsewhere in this disclosure.
[0175]
[0190] High-level syntax related to non-adjacent MVPs may be predetermined or explicitly signaled in the bitstream. The high-level syntax includes, but is not limited to, the following control parameters:
[0176] 1. The number N of adjacent blocks. In some examples, the number is adaptable according to coding information such as block size. In some examples, the number N depends on the coding mode (e.g., skip / merge / AMVP) or the maximum allowed number of candidates for the merge / AMVP / skip mode.
[0177] 2. Distance s / t (if there are multiple parameters s / t, signal them), where s is the horizontal displacement and t is the vertical displacement for the NA block, as shown in Figures 20 to 23.
[0178] 3. Size of parent block for NA block determination.
[0179] 4. Enabling / Disabling Non-Adjacent MVPs.
[0180] 5. The number of levels for locating NA blocks, as explained above with respect to Figures 20-22.
[0181]
[0191] In HEVC, the merging candidate list size ranges from 1 to 5, and the AMVP candidate list size is fixed at 2. In JEM, the merging candidate list size ranges from 1 to 7, and the AMVP candidate list size is fixed at 2. When NA-SMVPs are included in the MVP or merging candidate list, the maximum candidate list size may be increased accordingly. For example, the merging candidate list size may be increased to N (where N is a positive integer and N>7) when one or more NA-SMVPs are inserted into the merging candidate list size. In this example, the AMVP candidate list size may be increased to M (where M is a positive integer and M>2) when one or more NA-SMVPs are inserted into the merging candidate list size.
[0182]
[0192] This disclosure also proposes using synthetic MV candidates in addition to those given in HEVC. The use of additional synthetic MV candidates can also follow the examples given elsewhere in this disclosure regarding the use of non-neighboring MVPs. That is, synthetic MV candidates can be generated based on motion parameters of non-neighboring blocks, where the non-neighboring blocks are determined according to any of the examples given above.
[0183]
[0193] In some examples, a video coder (e.g., the video encoder 20 or the video decoder 30) may 1 , B 1 , B 0 , A 0 , B 2The video coder may generate a synthetic uni-predictive candidate by splitting the available bi-predictive MV candidates into two separate uni-predictive candidates according to a predefined order, such as (see FIG. 2). The video coder may then insert the created synthetic uni-predictive candidate into a candidate list.
[0184]
[0194] Further, in some examples, when integer MVD (i.e., an MVD specified for a precision of one luma sample) or 4 luma sample MVD (i.e., an MVD specified for a precision of four luma samples) is enabled, the video coder may generate a synthetic integer MV candidate (i.e., an MV candidate having a motion vector with a precision of one luma sample) or a 4 luma sample MV candidate (i.e., an MV candidate having a motion vector with a precision of four luma samples) by rounding or truncating an available MV candidate to an integer MV or 4 luma sample MV candidate. The video coder may then insert the generated synthetic integer MV candidate or 4 luma sample MV candidate into a candidate list.
[0185]
[0195] This disclosure also proposes a way to include multiple TMVP candidates in a merge candidate list or an AMVP candidate list. In one example, following the HEVC design in which one co-located picture is signaled, the video coder uses more temporal neighboring blocks to derive more TMVP candidates. For example, in addition to just examining the H and C blocks in order (shown in FIG. 2) and choosing one of them, the video coder may examine more blocks (e.g., co-located blocks of spatial neighboring blocks of the current block). In one example, the spatial neighboring blocks examined by the video coder include adjacent blocks, e.g., A, B, C, D, E, F, H, H, C ... 0 , A 1 , B 0 , B 1 and B. 2Thus, in this example, the video coder considers up to five co-located blocks of adjacent blocks (including or in addition to H and C blocks). In another example, the video coder considers NA blocks (e.g., the 11 NA blocks in FIG. 16 (NA 1,1 , N.A. 1,2 , N.A. 1,3 , N.A. 1,4 , N.A. 1,5 , N.A. 1,6 , N.A. 1,7 , N.A. 1,8 , N.A. 1,9 , N.A. 1,10 , N.A. 1,11 )) collocated blocks may also be considered.
[0186]
[0196] In some examples, the video coder considers a co-located block located on the opposite side of the current block. For example, the NA block NA (located at position (-4,-4)) in FIG. 1,6 For W, the video coder may select a corresponding NA-col-block (i.e., a block that is collocated with a non-adjacent block and is a reference picture) as a block located at (W+3,H+3), where W and H are the width and height of the current block in block-sized basic units of motion information (e.g., 4×4). This creates a set of NA-col-blocks that are at bottom and right positions of the current block. In some examples, the video coder adds this set of MV candidates (i.e., MV candidates defined from NA-col-blocks) to the NA-SMVP in an interleaving manner. Alternatively, in some examples, the video coder may insert this set of MV candidates as a set of TMVP candidates, as in the case of existing AMVP or merge derivation processes described elsewhere in this disclosure.
[0187]
[0197] In some examples, the video coder may select two or more co-located pictures. In other words, the video coder may select two or more reference pictures from which to derive TMVP candidates. In such examples, the selected pictures may be defined as all reference pictures included in the reference picture list, or the selected pictures may be signaled. In one example, for each selected reference picture, the video coder may check the H and C blocks in the selected reference picture in the same order as used in HEVC (i.e., bottom right, then center). Alternatively, in one example, for each selected picture, the video coder checks more blocks (e.g., spatially adjacent blocks of the current block and / or co-located blocks of the NA block).
[0188]
[0198] Furthermore, when the video coder derives multiple TMVP candidates, the video coder may apply a pruning process to remove equivalent TMVP candidates among them. Alternatively, in some examples, the video coder may apply a limited pruning process, meaning that one of the TMVP candidates may be compared with only a certain number of candidates, rather than all of the other candidates. In one example, the video coder may further apply a pruning process between one TMVP candidate and other candidates (such as spatial merging candidates). The proposed technique for using additional TMVP may be applied to some coding modes, such as merging and / or AMVP modes.
[0189]
[0199] As explained in GJ Sullivan, J.-R. Ohm, W.-J. Han, and 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, due to the increased number of intra prediction directions compared to H.264 / MPEG-4 AVC, HEVC considers three most probable modes (MPMs) when predictively coding luma intra prediction modes, instead of the one most probable mode considered in H.264 / MPEG-4 AVC. The MPMs are derived from the intra modes of spatially neighboring blocks. If the current luma prediction mode is one of the three MPMs, only the MPM index is transmitted to the decoder. Otherwise, the index of the current luma prediction mode, excluding the three MPMs, is transmitted to the decoder by using a 5-bit fixed-length code. JEM also follows the same intra-mode prediction scheme, except that JEM may contain four or more MPMs.
[0190]
[0200] This disclosure proposes a technique for using intra-modes of non-adjacent blocks to derive one or more MPMs to achieve better prediction efficiency. The techniques described in the previous section may be applied to MPM derivation. An example of deriving MPMs from non-adjacent blocks is given below with reference to Figures 35 and 36.
[0191]
[0201] 24 is a block diagram illustrating an example video encoder 20 that may implement the techniques of this disclosure. FIG. 24 is provided for illustrative purposes and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. The techniques of this disclosure may be applicable to a variety of coding standards or methods.
[0192]
[0202] The processing circuit includes a video encoder 20, which is configured to perform one or more of the example techniques described in this disclosure. For example, the video encoder 20 includes an integrated circuit, and the various units shown in FIG. 24 may be formed as hardware circuit blocks interconnected with a circuit bus. These hardware circuit blocks may be separate circuit blocks, or two or more of the units may be combined into a common hardware circuit block. The hardware circuit blocks may be formed as a combination of electrical components forming an operational block, such as an arithmetic logic unit (ALU), an elementary function unit (EFU), and logic blocks such as AND, OR, NAND, NOR, XOR, XNOR, and other similar logic blocks.
[0193]
[0203] In some examples, one or more of the units shown in FIG. 24 may be software units executing on a processing circuit. In such examples, object code for these software units is stored in memory. An operating system may cause video encoder 20 to retrieve and execute the object code, which causes video encoder 20 to perform operations to implement the exemplary techniques. In some examples, the software units may be firmware that video encoder 20 executes at startup. Thus, video encoder 20 is a structural component that has hardware that implements the exemplary techniques, or has software / firmware that executes on the hardware to specialize the hardware to implement the exemplary techniques.
[0194]
[0204] In the example of Figure 24, video encoder 20 includes a prediction processing unit 100, a video data memory 101, a residual generation unit 102, a transform processing unit 104, a quantization unit 106, an inverse quantization unit 108, an inverse transform processing unit 110, a reconstruction unit 112, a filter unit 114, a decoded picture buffer 116, and an entropy coding unit 118. Prediction processing unit 100 includes an inter-prediction processing unit 120 and an intra-prediction processing unit 126. Inter-prediction processing unit 120 may include a motion estimation unit and a motion compensation unit (not shown).
[0195]
[0205] The video data memory 101 may be configured to store video data to be encoded by components of the video encoder 20. The video data stored in the video data memory 101 may be obtained, for example, from the video source 18. The decoded picture buffer 116 may be a reference picture memory that stores reference video data for use in encoding the video data by the video encoder 20, for example, in an intra-coding mode or an inter-coding mode. The video data memory 101 and the decoded picture buffer 116 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 101 and the decoded picture buffer 116 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 101 may be on-chip with other components of the video encoder 20 or off-chip relative to those components. The video data memory 101 may be the same as or part of the storage medium 19 of FIG. 1.
[0196]
[0206] Video encoder 20 receives video data. Video encoder 20 may encode each CTU in a slice of a picture of the video data. Each of the CTUs may be associated with an equal-sized luma coding tree block (CTB) and a corresponding CTB of the picture. As part of encoding the CTUs, prediction processing unit 100 may perform partitioning to divide the CTB of the CTU into progressively smaller blocks. The smaller blocks may be coding blocks of a CU. For example, prediction processing unit 100 may partition the CTB associated with the CTU according to a tree structure.
[0197]
[0207] Video encoder 20 may encode a CU of a CTU to generate an encoded representation of the CU (i.e., a coded CU). As part of encoding a CU, prediction processing unit 100 may partition a coding block associated with the CU among one or more PUs of the CU. Thus, each PU may be associated with a luma prediction block and a corresponding chroma prediction block. Video encoder 20 and video decoder 30 may support PUs having various sizes. As mentioned above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction block of the PU. Assuming that the size of a particular CU is 2N×2N, video encoder 20 and video decoder 30 may support a PU size of 2N×2N or N×N for intra prediction, and a 2N×2N, 2N×N, N×2N, N×N, or similar symmetric PU size for inter prediction. Video encoder 20 and video decoder 30 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0198]
[0208] Inter-prediction processing unit 120 may generate prediction data for the PU. As part of generating prediction data for the PU, inter-prediction processing unit 120 performs inter prediction on the PU. The prediction data for the PU may include a predictive block of the PU and motion information for the PU. Inter-prediction processing unit 120 may perform different operations on a PU of a CU depending on whether the PU is in an I slice, a P slice, or a B slice. In an I slice, all PUs are intra predicted. Thus, when the PU is in an I slice, inter-prediction processing unit 120 does not perform inter prediction on the PU. Thus, for blocks coded in I mode, the predicted block is formed using spatial prediction from previously coded neighboring blocks in the same frame. When the PU is in a P slice, inter-prediction processing unit 120 may use unidirectional inter prediction to generate a predictive block of the PU. When the PU is in a B slice, inter-prediction processing unit 120 may use unidirectional inter prediction or bidirectional inter prediction to generate a predictive block of the PU.
[0199]
[0209] Inter-prediction processing unit 120 may implement certain techniques of this disclosure. For example, inter-prediction processing unit 120 may determine a motion vector of a non-adjacent block of a current picture of video data, where the non-adjacent block is not adjacent to a current block of the current picture. Furthermore, inter-prediction processing unit 120 may determine an MVP for the current block based on the motion vector of the non-adjacent block. Furthermore, inter-prediction processing unit 120 may determine a motion vector of the current block, where the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus the MVD signaled in the bitstream.
[0200]
[0210] Intra-prediction processing unit 126 may generate predictive data for a PU by performing intra prediction on the PU. The predictive data for a PU may include predictive blocks of the PU and various syntax elements. Intra-prediction processing unit 126 may perform intra prediction on PUs in I slices, P slices, and B slices.
[0201]
[0211] To perform intra prediction on a PU, intra prediction processing unit 126 may use multiple intra prediction modes to generate multiple sets of predictive data for the PU. Intra prediction processing unit 126 may use samples from a sample block of a neighboring PU to generate a predictive block for the PU. The neighboring PU may be above, above right, above left, or to the left of the PU, assuming a left-to-right, top-to-bottom coding order for the PU, CU, and CTU. Intra prediction processing unit 126 may use a variety of numbers of intra prediction modes, for example, 33 directional intra prediction modes. In some examples, the number of intra prediction modes may depend on the size of a region associated with the PU.
[0202]
[0212] Prediction processing unit 100 may select prediction data for a PU of a CU from among prediction data generated by inter-prediction processing unit 120 for the PU or prediction data generated by intra-prediction processing unit 126 for the PU. In some examples, prediction processing unit 100 selects prediction data for a PU of a CU based on a rate / distortion metric of a set of prediction data. A prediction block of the selected prediction data may be referred to herein as a selected prediction block. Intra-prediction processing unit 126 may implement techniques of this disclosure related to MPM.
[0203]
[0213] Residual generation unit 102 may generate a residual block (e.g., a luma residual block, a Cb residual block, and a Cr residual block) for the CU based on a coding block (e.g., a luma coding block, a Cb coding block, and a Cr coding block) for the CU and a selected predictive block (e.g., a predictive luma block, a predictive Cb block, and a predictive Cr block) for the PU of the CU. For example, residual generation unit 102 may generate a residual block of a CU such that each sample in the residual block has a value equal to a difference between a sample in the coding block of the CU and a corresponding sample in a corresponding selected predictive block of a PU of the CU.
[0204]
[0214] Transform processing unit 104 may partition the residual block of a CU into transform blocks of the TUs of the CU. For example, transform processing unit 104 may perform quad-tree partitioning to partition the residual block of a CU into transform blocks of the TUs of the CU. Thus, a TU may be associated with a luma transform block and two chroma transform blocks. The size and position of the luma transform block and the chroma transform block of a TU of a CU may or may not be based on the size and position of a prediction block of a PU of the CU. A quad-tree structure known as a "residual quad-tree" (RQT) may include a node associated with each of the regions. The TUs of a CU may correspond to leaf nodes of the RQT.
[0205]
[0215] Transform processing unit 104 may generate a transform coefficient block for each TU of a CU by applying one or more transforms to a transform block of the TU. Transform processing unit 104 may apply various transforms to the transform block associated with the TU. For example, transform processing unit 104 may apply a discrete cosine transform (DCT), a directional transform, or a conceptually similar transform to the transform block. In some examples, transform processing unit 104 does not apply a transform to the transform block. In such examples, the transform block may be treated as a transform coefficient block.
[0206]
[0216] Quantization unit 106 may quantize transform coefficients in a coefficient block. Quantization unit 106 may quantize coefficient blocks associated with a TU of a CU based on a quantization parameter (QP) value associated with the CU. Video encoder 20 may adjust the degree of quantization applied to the coefficient blocks associated with a CU by adjusting the QP value associated with the CU. Quantization may result in loss of information. Thus, the quantized transform coefficients may have less precision than the original coefficients.
[0207]
[0217] Inverse quantization unit 108 and inverse transform processing unit 110 may apply inverse quantization and inverse transform to the coefficient blocks, respectively, to reconstruct residual blocks from the coefficient blocks. Reconstruction unit 112 may add the reconstructed residual blocks to corresponding samples from one or more predictive blocks generated by prediction processing unit 100 to generate reconstructed transform blocks associated with the TUs. By reconstructing the transform blocks for each TU of the CU in this manner, video encoder 20 may reconstruct the coding blocks of the CU.
[0208]
[0218] Filter unit 114 may perform one or more deblocking operations to reduce blocking artifacts in coding blocks associated with the CU. Decoded picture buffer 116 may store the reconstructed coding block after filter unit 114 performs one or more deblocking operations on the reconstructed coding block. Inter-prediction processing unit 120 may use a reference picture including the reconstructed coding block to perform inter prediction on PUs of other pictures. In addition, intra-prediction processing unit 126 may use the reconstructed coding block in decoded picture buffer 116 to perform intra prediction on other PUs in the same picture as the CU.
[0209]
[0219] Entropy encoding unit 118 may receive data from other functional components of video encoder 20. For example, entropy encoding unit 118 may receive coefficient blocks from quantization unit 106 and syntax elements from prediction processing unit 100. Entropy encoding unit 118 may perform one or more entropy encoding operations on the data to generate entropy encoded data. For example, entropy encoding unit 118 may perform a CABAC operation, a context-adaptive variable length coding (CAVLC) operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a Probability Interval Partitioning Entropy (PIPE) coding operation, an Exponential-Golomb coding operation, or another type of entropy encoding operation on the data. Video encoder 20 may output a bitstream that includes the entropy encoded data generated by entropy encoding unit 118. For example, the bitstream may include data that represents values of transform coefficients for the CU.
[0210]
[0220] FIG. 25 is a block diagram illustrating an example video decoder 30 configured to implement the techniques of this disclosure. FIG. 25 is provided for illustrative purposes and is not intended to limit the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 30 in the context of HEVC coding. However, the techniques of this disclosure may be applicable to other coding standards or methodologies.
[0211]
[0221] The processing circuit includes a video decoder 30, which is configured to perform one or more of the exemplary techniques described in this disclosure. For example, the video decoder 30 includes an integrated circuit, and the various units shown in FIG. 25 may be formed as hardware circuit blocks interconnected with a circuit bus. These hardware circuit blocks may be separate circuit blocks, or two or more of the units may be combined into a common hardware circuit block. The hardware circuit blocks may be formed as a combination of electronic components forming an operational block, such as an arithmetic logic unit (ALU), an elementary function unit (EFU), and logic blocks such as AND, OR, NAND, NOR, XOR, XNOR, and other similar logic blocks.
[0212]
[0222] In some examples, one or more of the units shown in FIG. 25 may be software units executing on a processing circuit. In such examples, object code for these software units is stored in memory. An operating system may cause the video decoder 30 to retrieve and execute the object code, which causes the video decoder 30 to perform operations to implement the exemplary techniques. In some examples, the software units may be firmware that the video decoder 30 executes at startup. Thus, the video decoder 30 is a structural component that has hardware that implements the exemplary techniques, or has software / firmware that executes on the hardware to specialize the hardware to implement the exemplary techniques.
[0213]
[0223] In the example of Figure 25, video decoder 30 includes entropy decoding unit 150, video data memory 151, prediction processing unit 152, inverse quantization unit 154, inverse transform processing unit 156, reconstruction unit 158, filter unit 160, and decoded picture buffer 162. Prediction processing unit 152 includes motion compensation unit 164 and intra-prediction processing unit 166. In other examples, video decoder 30 may include more, fewer, or different functional components.
[0214]
[0224] Video data memory 151 may store encoded video data, such as an encoded video bitstream, to be decoded by components of video decoder 30. The video data stored in video data memory 151 may be obtained, for example, from computer-readable medium 16, for example, from a local video source such as a camera, via wired or wireless network communication of video data, or by accessing a physical data storage medium. Video data memory 151 may form a coded picture buffer (CPB) that stores encoded video data from the coded video bitstream. Decoded picture buffer 162 may be a reference picture memory that stores reference video data for use in decoding video data by video decoder 30 in, for example, an intra-coding or inter-coding mode, or for output. Video data memory 151 and decoded picture buffer 162 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 151 and decoded picture buffer 162 may be provided by the same memory device or by separate memory devices. In various examples, video data memory 151 may be on-chip with other components of video decoder 30 or off-chip relative to those components. Video data memory 151 may be the same as or part of storage medium 28 of FIG. 1.
[0215]
[0225] Video data memory 151 receives and stores encoded video data (e.g., NAL units) of the bitstream. Entropy decoding unit 150 may receive the encoded video data (e.g., NAL units) from video data memory 151 and may parse the NAL units to obtain syntax elements. Entropy decoding unit 150 may entropy decode entropy-coded syntax elements in the NAL units. Prediction processing unit 152, inverse quantization unit 154, inverse transform processing unit 156, reconstruction unit 158, and filter unit 160 may generate decoded video data based on the syntax elements extracted from the bitstream. Entropy decoding unit 150 may perform a process that is generally the inverse of that of entropy encoding unit 118.
[0216]
[0226] In addition to obtaining syntax elements from the bitstream, video decoder 30 may perform a reconstruction operation on a non-partitioned CU. To perform a reconstruction operation on a CU, video decoder 30 may perform a reconstruction operation on each TU of the CU. By performing a reconstruction operation on each TU of the CU, video decoder 30 may reconstruct residual blocks of the CU.
[0217]
[0227] As part of performing a reconstruction operation on a TU of a CU, inverse quantization unit 154 may inverse quantize, i.e., dequantize, a coefficient block associated with the TU. After inverse quantization unit 154 inverse quantizes a coefficient block, inverse transform processing unit 156 may apply one or more inverse transforms to the coefficient block to generate a residual block associated with the TU. For example, inverse transform processing unit 156 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the coefficient block.
[0218]
[0228] If the PU is encoded using intra prediction, the intra-prediction processing unit 166 may perform intra prediction to generate a predictive block of the PU. The intra-prediction processing unit 166 may use an intra-prediction mode to generate a predictive block of the PU based on sample spatially neighboring blocks. The intra-prediction processing unit 166 may determine an intra-prediction mode for the PU based on one or more syntax elements obtained from the bitstream. The intra-prediction processing unit 166 may implement techniques of this disclosure related to MPM.
[0219]
[0229] When a PU is encoded using inter prediction, entropy decoding unit 150 and / or motion compensation unit 164 may determine motion information for the PU. The motion compensation unit 164 may determine one or more reference blocks based on the motion information of the PU. The motion compensation unit 164 may generate predictive blocks (e.g., predictive luma blocks, predictive Cb blocks, and predictive Cr blocks) for the PU based on the one or more reference blocks.
[0220]
[0230] According to the techniques of this disclosure, motion compensation unit 164 may determine a motion vector for a non-adjacent block of a current picture of video data, where the non-adjacent block is not adjacent to a current block of the current picture. Further, motion compensation unit 164 may determine a motion MVP for the current block based on the motion vector of the non-adjacent block. Motion compensation unit 164 may also determine a motion vector for the current block based on the MVP for the current block.
[0221]
[0231] Reconstruction unit 158 may use transform blocks (e.g., luma, Cb, and Cr transform blocks) for the TUs of a CU and predictive blocks (e.g., luma, Cb, and Cr blocks) of the PUs of the CU, i.e., either intra-predicted data or inter-predicted data, when applicable, to reconstruct a coding block (e.g., luma, Cb, and Cr coding block) for a CU. For example, reconstruction unit 158 may add samples of the transform blocks (e.g., luma, Cb, and Cr transform blocks) to corresponding samples of the predictive blocks (e.g., luma, Cb, and Cr prediction blocks) to reconstruct a coding block (e.g., luma, Cb, and Cr coding block) of a CU.
[0222]
[0232] Filter unit 160 may perform a deblocking operation to reduce blocking artifacts associated with the coding blocks of the CU. Video decoder 30 may store the coding blocks of the CU in decoded picture buffer 162. Decoded picture buffer 162 may provide reference pictures for subsequent motion compensation, intra prediction, and presentation on a display device, such as display device 32 of FIG. 1. For example, video decoder 30 may perform intra prediction or inter prediction operations on PUs of other CUs based on the blocks in decoded picture buffer 162.
[0223]
[0233] Some aspects of this disclosure have been described with respect to extensions to the HEVC standard for purposes of illustration, although the techniques described in this disclosure may be useful for other video coding processes, including other standards or proprietary video coding processes that have not yet been developed.
[0224]
[0234] A video coder as described in this disclosure may refer to a video encoder or a video decoder. Similarly, a video coding unit may refer to a video encoder or a video decoder. Similarly, video coding may refer to video encoding or video decoding, when applicable. In this disclosure, the phrase "based on" may indicate based only on, based at least in part on, or based in any manner on. This disclosure may use the terms "video unit," or "video block," or "block" to refer to one or more sample blocks and syntax structures used to code samples of one or more blocks of samples. Exemplary types of video units may include CTUs, CUs, PUs, transform units (TUs), macroblocks, macroblock partitions, etc. In some contexts, a description of a PU may be interchanged with a description of a macroblock or macroblock partition. Exemplary types of video blocks may include coding tree blocks, coding blocks, and other types of blocks of video data.
[0225]
[0235] 26 is a flowchart illustrating an example operation of a video encoder for encoding video data in accordance with one or more techniques of this disclosure. In the example of FIG. 26, video encoder 20 may determine (2600) a motion vector for a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to a current block of the current picture.
[0226]
[0236] Further, video encoder 20 may determine an MVP for the current block based on the motion vectors of the non-adjacent blocks (2602). In some examples, the MVP for the current block is in an affine mode. In other words, the motion vectors are specified with respect to the control points in the MVP. In some examples, the non-adjacent blocks are blocks in a template that defines a fixed pattern of non-adjacent blocks relative to the position of the current block.
[0227]
[0237] In one example, as part of determining the MVP for the current block, video encoder 20 may generate a list of MVP candidates based in part on the motion vectors of non-adjacent blocks. In this example, the list of MVP candidates includes MVP candidates that specify the motion vectors of non-adjacent blocks. Further, in this example, video encoder 20 may determine an MVP for the current block from among the MVP candidates in the list of MVP candidates. For example, video encoder 20 may use an RD cost analysis to determine the MVP for the current block.
[0228]
[0238] In some examples, video encoder 20 may order the multiple NA-SMVP candidates in the list of MVP candidates. In such examples, for each respective NA-SMVP candidate of the multiple NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of the multiple non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block. The multiple non-adjacent blocks include a first non-adjacent block. Furthermore, in this example, video encoder 20 may order the multiple NA-SMVP candidates in the list according to a distance of the corresponding non-adjacent block from the current block. The distance may be in terms of L1 or L2.
[0229]
[0239] In some examples, video encoder 20 determines a first plurality of NA-SMVP candidates. For each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of the plurality of non-adjacent blocks. The respective NA-SMVP specifies a motion vector of the respective non-adjacent block. The first plurality of non-adjacent blocks includes the first non-adjacent block. In this example, video encoder 20 may include a second plurality of NA-SMVP candidates in the list, the second plurality of NA-SMVP candidates comprising non-duplicative NA-SMVP candidates in the first plurality of NA-SMVP candidates. In this manner, video encoder 20 may perform a pruning process to remove duplicate NA-SMVP candidates from the list. The second plurality of NA-SMVP candidates may be ordered in the list according to a frequency with which a motion vector specified by an NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates.
[0230]
[0240] In some examples, the list of MVP candidates is a global motion vector candidate list. The global motion vector candidate list comprises MVP candidates that specify a motion vector for each block in the current picture that is coded before the current block. In such examples, the video coder may determine motion vectors for non-adjacent blocks from the MVP candidates in the global motion vector candidate list.
[0231]
[0241] Furthermore, in some examples, video encoder 20 stores multiple non-adjacent MVP candidates in the FIFO buffer, including non-adjacent MVP candidates that specify motion vectors of non-adjacent blocks. In such examples, video encoder 20 updates the FIFO buffer to remove the earliest added non-adjacent MVP candidate from the FIFO buffer and adds the MVP candidate to the FIFO buffer.
[0232]
[0242] In some examples, video encoder 20 applies a pruning process to the list. The pruning process may be adaptive to the block size of the current block. For example, a full motion pruning process or a partial motion pruning process may be applied, as described elsewhere in this disclosure.
[0233]
[0243] Video encoder 20 may also determine a motion vector for the current block (2604). In some examples, such as when merge mode is used, the motion vector for the current block is equal to the motion vector for the MVP. In some examples, such as when AMVP is used, the motion vector for the current block is equal to the motion vector for the MVP plus the MVD signaled in the bitstream.
[0234]
[0244] Further, video encoder 20 may determine a predictive block based on the motion vector of the current block (2606). Video encoder 20 may generate residual sample values based on the predictive block (2608). Video encoder 20 may determine the predictive block and generate the residual sample values according to any of the examples provided elsewhere in this disclosure.
[0235]
[0245] FIG. 27 is a flowchart illustrating an example operation of video decoder 30 for decoding video data according to one or more techniques of this disclosure. In the example of FIG. 27, video decoder 30 may determine (2700) a motion vector for a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to a current block of the current picture. In some examples, the non-adjacent block is a block in a template that defines a fixed pattern of blocks relative to the position of the current block.
[0236]
[0246] In some examples, the list of MVP candidates is a global motion vector candidate list. The global motion vector candidate list comprises MVP candidates that specify a motion vector for each block in the current picture that is coded before the current block. In such examples, the video coder may determine motion vectors for non-adjacent blocks from the MVP candidates in the global motion vector candidate list.
[0237]
[0247] Furthermore, in some examples, video decoder 30 stores multiple non-adjacent MVP candidates in the FIFO buffer, including non-adjacent MVP candidates that specify motion vectors of non-adjacent blocks. In such examples, video encoder 20 updates the FIFO buffer to remove the earliest added non-adjacent MVP candidate from the FIFO buffer and adds the MVP candidate to the FIFO buffer.
[0238]
[0248] Further, video decoder 30 may determine an MVP for the current block based on the motion vectors of the non-adjacent blocks (2702). In some examples, the MVP for the current block may be in affine mode, non-affine mode, or another mode of motion compensated prediction. In one example, as part of determining the MVP for the current block, video decoder 30 may generate a list of MVP candidates based in part on the motion vectors of the non-adjacent blocks. In this example, the list of MVP candidates includes MVP candidates that specify the motion vectors of the non-adjacent blocks. Further, in this example, video decoder 30 may determine an MVP for the current block from among the MVP candidates in the list of MVP candidates. For example, video decoder 30 may use a rate-distortion analysis to identify the best MVP in the list of MVP candidates.
[0239]
[0249] In some examples, the non-adjacent block is a first non-adjacent block, and video decoder 30 orders the multiple NA-SMVP candidates in the list. In other words, video decoder 30 inserts the multiple NA-SMVP candidates into the list according to a particular order. In such examples, for each respective NA-SMVP candidate of the multiple NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of the multiple non-adjacent blocks. The respective NA-SMVP specifies a motion vector of the respective non-adjacent block. In some examples, video decoder 30 orders the multiple NA-SMVP candidates in the list according to a distance (e.g., from an L1 or L2 perspective) of the corresponding non-adjacent block from the current block. In some examples, video decoder 30 orders the multiple NA-SMVP candidates according to any of the examples given elsewhere in this disclosure.
[0240]
[0250] In some examples, the non-adjacent block is a first non-adjacent block, and video decoder 30 further determines a first plurality of NA-SMVP candidates. For example, in such examples, for each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of the plurality of non-adjacent blocks. The respective NA-SMVP specifies a motion vector of the respective non-adjacent block. The first plurality of non-adjacent blocks includes the first non-adjacent block. Further, in such examples, video decoder 30 may order the second plurality of NA-SMVP candidates in the list. In other words, video decoder 30 may include the second plurality of NA-SMVP candidates in the list according to a particular order. The second plurality of NA-SMVP candidates comprises non-overlapping NA-SMVP candidates in the first plurality of NA-SMVP candidates. In some examples, the second plurality of NA-SMVP candidates are ordered in the list according to the frequency with which a motion vector specified by an NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates.
[0241]
[0251] In some examples, video decoder 30 may apply a pruning process to the list. In some such examples, the pruning process is adaptive to the block size of the current block. In some examples, video decoder 30 applies a full motion pruning process to the NA-SMVP and other merging candidates, as described elsewhere in this disclosure. In some examples, video decoder 30 applies only a partial motion pruning process to the NA-SMVP and other merging candidates, as described elsewhere in this disclosure.
[0242]
[0252] Further, video decoder 30 may determine a motion vector of the current block based on the MVP for the current block (2704). In some examples, if the list of MVP candidates is a merge candidate list, video decoder 30 may determine an MVP for the current block such that the MVP for the current block specifies a motion vector of an MVP candidate in the list of MVP candidates. In some examples, if the list of MVP candidates is an AMVP candidate list, video decoder 30 may determine an MVP for the current block such that the motion vector of the MVP for the current block is equal to the motion vector of an MVP candidate in the list of MVP candidates + MVD.
[0243]
[0253] Video decoder 30 may also determine a predictive block based on the motion vector of the current block (2706). For example, video decoder 30 may determine the predictive block based on samples of the reference picture at the location indicated by the motion vector, as described in detail elsewhere in this disclosure. Video decoder 30 may then reconstruct sample values of the current picture based on the predictive block (2708). For example, video decoder 30 may reconstruct sample values of the current picture by adding sample values in the predictive block to residual sample values.
[0244]
[0254] FIG. 28 is a flowchart showing an example operation for determining an NA-SMVP using a FRUC motion vector candidate according to the techniques of this disclosure. In the example of FIG. 28, a video coder (e.g., video encoder 20 or video decoder 30) may determine a set of CU level frame rate up conversion (FRUC) motion vector candidates (2800). Furthermore, the video coder may select a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates (2802). The video coder may determine a CU level motion vector by performing, at least in part, a local search starting from the selected CU level FRUC motion vector candidate (2804). Furthermore, the video coder may refine a CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates (2806). According to the techniques of this disclosure, at least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes an NA-SMVP that specifies a motion vector of a non-adjacent block of FIG. 26 and FIG. 27. The FRUC process may optionally follow examples provided elsewhere in this disclosure.
[0245]
[0255] FIG. 29 is a flowchart illustrating an example operation of video encoder 20 for including a synthetic candidate in a list of MVP candidates for a current block according to one or more techniques of this disclosure. In the example of FIG. 29, video encoder 20 may determine a list of MVP candidates for a current block of a current picture of video data (2900). The list of MVP candidates includes a bi-predictive MVP candidate and a synthetic uni-predictive MVP candidate. Further, in the example of FIG. 29 and according to the techniques of this disclosure, video encoder 20 generates a synthetic uni-predictive MVP candidate based on a motion vector specified by the bi-predictive MVP candidate as part of determining the list of MVP candidates (2902). In one example, video encoder 20 generates a synthetic uni-predictive candidate by splitting available bi-predictive MV candidates into two separate uni-predictive candidates according to a predefined order. In this example, video encoder 20 may then insert the created synthetic uni-predictive candidate into a candidate list. In some examples, when integer MVD or 4 luma sample MVD is enabled, video encoder 20 may generate a synthetic integer MV candidate or a 4 luma sample MV candidate by rounding or truncating an available MV candidate to an integer MV candidate or a 4 luma sample MV candidate. In such examples, video encoder 20 inserts the synthetic integer MV candidate or the 4 luma sample MV candidate into the candidate list.
[0246]
[0256] Further, in the example of Figure 29, video encoder 20 may determine an MVP for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (2904). Further, video encoder 20 may determine a motion vector of the current block (2906). In some examples, such as when merge mode is used, the motion vector of the current block is equal to the motion vector of the MVP. In some examples, such as when AMVP is used, the motion vector of the current block is equal to the motion vector of the MVP plus the MVD signaled in the bitstream.
[0247]
[0257] Video encoder 20 may also determine a predictive block based on the motion vector of the current block (2908). Additionally, video encoder 20 may generate residual sample values based on the predictive block (2910). Video encoder 20 may determine the predictive block and generate the residual sample values according to any of the examples provided elsewhere in this disclosure.
[0248]
[0258] FIG. 30 is a flowchart illustrating an example operation of the video decoder 30 for including a synthesized candidate in a list of MVP candidates for a current block according to one or more techniques of this disclosure. In the example of FIG. 30, the video decoder 30 may determine a list of MVP candidates for a current block of a current picture of the video data (3000). The list of MVP candidates includes a bi-predictive MVP candidate and a synthesized uni-predictive MVP candidate. Further, in the example of FIG. 30 and according to the techniques of this disclosure, the video decoder 30 generates a synthesized uni-predictive MVP candidate based on a motion vector specified by the bi-predictive MVP candidate as part of determining the list of MVP candidates (3002). In one example, the video decoder 30 generates a synthesized uni-predictive candidate by splitting the available bi-predictive MV candidates into two separate uni-predictive candidates according to a predefined order. In this example, the video decoder 30 may then insert the created synthesized uni-predictive candidate into a candidate list. In some examples, when integer MVD or 4 luma sample MVD is enabled, video decoder 30 generates a synthetic integer MV candidate or a 4 luma sample MV candidate by rounding or truncating an available MV candidate to an integer MV candidate or a 4 luma sample MV candidate. In such examples, video decoder 30 inserts the synthetic integer MV candidate or the 4 luma sample MV candidate into the candidate list.
[0249]
[0259] In the example of Figure 30, video decoder 30 may then determine an MVP for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (3004). Further, video decoder 30 may determine a motion vector for the current block based on the MVP for the current block (3006). Video decoder 30 may determine a predictive block based on the motion vector of the current block (3008). Further, video decoder 30 may reconstruct sample values of the current picture based on the predictive block (3010). Video decoder 30 may select an MVP candidate, determine a motion vector, determine a predictive block, and reconstruct values of the current picture according to any of the examples provided elsewhere in this disclosure.
[0250]
[0260] FIG. 31 is a flowchart illustrating an example operation of video encoder 20 for encoding video data according to the techniques of this disclosure. In the example of FIG. 31, video encoder 20 determines a list of MVP candidates for a current block of a current picture of the video data (3100). Video encoder 20 may determine the list of MVP candidates according to any of the examples given elsewhere in this disclosure. Further, according to the techniques of this disclosure, video encoder 20 determines a composite MVP candidate by rounding or truncating the MVP candidates in the list to an integer resolution or a 4-luma sample resolution (3102). Video encoder 20 may then insert the composite MVP candidate into the list of MVP candidates (3104).
[0251]
[0261] Video encoder 20 may then determine a motion vector predictor (MVP) for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (3106). For example, video encoder 20 may use a rate-distortion test to select an MVP for the current block. Further, video encoder 20 may determine a motion vector of the current block (3108). In some examples, such as when merge mode is used, the motion vector of the current block is equal to the motion vector of the MVP. In some examples, such as when AMVP is used, the motion vector of the current block is equal to the motion vector of the MVP plus the MVD signaled in the bitstream.
[0252]
[0262] Video encoder 20 may determine a predictive block based on the motion vector of the current block (3110). Video encoder 20 may then generate residual sample values based on the predictive block (3112). Video encoder 20 may determine the predictive block and generate the residual sample values according to any of the examples provided elsewhere in this disclosure.
[0253]
[0263] FIG. 32 is a flowchart illustrating an example operation of video decoder 30 for decoding video data according to the techniques of this disclosure. In the example of FIG. 32, video decoder 30 determines a list of MVP candidates for a current block of a current picture of the video data (3200). Video decoder 30 may determine the list of MVP candidates according to any of the examples given elsewhere in this disclosure. Further, according to the techniques of this disclosure, video decoder 30 may determine a composite MVP candidate by rounding or truncating the MVP candidates in the list to integer resolution or 4 luma sample resolution (3202). Video decoder 30 may then insert the composite MVP candidate into the list of MVP candidates (3204).
[0254]
[0264] Video decoder 30 may then determine an MVP for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (3206). Further, video decoder 30 may determine a motion vector for the current block based on the MVP for the current block (3208). Video decoder 30 may also determine a predictive block based on the motion vector of the current block (3210). Further, video decoder 30 may reconstruct sample values of the current picture based on the predictive block (3212). Video decoder 30 may select an MVP candidate, determine a motion vector, determine a predictive block, and reconstruct values of the current picture according to any of the examples provided elsewhere in this disclosure.
[0255]
[0265] FIG. 33 is a flowchart illustrating an example operation of video encoder 20 for encoding video data according to the techniques of this disclosure. In the example of FIG. 33, video encoder 20 may determine a list of MVP candidates for a current block of a current picture of the video data (3300). In general, video encoder 20 may determine the list of MVP candidates according to any of the examples provided elsewhere in this disclosure. However, according to the techniques of this disclosure, the list of MVP candidates includes multiple TMVP candidates. Each respective MVP candidate in the list of MVP candidates specifies a respective motion vector. Each TMVP candidate of the multiple TMVP candidates specifies a motion vector of one or more blocks in one or more reference pictures (e.g., a single reference picture, multiple reference pictures, etc.).
[0256]
[0266] In some examples, the multiple TMVP candidates include two or more TMVP candidates that specify a motion vector of a reference block that is co-located with a location in the current picture (e.g., a location adjacent to the current block, a location non-adjacent to the current block), In such examples, the reference block is a block of one or more reference pictures.
[0257]
[0267] In some examples, video encoder 20 may apply a pruning process to the list of MVP candidates. For example, video encoder 20 may apply a pruning process to the list of MVP candidates to remove all or some of the equivalent MVP candidates in the list of MVP candidates.
[0258]
[0268] Further, in the example of Figure 33, video encoder 20 may determine an MVP for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (3302). For example, video encoder 20 may use a rate-distortion test to determine the MVP for the current block. Video encoder 20 may also determine a motion vector of the current block (3304). In some examples, such as when merge mode is used, the motion vector of the current block is equal to the motion vector of the MVP. In some examples, such as when AMVP is used, the motion vector of the current block is equal to the motion vector of the MVP plus the MVD signaled in the bitstream.
[0259]
[0269] Further, video encoder 20 may use the motion vector of the current block to determine the predictive block (3306). Further, video encoder 20 may generate residual sample values based on the predictive block (3308). Video encoder 20 may determine the predictive block and generate the residual sample values according to any of the examples provided elsewhere in this disclosure.
[0260]
[0270] FIG. 34 is a flowchart illustrating an example operation of video decoder 30 for decoding video data according to one or more examples of this disclosure. In the example of FIG. 34, video decoder 30 may determine a list of MVP candidates for a current block of a current picture of the video data (3400). In general, video decoder 30 may determine the list of MVP candidates according to any of the examples provided elsewhere in this disclosure. However, according to the techniques of this disclosure, the list of MVP candidates includes multiple TMVP candidates. Each respective MVP candidate in the list of MVP candidates specifies a respective motion vector. Each TMVP candidate of the multiple TMVP candidates specifies a motion vector of one or more blocks in one or more reference pictures (e.g., a single reference picture, multiple reference pictures, etc.).
[0261]
[0271] In one example, the multiple TMVP candidates include two or more TMVP candidates that specify a motion vector of a reference block co-located with a location in the current picture. In this example, the reference block is a block of one or more reference pictures (e.g., a single reference picture, multiple reference pictures, etc.). In some instances of this example, the location is adjacent to the current block. In some instances of this example, the location is not adjacent to the current block.
[0262]
[0272] In some examples, video decoder 30 may apply a pruning process to the list of MVP candidates. For example, video decoder 30 may apply a pruning process to the list of MVP candidates to remove all or a portion of the equivalent MVP candidates in the list of MVP candidates.
[0263]
[0273] Further, in the example of Figure 34, video decoder 30 may determine an MVP for the current block based on the motion vector of the selected MVP candidate in the list of MVP candidates (3402). Video decoder 30 may determine a motion vector for the current block based on the MVP for the current block (3404). Further, video decoder 30 may determine a predictive block based on the motion vector of the current block (3406). Video decoder 30 may reconstruct sample values of the current picture based on the predictive block (3408). Video decoder 30 may select an MVP candidate, determine a motion vector, determine a predictive block, and reconstruct values of the current picture according to any of the examples provided elsewhere in this disclosure.
[0264]
[0274] FIG. 35 is a flowchart illustrating an example operation of video encoder 20 for encoding video data according to techniques of this disclosure. In the example of FIG. 35, video encoder 20 may determine a plurality of most probable modes (MPMs) (3500). Each respective MPM of the plurality of MPMs specifies a respective intra-prediction mode of a respective block. In the example of FIG. 35, the plurality of MPMs includes a particular MPM that specifies an intra-prediction mode of a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to a current block of the current picture. In some examples, the non-adjacent block is a block in a template that defines a fixed pattern of non-adjacent blocks relative to a position of the current block. In other examples, the non-adjacent block is a block within a particular distance of the current block. The non-adjacent block may be determined according to any of the examples given elsewhere in this disclosure.
[0265]
[0275] In some examples, as part of determining the multiple MPMs, video encoder 20 may determine an ordered list of MPMs. In such examples, the MPMs based on non-adjacent blocks are ordered in the list according to the frequency with which an intra-prediction mode is specified by a non-adjacent block in the multiple non-adjacent blocks. In other examples, the MPMs based on non-adjacent blocks are not ordered in the list according to such frequency.
[0266]
[0276] In some examples, to determine the multiple MPMs, video encoder 20 may determine a global MPM list comprising an MPM that specifies motion information for each block in the current picture and encoded prior to the current block. In such examples, video encoder 20 may determine the MPM from an MPM in the global motion vector candidate list. In some examples, video encoder 20 may store multiple non-adjacent MPMs in a FIFO buffer. In such examples, the multiple non-adjacent MPMs include a non-adjacent MPM that specifies an intra-prediction mode of a non-adjacent block. Further, in such examples, video encoder 20 may update the FIFO buffer to remove the earliest added non-adjacent MPM from the FIFO buffer and add an MPM to the FIFO buffer. The multiple MPMs may include an MPM in the FIFO buffer.
[0267]
[0277] Further, in the example of Figure 35, video encoder 20 may generate a predictive block based on an intra-prediction mode specified by an MPM of the multiple MPMs (3502). Further, video encoder 20 may generate residual sample values based on the predictive block (3504). Video encoder 20 may determine the predictive block and generate residual sample values according to any of the examples provided elsewhere in this disclosure.
[0268]
[0278] FIG. 36 is a flowchart illustrating an example operation of video decoder 30 for decoding video data according to the techniques of this disclosure. In the example of FIG. 36, video decoder 30 may determine a plurality of MPMs (3600). Each respective MPM of the plurality of MPMs specifies a respective intra-prediction mode of a respective block. According to the techniques of this disclosure, the plurality of MPMs includes a particular MPM that specifies an intra-prediction mode of a non-adjacent block of a current picture of the video data. The non-adjacent block is not adjacent to a current block of the current picture. In some examples, the non-adjacent block is a block in a template that defines a fixed pattern of non-adjacent blocks relative to the position of the current block. In other examples, the non-adjacent block is a fixed distance from the current block. The non-adjacent block may be determined according to any of the examples given elsewhere in this disclosure.
[0269]
[0279] In some examples, as part of determining the multiple MPMs, video decoder 30 may determine an ordered list of MPMs. In such examples, the MPMs based on non-adjacent blocks are ordered in the list according to the frequency with which an intra-prediction mode is specified by a non-adjacent block in the multiple non-adjacent blocks. In other examples, the MPMs based on non-adjacent blocks are not ordered in the list according to such frequency.
[0270]
[0280] In some examples, the multiple MPMs are a global MPM list comprising MPMs that specify motion information for each block in the current picture and that is coded prior to the current block. In such examples, video decoder 30 may determine the MPM from the MPMs in the global motion vector candidate list. In some examples, video decoder 30 may store the multiple non-adjacent MPMs in a first-in, first-out (FIFO) buffer. In such examples, the multiple non-adjacent MPMs include a non-adjacent MPM that specifies an intra-prediction mode of a non-adjacent block. Further, in such examples, video decoder 30 may update the FIFO buffer to remove the earliest added non-adjacent MPM from the FIFO buffer and add an MPM to the FIFO buffer. The multiple MPMs may include an MPM in the FIFO buffer.
[0271]
[0281] Further, in the example of Figure 36, video decoder 30 may generate a predictive block based on an intra-prediction mode specified by an MPM of the multiple MPMs (3602). Further, video decoder 30 may reconstruct sample values of the current picture based on the predictive block (3604). Video decoder 30 may generate the predictive block and reconstruct the sample values according to any of the techniques provided elsewhere in this disclosure.
[0272]
[0282] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as dynamic adaptive streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0273]
[0283] In this disclosure, ordinal terms such as "first," "second," "third," etc. are not necessarily indicators of position within the sequence, but rather may be used merely to distinguish between different instances of the same thing.
[0274]
[0284] In accordance with the above examples, it should be appreciated that some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all described acts or events are necessary for the practice of the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.
[0275]
[0285] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that enables the transfer of a computer program from one place to another, for example according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processing circuits to retrieve instructions, code and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0276]
[0286] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, cache memory, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if the instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.
[0277]
[0287] The functions described in this disclosure may be implemented by fixed function and / or programmable processing circuitry. For example, instructions may be executed by fixed function and / or programmable processing circuitry. Such processing circuitry may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated circuits or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the above structures or other structures suitable for implementing the techniques described herein. Furthermore, in some aspects, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented with one or more circuits or logic elements. The processing circuitry may be coupled to other components in various ways. For example, the processing circuitry may be coupled to other components via an internal device interconnect, a wired or wireless network connection, or another communication medium.
[0278]
[0288] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). In this disclosure, various components, modules, or units have been described to highlight functional aspects of devices configured to implement the disclosed techniques, but those components, modules, or units do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or provided by a collection of interoperable hardware units, including one or more processors described above, along with suitable software and / or firmware.
[0279]
[0289] Various examples have been described. These and other examples are within the scope of the following claims. The invention as originally claimed in the present application is set forth below. [C1] 1. A method for decoding video data, comprising the steps of: determining, by a video decoder, a motion vector of a non-adjacent block of a current picture of the video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining, by the video decoder, a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining, by the video decoder, a motion vector for the current block based on the MVP for the current block; determining, by the video decoder, a prediction block based on the motion vector of the current block; reconstructing, by the video decoder, sample values of the current picture based on the predicted block; A method comprising: [C2] Determining the MVP for the current block includes: generating, by the video decoder, a list of motion vector predictor (MVP) candidates based in part on the motion vector of the non-adjacent block, wherein the list of MVP candidates includes an MVP candidate that specifies the motion vector of the non-adjacent block. determining, by the video decoder, the MVP for the current block from among the MVP candidates in the list of MVP candidates; The method of claim C1, comprising: [C3] The non-adjacent block is a first non-adjacent block, and the method includes: ordering, by the video decoder, a plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list; wherein for each respective NA-SMVP candidate of the plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the plurality of non-adjacent blocks includes the first non-adjacent block; wherein the plurality of NA-SMVP candidates are ordered in the list according to the distance of the corresponding non-adjacent blocks from the current block. The method according to C2. [C4] The non-adjacent block is a first non-adjacent block, and the method includes: determining, by the video decoder, a first plurality of non-adjacent spatial MVP (NA-SMVP) candidates; wherein for each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies the motion vector of the respective non-adjacent block; wherein the first plurality of non-adjacent blocks includes the first non-adjacent block. ordering, by the video decoder, a second plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list, the second plurality of NA-SMVP candidates comprising non-overlapping NA-SMVP candidates in the first plurality of NA-SMVP candidates; wherein the second plurality of NA-SMVP candidates are ordered in the list according to the frequency with which a motion vector specified by the NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates; The method of C2, further comprising: [C5] The method of C2, further comprising applying, by the video decoder, a pruning process to the list, wherein the pruning process is adaptive to a block size of the current block. [C6] The method of claim 1, wherein the MVP for the current block is in affine mode. [C7] Determining the motion vector for the current block comprises: determining, by the video decoder, the motion vector of the current block such that the motion vector of the current block points to a motion vector of the MVP for the current block; The method of claim C1, comprising: [C8] Determining the motion vector for the current block comprises: determining, by the video decoder, the motion vector of the current block such that the motion vector of the current block is equal to a motion vector of the MVP motion information for the current block plus a motion vector differential (MVD); The method of claim C1, comprising: [C9] The method of claim C1, wherein the non-adjacent blocks are blocks in a template that defines a fixed pattern of blocks relative to the position of the current block. [C10] determining, by the video decoder, a global motion vector candidate list comprising MVP candidates specifying a motion vector for each block in the current picture that is decoded before the current block; determining, by the video decoder, the motion vector for the non-adjacent block from MVP candidates in the global motion vector candidate list; The method of C1, further comprising: [C11] storing, by the video decoder, a plurality of non-adjacent MVP candidates in a first-in, first-out (FIFO) buffer, the plurality of non-adjacent MVP candidates including non-adjacent MVP candidates that specify the motion vectors of the non-adjacent blocks. updating, by the video decoder, the FIFO buffer to remove an earliest added non-adjacent MVP candidate from the FIFO buffer and adding an MVP candidate to the FIFO buffer; The method of C1, further comprising: [C12] determining, by the video decoder, a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting, by the video decoder, a CU-level FRUC motion vector candidate from the set of CU-level FRUC motion vector candidates; determining, by the video decoder, a CU level motion vector by performing, at least in part, a local search starting from the selected CU level FRUC motion vector candidate; refining, by the video decoder, the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; Further equipped with At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The method according to C1. [C13] repositioning the non-adjacent block prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and the current block being greater than a threshold distance; The method of claim C1, further comprising: [C14] The method of claim 13, wherein modifying the position of the non-adjacent block comprises rounding the position of the non-adjacent block to a position on a first grid of blocks in the current picture that is coarser than a second grid of blocks in the current picture. [C15] The method of C13, wherein modifying the positions of the non-adjacent blocks comprises clipping positions of the non-adjacent blocks to the distance threshold. [C16] prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and a current coding tree block being greater than a threshold distance, the current coding tree block including the current block. The method according to C1. [C17] 1. A method for encoding video data, comprising the steps of: determining, by a video encoder, a motion vector for a non-adjacent block of a current picture of the video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining, by the video encoder, a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining, by the video encoder, a motion vector for the current block, wherein the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in a bitstream; determining, by the video encoder, a prediction block based on the motion vector of the current block; generating, by the video encoder, residual sample values based on the prediction block; A method comprising: [C18] Determining the MVP for the current block includes: generating, by the video encoder, a list of motion vector predictor (MVP) candidates based in part on the motion vector of the non-adjacent block, wherein the list of MVP candidates includes an MVP candidate that specifies the motion vector of the non-adjacent block. determining, by the video encoder, the MVP for the current block from among the MVP candidates in the list of MVP candidates; The method of claim 17, comprising: [C19] The non-adjacent block is a first non-adjacent block, and the method includes: ordering, by the video encoder, a plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list; wherein for each respective NA-SMVP candidate of the plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the plurality of non-adjacent blocks includes the first non-adjacent block; wherein the plurality of NA-SMVP candidates are ordered in the list according to the distance of the corresponding non-adjacent blocks from the current block. The method according to C18. [C20] The non-adjacent block is a first non-adjacent block, and the method includes: determining, by the video encoder, a first plurality of non-adjacent spatial MVP (NA-SMVP) candidates; wherein for each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the first plurality of non-adjacent blocks includes the first non-adjacent block. including, by the video encoder, a second plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list, the second plurality of NA-SMVP candidates comprising non-overlapping NA-SMVP candidates in the first plurality of NA-SMVP candidates; wherein the second plurality of NA-SMVP candidates are ordered in the list according to the frequency with which a motion vector specified by the NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates; The method of C18, further comprising: [C21] The method of C18, further comprising applying, by the video encoder, a pruning process to the list, wherein the pruning process is adaptive to a block size of the current block. [C22] The method of claim 17, wherein the MVP for the current block is in affine mode. [C23] The method of C17, wherein the non-adjacent blocks are blocks in a template that defines a fixed pattern of blocks relative to the position of the current block. [C24] determining, by the video encoder, a global motion vector candidate list comprising MVP candidates specifying a motion vector for each block in the current picture that is to be coded before the current block; determining, by the video encoder, the motion vector for the non-adjacent block from MVP candidates in the global motion vector candidate list; The method of C17, further comprising: [C25] storing, by the video encoder, a plurality of non-adjacent MVP candidates in a first-in, first-out (FIFO) buffer, the plurality of non-adjacent MVP candidates including a non-adjacent MVP candidate that specifies the motion vector of the non-adjacent block. updating the FIFO buffer to remove an earliest added non-adjacent MVP candidate from the FIFO buffer by the video encoder and adding an MVP candidate to the FIFO buffer; The method of C17, further comprising: [C26] determining, by the video encoder, a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting, by the video encoder, a CU-level FRUC motion vector candidate from the set of CU-level FRUC motion vector candidates; determining, by the video encoder, at least in part, a CU level motion vector by performing a local search starting from the selected CU level FRUC motion vector candidate; refining, by the video encoder, the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; Further equipped with At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The method according to C17. [C27] repositioning the non-adjacent block prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and the current block being greater than a threshold distance; The method of C17, further comprising: [C28] The method of C27, wherein modifying the position of the non-adjacent block comprises rounding the position of the non-adjacent block to a position on a first grid of blocks in the current picture that is coarser than a second grid of blocks in the current picture. [C29] The method of C27, wherein modifying the positions of the non-adjacent blocks comprises clipping positions of the non-adjacent blocks to the distance threshold. [C30] prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and a current coding tree block being greater than a threshold distance, the current coding tree block including the current block. The method according to C17. [C31] 1. An apparatus for decoding video data, comprising: one or more storage media configured to store video data; one or more processors; wherein the one or more processors: determining a motion vector of a non-adjacent block of a current picture of the video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining a motion vector for the current block based on the MVP for the current block; determining a prediction block based on the motion vector of the current block; reconstructing sample values of the current picture based on the predicted block; An apparatus configured to: [C32] The one or more processors, as part of determining the MVP for the current block, generating a list of motion vector predictor (MVP) candidates based in part on the motion vectors of the non-adjacent blocks, where the list of MVP candidates includes an MVP candidate that specifies the motion vectors of the non-adjacent blocks. determining the MVP for the current block from among the MVP candidates in the list of MVP candidates; The apparatus of C31, configured to perform the steps of: [C33] the non-adjacent block is a first non-adjacent block, and the one or more processors: further configured to order the plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list; wherein for each respective NA-SMVP candidate of the plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the plurality of non-adjacent blocks includes the first non-adjacent block; wherein the plurality of NA-SMVP candidates are ordered in the list according to the distance of the corresponding non-adjacent blocks from the current block. The apparatus described in C32. [C34] the non-adjacent block is a first non-adjacent block, and the one or more processors: determining a first plurality of non-adjacent spatial MVP (NA-SMVP) candidates; wherein for each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies the motion vector of the respective non-adjacent block; wherein the first plurality of non-adjacent blocks includes the first non-adjacent block. ordering a second plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list, the second plurality of NA-SMVP candidates comprising non-overlapping NA-SMVP candidates in the first plurality of NA-SMVP candidates; wherein the second plurality of NA-SMVP candidates are ordered in the list according to the frequency with which a motion vector specified by the NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates; The apparatus of C32, further configured to: [C35] The apparatus of C32, wherein the one or more processors are further configured to apply a pruning process to the list, wherein the pruning process is adaptive to a block size of the current block. [C36] The apparatus of C31, wherein the MVP for the current block is in affine mode. [C37] The one or more processors may, as part of determining the motion vector for the current block, include: determining the motion vector of the current block such that the motion vector of the current block points to the motion vector of the MVP candidate for the current block; The apparatus described in C31, configured as follows. [C38] The one or more processors may, as part of determining the motion vector for the current block, include: determining the motion vector of the current block such that the motion vector of the current block is equal to the motion vector of the motion information of the MVP for the current block; The apparatus described in C31, configured as follows. [C39] The apparatus of C31, wherein the non-adjacent blocks are blocks in a template that defines a fixed pattern of blocks relative to the position of the current block. [C40] The one or more processors: determining a global motion vector candidate list comprising MVP candidates specifying a motion vector for each block in the current picture that is decoded before the current block; determining the motion vector for the non-adjacent block from MVP candidates in the global motion vector candidate list; The apparatus of C31, further configured to: [C41] The one or more processors: storing a plurality of non-adjacent MVP candidates in a first-in, first-out (FIFO) buffer, the plurality of non-adjacent MVP candidates including a non-adjacent MVP candidate that specifies the motion vector of the non-adjacent block; updating the FIFO buffer to remove an earliest added non-adjacent MVP candidate from the FIFO buffer and adding an MVP candidate to the FIFO buffer; The apparatus of C31, further configured to: [C42] The one or more processors: determining a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting a CU-level FRUC motion vector candidate from the set of CU-level FRUC motion vector candidates; determining a CU-level motion vector by performing, at least in part, a local search starting from the selected CU-level FRUC motion vector candidate; refining the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates;
[0023] 20. The method according to claim 1, further comprising: At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The apparatus described in C31. [C43] The one or more processors: repositioning the non-adjacent block prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and the current block being greater than a threshold distance. The apparatus described in C31, configured as follows. [C44] The apparatus of C43, wherein the one or more processors are configured, as part of changing the position of the non-adjacent block, to round the position of the non-adjacent block to a position on a first grid of blocks in the current picture that is coarser than a second grid of blocks in the current picture. [C45] The apparatus of C43, wherein the one or more processors are configured, as part of modifying the position of the non-adjacent block, the one or more processors are configured to clip the position of the non-adjacent block to the distance threshold. [C46] The one or more processors: configured to reposition the non-adjacent block prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and a current coding tree block being greater than a threshold distance, the current coding tree block containing the current block. The apparatus described in C31. [C47] The apparatus comprises: Integrated circuits, Microprocessor, or Wireless Communication Devices The apparatus of C31, comprising: [C48] 1. An apparatus for encoding video data, comprising: one or more storage media configured to store video data; one or more processors; wherein the one or more processors: determining a motion vector of a non-adjacent block of a current picture of the video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining a motion vector of the current block, wherein the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; determining a prediction block based on the motion vector of the current block; generating residual sample values based on the prediction block; An apparatus configured to: [C49] The one or more processors, as part of determining the MVP for the current block, generating a list of motion vector predictor (MVP) candidates based in part on the motion vectors of the non-adjacent blocks, where the list of MVP candidates includes an MVP candidate that specifies the motion vectors of the non-adjacent blocks. determining the MVP for the current block from among the MVP candidates in the list of MVP candidates; The apparatus of C48, configured to: [C50] the non-adjacent block is a first non-adjacent block, and the one or more processors: further configured to order the plurality of non-adjacent spatial MVP (NA-SMVP) candidates in the list; wherein for each respective NA-SMVP candidate of the plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the plurality of non-adjacent blocks includes the first non-adjacent block; wherein the plurality of NA-SMVP candidates are ordered in the list according to the distance of the corresponding non-adjacent blocks from the current block. The apparatus described in C49. [C51] the non-adjacent block is a first non-adjacent block, and the one or more processors: determining a first plurality of non-adjacent spatial MVP (NA-SMVP) candidates; wherein for each respective NA-SMVP candidate of the first plurality of NA-SMVP candidates, the respective NA-SMVP candidate corresponds to a respective non-adjacent block of a plurality of non-adjacent blocks, and the respective NA-SMVP specifies a motion vector of the respective non-adjacent block; wherein the first plurality of non-adjacent blocks includes the first non-adjacent block. including a second plurality of non-adjacent spatial MVP (NA-SMVP) candidates in said list, said second plurality of NA-SMVP candidates comprising non-overlapping NA-SMVP candidates in said first plurality of NA-SMVP candidates; wherein the second plurality of NA-SMVP candidates are ordered in the list according to the frequency with which a motion vector specified by the NA-SMVP candidate in the second plurality of NA-SMVP candidates is specified by an NA-SMVP candidate in the first plurality of NA-SMVP candidates; The apparatus of C50, further configured to: [C52] The apparatus of C49, wherein the one or more processors are further configured to apply a pruning process to the list, wherein the pruning process is adaptive to a block size of the current block. [C53] The apparatus of C48, wherein the MVP for the current block is in affine mode. [C54] The apparatus of C48, wherein the non-adjacent blocks are blocks in a template that defines a fixed pattern of blocks relative to the position of the current block. [C55] The one or more processors: determining a global motion vector candidate list comprising MVP candidates specifying a motion vector for each block in the current picture that is coded before the current block; determining the motion vector for the non-adjacent block from MVP candidates in the global motion vector candidate list; The apparatus of C48, further configured to: [C56] The one or more processors: storing a plurality of non-adjacent MVP candidates in a first-in, first-out (FIFO) buffer, the plurality of non-adjacent MVP candidates including a non-adjacent MVP candidate that specifies the motion vector of the non-adjacent block; updating the FIFO buffer to remove an earliest added non-adjacent MVP candidate from the FIFO buffer and adding an MVP candidate to the FIFO buffer; The apparatus of C48, further configured to: [C57] The one or more processors: determining a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting a CU-level FRUC motion vector candidate from the set of CU-level FRUC motion vector candidates; determining a CU-level motion vector by performing, at least in part, a local search starting from the selected CU-level FRUC motion vector candidate; refining the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates;
[0023] 20. The method according to claim 1, further comprising: At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The apparatus described in C48. [C58] The one or more processors: repositioning the non-adjacent block prior to determining the motion vector of the non-adjacent block and based on a distance between the non-adjacent block and the current block being greater than a threshold distance. The apparatus described in C48, configured as follows. [C59] The apparatus of C58, wherein the one or more processors are configured, as part of changing the position of the non-adjacent block, to round the position of the non-adjacent block to a position on a first grid of blocks in the current picture that is coarser than a second grid of blocks in the current picture. [C60] 5. The apparatus of claim 4, wherein the one or more processors are configured to, as part of modifying the positions of the non-adjacent blocks, clip the positions of the non-adjacent blocks to the distance threshold. [C61] The one or more processors: The apparatus of C48, further comprising: prior to determining the motion vector of the non-adjacent block, and configured to reposition the non-adjacent block based on a distance between the non-adjacent block and a current coding tree block being greater than a threshold distance, the current coding tree block including the current block. [C62] The apparatus comprises: Integrated circuits, Microprocessor, or Wireless Communication Devices The apparatus of C48, comprising: [C63] 1. An apparatus for decoding video data, comprising: means for determining a motion vector of a non-adjacent block of a current picture of said video data, said non-adjacent block being non-adjacent to a current block of said current picture; means for determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; means for determining a motion vector for the current block based on the MVP for the current block; means for determining a prediction block based on the motion vector of the current block; means for reconstructing sample values of the current picture based on the prediction block; An apparatus comprising: [C64] 1. An apparatus for encoding video data, comprising: means for determining a motion vector of a non-adjacent block of a current picture of said video data, said non-adjacent block being non-adjacent to a current block of said current picture; means for determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; means for determining a motion vector of the current block, wherein the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in a bitstream; means for determining a prediction block based on the motion vector of the current block; means for generating residual sample values based on the prediction block; An apparatus comprising: [C65] When executed, it causes one or more processors to determining a motion vector of a non-adjacent block of a current picture of video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining a motion vector for the current block based on the MVP for the current block; determining a prediction block based on the motion vector of the current block; reconstructing sample values of the current picture based on the predicted block; A computer-readable storage medium storing instructions to cause a [C66] When executed, it causes one or more processors to determining a motion vector of a non-adjacent block of a current picture of video data, the non-adjacent block being non-adjacent to a current block of the current picture; determining a motion vector predictor (MVP) for the current block based on the motion vectors of the non-adjacent blocks; determining a motion vector of the current block, wherein the motion vector is equal to the motion vector of the MVP for the current block or equal to the motion vector of the MVP for the current block plus a motion vector differential (MVD) signaled in the bitstream; determining a prediction block based on the motion vector of the current block; generating residual sample values based on the prediction block; A computer-readable storage medium storing instructions to cause a
Claims
1. 1. A method for decoding video data, comprising the steps of: generating, by a video decoder, a first-in-first-out (FIFO) motion vector predictor (MVP) candidate list buffer; and generating the FIFO MVP candidate list buffer, determining, by the video decoder, motion information of a block of the current picture that was decoded before a current block of the current picture, the motion information of the block including a motion vector and a reference index; updating, by the video decoder, the FIFO MVP candidate list buffer; and updating the FIFO MVP candidate list buffer comprises reordering MVP candidates in the FIFO MVP candidate list buffer based on other occurrences of the motion information for the block among the MVP candidates in the FIFO MVP candidate list buffer; Equipped with determining, by the video decoder, an MVP for the current block from among MVP candidates in the FIFO MVP candidate list buffer, the MVP candidates in the FIFO MVP candidate list buffer including motion information of at least one non-adjacent block that is not adjacent to the current block; determining, by the video decoder, a motion vector for the current block based on the MVP for the current block; determining, by the video decoder, a prediction block based on the motion vector of the current block; reconstructing, by the video decoder, sample values of the current block of the current picture based on the predicted block; A method comprising:
2. The method of claim 1, wherein reordering the MVP candidates comprises reordering the MVP candidates such that an MVP candidate in the FIFO MVP candidate list buffer that indicates the motion information of the block has priority over other MVP candidates in the FIFO MVP candidate list buffer.
3. The method of claim 1 , wherein the MVP for the current block is in affine mode.
4. Determining the motion vector for the current block comprises: determining, by the video decoder, the motion vector of the current block such that the motion vector of the current block points to the motion vector of the MVP for the current block or is equal to the motion vector of the motion information of the MVP for the current block plus a motion vector differential (MVD); The method of claim 1 , comprising:
5. determining, by the video decoder, a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting, by the video decoder, a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates; determining, by the video decoder, at least in part, a CU level motion vector by performing a local search starting from the selected CU level FRUC motion vector candidate; refining, by the video decoder, the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; Further equipped with At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The method of claim 1.
6. 1. A method for encoding video data, comprising the steps of: generating, by a video encoder, a first-in-first-out (FIFO) motion vector predictor (MVP) candidate list buffer; and generating the FIFO MVP candidate list buffer, determining, by the video encoder, motion information of a block of the current picture that is encoded before a current block of the current picture, the motion information of the block including a motion vector and a reference index; updating, by the video encoder, the FIFO MVP candidate list buffer; and updating the FIFO MVP candidate list buffer comprising reordering MVP candidates in the FIFO MVP candidate list buffer based on other occurrences of the motion information for the block among the MVP candidates in the FIFO MVP candidate list buffer; Equipped with determining, by the video encoder, an MVP for the current block from among MVP candidates in the FIFO MVP candidate list buffer, the MVP candidates in the FIFO MVP candidate list buffer including motion information of at least one non-adjacent block that is not adjacent to the current block; determining, by the video encoder, a motion vector for the current block based on the MVP for the current block; determining, by the video encoder, a prediction block based on the motion vector of the current block; generating, by the video encoder, residual sample values based on the prediction block; A method comprising:
7. The method of claim 6, wherein reordering the MVP candidates comprises reordering the MVP candidates such that an MVP candidate in the FIFO MVP candidate list buffer that indicates the motion information of the block is prioritized over other MVP candidates in the FIFO MVP candidate list buffer.
8. The method of claim 6 , wherein the MVP for the current block is in affine mode.
9. determining, by the video encoder, a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting, by the video encoder, a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates; determining, by the video encoder, at least in part, a CU level motion vector by performing a local search starting from the selected CU level FRUC motion vector candidate; refining, by the video encoder, the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; Further equipped with At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The method according to claim 6.
10. 1. A device for decoding video data, comprising: one or more storage media; and one or more processors implemented in a circuit, the one or more processors comprising: generating a first-in-first-out (FIFO) motion vector predictor (MVP) candidate list buffer, wherein the one or more storage media are configured to store the FIFO MVP candidate list buffer, and the one or more processors, as part of generating the FIFO MVP candidate list buffer, determining motion information of a block of a current picture decoded before a current block of the current picture, the motion information of the block including a motion vector and a reference index; updating the FIFO MVP candidate list buffer, and the one or more processors are configured, as part of updating the FIFO MVP candidate list buffer, to reorder MVP candidates in the FIFO MVP candidate list buffer based on other occurrences of the motion information for the block among the MVP candidates in the FIFO MVP candidate list buffer; configured to: determining an MVP for the current block from among MVP candidates in the FIFO MVP candidate list buffer, the MVP candidates in the FIFO MVP candidate list buffer including motion information of at least one non-adjacent block that is not adjacent to the current block; determining a motion vector for the current block based on the MVP for the current block; determining a prediction block based on the motion vector of the current block; reconstructing sample values of the current picture based on the predicted block; A device configured to:
11. The device of claim 10, wherein the one or more processors are further configured, as part of updating the FIFO MVP candidate list buffer, to: remove a previously added MVP candidate from the FIFO MVP candidate list buffer based on no occurrence of the motion information of the block among the MVP candidates in the FIFO MVP candidate list buffer, and add the motion information of the block as an MVP candidate to the FIFO MVP candidate list buffer.
12. The device of claim 10, wherein the one or more processors are configured to reorder the MVP candidates such that an MVP candidate in the FIFO MVP candidate list buffer indicating the motion information of the block has priority over other MVP candidates in the FIFO MVP candidate list buffer.
13. The device of claim 10 , wherein the MVP for the current block is in an affine mode.
14. As part of determining the motion vector for the current block, the one or more processors further determining the motion vector of the current block such that the motion vector of the current block points to the motion vector of the MVP for the current block or is equal to the motion vector of the motion information of the MVP for the current block plus a motion vector differential (MVD); The device of claim 10 configured to:
15. The one or more processors: determining a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates; determining a CU level motion vector by, at least in part, performing a local search starting from the selected CU level FRUC motion vector candidate; refining the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; [0023] 20. The method according to claim 1, further comprising: At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block. The device of claim 10.
16. 1. A device for encoding video data, comprising: one or more storage media; and one or more processors implemented in a circuit, the one or more processors comprising: generating a first-in-first-out (FIFO) motion vector predictor (MVP) candidate list buffer, wherein the one or more storage media are configured to store the FIFO MVP candidate list buffer, and the one or more processors, as part of generating the FIFO MVP candidate list buffer, determining motion information of a block of a current picture that is coded before a current block of the current picture, the motion information of the block including a motion vector and a reference index; updating the FIFO MVP candidate list buffer, and the one or more processors are configured, as part of updating the FIFO MVP candidate list buffer, to reorder MVP candidates in the FIFO MVP candidate list buffer based on there being other occurrences of the motion information for the block among MVP candidates in the FIFO MVP candidate list buffer; configured to: determining an MVP for the current block from among MVP candidates in the FIFO MVP candidate list buffer, the MVP candidates in the FIFO MVP candidate list buffer including motion information of at least one non-adjacent block that is not adjacent to the current block; determining a motion vector for the current block based on the MVP for the current block; determining a prediction block based on the motion vector of the current block; generating residual sample values based on the prediction block; A device configured to:
17. The device of claim 16, wherein the one or more processors are further configured, as part of updating the FIFO MVP candidate list buffer, to remove a previously added MVP candidate from the FIFO MVP candidate list buffer based on no occurrence of the motion information of the block among the MVP candidates in the FIFO MVP candidate list buffer, and to add the motion information of the block as an MVP candidate to the FIFO MVP candidate list buffer.
18. The device of claim 16, wherein the one or more processors are configured to reorder the MVP candidates such that an MVP candidate in the FIFO MVP candidate list buffer indicating the motion information of the block is prioritized over other MVP candidates in the FIFO MVP candidate list buffer.
19. The device of claim 16 , wherein the MVP for the current block is in an affine mode.
20. The one or more processors: determining a set of coding unit (CU) level frame rate up-conversion (FRUC) motion vector candidates; selecting a CU level FRUC motion vector candidate from the set of CU level FRUC motion vector candidates; determining a CU level motion vector by, at least in part, performing a local search starting from the selected CU level FRUC motion vector candidate; refining the CU level motion vector at a sub-CU level using a set of FRUC sub-CU level motion vector candidates; [0023] 20. The method according to claim 1, further comprising: At least one of the set of CU level FRUC motion vector candidates and the set of FRUC sub-CU level motion vector candidates includes a non-adjacent spatial motion vector predictor (NA-SMVP) that specifies the motion vector of the non-adjacent block.
17. The device of claim 16.
Citation Information
Patent Citations
Image decoding device, image coding method, and image coding program
JP2015019336A
Moving picture coding device, moving picture coding method and moving picture coding program, and moving picture decoding device, moving picture decoding method and moving picture decoding program
US20140321547A1
