Subblock-based motion vector predictor and mv offset in amvp mode
By introducing sub-block-based temporal motion vector prediction and advanced motion vector prediction techniques, the video coding process is optimized, solving the problem of high redundancy in intra-frame prediction and motion compensation, and achieving more efficient video compression and coding.
Patent Information
- Application Number
- CN202380015645.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-06
- Filing Date
- 2023-11-07
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video coding technologies suffer from high redundancy and low coding efficiency in intra-frame prediction and motion compensation, especially when processing complex video content, making it difficult to effectively utilize the correlation between video frames and intra-frame for efficient compression.
The Sub-Block-Based Temporal Motion Vector Prediction (SbTMVP) mode is adopted. By using motion vector offset information and advanced motion vector prediction (AMVP) mode, combined with affine AMVP and adaptive motion vector resolution (AMVR) technology, the motion vector encoding process is optimized and the transmission of redundant information is reduced.
It improves video encoding efficiency, reduces the amount of encoded data, increases video compression rate, and maintains video quality, adapting to the encoding needs of video content with different resolutions and complexities.
Smart Images

Figure CN118633281A_ABST
Abstract
Description
Incorporation by reference
[0001] This application claims the benefit of priority to U.S. Patent Application No. 18 / 387,378, filed on November 6, 2023, entitled “SUBBLOCK BASED MOTION VECTORPREDICTOR WITH MV OFFSET IN AMVP MODE,” which claims the benefit of priority to U.S. Provisional Application No. 63 / 437,990, filed on January 9, 2023, entitled “Subblock Based Motion Vector Predictor With MV Offset In AMVP Mode.” The entire disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0002] This disclosure describes embodiments generally related to video encoding. Background Art
[0003] The background description provided herein is for the purpose of presenting the disclosure of the present application in general. The extent to which the work of the inventors currently named 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, and it is never explicitly or implicitly admitted that it is prior art disclosed in this application.
[0004] An uncompressed digital image and / or video may include a series of pictures, each picture having a spatial size of, for example, 1920×1080 luma samples and associated chroma samples. The series of pictures may have a fixed or variable picture rate (also informally referred to as a frame rate) of, for example, 60 pictures per second or 60 Hz. Uncompressed images and / or videos have specific bit rate requirements. For example, 1080p60 4:2:0 video with 8 bits per sample (at a 60 Hz frame rate, with a resolution of 1920×1080 luma samples) requires a bandwidth of nearly 1.5 Gbit / s. One hour of such video requires more than 600 GB of storage space.
[0005] One purpose of image and / or video encoding and decoding can be to reduce redundancy in input image and / or video signals by compression. Compression can help reduce the above-mentioned bandwidth and / or storage space requirements, in some cases by two orders of magnitude or more. Although the description herein uses video encoding / decoding as an illustrative example, the same technology can be applied to image encoding / decoding in a similar manner without departing from the spirit of the present disclosure. Lossless compression and lossy compression and their combinations can be used. Lossless compression refers to a technology that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may be different from the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal usable for the intended application. In the case of video, lossy compression is widely used. The amount of tolerable distortion depends on the application; for example, users of certain consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression rate can reflect that higher tolerable / admissible distortion can produce higher compression rates.
[0006] Video encoders and decoders may utilize techniques from several broad categories including, for example, motion compensation, transform processing, quantization, and entropy coding.
[0007] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives (e.g., independent decoder refresh pictures) can be used to reset the decoder state and can therefore be used as the first picture in an encoded video stream and video session, or as a still image. Samples of intra-blocks may be transformed, and transform coefficients may be quantized before entropy coding. Intra-prediction may be a technique for minimizing sample values in a pre-transform domain. In some cases, the smaller the DC value after the transform, and the smaller the AC coefficient, the fewer bits are required to represent the block after entropy coding at a given quantization step size.
[0008] Traditional intra-frame coding used in, for example, MPEG-2 generation coding techniques does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to perform predictions based on, for example, surrounding sample data and / or metadata obtained during encoding and / or decoding of a data block. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. It should be noted that, in at least some cases, intra-frame predictions use only reference data from the current picture being reconstructed, and do not use reference data from reference pictures.
[0009] Intra-frame prediction can take many different forms. When more than one such technique is available for use in a given video coding technique, the particular technique in use may be encoded into a particular intra-frame prediction mode that uses that particular technique. In some cases, an intra-frame prediction mode may have sub-modes and / or parameters that may be encoded separately or contained in a mode codeword that defines the prediction mode being used. Which codeword is used for a given mode, sub-mode, and / or parameter combination may affect the coding efficiency gain through intra-frame prediction and may therefore affect the entropy coding technique used to convert the codeword into a bitstream.
[0010] H.264 introduced a certain intra prediction mode, which was refined in H.265 and further refined in newer coding techniques such as the joint exploration model (JEM), versatile video coding (VVC), and benchmark set (BMS). The prediction block can be formed using the values of neighboring samples of samples that are already available. The sample values of neighboring samples are copied into the prediction block according to a direction. The reference to the direction used can be encoded in the bitstream, or it can be predicted itself.
[0011] refer to Figure 1A , a subset of 9 known prediction directions from the 33 possible prediction directions defined in H.265 (corresponding to 33 angular modes for 35 intra modes) is depicted at the bottom right. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction along which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted from one or more samples at the top right and at an angle of 45 degrees to the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from one or more samples at an angle of 22.5 degrees to the horizontal to the bottom left of sample (101).
[0012] Still reference Figure 1A, a square block (104) of 4×4 samples is depicted in the upper left (indicated by the bold dashed line). The square block (104) includes 16 samples, each of which is labeled with "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (starting from the top) and the first sample in the X dimension (starting from the left). Similarly, sample S44 is the fourth sample in the Y dimension and the fourth sample in the X dimension in the block (104). Since the size of the block is 4×4 samples, S44 is located in the lower right corner. Reference samples are also shown following a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index) and X position (column index) relative to the block (104). In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed, so there is no need to use negative values.
[0013] Intra picture prediction works by copying reference sample values from neighboring samples indicated by a signaled prediction direction. For example, assume that the encoded video bitstream includes signaling that indicates a prediction direction consistent with arrow (102) for the block, i.e., predicting samples from the sample at the top right and at a 45 degree angle to the horizontal. In this case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Sample S44 is then predicted from reference sample R08.
[0014] In some cases, the values of multiple reference samples may be combined, such as by interpolation, to compute the reference sample; particularly when the directions are not evenly separated by 45 degrees.
[0015] As video coding techniques have evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. In H.265 (2013), this increased to 33 directions. Currently, JEM / VVC / BMS can support up to 65 directions. Experiments have been conducted to identify the most likely directions, and some techniques in entropy coding are used to represent those possible directions with a small number of bits, accepting a certain cost for less likely directions. In addition, the direction itself can sometimes be predicted from neighboring directions used in neighboring blocks that have already been decoded.
[0016] Figure 1B A schematic diagram (110) is shown depicting 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions over time.
[0017] The mapping of intra-prediction direction bits representing directions in the coded video bitstream may vary from one video coding technique to another. For example, such mappings may range from simple direct mappings, codewords, complex adaptive schemes involving most probable modes, and similar techniques. However, in most cases, there may be certain directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-functioning video coding technique, those less likely directions may be represented by more bits than more likely directions.
[0018] Image and / or video encoding and decoding may be performed using inter picture prediction with motion compensation. Motion compensation may be a lossy compression technique, and may involve a technique where a block of sample data from a previously reconstructed picture or portion thereof (reference picture) is used to predict a newly reconstructed picture or picture portion after being spatially shifted in a direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension indicating the reference picture being used (indirectly, the third dimension may be a temporal dimension).
[0019] In some video compression techniques, the MV applicable to a region of sample data may be predicted based on other MVs, for example, based on other MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and that precede the MV in decoding order. Doing so can greatly reduce the amount of data required to encode the MV, thereby eliminating redundancy and increasing compression. MV prediction can work effectively, for example, because when encoding an input video signal obtained from a camera (called natural video), there is a statistical probability that a larger area than the area for which a single MV applies moves in a similar direction, so in some cases, similar motion vectors derived from MVs of adjacent areas can be used to predict the larger area. This makes the MV found for a given area similar or identical to the MV predicted from the surrounding MVs, and then after entropy coding, the MV can be represented with fewer bits than would be used if the MV was encoded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself may be lossy, for example due to rounding errors when calculating predicted values from multiple surrounding MVs.
[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Recommendation H.265, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, a technique referred to as "spatial merging" is described below with reference to FIG. 2 .
[0021] Referring to Figure 2, the current block (201) includes samples that have been found by the encoder during the motion search process, which can be predicted from a previous block of the same size that has been spatially offset. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, such as using the MV associated with any of the five surrounding samples labeled A0, A1 and B0, B1, B2 (corresponding to 202 to 206, respectively), and deriving the MV from the nearest reference picture (in decoding order). In H.265, MV prediction can use prediction values from the same reference picture that neighboring blocks are using. Summary of the invention
[0022] Various aspects disclosed in the present application provide methods and devices for video encoding / decoding. In some examples, a device for video decoding includes a processing circuit. In one embodiment, the processing circuit receives displacement vector (DV) offset information of a current block in a current picture from an encoded video code stream. The current block includes multiple sub-blocks reconstructed using a sub-block-based temporal motion vector prediction (SbTMVP) mode. The updated DV of the current block can be determined based on the DV of the current block and the DV offset of the current block. The DV offset is indicated by the DV offset information. The updated DV of the current block indicates a collocated block in a collocated reference picture. The collocated block is collocated with the current block. The processing circuit determines motion information of a sub-block in a plurality of sub-blocks based on motion information of a corresponding sub-block in the collocated block, and reconstructs a sub-block in a plurality of sub-blocks based on motion information of the sub-block in the plurality of sub-blocks. In some examples, the encoded information of the current block in the encoded video code stream indicates an advanced motion vector prediction (AMVP) mode having motion vector predictor (MVP) information and motion vector offset (MVO) information in the encoded information of the current block. The processing circuit selects an MVP from the MVP candidate list based on MVP information for the AMVP mode in the encoded information of the current block, and uses the MVP as the SbTMVP candidate to derive the DV.
[0023] In some examples, the processing circuit constructs an MVP candidate list, the MVP candidate list includes a sub-block based merge candidate list, the sub-block based merge candidate list includes one or more SbTMVP candidates. In one example, the sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order. In another example, the sub-block based merge candidate includes a zero DV used as an SbTMVP candidate.
[0024] In some examples, the processing circuit checks one or more spatial neighboring blocks of the current block in a predetermined order for the availability of the center sub-block motion vector. For the spatial neighboring blocks of the current block, in response to the center sub-block motion vector of the spatial neighboring block being available, the processing circuit adds the spatial neighboring block as a candidate to the MVP candidate list. In response to no spatial neighboring block in the one or more spatial neighboring blocks having an available center sub-block motion vector, the processing circuit adds zero DV to the MVP candidate list.
[0025] In some examples, the encoded information indicates an affine AMVP mode.The processing circuit constructs an affine AMVP candidate list including one or more SbTMVP candidates.
[0026] In one example, the processing circuit inserts the SbTMVP candidate at a first position in the affine AMVP candidate list.
[0027] In some examples, the processing circuit checks whether there is an affine-coded block in the spatial neighboring blocks of the current block. In response to no spatial neighboring blocks being affine-coded in the spatial neighboring blocks, the processing circuit inserts the SbTMVP candidate at the first position in the affine AMVP candidate list. In response to the presence of an affine-coded block in the spatial neighboring blocks, the processing circuit inserts the SbTMVP candidate at the last position in the affine AMVP candidate list.
[0028] In some examples, the processing circuit determines the precision of MVO information in the encoded information of the current block in the encoded video stream, the MVO information being encoded into the encoded video stream with the precision through adaptive motion vector resolution (AMVR). The processing circuit determines the motion offset of the DV based on the precision of the MVO information.
[0029] In some examples, the processing circuit decodes, via the AMVR, an index indicating the precision of the MVO information from the encoded video bitstream.
[0030] In some examples, the precision of the MVO information is in units of M pixels, where M is a positive integer.
[0031] In some examples, the precision of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0032] In some examples, the processing circuitry also scales the motion offset of the DV based on the size of the sub-block.
[0033] Aspects disclosed in the present application also provide a non-transitory computer-readable medium storing instructions, which, when executed by a computer for video decoding, enable the computer to perform a method for video decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Further 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:
[0035] Figure 1A is a schematic illustration of an exemplary subset of intra prediction modes.
[0036] Figure 1B is a diagram of exemplary intra prediction directions.
[0037] FIG. 2 shows an example of a current block ( 201 ) and surrounding samples.
[0038] Figure 3 is a schematic illustration of an exemplary block diagram of a communication system (300).
[0039] Figure 4 is a schematic illustration of an exemplary block diagram of a communication system (400).
[0040] Figure 5 is a schematic illustration of an exemplary block diagram of a decoder.
[0041] Figure 6 is a schematic illustration of an exemplary block diagram of an encoder.
[0042] Figure 7 A block diagram of an exemplary encoder is shown.
[0043] Figure 8 A block diagram of an exemplary decoder is shown.
[0044] Fig. 9 The positions of spatial merging candidates according to the embodiment disclosed in the present application are shown.
[0045] Fig.10 Candidate pairs according to an embodiment disclosed in the present application are shown, which are considered for redundancy checking of spatial merging candidates.
[0046] Fig.11 Exemplary motion vector scaling for temporal merging candidates is shown.
[0047] Fig.12 Exemplary candidate positions of temporal merging candidates for the current coding unit are shown.
[0048] Fig.13 and Fig.14 An example of the search process in Merged Motion Vector Difference (MMVD) mode is shown.
[0049] Fig.15 Additional refinement locations along multiple diagonal angles in the MMVD pattern are shown.
[0050] Fig.16 and Fig.17 An exemplary sub-block based temporal motion vector prediction (SbTMVP) process used in SbTMVP mode is shown.
[0051] Fig.18 A flow chart outlining an encoding process according to some embodiments disclosed herein is shown.
[0052] Fig.19A A flow chart outlining a decoding process according to some embodiments disclosed herein is shown.
[0053] Fig.19B A flow chart outlining a decoding process according to some embodiments disclosed herein is shown.
[0054] Fig. 20 A flow chart outlining an encoding process according to some embodiments disclosed herein is shown.
[0055] Fig.21 A flow chart outlining a decoding process according to some embodiments disclosed herein is shown.
[0056] Fig. 22 A flowchart outlining a process according to some embodiments disclosed herein is shown.
[0057] Fig.23 A flowchart outlining a process according to some embodiments disclosed herein is shown.
[0058] Fig.24 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION
[0059] Figure 3 An exemplary block diagram of a communication system (300) is shown. The communication system (300) includes a plurality of terminal devices that can communicate with each other via, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). Figure 3In the example of , a first pair of terminal devices (310) and (320) perform unidirectional data transmission. For example, the terminal device (310) can encode video data (e.g., a video picture stream collected by the terminal device (310)) for transmission to another terminal device (320) via a network (350). The encoded video data can be transmitted in the form of one or more encoded video code streams. The terminal device (320) can receive the encoded video data from the network (350), decode the encoded video data to recover the video picture, and display the video picture based on the recovered video data. Unidirectional data transmission can be common in applications such as media services.
[0060] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, for example, during a video conference. For bidirectional data transmission, in one example, each of the terminal devices (330) and (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (330) and (340) via a network (350). Each of the terminal devices (330) and (340) can also receive the encoded video data transmitted by the other terminal device (330) and (340), and can decode the encoded video data to restore the video picture, and can display the video picture on an accessible display device based on the restored video data.
[0061] exist Figure 3 In the example of, terminal device (310), terminal device (320), terminal device (330) and terminal device (340) are respectively shown as a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited to this. The embodiments disclosed in the present application find application in laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (350) represents any number of networks that transmit encoded video data between terminal devices (310), terminal devices (320), terminal devices (330) and terminal devices (340), including, for example, wired (wired) and / or wireless communication networks. Communication network (350) can exchange data in circuit switching channels and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of this discussion, unless otherwise described below, the architecture and topology of network (350) may be irrelevant to the operations disclosed in the present application.
[0062] As examples of applications of the disclosed subject matter, Figure 4A video encoder and a video decoder are shown 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.
[0063] The streaming system may include an acquisition subsystem (413), which may include a video source (401), such as a digital camera, which creates, for example, an uncompressed video picture stream (402). In one example, the video picture stream (402) includes samples captured by a digital camera. The video picture stream (402), which is depicted as a thick line to emphasize the high amount of data compared to the encoded video data (404) (or the encoded video bitstream), can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) 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 (404) (or the encoded video bitstream), which is depicted as a thin line to emphasize the lower amount of data compared to the video picture stream (402), can be stored on a streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4 The client subsystem (406) and the client subsystem (408) in the streaming server (405) can access the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in an electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and creates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or other display device (not depicted). In some streaming systems, the encoded video data (404), (407) and (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as next-generation video coding (VVC). The disclosed subject matter can be used in the context of VVC.
[0064] It should be noted that the electronic device (420) and the electronic device (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).
[0065] Figure 5An exemplary block diagram of a video decoder (510) is shown. The video decoder (510) may be included in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) in an example of FIG.
[0066] The receiver (531) may receive one or more encoded video sequences to be decoded by the video decoder (510). 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 (501), which may be a hardware / software link leading to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data and other data, such as the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (531) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other applications, the buffer memory (515) may be located external to the video decoder (510) (not depicted). In still other applications, a buffer memory (not depicted) may be provided external to the video decoder (510) to, for example, prevent network jitter, and another buffer memory (515) may be provided internal to the video decoder (510) to, for example, handle playback timing. When the receiver (531) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (515) may not be required, or the buffer memory may be made smaller. For use over a traffic packet network such as the Internet, the buffer memory (515) may be required, the buffer memory (515) may be relatively large, advantageously may 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 (510).
[0067] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (510) and potential information for controlling a display device such as a display device (512) (e.g., a display screen) that is not an integral part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5As shown. The control information for the display device 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 (520) 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, etc. The parser (520) 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), etc. The parser (520) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, etc.
[0068] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515), thereby creating symbols (521).
[0069] Depending on the type of coded video picture or part of coded video picture (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of symbol (521) may involve multiple different units. Which units are involved and how they are involved can be controlled by the parser (520) through subgroup control information parsed from the coded video sequence. For clarity, such subgroup control information flow between the parser (520) and the multiple units below is not depicted.
[0070] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into a number of functional units as described below. In actual implementations 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 purposes of describing the disclosed subject matter, the conceptual subdivision into the multiple functional units described below is appropriate.
[0071] The first unit is a sealer / inverse transform unit (551). The sealer / inverse transform unit (551) receives quantized transform coefficients as symbols (521) from the parser (520) and control information including which transform to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (551) may output a block including sample values, which may be input into an aggregator (555).
[0072] In some cases, the output samples of the scaler / inverse transform unit (551) may belong to an intra-coded block. An intra-coded block is a block that does not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of a current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) uses surrounding reconstructed information extracted from a current picture buffer (558) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (558) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) may add the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551) on a per-sample basis.
[0073] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to a block that is inter-coded and potentially motion compensated. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (521) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (551) (in this case, referred to as residual samples or residual signals) by the aggregator (555) to generate output sample information. The extraction of prediction samples by the motion compensated prediction unit (553) from the address in the reference picture memory (557) may be controlled by a motion vector, which may be provided to the motion compensated prediction unit (553) in the form of symbols (521), which may have, for example, an X component, a Y component, and a reference picture component. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (557) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0074] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520). The video compression may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.
[0075] The output of the loop filter unit (556) may be a sample stream that may be output to a display device (512) and stored in a reference picture memory (557) for future inter-picture prediction.
[0076] 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 (520)), the current picture buffer (558) may become part of the reference picture memory (557), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0077] The video decoder (510) may perform decoding operations according to a standard or predetermined video compression technology such as ITU-T H.265. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence may also be required to be within the range defined by the hierarchy of the video compression technology 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 defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0078] In one embodiment, the receiver (531) can receive additional (redundant) data when receiving the encoded video. The additional data can be included as part of the encoded video sequence. The additional data can be used by the video decoder (510) to properly decode the data and / or more accurately reconstruct the original video data. The additional data can 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.
[0079] Figure 6 An exemplary block diagram of a video encoder (603) is shown. The video encoder (603) is included in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an example.
[0080] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In an example, the video source (601) is a part of the electronic device (620) to receive the video samples, and the video source (601) can capture the video images to be encoded by the video encoder (603). In another example, the video source (601) is a part of the electronic device (620).
[0081] The video source (601) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (603), 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, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) 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 organized into a spatial pixel array, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on the samples.
[0082] According to one embodiment, the video encoder (603) may encode and compress the pictures of the source video sequence into an encoded video sequence (643) in real time or under any other time constraints as required. Implementing the appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to the other functional units described. For clarity, the coupling is not depicted in the figure. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization techniques, etc.), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (650) may be configured to have other suitable functions that are related to the video encoder (603) optimized for a certain system design.
[0083] In some embodiments, the video encoder (603) is configured to operate in an encoding loop. As an oversimplified description, in one example, the encoding loop may include a source encoder (630) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder can also create sample data. The reconstructed sample stream (sample data) is input to a reference picture memory (634). 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 (634) 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.
[0084] The operation of the "local" decoder (633) may be similar to that described above in conjunction with Figure 5 The "remote" decoder of the video decoder (510) described in detail is identical. However, additional brief reference is made to Figure 5 , since the symbols are available and the entropy encoder (645) and the parser (520) can losslessly encode / decode the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (510) including the buffer memory (515) and the parser (520) may not be fully implemented in the local decoder (633).
[0085] In one embodiment, decoder techniques other than parsing / entropy decoding present in a decoder are present in a corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on 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 will be provided below in certain areas.
[0086] During operation, in some examples, the source encoder (630) may perform motion compensated predictive coding that predictively encodes an input picture by referencing one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0087] The local video decoder (633) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) may advantageously be a lossy process. When the encoded video data may be decoded at the video decoder ( Figure 6 When the video encoder (603) is decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) 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 (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0088] The predictor (635) may perform a prediction search for the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (635) 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 (635), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (634).
[0089] The controller (650) may manage encoding operations of the source encoder (630), including, for example, setting parameters and subgroup parameters for encoding video data.
[0090] The outputs of all the above functional units may be entropy encoded in an entropy encoder (645). The entropy encoder (645) applies lossless compression to the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0091] The transmitter (640) can buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission over a communication channel (660), which can be a hardware / software link to a storage device that can store the encoded video data. The transmitter (640) can combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).
[0092] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) 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:
[0093] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow for different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of these variations of I pictures and their corresponding applications and features.
[0094] A predictive picture (P picture) may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0095] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses up to 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 to reconstruct a single block.
[0096] 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 corresponding picture of the block. For example, blocks of an I picture may be non-predictively coded, or blocks of an I picture may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks 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.
[0097] The video encoder (603) 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 (603) 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.
[0098] In one embodiment, the transmitter (640) may transmit additional data when transmitting the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0099] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often shortened to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In one example, a particular picture being encoded / decoded is partitioned 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.
[0100] In some embodiments, a bidirectional prediction technique may be used for 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, respectively, in display order). 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.
[0101] In addition, merge mode technology can be used for inter-picture prediction to improve coding efficiency.
[0102] According to some embodiments disclosed in the present application, 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. Typically, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can be recursively divided into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine a prediction type for the CU, such as an inter-prediction type or an intra-prediction type. The CU is divided into one or more prediction units (PUs) based on temporal and / or spatial predictability. Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In one embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using 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, etc.
[0103] Figure 7 An exemplary diagram of a video encoder (703) is shown. The video encoder (703) is configured to receive a processed block (e.g., a predicted block) of sample values within a current video picture in a sequence of video pictures and encode the processed block into an encoded picture that is part of an encoded video sequence. In one example, the video encoder (703) is used instead of Figure 4 A video encoder (403) in an example.
[0104] In the HEVC example, the video encoder (703) receives a matrix of sample values for a processing block, such as a prediction block of 8×8 samples. The video encoder (703) uses, for example, rate-distortion optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to best encode the processing block. When the processing block is encoded in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into an encoded picture; and when the processing block is encoded in inter mode or bidirectional prediction mode, the video encoder (703) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video encoding techniques, the merge mode may be an inter-picture prediction submode, in which the motion vector is derived from one or more motion vector prediction values without the aid of an encoded motion vector component external to the predictor. In some other video encoding techniques, there may be a motion vector component applicable to the subject block. In one example, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.
[0105] exist Figure 7 In the example of FIG. 7 , the video encoder ( 703 ) includes Figure 7 An inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) are shown coupled together.
[0106] The inter-frame encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.
[0107] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). In one example, the intra encoder (722) also calculates an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.
[0108] The general controller (721) is configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is an intra-frame mode, the general controller (721) controls the switch (726) to select the intra-frame mode result for use by the residual calculator (723), and controls the entropy encoder (725) to select the intra-frame prediction information and include the intra-frame prediction information in the bitstream; and when the mode is an inter-frame mode, the general controller (721) controls the switch (726) to select the inter-frame prediction result for use by the residual calculator (723), and controls the entropy encoder (725) to select the inter-frame prediction information and include the inter-frame prediction information in the bitstream.
[0109] The residual calculator (723) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (722) or the inter encoder (730). The residual encoder (724) is configured to operate based on the residual data to encode the residual data and generate a transform coefficient. In one example, the residual encoder (724) is configured to convert the residual data from the spatial domain to the frequency domain and generate a transform coefficient. The transform coefficient is then subjected to a quantization process to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra encoder (722) and the inter encoder (730). For example, the inter encoder (730) can generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (722) can generate a decoded block based on the decoded residual data and the intra prediction information. In some examples, the decoded blocks are processed appropriately to generate a decoded picture, and the decoded picture can be buffered in a memory circuit (not shown) and used as a reference picture.
[0110] The entropy encoder (725) is configured to format the bitstream to include the encoded blocks. The entropy encoder (725) is configured to include various information in the bitstream according to an appropriate standard (e.g., the HEVC standard). In one example, the entropy encoder (725) is configured to include general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the bitstream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.
[0111] Figure 8An exemplary diagram of a video decoder (810) is shown. The video decoder (810) is configured to receive an encoded picture as part of an encoded video sequence and decode the encoded picture to generate a reconstructed picture. In one example, the video decoder (810) is used instead of Figure 4 A video decoder (410) in an example of FIG.
[0112] exist Figure 8 In the example of FIG. 8 , the video decoder ( 810 ) includes Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) are shown coupled together.
[0113] The entropy decoder (871) may be configured to reconstruct certain symbols from the encoded picture, which represent syntax elements that constitute the encoded picture. Such symbols may include, for example, a mode for encoding a block (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), and prediction information (e.g., intra-frame prediction information or inter-frame prediction information), which may identify certain samples or metadata used by the intra-frame decoder (872) or the inter-frame decoder (880) for prediction, respectively. The symbols may also include residual information in the form of, for example, quantized transform coefficients. In one example, when the prediction mode is inter-frame or bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (880); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (872). The residual information may be subjected to inverse quantization and provided to the residual decoder (873).
[0114] The inter-frame decoder (880) is configured to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.
[0115] The intra decoder (872) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0116] The residual decoder (873) is configured to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert residual information from the frequency domain to the spatial domain. The residual decoder (873) may also require certain control information (to include quantizer parameters (QP)), which may be provided by the entropy decoder (871) (data path not depicted because this may only be low-data-volume control information).
[0117] The reconstruction module (874) is configured to combine the residual information output by the residual decoder (873) with the prediction result (which may be output by the inter-frame prediction module or the intra-frame prediction module, as the case may be) in the spatial domain to form a reconstructed block, which may be part of a reconstructed picture, which in turn may be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations may be performed to improve visual quality.
[0118] It should be noted that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In one embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (603) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.
[0119] Various inter prediction modes can be used for VVC. For an inter-prediction CU, motion parameters may include MV, one or more reference picture indices, a reference picture list usage index, and additional information for certain coding features of inter-prediction sample generation. Motion parameters may be explicitly or implicitly signaled. When a CU is encoded using skip mode, the CU may be associated with a PU and may have no valid residual coefficients, no encoded motion vector increments, or MV differences (e.g., MVDs), or reference picture indices. 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 candidates and / or temporal candidates, and optionally, additional information such as introduced in VVC. The merge mode may be applied to inter-prediction CUs, not just for skip mode. In one example, an alternative to the merge mode is explicit transmission of motion parameters, in which, for each CU, MV, the corresponding reference picture index for each reference picture list, a reference picture list usage flag, and other information are explicitly signaled.
[0120] In one embodiment, for example, in VVC, the VVC Test Model (VTM) reference software includes one or more refined 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), bidirectional prediction (BCW) with CU-level weights, bidirectional optical flow (BDOF), prediction refinement using optical flow (PROF), decoder-side motion vector refinement (DMVR), combined inter-frame and intra-frame prediction (CIIP), geometric partition mode (GPM), etc. Inter-frame prediction and related methods are described in detail below.
[0121] In some examples, extended merge prediction may be used. In one example, such as in VTM4, the merge candidate list is constructed by including the following five types of candidates in order: spatial motion vector prediction values (MVPs) from spatially adjacent CUs, temporal MVPs from collocated CUs, history-based MVPs (HMVPs) from a first-in, first-out (FIFO) table, pairwise average MVPs, and zero MVs.
[0122] The size of the merge candidate list may be signaled in the slice header. In one example, in VTM4, the maximum allowed size of the merge candidate list is 6. For each CU encoded in merge mode, the index of the best merge candidate (e.g., merge index) may be encoded using truncated unary binarization (TU). The first bin of the merge index may be encoded using a context (e.g., context adaptive binary arithmetic coding (CABAC)), and bypass coding may be used for other bins.
[0123] Some examples of the generation process of each type of merge candidate are provided below. In one embodiment, the spatial candidates are derived as follows. The derivation of spatial merge candidates in VVC can be the same as the derivation of spatial merge candidates in HEVC. In one example, from the location Fig. 9 A maximum of four merge candidates are selected from the candidates for the depicted position. Fig. 9 FIG. 4 shows the positions of spatial merging candidates according to an embodiment disclosed in the present application. Fig. 9, the derivation order is B1, A1, B0, A0, and B2. Position B2 is considered only when any CU in positions A0, B0, B1, and A1 is unavailable (for example, because the CU belongs to another slice or another tile) or is intra-coded. After adding the candidate at position A1, the addition of the remaining candidates is subject to redundancy check, which ensures that candidates with the same motion information are excluded from the candidate list, thereby improving coding efficiency.
[0124] In order to reduce computational complexity, not all possible candidate pairs are considered in the above redundancy check. Instead, only Fig.10 The pairs are linked by arrows in , and a candidate is added to the candidate list only if the corresponding candidate used for redundancy check does not have the same motion information. Fig.10 FIG. 4 shows a candidate pair considering redundancy check for spatial merging candidates according to an embodiment disclosed in the present application. Fig.10 , pairs linked by corresponding arrows include A1 and B1, A1 and A0, A1 and B2, B1 and B0, and B1 and B2. Therefore, candidates at positions B1, A0, and / or B2 can be compared with candidates at position A1, and candidates at positions B0 and / or B2 can be compared with candidates at position B1.
[0125] In one embodiment, the temporal candidates are derived as follows: In one example, only one temporal merge candidate is added to the candidate list. Fig.11 An exemplary motion vector scaling for a temporal merge candidate is shown. To derive a temporal merge candidate for a current CU (1111) in a current picture (1101), a scaled MV (1121) may be derived based on a collocated CU (1112) belonging to a collocated reference picture (1104) (e.g., by Fig.11 In one example, a collocated reference picture (also referred to as a collocated picture) is a specific reference picture, for example, used for temporal motion vector prediction. The collocated reference picture used for temporal motion vector prediction may be indicated by a reference index in a syntax, such as a high-level syntax (e.g., a picture header, a slice header).
[0126] The reference picture list used to derive the collocated CU (1112) may be explicitly signaled in the slice header. Fig.11As shown by the dotted line in , a scaled MV (1121) for a temporal merge candidate may be obtained. The scaled MV (1121) may be scaled according to the MV of the collocated CU (1112) using picture order count (POC) distances tb and td. The POC distance tb may be defined as a POC difference between a current reference picture (1102) of a current picture (1101) and the current picture (1101). The POC distance td may be defined as a POC difference between a collocated reference picture (1104) of a collocated reference picture (1103) and the collocated reference picture (1103). The reference picture index of the temporal merge candidate may be set to zero.
[0127] Fig.12 Exemplary candidate positions (e.g., C0 and C1) of the temporal merge candidate of the current CU are shown. The position of the temporal merge candidate can be selected from candidate positions C0 and C1. Candidate position C0 is located at the lower right corner of the co-located CU (1210) of the current CU. Candidate position C1 is located at the center of the co-located CU (1210) of the current CU. If the CU at candidate position C0 is not available, intra-coded, or located outside the current row of the CTU, candidate position C1 is used to derive the temporal merge candidate. Otherwise, for example, if the CU at candidate position C0 is available, intra-coded, and located in the current row of the CTU, candidate position C0 is used to derive the temporal merge candidate.
[0128] The merge with motion vector difference (MMVD) mode can be used for merge mode or skip mode with a motion vector expression method. In the MMVD mode, merge candidates, such as those used in VVC, can be reused. A candidate can be selected as a starting point (e.g., an MV prediction value (MVP)) from the merge candidates, and the candidate can be further extended by the MMVD mode. The MMVD mode can provide a new motion vector expression with simplified signaling. The motion vector expression method includes a starting point and an MV difference (MVD). In one example, the MVD is indicated by the magnitude of the MVD (or motion magnitude) and the direction of the MVD (e.g., motion direction).
[0129] The MMVD mode may use a merge candidate list, such as the merge candidate list used in VVC. In one embodiment, for the MMVD mode, only candidates belonging to the default merge type (e.g., MRG_TYPE_DEFAULT_N) are considered. The starting point may be indicated or defined by a basic candidate index (IDX). The basic candidate index may indicate one candidate (e.g., the best candidate) among the candidates (e.g., the basic candidates) in the merge candidate list. Table 1 shows an exemplary relationship between the basic candidate index and the corresponding starting point. The basic candidate index is 0, 1, 2, or 3, indicating that the corresponding starting point is the first MVP, the second MVP, the third MVP, or the fourth MVP. In one example, if the number of basic candidates is equal to 1, the basic candidate IDX is not signaled. Table 1 Basic candidate IDX Basic Candidate IDX 0 1 2 3 The Nth MVP First MVP Second MVP Third MVP Fourth MVP
[0130] The distance index may indicate motion amplitude information of the MVD, such as the amplitude of the MVD. For example, the distance index indicates a distance (e.g., a predetermined distance) from a starting point (e.g., an MVP indicated by a basic candidate index). In one example, the distance is one of a plurality of predetermined distances, such as shown in Table 2. Table 2 shows an exemplary relationship between a distance index and a corresponding distance (in samples or pixels). 1-pel in Table 2 is one sample or one pixel. For example, a distance index of 1 indicates that the distance is 1 / 2 pixel or 1 / 2 sample. Table 2 Distance IDX
[0131] The direction index may indicate the direction of the MVD relative to the starting point. The direction index may indicate one of a plurality of directions (eg, the four directions shown in Table 3). For example, a direction index of 00 indicates that the direction of the MVD is along the positive x-axis. Table 3 Direction IDX Directions to IDX 00 01 10 11 x-axis + - N / A N / A y-axis N / A N / A + -
[0132] After sending the skip and merge flags, the MMVD flag can be signaled. If the skip and merge flags are true, the MMVD flag can be parsed. In one example, if the MMVD flag is equal to 1, the MMVD syntax (e.g., including distance index and / or direction index) can be parsed. If the MMVD flag is not equal to 1, the AFFINE flag can be parsed. If the AFFINE flag is equal to 1, the current block is encoded using the affine mode. If the AFFINE flag is not equal to 1, the skip / merge index can be parsed for the skip / merge mode (e.g., used in VTM).
[0133] Fig.13 and Fig.14 An example of a search process in the MMVD mode is shown. By performing the search process, an index may be determined for a current block (1300) in a current picture (or referred to as a current frame) (1301), the index including a basic candidate index, a direction index and / or a distance index.
[0134] A first motion vector (MV) (1311) and a second MV (1321) belonging to a first merge candidate are shown. The first merge candidate may be a merge candidate in a merge candidate list constructed for the current block (1300). The first MV (1311) and the second MV (1321) may be associated with two reference pictures (1302) and (1303) in reference picture lists L0 and L1, respectively. Therefore, the reference pictures (1302) and (1303) may be determined, respectively. Fig.13 and Fig.14 The two starting points (1411) and (1421) in .
[0135] In one example, based on the starting points (1411) and (1421), a plurality of predetermined points (e.g., Fig.14 1 to 12 shown). In one example, a pair of points that are mirrored relative to the corresponding starting point (1411) or (1421), such as a pair of points (1414) and (1424) or a pair of points (1415) and (1425), can be used to determine a pair of MVs (1314) and (1324) or a pair of MVs (1315) and (1325) that can form MV prediction value (MVP) candidates for the current block (1300). The MVP candidates determined based on predetermined points around the starting point (1411) and / or (1421) can be estimated. Reference Fig.13 , the MVD (1312) between the first MV (1311) and MV (1314) has an amplitude of 1S. The MVD (1322) between the second MV (1321) and MV (1324) has an amplitude of 1S. Similarly, the MVD between the first MV (1311) and MV (1315) has an amplitude of 2S. The MVD between the second MV (1321) and MV (1325) has an amplitude of 2S.
[0136] In addition to the first merge candidate, other available or valid merge candidates in the merge candidate list of the current block (1300) may also be similarly evaluated. In one example, for unidirectional prediction merge candidates, only one prediction direction associated with one of the two reference picture lists is evaluated.
[0137] In one example, based on the estimation, the best MVP candidate may be determined. Therefore, the best merge candidate corresponding to the best MVP candidate may be selected from the merge list, and the motion direction and motion distance may also be determined. For example, based on the selected merge candidate and Table 1, the basic candidate index may be determined. Based on the selected MVP, for example, the MVP corresponding to the predetermined point (1415) (or (1425)), the direction and distance (e.g., 2S) of the point (1415) relative to the starting point (1411) may be determined. According to Tables 2 and 3, the direction index and distance index may be determined accordingly.
[0138] As described above, two indexes, such as a distance index and a direction index, may be used to indicate an MVD in MMVD mode. Alternatively, a single index may be used to indicate an MVD in MMVD mode, for example, by a table that pairs a single index with the MVD.
[0139] In some prediction modes, such as in MMVD mode and affine MMVD mode, template matching (TM) based candidate reordering may be used. In one embodiment, for MMVD mode and affine MMVD mode, the MMVD offset is extended. Fig.15 Additional refinement positions along multiple diagonal angles are shown, for example, k×π / 8 diagonal angles, where k is an integer from 0 to 15. The additional refinement positions along multiple diagonal angles can increase the number of directions, for example, from 4 directions (e.g., +X, -X, +Y, and -Y) to 16 directions (e.g., k=0, 1, 2, ..., 15). In one example, each of the 16 directions is represented by an angle between the +X direction and a direction indicated by the center point (1500) and one of points 1 to 16. For example, point 1 indicates a +X direction with an angle of 0 (i.e., k=0), point 2 indicates a direction along an angle of 1×π / 8 (i.e., k=1), and so on.
[0140] TM may be performed in MMVD mode. In one example, for each MMVD refinement position, a TM cost may be determined based on a current template and one or more reference templates of a current block. Any method may be used to determine the TM cost, such as the sum of absolute differences (SAD) (e.g., SAD cost), the sum of absolute transform differences (SATD), the sum of squared errors (SSE), SAD / SATD / SSE with mean removed, variance, partial SAD, partial SSE, partial SATD, etc.
[0141] The current template of the current block may include any suitable samples, such as a row of samples above the current block and / or a column of samples on the left side of the current block. Based on the TM cost (e.g., SAD cost) between the current template and the corresponding reference template of the refinement position, the MMVD refinement position of each basic candidate (e.g., MVP), for example, all possible MMVD refinement positions (e.g., 16×6, representing 16 directions and 6 amplitudes) can be reordered. In one example, the first few MMVD refinement positions with the minimum TM cost (e.g., the minimum SAD cost) are retained as MMVD refinement positions that can be used for MMVD index encoding. For example, a subset of the MMVD refinement positions with the minimum TM cost (e.g., 8 MMVD refinement positions) is used for MMVD index encoding. For example, the MMVD index indicates which MMVD refinement position in the subset of the MMVD refinement positions with the minimum TM cost is selected to encode the current block. In one example, an MMVD index of 0 indicates that the MVD corresponding to the minimum TM cost (e.g., MMVD refinement position) is used to encode the current block. The MMVD index may be binarized, for example, by a Rice code with a parameter equal to 2.
[0142] In one embodiment, in addition to e.g. Fig.15 The above MMVD offset extension in , further extends the affine MMVD reordering, wherein additional refinement positions along the k×π / 4 diagonal angle are added. After reordering, the first 1 / 2 refinement positions with the smallest TM cost (e.g., SAD cost) are retained to encode the current block.
[0143] In some examples (such as 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 transmitted to the decoder. On the decoder side, the same candidate list as the encoder side can be constructed, for example, in a defined manner. 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 or absence of zero motion in the candidate list. It should be noted that the construction of the candidate list removes duplicate motion vectors, which can shorten the candidate list and use fewer bits to signal the index of the selected candidate in the candidate list.
[0144] It should be noted that for AMVP, the encoder also signals a reference picture index to specify the reference picture pointed to by the motion vector prediction value specified by the index of the selected candidate in the candidate list. 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 difference motion vector for the current block. For AMVP, in addition to the reference picture index and the index of the selected candidate in the candidate list, the encoder also signals the MVD of the current block in the bitstream. Due to the signaling of the prediction vector difference and reference picture index for a given block, AMVP may not be as efficient as merge mode, but can provide improved fidelity of the encoded video data.
[0145] 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 position, left position, upper right position, upper position, and upper left position 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, a scanning order is used to place potential AMVP spatially adjacent candidates into the candidate list. For example, the scanning order is from bottom to top in the first category and from right to left in the second category, respectively.
[0146] In some examples, the affine AMVP mode may be applied to CUs whose width and height are both greater than or equal to 16. A CU-level affine flag may be signaled in the bitstream to indicate whether the affine AMVP mode is used, and then another flag may be signaled to indicate whether 4-parameter affine or 6-parameter affine is applied. In the affine AMVP mode, the difference between the CPMV of the current CU and the predicted value of the CPMV of the current CU may be signaled in the bitstream. In some examples, the affine AMVP candidate list may have any suitable number of candidates. In one example, the size of the affine AMVP candidate list may be 2. In some examples, the affine AMVP candidate list may be generated by using four types of CPMV candidates in the following order:
[0147] (1) Inherited affine AMVP candidates inferred from the CPMV of neighboring CUs,
[0148] (2) Constructed affine AMVP candidates with CPMVP, where CPMVP is derived using the translation MV of the adjacent CU,
[0149] (3) the translation MV from the neighboring CU, and
[0150] (4) Zero MV.
[0151] The check order of the inherited affine AMVP candidates may be the same as the check order of the inherited affine merge candidates. To determine the AMVP candidates, the affine CU with the same reference picture as the current block may be considered. When the inherited affine motion prediction value is inserted into the candidate list, the pruning process may not be applied.
[0152] According to one aspect disclosed in the present application, a technique called adaptive motion vector resolution (AMVR) can be used for video coding. It should be noted that the motion vector difference (MVD) (between the true motion vector and the motion vector prediction value of the CU) can be represented by a signal. In some examples (such as HEVC), when a flag (such as use_integer_mv_flag) is equal to 0, the MVD is represented by a signal in units of one quarter brightness samples in the slice header. In some examples (such as VVC), a CU-level adaptive motion vector resolution (AMVR) scheme is used. AMVR allows the MVD of the CU to be encoded with different precisions. In some examples, the MVD of the current CU can be adaptively selected according to the mode of the current CU (normal AMVP mode or affine AMVP mode). For example, in normal AMVP mode, the resolution may include one quarter brightness sample, one half brightness sample, integer brightness sample, or four brightness samples; in affine AMVP mode, the resolution may include one quarter brightness sample, integer brightness sample, or 1 / 16 brightness sample.
[0153] In some examples, when the current CU has at least one non-zero MVD component, the CU-level MVD resolution indication is conditionally signaled. When all MVD components (e.g., horizontal MVD and vertical MVD that may include reference list L0 and reference list L1) are zero, a quarter luma sample MVD resolution is inferred.
[0154] In some examples, for a CU having at least one non-zero MVD component, a first flag is signaled to indicate whether quarter luma sample MVD precision is used for the CU. When the first flag is 0, no further signaling is required and quarter luma sample MVD precision is used for the current CU. Otherwise (e.g., when the first flag is 1), a second flag is signaled to indicate that half luma samples or other MVD precision (integer or four luma samples) are used for normal AMVP CUs. In the case of half luma samples (e.g., the second flag is 0), a 6-tap interpolation filter (instead of the default 8-tap interpolation filter) is used for half luma sample positions. Otherwise (e.g., the second flag is 1), a third flag is signaled to indicate whether integer luma samples or four luma sample MVD precision is used for normal AMVP CUs. In the case of an affine AMVP CU, the second flag is used to indicate whether integer luma samples or 1 / 16 luma sample MVD precision is used.
[0155] In some examples, to ensure that the reconstructed MV has the expected precision (quarter luma samples, half luma samples, integer luma samples, or four luma samples), the motion vector predictor of the CU may be rounded to the same precision as the MVD before being added together with the MVD. The motion vector predictor is rounded towards zero (i.e., negative motion vector predictors are rounded towards positive infinity, and positive motion vector predictors are rounded towards negative infinity).
[0156] In some examples, the encoder uses a rate-distortion (RD) check to determine the motion vector resolution of the current CU. In order to avoid always performing four CU-level RD checks for each MVD, in some examples (e.g., VTM19), only the RD check of MVD precision other than quarter luma samples is conditionally called. For the normal AVMP mode, the RD cost of the quarter luma sample MVD precision and the integer luma sample MV precision can be calculated first. Then, the RD cost of the integer luma sample MVD precision is compared with the RD cost of the quarter luma sample MVD precision to determine whether the RD cost of the four luma sample MVD precision needs to be further checked. When the RD cost of the quarter luma sample MVD precision is much smaller than the RD cost of the integer luma sample MVD precision, the RD check of the four luma sample MVD precision is skipped. Then, when the RD cost of the integer luma sample MVD precision is significantly greater than the best RD cost of the previously tested MVD precision, the check of the half luma sample MVD precision is skipped. For the affine AMVP mode, when the affine inter mode is not selected after checking the rate-distortion cost of the affine merge / skip mode, merge / skip mode, quarter luma sample MVD accuracy normal AMVP mode, and quarter luma sample MVD accuracy affine AMVP mode, the 1 / 16 luma sample MV accuracy and 1 pixel MV accuracy affine inter modes are not checked. In addition, in the 1 / 16 luma sample and quarter luma sample MV accuracy affine inter modes, the affine parameters obtained in the quarter luma sample MV accuracy affine inter mode are used as the starting search point.
[0157] In order to improve coding efficiency and reduce the transmission overhead of MV, sub-block level MV refinement can be applied to extend CU-level temporal motion vector prediction (TMVP). In one example, the sub-block-based TMVP (SbTMVP) mode allows inheritance of sub-block-level motion information from a collocated reference picture. As described above, the collocated 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 sub-block of a current CU in a current picture (e.g., a current CU with a large size) can have corresponding motion information without explicitly transmitting a block partitioning structure or corresponding motion information. In the SbTMVP mode, the motion information of each sub-block can be obtained as follows, for example, in three steps. In the first step, a displacement vector (DV) of the current CU can be derived. The DV can indicate a block in a collocated reference picture, for example, the DV points from a current block in the current picture to a block in a collocated reference picture. Therefore, the block indicated by the DV is considered to be collocated with the current block and is called a collocated block of the current block. In the second step, the availability of SbTMVP candidates can be checked, and 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 collocated block using DV. These three steps can be combined into one or two steps, and / or the order of the three steps can be adjusted.
[0158] Unlike TMVP candidate derivation in which the temporal MV is derived from a collocated 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) may be applied to locate the corresponding subblock in the collocated reference picture for each subblock in the current CU located in the current picture. If the corresponding subblock is not inter-coded, the motion information of the current subblock may be set to the center motion of the collocated block.
[0159] 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 collocated 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 collocated 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 collocated block in the collocated reference picture (for example, the collocated block is the lower right block or the center block relative to the current CU), while the SbTMVP mode may apply a motion offset before obtaining the temporal motion information from the collocated reference picture. In one example, the motion offset used in the SbTMVP mode is obtained from the MV of one of the spatial neighboring blocks of the current CU.
[0160] Fig.16 and Fig.17 An exemplary 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) (1601) in a current picture (1711), for example, in two steps. In the first step, check Fig.16 and Fig.17 , a spatial neighbor (e.g., A1) of the current block (1601) in FIG. 170 . If the spatial neighbor (e.g., A1) has an MV (1721) that uses the collocated reference picture (1712) as a reference picture for the spatial neighbor (e.g., A1), the MV (1721) may be selected as the motion offset (or DV) applied to the current block (1601). If no such MV is identified (e.g., an MV that uses the collocated reference picture (1712) as a reference picture), the motion offset or DV may be set to a zero MV (e.g., (0, 0)). In some examples, if no such MV is identified for the spatial neighbor A1, the MVs of additional spatial neighbors such as A0, B0, B1, etc. are checked.
[0161] In the second step, the motion offset or DV (1721) identified in the first step may be applied to the current block (1601) (e.g., DV (1721) 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 collocated reference picture (1712). Fig.17 In the example shown, the motion offset or DV (1721) is set to the MV of the spatial neighbor A1 (e.g., block A1) of the current block (1601). For each sub-CU or sub-block (1731) in the current block (1601), the motion information of the sub-CU or sub-block (1731) can be derived using the motion information of the corresponding collocated block (1701) in the collocated reference picture (1712) (e.g., the motion information of the minimum motion grid covering the center sample of the collocated block (1701). After the motion information of the collocated sub-CU (1732) in the collocated block (1701) is identified, the motion information of the collocated sub-CU (1732) can be converted into the motion information (e.g., MV and one or more reference indices) of the current sub-CU (1731) using, for example, a scaling method, such as 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.
[0162] The motion field of the current block (1601) derived based on the DV (1721) may include motion information of each sub-block (1731) in the current block (1601), such as MV and one or more associated reference indexes. The motion field of the current block (1601) may also be referred to as an SbTMVP candidate and corresponds to the DV (1721).
[0163] Fig.17 An example of a motion field or SbTMVP candidate for a current block (1601) is shown. For example, the motion information of a bidirectionally predicted subblock (1731(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 a unidirectionally predicted subblock (1731(2)) includes an MV and an index indicating a reference picture in L0 or L1.
[0164] In one example, DV (1721) is applied to the center position of the current block (1601) to locate the shifted center position in the collocated reference picture (1712). If the block including the shifted center position is not inter-coded, the SbTMVP candidate is considered unavailable. Otherwise, if the block including the shifted center position (e.g., the collocated block (1701)) is inter-coded, the motion information of the center position of the current block (1601) (referred to as the center motion of the current block (1601)) can be derived from the motion information of the block including the shifted center position in the collocated reference picture (1712). In one example, the center motion of the current block (1601) can be derived from the motion information of the block including the shifted center position in the collocated reference picture (1712) using a scaling process. When SbTMVP candidates are available, DV (1721) may be applied to find a corresponding subblock (1732) for each subblock (1731) of the current block (1601) in the collocated reference picture (1712). The motion information of the corresponding subblock (1732) may be used to derive motion information of the subblock (1731) in the current block (1601), for example, in the same manner as used to derive the center motion of the current block (1601). In one example, if the corresponding subblock (1732) is not inter-coded, the motion information of the current subblock (1731) is set to the center motion of the current block (1601).
[0165] In some examples, such as in VVC, a combined sub-block-based merge list including SbTMVP candidates and affine merge candidates is used in the signaling of the sub-block-based merge mode. 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 a sub-block-based merge list including sub-block-based merge candidates and then affine merge candidates. The size of the sub-block-based merge list can be signaled in the SPS. In one example, in VVC, the maximum allowed size of the sub-block-based merge list is 5. In one example, multiple SbTMVP candidates are included in the sub-block-based merge list.
[0166] In some examples, such as in VVC, the sub-CU size used in SbTMVP mode is fixed to 8×8, such as for affine merge mode. In one example, SbTMVP mode is only applicable to CUs with width and height both greater than or equal to 8. The sub-block size (e.g., 8×8) can be configured to other sizes, such as 4×4 in the ECM software model for exploring beyond VVC. In one example, multiple collocated reference pictures, such as two collocated frames, are used to provide temporal motion information for SbTMVP and / or TMVP in AMVP mode.
[0167] In some examples of SbTMVP mode, such as in VVC and ECM, the DV of the current CU is derived only from the MVs of the neighboring CUs of the current CU (e.g., Fig.17 However, the SbTMVP candidates derived using the DV may not be an exact match.
[0168] DV offset (DVO) may be used in SbTMVP mode. In one example, to obtain a more accurate match, the DV (e.g., initial DV) may be modified by the DV offset to determine an updated DV'. In one example, the updated DV' is the vector sum of the DV (e.g., initial DV) and DVO. Any method (e.g., Fig.16 and Fig.17) to determine the initial DV. For example, the initial DV is determined based on the MV of the neighboring blocks of the current block. For the current block, the DVO can be signaled and parsed to indicate an additional motion offset of the initial DV. For example, the DVO can be indicated by signaling an index indicating the DVO from the DVO candidates. In one example, the DVO is signaled. In one example, the MMVD mode is used to indicate the DVO, for example, the DVO is an MVD indicated by a direction index and / or a distance index as described in, for example, Tables 2 and 3. By using the DVO, the position of the collocated CU (or collocated block) within the collocated reference picture can be adjusted, and thus the MV field of the collocated CU (or collocated block) can be changed based on the DVO. When the DVO is not zero, the updated DV' can be used as a displacement vector to indicate the position of the collocated CU (or collocated block) to perform the SbTMVP process. Reference Fig.17 Instead of using the initial DV (e.g., DV (1721)) (i.e., the MV of spatial neighbor A1), the updated DV' can be used to determine the collocated block of the current block. The SbTMVP candidate of the current block can be derived by using the updated DV' (e.g., the vector sum of the initial DV and DVO).
[0169] In one embodiment, DVO is directly signaled, for example, using any signaling method used to signal MVD in AMVP mode, AMVR mode, etc. In AMVR mode, the MVD of a block may be signaled at different resolutions, such as 1 / 4 luma sample resolution, 1 / 2 luma sample resolution, 1 luma sample resolution, or 4 luma sample resolution. AMVR mode may be used to signal DVO at different resolutions.
[0170] The predetermined DVO list may include DVO candidates (eg, possible DVOs used by the current block). One or more indexes may be signaled to indicate which of the DVO candidates is to be selected as the DVO.
[0171] In one example, the DVO is signaled using the MMVD mode. For example, two indexes (including a first index indicating the magnitude of the DVO candidate (e.g., a distance index or a step index) and a second index indicating the direction of the DVO candidate (e.g., a direction index)) are signaled to indicate the DVO candidate, such as described in Tables 2 and 3.
[0172] Return to reference Fig.14, a distance index (or step index) and a direction index may be predefined as described above with reference to the MMVD mode. The distance index indicates motion amplitude information, such as the amplitude of the DVO. For example, the distance index indicates a predetermined distance from a starting point (e.g., an initial DV). In one example, the available predetermined distances are shown in Table 2. The direction index indicates the direction of the DVO relative to the starting point (e.g., the initial DV). The direction index may indicate one of a plurality of directions (e.g., the four directions shown in Table 3).
[0173] In one example, a collocated CTU in a collocated reference picture is collocated with a current CTU including the current block. The current CTU is located in the current picture. In one embodiment, the position of the collocated block corresponding to the updated DV' is constrained to be located within a first region in the collocated reference picture. In one example, the first region in the collocated reference picture includes the collocated CTU. In one example, the first region in the collocated reference picture includes the collocated CTU plus a column of 4×4 blocks located at the right boundary of the collocated CTU. The updated DV' may be constrained so that the collocated block corresponding to the updated DV' is located within the first region in the collocated reference picture. In one example, the DVO (e.g., the horizontal component DVO of the DVO) is constrained. x and / or the vertical component DVO of DVO y ) to ensure that the updated DV' satisfies the position constraints of the collocated blocks as described above.
[0174] In one example, the maximum vertical component of the updated DV' is H. DVO (eg, the vertical component DVO of DVO y ) is less than or equal to H minus the vertical component DV y , such as DVO y ≤H-DV y The maximum horizontal component of the updated DV' is W, and DVO is less than or equal to W minus the horizontal component DV of DV x , such as DVO x ≤W-DV x .
[0175] like Fig.16 and Fig.17 As described, a collocated block (e.g., (1701)) in a collocated reference picture (e.g., (1712)) may be determined based on a DV (e.g., 1721)) of a current block (e.g., (1601)) in a current picture (e.g., (1711)). Therefore, the motion information (e.g., TMVP) of each sub-block in the current block may be based on the motion information of the corresponding sub-block in the collocated block. According to an embodiment disclosed in the present application, the updated motion information (e.g., updated TMVP) of each sub-block in the current block may be determined based on the motion information (e.g., TMVP) of the sub-block in the current block and the motion vector offset (MVO) of the current block.
[0176] In one embodiment, the MVO is added to each derived sub-block level TMVP of the corresponding sub-block in the current block to generate an updated sub-block level TMVP. The MVO can be signaled and parsed to indicate an additional motion offset for each sub-block-based TMVP of the corresponding sub-block in the current block, the additional motion offset being determined using the SbTMVP mode.
[0177] In one embodiment, the MVO is directly signaled, for example, using any signaling method used to signal the MVD in, for example, AMVP mode, AMVR mode, etc. In AMVR mode, the MVD of a block may be signaled at different resolutions, such as 1 / 4 luma sample resolution, 1 / 2 luma sample resolution, 1 luma sample resolution, or 4 luma sample resolution. The AMVR mode may be used to signal the MVO at different resolutions.
[0178] The predetermined MVO list may include MVO candidates (eg, possible MVOs to be used by the current block). One or more indexes may be signaled to indicate which of the MVO candidates in the predetermined MVO list may be selected as the MVO.
[0179] In one example, the MVO is signaled using the MMVD mode. For example, two indexes (including a first index indicating the magnitude of the MVO candidate (e.g., a distance index or a step index) and a second index indicating the direction of the MVO candidate (e.g., a direction index)) are signaled to indicate the MVO candidate, such as described in Tables 2 and 3.
[0180] Return to reference Fig.14 , the distance index (or step index) and direction index of the MVO may be predefined as described above with reference to the MMVD mode. The distance index indicates motion amplitude information (e.g., the amplitude of the MVO) and indicates a predetermined distance from a starting point (e.g., a DV for determining the position of a collocated block in a collocated reference picture). In one example, the available predetermined distances are shown in Table 2. The direction index indicates the direction of the MVO relative to the starting point (e.g., a DV for determining the position of a collocated block in a collocated reference picture). The direction index may indicate one of a plurality of directions (e.g., the four directions shown in Table 3).
[0181] In one example, bidirectional prediction is performed on sub-blocks in the current block. Fig.17, bidirectional prediction is performed on the sub-block (1731(1)), and the sub-block (1731(1)) has a first MV associated with a first reference picture in the reference list L0 and a second MV associated with a second reference picture in the reference list L1. MVO can be applied to the first MV associated with the reference list L0. The updated first MV can be a vector sum of the first MV and the MVO. The following embodiments can be applied to the second MV associated with the reference list L1.
[0182] In one example, MVO is not applied to the second MV associated with reference list L1. For example, no MVO is applied to the second MV associated with reference list L1. Therefore, the updated motion information of the sub-block (1731(1)) includes the updated first MV and the second MV.
[0183] In one example, a mirror MVO of the MVO is applied to a second MV associated with the reference list L1. The mirror MVO and the MVO may have the same magnitude and opposite directions. The horizontal component and the vertical component of the MVO (e.g., represented by a signal) are multiplied by -1 to obtain the horizontal component and the vertical component of the mirror MVO, respectively. The updated second MV may be a vector sum of the second MV and the mirror MVO, or a vector difference between the second MV and the MVO. Therefore, the updated motion information of the sub-block (1731(1)) includes an updated first MV (e.g., first MV+MVO) and an updated second MV (e.g., second MV-MVO).
[0184] In one example, a scaled MVO (MVO') may be applied to a second MV associated with reference list L1. The value of each component of the MVO (e.g., horizontal component and vertical component) may be scaled based on the first POC difference and the second POC difference, as shown in Equation 1. Equation 1 may be applied to vectors MVO' and MVO. Equation 1 may be applied to each component of vectors MVO' and MVO. The first POC difference is the POC of the current picture (POC curr ) and the POC of the first reference picture in the reference picture list L0 (POC L0 ). The second POC difference is the POC of the current picture (POC curr ) and the POC (POC) of the second reference picture in the reference picture list L1 L1 ) difference. MVO′=MVO×(POC L1 -POC curr ) / (POC L0 -POC curr ) Equation 1
[0185] In one example, the scaled MVO (MVO') is added to the second MV associated with the reference list L1. In one example, a mirror image MVO' of the scaled MVO (MVO') is added to the second MV associated with the reference list L1.
[0186] As described above, in the example of SbTMVP mode (e.g., Fig.16 and Fig.17 In a variation of the SbTMVP mode described in ), DVO can be applied to DV so that the position of the collocated block within the collocated reference picture can be adjusted, thereby affecting the motion information of the sub-block in the current block. In another example of the SbTMVP mode (e.g., Fig.16 and Fig.17 In another variation of the SbTMVP mode described in , MVO may be applied to directly adjust the motion information of the sub-blocks in the current block. The DVO and MVO may be signaled using the same method. For example, the predetermined MVO list is the same as the predetermined DVO list, and the DVO and MVO may use the same predetermined MVO list.
[0187] In some examples, DVO may be applied to DV so that the position of the collocated block within the collocated reference picture may be adjusted. After obtaining the motion information of the sub-block in the current block based on the motion information of the corresponding sub-block in the collocated reference picture determined based on the updated DV' (e.g., DV+DVO), MVO may be applied to further adjust the motion information of the sub-block in the current block. DVO may be the same as or different from MVO.
[0188] Some aspects disclosed in the present application provide techniques for using sub-block based motion vector predictors and motion vector offsets in AMVP mode. For example, these techniques can be used to allow sub-block based temporal motion vector prediction (SbTMVP) in AMVP mode. The signal in AMVP mode may include MVP information and MVD information in the encoded video bitstream. For SbTMVP, DV can be derived based on SbTMVP candidates and offsets, the SbTMVP candidate is indicated by the MVP information, and the offset is indicated by the MVD information. For example, in order to encode the current block in SbTMVP mode, the encoder can generate encoded information in AMVP mode, the encoded information in AMVP mode has MVP information and MV offset information in the encoded information of the current block, the MVP information indicates the SbTMVP candidate, and the MV offset information indicates the offset, and the combination of the SbTMVP candidate and the offset can indicate the final DV, which points to the corresponding sub-block of the sub-block in the current block in the collocated picture. On the decoder side, the decoder can determine the SbTMVP candidates and offsets from the MVP information and MV offset information in the encoded information of the current block, and can determine the final DV, which points to the corresponding sub-block of the sub-block in the current block in the collocated picture, and then reconstruct the current block accordingly. It should be noted that allowing SbTMVP in the AMVP mode can improve the coding gain of AMVP. In addition, in some examples, AMVR is used to encode MVD information to achieve a favorable trade-off between motion vector (MV) accuracy and bit consumption on MV difference (MVD).
[0189] According to one aspect disclosed in the present application, the SbTMVP candidate is derived as an MVP candidate in the AMVP mode. In some examples, in order to construct a candidate list of candidates in the AMVP mode, the SbTMVP candidate is derived and the SbTMVP candidate is inserted into the candidate list. The SbTMVP candidate can be selected in a similar manner to other candidates in the candidate list, for example, the SbTMVP candidate is selected according to an index.
[0190] In some embodiments, the SbTMVP derivation in the sub-block based merge candidate list is used to derive the SbTMVP candidate as the MVP candidate in the AMVP mode. In some examples, the SbTMVP candidate is derived from the sub-block based merge candidate list. The sub-block based merge candidate list is defined to include suitable sub-block based merge candidates, such as one or more SbTMVP candidates and / or affine merge candidates, etc. In one example, in order to construct a candidate list in the AMVP mode, a sub-block based merge candidate list is constructed, and the candidates in the sub-block based merge candidate list are added to the candidate list in the AMVP mode.
[0191] In a first embodiment, a predetermined order of spatially neighboring coding blocks is used to derive a displacement vector (DV) for the SbTMVP. In some examples, the spatially neighboring blocks of the current block are checked according to a predetermined order to find the first spatially neighboring block whose collocated center sub-block motion vector is available. For example, the motion vector of the first spatially neighboring block points to a corresponding block in a collocated picture, and the center of the corresponding block has available sub-block motion information (also referred to as a collocated center sub-block motion vector). Then, the first spatially neighboring block whose collocated center sub-block motion vector is available can be added to a candidate list and can be used as an SbTMVP candidate to derive the DV.
[0192] In a second embodiment, a zero displacement vector (DV) (e.g., (0, 0)) is used to derive the SbTMVP. More specifically, when a collocated center sub-block motion vector is available, motion field data based on the collocated sub-block in the collocated picture is used as the SbTMVP candidate. In one example, when sub-block motion vector information (also referred to as a collocated center sub-block motion vector) of the center of the collocated block (zero DV) of the current block is available, zero DV may be added to the candidate list. Therefore, zero DV may be selected and used as the SbTMVP candidate.
[0193] In some embodiments, features of the first and second embodiments may be combined. In some examples, the spatial neighboring blocks of the current block are checked according to a predetermined order to find the first spatial neighboring block whose collocated center sub-block motion vector is available. When the center sub-block motion vectors of all spatial neighboring blocks in the predetermined order are not available, zero DV is added to the candidate list.
[0194] In some embodiments, the SbTMVP MVP candidate is added to a sub-block AMVP candidate list (eg, an affine AMVP candidate list).
[0195] In some examples, the MVP index is always located at the first MVP candidate in the sub-block (affine) AMVP list. For example, the SbTMVP candidate is inserted into the affine candidate AMVP list as the first candidate.
[0196] In some examples, the adaptive position is determined by checking whether the adjacent coding block has an affine coding block. When no adjacent coding block among all adjacent coding blocks is encoded in affine mode, the SbTMVP MVP candidate is located at the first candidate in the sub-block (affine) AMVP list. Otherwise, the SbTMVP MVP candidate will be placed at the end of the sub-block (affine) AMVP list. For example, all spatially adjacent blocks are checked to determine whether any of the spatially adjacent blocks are affine coded blocks. When no spatially adjacent blocks among the spatially adjacent blocks are affine coded, the SbTMVP candidate is inserted into the affine AMVP candidate list as the first candidate. When at least one of the spatially adjacent blocks is affine coded, the SbTMVP candidate is inserted into the end of the affine AMVP candidate list.
[0197] According to one aspect of the present disclosure, MVD with AMVR is signaled as an offset of a displacement vector (DV) to derive SbTMVP in AMVP. For example, to derive SbTMVP in AMVP mode, MVD is signaled as an offset of DV through AMVR.
[0198] In some embodiments, the index of AMVR precision indicated by the signal and the MVD indicated by the signal are used to derive the offset of the DV of the SbTMVP MVP candidate. In some examples, the index indicating the AMVR precision is signaled. The offset of the DV is determined based on the index in the encoded video bitstream and the MVD indicated by the signal.
[0199] In some examples, the unit of AMVR precision of SbTMVP in AMVP mode is pixel unit. The AMVR precision of SbTMVP in AMVP mode can be modified to 1 pixel, 2 pixels, 4 pixels and 8 pixels, but is not limited to it. In one example, the AMVR precision of SbTMVP in AMVP mode is a positive integer pixel. The AMVR precision of SbTMVP in AMVP mode is modified from (1 / 4 pixel, 1 / 2 pixel, 1 pixel, 4 pixels) to (1 pixel, 2 pixels, 4 pixels and 8 pixels).
[0200] In some examples, the offset value is derived according to Equation 2: DV offset(x,y) =N×MVD(x,y)×AMVR[amvr_precision_idx] Equation 2 Where N is the width and / or height of the square sub-block, and amvr_precision_idx can be 0, 1, 2, or 3, as used in VVC and ECM. In one example, the AMVR precision (e.g., 1 pixel, 2 pixels, 4 pixels, or 8 pixels) is selected from a lookup table using amvr_precision_idx.
[0201] In some examples, a final displacement vector may be derived by adding the offset value and the displacement vector (DV) of the SbTMVP candidate to point to the corresponding sub-block motion field data in the collocated picture. In some examples, for each sub-block in the current block, the corresponding sub-block in the collocated picture is determined by the final displacement vector, which combines the offset value (e.g., according to Equation 2) and the DV of the SbTMVP candidate. The SbTMVP candidate may be determined based on a signaled index pointing to the SbTMVP candidate in the candidate list.
[0202] Fig.18 A flow chart outlining an encoding process (1800) according to an embodiment disclosed herein is shown. The process (1800) may be used for a video encoder. The process (1800) may be performed by an apparatus for video encoding, which may include a processing circuit. In various embodiments, the process (1800) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (e.g., (403), (603), (703), etc. In some embodiments, the process (1800) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1800). The process starts at (S1801) and proceeds to (S1810).
[0203] At (S1810), an updated DV of a current block in a current picture may be determined based on the DV of the current block and the DV offset (also referred to as MV offset (MVO)) of the current block. Fig.16 and Fig.17 The DV is determined as described in . The updated DV of the current block indicates a collocated block in a collocated picture. The collocated block is collocated with the current block.
[0204] The current block includes a plurality of subblocks encoded using a subblock-based temporal motion vector prediction (SbTMVP) mode.
[0205] In one example, the DV offset (or MVO) is determined from the DV offset candidates using any suitable method.
[0206] In one example, the updated DV is determined as the vector sum of the DV and the DV offset.
[0207] In one example, the updated DV is constrained so that the collocated block is located within a restricted area in the collocated reference picture. The restricted area includes a collocated area corresponding to a current CTU in the current picture, and the current CTU includes the current block.
[0208] At (S1820), motion information of a sub-block among the plurality of sub-blocks may be determined based on motion information of a corresponding sub-block in the collocated block.
[0209] At (S1830), DV offset information (also referred to as MVO information) indicating the DV offset may be encoded. A sub-block among the plurality of sub-blocks may be encoded based on motion information of the sub-block among the plurality of sub-blocks.
[0210] In one embodiment, the DV offset information indicates at least one index, and the at least one index indicates the magnitude of the DV offset and the direction of the DV offset. In one example, the at least one index includes a distance index and a direction index, the distance index indicates the magnitude of the DV offset, i.e., a predetermined distance in a set of predetermined distances, and the direction index indicates the direction of the DV offset, i.e., a predetermined direction in a set of predetermined directions.
[0211] In one example, a set of predetermined distances and a set of predetermined directions are used in a merged motion vector difference (MMVD) mode.
[0212] At (S1840), the encoded DV offset information may be included in the codestream and signaled to a decoder.
[0213] In one example, the DV offset information includes a DV offset, and the DV offset is encoded and signaled in the codestream.
[0214] Then, the process (1800) proceeds to (S1899) and terminates.
[0215] The process (1800) may be appropriately adapted to various scenarios, and the steps in the process (1800) may be adjusted accordingly. One or more steps in the process (1800) may be adjusted, omitted, repeated, and / or combined. The process (1800) may be implemented in any suitable order. Additional steps may be added.
[0216] In one embodiment, an updated displacement vector (DV) of a current block in a current picture is determined based on the MVO (also referred to as DV offset) and DV of the current block. The MVO indicates a motion offset of the DV, which is used to adjust the position of the collocated block in the collocated reference picture. The updated DV indicates the adjusted position of the collocated block in the collocated reference picture. The current block is encoded using the SbTMVP mode.
[0217] The SbTMVP information (e.g., motion information) of a corresponding sub-block in the plurality of sub-blocks may be derived based at least on the motion information of a corresponding sub-block in the collocated block indicated by the updated DV. The plurality of sub-blocks may be encoded in the SbTMVP mode based on the SbTMVP information of the sub-blocks in the plurality of sub-blocks.
[0218] Fig.19A A flowchart outlining a decoding process (1900A) according to an embodiment disclosed herein is shown. The process (1900A) may be used in a video decoder. The process (1900A) may be performed by an apparatus for video encoding, which may include a receiving circuit and a processing circuit. In various embodiments, the process (1900A) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), and the like. In some embodiments, the process (1900A) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1900A). The process starts at (S1901) and proceeds to (S1910).
[0219] At (S1910), displacement vector (DV) offset (also referred to as MV offset (MVO)) information of a current block in a current picture may be received from an encoded video bitstream. The current block includes a plurality of sub-blocks reconstructed using a sub-block-based temporal motion vector prediction (SbTMVP) mode. The DV offset (or MVO) information may indicate a motion offset for the DV, which is used to adjust the position of the collocated block in the collocated reference picture. In one example, the position of the collocated block in the collocated reference picture is adjusted by the DV offset.
[0220] In one example, the DV offset information includes a DV offset (or MVO), which is signaled in the encoded video bitstream.
[0221] In one embodiment, the DV offset information indicates at least one index, and the at least one index indicates the magnitude of the DV offset and the direction of the DV offset. In one example, the at least one index includes a distance index and a direction index, the distance index indicates the magnitude of the DV offset, i.e., a predetermined distance in a set of predetermined distances, and the direction index indicates the direction of the DV offset, i.e., a predetermined direction in a set of predetermined directions.
[0222] In one example, a set of predetermined distances and a set of predetermined directions are used in a merged motion vector difference (MMVD) mode.
[0223] At (S1920), an updated DV of the current block may be determined based on the DV of the current block and the DV offset of the current block. The DV offset is indicated by DV offset information. The updated DV of the current block indicates a block in a collocated picture. The block is considered to be collocated with the current block and is referred to as a collocated block of the current block.
[0224] In one example, the updated DV is determined as the vector sum of the DV and the DV offset.
[0225] In one example, the updated DV is constrained so that the collocated block is located within a restricted area in the collocated reference picture. The restricted area includes a collocated area corresponding to a current CTU in the current picture, and the current CTU includes the current block.
[0226] At (S1930), motion information of a sub-block among the plurality of sub-blocks may be determined based on motion information of a corresponding sub-block in the collocated block.
[0227] At (S1940), a sub-block among the plurality of sub-blocks may be reconstructed based on motion information of the sub-block among the plurality of sub-blocks.
[0228] In some examples, an MVP is selected from an MVP candidate list based on MVP information for an AMVP mode in the coded information of the current block. The MVP is used as an SbT MVP candidate to derive a final DV.
[0229] In some examples, an MVP candidate list is constructed, the MVP candidate list including a sub-block based merge candidate list. The sub-block based merge candidate list includes one or more SbTMVP candidates. In one example, the sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order. In another example, the sub-block based merge candidate list includes a zero DV used as an SbTMVP candidate.
[0230] In some examples, one or more spatial neighboring blocks of the current block are checked for the availability of the center sub-block motion vector in a predetermined order. For the spatial neighboring blocks of the current block, in response to the center sub-block motion vector of the spatial neighboring block being available, the spatial neighboring block is added as a candidate to the MVP candidate list. In response to no spatial neighboring block in the one or more spatial neighboring blocks having an available center sub-block motion vector, a zero DV is added to the MVP candidate list.
[0231] In some examples, the encoded information indicates an affine AMVP mode, and an affine AMVP candidate list including one or more SbTMVP candidates is constructed. In one example, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list.
[0232] In some examples, it is checked whether there is an affine-coded block in the spatial neighboring blocks of the current block. In response to no spatial neighboring blocks being affine-coded in the spatial neighboring blocks, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list. In response to the presence of an affine-coded block in the spatial neighboring blocks, the SbTMVP candidate is inserted at the last position in the affine AMVP candidate list.
[0233] In some examples, the precision of the MVO information in the encoded information of the current block in the encoded video stream is determined. The MVO information is encoded into the encoded video stream with the precision via adaptive motion vector resolution (AMVR).
[0234] In some examples, based on the precision of the MVO information, an offset for deriving the final DV is determined. In one example, an index indicating the precision used in the AMVR is decoded from the encoded video bitstream. In one example, the precision of the MVO information is in units of M pixels, where M is a positive integer. In one example, the precision of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0235] In some examples, the offset used to derive the final DV is scaled based on the size of the sub-block.
[0236] The process (1900A) proceeds to (S1999) and terminates.
[0237] The process (1900A) can be appropriately adapted to various scenarios, and the steps in the process (1900A) can be adjusted accordingly. One or more steps in the process (1900A) can be adjusted, omitted, repeated, and / or combined. The process (1900A) can be implemented in any suitable order. Additional steps can be added.
[0238] Fig.19BA flowchart outlining a decoding process (1900B) according to an embodiment disclosed in the present application is shown. The process (1900B) is a variation of the decoding process (1900A). The process (1900B) can be used for a video decoder. The process (1900B) can be performed by an apparatus for video encoding, which may include a receiving circuit and a processing circuit. In various embodiments, the process (1900B) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (1900B) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1900B). The process starts at (S1902) and proceeds to (S1912).
[0239] At (S1912), an encoded video code stream including a current picture is received. The current picture includes a current block. The current block includes a plurality of sub-blocks.
[0240] At (S1922), based on syntax elements in the encoded video bitstream, it is determined to encode the current block including the plurality of sub-blocks in a sub-block based temporal motion vector prediction (SbTMVP) mode.
[0241] At (S1932), motion vector offset (MVO) information of the current block is obtained. The MVO indicates a motion offset of a displacement vector (DV), which is used to adjust the position of the collocated block in the collocated reference picture.
[0242] At (S1942), an updated DV of the current block is determined based on the MVO and DV of the current block. The updated DV indicates an adjusted position of the collocated block in the collocated reference picture.
[0243] At (S1952), SbTMVP information (eg, motion information) of a corresponding sub-block among the plurality of sub-blocks is derived based on at least the motion information of the corresponding sub-block in the collocated block indicated by the updated DV.
[0244] At (S1962), the plurality of sub-blocks are reconstructed in an SbTMVP mode based on the SbTMVP information of the sub-blocks among the plurality of sub-blocks.
[0245] In some examples, an MVP is selected from an MVP candidate list based on MVP information for an AMVP mode in the coded information of the current block. The MVP is used as an SbT MVP candidate to derive a final DV.
[0246] In some examples, an MVP candidate list is constructed, the MVP candidate list including a sub-block based merge candidate list. The sub-block based merge candidate list includes one or more SbTMVP candidates. In one example, the sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order. In another example, the sub-block based merge candidate list includes a zero DV used as an SbTMVP candidate.
[0247] In some examples, one or more spatial neighboring blocks of the current block are checked for the availability of the center sub-block motion vector in a predetermined order. For the spatial neighboring blocks of the current block, in response to the center sub-block motion vector of the spatial neighboring block being available, the spatial neighboring block is added as a candidate to the MVP candidate list. In response to no spatial neighboring block in the one or more spatial neighboring blocks having an available center sub-block motion vector, a zero DV is added to the MVP candidate list.
[0248] In some examples, the encoded information indicates an affine AMVP mode, and an affine AMVP candidate list including one or more SbTMVP candidates is constructed. In one example, the SbTMVP candidate is inserted at a first position in the affine AMVP candidate list.
[0249] In some examples, it is checked whether there is an affine-coded block in the spatial neighboring blocks of the current block. In response to no spatial neighboring blocks being affine-coded in the spatial neighboring blocks, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list. In response to the presence of an affine-coded block in the spatial neighboring blocks, the SbTMVP candidate is inserted at the last position in the affine AMVP candidate list.
[0250] In some examples, the precision of the MVO information in the encoded information of the current block in the encoded video stream is determined. The MVO information is encoded into the encoded video stream with the precision via adaptive motion vector resolution (AMVR).
[0251] In some examples, based on the precision of the MVO information, an offset for deriving the final DV is determined. In one example, an index indicating the precision used in the AMVR is decoded from the encoded video bitstream. In one example, the precision of the MVO information is in units of M pixels, where M is a positive integer. In one example, the precision of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0252] In some examples, the offset used to derive the final DV is scaled based on the size of the sub-block.
[0253] The process (1900B) proceeds to (S1992) and terminates.
[0254] The process (1900B) can be appropriately adapted to various scenarios, and the steps in the process (1900B) can be adjusted accordingly. One or more steps in the process (1900B) can be adjusted, omitted, repeated, and / or combined. The process (1900B) can be implemented in any suitable order. Additional steps can be added.
[0255] The embodiments disclosed in this application may be used alone or in combination in any order. In addition, each of the method (or embodiment), encoder and decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium.
[0256] Fig. 20 A flow chart outlining an encoding process (2000) according to an embodiment disclosed herein is shown. The process (2000) may be used in a video encoder. The process (2000) may be performed by an apparatus for video encoding, which may include a processing circuit. In various embodiments, the process (2000) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (e.g., (403), (603), (703), etc. In some embodiments, the process (2000) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (2000). The process starts at (S2001) and proceeds to (S2010).
[0257] At (S2010), a displacement vector (DV) of a current block in a current picture may be determined, e.g. Fig.16 and Fig.17 The current block includes a plurality of sub-blocks to be encoded using a sub-block based temporal motion vector prediction (SbTMVP) mode. DV indicates a collocated block in a collocated reference picture, the collocated block being collocated with the current block.
[0258] At (S2020), motion information of a sub-block in the plurality of sub-blocks may be determined based on motion information of a corresponding sub-block in the collocated block, e.g. Fig.16 and Fig.17 Described in .
[0259] At (S2030), updated motion information of a subblock among the plurality of subblocks may be determined based on the motion information of the subblock among the plurality of subblocks and a motion vector (MV) offset of the current block.
[0260] In one example, the motion information of the sub-blocks in the plurality of sub-blocks includes a first motion vector (MV), the first MV being associated with a first reference picture from a first reference picture list L0. The updated first MV may be determined as a vector sum of the first MV and an MV offset. The updated motion information includes the updated first MV.
[0261] In one example, the motion information of the sub-blocks in the plurality of sub-blocks includes a second MV, the second MV being associated with a second reference picture from the second reference picture list L1. The updated second MV may be determined as one of: (i) a vector difference of the second MV and an MV offset, or (ii) a vector sum of the second MV and a scaled MV offset. The scaled MV offset may be based on the MV offset, a picture order count (POC) of the current picture, a POC of the first reference picture, and a POC of the second reference picture. The updated motion information includes the updated second MV.
[0262] At (S2040), MV offset information indicating the MV offset may be encoded. A subblock of the plurality of subblocks may be encoded based on the updated motion information. The MV offset information may be included in a code stream.
[0263] In one example, the MV offset information includes an MV offset.
[0264] In one example, the MV offset information indicates at least one index, the at least one index indicating the magnitude of the MV offset and the direction of the MV offset. The at least one index includes a distance index and a direction index, the distance index indicating the magnitude of the MV offset, i.e., a predetermined distance in a set of predetermined distances, and the direction index indicating the direction of the MV offset, i.e., a predetermined direction in a set of predetermined directions. A set of predetermined distances and a set of predetermined directions are used in a merged motion vector difference (MMVD) mode.
[0265] Then, the process (2000) proceeds to (S2099) and terminates.
[0266] The process (2000) may be appropriately adapted to various scenarios, and the steps in the process (2000) may be adjusted accordingly. One or more steps in the process (2000) may be adjusted, omitted, repeated, and / or combined. The process (2000) may be implemented in any suitable order. Additional steps may be added.
[0267] Fig.21A flowchart outlining a decoding process (2100) according to an embodiment disclosed herein is shown. The process (2100) may be used in a video decoder. The process (2100) may be performed by an apparatus for video encoding, which may include a receiving circuit and a processing circuit. In various embodiments, the process (2100) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (2100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (2100). The process starts at (S2101) and proceeds to (S2110).
[0268] At (S2110), motion vector (MV) offset information of a current block in a current picture may be received from an encoded video stream. The current block includes a plurality of sub-blocks, and the plurality of sub-blocks are reconstructed by using a sub-block based temporal motion vector prediction (SbTMVP) mode.
[0269] At (S2120), the displacement vector (DV) of the current block may be determined, e.g. Fig.16 and Fig.17 DV may indicate a block in a collocated reference picture, which is collocated with the current block. This block may be referred to as a collocated block of the current block.
[0270] At (S2130), motion information of a sub-block in the plurality of sub-blocks may be determined based on motion information of a corresponding sub-block in the collocated block, e.g. Fig.16 and Fig.17 Described in .
[0271] At (S2140), updated motion information of a subblock among the plurality of subblocks may be determined based on the motion information of the subblock among the plurality of subblocks and the MV offset of the current block indicated by the MV offset information.
[0272] In one example, the MV offset information includes a MV offset signaled in the encoded video bitstream.
[0273] In one example, the MV offset information indicates at least one index, the at least one index indicating the magnitude of the MV offset and the direction of the MV offset. The at least one index includes a distance index and a direction index, the distance index indicating the magnitude of the MV offset, i.e., a predetermined distance in a set of predetermined distances, and the direction index indicating the direction of the MV offset, i.e., a predetermined direction in a set of predetermined directions. A set of predetermined distances and a set of predetermined directions are used in a merged motion vector difference (MMVD) mode.
[0274] In one example, the motion information of the sub-blocks in the plurality of sub-blocks includes a first motion vector (MV), the first MV being associated with a first reference picture from a first reference picture list L0. The updated first MV may be determined as a vector sum of the first MV and an MV offset. The updated motion information includes the updated first MV.
[0275] In one example, the motion information of the sub-blocks in the plurality of sub-blocks includes a second MV, the second MV being associated with a second reference picture from the second reference picture list L1. The updated second MV may be determined as one of: (i) a vector difference of the second MV and an MV offset, or (ii) a vector sum of the second MV and a scaled MV offset. The scaled MV offset may be based on the MV offset, a picture order count (POC) of the current picture, a POC of the first reference picture, and a POC of the second reference picture. The updated motion information includes the updated second MV.
[0276] At (S2150), a sub-block among the plurality of sub-blocks may be reconstructed based on the updated motion information.
[0277] Process (2100) proceeds to (S2199) and terminates.
[0278] The process (2100) may be appropriately adapted to various scenarios, and the steps in the process (2100) may be adjusted accordingly. One or more steps in the process (2100) may be adjusted, omitted, repeated, and / or combined. The process (2100) may be implemented in any suitable order. Additional steps may be added.
[0279] Fig. 22A flowchart outlining a decoding process (2200) according to an embodiment disclosed herein is shown. The process (2200) may be used in a video decoder. The process (2200) may be performed by an apparatus for video encoding, which may include a receiving circuit and a processing circuit. In various embodiments, the process (2200) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (403), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the process (2200) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (2200). The process starts at (S2201) and proceeds to (S2210).
[0280] At (S2210), encoded information of a current block in a current picture is received from an encoded video stream, the encoded information indicating an advanced motion vector prediction (AMVP) mode having motion vector predictor (MVP) information and motion vector (MV) offset (MVO) information in the encoded information of the current block.
[0281] At (S2220), it is determined that a current block including a plurality of subblocks is encoded in a subblock based temporal motion vector prediction (SbTMVP) mode.
[0282] At (S2230), based on a combination of MVP information and MV offset information in the encoded information of the current block, a final displacement vector (DV) of the current block is determined, and the final DV indicates multiple corresponding sub-blocks in the collocated picture that respectively correspond to multiple sub-blocks of the current block.
[0283] At (S2240), corresponding motion information of a plurality of sub-blocks in the current block is determined according to corresponding motion information of a plurality of corresponding sub-blocks. Motion information of a sub-block in the current block is determined according to motion information of a corresponding sub-block indicated by a final DV.
[0284] At (S2250), multiple sub-blocks in the current block are reconstructed respectively based on the corresponding motion information of the multiple sub-blocks.
[0285] In some examples, an MVP is selected from an MVP candidate list based on MVP information for an AMVP mode in the coded information of the current block. The MVP is used as an SbT MVP candidate to derive a final DV.
[0286] In some examples, an MVP candidate list is constructed, the MVP candidate list including a sub-block based merge candidate list. The sub-block based merge candidate list includes one or more SbTMVP candidates. In one example, the sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order. In another example, the sub-block based merge candidate list includes a zero DV used as an SbTMVP candidate.
[0287] In some examples, one or more spatial neighboring blocks of the current block are checked for the availability of the center sub-block motion vector in a predetermined order. For the spatial neighboring blocks of the current block, in response to the center sub-block motion vector of the spatial neighboring block being available, the spatial neighboring block is added as a candidate to the MVP candidate list. In response to no spatial neighboring block in the one or more spatial neighboring blocks having an available center sub-block motion vector, a zero DV is added to the MVP candidate list.
[0288] In some examples, the encoded information indicates an affine AMVP mode, and an affine AMVP candidate list including one or more SbTMVP candidates is constructed. In one example, the SbTMVP candidate is inserted at a first position in the affine AMVP candidate list.
[0289] In some examples, it is checked whether there is an affine-coded block in the spatial neighboring blocks of the current block. In response to no spatial neighboring blocks being affine-coded in the spatial neighboring blocks, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list. In response to the presence of an affine-coded block in the spatial neighboring blocks, the SbTMVP candidate is inserted at the last position in the affine AMVP candidate list.
[0290] In some examples, the precision of the MVO information in the encoded information of the current block in the encoded video stream is determined. The MVO information is encoded into the encoded video stream with the precision via adaptive motion vector resolution (AMVR).
[0291] In some examples, based on the precision of the MVO information, an offset for deriving the final DV is determined. In one example, an index indicating the precision used in the AMVR is decoded from the encoded video bitstream. In one example, the precision of the MVO information is in units of M pixels, where M is a positive integer. In one example, the precision of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0292] In some examples, the offset used to derive the final DV is scaled based on the size of the sub-block.
[0293] Process (2200) proceeds to (S2299) and terminates.
[0294] The process (2200) can be appropriately adapted to various scenarios, and the steps in the process (2120) can be adjusted accordingly. One or more steps in the process (2200) can be adjusted, omitted, repeated, and / or combined. The process (2200) can be implemented in any suitable order. Additional steps can be added.
[0295] Fig.23 A flow chart outlining a process (2300) according to an embodiment disclosed herein is shown. The process (2300) may be used in a video encoder. The process (2300) may be performed by an apparatus for video encoding, which may include a processing circuit. In various embodiments, the process (2300) is performed by a processing circuit, such as a processing circuit in a terminal device (310), a terminal device (320), a terminal device (330), and a terminal device (340), a processing circuit that performs the functions of a video encoder (e.g., (403), (603), (703)), etc. In some embodiments, the process (2300) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (2300). The process starts at (S2301) and proceeds to (S2310).
[0296] At (S2310), it is determined to encode a current block including a plurality of subblocks in a subblock based temporal motion vector prediction (SbTMVP) mode.
[0297] At (S2020), a final DV combining the MVP information and the MV offset information is determined. The final DV indicates a plurality of corresponding sub-blocks in the collocated picture respectively corresponding to the plurality of sub-blocks of the current block.
[0298] At (S2030), corresponding motion information of a plurality of sub-blocks in the current block is determined according to corresponding motion information of a plurality of corresponding sub-blocks. Motion information of a sub-block in the current block is determined according to motion information of a corresponding sub-block indicated by a final DV.
[0299] At (S2340), multiple sub-blocks in the current block are constructed respectively based on the corresponding motion information of the multiple sub-blocks.
[0300] At (S2350), the coded information is generated using the Advanced Motion Vector Prediction (AMVP) mode using the MVP information and the MV offset information in the coded information of the current block.
[0301] In some examples, the MVP information indicates an MVP in an MVP candidate list. The MVP is used as an SbT MVP candidate to derive a final DV.
[0302] In some examples, an MVP candidate list is constructed, the MVP candidate list including a sub-block based merge candidate list. The sub-block based merge candidate list includes one or more SbTMVP candidates. In one example, the sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order. In another example, the sub-block based merge candidate list includes a zero DV used as an SbTMVP candidate.
[0303] In some examples, one or more spatial neighboring blocks of the current block are checked for the availability of the center sub-block motion vector in a predetermined order. For the spatial neighboring blocks of the current block, in response to the center sub-block motion vector of the spatial neighboring block being available, the spatial neighboring block is added as a candidate to the MVP candidate list. In response to no spatial neighboring block in the one or more spatial neighboring blocks having an available center sub-block motion vector, a zero DV is added to the MVP candidate list.
[0304] In some examples, an affine AMVP candidate list including one or more SbTMVP candidates is constructed, and encoded information is generated to indicate the affine AMVP mode. In one example, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list.
[0305] In some examples, it is checked whether there is an affine-coded block in the spatial neighboring blocks of the current block. In response to no spatial neighboring blocks being affine-coded in the spatial neighboring blocks, the SbTMVP candidate is inserted at the first position in the affine AMVP candidate list. In response to the presence of an affine-coded block in the spatial neighboring blocks, the SbTMVP candidate is inserted at the last position in the affine AMVP candidate list.
[0306] In some examples, the MVO information is encoded into the coded video bitstream at the precision used in Adaptive Motion Vector Resolution (AMVR).
[0307] In some examples, an index indicating the precision used in the AMVR is encoded into the encoded video bitstream. In one example, the precision of the MVO information is in units of M pixels, where M is a positive integer. In one example, the precision of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0308] In some examples, the offset used to derive the final DV is scaled based on the size of the sub-block.
[0309] Then, the process (2300) proceeds to (S2399) and terminates.
[0310] The process (2300) can be appropriately adapted to various scenarios, and the steps in the process (2300) can be adjusted accordingly. One or more steps in the process (2300) can be adjusted, omitted, repeated, and / or combined. The process (2300) can be implemented in any suitable order. Additional steps can be added.
[0311] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.24 A computer system (2400) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0312] 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 execution, etc.
[0313] 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, Internet of Things devices, and the like.
[0314] Fig.24 The components of the computer system (2400) shown are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing the embodiments disclosed herein. The configuration of components should not be interpreted as having any dependency or requirement related to any one or combination of components shown in the exemplary embodiment of the computer system (2400).
[0315] The computer system (2400) may include certain human interface input devices. Such human interface input devices may respond 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). Human interface devices 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 sounds), images (e.g., scanned images, captured images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0316] The human-machine interface input device may include one or more of the following (only one of each is shown): keyboard (2401), mouse (2402), touchpad (2403), touch screen (2410), data gloves (not shown), joystick (2405), microphone (2406), scanner (2407), camera (2408).
[0317] The computer system (2400) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses through, for example, 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 (2410), a data glove (not shown), or a joystick (2405), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (2409), headphones (not depicted)), visual output devices (e.g., screens (2410), 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 outputs or outputs exceeding three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0318] The computer system (2400) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (2420) with CD / DVD etc. media (2421), thumb drives (2422), removable hard drives or solid-state drives (2423), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), and the like.
[0319] 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.
[0320] The computer system (2400) may also include an interface (2454) to one or more communication networks (2455). The network may be, for example, a wireless network, a wired network, an optical network. The network may further 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 networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some universal data port or peripheral bus (2449) (e.g., a USB port of the computer system (2400)); as described below, other network interfaces are typically integrated into the kernel of the computer system (2400) by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system (2400) 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 two-way, for example, using a LAN or WAN digital network to connect to other computer systems. Certain protocols and protocol stacks may be used on each of those networks and network interfaces as described above.
[0321] The above-mentioned human interface device, human-accessible storage device, and network interface may be attached to the kernel (2440) of the computer system (2400).
[0322] The kernel (2440) may include one or more central processing units (CPUs) (2441), graphics processing units (GPUs) (2442), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (2443), hardware accelerators (2444) for certain tasks, graphics adapters (2450), and the like. These devices, as well as read-only memory (ROM) (2445), random access memory (2446), internal mass storage (2447) such as internal non-user accessible hard drives, SSDs, and the like, may be connected via a system bus (2448). In some computer systems, the system bus (2448) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the kernel's system bus (2448) or to the kernel's system bus (2448) via a peripheral bus (2449). In one example, a screen (2410) may be connected to a graphics adapter (2450). The architecture of the peripheral bus includes PCI, USB, and the like.
[0323] The CPU (2441), GPU (2442), FPGA (2443) and accelerator (2444) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (2445) or RAM (2446). Transition data can also be stored in RAM (2446), while permanent data can be stored, for example, in internal mass storage (2447). 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 (2441), GPUs (2442), mass storage (2447), ROM (2445), RAM (2446), etc.
[0324] The computer readable medium may have computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes disclosed in this application, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0325] As an example, and not by way of limitation, a computer system (2400) having an architecture, and in particular a kernel (2440), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as memories of certain non-temporary kernels (2440), such as kernel internal mass storage (2447) or ROM (2445). Software implementing various embodiments disclosed herein may be stored in such devices and executed by the kernel (2440). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may cause the kernel (2440), in particular 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 (2446) and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality due to logic embodied in a circuit (e.g., accelerator (2444)) that is hardwired or otherwise embodied, which circuit 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, a reference to a portion of software may include logic and vice versa. Where appropriate, a reference to a portion of a computer-readable medium may include a circuit (e.g., an integrated circuit (IC)) storing software for execution, a circuit embodying logic for execution, or both. The present application discloses any suitable combination of hardware and software. Appendix A: Acronyms JEM: Joint Exploration Model VVC: Next Generation Video Coding BMS: Benchmark Set MV: Motion Vector HEVC: High Efficiency Video Coding SEI: Supplementary Enhancement Information VUI: Video Availability Information GOP: Group of Pictures TU: Transform Unit PU: prediction unit CTU: Coding Tree Unit CTB: Coding Tree Block PB: prediction block HRD: Hypothetical Reference Decoder SNR: Signal to Noise Ratio CPU: Central Processing Unit GPU: Graphics Processing Unit CRT: cathode ray tube LCD: Liquid Crystal Display OLED: Organic Light Emitting Diode CD: compact disc DVD: Digital Video Disc ROM: Read Only Memory RAM: Random Access Memory ASIC: Application-Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile Communications LTE: Long Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Array SSD: Solid State Drive IC: Integrated Circuit CU: Coding Unit
[0326] Although the present application discloses a plurality of exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present application. 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 disclosed in the present application and therefore fall within the spirit and scope of the present application.
Claims
1. A video decoding method, comprising: Receiving an encoded video code stream including a current picture, wherein the current picture includes a current block, and the current block includes a plurality of sub-blocks; Determine, based on syntax elements in the encoded video bitstream, to encode the current block including the multiple sub-blocks in a sub-block based temporal motion vector prediction (SbTMVP) mode; obtaining motion vector offset (MVO) information of the current block, the MVO information indicating an MVO, the MVO indicating a motion offset of a displacement vector (DV), the motion offset being used to adjust a position of a collocated block in a collocated reference picture; determining an updated DV for the current block based on the MVO and the DV for the current block, the updated DV indicating an adjusted position of the collocated block in the collocated reference picture; deriving SbTMVP information of a corresponding sub-block among the plurality of sub-blocks based at least on motion information of a corresponding sub-block in the collocated block indicated by the updated DV; as well as The plurality of sub-blocks are reconstructed in the SbTMVP mode based on the SbTMVP information of the sub-blocks among the plurality of sub-blocks.
2. The method according to claim 1, wherein: The coded information of the current block in the coded video bitstream indicates an advanced motion vector prediction (AMVP) mode having motion vector predictor (MVP) information and motion vector offset (MVO) information in the coded information of the current block, the method comprising: Selecting an MVP from an MVP candidate list based on the MVP information for the AMVP mode in the encoded information of the current block; and The DV is derived using the MVP as a SbTMVP candidate.
3. The method according to claim 2, further comprising: The MVP candidate list is constructed, wherein the MVP candidate list includes a sub-block based merge candidate list, and the sub-block based merge candidate list includes one or more SbTMVP candidates.
4. The method according to claim 3, wherein: The sub-block based merge candidate list includes a plurality of spatial neighboring blocks of the current block in a predetermined order.
5. The method according to claim 3, wherein: The sub-block based merge candidate list includes zero DV used as SbTMVP candidate.
6. The method according to claim 3, wherein: Building the MVP candidate list also includes: checking one or more spatial neighboring blocks of the current block in a predetermined order for availability of a center sub-block motion vector; For a spatial neighboring block of the current block, in response to a central subblock motion vector of the spatial neighboring block being available, adding the spatial neighboring block as a candidate to the MVP candidate list; and In response to no spatial neighboring block of the one or more spatial neighboring blocks having an available center sub-block motion vector, adding a zero DV to the MVP candidate list.
7. The method according to claim 2, wherein: The encoded information indicates an affine AMVP mode, and the method comprises: Construct an affine AMVP candidate list including one or more SbTMVP candidates.
8. The method according to claim 7, wherein: Constructing the affine AMVP candidate list includes: An SbTMVP candidate is inserted at the first position in the affine AMVP candidate list.
9. The method according to claim 7, wherein: Constructing the affine AMVP candidate list includes: Checking whether there is an affine-coded block in the spatially adjacent blocks of the current block; In response to none of the spatially neighboring blocks being affine-coded, inserting a SbTMVP candidate at a first position in the affine AMVP candidate list; and In response to the presence of the affine-coded block in the spatially neighboring blocks, inserting a SbTMVP candidate at a last position of the affine AMVP candidate list.
10. The method according to claim 1, wherein: Obtaining the MVO information of the current block also includes: Determining the precision of the MVO information in the coded information of the current block in the coded video stream, the MVO information being coded into the coded video stream with the precision through adaptive motion vector resolution (AMVR); and Based on the accuracy of the MVO information, the motion offset of the DV is determined.
11. The method according to claim 10, wherein: Obtaining the MVO information of the current block also includes: The AMVR decodes an index indicating the precision from the encoded video code stream.
12. The method according to claim 10, wherein: The precision of the MVO information is in units of M pixels, where M is a positive integer.
13. The method according to claim 12, wherein: The accuracy of the MVO information is one of 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
14. The method according to claim 10, wherein: Determining the motion offset of the DV comprises: The motion offset of the DV is scaled based on the size of a sub-block.
15. A method for video decoding, comprising: Receiving motion vector (MV) offset information of a current block in a current picture from an encoded video bitstream, the current block comprising a plurality of sub-blocks, the plurality of sub-blocks being reconstructed by using a sub-block based temporal motion vector prediction (SbTMVP) mode; determining a displacement vector (DV) of the current block, the DV indicating a collocated block in a collocated reference picture that is collocated with the current block; determining motion information of a sub-block among the plurality of sub-blocks based on motion information of a corresponding sub-block in the collocated block; determining updated motion information of the sub-block among the multiple sub-blocks based on the motion information of the sub-block among the multiple sub-blocks and the MV offset of the current block indicated by the MV offset information; as well as The sub-block among the plurality of sub-blocks is reconstructed based on the updated motion information.
16. The method according to claim 15, wherein: The encoded information of the current block in the encoded video bitstream indicates an advanced motion vector prediction (AMVP) mode having motion vector predictor (MVP) information and the MV offset information in the encoded information of the current block, the method comprising: Selecting an MVP from an MVP candidate list based on the MVP information for the AMVP mode in the encoded information of the current block; and The DV is derived using the MVP as a SbTMVP candidate.
17. The method according to claim 16, further comprising: The MVP candidate list is constructed, wherein the MVP candidate list includes a sub-block based merge candidate list, wherein the sub-block based merge candidate list includes at least one spatial neighboring block of a plurality of spatial neighboring blocks of the current block in a predetermined order and a zero DV.
18. The method according to claim 16, wherein: The encoded information indicates an affine AMVP mode, and the method comprises: Construct an affine AMVP candidate list including one or more SbTMVP candidates.
19. The method according to claim 15, wherein: Receiving the MV offset information of the current block also includes: Determining the precision of the MV offset information in the encoded information of the current block in the encoded video stream, the MV offset information being encoded into the encoded video stream with the precision through adaptive motion vector resolution (AMVR); and Based on the accuracy of the MV offset information, the DV is determined.
20. A method for video decoding, comprising: receiving encoded information of a current block in a current picture from an encoded video bitstream, the encoded information indicating an advanced motion vector prediction (AMVP) mode having motion vector predictor (MVP) information and motion vector (MV) offset information in the encoded information of the current block; Determining to encode the current block including a plurality of sub-blocks in a sub-block based temporal motion vector prediction (SbTMVP) mode; Determine, based on a combination of the MVP information and the MV offset information in the encoded information of the current block, a final displacement vector (DV) of the current block, the final DV indicating a plurality of corresponding sub-blocks in a collocated picture that respectively correspond to the plurality of sub-blocks of the current block; Determining corresponding motion information of the plurality of sub-blocks in the current block according to corresponding motion information of the plurality of corresponding sub-blocks, wherein the motion information of the sub-blocks in the current block is determined according to the motion information of the corresponding sub-blocks indicated by the final DV; as well as The multiple sub-blocks in the current block are reconstructed respectively based on the corresponding motion information of the multiple sub-blocks.
