Method and apparatus for motion vector coding
Through template matching and context coding technology, the problem of low MVD coding efficiency in video coding is solved, the coding efficiency and quality are improved, and it is suitable for multiple video compression standards.
Patent Information
- Application Number
- CN202380014917.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-10-18
- Filing Date
- 2023-10-19
- Publication Date
- 2024-09-17
AI Technical Summary
Existing video coding technology suffers from inefficiency in motion vector difference (MVD) coding, especially in complex image sequences, resulting in degradation of coding efficiency and quality.
Using template matching and context encoding technology, by calculating the cost value of multiple bit combinations, the predicted value combination with the lowest cost value is determined, and the indicator is encoded in the encoded information to improve the coding efficiency of MVD.
It improves the efficiency of MVD encoding, reduces signaling costs, enhances the accuracy and quality of video decoding, and is suitable for various video compression standards such as VVC and HEVC.
Smart Images

Figure CN118661418A_ABST
Abstract
Description
[0001] Incorporated by Reference
[0002] This application claims the benefit of priority to U.S. Patent Application No. 18 / 381,496, filed on October 18, 2023, "METHOD AND APPARATUS FOR MOTION VECTOR CODING," which claims the benefit of priority to U.S. Provisional Application No. 63 / 417,651, filed on October 19, 2022, "Method and Apparatus for Motion Vector Coding." The disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure describes implementations that are generally related to video coding. Background Art
[0004] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. To the extent the work is described in this background section, the work of the presently named inventors and aspects of the description that may not otherwise be qualified as prior art at the time of filing are neither explicitly nor implicitly admitted to be prior art against the present disclosure.
[0005] Image / video compression can help to transmit image / video data between different devices, storages, and networks with minimal quality degradation. In some examples, video codec technology can compress video based on spatial redundancy and temporal redundancy. In an example, a video codec can use a technique called intra-frame prediction, which can compress images based on spatial redundancy. For example, intra-frame prediction can use reference data from the current picture being reconstructed to predict samples. In another example, a video codec can use a technique called inter-frame prediction, which can compress images based on temporal redundancy. For example, inter-frame prediction can use motion compensation to predict samples in the current picture based on previously reconstructed pictures. Motion compensation can be indicated by a motion vector (MV). Summary of the invention
[0006] Aspects of the present disclosure include methods and apparatus for video encoding / decoding. In some examples, the apparatus for video decoding includes a processing circuit system. The processing circuit system receives encoded information of a current block in a current picture, the encoded information including encoded information of a motion vector difference (MVD). The processing circuit system calculates cost values associated with multiple value combinations of multiple bits in the encoded bits of the MVD, respectively, the multiple bits including a partial codeword of the MVD, and at least one of the multiple bits being a bit in the codeword indicating the magnitude of the MVD. The processing circuit system determines a combination of prediction values for multiple bits based on the multiple value combinations, the combination of prediction values being associated with a minimum cost value in the cost values. The processing circuit system decodes the encoded information of the MVD to obtain one or more indicators for the combination of prediction values, the one or more indicators indicating whether the multiple bits are correctly predicted by the combination of prediction values. The processing circuit system determines the MVD based on the combination of prediction values and the one or more indicators. In addition, the processing circuitry determines a motion vector for the current block based on a motion vector predictor (MVP) and the MVD, and reconstructs the current block based on a reference block in a reference picture, the reference block being pointed to by the motion vector.
[0007] In some examples, the plurality of bits includes the first N bins of a suffix of a codeword for indicating a magnitude of at least one of a horizontal component and / or a vertical component of the MVD, N being a positive integer.
[0008] In some examples, the one or more indicators include binary values respectively associated with first N bins of the suffix, the binary values associated with the bins of the suffix indicating whether the bins of the suffix are correctly predicted in the combination of prediction values.
[0009] In some examples, the one or more indicators are context encoded in the encoded information of the MVD, and the processing circuitry decodes the one or more indicators from the encoded information of the MVD according to one or more context models.
[0010] In some examples, one or more indicators are context-encoded in the encoded information of the MVD based on the corresponding context model, and the processing circuit system decodes the one or more indicators from the encoded information of the MVD according to the corresponding context model.
[0011] In some examples, the remaining bins of the codeword are decoded from the encoded information of the MVD according to equally probable bins.
[0012] In some examples, the plurality of bits includes at least the MVD symbol and the first N binary bits of a suffix of a codeword for indicating a magnitude of at least one of a horizontal component and / or a vertical component of the MVD.
[0013] In some examples, the processing circuitry calculates template matching cost values respectively associated with the plurality of value combinations.
[0014] In some examples, the processing circuitry calculates smoothness cost values respectively associated with the plurality of value combinations.
[0015] In some examples, the processing circuitry determines N based on a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
[0016] In some examples, the processing circuit system decodes the prefix value of the codeword and determines that the decoded prefix value belongs to a subset of prefix values. In response to the decoded prefix value belonging to the subset of prefix values, the processing circuit system calculates cost values associated with multiple value combinations of multiple bits of the first N binary bits of the suffix of the codeword, respectively. In an example, the subset of prefix values has more than M binary bits for each prefix value, and M is a positive integer. In an example, the processing circuit system determines M based on a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
[0017] In some examples, the processing circuitry decodes the encoded information of the MVD to obtain indicator bits associated with the combination of prediction values, the indicator bits indicating whether the plurality of bits are correctly predicted by the combination of prediction values.
[0018] In some examples, the processing circuitry decodes a flag bit from the encoded information of the current block and predicts the flag bit indicating whether the predictor is applied to at least one of the horizontal component and / or the vertical component of the MVD.
[0019] In an example, the processing circuitry determines a context model for the flag bin and decodes the flag bin according to the context model.
[0020] In some examples, the processing circuitry sorts the value combinations according to cost values respectively associated with the value combinations, decodes an index from the encoded information of the current block, and selects a combination from the sorted value combinations according to the index.
[0021] In some examples, the processing circuitry determines at least one context model for encoding one or more bins in a prefix of the codeword, and decodes the one or more bins in the prefix based on the at least one context model.
[0022] In some examples, the processing circuit system determines a context model for first K bins in a prefix of the codeword respectively, and decodes the first K bins respectively according to the context model.
[0023] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform a method for video decoding / encoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Additional features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:
[0025] Figure 1 is a schematic illustration of an exemplary block diagram of a communication system (100).
[0026] Figure 2 is a schematic illustration of an exemplary block diagram of a decoder.
[0027] Figure 3 is a schematic illustration of an exemplary block diagram of an encoder.
[0028] Figure 4 Pseudocode for motion vector difference (MVD) signal representation in some examples is shown.
[0029] Figure 5 A table illustrating remainder values and corresponding code words in some examples is shown.
[0030] Figure 6 An example of template matching is shown.
[0031] Figure 7 A diagram for searching for MVD sign and amplitude combinations based on template matching is shown.
[0032] Figure 8 A flowchart outlining a process according to some implementations of the present disclosure is shown.
[0033] Fig. 9 A flow chart outlining another process according to some implementations of the present disclosure is shown.
[0034] Fig.10 is a schematic illustration of a computer system according to an embodiment. DETAILED DESCRIPTION
[0035] Figure 1A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of the application of the disclosed subject matter, video encoders, and video decoders in a streaming environment. The disclosed subject matter can be equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, streaming services, storing compressed video on digital media including CDs (Compact Discs, CDs), DVDs (Digital Video Disks, DVDs), memory sticks, etc.
[0036] The video processing system (100) includes a capture subsystem (113) that may include a video source (101), such as a digital camera, that creates, for example, an uncompressed video picture stream (102). In an example, the video picture stream (102) includes samples captured by the digital camera. The video picture stream (102) is depicted as a thick line to emphasize the high amount of data when compared to the encoded video data (104) (or encoded video bitstream), and the video picture stream (102) may be processed by an electronic device (120) coupled to the video source (101) including a video encoder (103). The video encoder (103) may include hardware, software, or a combination thereof to implement or embody aspects of the disclosed subject matter as described in more detail below. The encoded video data (104) (or encoded video bitstream) is depicted as a thin line to emphasize the low data volume when compared to the video picture stream (102), and the encoded video data (104) can be stored on the streaming server (105) for future use. One or more streaming client subsystems such as Figure 1 The client subsystems (106) and (108) in the streaming server (105) can access the streaming server (105) to retrieve copies (107) and (109) of the encoded video data (104). The client subsystem (106) can include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and creates an outgoing video picture stream (111) that can be presented on a display (112) (e.g., a display screen) or other presentation device (not depicted). In some streaming systems, the encoded video data (104), (107) and (109) (e.g., a video bitstream) can be encoded according to certain video coding standards / video compression standards. Examples of such standards include ITU-T Recommendation H.265. In the example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC). The disclosed subject matter can be used in the context of VVC.
[0037] Note that the electronic devices (120) and (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may also include a video encoder (not shown).
[0038] Figure 2 An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., receiving circuitry). The video decoder (210) may replace Figure 1 The video decoder (110) in the example is used.
[0039] The receiver (231) may receive one or more encoded video sequences, for example, included in a bitstream, to be decoded by the video decoder (210). In an embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the decoding of other encoded video sequences. The encoded video sequence may be received from a channel (201), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (231) may receive the encoded video data as well as other data, such as encoded audio data and / or ancillary data streams that may be forwarded to their respective use entities (not depicted). The receiver (231) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and an entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other applications, the buffer memory (215) may be external to the video decoder (210) (not depicted). In still other applications, there may be a buffer memory (not depicted) external to the video decoder (210) to, for example, prevent network jitter, and there may also be another buffer memory (215) internal to the video decoder (210) to, for example, handle playout timing. When the receiver (231) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (215) may not be required, or the buffer memory (215) may be smaller. In order to make the most of packet networks such as the Internet, a buffer memory (215) may be required, which may be relatively large and may advantageously have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (210).
[0040] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (210) and potentially include information for controlling a presentation device such as a presentation device (212) (e.g., a display screen) that is not part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2 As shown. The control information for the rendering device may be in the form of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser (220) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or a video coding standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (220) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Picture (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 (220) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the encoded video sequence.
[0041] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) to create symbols (221).
[0042] Depending on the type of coded video pictures or parts thereof (such as inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (221) may involve a number of different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the coded video sequence by the parser (220). For the sake of brevity, the flow of such subgroup control information between the parser (220) and the following multiple units is not described.
[0043] In addition to the functional blocks already mentioned, the video decoder (210) 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 into each other. However, for the purposes of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0044] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as symbols (221) from the parser (220) and control information including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) can output blocks including sample values that can be input into the aggregator (255).
[0045] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use predictive information from a previously reconstructed picture but can use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (252). In some cases, the intra-picture prediction unit (252) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information obtained from the current picture buffer (258). The current picture buffer (258) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (255) adds the predictive information already generated by the intra-prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.
[0046] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (253) may access the reference picture memory (257) to obtain samples for prediction. After the obtained samples are motion compensated according to the symbols (221) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (251) (in this case, called residual samples or residual signal) by the aggregator (255) to generate output sample information. The address within the reference picture memory (257) from which the motion compensated prediction unit (253) obtains the predicted samples may be controlled by a motion vector, which is used by the motion compensated prediction unit (253) in the form of a symbol (221), 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 obtained from the reference picture memory (257) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0047] The output samples of the aggregator (255) may be subjected to various loop filtering techniques in a loop filter unit (256). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and available to the loop filter unit (256) as symbols (221) from the parser (220). The video compression may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0048] The output of the loop filter unit (256) may be a sample stream that may be output to a rendering device (212) and stored in a reference picture memory (257) for use in future inter-picture prediction.
[0049] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) may become part of the reference picture memory (257) and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0050] The video decoder (210) may perform decoding operations according to a predetermined video compression technology or standard such as ITU-T H.265 Recommendation. 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 both 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 is also required to be within the limits defined by the level of the video compression technology or standard. In some cases, the level 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 level may be further limited by the Hypothetical Reference Decoder (HRD) specification and the metadata of the HRD buffer management signaled in the encoded video sequence.
[0051] In an embodiment, the receiver (231) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The video decoder (210) may use the additional data to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0052] Figure 3 An exemplary block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., a transmission circuit system). The video encoder (303) can be used to replace Figure 1 A video encoder (103) in an example of FIG.
[0053] The video encoder (303) can be used to obtain the video source (301) (which is not Figure 3 In an example, the video source (301) is a part of the electronic device (320) to receive the video samples, and the video source (301) can capture (one or more) video images to be encoded by the video encoder (303). In another example, the video source (301) is a part of the electronic device (320).
[0054] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (303), the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, etc.), any color space (e.g., BT.601 Y CrCB, RGB, etc.), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves may be organized as a spatial array of pixels, where each pixel may include one or more samples, depending on the sampling structure, color space, etc. used. The following description focuses on samples.
[0055] According to an embodiment, the video encoder (303) can encode and compress pictures of a source video sequence into an encoded video sequence (343) in real time or under any other time constraints required. Implementing an appropriate encoding speed is a function of the controller (350). In some embodiments, the controller (350) controls other functional units described below and is functionally coupled to these functional units. For the sake of brevity, the coupling is not depicted. The parameters set by the controller (350) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (350) can be configured to have other suitable functions that belong to the video encoder (303) optimized for a certain system design.
[0056] In some embodiments, the video encoder (303) is configured to operate in an encoding loop. As an oversimplified description, in an example, the encoding loop may include a source encoder (330) (e.g., responsible for creating symbols such as a symbol stream based on an input picture to be encoded and (one or more) reference pictures) and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder would also create sample data. The reconstructed sample stream (sample data) is input to a reference picture memory (334). Since the decoding of the symbol stream produces a bit-accurate result that is independent of the decoder location (local or remote), the contents of the reference picture memory (334) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values that the decoder will "see" when using prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, for example due to channel errors) is also used in some related technologies.
[0057] The operation of the "local" decoder (333) can be combined with the above Figure 2 The operation of a "remote" decoder such as the video decoder (210) described in detail is the same. However, reference is also briefly made to Figure 2 , since the symbols are available and encoding the symbols into an encoded video sequence through the entropy encoder (345) and decoding the symbols through the parser (220) can be lossless, the entropy decoding portion of the video decoder (210) (including the buffer memory (215) and the parser (220)) may not be fully implemented in the local decoder (333).
[0058] In an 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. Since encoder techniques are reciprocal to the fully described decoder techniques, the description of encoder techniques can be simplified. In the following, a more detailed description is provided in certain areas.
[0059] During operation, in some examples, the source encoder (330) may perform motion compensated predictive encoding that predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as “reference pictures.” In this manner, the encoding engine (332) encodes the differences between pixel blocks of an input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0060] The local video decoder (333) can decode the encoded video data of the picture that can be designated as the reference picture based on the symbol created by the source encoder (330). The operation of the encoding engine (332) can advantageously be lossy processing. When the encoded video data can be decoded at the video decoder ( Figure 3 When the video encoder (303) is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (334). In this way, the video encoder (303) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture that will be obtained by the remote video decoder.
[0061] The predictor (335) may perform a prediction search for the encoding engine (332). That is, for a new picture to be encoded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (335) may operate on a pixel block by pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (335), the input picture may have prediction references extracted from multiple reference pictures stored in the reference picture memory (334).
[0062] The controller (350) can manage encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for encoding video data.
[0063] The outputs of all the above functional units may be entropy encoded in an entropy encoder (345). The entropy encoder (345) converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing them according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0064] The transmitter (340) can buffer the encoded video sequence created by the entropy encoder (345) in preparation for transmission via a communication channel (360), which can be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (340) can combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).
[0065] The controller (350) can manage the operation of the video encoder (303). During encoding, the controller (350) can assign a specific coded picture type to each coded picture, which can affect the coding techniques that can be applied to the corresponding picture. For example, a picture can generally be assigned one of the following picture types:
[0066] Intra pictures (I pictures) can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures.
[0067] Predictive pictures (P pictures) can be encoded and decoded using intra prediction or inter prediction, where inter prediction uses motion vectors and reference indices to predict sample values for each block.
[0068] Bidirectional predictive pictures (B pictures) can be encoded and decoded using intra prediction or inter prediction, where inter prediction uses two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata to reconstruct a single block.
[0069] The source picture may typically be spatially subdivided into a plurality of blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples, respectively) and coded block by block. The blocks may be predictively coded with reference to other (already coded) blocks 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-prediction) with reference to already coded blocks of the same picture. Pixel blocks of a P picture may be predictively coded via spatial prediction or via temporal prediction with reference to one previously coded reference picture. Blocks of a B picture may be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures.
[0070] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In the operation of the video encoder (303), the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to a syntax specified by the video encoding technique or standard used.
[0071] In an embodiment, the transmitter (340) may transmit additional data along with the encoded video. The source encoder (330) 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.
[0072] Video can be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often referred to simply as intra-picture prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an example, a particular picture being encoded / decoded, referred to as the current picture, can be divided into blocks. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded and still buffered in the video, the block in the current picture can 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 of using multiple reference pictures, the motion vector may have a third dimension that identifies the reference picture.
[0073] In some embodiments, bidirectional prediction techniques may be used for inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, such as 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 in the 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 combining the first reference block and the second reference block.
[0074] In addition, merge mode techniques can be used for inter-picture prediction to improve coding efficiency.
[0075] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, a picture in a video picture sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), i.e., a luminance CTB and two chrominance CTBs. Each CTU can be recursively split into one or more coding units (CUs) with a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In the example, each CU is analyzed to determine the prediction type of the CU, such as an inter-prediction type or an intra-prediction type. Depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in decoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0076] Note that the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using any suitable technology. In an embodiment, the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using one or more integrated circuits. In another embodiment, the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using one or more processors executing software instructions.
[0077] Aspects of the present disclosure provide techniques for coding motion vector difference (MVD), which is used for various inter prediction tools, such as merge motion vector difference (MMVD), affine MVD, and the like.
[0078] For example, various inter prediction modes may be used in VVC. For an inter-predicted CU, motion parameters may include MV, one or more reference picture indices, a reference picture list usage index, and additional information about certain coding features to be used for inter-prediction sample generation. Motion parameters may be explicitly or implicitly signaled. When a CU is encoded in skip mode, the CU may be associated with a PU and may not have valid residual coefficients, may not have encoded motion vector increments or MV differences (e.g., MVD (MV difference) or reference picture indices. A merge mode may be specified, in which motion parameters of the current CU are obtained from neighboring CUs, including spatial candidates and / or temporal candidates, and may optionally include additional information such as that introduced in VVC. The merge mode may be applied to inter-predicted CUs, not just to skip mode. In an example, an alternative to the merge mode is explicit transmission of motion parameters, in which MV, corresponding reference picture indices for each reference picture list, and reference picture list usage flags, as well as other information, are explicitly signaled for the CU.
[0079] In an embodiment, such as in VVC, the VVC Test model (VTM) reference software includes one or more inter-frame prediction coding tools, which include: extended merge prediction, merge motion vector difference (MMVD) mode, adaptive motion vector prediction (AMVP) mode with symmetric MVD signaling, affine motion compensated prediction, subblock-based temporal motion vector prediction (SbTMVP), adaptive motion vector resolution (AMVR), motion field storage (1 / 16 luma sample MV storage and 8×8 motion field compression), bi-prediction with CU-level weight (BCW), bi-directional optical flow (BDOF), prediction refinement using optical flow (PROF), decoder side motion vector refinement (DMVR), combined inter and intra prediction (combined inter and intra prediction, CIIP), geometric partitioning mode (GPM), etc. Some inter-frame prediction and related methods are described in detail below.
[0080] In the following description, the use of MMVD mode is used to illustrate the use of MVD encoding. In some examples, MMVD reuses merge candidates. Candidates can be selected among the merge candidates, and the candidates can be further expanded by motion vector expression method. In some examples, the motion vector expression includes the starting point, the magnitude of the motion, and the direction of the motion.
[0081] In some examples (eg, VVC), the MMVD technique may use a merge candidate list to select a candidate to use as a starting point. However, in the example, for an extension of MMVD, only candidates of the default merge type (MRG_TYPE_DEFAULT_N) are considered.
[0082] In some examples, a base candidate index is used to define the starting point. The base candidate index indicates the best candidate among the candidates in the list shown in Table 1. For example, the list is a merge candidate list with a motion vector predictor (MVP). The base candidate index can indicate the best candidate in the merge candidate list.
[0083] Table 1 - Example of base candidate index (index, IDX)
[0084] Base candidate IDX 0 1 2 3 Nth MVP First MVP Second MVP Third MVP Fourth MVP
[0085] Note that in one example, the number of base candidates is equal to 1, then the base candidate IDX is not signaled.
[0086] In MMVD mode, after selecting a merge candidate (also referred to as an MV basis or MV start point), the merge candidate may be refined by additional information such as MVD information represented by a signal. The additional information may indicate an MVD (or motion offset) relative to the MV basis. For example, the motion magnitude indicates the magnitude of the MVD, and the motion direction indicates the direction of the MVD.
[0087] In some examples (e.g., in VVC), for MVD encoding, the magnitude value of the MVD (the absolute value of the MVD) is first signaled, and then the sign value is signaled. For example, for each of the horizontal and vertical components of the MVD, a first flag (e.g., represented by abs_mvd_greater0_flag) is first encoded to indicate whether the absolute value of the component is greater than 0. When the absolute value of the component is greater than 0, a second flag (e.g., represented by abs_mvd_greater1_flag) is encoded to indicate whether the absolute value of the component is greater than 1. When the absolute value of the component is greater than 1, a remainder value (absolute value minus 2) such as represented by abs_mvd_minus2 is encoded.
[0088] In some examples, flags abs_mvd_greater0_flag and abs_mvd_greater1_flag are both context coded, the remainder value abs_mvd_minus2 is binarized using a finite first-order exponential Golomb binarization process, and each resulting bin is encoded using bypass coding.
[0089] Figure 4 Pseudocode (400) for MVD signal representation in some examples is shown. Figure 4In the example of , for the horizontal component and the vertical component of the MVD, the first flag (abs_mvd_greater0_flag[0] for the horizontal component and abs_mvd_greater0_flag[1] for the vertical component) is encoded to indicate whether the absolute value of the horizontal component and the vertical component is greater than 0. Figure 4 As shown in (410) in .
[0090] For the horizontal component, when the absolute value of the horizontal component is greater than 0, the second flag (abs_mvd_greater1_flag[0]) is encoded to indicate whether the absolute value of the horizontal component is greater than 1, such as Figure 4 When the absolute value of the horizontal component is greater than 1, the remainder value (absolute value minus 2, represented by abs_mvd_minus2[0]) is encoded, such as Figure 4 As shown in (431) in .
[0091] For the vertical component, when the absolute value of the vertical component is greater than 0, the second flag (abs_mvd_greater1_flag[1]) is encoded to indicate whether the absolute value of the vertical component is greater than 1, such as Figure 4 When the absolute value of the vertical component is greater than 1, the remainder value (absolute value minus 2, represented by abs_mvd_minus2[1]) is encoded, such as Figure 4 As shown in (432) in .
[0092] Note that each remainder value is encoded by a first-order EG-binarized codeword and includes a prefix and a suffix.
[0093] Figure 5 A table (500) is shown showing the remainder values and corresponding codewords in some examples. The remainder values are encoded by first order exponential Golomb binarization codewords, and each codeword includes a prefix and a suffix.
[0094] In the example, to convert the remainder value into a codeword, the remainder is first converted into binary. Then, the number of digits in the binary is determined. The number of digits in the binary minus 1 is the number of starting zeros in the prefix of the codeword.
[0095] In some examples (such as VVC), a binary pair with a probability of 0.5 is used for the sign bit such as Figure 4 The horizontal sign bit indicated by mvd_sign_flag[0] and the vertical sign bit indicated by mvd_sign_flag[1] are bypass-coded.
[0096] Entropy coding techniques, such as context-based adaptive binary arithmetic coding (CABAC) techniques, can also reduce signaling costs. For example, the context model used in CABAC to encode the current block can be determined based on information from temporal neighboring blocks (also referred to as temporally co-located blocks) of the current block and / or spatial neighboring blocks of the current block. CABAC can be used to encode various syntax elements, such as an inter-frame affine flag (e.g., inter_affine_flag), a sub-block merge flag (e.g., merge_subblock_flag), a local illumination compensation (LIC) flag (e.g., lic_flag), etc. The inter-frame affine flag associated with the coding block is used to indicate whether the coding block is encoded using affine motion compensated prediction. The sub-block merge flag associated with the coding block is used to indicate whether the coding block is encoded using a sub-block motion compensation mode. The LIC flag associated with the coding block is used to indicate whether the coding block is encoded using local illumination compensation.
[0097] CABAC is a coding technique used in entropy coding. Generally, the coding process of CABAC includes a binarization step, a context modeling step, and an arithmetic coding step.
[0098] In the binarization step of the CABAC-based encoding process, non-binary valued syntax elements may be mapped to binary sequences (also referred to as binary bit strings). In the case where the syntax elements have values in binary form (eg, binary sequences), the binarization step may be bypassed.
[0099] In the context modeling step of the CABAC-based coding process, a probability model is determined based on previously encoded syntax elements. In some examples, a probability model (also referred to as a context or context model in CABAC) can be represented by a probability state (also referred to as a context state in some examples) and a Most Probable Symbol (MPS) value. The probability state is associated with a probability value, and can implicitly indicate that the probability that a particular symbol (e.g., a binary bit) is a least probable symbol (LPS) is equal to the probability value. The symbol can be an LPS or an MPS. For binary symbols, MPS and LPS can be 0 or 1. For example, if LPS is 1, MPS is 0; and if LPS is 0, MPS is 1. A probability value is estimated for the corresponding context, and the probability value can be used when entropy encoding the symbol using an arithmetic encoder.
[0100] The arithmetic coding step of the CABAC-based coding process is performed based on the principle of recursive interval subdivision according to a probability model. In some examples, the arithmetic coding step is processed by a state machine with a range parameter and a lower limit parameter (low parameter). The state machine can change the values of the range parameter and the lower limit parameter for encoding based on the context (probability model) and the binary bit sequence. The value of the range parameter indicates the size of the current range into which the encoded value (of the binary bit) falls, and the value of the lower limit parameter indicates the lower boundary of the current range. In the example, according to the probability state (for example, it is associated with the probability value), the current range (CurrRange) is divided into a first sub-range (MpsRange) (also referred to as the MPS range of the current state) and a second sub-range (LpsRange) (also referred to as the LPS range of the current state). In the example, the second sub-range can be calculated by multiplication, such as using formula (1):
[0101] LpsRange=CurrRange×ρ Formula (1)
[0102] Where ρ is the probability value of the current binary bit being LPS. The probability of the current binary bit being MPS can be calculated by (1-ρ). The first sub-range can be calculated by formula (2):
[0103] MpsRange=CurrRange-LpsRange Formula (2)
[0104] In the example, when the current binary bit is MPS, the value of the lower limit parameter is maintained, and the value of the range parameter is updated to MpsRange; when the current binary bit is LPS, the value of the lower limit parameter is updated to (low+MpsRange), and the value of the range parameter is updated to LpsRange. Then, the CABAC encoding process can be continued for the next binary bit in the binary bit sequence.
[0105] In some examples (e.g., HEVC), the value of the range parameter is expressed with 9 bits and the value of the floor parameter is expressed with 10 bits. In addition, a renormalization process may be performed to maintain the value of the range and the value of the floor with sufficient accuracy. For example, renormalization may be performed as long as the value of the range parameter is less than 256. Thus, after renormalization, the range parameter is equal to or greater than 256.
[0106] In some examples (e.g., HEVC), 64 possible probability values of LPS may be used, and each MPS may be 0 or 1. In an example, the probability model may be stored as a 7-bit entry corresponding to 64 probability values (64 probability states) and 2 possible values of MPS (0 or 1). In each 7-bit entry, 6 bits may be allocated to represent the probability state, and 1 bit may be allocated for the MPS.
[0107] According to one aspect of the present disclosure, a technique called template matching (TM) can be used for video / image decoding to improve coding efficiency. For example, in order to further improve the compression efficiency of the VVC standard, TM can be used to refine MV. In the example, TM is used on the decoder side. Using the TM mode, the MV can be refined by constructing a template (e.g., current template) of a block in the current picture (e.g., current block) and determining the closest match between the template of the block in the current picture and multiple possible templates in the reference picture (e.g., multiple possible reference templates). In an embodiment, the template of the block in the current picture may include the left adjacent reconstructed samples of the block and the top adjacent reconstructed samples of the block.
[0108] Figure 6 An example of template matching (600) is shown. The TM can be used to derive motion information (e.g., final motion information based on initial motion information such as initial MV 602) of a current CU (e.g., current block) (601) by determining the closest match between a template (e.g., current template) (621) of a current CU (601) in a current picture (610) and a template (e.g., reference template) in a plurality of possible templates (e.g., one of the plurality of possible templates is template (625)) in a reference picture (611). The template (621) of the current CU (601) can have any suitable shape and any suitable size.
[0109] In an embodiment, the template (621) of the current CU (601) includes a top template (622) and a left template (623). Each of the top template (622) and the left template (623) can have any suitable shape and any suitable size.
[0110] The top template (622) may include samples from one or more top neighboring blocks of the current CU (601). In an example, the top template (622) includes four rows of samples from one or more top neighboring blocks of the current CU (601). The left template (623) may include samples from one or more left neighboring blocks of the current CU (601). In an example, the left template (623) includes four columns of samples from one or more left neighboring blocks of the current CU (601).
[0111] Each possible template (e.g., template (625)) of a plurality of possible templates in the reference picture (611) corresponds to the template (621) in the current picture (610). In an embodiment, the initial MV (602) points from the current CU (601) to the reference block (603) in the reference picture (611). Each possible template (e.g., template (625)) of a plurality of possible templates in the reference picture (611) and the template (621) in the current picture (610) may have the same shape and the same size. For example, the template (625) of the reference block (603) includes a top template (626) in the reference picture (611) and a left template (627) in the reference picture (611). The top template (626) may include samples in one or more top adjacent blocks of the reference block (603). The left template (627) may include samples in one or more left adjacent blocks of the reference block (603).
[0112] The TM cost may be determined based on a pair of templates, such as a template (e.g., current template) (621) and a template (e.g., reference template) (625). The TM cost may indicate a match between the template (621) and the template (625). The optimized MV (or final MV) may be determined based on a search performed around the initial MV (602) of the current CU (601) within a search range (615). The search range (615) may have any suitable shape and any suitable number of reference samples. In an example, the search range (615) in the reference picture (611) includes a [-L, L] pixel range, where L is a positive integer such as 8 (e.g., 8 samples). For example, a difference (e.g., [0, 1]) is determined based on the search range (615), and an intermediate MV is determined by the sum of the initial MV (602) and the difference (e.g., [0, 1]). An intermediate reference block and a corresponding template in the reference picture (611) may be determined based on the intermediate MV. The TM cost may be determined based on the template (621) and the intermediate template in the reference picture (611). The TM cost may correspond to the difference (e.g., [0, 0], [0, 1], etc.) determined based on the search range (615). In the example, the difference corresponding to the minimum TM cost is selected, and the optimized MV is the sum of the difference corresponding to the minimum TM cost and the initial MV (602). As described above, the TM may obtain the final motion information (e.g., the optimized MV) according to the initial motion information (e.g., the initial MV 602).
[0113] exist Figure 6 In the example of , a better MV can be searched within a search range such as [-8, +8] pixels around the initial motion vector of the current CU.
[0114] In some examples, the symbol of the MVD can be predicted. For example, the TM technique can be used to search for possible MVD symbol combinations. The possible MVD symbol combinations can be sorted according to the template matching cost, and the index corresponding to the real MVD symbol is obtained and context encoded.
[0115] In some examples, at the decoder side, the MVD symbol is appropriately derived, for example, in the following five steps. In the first step, the syntax elements for the amplitude of the MVD component are parsed from the encoded video bitstream. In the second step, the context-encoded MVD symbol prediction index is parsed from the encoded video bitstream. In the third step, MV candidates are constructed, for example, by creating a combination between possible MVD symbols and absolute MVD values and adding the combination to the MV predictor list. In the fourth step, the MVD symbol prediction cost of each combination in the MV predictor list is derived based on the template matching cost, and the combinations are sorted according to the MVD symbol prediction costs associated with the combinations in the MV predictor list. In the fifth step, the MVD symbol prediction index is used to select a combination in the MV prediction list, which includes a true MVD symbol combined with an absolute MVD value.
[0116] The MVD sign prediction technique can be applied to inter-AMVP mode, affine AMVP mode, MMVD mode and affine MMVD mode.
[0117] Note that MVD symbol prediction based on template matching can reduce the signaling cost of MVD encoding. Some aspects of the present disclosure provide additional prediction techniques that will be used to encode the MVD amplitude to further reduce the signaling cost. In some examples, the encoder / decoder can calculate cost values associated with possible combinations of values of multiple bits in the coded bits of the MVD. At least one of the multiple bits is a bit in a codeword for indicating the amplitude of the MVD. The encoder / decoder can determine a combination of prediction values for multiple bits from the possible combinations, and the combination of the prediction values is associated with the lowest cost value in the cost value. The encoder can encode one or more indicators (also referred to as prediction values in some examples) for the combination of prediction values in the encoded information of the MVD. The decoder can decode one or more indicators from the encoded information of the MVD. One or more indicators indicate whether multiple bits are correctly predicted by the combination of prediction values.
[0118] Some aspects of the present disclosure provide techniques for predicting the values of the first N binary bits of a suffix of a motion vector difference (MVD) coded codeword. In some examples, the codeword is generated using first-order exponential Golomb binarization for the remainder values in the MVD coding of the amplitude of the horizontal component and the vertical component. Each codeword includes a prefix and a suffix. The present disclosure provides techniques for predicting the values of the first N binary bits of the suffix in a codeword.
[0119] In some embodiments, to signal the first N bits of the suffix of the MVD, a predicted value is encoded in the encoded video bitstream instead of signaling the actual value. For each of the first N bits, the predicted value is a binary value indicating whether the actual value of the bit is correctly predicted. In some examples, the predicted value is context encoded. In some examples, different contexts are used for entropy encoding for different bits in the first N bits of the suffix.
[0120] In some embodiments, the remaining MVD bits are signaled in the coded video bitstream, including the remaining bits after the first N bits in the prefix and suffix of the codeword. In some examples, the remaining MVD bits are treated as regular MVD amplitudes and are signaled using the same method as the MVD amplitude bit signaling. In some examples, the remaining MVD bits are signaled using equal probability (EP) bits where each bit has an equal probability of being "1" or "0". Note that bits encoded using EP are also referred to as bypass encoded.
[0121] In some embodiments, the predicted values of the first N bits of the suffix (and the predicted values of the MVD symbols) are obtained by template matching. For example, different combinations of predicted values and MVD symbols are used to form possible MVDs. Possible MVDs can point to possible reference blocks. Then, the template matching cost between each possible reference block and the current block is calculated, and the one with the smallest template matching cost is selected as the predicted value of the first N bits of the suffix.
[0122] Figure 7 A diagram (700) is shown for searching for MVD sign and amplitude combinations based on template matching. Figure 7 In the example of , the current block (701) is in the current picture. The neighboring samples of the current block (701) can form a template associated with the current block (701). For example, the template associated with the current block (701) includes a top template (702) and a left template (703). In addition, Figure 7In the example, a motion vector predictor (MVP) may indicate a base motion vector.
[0123] In the example, different values of the first binary bit of the suffix of the codeword of the horizontal component, different values of the first binary bit of the suffix of the codeword of the vertical component, and different values of the MVD symbol can form 16 combinations of MVD candidates, each of which corresponds to a motion vector difference (MVD). Using MVP, the 16 combinations of MVD candidates can indicate 16 possible reference blocks in the reference picture. The adjacent samples of each possible reference block can form a possible reference template associated with the possible reference block. In addition, the template matching cost of each of the 16 possible reference templates and the template of the current block is calculated. Then, in the example, the combination with the lowest template matching cost can be selected to generate a predicted value for the first binary bit of the suffix of the codeword of the horizontal component, and a predicted value for the first binary bit of the suffix of the codeword of the vertical component.
[0124] In the example, Figure 78 of the 16 combinations are shown, and the other 8 combinations are omitted for convenience and clarity. For example, the first combination corresponds to the first MVD (711), the first MVD (711) with MVP can indicate the first possible reference block in the reference picture, and the first possible reference template associated with the first possible reference block includes a top template (712) and a left template (713). The second combination corresponds to the second MVD (721), the second MVD (721) with MVP can indicate the second possible reference block in the reference picture, and the second possible reference template associated with the second possible reference block includes a top template (722) and a left template (723). The third combination corresponds to the third MVD (731), the third MVD (731) with MVP can indicate the third possible reference block in the reference picture, and the third possible reference template associated with the third possible reference block includes a top template (732) and a left template (733). The fourth combination corresponds to the fourth MVD (741), the fourth MVD (741) with MVP can indicate the fourth possible reference block in the reference picture, and the fourth possible reference template associated with the fourth possible reference block includes the top template (742) and the left template (743). The fifth combination corresponds to the fifth MVD (751), the fifth MVD (751) with MVP can indicate the fifth possible reference block in the reference picture, and the fifth possible reference template associated with the fifth possible reference block includes the top template (752) and the left template (753). The sixth combination corresponds to the sixth MVD (761), the sixth MVD (761) with MVP can indicate the sixth possible reference block in the reference picture, and the sixth possible reference template associated with the sixth possible reference block includes the top template (762) and the left template (763). The seventh combination corresponds to the seventh MVD (771), the seventh MVD (771) with MVP can indicate the seventh possible reference block in the reference picture, and the seventh possible reference template associated with the seventh possible reference block includes a top template (772) and a left template (773). The eighth combination corresponds to the eighth MVD (781), the eighth MVD (781) with MVP can indicate the eighth possible reference block in the reference picture, and the eighth possible reference template associated with the eighth possible reference block includes a top template (782) and a left template (783).
[0125] In some embodiments, the predicted values of the first N bins of the suffix (and the predicted values of the MVD symbol) are derived by measuring the smoothness cost value of the smoothness of the block boundaries for the candidate MVD values. Note that any suitable smoothness cost metric can be used to measure the smoothness cost value. In the example, a smoothness cost metric in the spatial domain is used. For example, the smoothness cost metric (also referred to as the discontinuity cost metric in the example) can be calculated based on the sum of absolute sample differences along the block boundaries of the reconstructed block (such as along the upper block boundary and the left block boundary).
[0126] In another example, a smoothness cost metric in the transform domain is used. The smoothness cost metric in the transform domain may be estimated as the energy of a discontinuity on a block boundary in the transform domain. In an example, a smoothness cost metric used to predict a transform coefficient symbol value may be used to evaluate smoothness.
[0127] In some embodiments, the value of N is signaled in a high level syntax (HLS) such as a video parameter set (VPS), a sequence parameter set (SPS), a picture header, a slice header, etc.
[0128] Note that in some examples, the prediction of the first N bits of the suffix of the codeword is only used for a selected subset of prefix values. In some examples, the prediction of the first N bits of the suffix of the codeword is applied only for codewords associated with prefixes having more than M binary digits. Example values of M include, but are not limited to, 1, 2, 3, 4, ..., 16, etc.
[0129] In some examples, prediction of the first N binary bits of the suffix of the codeword is applied only for codewords associated with a prefix having more than M binary bits, and the value of M is signaled in HLS such as VPS, SPS, picture header, slice header, etc.
[0130] Some aspects of the present disclosure provide techniques for predicting a combination of a sign and an MVD value and signaling with one bit whether the prediction was correct.
[0131] In some embodiments, the combination of MVD and symbol with the best template matching cost is used as the predictor based on the remaining MVD bits signaled.
[0132] In an embodiment, a flag bit in the bitstream is signaled to indicate whether the predictor is for the MVD horizontal component or the vertical component. If the flag is not used, conventional MVD encoding is applied for the MVD. In an example, the flag bit is encoded using a CABAC context model. In another example, the flag bit is signaled as an EP bit.
[0133] In an embodiment, a flag bit in the bitstream is signaled. When the flag bit is true, the flag bit indicates that the sign and the significant bit predictor for both the horizontal component and the vertical component are used. In an example, when the flag bit is false, conventional MVD encoding is applied for both the horizontal MVD component and the vertical MVD component. In another example, when the flag bit is false, each horizontal component or vertical component may have a flag bit that is signaled to indicate whether the predictor is used for that component.
[0134] In some embodiments, the combinations of symbols and valid MVDs are placed in a list in ascending order of template matching cost.An index is signaled in the bitstream to indicate which prediction to use for the reconstruction process of the decoder.
[0135] According to some aspects of the present disclosure, instead of bypass encoding, context encoding may be used for the first K bins of the prefix of the codeword of the MVD. In an embodiment, different contexts are applied to different bins of the first K bins of the prefix of the codeword of the MVD.
[0136] Figure 8 A flow chart outlining a process (800) according to an embodiment of the present disclosure is shown. The process (800) may be used in a video decoder. In various embodiments, the process (800) is performed by a processing circuit system such as a processing circuit system that performs the functions of a video decoder (110), a processing circuit system that performs the functions of a video decoder (210), etc. In some embodiments, the process (800) is implemented as software instructions, so when the processing circuit system executes the software instructions, the processing circuit system performs the process (800). The process starts at (S801) and proceeds to (S810).
[0137] At (S810), coded information of a current block in a current picture is received. The coded information includes coded information of a motion vector difference (MVD) between a motion vector prediction (MVP) and a (true) motion vector for reconstructing the current block.
[0138] At (S820), cost values associated with multiple value combinations of multiple bits in the coded bits of the MVD are calculated. The multiple bits include a partial codeword of the MVD. At least one bit in the multiple bits is a bit in the codeword for indicating the magnitude of the MVD.
[0139] At (S830), a combination of prediction values for a plurality of bits is determined according to a plurality of value combinations, the combination of prediction values being associated with a lowest cost value among the cost values.
[0140] At (S840), the encoded information of the MVD is decoded to obtain one or more indicators for the combination of prediction values. The one or more indicators indicate whether the plurality of bits are correctly predicted by the combination of prediction values.
[0141] At (S850), a (true) MVD is determined based on a combination of the predicted values and one or more indicators.
[0142] At (S860), a motion vector of the current block is determined based on a motion vector predictor (MVP) and MVD.
[0143] At (S870), the current block is reconstructed based on a reference block in a reference picture, the reference block being pointed to by the motion vector.
[0144] In some examples, the plurality of bits includes the first N binary bits of a suffix of a codeword for indicating an amplitude, such as an amplitude of a horizontal component of the MVD and / or an amplitude of a vertical component of the MVD, N being a positive integer.
[0145] In some examples, the one or more indicators include binary values respectively associated with first N bins of the suffix, the binary value associated with a bin of the suffix indicating whether a predicted value in a combination of predicted values for the bin is correct.
[0146] In some examples, one or more indicators are context encoded in the encoded information of the MVD. The one or more indicators may be decoded from the encoded information of the MVD according to one or more context models.
[0147] In some examples, one or more indicators are context-encoded in the encoded information of the MVD based on the corresponding context model. The one or more indicators may be decoded from the encoded information of the MVD according to the corresponding context model.
[0148] In some examples, the remaining bins of the codeword are decoded from the encoded information of the MVD according to equally probable (EP) bins.
[0149] In some examples, the plurality of bits includes the first N binary bits of a suffix of the codeword and at least the MVD symbol.The codeword indicates an amplitude of a horizontal component of the MVD and / or an amplitude of a vertical component of the MVD.
[0150] In some examples, template matching cost values respectively associated with a plurality of value combinations are calculated as the cost value.
[0151] In some examples, smoothness cost values respectively associated with a plurality of value combinations are calculated as the cost value.
[0152] In some examples, N is determined based on the value of a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
[0153] In some examples, a prefix value of a codeword is decoded from the encoded information of the MVD. Then, it is determined whether the decoded prefix value belongs to a subset of prefix values. In response to the decoded prefix value belonging to the subset of prefix values, cost values associated with multiple value combinations of multiple bits are calculated, and multiple bits of the first N binary bits of the prefix of the codeword are further predicted based on the cost values. In an example, the subset of prefix values has more than M binary bits for each prefix value, and M is a positive integer. In an example, M is determined based on a value of a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
[0154] In some examples, the encoded information of the MVD is decoded to obtain indicator bits associated with the combination of prediction values, the indicator bits indicating whether the plurality of bits are correctly predicted by the combination of prediction values.
[0155] In some examples, a flag bit is decoded from the encoded information of the current block, the flag bit indicating whether a predictor (e.g., a combination of prediction values) is used for at least one of the horizontal component and / or the vertical component of the MVD. In an example, the flag bit is context encoded. Then, a context model is determined for the flag bit, and the flag bit is decoded according to the context model.
[0156] In some examples, the plurality of value combinations are sorted according to cost values respectively associated with the plurality of value combinations. An index is decoded from the encoded information of the current block, and a combination is selected from the sorted value combinations according to the index. The selected value combination is used as a combination of prediction values of the plurality of bits.
[0157] In some examples, at least one context model is determined for encoding one or more bins in a prefix of the codeword. The one or more bins in the prefix are decoded based on the at least one context model.
[0158] In some examples, context models are determined for first K bins in a prefix of the codeword, respectively. The first K bins are decoded according to the context models, respectively.
[0159] Then, the process proceeds to (S899) and terminates.
[0160] The process (800) may be adjusted appropriately. Steps in the process (800) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0161] Fig. 9 A flow chart outlining a process (900) according to an embodiment of the present disclosure is shown. The process (900) may be used in a video encoder. In various embodiments, the process (900) is performed by a processing circuit system, such as a processing circuit system that performs the functions of the video encoder (103), a processing circuit system that performs the functions of the video encoder (303), etc. In some embodiments, the process (900) is implemented as software instructions, so when the processing circuit system executes the software instructions, the processing circuit system performs the process (900). The process starts at (S901) and proceeds to (S910).
[0162] At (S910), it is determined to encode a motion vector difference (MVD). The MVD is the MVD between a motion vector predictor and a motion vector, and is used to reconstruct a current block in a current picture.
[0163] At (S920), cost values associated with multiple value combinations of multiple bits in the coded bits of the MVD are calculated. The multiple bits include a partial codeword of the MVD. At least one bit in the multiple bits is a bit in the codeword for indicating the magnitude of the MVD.
[0164] At (S930), a combination of prediction values for a plurality of bits is determined according to a plurality of value combinations, the combination of prediction values being associated with a lowest cost value among the cost values.
[0165] At (S940), one or more indicators for the combination of prediction values are determined with respect to the true value of the MVD. The one or more indicators indicate whether the plurality of bits are correctly predicted by the combination of prediction values.
[0166] At (S950), one or more indicators are encoded into the encoded information of the current block.
[0167] In some examples, the plurality of bits includes the first N binary bits of a suffix of a codeword for indicating an amplitude, such as an amplitude of a horizontal component of the MVD and / or an amplitude of a vertical component of the MVD, N being a positive integer.
[0168] In some examples, the one or more indicators include binary values respectively associated with first N bins of the suffix, the binary value associated with a bin of the suffix indicating whether a predicted value in a combination of predicted values for the bin is correct.
[0169] In some examples, one or more indicators are context encoded in the encoded information of the MVD.The one or more indicators may be decoded according to one or more context models.
[0170] In some examples, one or more indicators are context-encoded in the encoded information of the MVD based on the corresponding context model.One or more indicators may be encoded in the encoded information of the MVD according to the corresponding context model.
[0171] In some examples, the remaining bins of the codeword are encoded into the encoded information of the MVD according to equally probable (EP) bins.
[0172] In some examples, the plurality of bits includes the first N binary bits of a suffix of the codeword and at least the MVD symbol.The codeword indicates an amplitude of a horizontal component of the MVD and / or an amplitude of a vertical component of the MVD.
[0173] In some examples, template matching cost values respectively associated with a plurality of value combinations are calculated as the cost value.
[0174] In some examples, smoothness cost values respectively associated with a plurality of value combinations are calculated as the cost value.
[0175] In some examples, the value of a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header may indicate N.
[0176] In some examples, when the prefix value belongs to a subset of prefix values, then the encoding of the first N bits of the suffix can be predicted according to the present disclosure. In an example, the subset of prefix values has more than M binary bits for each prefix value, M is a positive integer. In an example, a value of a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header indicates M.
[0177] In some examples, indicator bits associated with the combination of prediction values are encoded in the encoded information of the MVD, the indicator bits indicating whether the plurality of bits are correctly predicted by the combination of prediction values.
[0178] In some examples, a flag bit is encoded into the encoded information of the current block, the flag bit indicating whether a predictor (e.g., a combination of prediction values) is used for at least one of the horizontal component and / or the vertical component of the MVD. In an example, the flag bit is context encoded. For example, a context model is determined for the flag bit, and the flag bit is encoded according to the context model.
[0179] In some examples, the plurality of value combinations are sorted according to cost values respectively associated with the plurality of value combinations. An index is encoded into the encoded information of the current block, and the index indicates that a combination selected from the sorted possible combinations according to the index corresponds to a plurality of bits in the true MVD.
[0180] In some examples, at least one context model is determined for encoding one or more bins in a prefix of the codeword. The one or more bins in the prefix are encoded based on the at least one context model.
[0181] In some examples, context models are determined for first K bins in a prefix of the codeword, respectively. The first K bins are encoded according to the context models, respectively.
[0182] Then, the process proceeds to (S999) and terminates.
[0183] The process (900) may be adjusted appropriately. Steps in the process (900) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0184] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.10 A computer system (1000) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0185] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to mechanisms such as assembly, compilation, and linking to create code comprising instructions, which may be executed directly by one or more computer central processing units (CPU), graphics processing units (GPU), etc., or by interpretation, microcode execution, etc.
[0186] 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, etc.
[0187] Fig.10 The components for the computer system (1000) shown in the example are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Nor should the configuration of components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (1000).
[0188] The computer system (1000) 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 (such as keystrokes, swipes, data glove movements), audio input (such as voice, clapping), visual input (such as gestures), olfactory input (not depicted). The human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (such as voice, music, ambient sounds), images (such as scanned images, photographic images obtained from a still image camera), video (such as two-dimensional video, three-dimensional video including stereoscopic video).
[0189] Input human-machine interface devices may include one or more of the following (only one of each item is depicted): keyboard (1001), mouse (1002), touchpad (1003), touch screen (1010), data gloves (not shown), joystick (1005), microphone (1006), scanner (1007), camera (1008).
[0190] The computer system (1000) may also include certain human interface output devices. Such human interface output devices may stimulate one or more senses of a human user 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 via a touch screen (1010), a data glove (not shown), or a joystick (1005), but there may also be tactile feedback devices that do not function as input devices); audio output devices (such as: speakers (1009), headphones (not depicted)); visual output devices (such as screens (1010), including CRT (Cathode Ray Tube, CRT) screens, LCD (Liquid-Crystal Display, LCD) screens, plasma screens, OLED (Organic Light-Emitting Diode, OLED) screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which may be able to output two-dimensional visual output or more than three-dimensional output through methods such as stereo output; virtual reality glasses (not depicted); holographic displays and smoke generators (not depicted)); and printers (not depicted).
[0191] The computer system (1000) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1020) with CD / DVD etc. media (1021), thumb drives (1022), removable hard drives or solid-state drives (1023), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), etc.
[0192] Those skilled in the art will also appreciate that the term "computer-readable media" used in connection with the presently disclosed subject matter does not include transmission media, carrier waves, or other transient signals.
[0193] The computer system (1000) may also include an interface (1054) to one or more communication networks (1055). The network may be, for example, a wireless network, a wired network, an optical network. The network may also be a local area 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 LAN (Local Area Network, LAN); cellular networks, including GSM (Global System for Mobile Communications, GSM), 3G (the Third Generation, 3G), 4G (the Fourth Generation, 4G), 5G (the Fifth Generation, 5G), LTE (Long Term Evolution, LTE), etc.; TV wired or wireless wide area digital networks, including cable TV, satellite TV and terrestrial broadcast TV; vehicle and industrial networks, including CANBus (controllerarea network bus, CANBus), etc. Some networks typically require an external network interface adapter attached to some universal data port or peripheral bus (1049) (such as, for example, a USB (Universal Serial Bus, USB) port of the computer system (1000); other networks are typically integrated into the core of the computer system (1000) by attaching to a system bus as described below (for example, to an Ethernet interface in a PC computer system or to a cellular network interface in a smart phone computer system). The computer system (1000) can use any of these networks to communicate with other entities. Such communication can be one-way receive-only (for example, broadcast TV), one-way send-only (for example, CANbus to certain CANbus devices), or two-way, such as to other computer systems using local area digital networks or wide area digital networks. Certain protocols and protocol stacks can be used on each of these networks and network interfaces as described above.
[0194] The aforementioned human interface devices, human-accessible storage devices, and network interfaces may be attached to the core (1040) of the computer system (1000).
[0195] The core (1040) may include one or more central processing units (CPUs) (1041), graphics processing units (GPUs) (1042), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1043), hardware accelerators (1044) for certain tasks, graphics adapters (1050), etc. These devices, as well as read-only memory (ROM) (1045), random access memory (1046), internal mass storage devices (such as internal non-user accessible hard drives, SSDs (Solid-State Drives, SSDs), etc.) (1047) may be connected via a system bus (1048). In some computer systems, the system bus (1048) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be attached to the core's system bus (1048) directly or via a peripheral bus (1049). In an example, a screen (1010) may be connected to a graphics adapter (1050). The architecture of the peripheral bus includes PCI (Peripheral Component Interconnect / Interface, PCI), USB, etc.
[0196] The CPU (1041), GPU (1042), FPGA (1043) and accelerator (1044) can execute certain instructions, which can be combined to form the aforementioned computer code. The computer code can be stored in ROM (1045) or RAM (1046). Transient data can also be stored in RAM (1046), while permanent data can be stored in, for example, an internal mass storage device (1047). Fast storage and retrieval of any storage device in the storage device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1041), GPUs (1042), mass storage devices (1047), ROMs (1045), RAMs (1046), etc.
[0197] Computer readable media may have thereon computer codes for performing various computer-implemented operations. These media and computer codes may be media and computer codes specifically designed and constructed for the purposes of the present disclosure, or these media and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0198] As an example and not a limitation, a computer system (1000) having an architecture, and in particular a core (1040), can provide functionality due to a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software contained in one or more tangible computer-readable media. Such a computer-readable medium can be a medium associated with a user-accessible mass storage device as introduced above, and certain storage devices of the core (1040) having a non-transient nature, such as a core internal mass storage device (1047) or a ROM (1045). Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (1040). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software can enable the core (1040) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in the RAM (1046) and modifying such a data structure according to a process defined by the software. Additionally or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1044)), which may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may include logic, and vice versa references to logic may include software. Where appropriate, references to computer-readable media may include circuitry (such as an integrated circuit (IC)) storing software for execution, circuitry implementing logic for execution, or both. The present disclosure encompasses any suitable combination of hardware and software.
[0199] The use of "at least one of" or "one of" in the present disclosure is intended to include any one or combination of the elements described. For example, references to at least one of A, B, or C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A through C are intended to include only A, only B, only C, or any combination thereof. References to one of A or B and one of A and B are intended to include A or B or (A and B). Where applicable, the use of "one of" does not exclude any combination of the described elements, for example where the elements are not mutually exclusive.
[0200] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various alternative equivalents that fall within the scope of the present disclosure. Therefore, it will be appreciated that those skilled in the art will be able to conceive of many systems and methods that, although not explicitly shown or described herein, embody the principles of the disclosure and are therefore within the spirit and scope of the present disclosure.
Claims
1. A method for video decoding, comprising: receiving encoded information of a motion vector difference (MVD) associated with a current block in a current picture; calculating cost values respectively associated with a plurality of value combinations of a plurality of bits in coded bits of the MVD, the plurality of bits comprising a partial codeword of the MVD, at least one bit of the plurality of bits being a bit in the codeword for indicating a magnitude of the MVD; determining a combination of prediction values for the plurality of bits based on the plurality of value combinations, the combination of prediction values being associated with a lowest cost value among the cost values; decoding the encoded information of the MVD to obtain one or more indicators for the combination of the prediction values, the one or more indicators indicating whether the plurality of bits are correctly predicted by the combination of the prediction values; determining the MVD based on a combination of the predicted value and the one or more indicators; determining a motion vector of the current block based on a motion vector predictor (MVP) and the MVD; as well as The current block is reconstructed based on a reference block in a reference picture, the reference block being pointed to by the motion vector.
2. The method according to claim 1, wherein: The plurality of bits include first N binary bits of a suffix of a codeword for indicating a magnitude of at least one of a horizontal component and / or a vertical component of the MVD, N being a positive integer.
3. The method according to claim 2, wherein: The one or more indicators include binary values respectively associated with first N bins of the suffix, the binary values associated with the bins of the suffix indicating whether the bins of the suffix are correctly predicted in the combination of the prediction values.
4. The method according to claim 2, wherein: The one or more indicators are context encoded in the encoded information of the MVD, and decoding the encoded information of the MVD further comprises: The one or more indicators are decoded from the encoded information of the MVD according to one or more context models.
5. The method according to claim 2, wherein: The one or more indicators are context encoded in the encoded information of the MVD based on a corresponding context model, and decoding the encoded information of the MVD further comprises: The one or more indicators are decoded from the encoded information of the MVD according to a corresponding context model.
6. The method according to claim 2, wherein: Determining the MVD based on the combination of the predicted value and the one or more indicators further comprises: The remaining bits of the codeword are decoded from the encoded information of the MVD according to the equally probable bits.
7. The method according to claim 1, wherein: The plurality of bits include first N binary bits of a suffix of a codeword for indicating a magnitude of at least one of a horizontal component and / or a vertical component of the MVD, and at least a MVD symbol.
8. The method according to claim 1, wherein: Calculating the cost values respectively associated with the plurality of value combinations further includes: Template matching cost values respectively associated with the plurality of value combinations are calculated.
9. The method according to claim 1, wherein: Calculating the cost values respectively associated with the plurality of value combinations further includes: Smoothness cost values respectively associated with the plurality of value combinations are calculated.
10. The method according to claim 2, further comprising: N is determined according to a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
11. The method according to claim 2, further comprising: Decoding a prefix value of the codeword; determining that the decoded prefix value belongs to a subset of prefix values; as well as In response to the decoded prefix value belonging to the subset of prefix values, cost values respectively associated with a plurality of value combinations of a plurality of bits of first N binary bits of a suffix of the codeword are calculated.
12. The method according to claim 11, wherein: The subset of prefix values has more than M binary bits per prefix value, M being a positive integer.
13. The method according to claim 12, further comprising: M is determined according to a syntax element in at least one of a video parameter set, a sequence parameter set, a picture header, and a slice header.
14. The method according to claim 1, wherein: Decoding the encoded information of the MVD to obtain one or more indicators for the combination of predicted values further comprises: The encoded information of the MVD is decoded to obtain an indicator bit associated with the combination of the prediction values, the indicator bit indicating whether the plurality of bits are correctly predicted by the combination of the prediction values.
15. The method according to claim 14, further comprising: A flag bit is decoded from the encoded information of the current block, and the flag bit indicating whether a predictor is applied to at least one of a horizontal component and / or a vertical component of the MVD is predicted.
16. The method according to claim 15, wherein: Decoding the flag binary bit further comprises: determining a context model for the flag bin; and The flag bins are decoded according to the context model.
17. The method according to claim 1, further comprising: sorting the plurality of value combinations according to cost values respectively associated with the plurality of value combinations; decoding an index from the encoded information of the current block; as well as A combination is selected from the ordered combinations of values according to the index.
18. The method according to claim 2, further comprising: determining at least one context model for encoding one or more bins in a prefix of the codeword; as well as One or more bins in the prefix are decoded based on the at least one context model.
19. The method of claim 2, wherein: Determine a context model for first K binary bits in the prefix of the codeword respectively; and The first K binary bits are decoded respectively according to the context model.
20. An apparatus for video decoding, comprising processing circuitry configured to: receiving encoded information of a motion vector difference (MVD) associated with a current block in a current picture; calculating cost values respectively associated with a plurality of value combinations of a plurality of bits in coded bits of the MVD, the plurality of bits comprising a partial codeword of the MVD, at least one bit of the plurality of bits being a bit in the codeword for indicating a magnitude of the MVD; determining a combination of prediction values for the plurality of bits based on the plurality of value combinations, the combination of prediction values being associated with a lowest cost value among the cost values; decoding the encoded information of the MVD to obtain one or more indicators for the combination of the prediction values, the one or more indicators indicating whether the plurality of bits are correctly predicted by the combination of the prediction values; determining the MVD based on a combination of the predicted value and the one or more indicators; determining a motion vector of the current block based on a motion vector predictor (MVP) and the MVD; as well as The current block is reconstructed based on a reference block in a reference picture, the reference block being pointed to by the motion vector.
Citation Information
Cited By
Video encoding and decoding method and apparatus, storage medium, electronic device, and program product
WO2026189152A1
