Video coding method and apparatus using sub-block-based temporal motion vector prediction - Patents.com
The sub-block-based time motion vector prediction method efficiently decodes current pictures by dividing coding units into sub-CUs and using motion information from neighboring blocks and colocated pictures, effectively addressing the challenge of increasing video data volumes with high video quality.
Patent Information
- Application Number
- JP2024000591
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-08-29
- Filing Date
- 2024-01-05
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2039-08-29
AI Technical Summary
As digital video quality increases from High Definition to 4K x 2K or 8K x 4K, the amount of video data to be encoded/decoded grows exponentially, necessitating more efficient encoding and decoding methods to maintain image quality.
The proposed solution involves a sub-block-based time motion vector prediction method, where the current coding unit is divided into sub-CUs, and time motion vector predictors are obtained from the motion information of spatially neighboring blocks and colocated pictures, enabling efficient decoding of current pictures.
This approach reduces the data required for motion vectors, leading to more efficient encoding and decoding processes while maintaining video quality, thus addressing the challenge of increasing video data volumes.
Smart Images

Figure 0007667324000001 
Figure 0007667324000002 
Figure 0007667324000003
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD This application relates generally to encoding and decoding video data, and more particularly to a video coding method and system that uses sub-block-based temporal motion vector prediction. [Background technology]
[0002] Digital video is supported by a variety of 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 teleconferencing devices, video streaming devices, etc. Such electronic devices transmit, receive, encode, decode, and / or store digital video data by implementing video compression and decompression standards such as 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 generally involves performing spatial (intra-frame) prediction and / or temporal (inter-frame) prediction to reduce or remove redundancy inherent in video data. For block-based video coding, a video frame is divided into one or more slices, with each slice having multiple video blocks, which may also be referred to as coding tree units (CTUs). Each CTU may contain one coding unit (CU) or may be recursively divided into smaller CUs until a predetermined minimum CU size is reached. Each CU (also named leaf CU) contains one or more transform units (TU) and also includes one or more prediction units (PU). Each CU may be coded in either intra mode, inter mode, or IBC mode. Video blocks in an intra-coded (I) slice in a video frame are coded using spatial prediction with respect to reference samples in neighboring blocks within the same video frame.Video blocks in an inter-coded (P or B) slice in a video frame may use spatial prediction with respect to reference samples in neighboring blocks in the same video frame, or may use temporal prediction with respect to reference samples in other previous and / or future reference video frames.
[0003] Spatial or temporal prediction based on previously coded reference blocks, e.g., neighboring blocks, results in a predicted block for the current video block being coded. The process of finding the reference block may be achieved by a block matching algorithm. Residual data representing pixel differences between the current block being coded and the predicted block is referred to as a residual block or prediction error. Inter-coded blocks are coded according to motion vectors and residual blocks that point to reference blocks in a reference frame forming the predicted block. The process of determining a motion vector is generally referred to as motion prediction. Intra-coded blocks are coded according to an intra-prediction mode and a residual block. For further compression, the residual block may be transformed from the pixel domain to a transform domain, e.g., the frequency domain, resulting in residual transform coefficients, which are then quantized. The quantized transform coefficients, initially arranged in a two-dimensional array, may be scanned to generate a one-dimensional vector of transform coefficients, which are then entropy coded into a video bitstream to achieve even further compression.
[0004] The encoded video bitstream is then stored on a computer-readable recording medium (e.g., flash memory) that is accessed by another electronic device with digital video capabilities, or transmitted directly to the electronic device via wired or wireless connection. The electronic device then performs video decompression (the inverse process of video compression discussed above), e.g., by parsing the encoded video bitstream to obtain syntax elements from the bitstream, reconstructing digital video data from the encoded video bitstream into an 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 moves from High Definition to 4K×2K or 8K×4K, the amount of video data to be encoded / decoded increases exponentially, which is a continuous effort on how to encode / decode video data more efficiently while maintaining the image quality of the decoded video data. Summary of the Invention
[0006] This application describes embodiments related to encoding and decoding video data, and more particularly, to systems and methods for video encoding and decoding using sub-block-based temporal motion vector prediction. [Means for solving the problem]
[0007] According to a first aspect of the present application, a method for sub-block-based temporal motion vector prediction is executed in a computing device having one or more processors and a memory storing a plurality of programs executed by the one or more processors. The computing device obtains a video bitstream including data related to a plurality of coded pictures. The computing device decodes a current picture in the video bitstream, while selecting one reference picture as a co-located picture of the current picture according to a syntax element signaled in the video bitstream, and determines a motion shift amount between the co-located picture and the current picture from motion information of spatially neighboring blocks of the current coding unit (CU) according to a certain order. Next, the computing device divides the current CU into a plurality of sub-CUs, each corresponding to a respective sub-block of the current picture. Then, the computing device obtains a temporal motion vector predictor for each sub-CU of the current CU from (i) the motion shift amount between the co-located picture and the current picture and (ii) the motion information of blocks in the co-located picture corresponding to the respective sub-blocks of the current picture, and decodes the current CU according to the temporal motion vector predictors of the plurality of sub-CUs of the current CU.
[0008] According to 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, the programs being executed by the one or more processors to cause the computing device to perform the operations described above.
[0009] According to a third aspect of the present application, a non-transitory computer-readable recording medium stores a plurality of programs for execution by a computing device having one or more processors, the programs being executed by the one or more processors to cause the computing device to perform the processes described above.
[0010] The accompanying drawings, which are included to provide a further understanding of the embodiments, are incorporated in and constitute a part of this specification, illustrate the described embodiments, and together with the description, serve to explain basic principles, with like reference numerals referring to corresponding parts. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram illustrating an example video encoding and decoding system according to some embodiments of the present disclosure. [Diagram 2] 1 is a block diagram illustrating an example video encoder according to some embodiments of the present disclosure. [Diagram 3] 1 is a block diagram illustrating an example video decoder according to some embodiments of the present disclosure. [Figure 4A] FIG. 1 is a block diagram illustrating how a frame is recursively quad-tree partitioned into multiple video blocks of different sizes in accordance with some embodiments of this disclosure. [Figure 4B] 2 is a block diagram illustrating how a frame is recursively quadtree partitioned into multiple video blocks of different sizes in accordance with some embodiments of this disclosure. [Figure 4C] 2 is a block diagram illustrating how a frame is recursively quadtree partitioned into multiple video blocks of different sizes in accordance with some embodiments of this disclosure. [Figure 4D] 2 is a block diagram illustrating how a frame is recursively quadtree partitioned into multiple video blocks of different sizes in accordance with some embodiments of this disclosure. [Figure 5A] FIG. 13 is a block diagram showing temporally related and spatially neighboring block positions in a current CU, as encoded by some embodiments of the present disclosure. [Figure 5B] 4 is a flow diagram illustrating an example process by which a list of motion vector candidates is identified according to some embodiments of the present disclosure. [Figure 5C]FIG. 2 is a block diagram illustrating how sub-block-based temporal motion vector prediction is performed between a current picture and a co-located picture according to some embodiments of the present disclosure. [Figure 6] 4 is a flow diagram illustrating an example process by which a video decoder implements a technique for constructing a sub-block-based temporal motion vector prediction for a current picture from motion information of a collocated picture, in accordance with some embodiments of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Reference will now be made in detail to specific embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in the understanding of the subject matter presented herein. However, it will be apparent to one skilled in the art that various alternatives may be used without departing from the scope of the claims, and that the subject matter may be practiced without these specific details. For example, it will be apparent to one skilled in the art that the subject matter presented herein may be practiced in many types of electronic devices with digital video capabilities.
[0013] Figure 1 is a block diagram illustrating an example system 10 for concurrent encoding and decoding of video blocks, in accordance with some embodiments of the present disclosure. As shown in Figure 1, system 10 includes a source device 12 that generates and encodes video data that is subsequently decoded by a destination device 14. Source device 12 and destination device 14 may comprise any of a 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 some embodiments, source device 12 and destination device 14 are equipped with wireless communication capabilities.
[0014] In some embodiments, the destination device 14 may receive the encoded video data to be decoded over a link 16. The link 16 may comprise any type of communication medium or device capable of transferring the encoded video data from the source device 12 to the destination device 14. In one example, the link 16 may comprise a communication medium to enable the source device 12 to directly transmit the encoded video data to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device 14. The communication medium may comprise any wireless or wired communication medium, such as the radio frequency (RF) spectrum or one or more physical transmission paths. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network, such as the Internet. The communication medium may include routers, switches, base stations, or other equipment that helps facilitate communication from the source device 12 to the destination device 14.
[0015] In some other embodiments, the encoded video data may be transmitted from output interface 22 to recording device 32. The encoded video data in recording device 32 may then be accessed by destination device 14 via input interface 28. Recording device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or other digital storage media suitable for storing encoded video data. In a further example, recording device 32 may represent a file server or another intermediate storage device that may hold the encoded video data generated by source device 12. Destination device 14 may access the stored video data by streaming or downloading from recording device 32. The file server may be any type of computer capable of storing encoded video data and transmitting the encoded video data to destination 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. Destination device 14 may access the encoded video data over any standard data connection, including a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL or cable modem), or a combination of both, suitable for accessing the encoded video data stored on a file server. The transmission of the encoded video data from recording device 32 may be a streaming transmission, a download transmission, or a combination of both.
[0016] 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 of such sources. As an example, if video source 18 is a video camera in a security surveillance system, source device 12 and destination device 14 may form a camera phone or video phone. However, the embodiments described herein may be applicable to video coding in general and may be applied to wireless and / or wired applications.
[0017] Captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video data may be transmitted directly to destination device 14 through output interface 22 of source device 12. The encoded video data may also (or alternatively) be stored in recording device 32 for later access by destination device 14 or other devices for decoding and / or playback. Output interface 22 may further include a modem and / or a transmitter.
[0018] Destination device 14 includes an input interface 28, a video decoder 30, and a display device 34. Input interface 28 may include a receiver and / or a modem and receives encoded video data over link 16. The encoded video data communicated over link 16 or provided by recording device 32 may include various syntax elements generated by video encoder 20 for use in decoding the video data by video decoder 30. The encoded video data, which may include such syntax elements, is transmitted over a communications medium and stored on a recording medium or a file server.
[0019] In some embodiments, destination device 14 may include a display device 34, which may be an integrated display device or an external display device configured to communicate with destination device 14. Display device 34 displays the decoded video data to a user and may comprise any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0020] Video encoder 20 and video decoder 30 may operate based on proprietary or industry standards, such as VVC, HEVC, MPEG-4 Part 10 AVC (Advanced Video Coding), or extensions of these standards. It should be understood that the present application is not limited to a particular video encoding / decoding standard and may be applicable to other video encoding / decoding standards. It is generally contemplated that video encoder 20 of source device 12 may be configured to encode video data in accordance with any of these current or future standards. Similarly, it is generally contemplated that video decoder 30 of destination device 14 may be configured to decode video data in accordance with any of these current or future standards.
[0021] The video encoder 20 and the video decoder 30 may each be implemented as any of a variety of suitable encoding circuitry, 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 partially in software, the electronic device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the video encoding / decoding processes disclosed in this disclosure. Each of the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device.
[0022] 2 is a block diagram illustrating an example video encoder 20 according to some embodiments described herein. Video encoder 20 may perform intra-predictive and inter-predictive coding of video blocks within video frames. Intra-predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture. Inter-predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence.
[0023] 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 quantizer 54, and an entropy coder 56. The prediction processor 41 further includes a motion estimator 42, a motion compensation unit 44, a partitioner 45, an intra prediction processor 46, and an intra block copy (BC) unit 48. In some embodiments, the video encoder 20 also includes an inverse quantizer 58, an inverse transform processor 60, and an adder 62 for reconstructing video blocks. A deblocking filter (not shown) may be disposed between the adder 62 and the DPB 64 to filter block boundaries from the reconstructed video to remove block artifacts. In addition to the deblocking filter, an in-loop filter (not shown) may also be used to filter the output of the adder 62. Video encoder 20 may take the form of a fixed or programmable hardware unit, or may be divided among one or more fixed or programmable hardware units.
[0024] Video data memory 40 may store video data to be encoded by components of 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 records reference video data used to encode the video data by video encoder 20 (e.g., in an intra-predictive or inter-predictive encoding mode). Video data memory 40 and DPB 64 may be formed by any of a variety of storage devices. In various examples, video data memory 40 may be on-chip with other components of video encoder 20 or off-chip relative to those components.
[0025] As shown in FIG. 2, a partitioner 45 within the prediction processor 41 partitions the received 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 partitioning structure, such as a quadtree structure, associated with the video data. The video frame may be partitioned into a number of video blocks (or sets of video blocks referred to as tiles). The prediction processor 41 may select one of a number of possible predictive coding modes, such as one of a number of intra-predictive coding modes or one of a number of inter-predictive coding modes, for the current video block based on the error result (e.g., coding rate or distortion level). The prediction processor 41 may provide the resulting intra-predictive or inter-predictive coded block to an adder 50 to generate a residual block, and may provide the coded block to an adder 62 for later reconstructing for use as part of a reference frame. The prediction unit 41 also provides syntax elements, such as motion vectors, intra mode indicators, partitioning information, and other such syntax information, to the entropy coding unit 56 .
[0026] To select an appropriate intra-prediction coding mode for a current video block, an intra-prediction unit 46 within prediction unit 41 may perform intra-prediction coding of the current video block relative to one or more neighboring blocks in the same frame as the current block being coded, resulting in spatial prediction. A motion estimation unit 42 and a motion compensation unit 44 within prediction unit 41 perform inter-prediction coding of the current video block relative to one or more predictive blocks in one or more reference frames, resulting in temporal prediction. Video encoder 20 may perform multiple coding passes, for example to select an appropriate coding mode for each block of video data.
[0027] In some embodiments, motion estimator 42 determines an inter prediction mode for a current video frame by generating a motion vector indicating a displacement of a prediction unit (PU) of a video block within a current video frame relative to a predictive block within a reference video frame according to a predetermined pattern within a sequence of video frames. Motion prediction performed by motion estimator 42 is a process of generating a motion vector that estimates the motion of a video block. The motion vector may indicate, for example, a displacement of a PU of a video block within a current video frame or picture relative to a predictive block within a reference frame (or other coding unit) relative to a current block to be coded within the current frame (or other coding unit). The predetermined pattern may designate the video frame as a P frame or a B frame in the sequence. Intra BC unit 48 may determine vectors, e.g., block vectors, for intra BC coding in a manner similar to the determination of motion vectors by motion estimator 42 for inter prediction, or may utilize motion estimator 42 to determine block vectors.
[0028] A prediction block is a block of a reference frame that is considered to closely correspond to a PU of a video block to be coded in terms of pixel difference, which may be determined by sum of absolute difference (SAD), sum of square difference (SSD), or other difference metric. In some embodiments, video encoder 20 may calculate values for sub-integer pixel locations of the reference frame stored in DPB 64. For example, video encoder 20 may interpolate values for quarter-pixel, eighth-pixel, or other fractional pixel locations of the reference frame. Thus, motion estimation unit 42 may perform motion search for whole pixel locations and fractional pixel locations to output motion vectors with fractional pixel accuracy.
[0029] The motion estimation unit 42 calculates a motion vector for a PU of a video block of an inter-predictive coded frame by comparing the position of the PU with the position of a predictive block of a reference frame selected from a first reference frame list (List 0) or a second reference frame list (List 1), where the first reference frame list or the second reference frame list respectively identifies one or more reference frames stored in the DPB 64. The motion estimation unit 42 sends the calculated motion vector to the motion compensation unit 44 and then to the entropy coding unit 56.
[0030] The motion compensation performed by motion compensation unit 44 may include fetching 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 a PU of a current video block, it locates the predictive block to which the motion vector points in one of the reference frame lists, retrieves the predictive block from DPB 64, and forwards the predictive block to summer 50. Summer 50 then forms a residual video block of pixel difference values by subtracting pixel values of the predictive block provided by motion compensation unit 44 from pixel values of the current video block to be coded. The pixel difference values forming the residual video block may include luma or chroma difference components, or both. Motion compensation unit 44 may also generate syntax elements related to the video blocks of the video frames for use by video decoder 30 in decoding the video blocks of the video frames. The syntax elements may include, for example, syntax elements defining the motion vector used to identify the predictive block, any flags indicating the prediction mode, or other syntax information described herein. Note that motion estimation unit 42 and motion compensation unit 44 may be largely integrated, but are shown separately for conceptual purposes.
[0031] In some embodiments, the intra BC unit 48 may generate a vector to capture a predictive block in a manner similar to that described above with respect to the motion estimation unit 42 and the motion compensation unit 44, but the predictive block is in the same frame as the current block to be coded, and the vector is referred to as a block vector, as opposed to a motion vector. In particular, the intra BC unit 48 may determine to use an intra prediction mode to code the current block. In some examples, the intra BC unit 48 may code the current block using various intra prediction modes, e.g., during separate coding passes, and analyze the performance of the intra prediction modes by rate-distortion analysis. The intra BC unit 48 may then select an appropriate intra prediction mode among the various intra prediction modes tested to use in generating the intra mode indicator. For example, the intra BC unit 48 may use the rate-distortion analysis to calculate rate-distortion values for the various intra prediction modes tested, and select the intra prediction mode with the best rate-distortion characteristics among the tested modes as the appropriate intra prediction mode to use. The rate-distortion analysis generally determines the bitrate (i.e., number of bits) used to generate a coded block, along with the amount of distortion (or error) between the coded block and the original uncoded block that is coded to generate the coded block. Intra BC unit 48 may calculate the distortion-to-rate ratio for various coded blocks to determine the intra prediction mode that gives the best rate-distortion value for the block.
[0032] In other examples, the intra BC unit 48 may use, in whole or in part, the motion estimation unit 42 and the motion compensation unit 44 to perform such functions for intra BC prediction in accordance with the embodiments described herein. In either case, for intra block copying, the predictive block may be a block that is considered to be a close equivalent to the block to be coded in terms of pixel differences, and may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference measures. Identifying the predictive block may include computing values for sub-integer pixel positions.
[0033] Whether the predictive block is from the same frame via intra prediction or a different frame via inter prediction, video encoder 20 may form a residual video block by subtracting pixel values of the predictive block from pixel values of the current video block being encoded, forming pixel difference values. The pixel difference values that form the residual video block may include both luma and chroma difference components.
[0034] The intra prediction unit 46 may intra predict the current video block as an alternative to inter prediction performed by the motion estimation unit 42 and the motion compensation unit 44 or intra block copy prediction performed by the intra BC unit 48, as described above. In particular, the intra prediction unit 46 may determine to use an intra prediction mode to encode the current block. To do so, the intra prediction unit 46 may encode the current block using various intra prediction modes, for example during separate encoding passes, and the intra prediction unit 46 (or a mode selection unit in some examples) may select an appropriate intra prediction mode to use from the tested intra prediction modes. The intra prediction unit 46 may provide information indicative of the selected intra prediction mode for the block to the entropy coder 56. The entropy coder 56 may encode information indicating the selected intra prediction mode in the bitstream.
[0035] After prediction processor 41 determines a predictive block for the current video block, either by inter-prediction or intra-prediction, summer 50 generates a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more transform units (TUs) and provided to transform processor 52. Transform processor 52 converts the residual video data into residual transform coefficients using a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform.
[0036] The transform processor 52 may send the resulting transform coefficients to a quantizer 54, which quantizes the transform coefficients to further reduce the bit rate. The quantization process may also reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be varied by adjusting a quantization parameter. In some examples, the quantizer 54 may then perform a scan of a matrix containing the quantized transform coefficients. Alternatively, the entropy coder 56 may perform the scan.
[0037] Following quantization, entropy coder 56 entropy codes the quantized transform coefficients into a video bitstream using, for example, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy coding (PIPE), or another entropy coding technique or technique. The coded bitstream may then be transmitted to video decoder 30 or recorded on storage device 32 for later transmission to or retrieval by video decoder 30. Entropy coder 56 may also entropy code motion vectors and other syntax elements for the current video frame being coded.
[0038] Inverse quantization unit 58 applies inverse quantization, and inverse transform unit 60 applies inverse transform to reconstruct the residual video block in the pixel domain to generate a reference block for predicting other video blocks. As mentioned 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 for use in motion estimation.
[0039] Summer 62 adds the reconstructed residual block to the motion compensated predictive block produced by motion compensation unit 44 to generate a reference block for storage in DPB 64. The reference block may then be used by intra BC unit 48, motion estimation unit 42, and motion compensation unit 44 as a predictive block to inter predict another video block in a subsequent video frame.
[0040] 3 is a block diagram illustrating an exemplary video decoder 30 according to some embodiments 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 quantization unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra prediction processing unit 84, and an intra BC unit 85. The video decoder 30 may perform a decoding process that is generally inverse to the encoding process described for the video encoder 20 in connection with FIG. 2. For example, the motion compensation unit 82 may generate prediction data based on a motion vector received from the entropy decoding unit 80, while the intra prediction processing unit 84 may generate prediction data based on an intra prediction mode indicator received from the entropy decoding unit 80.
[0041] In some examples, units of video decoder 30 may be tasked with performing embodiments of the present application. Also, in some examples, embodiments of the present disclosure may be divided among one or more units of video decoder 30. For example, intra BC unit 85 may perform embodiments of the present application alone or in combination with other units of video decoder 30, such as motion compensation unit 82, intra prediction processing unit 84, and entropy decoding unit 80. In some examples, video decoder 30 may not include intra BC unit 85, and the functionality of intra BC unit 85 may be performed by other components of prediction processing unit 81, such as motion compensation unit 82.
[0042] Video data memory 79 may store video data, such as an encoded video bitstream, that is decoded by other components of video decoder 30. The video data stored in video data memory 79 may be obtained from recording device 32, from a local video source, such as a camera, by wired or wireless network communication of the video data, or by accessing a physical data storage medium, such as a flash drive or hard disk. 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 of video decoder 30 stores reference video data used to code video data by video decoder 30 (e.g., in an intra-predictive coding mode or an inter-predictive 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 memory (DRAM), including synchronous dynamic random access memory (SDRAM), magneto-resistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For illustrative purposes, the video data memory 79 and the DPB 92 are depicted as two separate components of the video decoder 30 in FIG. 3. However, it will be apparent to one skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or separate memory devices. In some examples, the video data memory 79 may be on-chip with other components of the video decoder 30, or may be off-chip relative to those components.
[0043] During the decoding process, video decoder 30 receives an encoded video bitstream representing video blocks of encoded video frames and associated syntax elements. Video decoder 30 may receive video frame-level and / or video block-level syntax elements. An entropy decoding unit 80 of video decoder 30 entropy decodes the bitstream to generate quantized 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 processor 81.
[0044] When a video frame is coded as an intra-predictive coded (I) frame, or for intra-coded predictive blocks in other types of frames, the intra-prediction processing unit 84 of the prediction processing unit 81 may generate predictive data for video blocks of the current video frame based on a signaled intra-prediction mode and reference data from previously decoded blocks of the current frame.
[0045] When a video frame is coded as an inter-predictive (i.e., B or P) frame, motion compensation unit 82 of prediction unit 81 generates one or more predictive blocks for video blocks of the current video frame based on the motion vectors and other syntax elements received from entropy decoding unit 80. Each of the predictive blocks may be generated from a reference frame within one of the reference frame lists. Video decoder 30 may construct the reference frame lists, e.g., list 0 and list 1, using a default construction technique based on the reference frames stored in DPB 92.
[0046] In some examples, when a video block is encoded according to the intra BC modes described herein, intra BC unit 85 of 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. The predictive block may be within the same reconstructed region of the picture as the current video block defined by video encoder 20.
[0047] Motion compensation unit 82 and / or intra BC unit 85 determine prediction information for video blocks of a current video frame by analyzing the motion vectors and other syntax elements, and then use the prediction information to generate predictive blocks for the current video block to be 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) used to encode video blocks of the video frame, an inter prediction frame type (e.g., B or P), configuration information for one or more of the reference frame lists for the frame, a motion vector for each inter predictive coded video block in 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.
[0048] Similarly, intra BC unit 85 may use some of the received syntax elements, such as flags, to determine that the current video block was predicted using an intra BC mode, configuration information of the video blocks of the frame that are within the reconstructed region and that should be stored in DPB 92, block vectors of each intra BC predicted video block of the frame, intra BC prediction states of each intra BC predicted video block of the frame, and other information for decoding video blocks in the current video frame.
[0049] Motion compensation unit 82 may also perform the interpolation using an interpolation filter such as that used to calculate sub-integer pixel interpolated values of the reference block during encoding of the video block by video encoder 20. In this case, motion compensation unit 82 may determine from the received syntax elements the interpolation filter used by video encoder 20 and generate the predictive block using the interpolation filter.
[0050] An inverse quantizer 86 inverse quantizes the quantized transform coefficients provided in the bitstream and entropy decoded by entropy decoder 80 using the same quantization parameters calculated by video encoder 20 to determine the degree of quantization for each video block in a video frame. 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 the transform coefficients in order to reconstruct residual blocks in the pixel domain.
[0051] After the motion compensation unit 82 or the intra BC unit 85 generates a predictive block for the current video block based on the vectors and other syntax elements, the summer 90 reconstructs a decoded video block for the current video block by summing the residual block from the inverse transform processor 88 and the corresponding predictive block generated by the motion compensation unit 82 and the intra BC unit 85. An in-loop filter (not shown) may be disposed between the summer 90 and the DPB 92 to further process the decoded video block. The decoded video block in a given frame is then stored in the DPB 92, which stores reference frames used for subsequent motion compensation of the next video block. The DPB 92 or a memory device separate from the DPB 92 may also store the decoded video for later presentation to a display device, such as display device 34 of FIG. 1.
[0052] In a typical video coding process, a video sequence typically includes an ordered set of frames or pictures. Each frame may include three sample arrays, denoted SL, SCb, and SCr. SL is a two-dimensional array of luma samples. SCb is a two-dimensional array of Cb chrominance samples. SCr is a two-dimensional array of Cr chrominance samples. In other cases, a frame may be black and white and therefore include only one two-dimensional array of luma samples.
[0053] As shown in FIG. 4A, the video encoder 20 (more specifically, the splitter 45) generates a coded representation of a frame by first splitting the frame into a set of coding tree units (CTUs). A video frame may include an integer number of CTUs sequentially ordered in a raster scan order from left to right and top to bottom. Each CTU is the largest logical coding unit, and the width and height of the CTUs are signaled by the video encoder 20 in a 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. However, it should be noted 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, a corresponding coding tree block of two chrominance samples, and syntax elements used to code the samples of the coding tree block. The syntax elements describe the characteristics of various types of units of coding blocks of pixels and how a video sequence may be reconstructed in video decoder 30, including inter or intra prediction, intra prediction modes, motion vectors, and other parameters. For a monochrome picture or a picture with three separate color planes, a CTU may include a single coding tree block and syntax elements used to code samples of the coding tree block. A coding tree block may be an N×N block of samples.
[0054] To achieve better performance, video encoder 20 may recursively perform tree partitioning, such as binary-tree partitioning, quad-tree partitioning, or a combination of both, on the coding tree blocks of the CTU to partition the CTU into smaller coding units (CUs). As illustrated in FIG. 4C, 64×64 CTU 400 is first partitioned into four smaller CUs, each with a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are partitioned into four CUs, each with a block size of 16×16. Two 16×16 CUs 430 and 440 are further partitioned into four CUs, each with a block size of 8×8. FIG. 4D illustrates a quad-tree data structure showing the final result of the partitioning process of CTU 400 as illustrated in FIG. 4C, where each leaf node of the quad-tree corresponds to one CU of a respective size ranging from 32×32 to 8×8. Each CU may include a coding block (CB) of luma samples, two corresponding coding blocks of chroma samples of the same size frame, and syntax elements used to code the samples of the coding block, similar to the CTU depicted in Figure 4B. In a monochrome picture or a picture with three separate color planes, a CU may include a single coding block and syntax structures used to code the samples of the coding block.
[0055] In some embodiments, video encoder 20 may further divide the coding block of a CU into one or more M×N predictive blocks (PBs). A predictive block is a rectangular (square or non-square) block of samples to which a uniform (inter or intra) prediction is applied. A prediction unit (PU) of a CU may include a predictive block of luma samples, two corresponding predictive blocks of chroma samples, and syntax elements used to predict the predictive block. In a monochrome picture or a picture with three separate color planes, a PU may include a single predictive block and syntax structures used to predict the predictive block. Video encoder 20 may generate predicted luma, Cb, and Cr blocks for luma, Cb, and Cr predictive blocks for each PU of the CU.
[0056] Video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks for a PU. If video encoder 20 uses intra prediction to generate the predictive blocks for a PU, video encoder 20 may generate the predictive blocks for the PU based on decoded samples of a frame associated with the PU. If video encoder 20 uses inter prediction to generate the predictive blocks for a PU, video encoder 20 may generate the predictive blocks for the PU based on decoded samples of one or more frames other than the frame associated with the PU.
[0057] After generating the predictive luma block, the predictive Cb block, and the predictive Cr block for one or more PUs in the CU, the video encoder 20 may generate a luma residual block for the CU by subtracting the predictive luma block of the CU from the original luma coding block of the CU, such that each sample in the luma residual block of the CU indicates a difference between a luma sample in one of the predictive luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Similarly, the video encoder 20 may generate a Cb residual block and a Cr residual block of the CU, respectively, such that each sample in the Cb residual block of the CU indicates a difference between a Cb sample in one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU, and each sample in the Cr residual block of the CU may indicate a difference between a Cr sample in one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.
[0058] Moreover, as shown in FIG. 4C, video encoder 20 uses quadtree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks. 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 predict 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 some examples, 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 picture or a picture with three separate color planes, a TU may include a single transform block and syntax structures used to transform the samples of the transform block.
[0059] Video encoder 20 may apply one or more transforms to a luma transform block of the TU to generate a luma coefficient block for the TU. The coefficient block may be a two-dimensional array 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 the TU to generate a Cb coefficient block for the TU. Video encoder 20 may apply one or more transforms to a Cr transform block of the TU to generate a Cr coefficient block for the TU.
[0060] 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 quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to somehow reduce the amount of data used to represent the transform coefficient, resulting in further compression. After quantizing the coefficient block, the video encoder 20 may entropy code syntax elements indicating the quantized transform coefficients. For example, the video encoder 20 may perform context-adaptive binary arithmetic coding (CABAC) on the syntax elements indicating the quantized transform coefficients. Finally, the video encoder 20 may output a bitstream including a series of bits forming a representation of the encoded frame and associated data, which may be stored on a recording device 32 or transmitted to a destination device 14.
[0061] After receiving the bitstream generated by video encoder 20, video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. Video decoder 30 may reconstruct a frame of video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing the video data is generally the reverse of the encoding process performed by video encoder 20. For example, video decoder 30 may perform an inverse transform on coefficient blocks associated with the TUs of the current CU to reconstruct residual blocks associated with the TUs of the current CU. Video decoder 30 may also reconstruct the coding blocks of the current CU by adding samples of the predictive blocks for the PUs of the current CU to samples of the transform blocks of the corresponding TUs of the current CU. Video decoder 30 may reconstruct the frame after reconstructing the coding blocks for each CU of the frame.
[0062] As mentioned above, video coding mainly uses two modes, intra-frame prediction (i.e., intra prediction) and inter-frame prediction (i.e., inter prediction), to achieve video compression. It is noted that IBC can be considered as either intra-frame prediction or a third mode. Between these two modes, inter-frame prediction contributes more to coding efficiency than intra-frame prediction because it uses motion vectors to predict a current video block from a reference video block.
[0063] However, due to the continuous improvement of video data capture technology and more precise video block size to preserve details in video data, the amount of data required to represent the motion vector of the current frame also increases significantly. One way to overcome this problem is to benefit from the fact that a group of neighboring CUs in both spatial and temporal domains not only have similar video data for prediction purposes, but also the motion vectors between these neighboring CUs are similar. Therefore, the motion information of spatially neighboring CUs and / or temporally related CUs can be used as the approximate motion information (e.g., motion vector) of the current CU by finding the spatial correlation and temporal correlation of these CUs. This is also called the "motion vector predictor (MVP)" of the current CU.
[0064] Rather than encoding the actual motion vector of the current CU determined by motion estimator 42 into the video bitstream as described with respect to Figure 2, the motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to generate a motion vector difference (MVD) for the current CU. By doing so, the actual motion vector determined by motion estimator 42 for each CU of a frame does not need to be encoded into the video bitstream, and the amount of data used to represent motion information in the video bitstream may be significantly reduced.
[0065] Similar to the process of selecting a predictive block in a reference frame during inter-frame prediction of a codeblock, a set of rules needs to be adopted by both the video encoder 20 and the video decoder 30 to construct a list of motion vector candidates for the current CU using possible candidate motion vectors associated with spatially neighboring CUs and / or temporally related CUs of the current CU, and then select one element from the list of motion vector candidates as the motion vector predictor for the current CU. By doing so, there is no need to transmit the list of motion vector candidates itself between the video encoder 20 and the video decoder 30, and the index of the selected motion vector predictor within the list of motion vector candidates is sufficient for the video encoder 20 and the video decoder 30 to use the same motion vector predictor within the list of motion vector candidates for encoding and decoding the current CU.
[0066] In some embodiments, each inter-predicted CU has three motion vector prediction modes, including an inter prediction mode (also referred to as an "enhanced motion vector prediction" (AMVP) mode), a skip prediction mode, and a merge prediction mode, to construct a list of motion vector candidates. Under each mode, one or more motion vector candidates may be added to the list of motion vector candidates according to an algorithm described below. Finally, one of the motion vector candidates in the list of candidates is used as the best motion vector predictor for the inter-predicted CU to be encoded into a video bitstream by the video encoder 20 or decoded from the video bitstream by the video decoder 30. To find the best motion vector predictor from the list of candidates, a motion vector competition (MVC) scheme is introduced to select a motion vector from a given candidate set of motion vectors, i.e., the list of motion vector candidates, including spatial motion vector candidates and temporal motion vector candidates.
[0067] After an MVP candidate is selected for the current CU within a given candidate set of motion vectors, video encoder 20 may generate one or more syntax elements for the corresponding MVP candidate and encode the syntax elements into the video bitstream so that video decoder 30 can use the syntax elements to retrieve the MVP candidate from the video bitstream. Different modes (e.g., AMVP mode, merge mode, skip mode, etc.) have different sets of syntax elements depending on the specific mode used to configure the candidate set of motion vectors. For AMVP mode, the syntax elements include an inter-prediction indicator (e.g., list 0, list 1, or bi-prediction), a reference index, a motion vector candidate index, a motion vector differential, and a prediction residual signal, etc. For skip and merge modes, only the merge index is encoded into the bitstream because the current CU inherits other syntax elements, including the inter-prediction indicator, the reference index, and the motion vector, from the neighboring CU referenced by the encoded merge index. In the case of a skip-coded CU, the motion vector prediction residual signal is also omitted.
[0068] FIG. 5A is a block diagram illustrating spatially neighboring block positions in a current CU that are encoded / decoded by some embodiments of the present disclosure. For a given mode (e.g., AMVP mode, merge mode, or skip mode), a motion vector prediction (MVP) candidate list is constructed by first checking the validity of motion vectors associated with spatially left (A0, A1) and top (B0, B1, B2) neighboring block positions, and validity of motion vectors associated with temporally neighboring block positions. During the process of constructing the list of MVP candidates, redundant MVP candidates are removed from the candidate list, and zero-valued motion vectors are added, if necessary, to give the candidate list a fixed length (note that different modes may have different fixed lengths). After constructing the list of MVP candidates, video encoder 20 can select the best motion vector predictor from the candidate list and encode a corresponding index indicating the selected candidate into the video bitstream.
[0069] Using Fig. 5A as an example, and assuming that the candidate list has a fixed length of two, Fig. 5B is a flow diagram illustrating an example process by which a list of motion vector candidates is identified according to some embodiments of the present disclosure. In particular, a list of motion vector predictor (MVP) candidates for a current CU may be constructed by performing the following steps under the AMVP mode as depicted in Fig. 5B. 1) Step 505: Select two MVP candidates from the five spatially neighboring CUs; a) Derive one unscaled MVP candidate from one of the two spatially left neighboring CUs from A0 to A1; b) if there is no valid unscaled MVP candidate to the left in the previous step, derive one scaled MVP candidate from one of the two neighboring CUs to the left of A0 to A1; c) Starting from B0, derive one unscaled MVP candidate from B1, B2, and one of the three spatially upper neighboring CUs; d) If neither A0 nor A1 are available or both are coded in intra mode, derive one scaled MVP candidate from B0, B1, B2, and one of the three spatially upper neighboring CUs; 2) Step 510: Select one MVP candidate from two CUs that are aligned in time relation; 3) Step 515: Remove duplicate MVP candidates found in previous steps from the MVP candidate list; 4) Step 520: Add up to two MVPs with zero values to the MVP candidate list; 5) Step 525: Remove MVP candidates with index greater than 1 from the MVP candidate list; 6) Step 530: Finalize two MVP candidates in the MVP candidate list for the current CU.
[0070] Since there are only two candidates in the MVP candidate list for the AMVP mode constructed above, an associated syntax element, such as a binary flag, is coded into the bitstream to indicate which of the two MVP candidates within the candidate list is used to decode the current CU.
[0071] In some embodiments, the process of selecting a temporal motion vector predictor for encoding / decoding a current CU is performed at a sub-CU level to improve the accuracy of the decoded picture. The process first identifies a co-located picture for the current picture that includes the current CU, and then determines a temporal vector (also known as a "motion shift amount" in this application). Next, the process divides the current CU into multiple sub-CUs, and derives motion information for each of the sub-CUs from a corresponding block in the co-located picture identified by the temporal vector according to a predetermined algorithm, also called "subblock-based temporal motion vector prediction (SbTMVP)".
[0072] 5C is a block diagram showing how sub-block-based temporal motion vector prediction is performed between a current picture and a co-located picture according to some embodiments of the present disclosure. In this example, the current CU 535-1 is a 64×64 codeblock and is divided into 8×8 sub-CUs, each of which is an 8×8 codeblock. To derive motion information for each sub-CU, the SbTMVP process is divided into two main steps: Step 1: Using the so-called "temporal vector" between the current picture 535 and the co-located picture 540, identify the corresponding block 540-1 in the co-located picture 540. · Step 2: Split the current CU 535-1 into multiple sub-CUs, and obtain motion information including motion vectors for the sub-CUs and reference indexes (which are zero by default) for each sub-CU 535-3 from corresponding blocks in the co-located picture 540.
[0073] As mentioned above, it is assumed that the co-located picture 540 for the current picture 535 is known before the execution of the SbTMVP process. For example, the co-located picture is typically one reference picture of the current picture selected from one of the two reference picture lists, e.g., list 0, list 1, of the current picture. In some embodiments, the corresponding block is one that is in the same relative position in the co-located picture as the current CU in the current picture. In some other embodiments (e.g., FIG. 5C), the corresponding block is not necessarily in the same relative position in the co-located picture as the current CU 535-1 in the current picture. Instead, there is a temporal vector that relates the center of the current CU 535-1 in the current picture to the center of the corresponding block 540-1 in the co-located picture 540.
[0074] In some embodiments, the SbTMVP process is implemented as part of the process of constructing the list of motion vector candidates described above for the current CU during video encoding. In other words, if it is determined that the current CU should be processed using SbTMVP, the parameters corresponding to SbTMVP are added to the list of motion vector candidates accordingly. In some other embodiments, the SbTMVP process is implemented independently from the process of constructing the list of motion vector candidates described above for the current CU during video encoding. In other words, SbTMVP is treated as a separate inter-prediction mode like the inter-prediction modes described above. Since the encoding process and the decoding process are symmetrical in nature, hereafter it will be shown how the SbTMVP process is employed to predict the temporal motion vector of the current CU using the decoding of the current CU.
[0075] FIG. 6 is a flow diagram illustrating an example decoding process in which a video decoder implements a technique for constructing a sub-block-based temporal motion vector prediction for a current picture from motion information of a co-located picture, in accordance with some embodiments of this disclosure.
[0076] Initially, video decoder 30 obtains an encoded video bitstream that includes data associated with multiple encoded pictures (610). As illustrated in Figures 4A and 4C, each picture includes multiple rows of coding tree units (CTUs), and each CTU includes one or more coding units (CUs). Video decoder 30 extracts separate pieces of information from the video bitstream, such as syntax elements and pixel values, to reconstruct the pictures row by row.
[0077] In this example, it is assumed that the video decoder 30 decodes (630) a current picture 535 depicted in FIG. 5C, more specifically, a current CU 535-1 in the current picture 535. As mentioned above, the current picture 535 has multiple reference pictures (e.g., list 0 and / or list 1). To predict a temporal motion vector, one of the reference pictures is a so-called "co-located picture" 540 of the current picture 535 as depicted in FIG. 5C. Thus, the video decoder 30 first determines (630-1) one of the reference pictures as a co-located picture of the current picture according to syntax elements shown in a predetermined order in the video bitstream. For example, in the derivation of the temporal motion vector candidate, an explicit flag (collocated_from_l0_flag) in the slice header is first sent to the video decoder 30 to indicate whether the co-located picture is, for example, selected from list 0 or list 1. The collocated reference index (collocated_ref_idx) is further sent to video decoder 30 to indicate which reference picture in the list has been selected as the collocated picture for deriving the candidate temporal motion vector.
[0078] In either case, after the reference picture of the current picture is identified as the co-located picture, the video decoder 30 determines (630-3) from the motion information of the spatially neighboring blocks of the current CU 535-1 a motion shift amount (also known as a "temporal vector") between the co-located picture and the current picture according to a certain order (see, for example, the temporal vector 537 depicted in FIG. 5C). As mentioned above, each CTU (including one or more CUs) has multiple spatially neighboring blocks, such as A0, A1, B0, B1, B2, etc. Each of the spatially neighboring blocks may have a motion vector that points to a corresponding block within a respective reference picture of the current CU. In some embodiments, the video decoder 30 checks each reference picture associated with a corresponding spatially neighboring block until one identical to the co-located picture is found. The checking order is adaptive. In some embodiments, the order of checking starts from one of list 0 and list 1 according to the low latency condition (LDC) and the syntax element "collocated_from_10_flag". LDC is a Boolean variable indicating whether all reference pictures have a lower Picture Order Count (POC) than the current picture. For example, list 0 may include at least one reference picture preceding the current picture in time, and optionally one or more reference pictures following the current picture in time. List 1 may include at least one reference picture following the current picture in time, or only reference pictures preceding the current picture in time. After identifying the reference picture associated with a particular spatially neighboring block of the current CU, the video decoder 30 determines motion information of the spatially neighboring block and uses it as a motion shift amount between the collocated picture and the current picture. Using the motion shift amount, a block inside the collocated picture may be identified as corresponding to the current CU.After video decoder 30 establishes the mapping relationship between current CU 535-1 and corresponding block 540-1 as shown in FIG. 5C, it may begin to configure a temporal motion vector prediction for each sub-block of current CU 535-1.
[0079] It is assumed that video encoder 20 split current CU 535-1 into multiple sub-CUs during generation of the video bitstream received by video decoder 30. Therefore, video decoder 30 can use the same set of syntax elements from the video bitstream to split (630-5) current CU 535-1 into multiple sub-CUs. As illustrated in FIG. 5C, each sub-CU 535-3 in current picture 535 has a corresponding sub-block at the same relative position in collocated picture 540. Video decoder 30 is responsible for reconstructing, for each sub-CU, the same temporal motion vector prediction as when video encoder 20 encodes the sub-CU into the video bitstream according to the SbTMVP process.
[0080] In some embodiments, the video decoder 30 obtains a temporal motion vector predictor for each sub-CU of the current CU based on two pieces of information: the motion shift amount between the co-located picture and the current picture, and the motion information of the block in the co-located picture corresponding to each sub-block of the current picture (630-7). For example, for each sub-CU in the current picture 535, the video decoder 30 identifies a block in the co-located picture that is in the same relative position as the sub-block of the sub-CU in the current picture according to the motion shift amount between the co-located picture and the current picture. Then, the video decoder 30 determines the motion information of the identified block in the co-located picture, and selects a motion vector as well as a reference index from the determined motion information of the identified block to derive a temporal motion vector predictor of the sub-CU according to a ratio between the POC difference between the current picture and its reference picture and the POC difference between the co-located picture and the reference picture of the corresponding block.
[0081] On the other hand, the corresponding block 540-1 in the co-located picture 540 may belong to a different CU, CTU, or even a different slice or tile, etc. It is possible that different sub-blocks in the corresponding block 540-1 may have different prediction modes, such that some of the sub-blocks in the corresponding block 540-1 may not have any motion vectors at all. In some embodiments, the video decoder 30 handles this situation by checking a particular sub-block inside the corresponding block 540-1 to determine whether the particular sub-block has motion information. If the particular sub-block has motion information, the video decoder 30 may use that of the particular sub-block as a default temporal motion vector predictor for another sub-CU of the current CU when the corresponding block in the co-located picture of the sub-CU does not have motion information. For example, before processing any sub-CU in the current CU, the video decoder 30 may first check the corresponding block of a block (or sample) at or near the center of the corresponding block 540-1 (e.g., the one immediately below the center to the right of the corresponding block 540-1) to check whether this block has motion information. If the block does not have motion information, video decoder 30 then assumes that the SbTMVP process does not apply to the current CU and proceeds to process another merge candidate in the current picture. However, if the block does have motion information, video decoder 30 assumes that the SbTMVP process applies to the current CU and uses the motion information as a default temporal motion vector predictor for any sub-CU of the current CU when the corresponding block of the current CU at the same relative position of the co-located picture does not have motion information for constructing a temporal motion vector predictor for the sub-CU. Video decoder 30 assumes that the SbTMVP process applies to the current CU and decodes the current CU accordingly using the temporal motion vector predictors obtained for the multiple sub-CUs of the current CU (630-9).
[0082] As mentioned above, intra block copy (IBC) can significantly improve the coding efficiency of screen content material. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed in the video encoder 20 to find the best block vector for each CU. Here, the block vector is used to indicate the displacement from the current block to the reference block that has already been reconstructed inside the current picture. IBC coded CUs are treated as a third prediction mode other than intra prediction mode or inter prediction mode.
[0083] 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 the CU and the block vector predictor of the CU selected from the block vector candidates of the CU is coded in the same way as the motion vector difference is coded under the above AMVP mode. The block vector prediction method uses two predictors: the left neighboring block vector candidate and the above neighboring block vector candidate (if IBC coded). When neither neighboring block vector candidate is valid, the default block vector will be used as the block vector predictor. A binary flag is signaled to indicate the index of the block vector predictor. - IBC skip / merge mode: A merge candidate index is used to indicate which of the block vector candidates in the merge candidate list from neighboring IBC coded blocks is used to predict the block vector for the current block.
[0084] To perform context-adaptive binary arithmetic coding (CABAC) of a current wavefront, the video coder may initialize a context for the current wavefront based on data of the first two blocks of the wavefront above, as well as one or more elements of a slice header of a slice that includes a first code block of the current wavefront. The video coder may use the context state to perform CABAC initialization of a subsequent wavefront (or CTU row) after encoding two CTUs of a CTU row above the subsequent CTU row. In other words, the video coder may encode at least two blocks of a wavefront above the current wavefront before starting encoding of the current wavefront, assuming that the current wavefront is not the top row of CTUs of the picture. The video coder may then initialize a CABAC context for the current wavefront after encoding at least two blocks of a wavefront above the current wavefront.
[0085] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates transfer of a computer program from one place to another, for example via a communication protocol. As such, a 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. A data storage medium may be any available medium that may be accessed by one or more computers or one or more processors to retrieve instructions, code and / or data structures for implementing the embodiments described herein. A computer program product may include a computer-readable medium.
[0086] The terminology used in the description of the embodiments herein is for the purpose of describing only certain embodiments and is 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 indicates otherwise. The term "and / or" as used herein is also understood to refer to and include any and all possible combinations of one or more of the associated listed items. It is further understood that the terms "comprise" and / or "comprising" as used herein specify the presence of stated features, elements, and / or components, but do not exclude the presence or addition of one or more other features, elements, components, and / or groups thereof.
[0087] Terms such as first, second, etc. may be used herein to describe various elements, but it will be understood that these elements should not be limited by these terms. These terms are merely used to distinguish one element from another. 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. The first electrode and the second electrode are both electrodes, but are not the same electrode.
[0088] 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 form disclosed. Many modifications, variations, and alternative embodiments 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 in order to best explain the principles and practical applications of the invention, to enable others skilled in the art to understand the invention in terms of various embodiments, and to best utilize the basic principles and various embodiments with various modifications as appropriate for the particular use contemplated. It is therefore to be understood that the claims are not limited to the specific examples of the disclosed embodiments and modifications thereof, but that other embodiments are contemplated to be included within the scope of the appended claims.
Claims
1. A method for sub-block based temporal motion vector prediction, comprising: selecting one of a plurality of reference pictures of a current picture as a co-located picture of the current picture, the plurality of reference pictures including a first reference picture list and a second reference picture list different from the first reference picture list; determining a time vector between the co-located picture and the current picture, Checking reference pictures related to a spatially neighboring block of a current CU in the current picture according to a certain order until a reference picture identical to the co-located picture is found among the reference pictures related to the spatially neighboring block of the current CU in the current picture; selecting as the temporal vector a motion vector of the one spatially neighboring block that points to the checked reference picture; and dividing the current CU into a plurality of sub-CUs, each sub-CU corresponding to a respective sub-block of the current picture; (i) obtaining a temporal motion vector predictor for each sub-CU of the current CU from the temporal vector between the co-located picture and the current picture, and (ii) motion information of a block in the co-located picture that corresponds to the respective sub-block of the current picture; encoding the current CU according to the temporal motion vector predictors of the plurality of sub-CUs of the current CU to generate a video bitstream including a first syntax element and a second syntax element; Equipped with the first syntax element indicates whether the co-located picture is selected from the first reference picture list or the second reference picture list; The second syntax element indicates which reference picture in a reference picture list indicated by the first syntax element is the co-located picture.
2. 2. The method of claim 1, wherein the first reference picture list includes at least one reference picture that precedes the current picture in time, and the second reference picture list includes at least one reference picture that follows the current picture in time.
3. 2. The method of claim 1 , wherein the fixed order is a predetermined order of the plurality of reference pictures, the predetermined order being for processing the first list of reference pictures before processing the second list of reference pictures.
4. 2. The method of claim 1 , wherein the fixed order is a predetermined order of the plurality of reference pictures, the predetermined order being for processing the second list of reference pictures before processing the first list of reference pictures.
5. 2. The method of claim 1 , The step of obtaining a temporal motion vector predictor for each sub-CU of the current CU further comprises: identifying a block in the co-located picture that is at the same relative position as the sub-block of the sub-CU in the current picture according to the time vector between the co-located picture and the current picture; determining motion information for the identified block in the co-located picture; deriving a motion vector from the determined motion information of the identified block as the temporal motion vector predictor of the sub-CU; The method further comprises:
6. 2. The method of claim 1 , The step of obtaining a temporal motion vector predictor for each sub-CU of the current CU further comprises: identifying a block in the co-located picture that corresponds to a sub-block of a central or near-central sub-CU of the current CU in the current picture; determining motion information for the identified block in the co-located picture; deriving a motion vector from the determined motion information of the identified block as a default temporal motion vector predictor of any sub-CU of the current CU when the corresponding block of the any sub-CU of the current CU in the co-located picture does not have motion information; The method further comprises:
7. one or more processors; a memory coupled to the one or more processors; A plurality of programs stored in the memory; 7. A computing device comprising: a plurality of programs, which when executed by the one or more processors, cause the computing device to perform a method according to any one of claims 1 to 6.
8. A non-transitory computer-readable recording medium storing a plurality of programs for execution by a computing device having one or more processors, A non-transitory computer-readable recording medium, the plurality of programs, when executed by the one or more processors, causing the computing device to perform the steps of the method of any one of claims 1 to 6 to generate a video bitstream and store the generated video bitstream in the non-transitory computer-readable recording medium.
9. 7. A computer program for execution by a computing device having one or more processors, the computer program causing the computing device to perform the steps of the method of any one of claims 1 to 6 to generate a video bitstream, when executed by the one or more processors.
Citation Information
Patent Citations
Moving image decoding device
WO2017195608A1