Adaptive bidirectional matching for improving decoder-side motion vectors for video coding.

By comparing minimum costs across search iterations, the early termination techniques in decoder-side motion vector derivation address the challenge of high computational complexity in video coding, achieving efficient decoder-side motion vector refinement with minimal distortion.

JP7960702B2Active Publication Date: 2026-12-03QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024515628
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-09-06
Filing Date
2022-09-07
Publication Date
2026-12-03
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

Existing video coding techniques face challenges in reducing computational complexity while maintaining low distortion during decoder-side motion vector derivation, particularly in iterative search processes that fail to terminate early when slight improvements are observed.

Method used

Implementing early termination techniques for decoder-side motion vector derivation by comparing the minimum cost through previous search iterations with the total minimum cost through the current search iteration, allowing the iterative search process to terminate early when only slight improvements are observed, thereby reducing computational complexity without significantly increasing distortion.

Benefits of technology

The proposed early termination techniques effectively reduce computational complexity in decoder-side motion vector derivation without substantially increasing distortion, enhancing efficiency in video coding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007960702000007
    Figure 0007960702000007
  • Figure 0007960702000008
    Figure 0007960702000008
  • Figure 0007960702000009
    Figure 0007960702000009
Patent Text Reader

Abstract

An exemplary method for encoding or decoding video data includes determining a motion vector for a block of the video data using a decoder-side motion vector derivation process that includes performing an iterative search process, the performing the iterative search process including determining a minimum cost through previous search iterations, updating a total minimum cost through a current search iteration, and early terminating the iterative search process based on a comparison of the minimum cost through the previous search iterations and the total minimum cost through the current search iteration, determining the motion vector, and encoding or decoding the block of the video data using the motion vector.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (Cross-reference of related applications)

[0001] This application claims priority to U.S. Patent Application No. 17 / 929,891, filed on September 6, 2022, and to U.S. Provisional Patent Application No. 63 / 245,577, filed on September 17, 2021, the entire contents of both applications being incorporated herein by reference. U.S. Patent Application No. 17 / 929,891, filed on September 6, 2022, claims the benefit of U.S. Provisional Patent Application No. 63 / 245,577, filed on September 17, 2021.

[0002]

[0002] This disclosure relates to video coding and video decoding. [Background technology]

[0003]

[0003] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio phones, so-called "smartphones," video teleconferencing devices, and video streaming devices. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), ITU-T H.266 / General Purpose Video Coding (VVC), and extensions of such standards, as well as video coding techniques described in proprietary video codecs / formats such as AOMedia Video1 (AV1) developed by the Alliance for Open Media. Video devices may transmit, receive, encode, decode, and / or store digital video information more efficiently by implementing such video coding techniques.

[0004]

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or eliminate redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be called coding tree units (CTUs), coding units (CUs), and / or coding nodes. A video block in an intra-coded (I) slice of a picture is coded using spatial prediction for a reference sample in an adjacent block within the same picture. A video block in an inter-coded (P or B) slice of a picture may use spatial prediction for a reference sample in an adjacent block within the same picture or temporal prediction for a reference sample in another reference picture. A picture may be called a frame, and a reference picture may be called a reference frame. [Overview of the project]

[0005]

[0005] In general, this disclosure describes techniques related to interpretation in video codecs. More specifically, this disclosure describes devices and techniques relating to decoder-side motion vector improvement and early termination of an iterative search process for determining and / or improving motion vectors. A video encoder / decoder may be configured to determine a minimum cost through previous search iterations and update the total minimum cost through the current search iteration. The iterative search process may then be terminated early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration. In this way, the iterative search process may be terminated early when a slight improvement is observed between consecutive search iterations. Thus, the techniques of this disclosure can reduce computational complexity without substantially increasing distortion.

[0006]

[0006] In one example, the present disclosure describes a method for decoding video data, the method comprising determining a motion vector for a block of video data using a decoder-side motion vector derivation process which includes an iterative search process, wherein the iterative search process includes determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and decoding a block of video data using the motion vector.

[0007]

[0007] In another example, the present disclosure describes a method for encoding video data, the method comprising determining a motion vector for a block of video data using a decoder-side motion vector derivation process which includes an iterative search process, wherein the iterative search process includes determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and encoding a block of video data using the motion vector.

[0008]

[0008] In another example, a device for decoding video data includes a memory configured to store video data and a processing circuit, the processing circuit being configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process which includes an iterative search process, the iterative search process including determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and to decode blocks of video data using motion vectors.

[0009]

[0009] In another example, a device for encoding video data includes a memory configured to store video data and processing circuitry. The processing circuitry is configured to determine a motion vector for a block of the video data using a decoder-side motion vector derivation process that includes an iterative search process, wherein the iterative search process includes determining a minimum cost from a previous search iteration, updating a total minimum cost from a current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost from the previous search iteration and the total minimum cost from the current search iteration, and encode the block of the video data using the motion vector.

[0010]

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

[0011] [Figure 1]

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

[0012] FIG. 2 is a diagram illustrating an example of positions of spatial merge candidates. [Figure 3]

[0013] FIG. 3 is a diagram illustrating an example of motion vector scaling for temporal merge candidates. [Figure 4]

[0014] FIG. 4 is a diagram illustrating example candidate positions for temporal merge candidates. [Figure 5]

[0015] FIG. 5 is a diagram illustrating an example of bilateral matching. [Figure 6]

[0016] FIG. 6 is a diagram illustrating an example of an extended coding unit region used in bilateral optical flow. [Figure 7]

[0017] FIG. 7 is a diagram illustrating an example diamond search region for multi-pass decoder-side motion refinement. [Figure 8]

[0018] This shows an example of template matching performed on the search region around the initial motion vector. [Figure 9]

[0019] A block diagram illustrating a video encoder capable of performing the techniques of this disclosure. [Figure 10]

[0020] A block diagram illustrating an exemplary video decoder capable of performing the techniques of this disclosure. [Figure 11]

[0021] This flowchart shows an exemplary method for encoding a current block using the technique of the present disclosure. [Figure 12]

[0022] This flowchart shows an exemplary method for decrypting a current block using the technique of the present disclosure. [Figure 13]

[0023] This flowchart shows an exemplary method for terminating an iterative search process early, according to an example of the present disclosure. [Figure 14]

[0024] This flowchart shows another exemplary method for decrypting a current block using the technique of the present disclosure. [Figure 15]

[0025] This flowchart shows another exemplary method for encoding a current block using the technique of the present disclosure. [Modes for carrying out the invention]

[0012]

[0026] In some exemplary interpretation techniques, the video decoder may be configured to perform an iterative search process to determine and / or refine motion vectors. Some exemplary techniques include bidirectional matching decoder-side motion vector refinement (DMVR) and template matching. In an exemplary decoder-side motion search process, a cost criterion is defined for either bidirectional matching-based DMVR or template matching and is used to calculate the cost for candidate positions within a predefined search region. Motion information associated with the candidate position with the minimum cost may be the output of the iterative search process. The search process may be performed over multiple iterations. In each iteration, a subset of candidate positions within the search region is evaluated. Generally, the distance between the initial position and the candidate positions increases after each iteration. In other words, the candidate position in the current search iteration may be further from the initial point than the position in the previous iteration.

[0013]

[0027] The variable minCost can represent the minimum cost calculated during the iterative search process, or it can represent the minimum cost of the iterative search process determined up to that point. Several early termination methods can be applied to terminate the search process. In some examples, the search process may terminate if minCost is below a threshold, or if the best candidate position with the minimum cost has not changed from one subset to the next (e.g., from one iteration to the next).

[0014]

[0028] However, in some cases, the minCost calculated during the iterative search process may remain above the threshold but not decrease at a timely rate below the threshold. Therefore, simply comparing minCost to the threshold may result in a slight improvement in picture distortion, but can also lead to longer decoding times and greater computational complexity in the decoder-side motion vector derivation.

[0015]

[0029] To further reduce computational complexity and improve efficiency in decoder-side motion vector derivation, the video encoder / decoder may be configured to determine the minimum cost through previous search iterations and update the total minimum cost through the current search iteration. In other words, the video encoder / decoder may determine the minimum cost through previous search iterations and the total minimum cost through the current search iteration. The iterative search process may then be terminated early based on a comparison of the minimum cost through previous search iterations with the total minimum cost through the current search iteration. In some examples, determining the minimum cost through previous search iterations may include determining the minimum cost for all previous search iterations. In some examples, terminating the iterative search process early may mean that the iterative search process disclosed herein may have the ability to terminate earlier than the normal termination of the iterative search process (i.e., the iterative search process is terminated based on a comparison of the minimum cost through the iterative search iterations (e.g., minCost as described above) with a threshold). Terminating the iterative search process by comparing the minimum cost through previous search iterations with the total minimum cost through the current search iteration may reduce computational complexity without substantially increasing distortion.

[0016]

[0030] In some cases, the iterative search process may terminate early based on the difference between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration, relative to a difference threshold. In some cases, the search process terminates if the difference is less than the difference threshold. In some cases, the iterative search process may terminate early based on the ratio between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration, relative to a ratio threshold. In some cases, the iterative search process may terminate early based on the ratio between the minimum cost achieved through the previous search iteration and the difference between the total minimum cost achieved through the current search iteration, relative to a ratio threshold. In some cases, the threshold may be based on the characteristics of the coded block, such as the size of the coded block.

[0017]

[0031] In this way, the iterative search process can be terminated early when only slight improvements are observed between consecutive search iterations. By terminating the iterative search process early using the early termination techniques described above, the computational complexity in the decoder-side motion vector derivation can be reduced without substantially increasing the distortion.

[0018]

[0032] The early termination techniques described above may be used in conjunction with any decoder-side motion vector derivation techniques involving a search process with three or more iterations. For example, the early termination techniques described above may be applied to either bidirectional matching or template matching of a DMVR. In other examples, the early termination techniques described above may be used in conjunction with other early termination methods.

[0019]

[0033] Figure 1 is a block diagram illustrating an exemplary video coding and decoding system 100 capable of implementing the techniques of the present disclosure. The techniques of the present disclosure generally pertain to coding (encoding and / or decoding) video data. Generally, video data includes any data for processing video. Thus, video data may include raw, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata such as signaling data.

[0020]

[0034] As shown in Figure 1, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, the source device 102 provides video data to the destination device 116 via a computer-readable medium 110. The source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (e.g., laptop) computers, mobile devices, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, broadcast receiver devices, and the like. In some cases, the source device 102 and destination device 116 may be wireless communication devices and therefore may be called wireless communication devices.

[0021]

[0035] In the example shown in Figure 1, the source device 102 includes a video source 104, memory 106, a video encoder 200, and an output interface 108. The destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of the source device 102 and the video decoder 300 of the destination device 116 may be configured to apply techniques for decoder-side motion vector derivation. Thus, the source device 102 represents an example of a video encoding device, while the destination device 116 represents an example of a video decoding device. In other examples, the source device and destination device may include other components or configurations. For example, the source device 102 may receive video data from an external video source, such as an external camera. Similarly, the destination device 116 may interface with an external display device rather than including an integrated display device.

[0022]

[0036] System 100, as shown in Figure 1, is merely an example. In general, any digital video encoding and / or decoding device can perform techniques for decoder-side motion vector derivation. Source device 102 and destination device 116 are merely examples of coding devices, such that source device 102 generates video data encoded for transmission to destination device 116. This disclosure refers to a device that performs data coding (encoding and / or decoding) as a “coding” device. Thus, video encoder 200 and video decoder 300 represent examples of coding devices, specifically, video encoder and video decoder, respectively. In some examples, source device 102 and destination device 116 may operate substantially symmetrically, such that each of source device 102 and destination device 116 includes video encoding and decoding components. Thus, system 100 may support one-way or two-way video transmission between source device 102 and destination device 116 for, for example, video streaming, video playback, video broadcasting, or video phone.

[0023]

[0037] Generally, the video source 104 represents a source of video data (e.g., raw, unencoded video data) and provides the video encoder 200 with a sequence of pictures (also called "frames") of video data, which the video encoder 200 encodes the data for the pictures. The video source 104 of source device 102 may include a video feed interface for receiving video from a video capture device such as a video camera, a video archive containing previously captured raw video, and / or a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured video data, the previously captured video data, or the computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they were received (sometimes called the "display order") to the coding order for encoding. The video encoder 200 may generate a bitstream containing the encoded video data. The source device 102 may then output encoded video data to a computer-readable medium 110 via the output interface 108 for reception and / or retrieval, for example, via the input interface 122 of the destination device 116.

[0024]

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

[0025]

[0039] The computer-readable medium 110 may represent any type of medium or device capable of transferring encoded video data from the source device 102 to the destination device 116. For example, the computer-readable medium 110 may represent a communication medium that enables the source device 102 to directly transmit encoded video data to the destination device 116 in real time, for example, over a radio frequency network or a computer-based network. The output interface 108 may modulate the transmission signal containing the encoded video data, and the input interface 122 may demodulate the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.

[0026]

[0040] In some examples, the source device 102 may output encoded data to the storage device 112 via the output interface 108. Similarly, the destination device 116 may access encoded data from the storage device 112 via the input interface 122. The storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray® disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0027]

[0041] In some examples, the source device 102 may output encoded video data to a file server 114 or another intermediate storage device capable of storing the encoded video data generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download.

[0028]

[0042] The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (for example, for a website), a server configured to provide a file transfer protocol service (such as the File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a Content Delivery Network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or Enhanced MBMS (eMBMS) server, and / or a Network Attached Storage (NAS) device. The file server 114 may, in addition or alternatively, implement one or more HTTP streaming protocols such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), or HTTP Dynamic Streaming.

[0029]

[0043] The destination device 116 may access encoded video data from the file server 114 through any standard data connection, including an internet connection. This may include wireless channels (e.g., Wi-Fi connection), wired connections (e.g., digital subscriber line (DSL), cable modem, etc.), or a combination of both suitable for accessing encoded video data stored in the file server 114. The input interface 122 may be configured to operate according to one or more of the various protocols discussed above or other such protocols for retrieving media data from or receiving media data from the file server 114.

[0030]

[0044] The output interface 108 and input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet® card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples where the output interface 108 and input interface 122 include wireless components, the output interface 108 and input interface 122 may be configured to transfer data such as encoded video data according to cellular communication standards such as 4G, 4G-LTE® (Long-Term Evolution), LTE Advanced, or 5G. In some examples where the output interface 108 includes a wireless transmitter, the output interface 108 and input interface 122 may be configured to transfer data such as encoded video data according to other wireless standards such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee®), or the Bluetooth® standard. In some examples, the source device 102 and / or the destination device 116 may include their respective system-on-chip (SoC) devices. For example, the source device 102 may include an SoC device for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include an SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.

[0031]

[0045] The techniques of this disclosure may be applied to video coding that supports any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0032]

[0046] The input interface 122 of the destination device 116 receives an encoded video bitstream from a computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements having values ​​that describe the characteristics and / or processing of video blocks or other encoded units (e.g., slices, pictures, picture groups, sequences, etc.). The display device 118 displays the decoded picture of the decoded video data to the user. The display device 118 may represent any of various 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.

[0033]

[0047] Although not shown in Figure 1, in some examples the video encoder 200 and video decoder 300 may each be integrated with an audio encoder and / or audio decoder, and may include a suitable MUX-DEMUX unit or other hardware and / or software to handle multiplexed streams containing both audio and video in a common data stream.

[0034]

[0048] The video encoder 200 and video decoder 300 can each be implemented as one or more suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technique is partially implemented in software, the device may store instructions for the software in a suitable non-temporary computer-readable medium and execute those instructions in hardware using one or more processors to perform the technique of the Disclosure. Each of the video encoder 200 and video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a composite encoder / decoder (codec) within each device. A device including the video encoder 200 and / or video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular telephone.

[0035]

[0049] The video encoder 200 and video decoder 300 may operate in accordance with a video coding standard such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or its extensions, such as multiview and / or scalable video coding extensions. Alternatively, the video encoder 200 and video decoder 300 may operate in accordance with other proprietary or industry standards, such as ITU-T H.266, also known as Versatile Video Coding (VVC). In other examples, the video encoder 200 and video decoder 300 may operate in accordance with a proprietary video codec / format, such as AOMedia Video1 (AV1), extensions of AV1, and / or successor versions of AV1 (e.g., AV2). In other examples, the video encoder 200 and video decoder 300 may operate in accordance with other proprietary formats or industry standards. However, the techniques of this disclosure are not limited to any particular coding standard or format. Generally, the video encoder 200 and the video decoder 300 may be configured to perform the techniques of this disclosure together with any video coding techniques that use decoder-side motion vector derivation techniques.

[0036]

[0050] Generally, the video encoder 200 and video decoder 300 may perform block-based coding of the picture. The term “block” generally refers to a structure containing data to be processed (e.g., used in coding, decoding, or otherwise in coding and / or decoding processes). For example, a block may contain a two-dimensional matrix of samples of luminance and / or chromaticity data. Generally, the video encoder 200 and video decoder 300 may code video data represented in YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and video decoder 300 may code luminance and chromaticity components, the chromaticity component may include both red and blue chromaticity components. In some examples, the video encoder 200 converts the received RGB-formatted data to a YUV representation before coding, and the video decoder 300 converts the YUV representation to RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.

[0037]

[0051] This disclosure may refer to coding a picture (e.g., encoding and decoding) as generally including the process of encoding or decoding the data of a picture. Similarly, this disclosure may refer to coding a block of a picture as including the process of encoding or decoding the data for a block, e.g., predictive and / or residual coding. The encoded video bitstream generally includes a coding decision (e.g., coding mode) and a set of values ​​for syntax elements representing the division of the picture into blocks. Thus, references to coding a picture or a block should generally be understood as coding values ​​for the syntax elements that make up the picture or block.

[0038]

[0052] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transformation units (TUs). According to HEVC, a video coder (such as video encoder 200) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video coder divides the CTUs and CUs into four equal, non-overlapping squares, and each node in the quadtree has either zero or four child nodes. Nodes without child nodes are sometimes called "leaf nodes," and the CU of such a leaf node may contain one or more PUs and / or one or more TUs. The video coder may further divide the PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a division of TUs. In HEVC, PUs represent intra-predicted data, and TUs represent residual data. Intra-predicted CUs include intra-predicted information such as intra-mode display.

[0039]

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

[0040]

[0054] In an MTT partition structure, blocks can be partitioned using quadru-tree (QT) partitions, binary-tree (BT) partitions, and one or more types of triple-tree (TT) partitions (also called ternary-tree (TT) partitions). A triple-tree or ternary-tree partition is a partition in which a block is divided into three subblocks. In some examples, a triple-tree or ternary-tree partition divides a block into three subblocks without dividing the original block through a central point. The partition types in an MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0041]

[0055] When operating according to the AV1 codec, the video encoder 200 and video decoder 300 may be configured to code video data in blocks. In AV1, the largest coding block that can be processed is called the superblock. In AV1, the superblock can be either 128×128 lumens or 64×64 lumens. However, in successor video coding formats (e.g., AV2), the superblock may be defined by a different (e.g., larger) lumens size. In some examples, the superblock is the top level of a block quadtree. The video encoder 200 may further subdivide the superblock into smaller coding blocks. The video encoder 200 may subdivide the superblock and other coding blocks into smaller blocks using square or non-square divisions. Non-square blocks may include N / 2×N, N×N / 2, N / 4×N, and N×N / 4 blocks. The video encoder 200 and video decoder 300 may perform separate prediction and transformation processes for each coding block.

[0042]

[0056] AV1 also defines tiles of video data. A tile is a rectangular array of superblocks that can be coded independently of other tiles. That is, the video encoder 200 and video decoder 300 can encode and decode coding blocks within a tile, respectively, without using video data from other tiles. However, the video encoder 200 and video decoder 300 may perform filtering across tile boundaries. Tiles may be uniform or non-uniform in size. Tile-based coding can enable parallel processing and / or multithreading for encoder and decoder implementations.

[0043]

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

[0044]

[0058] The video encoder 200 and video decoder 300 may be configured to use a quadtree partition, a QTBT partition, an MTT partition, a superblock partition, or other partitioning structure.

[0045]

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

[0046]

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

[0047]

[0061] In some examples, a tile may be divided into multiple bricks, each brick containing one or more CTU rows within the tile. Tiles that are not divided into multiple bricks may also be called bricks. However, bricks that are a true subset of a tile may not be called tiles. Bricks within a picture may also be arranged as slices. A slice may be an integer number of bricks in a picture that may exclusively be contained within a single Network Abstraction Layer (NAL) unit. In some examples, a slice may contain either several complete tiles or only a series of consecutive complete bricks of a single tile.

[0048]

[0062] This disclosure may interchangeably use "N×N" and "N by N," e.g., 16×16 samples or 16 by 16 samples, to refer to the sample dimension of a block (such as a CU or other video block) with respect to the vertical and horizontal dimensions. Generally, a 16×16 CU has 16 samples vertically (y=16) and 16 samples horizontally (x=16). Similarly, an N×N CU generally has N samples vertically and N samples horizontally, where N represents a non-negative integer. The samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have to have the same number of samples horizontally as it does vertically. For example, a CU may have N×M samples, where M is not necessarily equal to N.

[0049]

[0063] The video encoder 200 encodes video data for CUs that represent prediction and / or residual information, as well as other information. The prediction information indicates how the CUs will be predicted to form prediction blocks for the CUs. The residual information generally represents the sample-by-sample difference between the samples of the CUs before encoding and the samples of the prediction blocks.

[0050]

[0064] To predict the current CU, the video encoder 200 may generally form prediction blocks for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting the CU from data of a previously coded picture, while intra-prediction generally refers to predicting the CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate prediction blocks using one or more motion vectors. The video encoder 200 may generally perform motion search to identify reference blocks that closely match the CU with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the difference absolute sum (SAD), squared difference sum (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.

[0051]

[0065] Some examples of VVC also provide an affine motion compensation mode, which can be considered an interpredictive mode. In affine motion compensation mode, the video encoder 200 may determine two or more motion vectors representing non-translational motion, such as zooming in or out, rotation, viewpoint shift, or other irregular motion types.

[0052]

[0066] To perform intra-prediction, the video encoder 200 may select an intra-prediction mode to generate a prediction block. Several examples of VVCs provide 67 intra-prediction modes, including various directional modes, as well as planar and DC modes. Generally, the video encoder 200 selects an intra-prediction mode that describes adjacent samples to the current block (e.g., a block of CUs) from which the samples of the current block should be predicted. Such samples can generally be above, above and to the left of, or to the left of, the current block in the same picture as the current block, assuming that the video encoder 200 codes CTUs and CUs in raster scanning order (left to right, top to bottom).

[0053]

[0067] The video encoder 200 encodes data representing the prediction mode for the current block. For example, in interprediction mode, the video encoder 200 may encode data representing which of the various available interprediction modes is used, as well as motion information for the corresponding mode. In the case of unidirectional or bidirectional interprediction, for example, the video encoder 200 may encode the motion vectors using advanced motion vector prediction (AMVP) mode or merge mode. The video encoder 200 may use similar modes to encode the motion vectors for affine motion compensation mode.

[0054]

[0068] AV1 includes two common techniques for encoding and decoding coding blocks of video data. The two common techniques are intra-prediction (e.g., intra-frame prediction or spatial prediction) and inter-prediction (e.g., inter-frame prediction or temporal prediction). In the context of AV1, when predicting a block of the current frame of video data using the intra-prediction mode, the video encoder 200 and video decoder 300 do not use video data from other frames of the video data. In most intra-prediction modes, the video encoder 200 encodes a block of the current frame based on the difference between the sample value in the current block and the predicted value generated from a reference sample in the same frame. The video encoder 200 determines the predicted value generated from the reference sample based on the intra-prediction mode.

[0055]

[0069] Following predictions such as intra-prediction or inter-prediction of a block, the video encoder 200 may calculate residual data for the block. Residual data, such as a residual block, represents the sample-by-sample difference between the block and the predicted block for that block formed using the corresponding prediction mode. The video encoder 200 may apply one or more transformations to the residual block to generate transformation data in the transformation domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), integer transform, wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply secondary transformations such as a mode-dependent non-separable secondary transform (MDNSST), signal-dependent transform, or Carunen-Löwe ​​transform (KLT) following the initial transformation. Following the application of one or more transformations, the video encoder 200 generates transformation coefficients.

[0056]

[0070] As described above, following any transformation to generate the transformation coefficients, the video encoder 200 may perform quantization of the transformation coefficients. Quantization generally refers to the process of further compression in which the transformation coefficients are quantized to reduce as much as possible the amount of data used to represent the transformation coefficients. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transformation coefficients. For example, the video encoder 200 may truncate an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0057]

[0071] Following quantization, the video encoder 200 may scan the transformation coefficients to generate a one-dimensional vector from a two-dimensional matrix containing the quantized transformation coefficients. The scan may be designed to place higher-energy (and therefore lower-frequency) transformation coefficients at the beginning of the vector and lower-energy (and therefore higher-frequency) transformation coefficients at the end. In some examples, the video encoder 200 may use a predefined scan order for scanning the quantized transformation coefficients to generate a serialized vector and then entropy-encode the quantized transformation coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transformation coefficients to form a one-dimensional vector, the video encoder 200 may entropy-encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy-encode values ​​for syntax elements that describe metadata related to the encoded video data for use by the video decoder 300 when decoding the video data.

[0058]

[0072] To perform CABAC, the video encoder 200 may assign a context from the context model to the symbols to be transmitted. The context may relate, for example, to whether the adjacent values ​​of the symbols are zero-valued or not. Probability decisions may be based on the context assigned to the symbols.

[0059]

[0073] The video encoder 200 may further generate syntax data for the video decoder 300, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for example, in the form of a picture header, block header, slice header, or other syntax data such as a sequence parameter set (SPS), picture parameter set (PPS), or video parameter set (VPS). The video decoder 300 may similarly decode such syntax data to determine how the corresponding video data should be decoded.

[0060]

[0074] In this way, the video encoder 200 can generate a bitstream that includes syntax elements describing the encoded video data, for example, the division of a picture into blocks (e.g., CUs) and predictive and / or residual information for the blocks. Finally, the video decoder 300 may receive the bitstream and decode the encoded video data.

[0061]

[0075] Generally, the video decoder 300 decodes the encoded video data of the bitstream by performing a process that is the opposite of the process performed by the video encoder 200. For example, the video decoder 300 may decode values ​​for syntax elements of the bitstream using CABAC in a substantially similar, though opposite, manner to the CABAC encoding process of the video encoder 200. The syntax elements may define the CUs of a CTU by defining partitioning information for each CTU partition by a corresponding partitioning structure such as a QTBT structure and the partitioning of the picture into CTUs. The syntax elements may further define prediction and residual information for blocks of video data (e.g., CUs).

[0062]

[0076] Residual information may be represented, for example, by quantization transformation coefficients. The video decoder 300 may reconstruct a residual block for the block by inverse quantization and inverse transformation of the quantized transformation coefficients of the block. The video decoder 300 uses the signaled prediction mode (intra-prediction or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predicted block for the block. The video decoder 300 may then combine the predicted block and the residual block (sample by sample) to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the block boundaries.

[0063]

[0077] This disclosure may refer in general to "signaling" any information, such as syntax elements. The term "signaling" may generally refer to the communication of values ​​for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal values ​​for syntax elements in the bitstream. In general, signaling refers to generating values ​​in the bitstream. As stated above, the source device 102 may transfer the bitstream to the destination device 116 substantially in real time or non-real time, which may occur, for example, when the destination device 116 stores the syntax elements in the storage device 112 for later retrieval.

[0064]

[0078] The techniques of this disclosure relate to interpretation in video codecs. More specifically, this disclosure describes devices and techniques relating to decoder-side motion vector improvement using bidirectional matching. According to the techniques of this disclosure, as will be described in more detail below, a video decoder 300 may include a memory configured to store video data and a processing circuit which determines a motion vector for a block of video data using a decoder-side motion vector derivation process including an iterative search process, the iterative search process including determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and which decodes a block of video data using the motion vector.

[0065]

[0079] According to the techniques of the present disclosure, as will be described in more detail below, the video encoder 200 may include a memory configured to store video data and a processing circuit, the processing circuit being configured to determine a motion vector for a block of video data using a decoder-side motion vector derivation process including an iterative search process, the iterative search process including determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and to encode a block of video data using the motion vector.

[0066]

[0080] Two-way matching

[0081] Bidirectional matching (BM) is a technique for improving the initial motion vectors MV0 and MV1 of a pair. Generally, BM involves exploring around the MV0 and MV1 motion vectors to derive improved MVs, MV0' and MV1', which minimize the block matching cost. The block matching cost measures the similarity between two motion compensator predictors produced using the two MVs (some typical criteria include the absolute sum of differences (SAD), the absolute sum of transformed differences (SATD), and the sum of squared errors (SSE). The block matching cost may also include a regularization term derived based on the MV difference between the current MV pair and the initial MV pair. Some constraints may also apply to the MV difference between MVD0(MV0'-MV0) and MVD1(MV1'-MV1). Typically, a video coder is constructed under the assumption that MVD0 and MVD1 are proportional to the time distance (TD) between the current picture and the reference picture pointed to by the two MVs. However, in some application examples, the BM process may be designed assuming that MVD0 is equal to -MVD1.

[0067]

[0082] Interpretation in General-Purpose Video Coding Standards

[0083] For inter-predicted CUs in VVC, motion parameters include motion vectors, reference picture indexes, and reference picture list usage indexes, as well as any additional information required by the new coding features of VVC. Motion parameters are used for inter-predicted sample generation. Motion parameters can be signaled explicitly or implicitly. When a CU is coded in skip mode, it is associated with one PU and has no significant residual coefficients, coded motion vector deltas, or reference picture indexes. A merge mode is specified, where the motion parameters of the current CU are obtained from adjacent CUs, including spatial and temporal candidates, as well as additional scheduling introduced in VVC. Merge mode can be applied to any inter-predicted CU, not just skip mode. Several other prediction modes besides merge mode involve the explicit transmission of motion parameters, where motion vectors (e.g., motion vector differences), corresponding reference picture indexes for each reference picture list, and reference picture list usage flags and other necessary information are explicitly signaled for each CU.

[0068]

[0084] Beyond the intercoding capabilities of HEVC, VVC includes several new and improved inter-predictive coding tools, listed below: - Extended Merge Prediction - Merge mode with MVD (MMVD) - Symmetric MVD (SMVD) signaling - Affine motion compensation prediction - Subblock-based time-motion vector prediction (SbTMVP) - Adaptive Motion Vector Resolution (AMVR) - Motion field memory: 1 / 16 lumens sample MV memory and 8x8 motion field compression - Biprediction using CU-level weights (BCW) - Bidirectional Optical Flow (BDOF) - Decoder-side motion vector improvement (DMVR) - Geometric Partition Mode (GPM) - Combined Inter- and Intra-Prediction (CIIP)

[0069]

[0085] Extended Merge Prediction

[0086] In VVC regular merge mode, the merge candidate list is constructed by sequentially including the following five types of candidates: 1) Spatial motion vector predictor (MVP) from spatially adjacent CUs 2) Time MVP from Colocated CU 3) History-based MVP from First-In, First-Out (FIFO) tables 4) Pairwise Average MVP 5) Motion vector (MV)

[0070]

[0087] The size of the merge list is signaled in the Sequence Parameter Set (SPS) header. In one example, the maximum allowed size of the merge list is six candidates. For each CU coded in merge mode, the index of the selected merge candidate is encoded using abbreviated unary binarization.

[0071]

[0088] The derivation process for each category of merge candidates is provided in this section. As performed in HEVC, VVC also supports parallel derivation of merge candidate lists for all CUs within a given size region.

[0072]

[0089] Derivation of candidate spaces

[0090] The derivation of spatial merge candidates in VVC is the same as in HEVC, except that the positions of the first two merge candidates are swapped. Figure 2 shows an example of the positions of spatial merge candidates. For the current CU400, up to four merge candidates are selected from the candidates at the positions shown in Figure 2. The derivation order is B0, A0, B1, A1, and B2. Position B2 is considered only when one or more CUs at positions B0, A0, B1, and A1 are unavailable (for example, because the CU belongs to a different slice or tile), or when the CU is intracoded. After the candidate at position A1 is added, the addition of the remaining candidates undergoes redundancy checks to ensure that candidates with the same motion information are excluded from the list to improve coding efficiency.

[0073]

[0091] Temporal candidate derivation

[0092] In this technique, only one candidate is added to the list. In particular, in the derivation of this time merge candidate, a scaled motion vector is derived based on the colocated CU belonging to the colocated reference picture. Figure 3 shows an example of motion vector scaling for the time merge candidate. The list of reference pictures to be used for the derivation of the colocated CU is explicitly signaled in the slice header. The scaled motion vector 412 for the time merge candidate is obtained as shown by the dotted line in Figure 3, and it is scaled from the motion vector of the colocated CU 416 using picture order count (POC) distances tb and td. Motion vector 414 is the motion vector between the current CU 400 and the colocated CU 416. Distance tb is defined as the POC difference between the current picture's reference picture 404 and the current picture 406. Distance td is defined as the POC difference between the colocated picture's reference picture 402 and the colocated picture 408. The reference picture index for time merge candidates is set to equal 0.

[0074]

[0093] Figure 4 shows exemplary candidate positions for time merge candidates. The current time candidate position for CU400 is selected between candidates C0 and C1, as shown in Figure 4. If the CU at position C0 is unavailable (for example, it is intracoded or outside the current row of the CTU), position C1 is used. Otherwise, position C0 is used in the derivation of the time merge candidate.

[0075]

[0094] History-based merge candidate derivation

[0095] History-based MVP (HMVP) merge candidates are added to the merge list after spatial merge candidates (e.g., spatial MVP) and temporal merge candidates (e.g., temporal MVP or TMVP). In HMVP, motion information of previously coded blocks is stored in a table and used as the MVP for the current CU. A table with multiple HMVP candidates is maintained during the coding / decoding process. Whenever a new CTU row is encountered, the table is reset (e.g., emptied). Whenever there is a non-subblock intercoded CU, the relevant motion information is added to the last entry in the table as a new HMVP candidate.

[0076]

[0096] The HMVP table size S is set to 6, indicating that up to 6 HMVP candidates can be added to the table. When inserting a new move candidate into the table, a constrained first-in, first-out (FIFO) rule is used, and a redundancy check is first applied to find out if there are any identical HMVPs in the table. If found, the identical HMVP is removed from the table, and then all other HMVP candidates are moved forward.

[0077]

[0097] The merge candidate list construction process may use HMVP candidates. Several of the most recent HMVP candidates in the table are checked in order and inserted into the candidate list after TMVP candidates. Redundancy checks are applied to HMVP candidates to compare their motion information with that of spatial or temporal merge candidates.

[0078]

[0098] To reduce the number of redundant check operations, the following simplifications can be introduced. a. The number of HMVP candidates used for generating the merge list is set as (N<=4)?M:(8-N), where N is the number of existing candidates in the merge list and M is the number of available HMVP candidates in the table. b. When the total number of available merge candidates reaches the maximum allowed number of merge candidates - 1, the process of building the merge candidate list from HMVP ends.

[0079]

[0099] Derivation of pairwise mean merge candidates

[0100] Pairwise average candidates are generated by averaging predefined pairs of candidates in an existing merge candidate list. In one example, the predefined pairs are defined as {(0, 1), (0, 2), (1, 2), (0, 3), (1, 3), (2, 3)}, where the numbers represent the merge index to the merge candidate list. The averaged motion vectors are calculated separately for each reference list. If both motion vectors are available in a single list, these two motion vectors are averaged even when pointing to different reference pictures. If only one motion vector is available, that one is used directly. If no motion vectors are available, this list is left invalid.

[0080]

[0101] If the merge list is not full after pairwise average merge candidates have been added, zero MVPs will be inserted at the end of the list until the maximum number of merge candidates is reached.

[0081]

[0102] Biprediction using CU-level weights (BCW)

[0103] In HEVC, the dual-prediction signal is generated by averaging two prediction signals obtained from two different reference pictures and / or by using two different motion vectors. In VVC, the dual-prediction mode is extended beyond simple averaging to allow for weighted averaging of the two prediction signals. Pbi-pred =((8-w) * P0+w * P1+4)≫3

[0082]

[0104] Weighted averaging biprediction allows for five weights, w ∈ {-2, 3, 4, 5, 10}. For each bipredicted CU, the weight w is determined in one of two ways: 1) For non-merged CUs, the weight index is signaled after the motion vector difference. 2) For merged CUs, the weight index is inferred from adjacent blocks based on the merge candidate index. BCW applies only to CUs with 256 or more lumar samples (e.g., CU width × CU height is 256 or greater). For low-latency pictures, all five weights are used. For non-low-latency pictures, only three weights (w ∈ {3, 4, 5}) are used. - In the encoder, fast search algorithms are applied to find the weight index without significantly increasing the complexity of the encoder. These algorithms are summarized as follows. Further details are available in the VVC Test Model (VTM) software and Yu-Chi Su et al., "CE4-related: Generalized bi-prediction improvements combined from JVET-L0197 and JVET-L0296," ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, No. 12 回 The report is available from the Joint Video Experts Team (JVET) conference (hereinafter, "JVET-L0646") held in Macau, China, from October 3 to 12, 2018. When combined with AMVR, if the picture is currently a low-latency picture, unequal weights are only conditionally checked for 1-pel and 4-pel motion vector accuracy. -When combined with affine motion estimation (ME), affine ME is performed on unequal weights only if the affine mode is selected as the best mode at the moment. - In biprediction, when the two reference pictures are the same, unequal weights are only checked conditionally. - Depending on the POC distance between the current picture and its reference picture, the coding QP, and the time level, unequal weights are not searched when certain conditions are met.

[0083]

[0105] The BCW weight index is coded using one context-coded bin followed by a bypass-coded bin. The first context-coded bin indicates whether equal weights are used, and if unequal weights are used, the additional bins are signaled using bypass coding to indicate which unequal weights are used.

[0084]

[0106] Weighted Prediction (WP) is a coding tool supported by the H.264 / AVC and HEVC standards for efficiently coding video content using fading. WP support has also been added to the VVC standard. WP allows weighting parameters (weights and offsets) to be signaled for each reference picture in each of the reference picture lists L0 and L1. Then, during motion compensation, the weights and offsets of the corresponding reference pictures are applied. WP and BCW are designed for different types of video content. To avoid the interaction between WP and BCW that complicates VVC decoder design, when a CU uses WP, the BCW weight index is not signaled, and w is inferred to be 4 (e.g., equal weights are added). In the case of merged CUs, the weight index is inferred from adjacent blocks based on the merge candidate index. This can apply to both normal merge mode and inherited affine merge mode. In constructed affine merge mode, affine motion information is constructed based on motion information from up to 3 blocks. For a CU using the constructed affine merge mode, the BCW index is simply set to be equal to the BCW index of the first control point MV.

[0085]

[0107] In VVC, CIIP and BCW cannot be applied together to a CU. When a CU is coded in CIIP mode, the BCW index of the current CU is set to 2, for example, equal weights.

[0086]

[0108] Improvement of decoder side motion vector in VVC

[0109] In VVC, a BM-based decoder-side motion vector improvement (DMVR) may be applied to improve the accuracy of the MV of the bi-predicted merge candidate. The BM method calculates the absolute sum of differences (SAD) between two candidate blocks in reference picture lists L0 and L1. Figure 5 shows an example of bilateral matching. As shown in Figure 5, the SAD between blocks 500 and 502 is calculated based on each MV candidate around the initial MV. The MV candidate with the lowest SAD becomes the improved MV and is used to generate the bi-predicted signal. The SAD of the initial MV is subtracted by 1 / 4 of the SAD value to act as a regularization term. The time distance from the two reference pictures to the current picture (e.g., the picture order count (POC) difference) is assumed to be the same, and therefore MVD0 is exactly the opposite sign of MVD1.

[0087]

[0110] The refined search range is two integer lumer samples from the initial MV. This search includes an integer sample offset search phase and a fractional sample refinement phase. A full search of 25 points is applied for the integer sample offset search. The SAD of the initial MV pair is calculated first. If the SAD of the initial MV pair is less than the threshold, the integer sample phase of the DMVR ends. Otherwise, the SADs of the remaining 24 points are calculated and checked in raster scan order. The point with the smallest SAD is selected as the output of the integer sample offset search phase.

[0088]

[0111] Integer sample search is followed by fractional sample refinement. To reduce computational complexity, fractional sample refinement is derived by using parametric error surface equations instead of additional search using SAD comparison. Fractional sample refinement is conditionally invoked based on the output of the integer sample search stage. If the integer sample search stage terminates with the center having the minimum SAD in either the first iteration search or the second iteration search, fractional sample refinement is further applied.

[0089]

[0112] In parametric error surface-based sub-pixel offset estimation, the center position cost and the costs at four adjacent positions from the center are used to fit a 2D parabolic error surface equation of the following form. E(x,y)=A(x-x min ) 2 +B(y-y min ) 2 +C (1) where (x min , y min ) corresponds to the fractional position of the minimum cost, and C corresponds to the minimum cost value. By solving the above equation using the cost values of five search points, (x min , y min ) is x min =(E(-1,0)-E(1,0)) / (2(E(-1,0)+E(1,0)-2E(0,0))) (2) y min =(E(0,-1)-E(0,1)) / (2((E(0,-1)+E(0,1)-2E(0,0))) (3)

[0090]

[0113] calculated as. Since all cost values are positive and the minimum value is E(0,0), x min and y min values are automatically constrained to be between -8 and 8. This corresponds to a 1 / 2 pel offset with 1 / 16 pel MV accuracy in VVC. The calculated fractional (x min , y minThis is added to the integer distance improved MV to obtain the subpixel-precision improved delta MV.

[0091]

[0114] In VVC, the resolution of the MV is 1 / 16 lumens of sample. Samples at fractional positions are interpolated using an 8-tap interpolation filter. In DMVR, the search points surround the initial fractional part MV with an offset of integer samples. Therefore, samples at those fractional positions are interpolated for the DMVR search process. To reduce computational complexity, a bilinear interpolation filter is used to generate the fractional samples for the search process in DMVR. Another effect is that by using a bilinear filter with a 2-sample search range, DVMR accesses fewer reference samples compared to the normal motion compensation process. After the improved MV is obtained using the DMVR search process, a standard 8-tap interpolation filter is applied to generate the final prediction. To avoid accessing more reference samples than the normal motion compensation process, samples that are not needed for the interpolation process based on the original MV but are needed for the interpolation process based on the improved MV are padded from the available samples.

[0092]

[0115] When the width and / or height of the CU is greater than 16 lumens, the CU may be further divided into subblocks whose width and / or height are equal to 16 lumens for the DMVR process.

[0093]

[0116] In VVC, the DMVR can be applied to CUs coded with the following modes and characteristics: -CU-level merge mode using bipredictive MV - For the current picture, one reference picture is in the past, and another reference picture is in the future. - The distance from the two reference pictures to the current picture (e.g., POC difference) is the same. -Both reference pictures are short-term reference pictures. -CU has more than 64 luma samples - Both the height and width of the CU are 8 lumens or more. -BCW weight index indicates equal weights - WP is not currently enabled for blocking. -Currently, CIIP mode is not used for blocks.

[0094]

[0117] Bidirectional Optical Flow (BDOF)

[0118] Bidirectional Optical Flow (BDOF) is used to improve the bi-predicted signals of luma samples within a CU at the 4x4 subblock level. As its name suggests, the BDOF mode is based on the concept of optical flow, which assumes that the motion of the object is smooth. For each subblock of the 4x4, motion improvement is achieved by minimizing the difference between the L0 predicted sample and the L1 predicted sample (v x ,v y The following is calculated. Motion improvements are then used to adjust the predicted sample values ​​within the 4x4 subblock. The following steps are applied in the BDOF process.

[0095]

[0119] Firstly, the horizontal and vertical gradients of the two prediction signals,

[0096]

number

[0097] k=0,1 can be calculated by directly calculating the difference between two adjacent samples, for example, as shown below.

[0098]

number

[0099] And, Here, I (k)(i,j) is the sample value at coordinate (i,j) of the predicted signal in list k, where k,k=0,1, and shift1 is calculated based on the rumor bit depth bitDepth, since shift1 is set to equal to 6.

[0100]

[0120] Next, the autocorrelation and crosscorrelation of gradients S1, S2, S3, S5, and S6 are calculated as follows.

[0101]

number

[0102] Therefore, Ω is a 6x6 window around a 4x4 subblock, the value of shift2 is set to equal to 4, and the value of shift3 is set to equal to 1.

[0103]

[0121] Movement improvements (v x ,v y ) is then derived using the cross-correlation term and autocorrelation term, using the following:

[0104]

number

[0105] And, However, th' BIO = 1 ≪ 4

[0106]

number

[0107] This is the floor function.

[0108]

[0122] Based on motion improvements and gradients, the following adjustments are calculated for each sample in the 4x4 subblock.

[0109]

number

[0110]

[0123] Finally, the BDOF sample of CU is calculated by adjusting the biprediction sample as follows: Nod BDOF (x,y)=(I (0) (x,y)+I (1) (x,y)+b(x,y)+ο offset )≫shift5 (1-6-6) And, However, shift5 is set to equal Max(3,15-BitDepth), and the variable ο offset This is set to equal to (1 << (shift5-1)).

[0111]

[0124] These values ​​are selected so that the multiplier in the BDOF process does not exceed 15 bits and the maximum bit width of the intermediate parameters in the BDOF process is kept within 32 bits.

[0112]

[0125] To derive the gradient value, we use several prediction samples I from the list k (k=0,1) outside the current CU boundary. (k) (i,j) can be generated. Figure 6 shows an example of an extended coding unit area used in bidirectional optical flow. As shown in Figure 6, BDOF uses one extended row / column around the boundary of CU600. To control the computational complexity of generating prediction samples outside the boundary, prediction samples in the extended area (white positions) are generated by directly taking reference samples at nearby integer positions (by using the floor() operation on the coordinates) without interpolation, and a normal 8-tap motion-compensated interpolation filter is used to generate prediction samples within the CU (gray positions). These extended sample values ​​are used only for gradient calculation. In the remaining steps of the BDOF process, if samples and gradient values ​​outside the CU boundary are required, they are padded (e.g., repeated) from their nearest neighbors.

[0113]

[0126] BDOF is used to improve the dual predictive signals of CU at the 4x4 subblock level. BDOF is applied to CU if all of the following conditions are met: - The CU is coded using a "true" bipredictive mode, for example, one of the two reference pictures is before the current picture in display order and the other is after the current picture in display order. -CU is not coded using affine mode or SbTMVP merge mode. -CU has more than 64 luma samples - Both the height and width of the CU are 8 lumens or more. -BCW weight index indicates equal weights -WP is not enabled for the current CU -CIIP mode is not used in the current CU.

[0114]

[0127] Improved multipath decoder operation

[0128] At the JVET-V conference, the Enhanced Compression Model (ECM, https: / / vcgit.hhi.fraunhofer.de / ecm / VVCSoftware_VTM / - / tree / ECM) was established to study compression techniques beyond VVC. In the ECM, "Compression efficiency beyond VVC" (Yao-Jen Chang et al., ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 21) 回The multipath decoder-side motion improvement technique described in the Joint Video Experts Team (JVET) conference, held remotely from January 6th to 15th, 2021 (hereinafter referred to as "JVET_U0100"), was adopted to replace the DMVR in VVC. In the first pass, a BM (similar to that of the DMVR in VVC) is applied to the coding block. In the second pass, the BM is applied to each 16x16 subblock within the coding block, with the improved MV from the first pass applied as the initial MV. In the third pass, the MV in each 8x8 subblock is further improved by applying bidirectional optical flow (BDOF).

[0115]

[0129] First Path-Block Based Bidirectional Matching MV Improvement

[0130] In the first pass, the improved MV is derived by applying the BM to the coding block. Similar to the Decoder-Side Motion Vector Improvement (DMVR), in the bipredictive operation, the improved MV is searched around two initial MVs (MV0 and MV1) in the reference picture lists L0 and L1. The improved MVs (MV0_pass1 and MV1_pass1) are derived around the initial MVs based on the minimum bidirectional matching cost between the two reference blocks in L0 and L1.

[0116]

[0131] BM involves performing a local search to derive integer sample-precision intDeltaMV. The local search applies a 3x3 square search pattern, looping through the search range [-sHor,sHor] horizontally and [-sVer,sVer] vertically, where the values ​​of sHor and sVer are determined by the size of the block, and the maximum values ​​of sHor and sVer are 8.

[0117]

[0132] The bidirectional matching cost is calculated as bilCost = mvDistanceCost + sadCost. Block size cbW *When cbH is greater than 64, the Mean-Removed SAD (MRSAD) cost function is applied to remove the DC effect of distortion between reference blocks. The intDeltaMV local search terminates when the bilCost of the center point of the 3x3 search pattern has the minimum cost. Otherwise, the current minimum cost search point becomes the new center point of the 3x3 search pattern, and the videocoder continues searching for the minimum cost until it reaches the end of the search range.

[0118]

[0133] The existing fractional sample improvement is further applied to derive the final delta MV. Next, the improved MV after the first pass is derived as follows: -MV0_pass1=MV0+deltaMV -MV1_pass1=MV1-deltaMV

[0119]

[0134] Second path-subblock based bidirectional matching MV improvement

[0135] In the second pass, the improved MV is derived by applying the BM to a 16x16 grid subblock. For each subblock, the improved MV is searched around the two MVs (MV0_pass1 and MV1_pass1) obtained in the first pass in the reference picture lists L0 and L1. The improved MV (MV0_pass2(sbIdx2) and MV1_pass2(sbIdx2)) (where sbIdx2=0,...,N-1 is the subblock index) is derived based on the minimum bidirectional matching cost between the two reference subblocks in L0 and L1.

[0120]

[0136] For each subblock, BM includes performing a brute-force search to derive integer sample-precision intDeltaMV. The brute-force search has a search range of [-sHor,sHor] horizontally and [-sVer,sVer] vertically, where the values ​​of sHor and sVer are determined by the size of the block, and the maximum values ​​of sHor and sVer are 8.

[0121]

[0137] The bidirectional matching cost is bilCost = satdCost * The cost factor is calculated by applying the cost coefficient to the absolute sum of transformation differences (SATD) cost between two reference subblocks. Figure 7 shows an exemplary diamond search region 700 for improving multipath decoder-side motion. * sHor+1) * (2 * sVer+1) is divided into five diamond-shaped search regions, as shown in Figure 7. Each search region is assigned a costFactor determined by the distance (intDeltaMV) between each search point and the starting MV. Each diamond region is processed in order starting from the center of the search region. Within each region, search points are processed in a raster scan order starting from the upper left corner of the region and progressing to the lower right corner. The minimum bilCost in the current search region is sbW * If the number of search points is less than the threshold equal to sbH, the int-pel brute-force search terminates. Otherwise, the int-pel brute-force search continues for the next search region until all search points have been examined.

[0122]

[0138] The existing VVC DMVR fractional sample improvement is further applied to derive the final deltaMV(sbIdx2). Then, the improved MV in the second pass is derived as follows: -MV0_pass2(sbIdx2)=MV0_pass1+deltaMV(sbIdx2) -MV1_pass2(sbIdx2)=MV1_pass1-deltaMV(sbIdx2)

[0123]

[0139] Third Path - Subblock-Based Bidirectional Optical Flow MV Improvement

[0140] In the third pass, the improved MV is derived by applying BDOF to an 8x8 grid subblock. For each 8x8 subblock, the BDOF improvement is applied, and the scaled Vx and Vy values ​​are derived without clipping, starting from the improved MV of the parent subblock from the second pass. The derived bioMv(Vx,Vy) is rounded to 1 / 16 sample precision and clipped between -32 and 32.

[0124]

[0141] The improved MV(MV0_pass3(sbIdx3) and MV1_pass3(sbIdx3)) in the third pass are derived as follows: ·MV0_pass3(sbIdx3)=MV0_pass2(sbIdx2)+bioMv ·MV1_pass3(sbIdx3)=MV0_pass2(sbIdx2)-bioMv

[0125] Further details of the multi-pass DMVR can be found in concurrently pending U.S. Provisional Patent Application No. 63 / 129221, filed on 22 December 2020.

[0126]

[0142] Template Matching

[0143] Template Matching (TM) is a decoder-side MV derivation method that improves the motion information of the current CU by finding the closest match between a template in the current picture (e.g., adjacent blocks above and / or to the left of the current CU) and a block in the reference picture (e.g., the same size as the template). Figure 8 shows an example of template matching performed on a search area around the initial motion vector. As shown in Figure 8, a better MV should be searched around the initial motion 800 of the current CU 802 within the [-8,+8] Pel search range 806 in reference frame 808. Once an AMVP candidate is selected based on the initial matching error, the AMVP MVP is improved by template matching. For merge candidates indicated by the signaled merge index, its merged MV corresponding to L0 and L1 is improved independently by template matching, and then the less accurate motion vector is further improved again (e.g., the previous motion vector) using the better motion vector as the initial motion vector.

[0127]

[0144] Cost function: Motion compensation interpolation may be used when the motion vector points to a fractional sample position. To reduce complexity, bilinear interpolation is used instead of the usual 8-tap DCT-IF interpolation for template matching to generate a template on the reference picture. The matching cost C for template matching is calculated as follows: C=SAD+w * (|MVX-MV s x|+|MVy-MV s y|), Here, w is a weighting coefficient that can be set to an integer such as 0, 1, 2, 3, or 4, and MV and multiple MVs represent the MV currently being tested and the initial MV (e.g., the MVP candidate in AMVP mode, or the merged movement in merge mode), respectively. SAD is used as the matching cost for template matching.

[0128]

[0145] When TM is used, motion information is refined by using only lumern samples. The derived motion information is used for both lumern and chromern for motion compensation interpretation. After MV is determined, final motion compensation is performed using an 8-tap interpolation filter for the lumern component and a 4-tap interpolation filter for the chromern component.

[0129]

[0146] Search Method: MV refinement is a pattern-based MV search using template matching cost and hierarchical structure criteria. Two search patterns are supported for MV refinement: diamond search and cross-search. The hierarchical structure specifies an iterative process for refining the MV, starting with coarse MVD precision (e.g., 1 / 4 PEL) and ending with finer precision (e.g., 1 / 8 PEL). The MV is searched directly with 1 / 4 luma-sample MVD precision using the diamond pattern, and then with 1 / 4 luma-sample MVD precision using the cross pattern. This is followed by 1 / 8 luma-sample MVD refinement with the cross pattern. The search range for MV refinement is set to equal (-8, +8) luma-samples around the initial MV. If the current block is coded using biprediction, both MVs are refined independently, and then the best one (in terms of matching cost) is set as the leading MV, and the other MV is further refined with BCW weight values.

[0130]

[0147] Specifically, it is a template matching proposed in "Description of SDR, HDR and 360° video coding technology proposal by Qualcomm and Technicolor - low and high complexity versions" (YW Chen et al., Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 10th Meeting: San Diego, USA, April 10-20, 2018 (hereinafter referred to as "JVET-J0021")), and JVET-U0100 is applied to AMVP mode and merge mode in several exemplary proposals.

[0131]

[0148] The list of canonical merge candidates is constructed in the following order: • Spatial MVP from spatially adjacent CUs: The first four available candidates are selected from the order of upper adjacent CU (A), left adjacent CU (L), upper right adjacent CU (AR), lower left adjacent CU (LB), and upper left adjacent CU (LA). • Time MVP from co-located CUs: Only one candidate will be added. • History-based MVP: The behavior information of previously coded blocks is stored in a table and used as the MVP for the current CU. • Pairwise Average MVP: The pairwise average candidate is generated by averaging predefined pairs of candidates within an existing list of canonical merge candidates. 0MV.

[0132]

[0149] When a TM is applied to a block coded using merge mode, a separate TM merge candidate list is constructed by refining the MVP of canonical merge candidates based on template matching.

[0133]

[0150] In the decoder-side motion search process, a cost criterion is defined for either bidirectional matching-based DMVR or template matching, and can be used to calculate the cost of candidate positions within a predefined search area. The motion information associated with the candidate position with the minimum cost is the output of the iterative search process. The search process can be performed over multiple iterations. In each iteration, a subset of candidate positions within the search area can be evaluated. A specific pattern can be applied to select candidate positions for each subset, such as square search, diamond search, and the diamond region in Figure 7. Generally, the distance between the initial position and the candidate positions increases after each iteration. In other words, the candidate position in the current search iteration may be further from the initial point than the position in the previous iteration.

[0134]

[0151] A variable `minCost` may be defined to track the minimum cost. `minCost` may represent the minimum value calculated during the iterative search process. In this disclosure, `minCost` may be referred to as the minimum cost of the iterative search process determined so far. Several early termination methods may be applied to terminate the search process. For example, the process may terminate if `minCost` is below a threshold, or if the best candidate position with the minimum cost has not changed from one subset to the next (e.g., from one iteration to the next).

[0135]

[0152] This disclosure describes a technique for early termination of a search process for decoder-side motion vector derivation techniques to reduce the computational complexity of the search process. The technique of this disclosure may be used in conjunction with any decoder-side motion vector derivation technique that involves a search process. In one example, the technique of this disclosure may be applied in either bidirectional matching or template matching of a DMVR. In other examples, the technique of this disclosure may also be used in conjunction with other early termination methods, as described above, for example.

[0136]

[0153] In one example of this disclosure, the video encoder 200 and video decoder 300 may calculate the value of a second variable minCostPrev in order to track the minimum cost in the previous search iteration. In one example, the maximum number of iterations is greater than 2, as this example applies. In one example, the video encoder 200 and video decoder 300 may initialize the value of minCostPrev to a predetermined value, for example, 0.

[0137]

[0154] The video decoder 300 can determine the minimum cost over the previous search iteration and the total minimum cost over the current search iteration. In some examples, the previous search iteration may be immediately preceding the current search iteration. For example, if the current search iteration is the 4th search iteration, the previous search iteration would be the 3rd search iteration. In this example, the minimum cost over the previous search iteration is the minimum cost over the 3rd search iteration, and the total minimum cost over the current search iteration is the minimum cost over the 4th search iteration.

[0138]

[0155] The video encoder 200 can determine the minimum cost over the previous search iteration and the total minimum cost over the current search iteration. In some examples, the previous search iteration may be immediately preceding the current search iteration. For example, if the current search iteration is the 4th iteration, the previous search iteration would be the 3rd iteration. In this example, the minimum cost over the previous search iteration is the minimum cost over the 3rd iteration, and the total minimum cost over the current search iteration is the minimum cost over the 4th iteration.

[0139]

[0156] In another example, the minimum cost of the previous search iteration itself may be used instead of the minimum cost through the previous search iteration. For example, if the current search iteration is the fourth, the previous search iteration would be the third. In this example, the minimum cost of the third search iteration itself may be used instead of the minimum cost through the third search iteration.

[0140]

[0157] In some examples, the video decoder 300 and / or video encoder 200 may be configured to terminate the iterative search process early in accordance with the techniques described herein, in order to determine the motion vector for a block of video data using a decoder-side motion vector derivation process.

[0141]

[0158] In the disclosed termination techniques, the video encoder 200 and video decoder 300 may be configured to consider minCost and minCostPrev in order to perform a decision on whether or not the iterative search process should be terminated. In one example, the video encoder 200 and video decoder 300 are configured to compare the difference between minCostPrev-minCost or abs(minCostPrev-minCost) with a threshold, and if the difference is less than the threshold, the video encoder 200 and video decoder 300 terminate the iterative search process. Once the video encoder 200 and video decoder 300 decide to terminate the iterative search process, they may be configured to return a motion vector having the minimum cost up to that point in the search process.

[0142]

[0159] Therefore, in one example, the video encoder 200 and video decoder 300 may be configured to terminate the iterative search process early based on the difference between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration, relative to a difference threshold. For example, if the current search iteration is the fourth and the previous search iteration was the third, the iterative search process terminates if the difference between the minimum cost achieved through the fourth search iteration and the minimum cost achieved through the third search iteration is less than the difference threshold. In some examples, the difference threshold may be fixed or based on the size of the video data blocks. In some examples, the threshold may be set to be equal to S times the area of ​​the video data blocks, where S is a scaling factor that may be predefined or signaled in the bitstream.

[0143]

[0160] In some examples, the video encoder 200 and video decoder 300 may be configured to terminate the iterative search process early based on comparing the absolute value of the difference between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration with a difference threshold.

[0144]

[0161] In another example, the video encoder 200 and video decoder 300 may reduce computational complexity without substantially increasing distortion by terminating the iterative search process early when the difference between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration falls below a difference threshold.

[0145]

[0162] Accordingly, in one example of the present disclosure, the video decoder 300 may be configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes an iterative search process, the iterative search process including calculating the minimum cost of the previous search iteration and terminating the iterative search process early based on the minimum cost through the previous search iteration. The video decoder 300 may then code blocks of video data using the motion vectors. In a further example, the video decoder 300 may update the minimum cost determined for the iterative search process. In order to terminate the iterative search process early based on the minimum cost through the previous search iteration, the video decoder 300 may further calculate a difference or ratio of the cost through the previous search iteration to the minimum cost determined for the iterative search process and terminate the iterative search process early based on the difference or ratio to a threshold.

[0146]

[0163] In one example, the disclosed technique can be described as follows: The video encoder 200 and video decoder 300 may initialize minCostPrev and minCost to have the same value, for example. In another example, the initialization value may be input from a previous process or set to a predefined large value. While the iterative search process has not terminated and the maximum number of iterations has not been reached, the video encoder 200 and video decoder 300 may perform the following iterations. 1) Set minCostPrev to be equal to minCost. 2) Evaluate the current subset of candidate positions and determine (e.g., update) minCost. 3) Determine whether to terminate based on the values ​​of both minCost and minCostPrev.

[0147]

[0164] It should be noted that several other early termination techniques may be applied after step 2). For example, other early termination techniques may be applied before or after step 3).

[0148]

[0165] In one example, step 3) above includes evaluating the difference between minCost and minCostPrev. The video encoder 200 and video decoder 300 may decide to terminate the search process if minCostPrev-minCost is less than a threshold.

[0149]

[0166] In the above example, the threshold can be a predefined value, fixed, or signaled in the bitstream. In another example, the threshold can be adaptive based on the size of the input block. For example, the threshold could be set to be equal to S times the area of ​​the input block, where S is a scaling factor, which can be predefined or signaled in the bitstream.

[0150]

[0167] In another example, the difference between the two costs used above can be replaced by a cost ratio. For example, step 3) is performed by evaluating the relationship between minCost and minCostPrev. The value R is set to equal (minCostPrev - minCost) / minCostPrev. The video encoder 200 and video decoder 300 may decide to terminate the search process if R is less than a predefined threshold.

[0151]

[0168] Therefore, in one example, the video encoder 200 and video decoder 300 can terminate the iterative search process early, which may be configured to terminate the iterative search process early based on the ratio of the minimum cost through the previous search iteration to the total minimum cost through the current search iteration, relative to a ratio threshold. For example, if the current search iteration is the fourth search iteration and the previous search iteration was the third search iteration, the iterative search process is terminated if the ratio of the minimum cost through the fourth search iteration to the minimum cost through the third search iteration falls below the ratio threshold. In some examples, the ratio threshold may be fixed or based on the size of the video data blocks.

[0152]

[0169] In some cases, terminating the search process early when the ratio of the total minimum cost through the current search iteration to the minimum cost through the previous search iteration falls below a ratio threshold can reduce computational complexity without substantially increasing distortion.

[0153]

[0170] In some examples, the iterative search process may terminate early based on a ratio threshold, where the minimum cost from the previous search iteration is used to determine the ratio of the minimum cost to be calculated based on the difference between the minimum cost from the previous search iteration and the total minimum cost from the current search iteration. In some examples, the absolute value of the difference between the minimum cost from the previous search iteration and the total minimum cost from the current search iteration may be used in the ratio. For example, if the current search iteration is the fourth and the previous iteration is the third, the difference between the minimum cost from the fourth search iteration and the minimum cost from the third search iteration is determined, and the ratio of this difference to the minimum cost from the third search iteration is determined. In some examples, the iterative search process terminates if the ratio falls below a ratio threshold. In some examples, the ratio threshold may be fixed or based on the size of the video data blocks.

[0154]

[0171] In some cases, if the iterative search process does not terminate early and another search iteration is performed, the minimum cost through the current search iteration becomes the minimum cost through the previous search iteration for the next search iteration. For example, if the current search iteration is the 4th and the previous search iteration was the 3rd, and the iterative search process does not terminate early, the 5th search iteration will be performed. In the 5th search iteration, the minimum cost through the 4th search iteration becomes the minimum cost through the previous search iteration, and the total minimum cost through the current search iteration is updated to the minimum cost through the 5th search iteration. Therefore, the total minimum cost through the current search iteration and the minimum cost through the previous search iteration can be updated with each search iteration.

[0155]

[0172] In another example, step 3) is only applied if the number of previous iterations exceeds a predefined threshold.

[0156]

[0173] In another example, the cost of the current search position, indicated as currCost, can be further considered along with minCost and minCostPrev to determine whether or not to terminate the iterative search process. For example, abs(currCost-minCostPrev) can be evaluated by comparing it to a threshold, for example, and if the current cost currCost is not significantly different from minCostPrev, the search can be terminated. In yet another example, an additional condition can be added where abs(minCostPrev-minCost) is compared to a threshold, and if it is less than that threshold, and abs(currCost-minCostPrev) is less than another threshold, the iterative search process is terminated.

[0157]

[0174] For example, if the current search iteration is the 4th and the previous iteration was the 3rd, the cost of the current search position is the cost of the 4th search iteration itself, the minimum cost through the previous search iteration is the minimum cost through the 3rd search iteration, and the total minimum cost through the current search iteration is the minimum cost through the 4th search iteration.

[0158]

[0175] In some examples, the video encoder 200 and video decoder 300 may be configured to compare the difference between the cost of the current search location and the minimum cost achieved through previous search iterations with a difference threshold. In some examples, the video encoder 200 and video decoder 300 may be configured to terminate the iterative search process early if the difference between the cost of the current search location and the minimum cost achieved through previous search iterations falls below the difference threshold.

[0159]

[0176] In some examples, the video encoder 200 and video decoder 300 may be configured to determine the difference between the minimum cost achieved through the previous search iteration and the total minimum cost achieved through the current search iteration, as described above, and to compare this difference with a difference threshold. In addition, the video encoder 200 and video decoder 300 may be configured to compare the difference between the cost of the current search position and the minimum cost achieved through the previous search iteration with a difference threshold. In some examples, the video encoder 200 and video decoder 300 may be configured to terminate the iterative search process early when both differences fall below their respective difference thresholds. In some examples, the respective difference thresholds may be equal. In some examples, the respective difference thresholds may be different and / or independent.

[0160]

[0177] In some examples, each difference threshold may be fixed or based on the size of the video data blocks. In some examples, each difference threshold may be set to be equal to S times the area of ​​the video data blocks, where S is a scaling factor that may be predefined or signaled in the bitstream.

[0161]

[0178] In some cases, video encoders 200 and video decoders 300 that terminate the iterative search process early, following one or more of the examples described above, can reduce computational complexity without substantially increasing distortion.

[0162]

[0179] Figure 9 is a block diagram showing an exemplary video encoder 200 capable of performing the techniques of this disclosure. Figure 9 is provided for illustrative purposes and should not be considered a limitation of the techniques as broadly illustrated and described herein. For illustrative purposes, this disclosure describes a video encoder 200 using the techniques of VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265). However, the techniques of this disclosure may be performed by video encoding devices configured to other video coding standards and video coding formats such as AV1 and successors to the AV1 video coding format.

[0163]

[0180] In the example shown in Figure 9, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a conversion processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse conversion processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, mode selection unit 202, residual generation unit 204, conversion processing unit 206, quantization unit 208, inverse quantization unit 210, inverse conversion processing unit 212, reconstruction unit 214, filter unit 216, DPB 218, and entropy coding unit 220 may be implemented in one or more processors or processing circuits. For example, the units of the video encoder 200 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Furthermore, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

[0164]

[0181] The video data memory 230 can store video data to be encoded by the components of the video encoder 200. The video encoder 200 can receive video data stored in the video data memory 230 from, for example, a video source 104 (Figure 1). The DPB 218 may act as a reference picture memory, storing reference video data for use by the video encoder 200 in predicting subsequent video data. The video data memory 230 and DPB 218 may be formed by any of various 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 230 and DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with the other components of the video encoder 200, as shown, or off-chip relative to those components.

[0165]

[0182] In this disclosure, references to the video data memory 230 should not be construed as being limited to memory inside the video encoder 200 unless otherwise specifically stated, or to memory outside the video encoder 200 unless otherwise specifically stated. Rather, references to the video data memory 230 should be understood as reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for the current block to be encoded). Memory 106 in Figure 1 may also provide temporary storage for outputs from various units of the video encoder 200.

[0166]

[0183] The various units in Figure 9 are shown to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide a specific function, with predetermined operations. Programmable circuits refer to circuits that can be programmed to perform various tasks, offering flexible functionality in the operations they can perform. For example, a programmable circuit may execute software or firmware that operates the programmable circuit in a manner defined by software or firmware instructions. Fixed-function circuits may execute software instructions (e.g., to receive or output parameters), but the type of operation performed by a fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0167]

[0184] The video encoder 200 may include a programmable core formed from an arithmetic logic unit (ALU), an EFU, digital circuits, analog circuits, and / or programmable circuits. In an example where the operation of the video encoder 200 is carried out using software executed by the programmable circuits, memory 106 (Figure 1) may store instructions (e.g., object code) of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.

[0168]

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

[0169]

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

[0170]

[0187] The mode selection unit 202 generally coordinates multiple coding paths to test combinations of coding parameters and the rate distortion values ​​obtained for such combinations. The coding parameters may include the division of the CTU to the CU, the prediction mode for the CU, the transformation type for the residual data of the CU, and the quantization parameters for the residual data of the CU. The mode selection unit 202 can ultimately select a combination of coding parameters that has a better rate distortion value than other tested combinations.

[0171]

[0188] The video encoder 200 may divide the picture retrieved from the video data memory 230 into a series of CTUs, and may encapsulate one or more CTUs within a slice. The mode selection unit 202 may divide the picture's CTUs according to a tree structure, such as an MTT structure, a QTBT structure, a superblock structure, or the quadtree structure described above. As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to a tree structure. Such CUs are sometimes commonly referred to as “video blocks” or “blocks”.

[0172]

[0189] Generally, the mode selection unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra-prediction unit 226) to generate a predicted block for the current block (e.g., the current CU, or in HEVC, the overlapping portion of PU and TU). For intra-prediction of the current block, the motion estimation unit 222 may perform a motion search to identify one or more well-matching reference blocks among one or more reference pictures (e.g., one or more previously coded pictures stored in DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block, for example, according to the difference absolute sum (SAD), squared difference sum (SSD), mean absolute difference (MAD), mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations, which indicates the reference block that best matches the current block.

[0173]

[0190] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of the current block in the current picture. The motion estimation unit 222 may form motion vectors using any of the techniques for determining motion vectors as described above. For example, the motion estimation unit 222 may be configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes an iterative search process. The iterative search process includes determining the minimum cost through previous search iterations, updating the total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration. The motion estimation unit 222 may be further configured to encode blocks of video data using the motion vectors.

[0174]

[0191] The motion estimation unit 222 may then provide motion vectors to the motion compensation unit 224. For example, in the case of unidirectional interpretation, the motion estimation unit 222 may provide a single motion vector, while in the case of bidirectional interpretation, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate prediction blocks. For example, the motion compensation unit 224 may use the motion vectors to extract data for reference blocks. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate values ​​for prediction blocks according to one or more interpolation filters. Furthermore, in the case of bidirectional interpretation, the motion compensation unit 224 may extract data for two reference blocks identified by each motion vector and combine the extracted data, for example, through sample-wise averaging or weighted averaging.

[0175]

[0192] When operating according to the AV1 video coding format, the motion estimation unit 222 and the motion compensation unit 224 may be configured to encode coding blocks of video data (e.g., both lumane and chromane coding blocks) using translational motion compensation, affine motion compensation, overlapping block motion compensation (OBMC), and / or synthetic inter-intra prediction.

[0176]

[0193] As another example, in the case of intra-prediction or intra-prediction coding, the intra-prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, in directional mode, the intra-prediction unit 226 may generally generate a prediction block by mathematically combining the values ​​of adjacent samples and populating these calculated values ​​in a direction defined across the current block. As another example, in DC mode, the intra-prediction unit 226 may calculate the average of the samples adjacent to the current block and generate a prediction block that includes this obtained average for each sample in the prediction block.

[0177]

[0194] When operating according to the AV1 video coding format, the intra-prediction unit 226 may be configured to encode coding blocks of video data (e.g., both lumane coding blocks and chromane coding blocks) using directional intra-prediction, non-directional intra-prediction, recursive filter intra-prediction, chroma-from-luma (CFL) prediction, intra-block copy (IBC), and / or color palette modes. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes.

[0178]

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

[0179]

[0196] In an example where the mode selection unit 202 divides CUs into PUs, each PU may be associated with a lumen prediction unit and a corresponding chroma prediction unit. The video encoder 200 and video decoder 300 may support PUs of various sizes. As shown above, the size of a CU may refer to the size of the lumen coding block of the CU, and the size of a PU may refer to the size of the lumen prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N, or similar for inter-prediction. The video encoder 200 and video decoder 300 may also support asymmetric divisions for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-prediction.

[0180]

[0197] In cases where the mode selection unit 202 does not further subdivide the CUs into PUs, each CU may be associated with a ruma coding block and a corresponding chroma coding block. As shown above, the size of a CU may refer to the size of the ruma coding block of the CU. The video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.

[0181]

[0198] In some examples, such as intra-block copy mode coding, affine mode coding, and other video coding techniques like linear model (LM) mode coding, the mode selection unit 202 generates a predicted block for the current block being coded via the respective units associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 does not need to generate a predicted block, but instead may generate syntax elements that indicate a scheme for reconstructing the block based on the selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be coded.

[0182]

[0199] As described above, the residual generation unit 204 receives video data for the current block and the corresponding predicted block. The residual generation unit 204 then generates residual blocks for the current block. To generate residual blocks, the residual generation unit 204 calculates the sample-by-sample difference between the predicted block and the current block.

[0183]

[0200] The transformation processing unit 206 applies one or more transformations to the residual block to generate a block of transformation coefficients (hereinafter referred to as the "transformation coefficient block"). The transformation processing unit 206 may apply various transformations to the residual block to form the transformation coefficient block. For example, the transformation processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Carunenlobe transform (KLT), or a conceptually similar transformation to the residual block. In some examples, the transformation processing unit 206 may perform multiple transformations on the residual block, such as linear and quadratic transformations, including a rotation transform. In some examples, the transformation processing unit 206 does not apply any transformations to the residual block.

[0184]

[0201] When operating according to AV1, the transformation processing unit 206 may apply one or more transformations to the residual block to generate blocks of transformation coefficients (referred to herein as “transformation coefficient blocks”). The transformation processing unit 206 may apply various transformations to the residual block to form transformation coefficient blocks. For example, the transformation processing unit 206 may apply horizontal / vertical transformation combinations that may include the discrete cosine transform (DCT), the asymmetric discrete sine transform (ADST), the inverted ADST (e.g., ADST in reverse order), and the identity transform (IDTX). When using the identity transform, the transformation is skipped in either the vertical or horizontal direction. In some examples, the transformation process may be skipped.

[0185]

[0202] The quantization unit 208 may generate a quantized conversion coefficient block by quantizing the conversion coefficients within the conversion coefficient block. The quantization unit 208 may quantize the conversion coefficients of the conversion coefficient block according to the quantization parameter (QP) value associated with the current block. The video encoder 200 may adjust the degree of quantization applied to the conversion coefficient block associated with the current block by adjusting the QP value associated with the CU (for example, via the mode selection unit 202). Quantization may result in information loss, and therefore the quantized conversion coefficients may be less precise than the original conversion coefficients generated by the conversion processing unit 206.

[0186]

[0203] The inverse quantization unit 210 and the inverse transformation processing unit 212 can apply inverse quantization and inverse transformation to the quantization transformation coefficient block, respectively, to reconstruct the residual block from the transformation coefficient block. The reconstruction unit 214 can generate a reconstructed block corresponding to the current block (which may be with some distortion) based on the reconstructed residual block and prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 can generate a reconstructed block by adding a sample from the reconstructed residual block to a corresponding sample from the prediction block generated by the mode selection unit 202.

[0187]

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

[0188]

[0205] When operating according to AV1, the filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 216 may perform a deblocking operation to reduce blockingness artifacts along the edges of the CU. In another example, the filter unit 216 may apply a constrained directional enhancement filter (CDEF), which may be applied after deblocking and may include the application of a non-separable, nonlinear, low-pass directional filter based on the estimated edge direction. The filter unit 216 may also include a loop-recovery filter, which may be applied after the CDEF and may include a separable symmetric normalized Wiener filter or a dual self-inductive filter.

[0189]

[0206] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in cases where the filter unit 216 does not operate, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In cases where the filter unit 216 operates, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to interpret blocks of the picture to be encoded later. In addition, the intraprediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intrapret other blocks in the current picture.

[0190]

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

[0191]

[0208] The video encoder 200 may output a bitstream containing entropy coding syntax elements required to reconstruct a slice or block of picture. More specifically, the entropy coding unit 220 may output a bitstream.

[0192]

[0209] According to AV1, the entropy coding unit 220 may be configured as a symbol-to-symbol adaptive multi-symbol arithmetic coder. In AV1, the syntax element contains an alphabet of N elements, and the context (e.g., a probabilistic model) contains a set of N probabilities. The entropy coding unit 220 may store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). The entropy coding unit 22 may perform recursive scaling to update the context using an update factor based on the alphabet size.

[0193]

[0210] The behavior described above is explained in relation to blocks. Such explanations should be understood as behaviors for rumacoding blocks and / or chromacoding blocks. As explained above, in some examples, the rumacoding block and chromacoding block are the ruma and chroma components of the CU. In some examples, the rumacoding block and chromacoding block are the ruma and chroma components of the PU.

[0194]

[0211] In some cases, actions performed for a rumacoding block do not need to be repeated for a chromacoding block. For example, actions to identify the motion vector (MV) and reference picture for a rumacoding block do not need to be repeated to identify the MV and reference picture for a chromablock. Rather, the MV for the rumacoding block may be scaled to determine the MV for the chromablock, and the reference picture may be the same. In another example, the intra-prediction process may be the same for both rumacoding and chromacoding blocks.

[0195]

[0212] The video encoder 200 represents an example of a device configured to encode video data, comprising a memory configured to store video data and one or more processing units, the one or more processing units being implemented in the circuit and configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process which includes an iterative search process, the iterative search process comprising calculating the minimum cost of the previous search iteration and terminating the iterative search process early based on the minimum cost of the previous search iteration, and to encode blocks of video data using the motion vectors.

[0196]

[0213] Figure 10 is a block diagram showing an exemplary video decoder 300 capable of performing the techniques of this disclosure. Figure 10 is provided for illustrative purposes and is not intended to limit the techniques that are more broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes a video decoder 300 using VVC (ITU-T H.266 in development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video coding devices configured according to other video coding standards.

[0197]

[0214] In the example shown in Figure 10, the video decoder 300 includes a coding picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transformation processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoding picture buffer (DPB) 314. Any or all of the CPB memory 320, entropy decoding unit 302, prediction processing unit 304, inverse quantization unit 306, inverse transformation processing unit 308, reconstruction unit 310, filter unit 312, and DPB 314 may be implemented in one or more processors or processing circuits. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.

[0198]

[0215] The prediction processing unit 304 includes a motion compensation unit 316 and an intra-prediction unit 318. The prediction processing unit 304 may include additional units for performing predictions according to other prediction modes. For example, the prediction processing unit 304 may include a pallet unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, and the like. In other examples, the video decoder 300 may include more, fewer, or different functional components.

[0199]

[0216] When operating according to AV1, the motion compensation unit 316 may be configured to decode coding blocks of video data (e.g., both lumana coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, OBMC, and / or synthetic inter-intra prediction, as described above. The intra-prediction unit 318 may be configured to decode coding blocks of video data (e.g., both lumana coding blocks and chroma coding blocks) using directional intra-prediction, non-directional intra-prediction, recursive filter intra-prediction, CFL, intra-block copy (IBC), and / or color palette mode, as described above.

[0200]

[0217] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by the components of the video decoder 300. The video data stored in the CPB memory 320 may be retrieved, for example, from a computer-readable medium 110 (Figure 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of an encoded picture, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 can output and / or use as reference video data when decoding subsequent data or pictures from the encoded video bitstream. The CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as DRAM including SDRAM, MRAM, RRAM, or other types of memory devices. The CPB memory 320 and DPB 314 may be provided by the same memory device or by separate memory devices. In various examples, the CPB memory 320 may be on-chip with the other components of the video decoder 300, or it may be off-chip relative to those components.

[0201]

[0218] As an addition or alternative, in some examples, the video decoder 300 may retrieve encoded video data from memory 120 (Figure 1). That is, memory 120 may store data such as that discussed above for the CPB memory 320. Similarly, memory 120 may store instructions to be executed by the video decoder 300 when some or all of the functions of the video decoder 300 are implemented in software to be performed by the processing circuit of the video decoder 300.

[0202]

[0219] The various units shown in Figure 10 are presented to help understand the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Similar to Figure 9, fixed-function circuits refer to circuits that provide a specific function, with predefined operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks, offering flexible functionality in the operations they can perform. For example, a programmable circuit may execute software or firmware that operates the programmable circuit in a manner defined by software or firmware instructions. Fixed-function circuits may execute software instructions (e.g., to receive or output parameters), but the type of operation performed by a fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0203]

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

[0204]

[0221] The entropy decoding unit 302 may receive the encoded video data from the CPB, entropy decode the video data, and reconstruct the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transformation processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate the decoded video data based on the syntax elements extracted from the bitstream.

[0205]

[0222] Generally, the video decoder 300 reconstructs the picture block by block. The video decoder 300 may perform the reconstruction operation for each block individually (where the block currently being reconstructed, for example, being decoded, may be called the "current block").

[0206]

[0223] The entropy decoding unit 302 may entropy decode syntax elements that define the quantization conversion coefficients of the quantization conversion coefficient block, as well as conversion information such as quantization parameters (QP) and / or conversion mode representations. The inverse quantization unit 306 may use the QP associated with the quantization conversion coefficient block to determine the degree of quantization, and similarly the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantization conversion coefficients. Thereafter, the inverse quantization unit 306 may form a conversion coefficient block containing the conversion coefficients.

[0207]

[0224] After the inverse quantization unit 306 has formed a transformation coefficient block, the inverse transformation processing unit 308 may apply one or more inverse transformations to the transformation coefficient block to generate a residual block associated with the current block. For example, the inverse transformation processing unit 308 may apply an inverse DCT, an inverse integer transformation, an inverse Carunenlobe transformation (KLT), an inverse rotation transformation, an inverse direction transformation, or another inverse transformation to the transformation coefficient block.

[0208] Furthermore, the prediction processing unit 304 generates prediction blocks according to the prediction information syntax elements entropy-decoded by the entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is interpredicted, the motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax elements may indicate a reference picture in the DPB 314 from which the reference block should be extracted, as well as a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion compensation unit 316 can generally perform the interprediction process in a manner substantially similar to that described with respect to the motion compensation unit 224 (Figure 9).

[0209]

[0225] The motion compensation unit 316 may form motion vectors using any of the techniques for determining motion vectors as described above. For example, the motion compensation unit 316 may be configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes an iterative search process. The iterative search process includes determining the minimum cost through previous search iterations, updating the total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration. The motion compensation unit 316 may be further configured to decode blocks of video data using the motion vectors.

[0210]

[0226] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a predicted block according to the intra-prediction mode indicated by the prediction information syntax element. In this case as well, the intra-prediction unit 318 may generally perform the intra-prediction process in a manner substantially similar to the manner described with respect to the intra-prediction unit 226 (Figure 9). The intra-prediction unit 318 may retrieve data from the DPB 314 for samples adjacent to the current block.

[0211]

[0227] The reconstruction unit 310 may reconstruct the current block using the predicted block and the residual block. For example, the reconstruction unit 310 may reconstruct the current block by adding a sample from the residual block to the corresponding sample from the predicted block.

[0212]

[0228] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blockingness artifacts along the edges of the reconstructed block. In all examples, the operations of the filter unit 312 are not necessarily performed.

[0213]

[0229] The video decoder 300 may store the reconstructed blocks in the DPB 314. For example, in cases where the filter unit 312 does not operate, the reconstruction unit 310 may store the reconstructed blocks in the DPB 314. In cases where the filter unit 312 operates, the filter unit 312 may store the filtered reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide the prediction processing unit 304 with reference information such as the current picture for intra-prediction and samples of previously decoded pictures for subsequent motion compensation. Furthermore, the video decoder 300 may output the decoded picture (e.g., decoded video) from the DPB 314 for later presentation on a display device such as the display device 118 in Figure 1.

[0214]

[0230] In this way, the video decoder 300 represents an example of a video decoding device, which includes a memory configured to store video data and one or more processing units, the one or more processing units being implemented in the circuit and configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process which includes an iterative search process, the iterative search process including calculating the minimum cost of the previous search iteration and terminating the iterative search process early based on the minimum cost of the previous search iteration, and to code blocks of video data using the motion vectors.

[0215]

[0231] Figure 11 is a flowchart illustrating an exemplary method for encoding a current block using the technique of the present disclosure. A current block may comprise a current CU. While the video encoder 200 (Figures 1 and 9) is described, it should be understood that other devices may be configured to perform a similar method to that of Figure 11.

[0216]

[0232] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predicted block for the current block. The video encoder 200 may then compute the residual block for the current block (352). To compute the residual block, the video encoder 200 may compute the difference between the original unencoded block and the predicted block for the current block. The video encoder 200 may then transform the residual block and quantize the transformation coefficients of the residual block (354). The video encoder 200 may then scan the quantized transformation coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy encode the transformation coefficients (358). For example, the video encoder 200 may encode the transformation coefficients using CAVLC or CABAC. The video encoder 200 may then output the entropy encoded data of the block (360).

[0217]

[0233] Figure 12 is a flowchart illustrating an exemplary method for decoding the current block of video data using the technique of the present disclosure. The current block may comprise the current CU. While the video decoder 300 (Figures 1 and 10) is described, it should be understood that other devices may be configured to perform a similar method to that shown in Figure 12.

[0218]

[0234] The video decoder 300 may receive entropy-encoded data about the current block, such as entropy-encoded prediction information and entropy-encoded data of the transformation coefficients of the residual block corresponding to the current block (370). The video decoder 300 may entropy-decode the entropy-encoded data to determine the prediction information for the current block and reconstruct the transformation coefficients of the residual block (372). The video decoder 300 may predict the current block, for example, using an intra-prediction mode or inter-prediction mode as indicated by the prediction information for the current block, in order to compute a prediction block for the current block (374). The video decoder 300 may then back-scan the reconstructed transformation coefficients to create a block of quantization transformation coefficients (376). The video decoder 300 may then inverse-quantize the transformation coefficients and apply an inverse transformation to the transformation coefficients to generate a residual block (378). The video decoder 300 may finally decode the current block by combining the prediction block and the residual block (380).

[0219]

[0235] Figure 13 is a flowchart illustrating an example of a method for terminating an iterative search process early using the technique of the present disclosure. The current block may include a current CU. The iterative search process is described in relation to being performed by a video encoder 200 and / or a video decoder 300.

[0220]

[0236] The video encoder 200 / decoder 300 may determine motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes an iterative search process. For example, in the iterative search process, the video encoder 200 / decoder 300 may be configured to perform the first search iteration and set the minimum cost through the previous search iteration to 0 (1300). The video encoder 200 / decoder 300 may be further configured to determine the cost through the first search iteration and set the total minimum cost through the current search iteration as the overall cost through the first search iteration (1302). The video encoder 200 / decoder 300 may be further configured to decide whether to terminate the iterative search process based on comparing the minimum cost through the previous search iteration with the total minimum cost through the current search iteration (1304). If the video encoder 200 / decoder 300 decides to terminate the iterative search process early, the video encoder 200 / decoder 300 is further configured to encode / decode blocks of video data using motion vectors having the minimum cost up to that point in the search process (1305).

[0221]

[0237] If the video encoder 200 / decoder 300 decides not to terminate the iterative search process early, it is further configured to perform a second search iteration and set the minimum cost through the previous search iteration as the minimum cost through the first search iteration (1306). The video encoder 200 / decoder 300 may be further configured to update the total minimum cost through the current search iteration as the overall cost through the second search iteration (1308). The video encoder 200 / decoder 300 may be further configured to decide whether or not to terminate the iterative search process based on comparing the minimum cost through the previous search iteration with the total minimum cost through the current search iteration (1310). If the video encoder 200 / decoder 300 decides to terminate the iterative search process early, it is further configured to encode / decode each block of video data using the motion vector having the minimum cost up to that point in the search process (1305).

[0222]

[0238] If the video encoder 200 / decoder 300 decides not to terminate the iterative search process early, it is further configured to perform a third search iteration and set the minimum cost through the previous search iteration as the minimum cost through the second search iteration (1312). The video encoder 200 / decoder 300 may be further configured to update the total minimum cost through the current search iteration as the overall cost through the third search iteration (1314). The video encoder 200 / decoder 300 may be further configured to decide whether or not to terminate the iterative search process based on comparing the minimum cost through the previous search iteration with the total minimum cost through the current search iteration (1316). If the video encoder 200 / decoder 300 decides to terminate the iterative search process early, it is further configured to encode / decode each block of video data using the motion vector having the minimum cost up to that point in the search process (1305).

[0223]

[0239] If the video encoder 200 / decoder 300 decides not to terminate the iterative search process early, the video encoder 200 / decoder 300 is further configured to execute the next search iteration according to the previous search iteration until the video encoder 200 / decoder 300 terminates the iterative search process (1318).

[0224]

[0240] In some cases, terminating the iterative search process early based on a comparison between the minimum cost over previous search iterations and the total minimum cost over the current search iteration can be done based on multiple comparisons.

[0225]

[0241] Figure 14 is a flowchart illustrating another exemplary method for decoding blocks of video data using the technique of the present disclosure. The technique of Figure 14 may be performed by one or more structural components of a video decoder 300, including a motion compensation unit 316.

[0226]

[0242] In one example of the present disclosure, the video decoder 300 may be configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process which includes an iterative search process (1400). In the iterative search process, the video decoder 300 may be further configured to determine a minimum cost through previous search iterations (1402), update a total minimum cost through the current search iteration (1404), and terminate the iterative search process early based on a comparison of the minimum cost through previous search iterations with the total minimum cost through the current search iteration (1406). The video decoder 300 may then decode blocks of video data using the motion vectors (1408).

[0227]

[0243] In one example, the video decoder 300 may be configured to calculate the total minimum cost through the current search iteration based on at least the current subset of candidate positions.

[0228]

[0244] In another example, to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, the video decoder 300 may be configured to calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and to terminate the iterative search process early based on the difference against a difference threshold.

[0229]

[0245] In another example, to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, the video decoder 300 may be configured to calculate the ratio of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration and terminate the iterative search process early based on the ratio to a ratio threshold.

[0230]

[0246] In another example, to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, the video decoder 300 may be configured to calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, calculate the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminate the iterative search process early based on the ratio to a ratio threshold.

[0231]

[0247] In another example, the video decoder 300 may be configured to terminate the iterative search process early based on the minimum cost over previous search iterations, the total minimum cost over the current search iteration, and the minimum cost of the current search iteration. For example, the video decoder 300 may be configured to terminate the iterative search process early based on a comparison between the minimum cost over previous search iterations and the total minimum cost over the current search iteration, and a comparison between the minimum cost over previous search iterations and the minimum cost of the current search iteration.

[0232]

[0248] FIG. 15 is a flowchart illustrating another exemplary method for encoding a block of video data according to the techniques of this disclosure. The technique of FIG. 15 may be performed by one or more structural components of video encoder 200, including motion estimation unit 222 and / or motion compensation unit 224.

[0233]

[0249] In one example of the present disclosure, video encoder 200 may be configured to determine (1500) a motion vector for a block of video data using a decoder-side motion vector derivation process that includes an iterative search process. In the iterative search process, video decoder 300 may be further configured to determine (1502) a minimum cost through a previous search iteration, update (1504) a total minimum cost through a current search iteration, and early terminate (1506) the iterative search process based on a comparison between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration. Video encoder 200 may then encode (1508) the block of video data using the motion vector.

[0234]

[0250] In one example, video encoder 200 may be configured to calculate a total minimum cost through a current search iteration based on at least a current subset of candidate positions.

[0235]

[0251] In another example, to early terminate the iterative search process based on the comparison between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, video encoder 200 may be configured to calculate a difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and early terminate the iterative search process based on the difference relative to a difference threshold.

[0236]

[0252] In another example, to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, the video encoder 200 may be configured to calculate the ratio of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration and terminate the iterative search process early based on the ratio to a ratio threshold.

[0237]

[0253] In another example, to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, the video encoder 200 may be configured to calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, calculate the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminate the iterative search process early based on the ratio to a ratio threshold.

[0238]

[0254] In another example, the video encoder 200 may be configured to terminate the iterative search process early based on the minimum cost over previous search iterations, the total minimum cost over the current search iteration, and the minimum cost of the current search iteration. For example, the video decoder 200 may be configured to terminate the iterative search process early based on a comparison between the minimum cost over previous search iterations and the total minimum cost over the current search iteration, and a comparison between the minimum cost over previous search iterations and the minimum cost of the current search iteration.

[0239]

[0255] Additional methods and devices of this disclosure are described in the following aspects.

[0240]

[0256] Embodiment 1A - A method for coding video data, comprising determining a motion vector for a block of video data using a decoder-side motion vector derivation process including an iterative search process, wherein the iterative search process includes calculating the minimum cost of the previous search iteration and terminating the iterative search process early based on the minimum cost of the previous search iteration, determining the motion vector, and coding a block of video data using the motion vector.

[0241]

[0257] Embodiment 2A - The method according to Embodiment 1A, further comprising updating the minimum cost determined for an iterative search process.

[0242]

[0258] Embodiment 3A - The method according to Embodiment 2A, wherein terminating the iterative search process early based on the minimum cost of the previous search iteration includes calculating the difference or ratio between the minimum cost of the previous search iteration and the minimum cost determined for the iterative search process, and terminating the iterative search process early based on the difference or ratio with respect to a threshold.

[0243]

[0259] Embodiment 4A - The method of Embodiment 2A, wherein terminating the iterative search process early based on the minimum cost of a previous search iteration includes terminating the iterative search process early based on the minimum cost of a previous search iteration, the minimum cost determined for the iterative search process, and the minimum cost of the current iteration.

[0244]

[0260] Embodiment 5A - The method according to Embodiment 1A, wherein the iterative search process includes three or more iterations.

[0245]

[0261] Embodiment 6A - The method according to Embodiment 1A, wherein the iterative search process includes bidirectional matching or template matching.

[0246]

[0262] Embodiment 7A - The method according to any one of Embodiments 1A to 6A, wherein coding includes decryption.

[0247]

[0263] Embodiment 8A - The method according to any one of Embodiments 1A to 6A, wherein coding includes encoding.

[0248]

[0264] Embodiment 9A - A device for coding video data, comprising one or more means for performing the method described in any one of Embodiments 1A to 8A.

[0249]

[0265] Embodiment 10A - The device according to Embodiment 9A, wherein one or more means comprises one or more processors implemented in the circuit.

[0250]

[0266] Embodiment 11A - The device according to any one of Embodiments 9A and 10A, further comprising memory for storing video data.

[0251]

[0267] Embodiment 12A - The device according to any one of embodiments 9A to 11A, further comprising a display configured to display decoded video data.

[0252]

[0268] Embodiment 13A - A device according to any one of Embodiments 9A to 12A, wherein the device comprises one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0253]

[0269] Embodiment 14A - A device according to any one of Embodiments 9A to 13A, wherein the device comprises a video decoder.

[0254]

[0270] Embodiment 15A - A device according to any one of Embodiments 9A to 14A, wherein the device comprises a video encoder.

[0255]

[0271] Embodiment 16A - A computer-readable storage medium storing instructions that, when executed, cause one or more processors to perform any of the methods of Embodiments 1A to 8A.

[0256]

[0272] Aspect 17A - A device for coding video data, comprising: means for determining a motion vector for a block of the video data using a decoder-side motion vector derivation process including an iterative search process, wherein the iterative search process includes calculating a minimum cost of a previous search iteration, and terminating the iterative search process early based on the minimum cost of the previous search iteration; and means for coding the block of the video data using the motion vector.

[0257]

[0273] Aspect 18A - A method of coding video data, comprising: determining a motion vector for a block of the video data using a decoder-side motion vector derivation process including an iterative search process, wherein the iterative search process includes calculating a minimum cost of a previous search iteration, and terminating the iterative search process early based on the minimum cost of the previous search iteration; and coding the block of the video data using the motion vector.

[0258]

[0274] Aspect 19A - The method of Aspect 18A, further comprising updating a determined minimum cost for the iterative search process.

[0259]

[0275] Aspect 20A - The method of Aspect 19A, wherein terminating the iterative search process early based on the minimum cost of the previous search iteration comprises: calculating a difference or ratio between the minimum cost of the previous search iteration and the determined minimum cost for the iterative search process; and terminating the iterative search process early based on the difference or ratio relative to a threshold.

[0260]

[0276] Aspect 21A - The method of Aspect 19A, wherein terminating the iterative search process early based on the minimum cost of the previous search iteration comprises terminating the iterative search process early based on the minimum cost of the previous search iteration, the determined minimum cost for the iterative search process, and a minimum cost of a current iteration.

[0261]

[0277] Embodiment 22A - The method according to any one of Embodiments 18A to 21A, wherein the iterative search process includes three or more iterations.

[0262]

[0278] Embodiment 23A - The method according to any one of Embodiments 18A to 22A, wherein the iterative search process includes bidirectional matching or template matching.

[0263]

[0279] Embodiment 24A - A device for coding video data, comprising one or more means for performing any of the methods of Embodiments 18A to 23A.

[0264]

[0280] Embodiment 1B - A method for encoding or decoding video data, comprising determining a motion vector for a block of video data using a decoder-side motion vector derivation process which includes performing an iterative search process, wherein the iterative search process includes determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and encoding or decoding a block of video data using the motion vector.

[0265]

[0281] Embodiment 2B - The method according to Embodiment 1B, wherein the previous search iteration is immediately preceding the current search iteration in the iterative search process.

[0266]

[0282] Embodiment 3B - The method according to Embodiment 1B, further comprising calculating the total minimum cost through the current search iteration based on at least the current subset of candidate positions.

[0267]

[0283] Embodiment 4B - The method of Embodiment 1B, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes calculating the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminating the iterative search process early based on the difference with respect to a difference threshold.

[0268]

[0284] Embodiment 5B - The method according to Embodiment 4B, wherein the differential threshold is based on the size of the block.

[0269]

[0285] Embodiment 6B - The method of Embodiment 1B, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes calculating the ratio of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and terminating the iterative search process early based on a ratio to a ratio threshold.

[0270]

[0286] Embodiment 7B - The method according to Embodiment 6B, wherein the ratio threshold is fixed or based on the size of the block.

[0271]

[0287] Embodiment 8B - The method of Embodiment 1B, wherein early termination of the iterative search process based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes: calculating the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration; calculating the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration; and terminating the iterative search process early based on a ratio to a ratio threshold.

[0272]

[0288] Embodiment 9B - The method according to Embodiment 8B, wherein the ratio threshold is fixed or based on the size of the block.

[0273]

[0289] Embodiment 10B - The method according to Embodiment 1B, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and a comparison of the minimum cost through the previous search iteration with the minimum cost of the current search iteration.

[0274]

[0290] Embodiment 11B - The method according to Embodiment 1B, wherein the iterative search process includes three or more iterations.

[0275]

[0291] Embodiment 12B - The method according to Embodiment 1B, wherein the iterative search process includes performing bidirectional matching or template matching.

[0276]

[0292] Embodiment 13B - A device for processing video data includes a memory configured to store video data and a processing circuit, the processing circuit configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process including an iterative search process, wherein, in order to perform the iterative search process, the processing circuit is further configured to determine a minimum cost through previous search iterations, update a total minimum cost through the current search iteration, terminate the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and is configured to encode or decode blocks of video data using the motion vectors.

[0277]

[0293] Embodiment 14B - The device according to Embodiment 13B, wherein the previous search iteration is immediately preceding the current search iteration.

[0278]

[0294] Embodiment 15B - The device according to Embodiment 13B, wherein the processing circuit is further configured to calculate the total minimum cost through the current search iteration based on at least the current subset of candidate positions, in order to perform an iterative search process.

[0279]

[0295] Embodiment 16B - The device according to Embodiment 13B, wherein the processing circuit is further configured to calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and to terminate the iterative search process early based on the difference with respect to a difference threshold.

[0280]

[0296] Embodiment 17B - The device according to Embodiment 16B, wherein the differential threshold is based on the block size.

[0281]

[0297] Embodiment 18B - The device according to Embodiment 13B, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and to terminate the iterative search process early based on the ratio to a ratio threshold.

[0282]

[0298] Embodiment 19B - The device according to Embodiment 18B, wherein the ratio threshold is fixed or based on the size of the block.

[0283]

[0299] Embodiment 20B - The device according to Embodiment 13B, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, calculate the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminate the iterative search process early based on the ratio to a ratio threshold.

[0284]

[0300] Embodiment 21B - The device according to Embodiment 20B, wherein the ratio threshold is fixed or based on the size of the block.

[0285]

[0301] Embodiment 22B - The device according to Embodiment 13B, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and a comparison of the minimum cost through the previous search iteration with the minimum cost of the current search iteration.

[0286]

[0302] Embodiment 23B - The device according to Embodiment 13B, wherein the iterative search process includes three or more iterations.

[0287]

[0303] Embodiment 24B - The device according to Embodiment 13B, wherein the processing circuit is configured to perform bidirectional matching or template matching in order to perform an iterative search process.

[0288]

[0304] Embodiment 25B - The device of Embodiment 13B, further comprising a display configured to display video data.

[0289]

[0305] Embodiment 26B - The device according to Embodiment 13B, wherein the device comprises one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0290]

[0306] Embodiment 27B - The device according to Embodiment 13, wherein the device comprises a camera configured to capture video data.

[0291]

[0307] Embodiment 1C - A method for encoding or decoding video data, comprising determining a motion vector for a block of video data using a decoder-side motion vector derivation process which includes performing an iterative search process, wherein the iterative search process includes determining a minimum cost through previous search iterations, updating a total minimum cost through the current search iteration, and terminating the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and encoding or decoding a block of video data using the motion vector.

[0292]

[0308] Embodiment 2C - The method according to Embodiment 1C, wherein the previous search iteration is immediately preceding the current search iteration in the iterative search process.

[0293]

[0309] Embodiment 3C - The method according to Embodiments 1C and 2C, further comprising calculating the total minimum cost through the current search iteration based on at least the current subset of candidate positions.

[0294]

[0310] Embodiment 4C - The method according to any one of Embodiments 1C to 3C, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes calculating the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminating the iterative search process early based on the difference with respect to a difference threshold.

[0295]

[0311] Embodiment 5C - The method according to Embodiment 4C, wherein the differential threshold is based on the size of the block.

[0296]

[0312] Embodiment 6C - The method according to any one of Embodiments 1C to 5C, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes calculating the ratio of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and terminating the iterative search process early based on a ratio to a ratio threshold.

[0297]

[0313] Embodiment 7C - The method according to Embodiment 6C, wherein the ratio threshold is fixed or based on the size of the block.

[0298]

[0314] Embodiment 8C - The method according to any one of Embodiments 1C to 7C, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes calculating the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, calculating the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminating the iterative search process early based on a ratio to a ratio threshold.

[0299]

[0315] Embodiment 9C - The method according to Embodiment 8C, wherein the ratio threshold is fixed or based on the size of the block.

[0300]

[0316] Embodiment 10C - The method according to any one of Embodiments 1C to 9C, wherein terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration includes terminating the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and a comparison of the minimum cost through the previous search iteration with the minimum cost of the current search iteration.

[0301]

[0317] Embodiment 11C - The method according to any one of Embodiments 1C to 10C, wherein the iterative search process includes three or more iterations.

[0302]

[0318] Embodiment 12C - The method according to any one of Embodiments 1C to 11C, wherein the execution of the iterative search process includes performing bidirectional matching or template matching.

[0303]

[0319] Embodiment 13C - A device for processing video data includes a memory configured to store video data and a processing circuit, the processing circuit configured to determine motion vectors for blocks of video data using a decoder-side motion vector derivation process including an iterative search process, wherein, in order to perform the iterative search process, the processing circuit is further configured to determine a minimum cost through previous search iterations, update a total minimum cost through the current search iteration, and terminate the iterative search process early based on a comparison of the minimum cost through previous search iterations and the total minimum cost through the current search iteration, and is configured to encode or decode blocks of video data using the motion vectors.

[0304]

[0320] Embodiment 14C - The device according to Embodiment 13C, wherein the previous search iteration is immediately preceding the current search iteration.

[0305]

[0321] Embodiment 15C - The device according to any one of Embodiments 13C and 14C, wherein the processing circuit is further configured to calculate the total minimum cost through the current search iteration based on at least the current subset of candidate positions, in order to perform an iterative search process.

[0306]

[0322] Embodiment 16C - The device according to any one of Embodiments 13C to 15C, wherein the processing circuit is further configured to calculate the difference between the minimum cost from the previous search iteration and the total minimum cost from the current search iteration, and to terminate the iterative search process early based on a comparison of the minimum cost from the previous search iteration and the total minimum cost from the current search iteration, and to terminate the iterative search process early based on the difference with respect to a difference threshold.

[0307]

[0323] Embodiment 17C - The device according to Embodiment 16C, wherein the differential threshold is based on the block size.

[0308]

[0324] Embodiment 18C - The device according to any one of Embodiments 13C to 17C, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and to calculate the ratio of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and to terminate the iterative search process early based on the ratio to a ratio threshold.

[0309]

[0325] Embodiment 19C - The device according to Embodiment 18C, wherein the ratio threshold is fixed or based on the size of the block.

[0310]

[0326] Embodiment 20C - A device according to any one of Embodiments 13C to 19C, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, calculate the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, calculate the ratio of the minimum cost through the previous search iteration to the difference between the minimum cost through the previous search iteration and the total minimum cost through the current search iteration, and terminate the iterative search process early based on the ratio to a ratio threshold.

[0311]

[0327] Embodiment 21C - The device according to Embodiment 20C, wherein the ratio threshold is fixed or based on the size of the block.

[0312]

[0328] Embodiment 22C - The device according to any one of Embodiments 13C to 21C, wherein the processing circuit is further configured to terminate the iterative search process early based on a comparison of the minimum cost through the previous search iteration with the total minimum cost through the current search iteration, and a comparison of the minimum cost through the previous search iteration with the minimum cost of the current search iteration.

[0313]

[0329] Embodiment 23C - The device according to any one of Embodiments 13C to 22C, wherein the iterative search process includes three or more iterations.

[0314]

[0330] Embodiment 24C - The device according to any one of Embodiments 13C to 23C, wherein the processing circuit is configured to perform bidirectional matching or template matching in order to perform an iterative search process.

[0315]

[0331] Embodiment 25C - The device according to any one of Embodiments 13C to 24C, further comprising a display configured to display video data.

[0316]

[0332] Embodiment 26C - The device according to any one of Embodiments 13C to 25C, wherein the device comprises one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0317]

[0333] Embodiment 27C - The device according to any one of Embodiments 13C to 26C, wherein the device comprises a camera configured to capture video data.

[0318]

[0334] It should be noted that, depending on the example, some of the actions or events among the techniques described herein may be performed in a different order, and may be added, combined, or completely excluded (for example, not all of the actions or events described may be necessary for the practice of the technique). Furthermore, in some examples, the actions or events may be performed not sequentially, but in parallel, for example, through multithreading, interrupt handling, or across multiple processors.

[0319]

[0335] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium, transmitted through a computer-readable medium, or executed by a hardware-based processing unit. The computer-readable medium may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including any medium that facilitates the transfer of computer programs from one location to another according to a communication protocol, for example. Thus, computer-readable media generally correspond to (1) non-transient tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described herein. Computer program products may include computer-readable media.

[0320]

[0336] Such computer-readable storage media may include, but are not limited to, computer-readable storage media, RAM, ROM, EEPROM®, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is appropriately called computer-readable media. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but instead refer to non-temporary tangible storage media. As used herein, the terms "disk" and "disc" include Compact Disc (CD), LaserDisc® (disc), Optical Disc (disc), Digital Multipurpose Disc (disc) (DVD), Floppy Disk (disk), and Blu-ray Disc (disc), where a disk typically reproduces data magnetically, and a disc reproduces data optically using a laser. Combinations of the above should also be included within the scope of computer-readable media.

[0321]

[0337] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other uniform integrated or discrete logic circuit configurations. Therefore, the terms “processor” and “processing circuit” as used herein may refer to any of the above-described structures or any other structure suitable for implementing the techniques described herein. In addition, in some embodiments, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a composite codec. Furthermore, the techniques may be fully implemented in one or more circuits or logic elements.

[0322]

[0338] The techniques of this disclosure may be implemented in a wide variety of devices or apparatus, including wireless handsets, integrated circuits (ICs), or sets of ICs (e.g., chipsets). While various components, modules, or units have been described in this disclosure to highlight the functional aspects of devices configured to implement the disclosed techniques, they do not necessarily require implementation by different hardware units. Rather, as described above, the various units may be combined within a codec hardware unit, or provided by a set of interoperable hardware units, including one or more processors as described above, in conjunction with suitable software and / or firmware.

[0323]

[0339] Various examples have been described. These and other examples fall within the scope of the following claims. The invention described in the original claims of this application is listed below. [C1] A method for encoding or decoding video data, Determining motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes performing an iterative search process, wherein performing the iterative search process is Determining the minimum cost through previous search iterations, The goal is to update the total minimum cost through the current search iteration, Determining a motion vector, including terminating the iterative search process early based on a comparison of the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration; A method comprising encoding or decoding the blocks of video data using the motion vectors. [C2] The method according to C1, wherein the previous search iteration is immediately preceding the current search iteration in the iterative search process. [C3] Calculate the total minimum cost through the current search iteration based on at least the current subset of candidate positions. The method according to C1, further comprising the above. [C4] The iterative search process may be terminated early based on a comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration. Calculate the difference between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, The method of C1, comprising terminating the iterative search process early based on the difference with respect to a difference threshold. [C5] The method according to C4, wherein the differential threshold is based on the size of the block. [C6] The iterative search process may be terminated early based on a comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration. Calculate the ratio of the minimum cost obtained through the previous search iteration to the total minimum cost obtained through the current search iteration, The iterative search process is terminated early based on the ratio to the ratio threshold. The method described in C1, including the method described in C1. [C7] The method according to C6, wherein the ratio threshold is fixed or based on the size of the block. [C8] The iterative search process may be terminated early based on a comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration. Calculate the difference between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, Calculate the ratio of the minimum cost from the previous search iteration to the difference between the minimum cost from the previous search iteration and the total minimum cost from the current search iteration, and terminate the iterative search process early based on the ratio to the ratio threshold. The method described in C1, including the method described in C1. [C9] The method according to C8, wherein the ratio threshold is fixed or based on the size of the block. [C10] The iterative search process may be terminated early based on a comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration. The iterative search process is terminated early based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, and the comparison between the minimum cost obtained through the previous search iteration and the minimum cost of the current search iteration. The method described in C1, including the method described in C1. [C11] The method according to C1, wherein the iterative search process includes three or more iterations. [C12] The method according to C1, wherein the execution of the iterative search process includes performing bidirectional matching or template matching. [C13] A device for processing video data, A memory configured to store the aforementioned video data, The system comprises a processing circuit, and the processing circuit is The decoder is configured to determine the motion vector for a block of video data using a decoder-side motion vector derivation process that includes an iterative search process, wherein the processing circuit performs the iterative search process, The minimum cost is determined through the previous search iteration, The total minimum cost is updated through the current search iteration. Based on a comparison of the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, the iterative search process is terminated early. It is further configured in this way, The motion vector is used to encode or decode the block of video data. A device configured in such a way. [C14] The device described in C13, wherein the previous search iteration is immediately preceding the current search iteration. [C15] The device according to C13, wherein the processing circuit is further configured to calculate the total minimum cost through the current search iteration based on at least a current subset of candidate positions in order to perform the iterative search process. [C16] In order to terminate the iterative search process early based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, the processing circuit The difference between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration is calculated. The iterative search process is terminated early based on the difference relative to the difference threshold. The device described in C13 is further configured as follows. [C17] The device according to C16, wherein the differential threshold is based on the size of the block. [C18] In order to terminate the iterative search process early based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, the processing circuit The ratio of the minimum cost obtained through the current search iteration to the total minimum cost obtained through the current search iteration is calculated. The iterative search process is terminated early based on the ratio to the ratio threshold. The device described in C13 is further configured as follows. [C19] The device according to C18, wherein the ratio threshold is fixed or based on the size of the block. [C20] In order to terminate the iterative search process early based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, the processing circuit The difference between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration is calculated. The ratio of the minimum cost obtained through the previous search iteration to the difference between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration is calculated. The device according to C13, further configured to terminate the iterative search process early based on the ratio to a ratio threshold. [C21] The device according to C20, wherein the ratio threshold is fixed or based on the size of the block. [C22] In order to terminate the iterative search process early based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, the processing circuit Based on the comparison between the minimum cost obtained through the previous search iteration and the total minimum cost obtained through the current search iteration, and the comparison between the minimum cost obtained through the previous search iteration and the minimum cost of the current search iteration, the iterative search process is terminated early. The device described in C13 is further configured as follows. [C23] The device according to C13, wherein the iterative search process includes three or more iterations. [C24] The device according to C13, wherein the processing circuit is configured to perform bidirectional matching or template matching in order to perform the iterative search process. [C25] The device according to C13, further comprising a display configured to display the video data. [C26] The device according to C13, wherein the device comprises one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box. [C27] The device according to C13, wherein the device comprises a camera configured to capture the video data.

Claims

1. A method for encoding or decoding video data, Determining motion vectors for blocks of video data using a decoder-side motion vector derivation process that includes performing an iterative search process, wherein performing the iterative search process is Determining the minimum cost through previous search iterations, The goal is to update the overall minimum cost through the current search iteration, Terminating the iterative search process early based on a comparison of the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, and hereby terminating the iterative search process early based on the comparison of the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, Calculate the difference between the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, This includes terminating the iterative search process early based on the difference with respect to the difference threshold, This includes determining the motion vector, The process involves encoding or decoding the block of video data using the aforementioned motion vector. Methods that include...

2. The method according to claim 1, wherein the previous search iteration is immediately preceding the current search iteration in the iterative search process.

3. Calculate the overall minimum cost through the current search iteration based on at least the current subset of candidate positions. The method according to claim 1, further comprising:

4. The method according to claim 1, wherein the difference threshold is based on the size of the block.

5. The method according to claim 1, wherein the iterative search process includes three or more iterations.

6. The method according to claim 1, wherein performing the iterative search process includes performing bidirectional matching or template matching.

7. A device for processing video data, A memory configured to store the aforementioned video data, The system comprises a processing circuit, and the processing circuit is The decoder is configured to determine the motion vector for a block of video data using a decoder-side motion vector derivation process that includes an iterative search process, wherein the processing circuit performs the iterative search process, Determining the minimum cost through previous search iterations, The goal is to update the overall minimum cost through the current search iteration, Terminating the iterative search process early based on a comparison of the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, and hereby terminating the iterative search process early based on the comparison of the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, Calculate the difference between the minimum cost obtained through the previous search iteration and the overall minimum cost obtained through the current search iteration, This includes terminating the iterative search process early based on the difference with respect to the difference threshold, It is further configured to do the following: The motion vector is used to encode or decode the block of video data. A device configured in such a way.

8. The device according to claim 7, wherein the previous search iteration is immediately preceding the current search iteration.

9. The device according to claim 7, wherein the processing circuit is further configured to calculate the overall minimum cost through the current search iteration based on at least a current subset of candidate positions in order to perform the iterative search process.

10. The device according to claim 7, wherein the differential threshold is based on the size of the block.

11. The device according to claim 7, wherein the iterative search process includes three or more iterations.

12. The device according to claim 7, wherein the processing circuit is configured to perform bidirectional matching or template matching in order to perform the iterative search process.

13. The device according to claim 7, further comprising a display configured to display the aforementioned video data.

14. The device according to claim 7, wherein the device comprises one or more of the following: a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

15. The device according to claim 7, wherein the device comprises a camera configured to capture the video data.

Citation Information

Patent Citations

  • Frame rate conversion method, frame rate conversion device and frame rate conversion program

    JP2011049633A

  • JPP6914462B

  • Methods and apparatuses for decoder-side motion vector refinement in video coding

    WO2020257365A1