Advanced motion vector prediction-merge mode using subblock-based temporal motion vector prediction
By adopting AMVP merging mode and SbTMVP technology in video encoding and decoding, combined with AMVP and merged prediction values, the problem of insufficient motion vector prediction efficiency in the existing technology is solved, the efficiency and quality of video encoding and decoding are improved, and a more efficient Data transfer.
Patent Information
- Application Number
- CN202480000956.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-01-08
- Filing Date
- 2024-01-09
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video coding and decoding technologies have difficulty maintaining minimal quality degradation when transmitting image/video data between different devices, storage and networks. Especially in inter-frame prediction and intra-frame prediction, the prediction efficiency and accuracy of motion vectors are insufficient. Affects encoding and decoding efficiency.
Adopt advanced motion vector prediction (AMVP) merging mode, by constructing AMVP candidate list and merging candidate list, using sub-block-based temporal motion vector prediction (SbTMVP) and bidirectional prediction value, combining AMVP and merging prediction value to reconstruct the video block, improving Motion vector prediction accuracy and efficiency.
It improves the efficiency and quality of video encoding and decoding, reduces the bit overhead of data transmission, and enhances the reliability and coding gain of video signals.
Smart Images

Figure CN118633285A_ABST
Abstract
Description
Cross-references
[0001] This application claims the benefit of priority to U.S. Patent Application No. 18 / 406,411, filed on January 8, 2024, entitled “AMVP-MERGE MODE WITH SBTMVP”, which claims the benefit of priority to U.S. Provisional Application No. 63 / 437,986, filed on January 9, 2023, entitled “AMVP-Merge Mode With SbTMVP”. The disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0002] This disclosure describes embodiments generally related to video coding. Background Art
[0003] The background description provided herein is for the purpose of presenting the content of the present disclosure in general. The extent to which the work of the presently named inventors described in this background section and in various aspects of this specification is performed does not indicate that it qualifies as prior art at the time of filing this application, and it is never explicitly or implicitly admitted that it is prior art to the present disclosure.
[0004] Image / video compression helps to transmit image / video data between different devices, storage, and networks with minimal quality degradation. In some examples, video codec technology can compress video based on spatial and temporal redundancy. In one example, a video codec can use a technique called intra-frame prediction, which can compress images based on spatial redundancy. For example, intra-frame prediction can use reference data from the current picture being reconstructed for sample prediction. In another example, a video codec can use a technique called inter-frame prediction, which can compress images based on temporal redundancy. For example, inter-frame prediction can use motion compensation to predict samples in the current picture from a previously reconstructed picture. Motion compensation can be represented by a motion vector (MV). Summary of the invention
[0005] Aspects of the present disclosure include methods and apparatus for video encoding / decoding. In some examples, an apparatus for video decoding includes a processing circuit. The processing circuit receives an encoded video stream, the encoded video stream including encoded information of a current block in a current picture, the encoded information indicating an advanced motion vector prediction-merge (AMVP-merge) mode, the AMVP-merge mode using a bidirectional prediction value, the bidirectional prediction value including an AMVP prediction value in a first direction and a merge prediction value in a second direction different from the first direction. The processing circuit constructs an AMVP candidate list, the AMVP candidate list including multiple AMVP candidates for the AMVP prediction value; and constructs a merge candidate list, the merge candidate list including multiple merge candidates for the merge prediction value. The merge candidate list includes at least a sub-block-based temporal motion vector prediction (SbTMVP) candidate. The processing circuit determines an AMVP prediction value from the AMVP candidate list, selects a merge prediction value from the merge candidate list, and reconstructs the current block in the AMVP-merge mode based on a combination of a first prediction and a second prediction, wherein the first prediction is based on the AMVP prediction value in the first direction, and the second prediction is based on the merge prediction value in the second direction selected from the merge candidate list including the SbTMVP candidate.
[0006] In some examples, the merged prediction value is determined as an SbTMVP candidate. The processing circuit determines a co-located block of the current block according to the displacement vector of the SbTMVP candidate in a co-located picture of the current picture, the current block including a plurality of sub-blocks, and the co-located block including a plurality of co-located sub-blocks corresponding to the plurality of sub-blocks. The processing circuit determines a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block according to corresponding motion information of the plurality of co-located sub-blocks in the co-located block, and generates a plurality of reconstructed sub-blocks for the plurality of sub-blocks in the current block according to the plurality of motion vectors of the plurality of sub-blocks in the current block, respectively, and the plurality of reconstructed sub-blocks form a second prediction.
[0007] In some examples, to construct the merge candidate list, the processing circuitry derives the SbTMVP candidate based on the motion vector of the spatial neighboring block of the current block. In one example, the processing circuitry determines a co-located block in a co-located picture of the current picture based on the motion vector of the spatial neighboring block of the current block, and in response to the availability of sub-block-based motion information in the co-located block, uses the motion vector of the spatial neighboring block as a displacement vector (DV) of the SbTMVP candidate.
[0008] In one example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector at a center sub-block of the co-located block.
[0009] In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of the motion vector associated with the second direction at the center sub-block of the co-located block.
[0010] In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector associated with the second direction for at least one sub-block in the co-located block.
[0011] In some examples, to derive an SbTMVP candidate, the processing circuitry checks a plurality of spatially neighboring blocks in a predetermined order, and identifies a first spatially neighboring block among the plurality of spatially neighboring blocks with a first motion vector. The co-located block according to the first motion vector has available sub-block-based motion information. The processing circuitry uses the first motion vector as a displacement vector DV for the SbTMVP candidate.
[0012] In some examples, to construct the merge candidate list, a zero displacement vector (DV) is used as a SbTMVP candidate in the merge candidate list. In one example, the processing circuitry checks a plurality of spatial neighboring blocks in a predetermined order, determines that none of the plurality of spatial neighboring blocks has available sub-block-based motion information in a corresponding co-located block, and uses a zero displacement vector (DV) for the SbTMVP candidate.
[0013] In some examples, to determine multiple motion vectors corresponding to multiple sub-blocks in the current block, for a first sub-block among the multiple sub-blocks, in response to a lack of motion information in a second direction at a co-located sub-block corresponding to the first sub-block, the processing circuit determines a first motion vector of the first sub-block based on at least one of a second motion vector of a neighboring sub-block of the first sub-block in the second direction, a third motion vector of a central sub-block of the co-located block in the second direction, and a default motion vector.
[0014] In some examples, to determine multiple motion vectors corresponding to multiple sub-blocks in the current block, the processing circuit generates a binary mask for the multiple sub-blocks in the current block, and the binary bits in the binary mask of the sub-block indicate the availability of the motion vector in the second direction.
[0015] In one example, in response to a binary bit of the sub-block indicating that a motion vector in the second direction is available, a first reconstructed sub-block is generated according to an AMVP prediction value in the first direction, a second reconstructed sub-block is reconstructed according to the motion vector in the second direction, and the sub-block is reconstructed based on a combination of the first reconstructed sub-block and the second reconstructed sub-block.
[0016] In another example, in response to the binary bit of the sub-block indicating that the motion vector in the second direction is not available, a single prediction is used for the sub-block. For example, the processing circuit generates a first reconstructed sub-block in the first direction according to the AMVP prediction value, and reconstructs the sub-block based on the first reconstructed sub-block.
[0017] In some examples, the merge candidate list includes the SbTMVP candidate, one or more spatially adjacent merge candidates, and one or more temporally adjacent merge candidates in a predetermined order. In one example, the merge candidate list includes the SbTMVP candidate at the first position in the merge candidate list.
[0018] Aspects of the present disclosure also provide a non-transitory computer-readable medium for storing instructions, which, when executed by a computer, cause the computer to perform a video decoding / encoding method. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0020] Figure 1 is a schematic diagram illustrating an exemplary block diagram of a communication system (100).
[0021] Figure 2 is a schematic diagram showing an exemplary block diagram of a decoder.
[0022] Figure 3 is a schematic diagram showing an exemplary block diagram of an encoder.
[0023] Figure 4 The SbTMVP process used in a sub-block based temporal motion vector prediction (SbTMVP) mode in some examples is shown.
[0024] Figure 5 A flow chart outlining another process according to some embodiments of the present disclosure is shown.
[0025] Figure 6 A flow chart of an overview process according to some embodiments of the present disclosure is shown.
[0026] Figure 7 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION
[0027] Figure 1A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of an application of the disclosed subject matter (video encoder and video decoder in a streaming environment). The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, streaming services, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0028] The video processing system (100) includes an acquisition subsystem (113), which may include a video source (101), such as a digital camera, which creates, for example, an uncompressed video picture stream (102). In an example, the video picture stream (102) includes samples captured by a digital camera. The video picture stream (102), depicted as thick lines to emphasize the high amount of data compared to the encoded video data (104) (or the encoded video bitstream), can be processed by an electronic device (120), which includes a video encoder (103) coupled to the video source (101). The video encoder (103) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (104) (or the encoded video bitstream), depicted as thin lines to emphasize the lower amount of data compared to the video picture stream (102), can be stored on a streaming server (105) for future use. One or more streaming client subsystems, such as, Figure 1 A client subsystem (106) and a client subsystem (108) in a streaming server (105) may access a copy (107) and a copy (109) of the encoded video data (104). The client subsystem (106) may include a video decoder (110), for example, in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and generates an output video picture stream (111) that can be presented on a display (112) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (104), the encoded video data (107), and the encoded video data (109) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In an example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0029] It is understood that the electronic device (120) and the electronic device (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may include a video encoder (not shown).
[0030] Figure 2 An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., a receiving circuit). The video decoder (210) may be used to replace Figure 1 A video decoder (110) is shown in an example.
[0031] The receiver (231) may receive one or more encoded video sequences (e.g., included in a bitstream) to be decoded by the video decoder (210). In one embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the decoding of other encoded video sequences. The encoded video sequence may be received from a channel (201), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (231) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective use entities (not depicted). The receiver (231) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other cases, the buffer memory (515) may be provided external to the video decoder (210) (not depicted). In other cases, a buffer memory (not depicted) may be provided external to the video decoder (210) to, for example, prevent network jitter, and another buffer memory (215) may be provided internal to the video decoder (210) to, for example, handle playout timing. When the receiver (231) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (215) may not be required, or may be made smaller. For use on a traffic packet network such as the Internet, a buffer memory (215) may be required, which may be relatively large and may advantageously have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (210).
[0032] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the encoded video sequence. The types of symbols include information for managing the operation of the video decoder (210) and potential information for controlling a display device such as a display device (212) (e.g., a display screen) that is not an integral part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2 As shown in . The control information for one (or more) display devices may be in the form of a parameter set fragment (not depicted) of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI). The parser (220) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (220) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (220) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.
[0033] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) to create symbols (221).
[0034] Depending on the type of coded video picture or part of coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (221) may involve multiple different units. Which units are involved and how are controlled by subgroup control information parsed from the coded video sequence by the parser (220). For the sake of brevity, such subgroup control information flow between the parser (220) and the multiple units below is not depicted.
[0035] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into several functional units as described below. In a practical implementation operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0036] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as symbols (221) and control information from the parser (220), including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) can output a block including sample values, which can be input into the aggregator (255).
[0037] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of a current picture. Such prediction information may be provided by an intra-picture prediction unit (252). In some cases, the intra-picture prediction unit (252) generates a block of the same size and shape as the block being reconstructed using surrounding reconstruction information extracted from a current picture buffer (258). For example, the current picture buffer (258) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (255) adds the prediction information generated by the intra-prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.
[0038] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (253) may access the reference picture memory (257) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (221) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (251) (in this case referred to as residual samples or residual signals) by the aggregator (255), thereby generating output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (253) from the address in the reference picture memory (257) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (253) in the form of a symbol (221), and the symbol (521) may have, for example, X, Y and reference picture components. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (257) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0039] The output samples of the aggregator (255) may be subjected to various loop filtering techniques in a loop filter unit (256). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and provided to the loop filter unit (256) as symbols (221) from the parser (220). The video compression may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, and to previously reconstructed and loop filtered sample values.
[0040] The output of the loop filter unit (256) may be a sample stream that may be output to a rendering device (212) and stored in a reference picture memory (257) for subsequent inter-picture prediction.
[0041] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) may become part of the reference picture memory (257), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0042] The video decoder (210) may perform decoding operations according to a predetermined video compression technique, such as in ITU-T H.265 Recommendation or standard. The coded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the coded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the coded video sequence may also be required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the coded video sequence.
[0043] In one embodiment, the receiver (231) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0044] Figure 3 An exemplary block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., a transmission circuit). The video encoder (303) can be used to replace Figure 1 A video encoder (103) in an example.
[0045] The video encoder (303) can be used to obtain the video source (301) (not Figure 3 In another example, the video source (301) is a part of the electronic device (320) to receive video samples, and the video source can capture video images to be encoded by the video encoder (303). In another example, the video source (301) is a part of the electronic device (320).
[0046] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (303), which may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The following description focuses on samples.
[0047] According to one embodiment, the video encoder (303) can encode and compress pictures of a source video sequence into an encoded video sequence (343) in real time or under any other time constraints required. Implementing an appropriate encoding speed is a function of the controller (350). In some embodiments, the controller (350) controls other functional units as described below and is functionally coupled to the other functional units. For the sake of simplicity, the coupling is not depicted in the figure. The parameters set by the controller (350) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (350) can be configured to have other suitable functions related to the video encoder (303) optimized for a certain system design.
[0048] In some embodiments, the video encoder (303) is configured to operate in an encoding loop. As a simple description, in an example, the encoding loop may include a source encoder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and one (or more) reference pictures) and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a manner similar to that which the (remote) decoder will also create. The reconstructed sample stream (sample data) is input to a reference picture memory (334). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (334) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) is also used in some related technologies.
[0049] The operation of the "local" decoder (333) may be combined with, for example, Figure 2 The operation of the "remote" decoder of the video decoder (210) described in detail is identical. However, additional brief reference is made to Figure 2 , when symbols are available and the entropy encoder (345) and parser (220) may be able to losslessly encode / decode the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (210), including the buffer memory (215) and the parser (220), may not be fully implemented in the local decoder (333).
[0050] In one embodiment, decoder techniques other than the parsing / entropy decoding present in the decoder are present in the corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on the decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. A more detailed description is provided below in some areas.
[0051] During operation, in some examples, the source encoder (330) may perform motion compensated predictive coding that predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (332) encodes the differences between pixel blocks of the input picture and pixel blocks of one (or more) reference pictures that may be selected as prediction references for the input picture.
[0052] The local video decoder (333) can decode the encoded video data of the picture that can be designated as the reference picture based on the symbol created by the source encoder (330). The operation of the encoding engine (332) can advantageously be a lossy process. When the encoded video data is available at the video decoder ( Figure 3 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (334). In this way, the video encoder (303) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0053] The predictor (335) may perform a prediction search for the encoding engine (332). That is, for a new picture to be encoded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (335) may operate on a pixel block by pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (335), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (334).
[0054] The controller (350) can manage the encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for encoding video data.
[0055] The outputs of all the above functional units may be entropy encoded in an entropy encoder (345). The entropy encoder (345) transforms the symbols generated by the various functional units into a coded video sequence by applying lossless compression to the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0056] The transmitter (340) may buffer the encoded video sequence created by the entropy encoder (345) in preparation for transmission over a communication channel (360), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (340) may combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0057] The controller (350) may manage the operation of the video encoder (303). During encoding, the controller (350) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0058] Intra pictures (I pictures) may be encoded and decoded without using any other pictures in the sequence as a prediction source.Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures.
[0059] Predictive pictures (P pictures) may be encoded and decoded using intra prediction or inter prediction, which uses a motion vector and a reference index to predict sample values for each block.
[0060] Bidirectional predictive pictures (B pictures) can be encoded and decoded using intra prediction or inter prediction, which uses two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstructing a single block.
[0061] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the block's corresponding picture. For example, a block of an I picture may be non-predictively coded, or the block may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. A block of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. A block of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0062] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0063] In one embodiment, the transmitter (340) may transmit additional data when transmitting the encoded video. The source encoder (330) may include such data as part of the encoded video sequence. The additional data may include time / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0064] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an example, a particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0065] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0066] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.
[0067] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, a picture in a video picture sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can be recursively split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In the example, each CU is analyzed to determine a prediction type for the CU, such as an inter-prediction type or an intra-prediction type. Depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example of a prediction block, the prediction block includes a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.
[0068] It should be noted that the video encoder (101) and the video encoder (103) and the video decoder (410) and the video decoder (210) may be implemented using any suitable technology. In one embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more processors that execute software instructions.
[0069] Aspects of the present disclosure provide techniques for a specific inter-prediction mode, referred to as advanced motion vector prediction (AMVP)-merge mode, to use sub-block based temporal motion vector prediction (SbTMVP).
[0070] For example, various inter prediction modes can be used in VVC. For an inter-predicted CU, motion parameters may include one (or more) MVs, one or more reference picture indexes, a reference picture list usage index, and additional information for certain coding features generated by samples for inter prediction. Motion parameters may be signaled explicitly or implicitly. When a CU is encoded in skip mode, the CU may be associated with a PU, and no valid residual coefficients, no encoded motion vector increments or MV differences (MVDs), or reference picture indexes may be required. A merge mode may be specified, in which the motion parameters of the current CU are obtained from one (or more) neighboring CUs, including spatial and / or temporal candidates, and optional additional information introduced, for example, in VVC. The merge mode may be applied to inter-predicted CUs, not just to the skip mode. In one example, an alternative to the merge mode is the explicit transmission of motion parameters, in which one (or more) MVs, the corresponding reference picture indexes for each reference picture list, the reference picture list usage flag, and other information are explicitly signaled per CU.
[0071] In one embodiment, for example, in VVC, the VVC Test Model (VTM) reference software includes one or more inter-frame prediction coding tools, which include: extended merge prediction, merged motion vector difference (MMVD) mode, adaptive motion vector prediction (AMVP) mode with symmetric MVD signaling, affine motion compensation prediction, sub-block-based temporal motion vector prediction (SbTMVP), adaptive motion vector resolution (AMVR), motion field storage (1 / 16 luma sample MV storage and 8×8 motion field compression), bi-prediction with CU-level weights (BCW), bidirectional optical flow (BDOF), prediction refinement using optical flow (PROF), decoder-side motion vector refinement (DMVR), combined inter and intra prediction (CIIP), geometric partitioning mode (GPM), etc. Some inter-frame prediction and related methods are described in detail below.
[0072] Specifically, in some examples, in merge mode, the video encoder uses candidates from neighboring blocks (including spatial neighboring blocks and temporal neighboring blocks) to construct a candidate list of motion parameters (e.g., reference pictures and motion vectors). In some examples, a maximum number of candidates is defined, such as 5, 7, etc. In one example, the maximum number of candidates is five, and four candidates are from spatial neighboring blocks, and one candidate is from a temporal neighboring block. The selected motion parameters are signaled from the video encoder to the video decoder by sending the index of the candidate selected from the candidate list. At the video decoder, once the index is decoded, the motion parameters of the corresponding neighboring blocks of the selected candidate are inherited to the current block. The video encoder and the video decoder are configured to build the same list based on the neighboring blocks that have been encoded. Therefore, based on the index, the video decoder can identify the motion parameters of the candidate selected by the video encoder.
[0073] It should be noted that skip mode generally operates in the same manner as merge mode described above, but in skip mode, residual data is not added to the prediction block, while in merge mode, residual data is added to the prediction block. The construction of the list described above and the sending of indices to identify candidates in the list are also typically performed in skip mode. Some video codecs may treat skip mode as a different mode from merge mode, while other video coding standards may treat skip mode as a special case of merge mode.
[0074] Another mode for predicting motion parameters is called Advanced Motion Vector Prediction (AMVP) mode. In AMVP mode, a candidate list of motion vector predictors for each motion hypothesis is derived based on an encoded reference index. The candidate list includes spatial motion vector predictors for neighboring blocks associated with the same reference index, and temporal motion vector predictors derived based on motion parameters of neighboring blocks of the same block in a temporal reference picture. In one example, the candidate list includes two motion vector predictors from spatial neighboring blocks in the same current picture as the current block, and one motion vector predictor from a temporal neighboring block in a temporal reference picture of the current picture. In one example, the selected motion vector predictor is signaled by sending an index into the candidate list; in addition, the reference index value and the motion vector difference are also signaled. In another example, a template matching technique is used to select a motion vector predictor with a minimum template matching error; in addition, decoder-side motion vector refinement (DMVR) can be applied to the selected motion vector predictor. In some instances, the motion vector predictor and the motion vector for inter-frame prediction may be the same, while in other cases, the motion vector predictor and the motion vector for inter-frame prediction may be different. For example, in the AMVP mode, a motion vector used for inter prediction corresponds to a combination of a motion vector prediction value and a motion vector difference value.
[0075] In some examples (e.g., in HEVC), AMVP can be used to predict the motion vector of the current block by exploiting the spatial and temporal correlation of adjacent partitions. On the encoder side, a rate-distortion optimization (RDO) process is used to select the best motion vector predictor from a candidate list of candidates. The index of the selected candidate is then encoded and sent to the decoder. On the decoder side, the same candidate list as the encoder side can be constructed, for example, in a defined manner. In some examples, the candidate list can be constructed in three steps. In the first step, the decoder obtains spatial and temporal motion vectors from a memory buffer to form a candidate list. In the second step, duplicate motion vectors are removed from the candidate list using a redundancy check process. In the third step, a zero motion check process is optionally used to check the presence of zero motion in the candidate list. It should be noted that the construction of the candidate list eliminates duplicate motion vectors, the candidate list can be shortened, and the index of the candidate selected in the candidate list of AMVP can be signaled using fewer bits.
[0076] It should be noted that for AMVP, in some examples, the encoder also signals a reference picture index to specify the reference picture to which the motion vector prediction value specified by the index of the candidate selected in the candidate list points. In addition, for AMVP, the encoder can determine the motion vector difference (MVD) of the current block, which is the difference between the motion vector prediction value and the true motion vector or disparity motion vector used to perform inter-frame prediction of the current block. For AMVP, in addition to the reference picture index and the index of the candidate selected in the candidate list, in some examples, the encoder also writes the MVD of the current block into the bitstream.
[0077] In some examples, in the candidate list of AMVP, the number of spatially adjacent candidates is limited to no more than a threshold number, and the number of temporal candidates is limited to no more than a threshold number. For example, in the candidate list of AMVP, there are at most two spatially adjacent candidates and one co-located temporal candidate. Potential AMVP spatially adjacent candidates are located at the lower left, left, upper right, above, and upper left positions of the current block. In one example, potential AMVP spatially adjacent candidates are classified into two categories. Candidates on the left and lower left are classified as the first category, while candidates on the upper right, above, and upper left are classified as the second category. In one example, potential AMVP spatially adjacent candidates are placed into the candidate list using a scanning order. For example, the scanning order is from bottom to top in the first category, and from right to left in the second category, respectively.
[0078] In order to improve coding efficiency and reduce the transmission overhead of one (or more) MVs, sub-block-level MV refinement can be applied to extend the CU-level temporal motion vector prediction (TMVP). In one example, the sub-block-based TMVP (SbTMVP) mode enables the inheritance of sub-block-level motion information from a co-located reference picture. The co-located reference picture can be indicated by a reference index in a syntax, such as a high-level syntax (e.g., a picture header, a slice header). Each of the multiple sub-blocks in the current CU in the current picture (e.g., a current CU with a large size) can have corresponding motion information without explicitly sending a block partitioning structure or corresponding motion information. In the SbTMVP mode, the motion information of each sub-block can be obtained by, for example, the following three steps. In the first step, the displacement vector (DV) of the current CU can be derived. The DV can indicate a block in a co-located reference picture, for example, the DV points to a block in a co-located reference picture from a current block in the current picture. Therefore, the block indicated by the DV is considered to be in the same position as the current block and is called the co-located block of the current block. In the second step, the availability of SbTMVP candidates can be checked, and then the center motion (e.g., the center motion of the current CU) can be derived. In the third step, the sub-block motion information can be derived from the corresponding sub-block in the co-located block using DV. The three steps can be combined into one or two steps, and / or the order of the three steps can be adjusted.
[0079] Unlike TMVP candidate derivation in which the temporal MV is derived from a co-located block in a reference frame or reference picture, in SbTMVP mode, a DV (e.g., a DV derived from the MV of the left neighboring CU of the current CU) can be applied to locate the corresponding sub-block in the co-located reference picture for each sub-block in the current CU in the current picture. In some examples, when the corresponding sub-block is not inter-coded, the motion information of the current sub-block can be set to the center motion of the co-located block.
[0080] The SbTMVP mode may be supported by various video coding standards including, for example, VVC. Similar to the TMVP mode, for example, in HEVC, in the SbTMVP mode, the motion field (also referred to as the motion information field or MV field) in the co-located reference picture may be used to improve MV prediction and the merge mode of the CU in the current picture. In one example, the same co-located reference picture used by the TMVP mode is used in the SbTMVP mode. In one example, the SbTMVP mode differs from the TMVP mode in the following aspects: (i) the TMVP mode predicts motion information at the CU level, while the SbTMVP mode predicts motion information at the sub-CU level; (ii) the TMVP mode obtains the temporal MV from the co-located block in the co-located reference picture (for example, the co-located block is the lower right block or the center block relative to the current CU), while the SbTMVP mode may apply a motion shift before obtaining the temporal motion information from the co-located reference picture. In one example, the motion shift used in the SbTMVP mode is obtained from the MV of one of the spatially neighboring blocks of the current CU.
[0081] Figure 4 The SbTMVP process used in the SbTMVP mode is shown. The SbTMVP process can predict the MV of a sub-CU (e.g., sub-block) within a current CU (e.g., current block) (401) in a current picture (411), for example, in two steps. In the first step, check Figure 4 A spatial neighbor (e.g., A1) of the current block (401) in FIG. 4 is identified. If the spatial neighbor (e.g., A1) has an MV (421) that uses the co-located reference picture (412) as the reference picture of the spatial neighbor (e.g., A1), then the MV (421) can be selected as the motion shift (or DV) to be applied to the current block (401). If no such MV is identified (e.g., an MV that uses the co-located reference picture (412) as the reference picture), then the motion shift or DV can be set to a zero MV (e.g., (0, 0)). In some examples, if no such MV is identified for the spatial neighbor A1, then one (or more) MVs of other spatial neighbors (e.g., A0, B0, B1, etc.) are checked.
[0082] In a second step, the motion shift or DV (421) identified in the first step may be applied to the current block (401) (e.g., DV (421) is added to the coordinates of the current block) to obtain sub-CU level motion information (e.g., including MV and reference index) from the co-located reference picture (412). Figure 4In the illustrated embodiment, a motion shift or DV (421) is set to the MV of a spatial neighbor A1 (e.g., block A1) of the current block (401). Motion information of a sub-CU or sub-block (431) in the current picture (411) may be derived using motion information of a sub-block in a corresponding co-located block (402) in a co-located reference picture (412). For example, after identifying motion information of a co-located sub-CU (432) in the co-located block (402), the motion information of the co-located sub-CU (432) may be converted to motion information (e.g., one (or more) MVs and one or more reference indices) of the current sub-CU (431) using, for example, a scaling method, e.g., in a manner similar to the TMVP process used in HEVC, wherein temporal motion scaling is applied to align the reference picture of the temporal MV with the reference picture of the current CU.
[0083] The motion field of the current block (401) derived based on the DV (421) may include motion information of each sub-block (431) in the current block (401), such as one (or more) MVs and one or more associated reference indexes. The motion field of the current block (401) may also be referred to as an SbTMVP candidate and corresponds to the DV (421).
[0084] For example, the motion information of the bi-predicted sub-block (431(1)) includes a first MV, a first index indicating a first reference picture in reference picture list 0 (L0), a second MV, and a second index indicating a second reference picture in reference picture list 1 (L1). In one example, the motion information of the uni-predicted sub-block (431(2)) includes an MV and an index indicating a reference picture in L0 or L1.
[0085] In one example, a DV (421) is applied to the center position of the current block (401) to locate the shifted center position in a co-located reference picture (412). If the block including the shifted center position is not inter-coded, then the SbTMVP candidate is considered unavailable. Otherwise, if the block including the shifted center position (e.g., the co-located block (402)) is inter-coded, then the motion information of the center position of the current block (401) can be derived from the motion information of the co-located block (402) including the shifted center position in the co-located reference picture (412), referred to as the center motion of the current block (401). In one example, a scaling process can be used to derive the center motion of the current block (401) from the motion information of the co-located block (402) including the shifted center position in the co-located reference picture (412). When the SbTMVP candidate is available, the DV (421) can be applied to find the corresponding sub-block (432) in the co-located reference picture (412) for each sub-block (431) of the current block (401). The motion information of the corresponding sub-block (432) can be used to derive the motion information of the sub-block (431) in the current block (401) (e.g., in the same manner as used to derive the center motion of the current block (401)). In one example, if the corresponding sub-block is not inter-coded, the motion information of the current sub-block (431) can be set to the center motion of the current block (401).
[0086] In some examples, such as in VVC, a combined sub-block-based merge list is used in the signaling of the sub-block-based merge mode, which includes an SbTMVP candidate and one (or more) affine merge candidates. The SbTMVP mode can be enabled or disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP candidate (or SbTMVP prediction value) can be added as the first entry of the sub-block-based merge list (including the sub-block-based merge candidate), followed by one (or more) affine merge candidates. The size of the sub-block-based merge list can be signaled in the SPS. In one example, the maximum allowed size of the sub-block-based merge list is 5 in VVC. In one example, multiple SbTMVP candidates are included in the sub-block-based merge list.
[0087] In some examples, such as in VVC, the sub-CU size used in SbTMVP mode is fixed to 8x8, such as for affine merge mode. In one example, SbTMVP mode is only applicable to CUs with width and height greater than or equal to 8. The sub-block size (e.g., 8x8) can be configured to other sizes, such as 4x4 for exploring ECM software models other than VVC. In one example, multiple co-located reference pictures (e.g., two co-located frames) are used to provide temporal motion information for SbTMVP and / or TMVP.
[0088] In some examples, a specific prediction mode called AMVP-merge mode is used for dual prediction. The bidirectional prediction value of the AMVP-merge mode includes an AMVP prediction value in one direction and a merged prediction value in another direction. In some examples, when the selected merged prediction value and the AMVP prediction value meet the DMVR condition, the AMVP-merge mode can be enabled for the coding block, wherein there is at least one reference picture from the past and one reference picture from the future relative to the current picture, and the distances from the two reference pictures to the current picture are the same, and bilateral matching MV refinement is applied to the merged MV candidate (e.g., merged prediction value) and the AMVP MVP (e.g., AMVP prediction value) used as the starting point. Otherwise, if the template matching function is enabled, the template matching MV refinement is applied to the merged prediction value or the AMVP prediction value with a higher template matching cost.
[0089] In some examples, the AMVP portion of the mode is signaled as a conventional one-way AMVP, e.g., a reference index and MVD are signaled. In some examples, the AMVP portion can have a derived MVP index (e.g., an index indicating a selected AMVP prediction value) when template matching is used, or an MVP index is signaled when template matching is disabled.
[0090] In some examples, the AMVP direction is represented by LX, where X can be 0 or 1, and the merge part in the other direction (1–LX) is implicitly derived by minimizing the bilateral matching cost between the AMVP prediction value and the merge prediction value (i.e., for a pair of AMVP and merge motion vectors) (e.g., calculating the bilateral matching cost of the AMVP prediction value and the corresponding merge candidate). For each merge candidate in the merge candidate list with the motion vector in the other direction (1–LX), the bilateral matching cost is calculated using the merge candidate MV and the AMVP MV. The merge candidate with the minimum bilateral matching cost is selected. In addition, bilateral matching refinement can be applied to the coding block, which uses the selected merge candidate MV and AMVP MV as the starting point.
[0091] In some examples, the third pass of multi-pass DMVR (i.e., 8×8 sub-PU bidirectional optical flow (DBOF) refinement of multi-pass DMVR) is enabled on AMVP-merge mode coding blocks. In one example, multi-pass DMVR includes a first pass that performs block-based bilateral matching MV refinement. In addition, multi-pass DMVR includes a second pass that performs sub-block-based bilateral matching MV refinement. Multi-pass DMVR also includes a third pass that performs sub-block-based bidirectional optical flow MV refinement. In the third pass, the refined MV is derived by applying BDOF to the 8×8 grid sub-blocks.
[0092] In some examples, the AMVP-merge mode may be indicated by a flag. In one example, when the AMVP-merge mode is enabled, the AMVP direction LX is further indicated by a flag.
[0093] In some examples, when bilateral matching (BM) AMVP-merge mode is used for the current block and template matching is enabled, MVD is not signaled. In one example, an additional pair of AMVP MVP and merge MVP is introduced. The merge candidate list is sorted in increasing order based on BM cost. An index (0 or 1) is signaled to indicate which merge candidate in the sorted merge candidate list to use. When there is only one candidate in the merge candidate list, a pair of AMVP MVP and merge MVP without bilateral matching MV refinement is filled.
[0094] In some examples, for bidirectional prediction, the first prediction of the current block is based on motion information in the first direction, and the second prediction of the current block is based on motion information in the second direction. Then, the bidirectional prediction of the current block is a combination of the first prediction and the second prediction, such as an average value of the first prediction and the second prediction, a weighted sum of the first prediction and the second prediction, etc. In some examples, for the current block in AMVP-merge mode, the bidirectional prediction value of the AMVP-merge mode is used to encode the current block. The bidirectional prediction value includes an AMVP prediction value in one direction (e.g., a first direction) and a merged prediction value in another direction (e.g., a second direction). Then, the first prediction of the current block is based on the AMVP prediction value in the first direction, and the second prediction of the current block is based on the merged prediction value in the second direction. The bidirectional prediction of the current block in the AMVP-merge mode is a combination of the first prediction and the second prediction, such as an average value of the first prediction and the second prediction, a weighted sum of the first prediction and the second prediction, etc.
[0095] According to one aspect of the present disclosure, in some examples, such as in an enhanced compression model (ECM), an AMVP-merge mode is used to combine a single prediction value of an AMVP mode from one reference list and another single prediction value of a merge candidate from another reference list to form a final dual prediction value. However, in the AMVP-merge mode, the sub-block level temporal motion vector is not used as a merge candidate.
[0096] Some aspects of the present disclosure provide techniques that enable sub-block level temporal motion vectors (e.g., SbTMVP) to be used as merge candidates in AMVP-merge mode, so that motion field information can be more accurate. Therefore, by considering SbTMVP in AMVP-merge mode, the coding gain of AMVP-merge mode can be improved. For example, the encoder / decoder can construct an AMVP candidate list, the AMVP candidate list including multiple AMVP candidates for AMVP prediction values; and construct a merge candidate list, the merge candidate list including multiple merge candidates for merge prediction values, the merge candidate list including SbTMVP candidates. Then, the encoder / decoder can select an AMVP prediction value from the AMVP candidate list, select a merge prediction value from the merge candidate list, and reconstruct the current block based on a combination of a first prediction and a second prediction, the first prediction being based on the AMVP prediction value in the first direction, and the second prediction being based on the merge prediction value in the second direction.
[0097] According to some aspects of the present disclosure, during merge list construction in AMVP-merge mode, SbTMVP candidates may be added to the merge candidate list.
[0098] In some embodiments, the derivation of the added SbTMVP candidate is the same as the derivation of the SbTMVP in the sub-block merge list. Figure 4 The SbTMVP process described is used to derive SbTMVP candidates based on spatial neighboring blocks and add the derived SbTMVP candidates to the merge candidate list. Figure 4In the example shown, the left neighbor A1 is inter-coded and has MV (421). MV (421) is used as DV (421). In one example, DV (421) is applied to the center position of the current block (401) to locate the shifted center position in the co-located reference picture (412). When a block including the shifted center position (e.g., co-located block (402), a sub-block at the center of the co-located block (402)) is inter-coded, motion information of the center position of the current block (401) can be derived from, for example, motion information of the shifted center position in the co-located reference picture (402) (e.g., the center sub-block of the co-located block (402)), referred to as the center motion of the current block (401). The motion field of the current block (401) derived based on DV (421) may include motion information of each sub-block (431) in the current block (401), such as one (or more) MVs and one or more associated reference indexes. The motion field of the current block (401) may also be referred to as an SbTMVP candidate and corresponds to the DV (421). However, in one example, when the motion information at the center position of the shift in the co-located block (402) is not available, the SbTMVP candidate corresponding to the DV (421) is considered unavailable.
[0099] In some embodiments, unlike VVC, the left neighbor coding block is used for SbTMVP derivation, and a zero displacement vector (DV) is used to derive the SbTMVP at the co-located position in the co-located picture. If the co-located center sub-block motion vector in the co-located picture is not available, then the SbTMVP candidate is also not available during the merge list construction. In one example, a SbTMVP with zero DV is added to the merge candidate list. In another example, under certain conditions, a SbTMVP with zero DV is added to the merge candidate list. For example, when an SbTMVP candidate based on motion information of a spatially adjacent block is considered unavailable, a zero DV (e.g., (0, 0)) is used to derive an SbTMVP candidate at the co-located position in the co-located reference picture. When an SbTMVP candidate with zero DV is available, the SbTMVP candidate with zero DV can be added to the merge candidate list.
[0100] In some examples, multiple SbTMVPs may be added to the merge candidate list. For example, the SbTMVP candidate list includes: a first SbTMVP candidate having a DV derived from motion information of spatial neighboring blocks, and a second SbTMVP candidate having zero DV.
[0101] In some embodiments, not only the left neighbor coding block is used for SbTMVP derivation in VVC, but multiple spatial neighbor coding blocks in a predetermined order are used one by one to check the availability of SbTMVP. If the center sub-block motion vectors of all spatial neighbor coding blocks are not available, zero DV is used to derive SbTMVP. In some examples, the spatial neighbor blocks (e.g., Figure 4 A1, A0, B1 and B0 in (A1, A0, B1 and B0 in (B ...
[0102] In some embodiments, for AMVP direction LX and merge direction (1-LX), during SbTMVP derivation, only the center sub-block motion vector with the motion vector in the direction (1-LX) can be marked as "available". In some other examples, each sub-block is checked to see if it has an SbTMVP candidate with an MV associated with the direction (1-LX). If none of the sub-blocks has an SbTMVP candidate with an MV associated with the direction (1-LX), then the SbTMVP is not allowed to be applied on the AMVP-merge mode, and the related signaling is not applied. For example, when the motion vector of the center sub-block of the co-located block has the direction (1-LX) (e.g., the reference picture of the motion vector is in the direction (1-LX)), the motion information of the center sub-block of the co-located block is considered to be available for SbTMVP derivation. In some examples, each sub-block in the co-located block is checked to determine whether one of the sub-blocks in the co-located block has a motion vector in the direction (1-LX). When at least one sub-block has a motion vector in the direction (1-LX), the co-located block is used to derive an SbTMVP candidate with motion information in the direction (1-LX). When none of the sub-blocks in the co-located block has a motion vector in the direction (1-LX), then in one example, the SbTMVP candidate is not used in the AMVP-merge mode.
[0103] In some embodiments, for each sub-block, when performing motion compensation, if the associated sub-block motion vector does not have an MV for the direction (1-LX), the MV from the neighboring sub-block with the associated reference (1-LX) is used for the sub-block, the center sub-block with the associated reference (1-LX) is used for the sub-block, or the default MV (0, 0) is used for the sub-block. In some examples of motion compensation using SbTMVP candidates, for a sub-block in the current block, when there is no motion vector for the direction (1-LX) (also referred to as reference (1-LX)) according to the co-located sub-block of the SbTMVP candidate, an alternative motion vector for the direction (1-LX) is appropriately determined for the sub-block. In one example, the neighboring sub-blocks of the co-located block can be checked to find a motion vector for the direction (1-LX) as the alternative motion vector. In another example, the motion vector of the center sub-block for the direction (1-LX) is used as the alternative motion vector. In another example, a default motion vector (e.g., (0, 0)) is used as the alternative motion vector.
[0104] In some embodiments, a binary mask is derived based on the availability of the MV of each sub-block at the reference direction (1-LX). For each sub-block, if the sub-block MV at the reference direction (1-LX) is available, the mask at the associated position is marked as true, otherwise, the mask at the associated position is marked as false. During motion compensation of AMVP-merge mode using SbTMVP, the mask is used to determine whether a single prediction at 1-LX is available for each sub-block. When the associated value at the sub-block in the mask is true, dual prediction is applied, which adopts a single prediction at LX according to AMVP and a single prediction at 1-LX according to SbTMVP; otherwise, only a single prediction using AMVP at LX is used.
[0105] For example, for a current block including 4 sub-blocks (e.g., arranged in 2x2), a 2x2 binary mask is derived, and each binary bin corresponds to a sub-block and indicates the availability of the MV at the reference direction (1-LX). During motion compensation in AMVP-merge mode using SbTMVP candidates, the 2x2 binary mask is used to determine whether a single prediction at the reference direction (1-LX) is available for each sub-block. When the binary bin corresponding to the sub-block in the binary mask is true, a dual prediction can be applied to reconstruct the sub-block, which adopts a first single prediction at the reference direction (LX) according to the AMVP prediction value and a second single prediction at the reference direction (1-LX) according to the SbTMVP candidate. When the binary bin in the binary mask corresponding to the sub-block is false, the sub-block is reconstructed based on the single prediction at the reference direction LX from the AMVP prediction value.
[0106] In some embodiments, during the construction of the merge list in AMVP-merge mode, SbTMVP candidates are derived in a predetermined order. For example, during the construction of the merge candidate list, SbTMVP candidates, conventional spatial merge candidates, and temporal merge candidates are derived and placed in the merge candidate list in a predetermined order. In one example, the predetermined order is SbTMVP candidates, conventional spatial merge candidates, and temporal merge candidates. In another example, the predetermined order is conventional spatial merge candidates, SbTMVP candidates, and temporal merge candidates.
[0107] In some embodiments, when at least one SbTMVP mode is used in a block encoded by a spatial neighbor during the merge list construction in the AMVP-merge mode, the SbTMVP candidate may be derived first. For example, when one of the spatial neighbor blocks is encoded in the SbTMVP mode, the SbTMVP candidate is derived first and placed in the first position in the merge candidate list.
[0108] Figure 5 A flow chart of an overview process (500) according to an embodiment of the present disclosure is shown. The process (500) may be used in a video decoder. In various embodiments, the process (500) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some embodiments, the process (500) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (500). The process starts at (S501) and proceeds to (S510).
[0109] At (S510), encoded information of a current block in a current picture is received from an encoded video stream. The encoded information indicates an AMVP-merge mode, and the AMVP-merge mode uses a bidirectional prediction value, wherein the bidirectional prediction value includes an AMVP prediction value in a first direction and a merged prediction value in a second direction different from the first direction.
[0110] At (S520), an AMVP candidate list is constructed, the AMVP candidate list including a plurality of AMVP candidates for AMVP prediction values.
[0111] At (S530), a merge candidate list is constructed, the merge candidate list including a plurality of merge candidates for the merge prediction value. The merge candidate list includes at least an SbTMVP candidate.
[0112] At (S540), the AMVP prediction value is selected from the AMVP candidate list.
[0113] At (S550), a merge prediction value is selected from the merge candidate list.
[0114] At (S560), the current block is reconstructed according to a combination of a first prediction and a second prediction, wherein the first prediction is based on the AMVP prediction value in the first direction and the second prediction is based on the merged prediction value in the second direction.
[0115] In some examples, the merged prediction value is determined as an SbTMVP candidate. In order to reconstruct the current block, in a co-located picture of the current picture, a co-located block of the current block is determined according to the displacement vector of the SbTMVP candidate, the current block includes a plurality of sub-blocks, and the co-located block includes a plurality of co-located sub-blocks corresponding to the plurality of sub-blocks. According to the corresponding motion information of the plurality of co-located sub-blocks in the co-located block, a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block are determined. According to the plurality of motion vectors corresponding to the plurality of sub-blocks in the current block, a plurality of reconstructed sub-blocks are reconstructed for the plurality of sub-blocks in the current block respectively. The plurality of reconstructed sub-blocks form a second prediction.
[0116] In some examples, to construct a merge candidate list, the SbTMVP candidate is derived based on motion vectors of spatial neighboring blocks of the current block. In one example, a co-located block in a co-located picture of the current picture is determined based on the motion vectors of the spatial neighboring blocks of the current block. In response to the availability of sub-block based motion information in the co-located block, the motion vector of the spatial neighboring block is used as a displacement vector (DV) of the SbTMVP candidate. In one example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector at a center sub-block of the co-located block. In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector associated with the second direction at the center sub-block of the co-located block. In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector associated with the second direction of at least one sub-block in the co-located block.
[0117] In some examples, to derive an SbTMVP candidate, a plurality of spatially neighboring blocks are examined in a predetermined order. A first spatially neighboring block having a first motion vector is identified among the plurality of spatially neighboring blocks, according to which a co-located block has available sub-block-based motion information. The first motion vector is used as a displacement vector (DV) for the SbTMVP candidate.
[0118] In some examples, to construct the merge candidate list, a zero displacement vector (DV) (e.g., (0, 0)) is used as the SbTMVP candidate. In one example, multiple spatial neighboring blocks are checked in a predetermined order; when none of the multiple spatial neighboring blocks has available sub-block-based motion information in the corresponding co-located block, the zero displacement vector (DV) is used for the SbTMVP candidate.
[0119] In some examples, in order to determine multiple motion vectors corresponding to multiple sub-blocks in the current block, for a first sub-block among the multiple sub-blocks, in response to a lack of motion information in the second direction at a co-located sub-block corresponding to the first sub-block, a first motion vector of the first sub-block is determined according to a second motion vector of a neighboring sub-block of the first sub-block in the second direction. In another example, the first motion vector of the first sub-block is determined according to a third motion vector of a central sub-block of the co-located block in the second direction. In another example, the first motion vector of the first sub-block is set according to a default motion vector.
[0120] In some examples, to determine a plurality of motion vectors corresponding to a plurality of sub-blocks in the current block, a binary mask for the plurality of sub-blocks in the current block is generated. The binary mask includes binary bits associated with the plurality of sub-blocks in the current block. The binary bits in the binary mask for the sub-block indicate the availability of the motion vector in the second direction.
[0121] In one example, in response to a binary bit of the sub-block indicating that a motion vector in the second direction is available, a first reconstructed sub-block is reconstructed according to an AMVP prediction value in the first direction, a second reconstructed sub-block is reconstructed according to the motion vector in the second direction, and the sub-block is reconstructed based on a combination of the first reconstructed sub-block and the second reconstructed sub-block.
[0122] In another example, in response to the binary bit of the sub-block indicating that the motion vector in the second direction is unavailable, a single prediction is used to reconstruct the sub-block. For example, a first reconstructed sub-block is generated according to the AMVP prediction value in the first direction, and the sub-block is reconstructed based on the first reconstructed sub-block.
[0123] In some examples, the merge candidate list includes the SbTMVP candidate, one or more spatially adjacent merge candidates, and one or more temporally adjacent merge candidates in a predetermined order. In one example, the merge candidate list includes the SbTMVP candidate at the first position in the merge candidate list.
[0124] Then, the process proceeds to (S599) and ends.
[0125] The process (500) may be adjusted appropriately. One (or more) steps in the process (500) may be modified and / or omitted. Additional one (or more) steps may be added. Any suitable implementation order may be used.
[0126] Figure 6 A flow chart of an overview process (600) according to an embodiment of the present disclosure is shown. The process (600) may be used in a video encoder. In various embodiments, the process (600) is performed by a processing circuit, such as a processing circuit that performs the functions of a video encoder (103), a processing circuit that performs the functions of a video encoder (303), etc. In some embodiments, the process (600) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (600). The process starts at (S601) and proceeds to (S610).
[0127] At (S610), it is determined to use the AMVP-merge mode to encode a current block in a current picture. The AMVP-merge mode uses a bidirectional prediction value including an AMVP prediction value in a first direction and a merged prediction value in a second direction different from the first direction.
[0128] At (S620), an AMVP candidate list is constructed, the AMVP candidate list including a plurality of AMVP candidates for AMVP prediction values.
[0129] At (S630), a merge candidate list is constructed, the merge candidate list including a plurality of merge candidates for the merge predictor. The merge candidate list includes at least a sub-block based temporal motion vector prediction (SbTMVP) candidate for the merge predictor.
[0130] At (S640), selecting the AMVP prediction value from the AMVP candidate list;
[0131] At (S650), a merge prediction value is selected from the merge candidate list.
[0132] At (S660), the current block is reconstructed according to a combination of a first prediction and a second prediction, wherein the first prediction is based on the AMVP prediction value in the first direction and the second prediction is based on the merged prediction value in the second direction.
[0133] In some examples, the merged prediction value is determined as an SbTMVP candidate. In order to reconstruct the current block, in a co-located picture of the current picture, a co-located block of the current block is determined according to the displacement vector of the SbTMVP candidate, the current block includes a plurality of sub-blocks, and the co-located block includes a plurality of co-located sub-blocks corresponding to the plurality of sub-blocks. According to the corresponding motion information of the plurality of co-located sub-blocks in the co-located block, a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block are determined. According to the plurality of motion vectors corresponding to the plurality of sub-blocks in the current block, a plurality of reconstructed sub-blocks are reconstructed for the plurality of sub-blocks in the current block respectively. The plurality of reconstructed sub-blocks form a second prediction.
[0134] In some examples, to construct a merge candidate list, the SbTMVP candidate is derived based on motion vectors of spatial neighboring blocks of the current block. In one example, a co-located block in a co-located picture of the current picture is determined based on the motion vectors of the spatial neighboring blocks of the current block. In response to the availability of sub-block based motion information in the co-located block, the motion vector of the spatial neighboring block is used as a displacement vector (DV) of the SbTMVP candidate. In one example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector at a center sub-block of the co-located block. In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector associated with the second direction at the center sub-block of the co-located block. In another example, the availability of the sub-block based motion information of the co-located block is determined based on the availability of a motion vector associated with the second direction of at least one sub-block in the co-located block.
[0135] In some examples, to derive an SbTMVP candidate, a plurality of spatially neighboring blocks are examined in a predetermined order. A first spatially neighboring block having a first motion vector is identified among the plurality of spatially neighboring blocks, according to which a co-located block has available sub-block-based motion information. The first motion vector is used as a displacement vector (DV) for the SbTMVP candidate.
[0136] In some examples, to construct the merge candidate list, a zero displacement vector (DV) (e.g., (0,0)) is used as the SbTMVP candidate. In one example, multiple spatial neighboring blocks are checked in a predetermined order; when none of the multiple spatial neighboring blocks has available sub-block-based motion information in the corresponding co-located block, the zero displacement vector (DV) is used for the SbTMVP candidate.
[0137] In some examples, in order to determine multiple motion vectors corresponding to multiple sub-blocks in the current block, for a first sub-block among the multiple sub-blocks, in response to a lack of motion information in the second direction at a co-located sub-block corresponding to the first sub-block, a first motion vector of the first sub-block is determined according to a second motion vector of a neighboring sub-block of the first sub-block in the second direction. In another example, the first motion vector of the first sub-block is determined according to a third motion vector of a central sub-block of the co-located block in the second direction. In another example, the first motion vector of the first sub-block is set according to a default motion vector.
[0138] In some examples, to determine a plurality of motion vectors corresponding to a plurality of sub-blocks in the current block, a binary mask for the plurality of sub-blocks in the current block is generated. The binary mask includes binary bits associated with the plurality of sub-blocks in the current block. The binary bits in the binary mask for the sub-block indicate the availability of the motion vector in the second direction.
[0139] In one example, in response to a binary bit of the sub-block indicating that a motion vector in the second direction is available, a first reconstructed sub-block is reconstructed according to an AMVP prediction value in the first direction, a second reconstructed sub-block is reconstructed according to the motion vector in the second direction, and the sub-block is reconstructed based on a combination of the first reconstructed sub-block and the second reconstructed sub-block.
[0140] In another example, in response to the binary bit of the sub-block indicating that the motion vector in the second direction is unavailable, a single prediction is used to reconstruct the sub-block. For example, a first reconstructed sub-block is generated according to the AMVP prediction value in the first direction, and the sub-block is reconstructed based on the first reconstructed sub-block.
[0141] In some examples, the merge candidate list includes the SbTMVP candidate, one or more spatially adjacent merge candidates, and one or more temporally adjacent merge candidates in a predetermined order. In one example, the merge candidate list includes the SbTMVP candidate at the first position in the merge candidate list.
[0142] Then, the process proceeds to (S699) and ends.
[0143] The process (600) may be adjusted appropriately. One (or more) steps in the process (600) may be modified and / or omitted. Additional one (or more) steps may be added. Any suitable implementation order may be used.
[0144] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Figure 7 A computer system (700) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0145] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode, etc.
[0146] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, IoT devices, etc.
[0147] Figure 7 The components of the computer system (70) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Neither should the configuration of the components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (700).
[0148] The computer system (700) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface device may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), video (e.g., two-dimensional video, three-dimensional video including stereoscopic video), etc.
[0149] The input human-machine interface device may include one or more of the following (only one of each is shown): keyboard (701), mouse (702), touchpad (703), touch screen (710), data gloves (not shown), joystick (705), microphone (706), scanner (707), camera (708).
[0150] The computer system (700) may include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses, for example, through tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (710), a data glove (not shown), or a joystick (705), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (709), headphones (not depicted)), visual output devices (e.g., screens (710) including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or outputs in more than three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays, and smoke tanks (not depicted), and printers (not depicted).
[0151] The computer system (700) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (720) with CD / DVD etc. media (721), thumb drives (722), removable hard drives or solid-state drives (723), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), etc.
[0152] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0153] The computer system (700) may also include an interface (754) to one or more communication networks (755). The network may be, for example, a wireless network, a wired network, an optical network. The network may also be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial television including CANBus, etc. Some networks typically require an external network interface adapter connected to some common data port or peripheral bus (749) (e.g., a USB port of the computer system (700)); as described below, other network interfaces are typically integrated into the kernel of the computer system (700) by connecting to the system bus (e.g., connecting to an Ethernet interface in a PC computer system or connecting to a cellular network interface in a smartphone computer system). The computer system (700) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., a CANbus connected to certain CANbus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0154] The above-mentioned human-machine interface device, human-machine accessible storage device, and network interface may be attached to the kernel ( 740 ) of the computer system ( 700 ).
[0155] The core (740) may include one or more central processing units (CPUs) (741), graphics processing units (GPUs) (742), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (743), hardware accelerators (744) for certain tasks, graphics adapters (750), etc. These devices as well as read-only memory (ROM) (745), random access memory (746), internal mass storage (747) such as internal non-user accessible hard drives, SSDs, etc., may be connected via a system bus (748). In some computer systems, the system bus (748) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be connected directly to the core's system bus (748) or to the core's system bus (1848) via a peripheral bus (749). In one example, a screen (710) may be connected to a graphics adapter (750). The architecture of the peripheral bus includes PCI, USB, etc.
[0156] The CPU (741), GPU (742), FPGA (743) and accelerator (744) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (745) or RAM (746). Transition data can also be stored in RAM (746), while permanent data can be stored, for example, in internal mass storage (747). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (741), GPUs (742), mass storage (747), ROM (745), RAM (746), etc.
[0157] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0158] As a non-limiting example, a computer system having an architecture (700), particularly a kernel (740), can provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as described above, as well as certain non-temporary memories of the kernel (740), such as kernel internal mass storage (747) or ROM (745). Software implementing the various embodiments of the present disclosure can be stored in such devices and executed by the kernel (740). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software can cause the kernel (740), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (746) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator (744)) that may replace software or operate in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing software for execution, circuitry embodying logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.
[0159] As used in this disclosure, "at least one" or "one" is intended to include any one or combination of the elements. For example, references to at least one of A, B, or C, at least one of A, B, and C, at least one of A, B, and / or C, and at least one of A to C are intended to include only A, only B, only C, or any combination thereof. References to one of A or B and one of A and B are intended to include A or B or (A and B). Where applicable (e.g., when the elements are not mutually exclusive), the use of "one of" does not exclude any combination of the elements.
[0160] Although the present disclosure has described a number of exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present disclosure. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and therefore fall within the spirit and scope of the present disclosure.
Claims
1. A video decoding method, comprising: receiving an encoded video stream, the encoded video stream comprising encoded information of a current block in a current picture, the encoded information indicating an advanced motion vector prediction-merge (AMVP-merge) mode, the AMVP-merge mode using a bidirectional prediction value, the bidirectional prediction value comprising an AMVP prediction value in a first direction and a merged prediction value in a second direction different from the first direction; Constructing an AMVP candidate list, wherein the AMVP candidate list includes a plurality of AMVP candidates for AMVP prediction values; Constructing a merge candidate list, the merge candidate list including a plurality of merge candidates for the merge prediction value, the merge candidate list including at least a sub-block based temporal motion vector prediction (SbTMVP) candidate; Selecting the AMVP prediction value from the AMVP candidate list; Selecting the merged prediction value from the merge candidate list having the SbTMVP candidate; as well as The current block is reconstructed in the AMVP-merge mode according to a combination of a first prediction based on the AMVP prediction value in the first direction and a second prediction based on a merged prediction value in the second direction selected from the merge candidate list having the SbTMVP candidate.
2. The method according to claim 1, wherein: The merged prediction value is determined as the SbTMVP candidate, and the reconstructing the current block includes: In a co-located picture of the current picture, determining a co-located block of the current block according to the displacement vector of the SbTMVP candidate, the current block comprising a plurality of sub-blocks, and the co-located block comprising a plurality of co-located sub-blocks corresponding to the plurality of sub-blocks; Determining, according to corresponding motion information of the plurality of co-located sub-blocks in the co-located block, a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block; and According to a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block, a plurality of reconstructed sub-blocks are respectively generated for the plurality of sub-blocks in the current block, and the plurality of reconstructed sub-blocks form the second prediction.
3. The method according to claim 1, wherein: The reconstructing the merge candidate list further comprises: The SbTMVP candidate is derived according to the motion vectors of the spatial neighboring blocks of the current block.
4. The method according to claim 3, wherein: The deriving of the SbTMVP candidate further comprises: Determining a co-located block in a co-located picture of the current picture according to the motion vector of the spatially adjacent block of the current block; and In response to sub-block based motion information being available in the co-located block, the motion vector of the spatial neighboring block is used as a displacement vector (DV) of the SbTMVP candidate.
5. The method according to claim 4, wherein: Availability of the sub-block based motion information of the co-located block is determined based on availability of a motion vector at a center sub-block of the co-located block.
6. The method according to claim 5, wherein: Availability of the sub-block based motion information of the co-located block is determined based on availability of a motion vector associated with the second direction at the center sub-block of the co-located block.
7. The method according to claim 4, wherein: Availability of the sub-block based motion information of the co-located block is determined based on availability of a motion vector associated with the second direction for at least one sub-block in the co-located block.
8. The method according to claim 3, wherein: The deriving of the SbTMVP candidate further comprises: checking a plurality of spatially adjacent blocks in a predetermined order; identifying a first spatial neighboring block having a first motion vector among the plurality of spatial neighboring blocks, according to which a co-located block has available sub-block based motion information; and The first motion vector is used as a displacement vector (DV) of the SbTMVP candidate.
9. The method according to claim 1, wherein: The reconstructing the merge candidate list further comprises: A zero displacement vector (DV) is used for the SbTMVP candidate.
10. The method according to claim 9, further comprising: checking a plurality of spatially adjacent blocks in a predetermined order; determining that none of the plurality of spatially neighboring blocks has sub-block based motion information available in a corresponding co-located block; as well as A zero displacement vector (DV) is used for the SbTMVP candidate.
11. The method according to claim 2, wherein: Determining a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block further comprises: For a first subblock among the multiple subblocks, in response to lack of motion information in the second direction at a co-located subblock corresponding to the first subblock, determining a first motion vector for the first subblock according to at least one of the following: a second motion vector of a subblock adjacent to the first subblock in the second direction; A third motion vector of the central subblock of the co-located block in the second direction; and Default motion vector.
12. The method according to claim 2, wherein: Determining a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block further comprises: A binary mask is generated for the plurality of sub-blocks in the current block, a binary bit in the binary mask for the sub-block indicating availability of a motion vector in the second direction.
13. The method according to claim 12, wherein: The reconstructing the current block comprises: In response to the binary bit of the sub-block indicating that the motion vector in the second direction is available, Generate a first reconstructed sub-block according to the AMVP prediction value in the first direction; generating a second reconstructed sub-block according to the motion vector in the second direction; and The sub-block is reconstructed based on a combination of the first reconstructed sub-block and the second reconstructed sub-block.
14. The method according to claim 12, wherein: The reconstructing the current block comprises: In response to the binary bit of the sub-block indicating that the motion vector in the second direction is not available, generating a first reconstructed sub-block according to the AMVP prediction value in the first direction; and The sub-block is reconstructed based on the first reconstructed sub-block.
15. The method according to claim 1, wherein: The merge candidate list includes the SbTMVP candidate, one or more spatial neighboring merge candidates, and one or more temporal neighboring merge candidates in a predetermined order.
16. The method according to claim 1, wherein: The merge candidate list includes the SbTMVP candidate at a first position in the merge candidate list.
17. An apparatus for video decoding, comprising a processing circuit, wherein the processing circuit is configured to: Receiving an encoded video stream, the encoded video stream comprising encoded information of a current block in a current picture, the encoded information indicating an advanced motion vector prediction-merge (AMVP-merge) mode, the AMVP-merge mode using a bidirectional prediction value, the bidirectional prediction value comprising an AMVP prediction value in a first direction and a merged prediction value in a second direction; Constructing an AMVP candidate list, wherein the AMVP candidate list includes a plurality of AMVP candidates for AMVP prediction values; constructing a merge candidate list, the merge candidate list including a plurality of merge candidates for the merge prediction value, the merge candidate list including at least a sub-block based temporal motion vector prediction (SbTMVP) candidate added to the plurality of merge candidates for the merge prediction value; Selecting the AMVP prediction value from the AMVP candidate list; Selecting the merged prediction value from the merge candidate list having the SbTMVP candidate; as well as The current block is reconstructed in the AMVP-merge mode according to a combination of a first prediction and a second prediction, wherein the first prediction is based on the AMVP prediction value and the first reference picture in the first direction, and the second prediction is based on the merged prediction value and the second reference picture selected from the merged candidate list having the SbTMVP candidate in the second direction.
18. The device according to claim 17, wherein: The merged prediction value is determined as the SbTMVP candidate, and the processing circuit is configured to: In a co-located picture of the current picture, determining a co-located block of the current block according to the displacement vector of the SbTMVP candidate, the current block comprising a plurality of sub-blocks, and the co-located block comprising a plurality of co-located sub-blocks corresponding to the plurality of sub-blocks; Determine, according to corresponding motion information of the plurality of co-located sub-blocks in the co-located block, a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block; as well as According to a plurality of motion vectors corresponding to the plurality of sub-blocks in the current block, a plurality of reconstructed sub-blocks are respectively generated for the plurality of sub-blocks in the current block, and the plurality of reconstructed sub-blocks form the second prediction.
19. The device according to claim 17, wherein: The processing circuit is configured to: The SbTMVP candidate is derived according to the motion vectors of the spatial neighboring blocks of the current block.
20. The device according to claim 19, wherein The processing circuit is configured to: Determine, according to the motion vector of the spatially adjacent block of the current block, a co-located block in a co-located picture of the current picture; as well as Responsive to the availability of sub-block based motion information in the co-located block, the motion vector of the spatial neighboring block is used as a displacement vector (DV) of the SbTMVP candidate.
