Subblock temporal motion vector prediction for video encoding and decoding

By predicting motion vectors for sub-blocks using spatial and temporal adjacent blocks, the method addresses the challenge of efficiently encoding and decoding high-resolution video data, reducing data requirements and maintaining image quality.

JP7548986B2Active Publication Date: 2024-09-10BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022204234
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-07
Filing Date
2022-12-21
Publication Date
2024-09-10
Estimated Expiration
2040-06-05

AI Technical Summary

Technical Problem

As digital video quality advances to high resolutions like 4K x 2K and 8K x 4K, the amount of video data to be encoded/decoded increases exponentially, posing a challenge for efficient encoding/decoding while maintaining image quality.

Method used

Implementing methods and systems for motion vector prediction of sub-blocks, utilizing spatially and temporally adjacent blocks to derive motion shift vectors and reconstruct sub-block-based temporal motion vectors, reducing the need to encode actual motion vectors in the video bitstream.

Benefits of technology

Significantly reduces the data required to represent motion information in the video bitstream, enhancing encoding efficiency and maintaining image quality by leveraging spatial and temporal correlations of motion information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000029_0000
    Figure 00000029_0000
  • Figure 00000029_0001
    Figure 00000029_0001
  • Figure 00000030_0000
    Figure 00000030_0000
Patent Text Reader

Abstract

A method and system for sub-block motion vector prediction in video data encoding and decoding is provided. [Solution] A video encoder determines a collocated image of a current coding unit, locates spatially neighboring blocks of the current coding unit corresponding to the collocated image, determines a motion shift vector of the current coding unit from one or more motion vectors related to the spatially neighboring blocks in a predetermined fixed order, and reconstructs, for each sub-block among a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the collocated image based on the motion shift vector.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to video data encoding and decoding, and more particularly to a method and system for sub-block motion vector prediction in video data encoding and decoding. [Background technology]

[0002] Various electronic devices such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video game consoles, smartphones, video conferencing devices, and video streaming devices all support digital video. Electronic devices receive, transmit, encode, decode, and store digital video data by implementing video compression / decompression standards defined in the MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), High Efficiency Video Coding (HEVC), and Versatile Video Coding (VVC) standards. Video compression typically involves performing spatial (intraframe) prediction and / or temporal (interframe) prediction to reduce or remove redundancy inherent in the video data. In block-based video coding, a video frame is partitioned into one or more slices, which contain multiple video blocks called coding tree units (CTUs). Each CTU contains one coding unit (CU) or may be recursively partitioned into smaller CUs until a predetermined minimum CU size is reached. Each CU (also called a leaf CU) contains one or more transform units (TUs) and one or more prediction units (PUs). Each CU can be coded in either intra, inter, or IBC mode. Video blocks in an intra-coded (I) slice in a video frame are coded with spatial prediction with respect to reference samples in neighboring blocks in the same video frame. Video blocks in an inter-coded (P or B) slice in a video frame use spatial prediction with respect to reference samples in neighboring blocks in the same video frame or temporal prediction with respect to reference samples in other previous and / or future reference video frames.

[0003] In spatial or temporal prediction based on previously coded reference blocks, e.g., neighboring blocks, a prediction block for the current video block to be coded is obtained. The process of finding the reference block can be realized by a block matching algorithm. Residual data indicating pixel differences between the current block to be coded and the prediction block is called a residual block or a prediction error. Inter-coded blocks are coded according to a motion vector that points to a reference block in the reference frame that generated the prediction block, and the residual block. The process of determining the motion vector is usually called motion estimation. Intra-coded blocks are coded according to an intra prediction mode and a residual block. For further compression, the residual block is transformed from the pixel domain into a transform domain, e.g., the frequency domain, resulting in residual transform coefficients that are then quantified. The initially arranged and quantified transform coefficients are then scanned to generate a one-dimensional vector of transform coefficients, which are then entropy coded into a video bitstream to achieve further compression.

[0004] The encoded video bitstream is then stored in a computer-readable storage medium (e.g., flash memory) and accessed by or transmitted directly to an electronic device having digital video capabilities via wired or wireless communication, and the electronic device then performs video decompression (the opposite process to video compression described above) by, for example, parsing the encoded video bitstream to obtain syntax elements from the bitstream, reconstructing digital video data from the encoded video stream into its original format based at least in part on the syntax elements obtained from the bitstream, and rendering the reconstructed digital video data on a display of the electronic device.

[0005] As the quality of digital video progresses from high definition to 4K x 2K to 8K x 4K, the amount of video data to be encoded / decoded increases exponentially. Efficiently encoding / decoding the video data while maintaining the image quality of the decoded video data is always a challenge. Summary of the Invention

[0006] This application describes implementations related to methods and systems for encoding and decoding video data, and more specifically, for sub-block motion vector prediction.

[0007] According to a first aspect of the present application, there is provided a method for decoding a current coding unit in a current image, comprising: image determining a collocated image of Based on the motion vectors of the spatially neighboring blocks of the current coding unit, the current coding unit in the current image Each of the sub-blocks in and the corresponding Sub-block and for each sub-block of a plurality of sub-blocks in the current coding unit, reconstructing a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector.

[0008] In accordance with a second aspect of the present application, a computing device includes one or more processors, a memory, and a number of programs stored in the memory that, when executed by the one or more processors, cause the computing device to perform the operations described above.

[0009] In accordance with a third aspect of the present application, a non-transitory computer-readable storage medium stores a number of programs for execution by a computing device having one or more processors, the programs, when executed by the one or more processors, causing the computing device to perform the operations set forth above. [Brief description of the drawings]

[0010] To provide a further understanding of the implementations of the present invention, the accompanying drawings, which are incorporated herein as part of the specification, illustrate the above-mentioned implementations and, together with the description, serve to explain the underlying principles, in which like reference numerals indicate like or corresponding parts. [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system according to an embodiment of this disclosure. [Diagram 2] FIG. 2 is a block diagram illustrating an example video encoder according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a block diagram illustrating an example video decoder according to an embodiment of this disclosure. [Figure 4] 4A-4E are block diagrams illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes in accordance with one embodiment of this disclosure. [Diagram 5] FIG. 5 is a block diagram illustrating spatially adjacent and temporally aligned block positions of a current CU to be coded according to an embodiment of the present disclosure. [Figure 6] 6A-6D are block diagrams illustrating steps for deriving a temporal motion vector predictor for a current block or a sub-block temporal motion vector predictor for a sub-block of the current block according to one embodiment of the present disclosure. [Figure 7] FIG. 7 illustrates a block diagram for determining valid regions used in deriving a temporal motion vector predictor and a sub-block temporal motion vector predictor according to an embodiment of the present disclosure. [Figure 8] FIG. 8 is a flowchart illustrating an example process for implementing a technique for a video encoder to derive a sub-block temporal motion vector predictor, according to an embodiment of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments of the present invention will be described in detail with reference to the drawings. In the following detailed description, a number of non-limiting specific details are described in order to facilitate understanding of the concept described in this specification. However, it is obvious to those skilled in the art that the present invention can be embodied in various modifications without departing from the scope and spirit of the claims. For example, the concept described in this specification can be embodied in many kinds of electronic devices having digital video capabilities.

[0012] FIGURE 1 is a block diagram illustrating an example system 10 for encoding and decoding video blocks in parallel, according to one embodiment of the present disclosure. As shown in FIGURE 1, system 10 includes a source device 12 that generates and encodes video data to be decoded by a target device 14. Source device 12 and target device 14 may include any of a wide variety of electronic devices, including desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, displays, digital media players, video game consoles, video streaming devices, and the like. In one embodiment, source device 12 and target device 14 are equipped with wireless communication capabilities.

[0013] In one embodiment, the target device 14 receives the encoded video data to be decoded via a link 16. The link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the target device 14. In one example, the link 16 may include a communication medium capable of allowing the source device 12 to transmit the encoded video data directly to the target device 14 in real time. The encoded video data is modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the target device 14. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission paths. The communication medium may be part of a packet-based 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 devices useful for communication from the source device 12 to the target device 14.

[0014] In another embodiment, the encoded video data is sent from output interface 22 to storage device 32. The encoded video data in storage device 32 is then accessed by target device 14 via input interface 28. Storage device 32 can 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 other suitable digital storage media for storing encoded video data. In another example, storage device 32 may correspond to a file server or other intermediate storage device capable of holding the encoded video data generated by source device 12. Target device 14 can access the stored video data from storage device 32 by streaming or downloading. The file server can be any type of computer capable of storing encoded video data and transmitting the encoded video data to target device 14. Exemplary file servers include a web server (e.g., for a website), an FTP server, a network attached storage (NAS) device, or a local disk drive. Target device 14 may access the encoded video data via any standard data connection, including a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination thereof, suitable for accessing encoded video data stored on a file server. The transmission of the encoded video data from storage device 32 may be a streaming transmission, a download transmission, or a combination thereof.

[0015] As shown in FIG. 1, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Video source 18 may include sources such as a video capture device (e.g., a video camera), a video archive containing previously captured video, a video feed interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as the source video, or a combination thereof. As an example, if video source 18 is a video camera in a security surveillance system, source device 12 and target device 14 may comprise a camera-equipped mobile phone or video telephone. However, the embodiments described herein are applicable to video encoding in general, and to wireless and / or wired applications.

[0016] Video encoder 20 may encode captured, pre-captured, or computer-generated video. The encoded video data may be transmitted directly to target device 14 via output interface 22 of source device 12. Additionally (or alternatively), the encoded video data may be stored in storage device 32 for subsequent access and decoding and / or playback by target device 14 or other devices. Output interface 22 may further include a modem and / or a transmitter.

[0017] Target device 14 includes an input interface 28, a video decoder 30, and a display device 34. Input interface 28 includes a receiver and / or modem and receives encoded video data over link 16. The encoded video data communicated over link 16 or provided to storage device 32 may include many syntax elements generated by video encoder 20 and used in decoding the video data by video decoder 30. These encoded video data may include such syntax elements regardless of whether they are transmitted over a communications medium, stored on a storage medium, or stored on a file server.

[0018] In one embodiment, target device 14 may include a display device 34, which may be an integrated display device or an external display device configured to communicate with target device 14. Display device 34 displays the decoded video data to a user and may include any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0019] Video encoder 20 and video decoder 30 operate in accordance with a professional or industry standard, such as VVC, HEVC, MPEG-4, Part 10, Advanced Video Coding (AVC), or an extension of such a standard. It should be understood that the present application is not limited to a particular video encoding / decoding standard, but is applicable to other video encoding / decoding standards. Video encoder 20 of source device 12 is configured to encode video data in accordance with any of these current or future standards. Similarly, video decoder 30 of destination device 14 is configured to decode video data in accordance with any of these current or future standards.

[0020] The video encoder 20 and the video decoder 30 may each be implemented by any of a variety of suitable encoder 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 implemented in part by software, the electronic device may perform the video encoding / decoding operations described in this disclosure by storing instructions of the software on a suitable non-transitory computer-readable medium and executing the instructions in the hardware by one or more processors. The video encoder 20 and the video decoder 30 may also be included in one or more encoders or decoders integrated as part of a combined encoder / decoder (CODEC) in the respective device.

[0021] 2 is a block diagram illustrating a video encoder 20 according to one embodiment described herein. The video encoder 20 can perform intra-predictive and inter-predictive coding on video blocks within a video frame. Intra-predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or image. Inter-predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or images of a video sequence.

[0022] As shown in FIG. 2, the video encoder 20 includes a video data memory 40, a prediction processor 41, a decoded picture buffer (DPB) 64, an adder 50, a transform processor 52, a quantifier 54, and an entropy coder 56. The prediction processor 41 further includes a motion estimator 42, a motion compensation unit 44, a partition unit 45, an intra prediction processor 46, and an intra block copy (BC) unit 48. In one embodiment, the video encoder 20 also includes an inverse quantifier 58 for video block reconstruction, an inverse transform processor 60, and an adder 62. A deblocking filter (not shown) may be disposed between the adder 62 and the DPB 64 to filter the reconstructed video to remove block artifacts by filtering the boundaries between blocks. In addition to the deblocking filter, an inner ring filter (not shown) may be used to filter the output of the adder 62. Video encoder 20 may be formed in the form of a fixed or programmable hardware unit, or may be partitioned within one or more of the illustrated fixed or programmable hardware units.

[0023] Video data memory 40 stores video data to be encoded by components in video encoder 20. The video data in video data memory 40 may be obtained, for example, from video source 18. DPB 64 is a buffer that stores reference video data used in encoding video data by video encoder 20 (e.g., in intra-prediction or inter-prediction coding modes). Video data memory 40 and DPB 64 may be formed of any of a variety of memory devices. In various examples, video data memory 40 may be on-chip with other components in video encoder 20 or off-chip relative to those components.

[0024] As shown in FIG. 2, after receiving the video data, a partition unit 45 in the prediction processing unit 41 partitions the video data into video blocks. This partitioning may include partitioning the video frame into slices, tiles or other larger coding units (CUs) according to a predetermined partition structure, such as a quad-tree structure, for the video data. The video frame may be partitioned into a number of video blocks (or sets of video blocks called tiles). The prediction processing unit 41 selects one of a number of possible predictive coding modes for a current video block, such as selecting one of a number of intra-predictive coding modes or one of a number of inter-predictive coding modes based on an error result (e.g., a code rate and a distortion level). The prediction processing unit 41 then provides the resulting intra- or inter-predictive coding block to an adder 50 to generate a residual block and reconstruct the coding block to be used as part of a subsequent reference frame. The prediction processing unit 41 also provides syntax elements, such as motion vectors, intra-mode indicators, partition information and other syntax information, to an entropy coding unit 56.

[0025] An intra prediction unit 46 in prediction unit 41 may perform spatial prediction by performing intra prediction coding of the current video block relative to one or more neighboring blocks in the same frame as the current block to be coded, to select a suitable intra prediction coding mode for the current video block. A motion estimation unit 42 and a motion compensation unit 44 in prediction unit 41 perform temporal prediction by performing inter prediction coding of the current video block relative to one or more predictive blocks in one or more reference frames. Video encoder 20 may perform multiple passes of coding processes to, for example, select an appropriate coding mode for each block in the video data.

[0026] In one embodiment, motion estimation unit 42 determines the inter prediction mode by generating a motion vector for a current video frame indicating the displacement of a prediction unit (PU) of a video block in the current video frame relative to a prediction block in a reference video frame according to a predetermined pattern of a sequence of video frames. Motion estimation performed by motion estimation unit 42 is a process of generating a motion vector that estimates the motion of a video block. The motion vector may indicate, for example, the displacement of a PU of a video block in a current video frame (or other coding unit) relative to a prediction block in a reference frame (or other coding unit) relative to a current video block being coded in a current video frame or image. The predetermined pattern of the sequence may specify a video frame in the sequence as a P frame or a B frame. Intra BC unit 48 may determine a vector, e.g., a block vector, for intra BC coding in a manner similar to the motion vector determination for inter prediction by motion estimation unit 42, or may utilize motion estimation unit 42 to determine the block vector.

[0027] A prediction block is a block in a reference frame that closely matches a PU of a video block to be encoded in terms of pixel difference, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metric. In one embodiment, video encoder 20 may calculate values ​​of sub-integer pixel locations of a reference frame stored in DPB 64. For example, video encoder 20 may interpolate values ​​of quarter pixel locations, eighth pixel locations, or other fractional pixel locations of a reference frame. Thus, motion estimation unit 42 may perform a motion search process for all pixel locations and fractional pixel locations to output motion vectors with fractional pixel accuracy.

[0028] Motion estimation unit 42 calculates a motion vector for the PU by comparing the position of the PU of the video block in the inter-predictive coded frame with the position of the predictive block of a reference frame selected from a first reference frame list (List0) or a second reference frame list (List1), each of which identifies one or more reference frames stored in DPB 64. Motion estimation unit 42 sends the calculated motion vector to motion compensation unit 44 and then to entropy coding unit 56.

[0029] The motion compensation performed by motion compensation unit 44 may include obtaining or generating a predictive block based on the motion vector determined by motion estimation unit 42. When motion compensation unit 44 receives a motion vector for the PU of the current video block, it locates the predictive block to which the motion vector points in one of the reference frame lists, finds the predictive block in DPB 64, and forwards the predictive block to summer 50. Summer 50 then subtracts pixel values ​​of the predictive block provided by motion compensation unit 44 from pixel values ​​of the current video block being coded to form a residual video block of pixel difference values. The pixel difference values ​​forming the residual video block may include luma difference components, chroma difference components, or both. Motion compensation unit 44 may also generate syntax elements for the video block of the video frame, which may be used by video decoder 30 in decoding the video block of the video frame. The syntax elements may include, for example, a syntax element defining a motion vector for identifying the predictive block, any flags indicating a prediction mode, or any other syntax information described herein. It should be noted that, although shown separately for conceptual purposes, motion estimator 42 and motion compensator 44 may be highly integrated.

[0030] In one embodiment, the intra BC unit 48 can generate vectors and obtain a prediction block in a manner similar to that described above with respect to the motion estimation unit 42 and the motion compensation unit 44, but where the prediction block is in the same frame as the current block being coded, and the vectors are called block vectors instead of motion vectors. In particular, the intra BC unit 48 can determine an intra prediction mode to be used in coding the current block. In one example, the intra BC unit 48 can code the current block using various intra prediction modes, e.g., in separate coding passes, and test their performances by rate-distortion analysis. The intra BC unit 48 then selects and uses one suitable intra prediction from the various tested intra prediction modes to generate a corresponding intra mode indicator. For example, the intra BC unit 48 can calculate rate-distortion values ​​of the various tested intra prediction modes by rate-distortion analysis, and select and use the intra prediction mode with the best rate-distortion characteristics from the tested modes as the suitable intra prediction mode. A rate-distortion analysis typically determines the amount of distortion (or error) between a block being coded and the original uncoded block that was coded to generate the coded block, and the bitrate (i.e., number of bits) used to generate the coded block. The intra BC unit 48 may calculate a ratio of distortions and rates for various coded blocks to determine which intra prediction mode exhibits the optimal rate-distortion value for the block.

[0031] In another example, the intra BC unit 48 may use all or a portion of the motion estimation unit 42 and motion compensation unit 44 to perform functions related to intra BC prediction in accordance with embodiments described herein. In either case, for intra block copying, the predictive block is deemed to closely match the block being coded in terms of pixel differences, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics, and identification of the predictive block may include calculation of values ​​at sub-integer pixel positions.

[0032] Video encoder 20 may generate a residual video block by subtracting pixel values ​​of the predictive block from pixel values ​​of the current video block being encoded to generate pixel difference values, regardless of whether the predictive block is from the same frame based on intra prediction or a different frame based on inter prediction. The pixel difference values ​​that form the residual video block may include both luma and chroma component differences.

[0033] The intra prediction unit 46 may perform intra prediction on the current video block, instead of the inter prediction performed by the motion estimation unit 42 and the motion compensation unit 44 described above, or the intra block copy prediction performed by the intra BC unit 48. In particular, the intra prediction unit 46 may determine one intra prediction mode to encode the current block. To achieve this, the intra prediction unit 46 may encode the current block using various intra prediction modes, for example, in separate pass encoding processes, and the intra prediction unit 46 (or in one example, a mode selection unit) may select and use one appropriate intra prediction mode from the tested intra prediction modes. The intra prediction unit 46 may provide information indicating the selected intra prediction mode for this block to the entropy coding unit 56. The entropy coding unit 56 may encode the information indicating the selected intra prediction mode into a bitstream.

[0034] After prediction processor 41 determines a predictive block for the current video block, using inter- or intra-prediction, summer 50 subtracts the predictive block from the current video block to generate a residual video block. The residual video data in the residual block is provided in one or more transform units (TUs) to transform processor 52. Transform processor 52 transforms the residual video data into residual transform coefficients, such as via a discrete cosine transform (DCT) or a conceptually similar transform.

[0035] The transform processor 52 transmits the resulting transform coefficients to a quantifier 54, which quantifies these transform coefficients to further reduce the bit rate. The quantification process can reduce the bit depth associated with some or all of these coefficients. The degree of quantification can be changed by adjusting a quantification parameter. Then, in one example, the quantifier 54 can perform a scan on a matrix containing the quantified transform coefficients. This scan may be performed by an entropy coder 56.

[0036] Following quantification, entropy coding unit 56 entropy codes the quantified transform coefficients into a video bitstream, e.g., by context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partition entropy (PIPE) coding, or another entropy coding method or technique. The coded bitstream may then be transmitted to video decoder 30 or archived to storage device 32 for subsequent transmission to video decoder 30 or retrieval by video decoder 30. Entropy coding unit 56 may also entropy code motion vectors and other syntax elements for the current video frame being coded.

[0037] Inverse quantification unit 58 and inverse transform unit 60 reconstruct the residual video block in the pixel domain by inverse quantification and inverse transformation, respectively, to generate a reference block used to predict other video blocks. As discussed above, motion compensation unit 44 may generate a motion compensated prediction block from one or more reference blocks of a frame stored in DPB 64. Motion compensation unit 44 may also apply one or more interpolation filters to the prediction block to calculate sub-integer pixel values ​​used for motion estimation.

[0038] Summer 62 adds the reconstructed residual block to the motion compensated prediction block generated by motion compensation unit 44 to generate a reference block that is stored in DPB 64. This reference block can then be used as a prediction block by intra BC unit 48, motion estimation unit 42, and motion compensation unit 44 to inter predict another video block in a subsequent video frame.

[0039] 3 is a block diagram illustrating an exemplary video decoder 30 according to an embodiment of the present application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantification unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 includes a motion compensation unit 82, an intra frame ... prediction 2. The video decoder 30 further comprises an intra prediction unit 84 and an intra BC unit 85. The video decoder 30 may perform a decoding process that is roughly the inverse of the encoding process described above for the video encoder 20 with reference to FIG. 2. For example, the motion compensation unit 82 may generate prediction data based on the motion vectors received from the entropy decoding unit 80, and the intra prediction unit 84 may generate prediction data based on the intra prediction mode indicator received from the entropy decoding unit 80.

[0040] In some examples, a single component in video decoder 30 may be responsible for performing the implementation of the present disclosure. Also, in some examples, the implementation of the present disclosure may be partitioned into one or more components in video decoder 30. For example, intra BC unit 85 may implement the implementation of the present disclosure alone, or may be implemented in conjunction with motion compensation unit 82, intra BC unit 84, or other components. prediction The intra BC unit 85 may be implemented in combination with other components in the video decoder 30, such as the prediction processing unit 81, such as the motion compensation unit 82, and the entropy decoding unit 84. In some examples, the video decoder 30 does not include the intra BC unit 85, and the functions of the intra BC unit 85 may be implemented by other components in the prediction processing unit 81, such as the motion compensation unit 82.

[0041] The video data memory 79 may store video data, such as an encoded video bitstream, that is decoded by other components in the video decoder 30. The video data stored in the video data memory 79 may be obtained from a local video source, such as a storage device 32 or a camera, for example, by wired or wireless network communication of the video data or by access to a physical data storage medium (e.g., a flash drive or a hard disk). The video data memory 79 may include a coded picture buffer (CPB) that stores coded video data from the coded video bitstream. A decoded picture buffer (DPB) 92 in the video decoder 30 stores reference video data used for decoding the video data by the video decoder 30 (e.g., in an intra-prediction or inter-prediction coding mode). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as dynamic random access memories (DRAMs), including synchronous DRAMs (SDRAMs), magnetoresistive RAMs (MRAMs), resistive RAMs (RRAMs), or other types of memory devices. For convenience of explanation, the video data memory 79 and the DPB 92 are illustrated in FIG. 3 as two separate components in the video decoder 30. However, it will be apparent to one skilled in the art that video data memory 79 and DPB 92 may be provided by the same memory device or by separate memory devices. In one example, video data memory 79 may be on-chip with other components in video decoder 30 or may be off-chip relative to those components.

[0042] In the decoding process, video decoder 30 receives an encoded video bitstream indicating video blocks of encoded video frames and associated syntax elements. Video decoder 30 may receive syntax elements at the video frame level and / or the video block level. An entropy decoding unit 80 of video decoder 30 entropy decodes this bitstream to generate quantified coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements. Entropy decoding unit 80 then forwards the motion vectors and other syntax elements to a prediction processing unit 81.

[0043] When a video frame is coded as an intra-prediction coded (I) frame, or used to intra-code predictive blocks in other types of frames, the intra prediction in the prediction processor 81 is prediction Unit 84 may generate prediction data for video blocks of the current video frame based on the signaled intra-prediction mode and reference data from previously decoded blocks of the current frame.

[0044] If the video frame is coded into an inter-predictive (i.e., B or P) frame, a motion compensation unit 82 in the prediction processing unit 81 may generate one or more predictive blocks for a video block of the current video frame based on the motion vectors and other syntax elements received from the entropy decoding unit 80. Each predictive block is generated from a reference frame in one of the reference frame lists. Video decoder 30 may construct these reference frame lists, List0 and List1, using a default construction technique based on the reference frames stored in DPB 92.

[0045] In one example, if the video block was coded according to the intra BC mode described herein, intra BC unit 85 in prediction processor 81 generates a predictive block for the current video block based on the block vectors and other syntax elements received from entropy decoding unit 80. This predictive block may be in the same reconstructed region of the image as the current video block as determined by video encoder 20.

[0046] Motion compensation unit 82 and / or intra BC unit 85 determine prediction information for video blocks of the current video frame by analyzing the motion vectors and other syntax elements, and use the prediction information to generate a predictive block for the current video block being decoded. For example, motion compensation unit 82 uses some of the received syntax elements to determine a prediction mode (e.g., intra prediction or inter prediction) for encoding video blocks of the video frame, an inter prediction frame type (e.g., B or P), structural information of one or more reference frame lists for the frame, a motion vector for each inter predictive coded video block of the frame, an inter prediction state for each inter predictive coded video block of the frame, and other information for decoding video blocks in the current video frame.

[0047] Similarly, intra-BC unit 85 can use some of the received syntax elements, such as flags, to determine that the current video block is predicted in intra-BC mode, structural information regarding which video blocks in this frame are in the reconstruction domain and should be stored in DPB 92, block vectors for each intra-BC predicted video block in this frame, intra-BC prediction states for each intra-BC predicted video block in this frame, and other information for decoding video blocks in the current video frame.

[0048] Motion compensation unit 82 may also perform interpolation using an interpolation filter used by video encoder 20 in encoding the video block to calculate sub-integer pixel interpolated values ​​of the reference block. In this case, motion compensation unit 82 may determine the interpolation filter used by video encoder 20 from the received syntax element and use this interpolation filter to generate the prediction block.

[0049] An inverse quantification unit 86 inverse quantifies the quantification transform coefficients provided in the bitstream and entropy decoded by entropy decoding unit 80, using the same quantification parameters calculated for each video block in the video frame by video encoder 20 to determine the degree of quantification. An inverse transform processor 88 applies an inverse transform, such as an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to these transform coefficients to reconstruct residual blocks in the pixel domain.

[0050] After motion compensation unit 82 or intra BC unit 85 generates a prediction block for the current video block based on the vectors and other syntax elements, summer 90 reconstructs a decoded video block for the current video block by adding the residual block from inverse transform unit 88 and the corresponding prediction block generated by motion compensation unit 82 and intra BC unit 85. An in-loop filter (not shown) may be disposed between summer 90 and DPB 92 to further process the decoded video block. The decoded video blocks in a given frame are then stored in DPB 92, which stores reference frames used for future motion compensation of the next video block. DPB 92, or a memory device separate from DPB 92, may also store decoded video for subsequent display on a display device, such as display device 34 of FIG. 1.

[0051] In a typical video coding process, a video sequence usually contains an ordered set of frames or images. Each frame may contain three sample matrices, denoted SL, SCb, and SCr. SL is a two-dimensional matrix of luma samples. SCb is a two-dimensional matrix of Cb chroma samples. SCr is a two-dimensional matrix of Cr chroma samples. In another example, a frame may be monochrome, in which case it contains only one two-dimensional matrix of luma samples.

[0052] As shown in FIG. 4A, the video encoder 20 (or, more specifically, the partitioner 45) generates a coded representation of a frame by first partitioning the frame into a set of coding tree units. A video frame includes an integer number of CTUs ordered consecutively from left to right and top to bottom in raster scan order. Each CTU is the largest logical coding unit, and its width and height are signaled by the video encoder 20 in the sequence parameter set such that all CTUs in a video sequence have the same size, which is one of 128×128, 64×64, 32×32, and 16×16. Note that the present application is not necessarily limited to a particular size. As shown in FIG. 4B, each CTU may include one coding tree block (CTB) of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree block. The syntax elements describe the attributes of different types of units of coding blocks of pixels and how the video sequence is reconstructed in the video decoder 30, including, for example, inter or intra prediction, intra prediction mode, motion vectors, and other parameters. For a monochrome image or an image with three separate color planes, one CTU may include a single coding tree block and syntax elements used to code samples of this coding tree block. A coding tree block may be an N×N sample block.

[0053] To achieve better performance, the video encoder 20 may recursively perform tree partitioning, such as binary tree partitioning, quad tree partitioning, or a combination thereof, on the coding tree block of the CTU to partition the CTU into smaller coding units (CUs). To achieve better performance, the video encoder 20 may recursively perform tree partitioning, such as binary tree partitioning, ternary tree partitioning, quad tree partitioning, or a combination thereof, on the coding tree block of the CTU to partition the CTU into smaller coding units (CUs). As shown in FIG. 4C, the 64×64 CTU 400 is first partitioned into four smaller CUs with a 32×32 block size. Of these four smaller CUs, the CU 410 and the CU 420 are each partitioned into four CUs with a 16×16 block size. The two CUs 430 and 440 with a 16×16 block size are further partitioned into four CUs with an 8×8 block size, respectively. FIG. 4D shows a quadtree data structure representing the final result of the partition process of the CTU 400 shown in FIG. 4C, where each leaf node of the quadtree corresponds to one CU of each size from 32×32 to 8×8. Like the CTU shown in FIG. 4B, each CU may include one coding block (CB) of luma samples of the same size of the frame, two corresponding coding blocks of chroma samples, and syntax elements used to code the samples of these coding blocks. For monochrome images or images with three separate color planes, one CU may include a single coding block and syntax structures used to code the samples of this coding block. It is noted that the quadtree partitioning shown in FIG. 4C and FIG. 4D is only exemplary, and one CTU can be divided into CUs suitable for various local characteristics based on quad / ternary / binary tree partitioning. In the multi-type tree structure, one CTU is divided according to the quadtree structure, and each quadtree leaf CU can be further divided according to the binary tree and ternary tree structures. As shown in FIG. 4E, there are five possible partition types of a coding block having width W and height H: quad partition, horizontal binary partition, vertical binary partition, horizontal ternary partition, and vertical ternary partition.

[0054] In an embodiment, video encoder 20 may further partition the coding block of a CU into one or more M×N prediction blocks (PBs). A prediction block is a rectangular (square or non-square) sample block to which the same prediction (inter- or intra-prediction) is applied. A prediction unit (PU) of a CU may include one prediction block of luma samples, two corresponding prediction blocks of chroma samples, and syntax elements used to predict these prediction blocks. In a monochrome image or an image with three separate color planes, a PU may include a single prediction block and syntax structures used to predict this prediction block. Video encoder 20 may generate predictive luma blocks, predictive Cb blocks, and predictive Cr blocks for the luma prediction block, Cb prediction block, and Cr prediction block of each PU of the CU.

[0055] Video encoder 20 may generate these predictive blocks for a PU by intra prediction or inter prediction. If video encoder 20 generates predictive blocks for a PU by intra prediction, it may generate predictive blocks for the PU based on decoded samples of a frame associated with the PU. If video encoder 20 generates predictive blocks for a PU by inter prediction, it may generate predictive blocks for the PU based on decoded samples of one or more frames other than the frame associated with the PU.

[0056] After generating a predictive luma block, a predictive Cb block, and a predictive Cr block of one or more PUs of a CU, the video encoder 20 generates a luma residual block of the CU by subtracting the predictive luma block of the CU from the original luma coding block of the CU, where each sample in the luma residual block of the CU indicates a difference between a luma sample in the predictive luma block of one of the predictive luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Similarly, the video encoder 20 generates a Cb residual block and a Cr residual block of the CU, where each sample in the Cb residual block of the CU indicates a difference between a Cb sample in the predictive Cb block of one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU, and each sample in the Cr residual block of the CU indicates a difference between a Cr sample in the predictive Cr block of one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.

[0057] Further, as shown in FIG. 4C, video encoder 20 may decompose the luma residual block, Cb residual block, and Cr residual block of a CU into one or more luma transform blocks, Cb transform blocks, and Cr transform blocks by a quadtree partition. A transform block is a rectangular (square or non-square) block of samples to which the same transform is applied. A transform unit (TU) of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements used to transform the transform block samples. Thus, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In an example, the luma transform block associated with a TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome image or an image with three separate color planes, a TU may include a single transform block and a syntax structure used to transform samples of this transform block.

[0058] Video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block of the TU. The coefficient block may be a two-dimensional matrix of transform coefficients. The transform coefficients may be scalar quantities. Video encoder 20 may apply one or more transforms to a Cb transform block of a TU to generate a Cb coefficient block of the TU. Video encoder 20 may apply one or more transforms to a Cr transform block of a TU to generate a Cr coefficient block of the TU.

[0059] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), the video encoder 20 may quantify the coefficient block. Quantification generally refers to quantifying transform coefficients to possibly reduce the amount of data representing these transform coefficients to achieve further compression. After quantifying the coefficient block, the video encoder 20 may entropy code syntax elements representing the quantified transform coefficients. For example, the video encoder 20 may perform context-adaptive binary arithmetic coding (CABAC) on the syntax elements representing the quantified transform coefficients. Finally, the video encoder 20 outputs a bitstream including a bit sequence constituting a representation of the encoded frame and associated data to be stored in the storage device 32 or transmitted to the target device 14.

[0060] After receiving the bitstream generated by the video encoder 20, the video decoder 30 parses the bitstream to obtain syntax elements from the bitstream. The video decoder 30 can reconstruct a frame of video data based on at least a portion of the syntax elements obtained from the bitstream. The process of reconstructing the video data is generally the reverse of the encoding process performed by the video encoder 20. For example, the video decoder 30 can perform an inverse transform on a coefficient block associated with a TU of the current CU to reconstruct a residual block associated with the TU of the current CU. The video decoder 30 also reconstructs the coding block of the current CU by adding a sample of a prediction block for a PU of the current CU and a corresponding sample of a transform block of the TU of the current CU. After the coding block of each CU of a frame is reconstructed, the video decoder 30 can reconstruct the frame.

[0061] As mentioned above, video coding mainly uses two modes, intra-frame prediction (or intra prediction) and inter-frame prediction (or inter prediction), to achieve video compression. Note that IBC can be regarded as intra-frame prediction or the third mode. Comparing the two modes, inter-frame prediction contributes more to coding efficiency than intra-frame prediction because it uses a motion vector to predict a current video block from a reference video block.

[0062] However, with improvements in video data capture technology and finer video block sizes to preserve details in the video data, the amount of data required to represent the motion vectors for the current frame has also increased significantly. One way to solve this problem is to take advantage of the fact that a set of adjacent CUs in the spatial and temporal domains not only contain the same video data for prediction purposes, but also have the same motion vectors between these adjacent CUs. Thus, by exploring the spatial and temporal correlation of the motion information of spatially adjacent CUs and / or temporally co-located CUs, it is possible to use the motion information of the spatially adjacent CUs and / or temporally co-located CUs as an approximation of the motion information (e.g., motion vector) of the current CU, also known as the "motion vector predictor" (MVP).

[0063] Instead of encoding the actual motion vector of the current CU determined by the motion estimation unit 42 described above with reference to Fig. 2 into the video bitstream, a motion vector difference (MVD) of the current CU is generated by subtracting the motion vector predictor of the current CU from the actual motion vector of the current CU. This eliminates the need to encode the motion vector determined by the motion estimation unit 42 for each CU of the frame into the video bitstream, and can significantly reduce the amount of data for representing motion information in the video bitstream.

[0064] Similar to the process of selecting a predictive block from within a reference frame during inter-frame prediction of a coding block, the video encoder 20 and the video decoder 30 need to construct a motion vector candidate list (also called a "merge list") using potential candidate motion vectors associated with spatially neighboring CUs and / or temporally co-located CUs of the current CU according to a set of rules, and select one item from these motion vector candidate lists to be the motion vector predictor of the current CU. Thus, there is no need to transmit the motion vector candidate list itself between the video encoder 20 and the video decoder 30, and the index of the selected motion vector predictor in the motion vector candidate list is sufficient for the video encoder 20 and the video decoder 30 to encode and decode the current CU using the same motion vector predictor in the motion vector candidate list.

[0065] In an embodiment, each inter-predicted CU has three motion vector prediction modes, including inter ("advanced motion vector prediction" (AMVP)), skip, and merge, for constructing a motion vector candidate list. In each mode, one or more motion vector candidates can be added to the motion vector candidate list according to the algorithm described below. Eventually, one of those motion vector candidates in the candidate list is used as an optimal motion vector predictor for the inter-predicted CU that is encoded into the video bitstream by the video encoder 20 or decoded from the video bitstream by the video decoder 30. To find the optimal motion vector predictor from the candidate list, a motion vector competition (MVC) scheme is introduced to select one motion vector from a predefined motion vector candidate set, i.e., the motion vector candidate list, which includes spatial and temporal motion vector candidates.

[0066] In addition to being derived from spatially adjacent or temporally co-located CUs, motion vector predictor candidates can also be derived from a so-called "historical motion vector prediction" (HMVP) table. The HMVP table contains a predefined number of motion vector predictors, each of which has been used to encode / decode a given CU in the same row of a CTU (or the same CTU). Due to the spatial / temporal proximity of these CUs, it is highly likely that one of the motion vector predictors in the HMVP table will be reused to encode / decode a different CU in the same row of a CTU. Therefore, by using the HMVP table in the process of constructing a motion vector candidate list, higher coding efficiency can be achieved.

[0067] In an embodiment, the HMVP table has a fixed length (e.g., 5) and is managed in a first-in-first-out (FIFO) manner. For example, when decoding one inter-coded block of a CU, a motion vector is reconstructed for this CU. The HMVP table is updated on the fly with the reconstructed motion vector, since the reconstructed motion vector may be a motion vector predictor for a subsequent CU. In updating the HMVP table, there are two situations: (i) the reconstructed motion vector is different from one of the existing motion vectors in the HMVP table, or (ii) the reconstructed motion vector is the same as one of the existing motion vectors in the HMVP table. In the first situation, if the HMVP table is less than, the reconstructed motion vector is added to the HMVP table as the latest one. If the HMVP table is already full, the oldest motion vector in the HMVP table needs to be deleted from the HMVP table first before the reconstructed motion vector is added as the latest one. In other words, in this case, the HMVP table is similar to a FIFO buffer, where motion information related to another block that is at the beginning of the FIFO buffer and previously inter-coded is removed from the buffer, and the reconstructed motion vector is added to the end of the FIFO buffer as the latest entry in the HMVP table. In the second situation, before the reconstructed motion vector is added to the HMVP table as the latest, an existing motion vector in the HMVP table that is substantially the same as the reconstructed motion vector is deleted from the HMVP table. If the HMVP table is also maintained in the manner of a FIFO buffer, the next motion vector predictor of the same motion vector in the HMVP table is moved forward by one entry to occupy the space left by the deleted motion vector, and the reconstructed motion vector is added to the end of the FIFO buffer as the latest entry in the HMVP table.

[0068] The motion vectors in the HMVP table can be added to the motion vector candidate list in different prediction modes such as AMVP, merge, skip, etc. It has been found that the motion information of previously inter-coded blocks stored in the HMVP table can be used for more efficient motion vector prediction even if they are not adjacent to the current block.

[0069] After an MVP candidate is selected in a given motion vector candidate set for the current CU, video encoder 20 generates one or more syntax elements for the corresponding MVP candidate and encodes them into the video bitstream so that video decoder 30 can use the syntax elements to search for the MVP candidate from the video bitstream. Depending on the specific mode for constructing the motion vector candidate set, different modes (e.g., AMVP, merge, skip, etc.) have different syntax element sets. In the case of AMVP mode, the syntax elements include an inter prediction indicator (List0, List1, or bi-prediction), a reference index, a motion vector candidate index, a motion vector prediction residual signal, etc. In the case of skip and merge modes, only the merge index is encoded into the bitstream because the current CU inherits other syntax elements, such as the inter prediction indicator, the reference index, and the motion vector, from the neighboring CU pointed to by the encoded merge index. In the case of a skip-coded CU, the motion vector prediction residual signal is also omitted.

[0070] FIG. 5A is a block diagram illustrating spatially adjacent and temporally co-located block positions of a current CU to be encoded / decoded according to an embodiment of the present disclosure. In a given mode, a motion vector prediction (MVP) candidate list is constructed by first checking the availability of motion vectors associated with the spatially left adjacent block position and the upper adjacent block position, the availability of motion vectors associated with the temporally co-located block position, and then checking the availability of motion vectors in the HMVP table. The process of constructing the MVP candidate list includes removing some redundant MVP candidates from the candidate list and adding zero-valued motion vectors as necessary so that the candidate list has a fixed length (note that the fixed length may vary depending on the mode). After constructing the MVP candidate list, video encoder 20 can select an optimal motion vector predictor from the candidate list and encode a corresponding index pointing to the selected candidate into the video bitstream.

[0071] In one example, a candidate list (also called a merge candidate list) can be constructed by including the following five types of candidates in the following order: 1. Spatial MVP (i.e., motion vector predictor) from spatially neighboring CUs 2. Temporal MVP from Colocated CU 3. MVP based on history from FIFO table 4. Pairwise average MVP 5. Zero MV

[0072] In an embodiment, the size of the candidate list is signaled in the slice header, and the maximum allowed size of the candidate list is 6 (e.g., for VVC). For each CU code in the merge mode, the index of the best merge candidate is coded by truncated unary binarization (TU). The first bin of the merge index is coded with the context, while bypass coding is used for the other bins. In the following context of this disclosure, this extended merge mode is also called the normal merge mode, since the concept is the same as the merge mode used for HEVC.

[0073] Using FIG. 5A as an example and assuming the candidate list has a fixed length of 2, the motion vector predictor (MVP) candidate list for the current CU can be constructed in AMVP mode by performing the following steps in order: 1) Selection of MVP candidates from spatially adjacent CUs a) Derive at most one non-scaled MVP candidate from one of the two spatially adjacent CUs on the left starting at A0 and ending at A1; b) if there is no non-scale MVP candidate available to the left in the previous step, derive at most one scale MVP candidate from one of the two spatially adjacent CUs to the left starting at A0 and ending at A1; c) Derive at most one non-scaled MVP candidate from one of the three upper spatially adjacent CUs starting at B0, through B1, and ending at B2; d) if both A0 and A1 are unavailable or if they are both coded in intra mode, derive at most one scale MVP candidate from one of the top three spatially adjacent CUs starting from B0 through B1 and ending at B2; 2) If two MVP candidates are found in the previous step and they are identical, remove one of the two candidates from this MVP candidate list; 3) Selection of MVP candidates from temporally collocated CUs a) if the MVP candidate list does not contain two MVP candidates after the previous step, derive at most one MVP candidate from a temporally collocated CU (e.g., T0); 4) Select MVP candidates from the HMVP table a) if the MVP candidate list does not contain two MVP candidates after the previous step, derive up to two historical MVPs from the HMVP table; 5) After the previous step, if the MVP candidate list does not contain two MVP candidates, add up to two zero-valued MVPs to the MVP candidate list.

[0074] Since there are only two candidates in the constructed AMVP mode MVP candidate list above, a relevant syntax element, such as a binary flag, is encoded into the bitstream to indicate which of the two MVP candidates in the candidate list is currently used to decode the CU.

[0075] In an embodiment, in skip mode or merge mode, the MVP candidate list for the current CU may be constructed by sequentially performing a series of steps as described above. Note that one special type of merge candidate, called a "pairwise merge candidate", is also included in the MVP candidate list for skip mode or merge mode. The pairwise merge candidate is generated by averaging the MVs of two previously derived merge mode motion vector candidates. The size of the merge MVP candidate list (e.g., 1 to 6) is signaled in the slice header of the current CU. For each CU in merge mode, the index of the best merge candidate is decoded by truncated unary binarization (TU). The first bin of the merge index is coded with the context, and bypass coding is used for the other bins.

[0076] As mentioned above, the MVP according to history can be added to the AMVP mode MVP candidate list or the merged MVP candidate list after the spatial MVP and the temporal MVP. The motion information of the previously inter-coded CU is stored in the HMVP table and used as the MVP candidate for the current CU. The HMVP table is maintained during the encoding / decoding process. Every time there is a non-subblock inter-coded CU, the associated motion vector information is added to the last entry of the HMVP table as a new candidate, while the motion vector information stored in the first entry of the HMVP table is deleted therefrom (if the HMVP table is already full and there is no identical copy of the associated motion vector information in this table). Alternatively, the identical copy of the associated motion vector information may be deleted from this table before the associated motion vector information is added to the last entry of the HMVP table.

[0077] As mentioned above, intra block copy (IBC) can significantly improve the coding efficiency of screen content material. Since the IBC mode is implemented as a block-level coding mode, the video encoder 20 performs block matching (BM) to find the optimal block vector for each CU, where the block vector is to indicate the displacement of the current block to an already reconstructed reference block in the current image. IBC mode is treated as a third prediction mode other than the intra prediction mode or the inter prediction mode.

[0078] At the CU level, the IBC mode can be signaled as IBC AMVP mode or IBC skip / merge mode as follows. -IBC AMVP mode: The block vector difference (BVD) between the actual block vector of a CU and the block vector predictor of this CU selected from the block vector candidates of this CU is coded in the same way as the coding for the motion vector difference in the AMVP mode described above. In the block vector prediction method (when IBC coded), two block vector candidates are used as predictors, one from the left neighbor and one from the upper neighbor. If neither neighbor is available, the default block vector is used as the block vector predictor. A binary flag is signaled to indicate the block vector predictor index. The IBC AMVP candidate list includes spatial candidates and HMVP candidates. -IBC skip / merge mode: The merge candidate index is to indicate which block vector candidate in the merge candidate list (also called "merge list") from neighboring IBC coded blocks is used to predict the block vector for the current block. The IBC merge candidate list includes spatial candidates, HMVP candidates, and pairwise candidates.

[0079] 6A-6D are block diagrams illustrating steps for deriving a temporal motion vector predictor (TMVP) of a current block or a sub-block temporal motion vector predictor (SbTMVP) of a sub-block according to one embodiment of the present disclosure.

[0080] In an embodiment, as described with respect to FIG. 5, only one temporal motion vector predictor (TMVP) candidate is added to the merge candidate list. A first flag (sps_temporal_mvp_enabled_flag) is signaled in the sequence parameter set (SPS) of the picture, and a second flag (slice_temporal_mvp_enabled_flag) is signaled in the slice header to indicate whether the TMVP candidate is enabled or disabled. In particular, in the derivation of this temporal merge candidate, a scale motion vector is derived from the MV of the co-located picture, which is a previously encoded and decoded picture in the reference picture list. In the derivation of this temporal motion candidate, an explicit flag (co-located_from_l0_flag) in the slice header is first sent to the decoder to indicate whether the co-located picture is selected from the first reference frame list (List0) or the second reference frame list (List1). A collocated reference index (co-located_ref_idx) is further transmitted to indicate which image in the used list is selected as the collocated image for deriving the temporal motion candidates. The List0 (also called L0) and List1 (also called L1) MVs of the temporal motion candidates are derived separately in a predefined order for the MVs of different lists in the collocated block of the collocated image according to the following pseudocode: [Table 1]

[0081] The scaled motion vector 602 of the temporal merge candidate is obtained by scaling from the motion vector of the selected co-located block using the POC distance tb 604 and the POC distance td 606, as shown by the dotted line in FIG. 6A. Here, tb is defined as the POC difference between the reference image (e.g., current reference 608) of the current image and the current image (e.g., current image 610), and td is defined as the POC difference between the reference image (co-located reference 614) of the co-located image and the co-located image (co-located image 612). The reference image index of the temporal merge candidate is set to zero. The practical realization of the scale process is described in the HEVC specification. For B slices, two motion vectors, one for reference image List0 and another for reference image List1, are obtained and combined to create a bi-predictive merge candidate.

[0082] In a collocated block (e.g., collocated block 620) belonging to a reference frame, the location of the temporal candidate is selected between candidates C0 and C1, as shown in Fig. 6B. If the block at location C0 is unavailable, intra-coded, or outside the current CTU, location C1 is used. Otherwise, location C0 is used to derive the temporal merge candidate.

[0083] Some encoding / decoding standards (e.g., VVC Test Model 1) support the sub-block based temporal motion vector predictor (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion fields of the co-located pictures to improve the motion vector prediction and merge mode of the CU in the current picture. In SbTMVP, the same co-located pictures used in TMVP are used. SbTMVP differs from TMVP in two main ways: 1. TMVP predicts motion at the CU level, while SbTMVP predicts motion at the sub-CU level. 2. During the period when TMVP selects a temporal motion vector from a collocated block in a collocated picture (the collocated block is the bottom-right or center block with respect to the current CU), SbTMVP applies the motion shift obtained from the motion vector from one of the spatially neighboring blocks of the current CU to the temporal motion information selected from this collocated picture.

[0084] The SbTMVP process is illustrated in Figures 6C-6D. SbTMVP (SbTMVP 632 in Figure 6D) predicts the motion vector of a sub-CU (e.g., sub-CU 634) in a current CU (current CU 636 in Figure 6D) in two steps. In the first step, it checks the spatial neighbor A1 (e.g., spatial neighbor 638) in Figure 6C. If A1 has a motion vector that uses a collocated image (e.g., collocated image 612 in Figure 6A) as a reference image, this motion vector is selected as the motion shift to be applied (e.g., motion shift 630 in Figure 6D). If no such motion vector is identified, the motion shift is set to a zero-valued vector (0,0). The first available motion vector among List0MV and List1MV of block A1 is set as the motion shift. In this way, in SbTMVP, the corresponding block (sometimes called the collocated block) that is always in the lower right or center position relative to the current CU can be more accurately identified compared to TMVP. The pseudo code for determining the motion shift is as follows:

number

[0085] The variables and functions used in the above table are denoted as follows: · ColFromL0Flag: syntax indicating whether the collocated image is from the List0 reference image list; · LDC: indicates whether the POC values ​​of all reference images are smaller than the current image; · CurrentSliceType: type of the current slice (image); · count: available number of already derived merge candidates; · interDirA1: interDir of Nth merge candidate (1:L0, 2:L1, or 3:Bi); refIdxA1[0]: L0 motion information of the Nth merging candidate (e.g., MV, ref. index) refIdxA1[1]: L1 motion information of the Nth merging candidate (e.g., MV, ref. index) getRefPic(M, I): A function for getting a reference image from the reference image ListM by reference index I.

[0086] In the second step, the motion shift identified in step 1 is applied (i.e., added to the coordinates of the current block) to obtain sub-CU level motion information (motion vector and reference index) from the co-located image, as shown in Figure 6D. In the example of Figure 6D, it is assumed that the motion shift is set to the motion of block A1. In practical implementation, the motion shift can be set to any of the motions of blocks A1, A2, B1, or B2.

[0087] First, a representative sub-CU is selected, and the motion information of the corresponding block of this representative sub-CU is used as the default motion information. In the existing scheme of SbTMVP, the sub-CU at the bottom right of the center position of the current CU is selected as the representative sub-CU. If valid motion information cannot be derived from the corresponding block of the representative sub-CU as the default motion information, the SbTMVP candidate is considered unavailable. If the default motion information is available, proceed to the next step to obtain the motion information of each sub-CU in the current CU. Whenever there is no motion information available for the corresponding block of any sub-CU, the default motion information is used as the derived temporal motion of that sub-CU.

[0088] Then, for each sub-CU, the motion information of the corresponding block (the smallest motion grid containing the central sample) in the co-located image is used to derive the motion information of this sub-CU. After the motion information of the co-located sub-CU is identified, it is converted to the motion vector and reference index of the current sub-CU in a manner similar to the TMVP process of HEVC, which applies a temporal motion scale to align the reference image of the temporal motion vector with the reference image of the current CU.

[0089] Note that in the current design, only the motion fields within the collocated CTU in the collocated image plus one column to the right of this collocated CTU can be used for SbTMVP and TMVP derivation for each CU. 7As shown in Fig. 1, only the motion information in the co-located CTU plus one column to the right of this co-located CTU (in this example, CTU2 is the co-located CTU of the current CU) can be used for the temporal mv derivation of SbTMVP and TMVP. Hereafter, for convenience of explanation, this co-located CTU plus one column is called the "valid region" for SbTMVP / TMVP derivation. In this context, whenever a corresponding N×N block in a co-located image of a sub-CU is outside the valid region, this corresponding N×N block is replaced with a substitute block located in the co-located CTU. The position of the substitute N×N block is derived by clipping the original position of the corresponding N×N block that is positioned within the valid region using the following formula: In the following formula (position clip process of each sub-CU), CurPicWidthInSamplesY and CurPicHeightInSamplesY are the width and height of the encoded and decoded image, CTUWidthInSamplesX and CTUWidthInSamplesY are the width and height of the CTU, xCtb and yCtb are the horizontal and vertical positions of the top-left sample of the collocated CTU, xColCtrCb and yColCtrCb are the horizontal and vertical positions of the representative sample of the sub-CU, and MotionShiftX and MotionShiftY are the x and y components of the motion shift. The functions Clip3(x, y, z) and Min(x, y) are defined as follows:

number

[0090] In VVC, a combined subblock-based merge list containing both SbTMVP and affine merge candidates is used to signal the subblock-based merge mode. SbTMVP mode is enabled / disabled by a sequence parameter set (SPS) flag. When SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry in the list of subblock-based merge candidates, followed by the affine merge candidates. The size of the subblock-based merge list is signaled in the SPS, and in VVC, the maximum allowed size of the subblock-based merge list is 5.

[0091] The sub-CU size used in SbTMVP is fixed at 8x8, and as in the case of the affine merge mode, the SbTMVP mode is only applicable to CUs whose width and height are both equal to or greater than 8. Furthermore, in the current VVC, for the temporal motion field storage used in TMVP and SbTMVP, the motion field compression is performed at a granularity of 8x8, as opposed to the granularity of 16x16 in HEVC.

[0092] In one embodiment, the motion shift is always derived from List0mv of the neighboring block. If List0mv is unavailable, List1mv of the neighboring block is used to derive the motion shift of SbTMVP. The pseudocode is described below.

number

[0093] In one embodiment, the motion shift is always derived from List1mv of the neighboring block. If List1mv is unavailable, List0mv of the neighboring block is used to derive the motion shift of SbTMVP. The pseudocode is described below:

number

[0094] In an embodiment, whenever any of the corresponding blocks of a sub-CU located outside the valid area, a zero vector is used as a motion shift vector to derive SbTMVP. In this way, it is guaranteed that the corresponding blocks of all sub-CUs of the current CU are located within the valid area. Therefore, a position clip process for each sub-CU is not required. There are many ways to determine whether any of the corresponding blocks of sub-CUs in the current CU are outside the valid area. In one example, the corresponding block of the top-left N×N sub-CU and the corresponding block of the bottom-right N×N sub-CU are checked to determine whether the two corresponding blocks are within the valid area. If any of the corresponding blocks are outside the valid area, a zero vector is used as a motion shift vector. Otherwise (both of the corresponding blocks are within the valid area), the derived motion shift is used for SbTMVP.

[0095] In an embodiment, SbTMVP is considered unavailable for the current CU whenever any of the corresponding blocks of a sub-CU are located outside the valid region.

[0096] In one embodiment, whenever any of the corresponding blocks of the sub-CUs are located outside the valid area, the motion shift is modified to ensure that the corresponding blocks of all the sub-CUs are located within the valid area. Therefore, a position clip process for each sub-CU is not required.

[0097] In one embodiment, the zero vector is always used for motion shifting for SbTMVP derivation.

[0098] In one embodiment, it is proposed to use a default MV derived from a representative sub-CU as the MV for sub-CUs whose corresponding blocks are located outside the valid region.

[0099] FIG. 7 illustrates a block diagram for determining a valid region to be used in deriving TMVP and SbTMVP for a coding block (e.g., current CU 702) in a current image (e.g., current image 704), according to an embodiment of the present disclosure. The valid region is a region in a co-located image (e.g., co-located image 704') in which a CU (e.g., corresponding CU 702') corresponding to a current CU (e.g., current CU 702) is searched for TMVP or SbTMVP. In an embodiment, the ... CTU (e.g., CTU 2) corresponding to a current CU (e.g., current CU 702) is searched for TMVP or SbTMVP. ' )+1 column (e.g., one column of TMV buffer 706). The valid region constraint is a design for reducing memory usage. By restricting the valid region to the collocated CTU+1 column, only the motion information in the valid region needs to be stored in the internal memory (e.g., cache) to reduce the average cost (time or energy) of accessing the temporal motion data from the external memory. Now, the maximum CTU size is 128×128 in VVC (the maximum CTU size may be determined in a subsequent stage of the VVC profile), and the CTU size can be set to less than 128×128 (e.g., 64×64 or 32×32). In one example, if the CTU size is set to 64×64, the valid region is constrained to the collocated 64×64 block+1 column. Since the design of the temporal MV buffer for the maximum CTU already exists, it may not be wise to use a valid region smaller than the maximum CTU size from the viewpoint of encoding / decoding efficiency. In one embodiment, regardless of the CTU size in use, the available area is always fixed at the maximum allowed CTU size + 1 column.

[0100] In one embodiment, the valid region is modified to be only collocated CTUs.

[0101] In one embodiment,If the CTU size is equal to the maximum CTU size, the valid region is the collocated CTU + one column. If the CTU size is less than the maximum CTU size, the valid region is changed to be the collocated CTU + one column to the right of the collocated CTU and one row below the collocated CTU.

[0102] 8A-8B are flow charts illustrating an example process 800 for implementing a technique for a video encoder to derive a sub-block temporal motion vector predictor, according to an embodiment of this disclosure. Although process 800 can be a decoding process or an encoding process, for convenience, process 800 is described as a decoding process performed by a video decoder (e.g., video decoder 30 of FIG. 3).

[0103] As a first step, the decoder determines a collocated picture of the current coding unit (e.g., receives from the bitstream a first syntax element indicating whether the collocated picture of the current frame is from the first list or the second list; then receives from the bitstream a second syntax element indicating which frame of the selected list is to be used as the collocated frame) (805). For example, referring to FIG. 6A, a current CU 601 in a current picture 610 corresponds to a collocated CU 601′ in a collocated picture 612.

[0104] Next, the decoder locates the spatial neighboring blocks of the current coding unit (810). For example, referring to FIG. 6D, the current coding unit (e.g., current CU 636) has a spatial neighbor 638 (block A1). In one embodiment, the spatial neighboring block is a coding unit or a sub-block.

[0105] After locating the spatially neighboring blocks, the decoder then determines a motion shift vector for the current coding unit (815). The motion shift vector indicates a shift in spatial position between a current coding unit (e.g., current CU 636 in FIG. 6D) in a current image (e.g., current image 610 in FIG. 6D) and a corresponding co-located block (e.g., spatial neighbor 638′ (block A1′) in FIG. 6D) in a co-located image (e.g., co-located image 612 in FIG. 6D).

[0106] To determine the motion shift vector, the decoder sequentially checks each of the motion vectors included in List0 of the spatial neighboring blocks (820). Following a determination that each motion vector in List0 uses a co-located image as its reference image (825): the decoder sets the motion vector in List0 as the motion shift vector (830) (e.g., motion shift vector 630) (e.g., motion shift vector 630) and abandons checking subsequent motion vectors in List0 of the spatial neighboring blocks and motion vectors in List1 (835). As a result, the motion vector search is terminated and the first matching motion vector in List0 is used as the motion shift vector. In other words, the decoder always checks the motion vectors included in List0 of the spatial neighboring blocks first before checking List1 of the spatial neighboring blocks.

[0107] However, following a determination that none of the motion vectors in List0 use the co-located image as a reference image (840), the decoder sequentially examines each of the motion vectors in List1 of spatial neighboring blocks (845). That is, the decoder checks the motion vectors in List1 of spatial neighboring blocks only if the search for the motion vector in List0 returns a negative result.

[0108] During the search for motion vectors in List1 of spatial neighboring blocks, according to a determination that any of the respective motion vectors in List1 uses the co-located image as a reference image for that motion vector (850), the decoder sets the respective motion vector in List1 as a motion shift vector (855) and abandons checking subsequent motion vectors in List1 (860). That is, the first matching motion vector in List1 is used as a motion shift vector. According to a determination that any of the respective motion vectors in List1 does not use the co-located image as a reference image for that motion vector (865), the decoder sets the motion shift vector to a zero value (870). As a result, the corresponding coding unit and the current coding unit are in the same relative position with respect to the co-located image and the current image (e.g., there is no motion shift between the current coding unit and the corresponding coding unit).

[0109] Finally, the decoder reconstructs, for each subblock of the multiple subblocks in the current coding unit, a subblock-based temporal motion vector from the corresponding subblock in the co-located image based on the motion shift vector (875). For example, referring to FIG. 6D, after scaling, the subblock temporal motion vector predictor 632 is constructed by positioning the corresponding subblock temporal motion vector 631 by the motion shift vector 630 (e.g., the scale process and related description described with respect to FIG. 6A). In one embodiment, the subblock includes one or two temporal motion vectors from List0 and List1.

[0110] In an embodiment, reconstructing a sub-block-based temporal motion vector of each sub-block of the plurality of sub-blocks in the current coding unit from a corresponding sub-block in the collocated image based on the motion shift vector includes predicting a sub-block-based temporal motion vector of each sub-block of the plurality of sub-blocks in the current coding unit based on the motion shift vector, and searching for a collocated sub-block corresponding to each sub-block within a predetermined region (e.g., a valid region) in the collocated image based on the motion shift vector; identifying one or two motion vectors of the collocated sub-block according to a determination that a collocated sub-block exists within the predetermined region in the collocated image, and setting the sub-block-based temporal motion vector for each sub-block as one or two motion vectors scaled based on a first picture order count (POC) distance (e.g., POC distance tb in FIG. 6A ) between the current image and a reference image of the current image and a second POC distance (e.g., POD distance td in FIG. 6A ) between the collocated image and a reference image of the collocated image. In one embodiment, following a determination that there is no collocated sub-block in the predetermined region in the collocated image, the sub-block-based temporal motion vector of the corresponding sub-block is set to a zero-valued motion vector. In another embodiment, following a determination that there is no collocated sub-block in the predetermined region in the collocated image, an alternative sub-block in the predetermined region in the collocated image is set as the corresponding sub-block. For example, the alternative sub-block is a border sub-block in the predetermined region that is closest to the collocated sub-block.

[0111] In one embodiment, regardless of the size of the CTU that contains the collocated coding unit, the predefined region has a size equal to the maximum allowed CTU size plus one column.

[0112] In one embodiment, the decoder first checks the motion vectors in List1 of spatial neighboring blocks before checking List0 of spatial neighboring blocks.

[0113] In one or more examples, the functions described above are implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions are stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a processing unit by the hardware. The computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates the transfer of a computer program from one place to another, for example according to a communication protocol. Thus, the computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the embodiments described herein. The computer program product may include a computer-readable medium.

[0114] The terms used to describe the embodiments herein are intended to describe particular embodiments only and are not intended to limit the scope of the claims. As used in the description of the embodiments and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise. The term "and / or" as used herein should also be understood to mean and include any and all possible combinations of one or more of the listed items. It should further be understood that the term "comprising" as used herein indicates the presence of the stated features, elements, and / or components, but does not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.

[0115] Herein, although the terms "first", "second", etc. are used to describe various elements, it should also be understood that these elements are not limited by these terms. These terms are used only to distinguish one element from another element. For example, a first electrode may be referred to as a second electrode, and similarly, a second electrode may be referred to as a first electrode, without departing from the scope of the embodiment. A first electrode and a second electrode are both electrodes, but are not the same electrode.

[0116] The description in this application has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the disclosed form. Various modifications, variations, and alternative implementations will be apparent to those skilled in the art having the benefit of the teachings presented in the foregoing description and the associated drawings. The embodiments have been selected and described to best explain the principles, practical applications of the invention, and to enable those skilled in the art to understand the invention for various implementations and to best utilize the underlying principles and various implementations in various modifications to suit particular applications. Therefore, it is to be understood that the claims are not limited to the specific examples of implementations disclosed, and that modifications and other implementations are within the scope of the appended claims.

Claims

1. Partitioning a current picture of a video into a plurality of coding units; determining a collocated image of the current image; determining a motion shift vector of the current coding unit indicating a shift in spatial position between a sub-block of a plurality of sub-blocks in the current coding unit in the current image and a corresponding sub-block in the co-located image based on the motion vectors of spatially neighboring blocks of the current coding unit; reconstructing, for a sub-block of the plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from the corresponding sub-block in the co-located image based on the motion shift vector; Determining the motion shift vector of the current coding unit based on motion vectors of spatially neighboring blocks of the current coding unit includes: According to a determination that any of the motion vectors with respect to a first reference picture list of the spatial neighboring blocks uses the collocated picture as a reference picture for that motion vector with respect to the first reference picture list, setting that motion vector with respect to the first reference picture list as the motion shift vector; or In response to a determination that none of the motion vectors for the first reference picture list use the co-located picture as a reference picture for that motion vector for the first reference picture list: According to a determination that any of the motion vectors with respect to the second reference picture list of the spatial neighboring blocks uses the collocated picture as a reference picture for that motion vector with respect to the second reference picture list, determine the motion vector with respect to the second reference picture list as the motion shift vector; or determining the motion shift vector to be a zero-valued vector according to a determination that none of the motion vectors of the spatial neighboring blocks with respect to the second reference picture list use the collocated picture as a reference picture for the motion vector with respect to the second reference picture list; 13. A method of video encoding comprising:

2. Determining the motion shift vector of the current coding unit based on motion vectors of spatially neighboring blocks of the current coding unit includes: according to a determination that any of the motion vectors with respect to a first reference picture list of the spatial neighboring blocks uses the collocated picture as a reference picture for that motion vector with respect to the first reference picture list, setting that motion vector with respect to the first reference picture list as the motion shift vector; The method of claim 1 , comprising:

3. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, determining whether a collocated sub-block is present within a predetermined region in the collocated image; The method of claim 1 , comprising:

4. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, Upon determining that the collocated sub-block does not exist within the predetermined region in the collocated image: setting a sub-block based temporal motion vector of the corresponding sub-block to a zero-valued motion vector; The method of claim 3 , comprising:

5. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, Upon determining that the collocated sub-block does not exist within the predetermined region in the collocated image: setting an alternative sub-block in the predetermined region in the collocated image, the alternative sub-block being a border sub-block in the predetermined region closest to the collocated sub-block, as the corresponding sub-block; The method of claim 3 , comprising:

6. The method of claim 1 , wherein the spatial neighboring blocks of the current coding unit are coding units or sub-blocks of a coding unit.

7. 4. The method of claim 3, wherein the predetermined region has a maximum allowed CTU size plus the size of one column of the TMV buffer, regardless of the size of the CTU that contains the collocated sub-block.

8. The method of claim 7 , wherein the maximum allowed CTU size is 128×128.

9. one or more processors; a memory coupled to the one or more processors; A plurality of programs stored in the memory; Including, Partitioning a current picture of a video into a plurality of coding units; determining a collocated image of the current image; determining a motion shift vector of the current coding unit indicating a shift in spatial position between a sub-block of a plurality of sub-blocks in the current coding unit in the current image and a corresponding sub-block in the co-located image based on the motion vectors of spatially neighboring blocks of the current coding unit; reconstructing, for a sub-block of the plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from the corresponding sub-block in the co-located image based on the motion shift vector; Determining the motion shift vector of the current coding unit based on motion vectors of spatially neighboring blocks of the current coding unit includes: According to a determination that any of the motion vectors with respect to a first reference picture list of the spatial neighboring blocks uses the collocated picture as a reference picture for that motion vector with respect to the first reference picture list, setting that motion vector with respect to the first reference picture list as the motion shift vector; or In response to a determination that none of the motion vectors for the first reference picture list use the co-located picture as a reference picture for that motion vector for the first reference picture list: According to a determination that any of the motion vectors with respect to the second reference picture list of the spatial neighboring blocks uses the collocated picture as a reference picture for that motion vector with respect to the second reference picture list, determine the motion vector with respect to the second reference picture list as the motion shift vector; or determining the motion shift vector to be a zero-valued vector according to a determination that none of the motion vectors of the spatial neighboring blocks with respect to the second reference picture list use the collocated picture as a reference picture for the motion vector with respect to the second reference picture list; A computing device configured to perform operations such as:

10. Determining the motion shift vector of the current coding unit based on motion vectors of spatially neighboring blocks of the current coding unit includes: According to a determination that any of the motion vectors with respect to the first reference picture list of the spatial neighboring blocks uses the collocated image as a reference picture for the motion vector with respect to the first reference picture list, setting the motion vector with respect to the first reference picture list as the motion shift vector.

10. The computing device of claim 9, comprising:

11. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, determining whether a collocated sub-block is present within a predetermined region in the collocated image; 10. The computing device of claim 9, comprising:

12. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, Upon determining that the collocated sub-block does not exist within the predetermined region in the collocated image: setting a sub-block based temporal motion vector of the corresponding sub-block to a zero-valued motion vector; The computing device of claim 11 , comprising:

13. reconstructing, for a sub-block of a plurality of sub-blocks in the current coding unit, a sub-block-based temporal motion vector from a corresponding sub-block in the co-located image based on the motion shift vector, Upon determining that the collocated sub-block does not exist within the predetermined region in the collocated image: setting an alternative sub-block in the predetermined region in the collocated image, the alternative sub-block being a border sub-block in the predetermined region closest to the collocated sub-block, as the corresponding sub-block; The computing device of claim 11 , comprising:

14. The computing device of claim 9 , wherein the spatially neighboring blocks of the current coding unit are coding units or sub-blocks of a coding unit.

15. 12. The computing device of claim 11, wherein the predetermined region has a maximum allowed CTU size plus one column of the TMV buffer size, regardless of the size of the CTU that contains the collocated sub-block.

16. 16. The computing device of claim 15, wherein the maximum allowed CTU size is 128x128.

17. A non-transitory computer-readable storage medium storing a number of programs for execution by a computing device having one or more processors, comprising: A non-transitory computer readable storage medium, the plurality of programs, when executed by the one or more processors, causing the computing device to perform the method of video encoding according to any of claims 1 to 8.

18. A computer program storing instructions which, when executed by a processor, cause the processor to perform the method of video encoding according to any of claims 1 to 8.

Citation Information

Patent Citations

  • Video coding method and apparatus using sub-block-based temporal motion vector prediction

    JP2021527371A

  • Inter-coding for adaptive resolution video coding.

    JP2022530172A