Joint coding of motion vector differences
The joint coding of motion vector differences with adaptive resolution addresses redundancy in video encoding, enhancing compression efficiency and reducing bandwidth requirements.
Patent Information
- Application Number
- JP2023555500
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-09-01
- Filing Date
- 2022-09-07
- Publication Date
- 2024-10-31
AI Technical Summary
Existing video encoding and decoding technologies face challenges in efficiently reducing redundancy in motion vector differences, leading to suboptimal compression ratios and increased bandwidth requirements.
A method for joint coding of motion vector differences with adaptive resolution, allowing for more efficient encoding and decoding by applying joint motion vector difference coding based on flags and deriving motion vector differences from the coded video bitstream.
Improves compression efficiency by reducing the data required to encode motion vectors, thereby decreasing bandwidth and storage needs while maintaining video quality.
Smart Images

Figure 2024539783000001_ABST
Abstract
Description
[Technical field]
[0001] [Incorporated by reference] This application claims priority to U.S. Provisional Patent Application No. 63 / 261,252, filed September 15, 2021, the entire contents of which are incorporated by reference. This application also claims priority to U.S. Provisional Patent Application No. 63 / 281,825, filed November 22, 2021, the entire contents of which are incorporated by reference. This application also claims priority to U.S. Nonprovisional Patent Application No. 17 / 901,043, filed September 1, 2022, the entire contents of which are incorporated by reference.
[0002] FIELD This disclosure relates generally to video coding, and more particularly to a method and system for providing a signaling scheme for joint coding of motion vector differences with adaptive resolution of the motion vector differences. [Background technology]
[0003] This background discussion provided herein is intended to generally present the context of the present disclosure. Work of the inventors named in this application, to the extent that their work is described in this background section, and aspects of this description that may not otherwise qualify as prior art at the time of the filing of this application, are not admitted, either explicitly or implicitly, as prior art to the present disclosure.
[0004] Video encoding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed digital video can include a sequence of pictures, each having spatial dimensions of, for example, 1920x1080 luminance samples and associated full or subsampled chrominance samples. The sequence of pictures can have a fixed or variable picture rate (also called frame rate), for example, a picture rate of 60 pictures per second or 60 frames per second. Uncompressed video has specific bit rate requirements for streaming or data processing. For example, a video with a pixel resolution of 1920x1080, a frame rate of 60 frames per second, and 4:2:0 chroma subsampling with 8 bits per color channel per pixel requires a bandwidth approaching 1.5 Gbit / s. One hour of such video requires more than 600 Gbytes of storage space.
[0005] One goal of video encoding and decoding may be the reduction of redundancy in an uncompressed input video signal through compression. Compression may help reduce the above bandwidth and / or storage space requirements, possibly by more than one order of magnitude. Both lossless and lossy compression, as well as combinations thereof, may be used. Lossless compression refers to techniques where an exact copy of the original signal can be reconstructed from the compressed original signal through a decoding process. Lossy compression refers to an encoding / decoding process where the original video information is not fully preserved during encoding and cannot be fully recovered during decoding. When using lossy compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals will be small enough to render the reconstructed signal useful for the intended application despite some information loss. For video, lossy compression is widely used in many applications. The amount of acceptable distortion depends on the application. For example, a user of a particular consumer video streaming application may tolerate higher distortion than a user of a movie or television broadcast application. The compression ratio achievable by a particular encoding algorithm can be selected or adjusted to reflect different distortion tolerances; generally, higher tolerable distortion permits encoding algorithms that result in higher loss and higher compression ratios.
[0006] Video encoders and decoders can utilize techniques from a number of broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding.
[0007] Video codec techniques can include a technique known as intra-coding. In intra-coding, sample values are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially divided into blocks of samples. If all blocks of samples are coded in intra mode, the picture can be called an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and therefore can be used as the first picture in a coded video bitstream and video session or as a still image. The samples of the block after intra-prediction can then be subjected to a transform to the frequency domain, and the transform coefficients so generated can be quantized before entropy coding. Intra-prediction refers to a technique that minimizes the sample values in the pre-transform domain. In some cases, the smaller the DC value and the smaller the AC coefficients after the transform, the fewer bits are required for a given quantization step size to represent the block after entropy coding.
[0008] Traditional intra-coding, e.g. as known from MPEG-2 generation encoding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that attempt to encode / decode a block based on surrounding sample data and / or metadata that are obtained during the encoding and / or decoding of its spatial neighbors and that precede in decoding order the block of data being intra-coded or decoded. Such techniques are referred to below as "intra-prediction" techniques. It should be noted that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed and not from other reference pictures.
[0009] There may be various forms of intra prediction. If more than one such technique is available in a given video coding technique, the technique used may be referred to as an intra prediction mode. One or more intra prediction modes may be provided in a particular codec. In certain cases, a mode may have sub-modes and / or may be associated with various parameters, and the mode / sub-mode information and intra coding parameters of a block of video may be coded separately or may be included jointly in a mode codeword. Which codeword to use for a given mode, sub-mode and / or parameter combination may affect the coding efficiency gain through intra prediction, as well as the entropy coding technique used to convert the codeword into a bitstream.
[0010] Certain modes of intra prediction were introduced in H.264, refined in H.265, and further refined in newer coding techniques such as the joint exploration model (JEM), versatile video coding (VVC), and benchmark set (BMS). In general, for intra prediction, a predictor block can be formed using neighboring sample values that become available. For example, available values of a particular set of neighboring samples along a particular direction and / or line may be copied into the predictor block. A reference to the direction used can be coded in the bitstream or may be predicted itself.
[0011] Referring to FIG. 1A, a subset of nine predictor directions specified in the 33 possible intra predictor directions of H.265 (corresponding to the 33 angle modes out of the 35 intra modes specified in H.265) is depicted at the bottom right. The point (101) where the arrows converge represents the sample to be predicted. The arrows represent the direction when neighboring samples are used to predict the sample at 101. For example, arrow (102) indicates that sample (101) is predicted from neighboring sample(s) to the top right at an angle of 45 degrees from the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from neighboring sample(s) to the bottom left of sample (101) at an angle of 22.5 degrees from the horizontal.
[0012] 1A, a square block (104) of 4×4 samples is depicted at the top left (shown in bold dashed lines). The square block (104) contains 16 samples, each labeled with an “S” and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample (from the top) in the Y dimension and the first sample (from the left) in the X dimension. Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the block is 4×4 samples in size, S44 is at the bottom right. Also shown is an exemplary reference sample that follows a similar numbering scheme. The reference sample is labeled R and its Y position (e.g., row index) and X position (column index) relative to the block (104). In both H.264 and H.265, neighboring prediction samples in the vicinity of the block being reconstructed are used.
[0013] Intra-picture prediction of block 104 may begin by copying reference sample values from neighboring samples according to a signaled prediction direction. For example, assume that the coded video bitstream includes signaling indicating the prediction direction of the arrow (102) for this block 104. That is, the samples are predicted from the top right predicted sample(s) at an angle of 45 degrees from the horizontal. In such a case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Then sample S44 is predicted from reference sample R08.
[0014] In certain cases, especially when the direction is not divisible by 45 degrees, the values of multiple reference samples may be combined, for example by interpolation, to calculate the reference sample.
[0015] As video coding technology continues to develop, the number of possible directions has increased. In H.264 (2003), for example, nine different directions are available for table intra prediction. This increases to 33 in H.265 (2013), and JEM / VVC / BMS at the time of this disclosure can support up to 65 directions. Experiments are performed to help identify the most suitable intra prediction directions, and certain techniques may be used in entropy coding to code these most suitable directions with a small number of bits while accepting a certain bit penalty for the direction. Furthermore, in some cases, the direction itself can be predicted from the neighboring directions used in the intra prediction of the decoded neighboring blocks.
[0016] FIG. 1B shows a schematic diagram (180) illustrating the 65 intra prediction directions according to JEM to illustrate the increasing number of prediction directions in various coding techniques developed over time.
[0017] The scheme of mapping intra-prediction direction bits to prediction directions in the coded video bitstream may vary from one video coding technique to another, for example ranging from a simple direct mapping of prediction directions to intra-prediction modes to complex adaptation schemes involving codewords, most probable modes, and similar techniques. However, in all cases, there may be certain directions of intra-prediction that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-designed video coding technique, these less likely methods may be represented by a larger number of bits than the more likely directions.
[0018] Inter-picture prediction or inter-prediction may be based on motion compensation. In motion compensation, sample data from a previously reconstructed picture or part thereof (reference picture) may be used for prediction of a newly reconstructed picture or part thereof (e.g., block) after being spatially shifted in a direction indicated by a motion vector (hereinafter, MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension being an indication of the reference picture to be used (similar to the temporal dimension).
[0019] In some video compression techniques, the current MV applicable to a particular region of sample data can be predicted from other MVs, e.g., other MVs associated with other regions of sample data that are spatially adjacent to the region being reconstructed and that precede the current MV in decoding order. Doing so can substantially reduce the overall amount of data required to encode the MV by relying on reducing redundancy in the associated MVs, thereby increasing compression efficiency. MV prediction can work effectively because, for example, when encoding an input video signal derived from a camera (known as natural video), there is a statistical probability that regions larger than the region to which a single MV is applicable in a video sequence move in similar directions and therefore can potentially be predicted using similar motion vectors derived from MVs of neighboring regions. The result is that the actual MV for a given region is similar or identical to the MV predicted from the surrounding MVs. Such MVs may then be represented with fewer bits after entropy encoding than would be used if the MVs were directly encoded instead of predicted from neighboring MVs. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself may be lossy, for example due to rounding errors in computing the predictor from several surrounding MVs.
[0020] H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016) describes various MV prediction mechanisms. Among the many MV prediction mechanisms specified by H.265, a technique hereafter referred to as "spatial merge" is described herein.
[0021] Specifically, referring to FIG. 2, a current block (201) contains samples that the encoder found during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of directly encoding its MV, the MV can be derived from metadata associated with one or more reference pictures, e.g., from the most recent reference picture (in decoding order), using MVs associated with any of the five surrounding samples, denoted A0, A1, and B0, B1, B2 (202-206, respectively). In H.265, MV prediction can use predictors from the same reference picture as the neighboring blocks use. Summary of the Invention
[0022] This disclosure describes various embodiments of methods, apparatus, and computer-readable storage media for video encoding and / or decoding.
[0023] According to one aspect, an embodiment of the present disclosure provides a method for decoding a current video block of a video bitstream. The method includes receiving, by a device, a coded video bitstream. The device includes a memory that stores instructions and a processor in communication with the memory. The method also includes determining, by the device, a flag for the current video block from the coded video bitstream, the flag indicating whether joint motion vector difference (MVD) coding is applied to the current video block, obtaining, by the device, a joint MVD for the current video block from the coded video bitstream in response to the flag indicating that joint MVD coding is applied to the current video block, deriving, by the device, an MVD for the current video block based on the joint MVD, and decoding, by the device, the current video block based on the joint MVD and the derived MVD.
[0024] According to another aspect, an embodiment of the present disclosure provides an apparatus for decoding a current video block of a video bitstream, the apparatus including a memory storing instructions and a processor in communication with the memory, the instructions being configured, when executed by the processor, to cause the apparatus to perform the above-described method for video decoding and / or encoding.
[0025] In another aspect, an embodiment of the present disclosure provides a non-transitory computer-readable medium having stored thereon instructions that, when executed by a computer for video decoding and / or encoding, cause the computer to perform the above-described method for video decoding and / or encoding.
[0026] These and other aspects and their implementations are described in more detail in the drawings, detailed description, and claims. [Brief description of the drawings]
[0027] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Figure 1A] 1 shows a schematic diagram of an example subset of intra-prediction direction modes. [Figure 1B] 1 shows an illustrative diagram of an exemplary intra-prediction direction. [Diagram 2] 1 illustrates a schematic diagram of a current block and its surrounding spatial merging candidates for motion vector prediction in one example. [Diagram 3] 1 illustrates a simplified block diagram of a communication system in accordance with an exemplary embodiment; [Figure 4] 4 shows a simplified block diagram schematic of a communication system (400) according to an example embodiment. [Diagram 5] 1 shows a schematic diagram of a simplified block diagram of a video decoder according to an exemplary embodiment; [Figure 6] 1 shows a schematic diagram of a simplified block diagram of a video encoder according to an example embodiment; [Figure 7] 1 shows a block diagram of a video encoder according to an example embodiment. [Figure 8] 2 shows a block diagram of a video decoder according to an exemplary embodiment; [Figure 9] 1 illustrates a coding block partitioning scheme according to an exemplary embodiment of the present disclosure. [Figure 10] 4 illustrates another scheme for coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 11] 4 illustrates another scheme for coding block partitioning according to an exemplary embodiment of the present disclosure. [Figure 12] 4 illustrates an exemplary division of a base block into coding blocks according to an exemplary division scheme. [Figure 13] 1 illustrates an exemplary division of thirds scheme; [Figure 14] 1 illustrates an exemplary quadtree / binary tree coding block partitioning scheme. [Figure 15] 4 illustrates a scheme for splitting a coding block into multiple transform blocks and a coding order for the transform blocks according to an exemplary embodiment of the present disclosure. [Figure 16] 4 illustrates another scheme for splitting a coding block into multiple transform blocks and the coding order of the transform blocks according to an exemplary embodiment of the present disclosure. [Figure 17] 4 illustrates another scheme for splitting a coding block into multiple transform blocks according to an exemplary embodiment of the present disclosure. [Figure 18] 1 illustrates a flowchart of a method according to an exemplary embodiment of the present disclosure. [Figure 19] 1 shows a schematic diagram of a computer system according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] Throughout the specification and claims, terms may have a meaning that is suggested or implied in the context beyond the meaning explicitly stated. The phrases "in one embodiment" or "in some embodiments" as used herein do not necessarily refer to the same embodiment, and the phrases "another embodiment" or "other embodiments" as used herein do not necessarily refer to different embodiments. Similarly, the phrases "in one embodiment" or "in some embodiments" as used herein do not necessarily refer to the same embodiment, and the phrases "another embodiment" or "other embodiments" as used herein do not necessarily refer to different embodiments. For example, the subject matter of the claims is intended to include the entire or partial example embodiment / combination of the embodiments.
[0029] Generally, terms may be understood, at least in part, from their use in context. For example, terms such as "and," "or," or "and / or" as used herein may include various meanings that may depend, at least in part, on the context in which such terms are used. Typically, "or," when used to relate a list such as A, B, or C, is intended to mean A, B, and C, as used herein in an inclusive sense, and A, B, or C, as used herein in an exclusive sense. Furthermore, the terms "one or more" or "at least one," as used herein, may be used to describe any feature, structure, or characteristic in a singular sense, or may be used to describe a combination of features, structures, or characteristics in a plural sense, at least in part, depending on the context. Similarly, singular terms may be understood as conveying singular or plural usage, at least in part, depending on the context. Additionally, the terms "based on" or "determined by" may be understood not necessarily intended to convey an exclusive set of elements, but instead may allow for the presence of additional elements not necessarily expressly recited, at least in part, depending on the context.
[0030] FIG. 3 illustrates a simplified block diagram of a communication system (300) according to one embodiment of the present disclosure. The communication system (300) includes a plurality of terminal devices that can communicate with each other, for example, via a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). In the example of FIG. 3, the first pair of terminal devices (310) and (320) may perform unidirectional transmission of data. For example, the terminal device (310) may encode video data (e.g., a stream of video pictures captured by the terminal device (310)) for transmission to the other terminal device (320) via the network (350). The encoded video data may be transmitted in the form of one or more encoded video bitstreams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to reconstruct the video pictures, and display the video pictures according to the reconstructed video data. The one-way data transmission may be implemented in a media service application or the like.
[0031] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) performing bidirectional transmission of encoded video data, which may be implemented, for example, during a video conferencing application. For the bidirectional transmission of data, in one example, each of the terminal devices (330) and (340) may encode video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (330) and (340) over the network (350). Each of the terminal devices (330) and (340) may receive the encoded video data transmitted by the other of the terminal devices (330) and (340), decode the encoded video data to reconstruct the video pictures, and display the video pictures on an accessible display device in accordance with the reconstructed video data.
[0032] In the example of FIG. 3, the terminal devices (310), (320), (330), and (340) may be implemented as servers, personal computers, and smartphones, although applicability of the underlying principles of the present disclosure may not be limited thereto. The embodiments of the present disclosure may be implemented in desktop computers, laptop computers, tablet computers, media players, wearable computers, and / or dedicated video conferencing equipment. The network (350) represents any number or type of network that conveys encoded video data between the terminal devices (310), (320), (330), and (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit-switched, packet-switched, and / or other types of channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of discussion herein, the architecture and topology of the network (350) may not be important to the operation of the present disclosure, unless explicitly described below.
[0033] 4 shows an arrangement of video encoders and video decoders in a video streaming environment as an example of an application for the disclosed subject matter. The disclosed subject matter may be equally applicable to other video applications including, for example, video conferencing, digital TV broadcasting, gaming, virtual reality, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0034] The video streaming system may include a video source (401), e.g., a digital camera, and may include a video capture subsystem (413) that generates, e.g., a stream of uncompressed video pictures or images (402). In one example, the stream of video pictures (402) includes samples recorded by the digital camera of the video source 401. The stream of video pictures (402), depicted as a bold line to emphasize its high data volume compared to the encoded video data (404) (or encoded video bitstream), may be processed by an electronic device (420) that includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter, as described in more detail below. The encoded video data (404) (or encoded video bitstream (404)), depicted as a thin line to emphasize its lower data volume compared to the uncompressed video picture stream (402), can be stored on the streaming server (405) for future use or directly on a downstream video device (not shown). One or more streaming client subsystems, such as the client subsystems (406) and (408) of FIG. 4, can access the streaming server (405) to retrieve copies (407) and (409) of the encoded video data (404). The client subsystem (406) can include a video decoder (410), for example within the electronic device (430). The video decoder (410) can decode an input copy of the encoded video data (407) and generate an output stream of uncompressed video pictures (411) that can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown). Video decoder 410 may be configured to perform some or all of the various functions described in this disclosure.In some streaming systems, the encoded video data (404), (407), and (409) (e.g., video bitstreams) may be encoded according to a particular video encoding / compression standard. Examples of these standards include ITU-T Recommendation H.265. In one example, a video encoding standard under development is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC and other video encoding standards.
[0035] It is noted that electronic devices 420 and 430 may include other components (not shown). For example, electronic device 420 may include a video decoder (not shown), and electronic device 430 may also include a video encoder (not shown).
[0036] 5 shows a block diagram of a video decoder (510) according to any of the following embodiments of the present disclosure. The video decoder (510) can be included in an electronic device (530). The electronic device (530) can include a receiver (531) (e.g., a receiving circuit). The video decoder (510) can be used in place of the video decoder (310) in the example of FIG. 4.
[0037] The receiver (531) may receive one or more coded video sequences to be decoded by the video decoder (510). In the same or another embodiment, one coded video sequence may be decoded at a time, and the decoding of each coded video sequence is independent of the other coded video sequences. Each video sequence may be associated with multiple video frames or images. The coded video sequences may be received from a channel (501), which may be a storage device that stores the coded video data or a hardware / software link to a streaming source that transmits the coded video data. The receiver (531) may receive the coded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded through respective processing circuits (not shown). The receiver (531) may separate the coded video sequences from other data. To combat network jitter, a buffer memory (515) may be located between the receiver (531) and the entropy decoder / parser (520) (hereinafter the "parser"). In certain applications, the buffer memory (515) may be implemented as part of the video decoder (510). In other applications, it may be external to the video decoder (510) (not shown). In still other applications, there may be a buffer memory (not shown) external to the video decoder (510), e.g., to combat network jitter, and there may be an additional buffer memory (515) internal to the video decoder (510), e.g., to handle playback timing. If the receiver (531) is receiving data from a store / forward device of sufficient bandwidth and controllability, or from an isochronous network, the buffer memory (515) may not be needed or may be small. For use with best-effort packet networks such as the Internet, a sufficient size of the buffer memory (515) may be required, and the size may be relatively large.Such a buffer memory may be implemented with an adaptive size and may be implemented, at least in part, outside the video decoder (510) in an operating system or similar element (not shown).
[0038] The video decoder (510) may include a parser (520) for reconstructing symbols (521) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (510) and potentially information for controlling a rendering device such as a display (512) (e.g., a display screen). The display may or may not be an integral part of the electronic device (530) as shown in FIG. 5 and may be coupled to the electronic device (530). The control information for the rendering device(s) may be in the form of Supplementary Enhancement Information (SEI) messages or Video Usability Information (VUI) parameter set fragments (not shown). The parser (520) may parse / entropy decode the coded video sequence received by the parser (520). The entropy coding of the coded video sequence may follow a video coding technique or standard and may follow various principles including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (520) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the subgroup. The subgroups may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (520) may also extract information from the coded video sequence such as transform coefficients (e.g., Fourier transform coefficients), quantizer parameter values, motion vectors, etc.
[0039] The parser (520) can perform an entropy decoding / parsing operation on the video sequence received from the buffer memory (515) to generate symbols (521).
[0040] The reconstruction of the symbols (521) may involve several different processing or functional units, depending on the type of coded video picture or portion thereof (e.g., inter and intra picture, inter and intra block) and other factors. The units involved and how they are involved may be controlled by subgroup control information parsed by the parser (520) from the coded video sequence. The flow of such subgroup control information between the parser (520) and several of the processing or functional units described below is not depicted for the sake of simplicity.
[0041] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually divided into several functional units, as described below. In a practical implementation working under commercial constraints, many of these functional units will interact closely with each other and may be at least partially integrated with each other. However, for purposes of clearly describing the various functions of the disclosed subject matter, a conceptual subdivision into functional units is adopted in the following disclosure.
[0042] The first unit may include a scalar / inverse transform unit (551), which may receive quantized transform coefficients and control information as symbol(s) (521) from the parser (520). The control information may include information indicating what type of inverse transform to use, block size, quantization coefficients / parameters, quantization scaling matrices, etc. The scalar / inverse transform unit (551) may output a block containing sample values that can be input to an aggregator (555).
[0043] In some cases, the output samples of the scaler / inverse transform (551) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) may generate a block of the same size and shape as the block being reconstructed using surrounding block information already reconstructed and stored in a current picture buffer (558). The current picture buffer (558) may, for example, buffer a partially reconstructed current picture and / or a fully reconstructed current picture. In some implementations, the aggregator (555) may add, on a sample-by-sample basis, the prediction information generated by the intra-prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551).
[0044] In other cases, the output samples of the scalar / inverse transform unit (551) may relate to an inter-coded, potentially motion-compensated block. In such a case, the motion compensation prediction unit (553) may access the reference picture memory (557) to retrieve samples used for inter-picture prediction. After motion compensating the retrieved samples according to the symbols (521) for the block, these samples may be added by an aggregator (555) to the output of the scalar / inverse transform unit (the output of unit 551 may be referred to as a residual sample or residual signal) to generate output sample information. The address in the reference picture memory (557) from which the motion compensation unit (553) retrieves the prediction samples may be controlled by a motion vector available to the motion compensation unit (553) in the form of a symbol (521). The symbol may have, for example, an X, a Y component (shift), and a reference picture component (time). Motion compensation may involve the interpolation of sample values taken from a reference picture memory (557) when sub-sample accurate motion vectors are used, and may also involve motion vector prediction mechanisms, etc.
[0045] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in a loop filter unit (556). Video compression techniques may include in-loop filter techniques that are controlled by parameters contained in the coded video sequence (also called the coded video bitstream) and made available to the loop filter unit (556) as symbols (521) from the parser (520), but may also be responsive to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence, as well as to previously reconstructed loop filtered sample values. As will be described in more detail below, several types of loop filters may be included as part of the loop filter unit 556, in various orders.
[0046] The output of the loop filter unit (556) can be a sample stream, which can be output to a rendering device (512) or can be stored in a reference picture memory (557) for use in future inter-picture prediction.
[0047] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future inter-picture 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 (520)), the current picture buffer (558) can become part of the reference picture memory (557), and a fresh current picture buffer can be reallocated before beginning reconstruction of a subsequent coded picture.
[0048] The video decoder (510) may perform decoding operations according to a given video compression technique adopted in a standard such as ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax prescribed by the video compression technique or standard being used, in the sense that the encoded video sequence conforms to the syntax of the video compression technique or standard and the profile documented in the video compression technique or standard. Specifically, the profile may select a particular tool from all tools available in the video compression technique or standard as the only tool available for use under that profile. To conform to a standard, the complexity of the encoded video sequence may be within a range defined by a level of the video compression technique or standard. In some cases, the level constrains the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in units of megasamples per second), maximum reference picture size, etc. The limits set by the level may be further constrained through a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management, possibly signaled in the encoded video sequence.
[0049] In some exemplary embodiments, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence(s). The additional data may be used by the video decoder (510) to properly decode the data and / or to 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.
[0050] 6 shows a block diagram of a video encoder (603) according to an exemplary embodiment of the present disclosure. The video encoder (603) may be included in an electronic device (620). The electronic device (620) may further include a transmitter (640) (e.g., a transmitting circuit). The video encoder (603) may be used in place of the video encoder (403) in the example of FIG. 4.
[0051] The video encoder (603) can receive video samples from a video source (601) (which is not part of the electronic device (620) in the example of FIG. 6) that can capture video images to be encoded by the video encoder (603). In another example, the video source (601) can be implemented as part of the electronic device (620).
[0052] The video source (601) may provide a source video sequence to be encoded by the video encoder (603) in the form of a digital video sample stream that may be of any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 YCrCB, RGB, XYZ, ...), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (601) may be a storage device capable of storing pre-prepared video. In a video conferencing system, the video source (601) may be a camera that captures image information locally as a video sequence. The video data may be provided as a number of individual pictures or images that impart motion when viewed in sequence. The picture itself may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc., in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.
[0053] According to some example embodiments, the video encoder (603) can encode and compress pictures of a source video sequence into an encoded video sequence (643) in real-time or under any other time constraint required by an application. Enforcing an appropriate encoding rate constitutes one function of the controller (650). In some embodiments, the controller (650) may be operatively coupled to and control other functional units, as described below. Such couplings are not depicted for the sake of brevity. Parameters set by the controller (650) may include parameters related to rate control (picture skip, quantizer, lambda value for rate-distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (650) can be configured to have other suitable functions for the video encoder (603) optimized for a particular system design.
[0054] In some example embodiments, the video encoder (603) may be configured to operate in an encoding loop. As a simplistic explanation, in one example, the encoding loop may include a source encoder (630) (e.g., responsible for generating symbols such as a symbol stream based on an input picture to be encoded and a reference picture(s)) and a (local) decoder (633) embedded in the video encoder (603). Even if the embedded decoder 633 processes the encoded video stream without entropy coding by the source decoder 630, the decoder (633) reconstructs the symbols to generate sample data in a similar manner as a (remote) decoder would also generate them (in the video compression techniques considered in the disclosed subject matter, any compression between the symbols in the entropy coding and the encoded video bitstream may be lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since decoding of the symbol stream yields bit-accurate results regardless of the decoder location (local or remote), the contents of the reference picture memory (634) are also bit-accurate between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values as the reference picture samples that the decoder "sees" when using the prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is used to improve coding quality.
[0055] The operation of the "local" decoder (633) may be the same as the operation of a "remote" decoder, e.g., the video decoder (410), already described in detail above in connection with Figure 5. However, referring also briefly to Figure 5, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (645) and parser (420) may be lossless, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and parser (420), may not be fully implemented in the encoder's local decoder (633).
[0056] An observation that can be made at this point is that any decoder technique, except for parsing / entropy decoding, which may only exist in the decoder, may need to exist in substantially the same functional form in the corresponding encoder. For this reason, the disclosed subject matter may sometimes focus on the decoder operation, which is similar to the decoding portion of the encoder. Thus, a description of the encoder technique may be omitted, since it is the inverse of the decoder technique, which is described generically. Only in certain areas or aspects of the encoder is a more detailed description provided below.
[0057] In operation, in some example implementations, the source encoder (630) may perform motion-compensated predictive encoding, which 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 (632) encodes differences (or residuals) in color channels between pixel blocks of the input picture and pixel blocks of a reference picture(s) that may be selected as a predictive reference for the input picture. The terms "residual" and its derivative "residual" may be used interchangeably.
[0058] The local video decoder (633) can decode the encoded video data of pictures that may be designated as reference pictures based on the symbols generated by the source encoder (630). The operation of the encoding engine (632) can advantageously be a lossy process. When the encoded video data can be decoded in a video decoder (not shown in FIG. 6), the reconstructed video sequence can be a copy of the source video sequence, typically with some errors. The local video decoder (633) can replicate the decoding process that may be performed on the reference pictures by the video decoder and store the reconstructed reference pictures in a reference picture cache (634). In this way, the video encoder (603) can locally store copies of reconstructed reference pictures that have common content (in the absence of transmission errors) as reconstructed reference pictures that would be obtained by a far-end (remote) video decoder.
[0059] The predictor (635) may perform a prediction search for the coding engine (632). That is, for a new picture to be coded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or specific metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new picture. The predictor (635) may operate on a sample block-by-pixel block basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (634).
[0060] The controller (650) may manage the encoding operations of the source encoder (630), including, for example, setting the parameters and subgroup parameters used to encode the video data.
[0061] The output of all of the above functional units may undergo entropy coding in an entropy coder (645), which converts the symbols produced by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0062] The transmitter (640) can buffer the encoded video sequence generated by the entropy encoder (645) and prepare it for transmission over a communication channel (660), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (640) can merge the encoded video data from the video encoder (630) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (sources not shown).
[0063] The controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a certain coding picture type to each coded picture. The coding picture type may affect the coding technique that may be applied to each picture. For example, pictures may often be assigned as one of the following picture types:
[0064] An intra picture (I-picture) may be one that can be coded and decoded without using other pictures in a sequence as a source of prediction. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art will recognize these variations of I-pictures and their respective uses and characteristics.
[0065] A predictive picture (P-picture) may be one that can be encoded and decoded using intra- or inter-prediction, which uses at most one motion vector and reference index to predict the sample values of each block.
[0066] Bidirectionally predicted pictures (B-pictures) may be those that can be coded and decoded using intra- or inter-prediction, which uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multi-predictive pictures can use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0067] A source picture may typically be spatially divided into multiple sample coding blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks, as determined by the coding assignment applied to the respective picture of the block. For example, blocks of an I picture may be non-predictively coded or predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). 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. Source pictures or intermediate processing pictures may be subdivided into other types of blocks for other purposes. As will be explained in more detail below, the division of coding blocks and other types of blocks may or may not follow the same scheme.
[0068] The video encoder (603) may perform encoding operations according to a given video encoding technique or standard, such as ITU-T Recommendation H.265. In its operations, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to a syntax specified by the video encoding technique or standard used.
[0069] In some example embodiments, the transmitter (640) may transmit additional data along with the encoded video. The source encoder (630) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other types of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0070] A video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlation in a given picture, while inter-picture prediction exploits temporal or other correlation between pictures. For example, a particular picture to be coded / decoded, called a current picture, may be divided into blocks. If a block in the current picture resembles a reference block in a previously coded and still buffered reference picture in the video, it may be coded by a vector called a motion vector. A motion vector points to a reference block in a reference picture, and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0071] In some exemplary embodiments, bidirectional prediction techniques can be used in inter-picture prediction. Such bidirectional prediction techniques use two reference pictures, such as a first reference picture and a second reference picture, both of which precede the current picture in decoding order (but may be past or future, respectively, in display order) in the video. A block in the current picture can be coded by a first motion vector that points to a first reference block in the first reference picture and a second motion vector that points to a second reference block in the second reference picture. A block can be jointly predicted by a combination of the first and second reference blocks.
[0072] Furthermore, to improve coding efficiency, merge mode techniques may be used in inter-picture prediction.
[0073] According to some example embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed on a block-by-block basis. For example, a picture in a sequence of video pictures is divided into coding tree units (CTUs) for compression, and the CTUs in a picture may have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU may include three parallel coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU may be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels may be partitioned into one CU of 64×64 pixels or four CUs of 32×32 pixels. Each of the one or more 32×32 blocks may be further partitioned into four CUs of 16×16 pixels. In some exemplary embodiments, each CU may be analyzed during encoding to determine a prediction type for that CU among various prediction types, such as an inter prediction type or an intra prediction type. The CU may be divided into one or more prediction units (PUs) depending on temporal and / or spatial predictability. In general, each PU includes a luma prediction block (PB) and two chroma PBs. In some embodiments, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. The division of a CU into PUs (or PBs of different color channels) may be performed in various division patterns. For example, a luma or chroma PB may include a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0074] 7 shows a diagram of a video encoder (703) according to another exemplary embodiment of the present disclosure. The video encoder (703) is configured to receive a processed block (e.g., a predictive block) of sample values in a current video picture in a sequence of video pictures and to encode the processed block into an encoded picture that is part of an encoded video sequence. The exemplary video encoder (703) may be used in place of the video encoder (403) in the example of FIG. 4.
[0075] For example, the video encoder (703) receives a matrix of sample values for a processing block, such as a predictive block, such as 8×8 samples. The video encoder (703) then determines whether the processing block is best coded using an intra mode, an inter mode, or a bi-directional predictive mode, for example using rate-distortion optimization (RDO). If it is determined that the processing block is coded in an intra mode, the video encoder (703) may use intra prediction techniques to code the processing block into a coded picture. If it is determined that the processing block is coded in an inter mode or a bi-directional predictive mode, the video encoder (703) may use inter prediction techniques or bi-directional prediction techniques, respectively, to code the processing block into a coded picture. In some exemplary embodiments, a merge mode may be used as a sub-mode of inter-picture prediction, in which a motion vector is derived from one or more motion vector predictors, but without the benefit of coded motion vector components outside the predictors. In some exemplary embodiments, there may be motion vector components applicable to the current block. Thus, the video encoder (703) may include components not explicitly shown in FIG. 7, such as a mode decision module (not shown) for determining a prediction mode for a processing block.
[0076] In the example of FIG. 7, the video encoder (703) includes an inter-encoder (730), an intra-encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy coder (725) coupled together as shown in the exemplary arrangement of FIG.
[0077] The inter encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in previous and subsequent pictures in display order), generate inter prediction information (e.g., a description of redundant information due to inter coding techniques, motion vectors, merge mode information), and calculate an inter prediction result (e.g., a predicted block) based on the inter prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that has been decoded based on the coded video information using a decoding unit 633 (shown as a residual decoder 728 in FIG. 7, as described in more detail below) embedded in the example encoder 620 of FIG. 6.
[0078] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block to blocks already encoded in the same picture, generate transformed and quantized coefficients, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). The intra encoder (722) may also calculate intra prediction results (e.g., predicted blocks) based on the intra prediction information and reference blocks in the same picture.
[0079] The general controller (721) may be configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines a prediction mode for a block and provides a control signal to the switch (726) based on the prediction mode. For example, if the prediction mode is an intra mode, the general controller (721) controls the switch (726) to select a result of the intra mode for use by the residual calculator (723), and controls the entropy encoder (725) to select intra prediction information and include the intra prediction information in the bitstream. If the prediction mode for the block is an inter mode, the general controller (721) controls the switch (726) to select a result of inter prediction for use by the residual calculator (723), and controls the entropy encoder (725) to select inter prediction information and include the inter prediction information in the bitstream.
[0080] The residual calculator (723) may be configured to calculate a difference (residual data) between a received block and a prediction result for that block selected from the intra-encoder (722) or the inter-encoder (730). The residual encoder (724) may be configured to encode the residual data to generate transform coefficients. For example, the residual encoder (724) may be configured to transform the residual data from the spatial domain to the frequency domain to generate transform coefficients. The transform coefficients are then subjected to a quantization process to obtain quantized transform coefficients. In various exemplary embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform to generate decoded residual data. The decoded residual data can be suitably used by the intra-encoder (722) and the inter-encoder (730). For example, the inter-encoder (730) can generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (722) can generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks are suitably processed to generate decoded pictures, which can be buffered in a memory circuit (not shown) and used as reference pictures.
[0081] The entropy encoder (725) is configured to format a bitstream to include the encoded block and to perform entropy encoding. The entropy encoder (725) is configured to include various information in the bitstream. For example, the entropy encoder (725) may be configured to include general control data, selected prediction information (e.g., intra-prediction information or inter-prediction information), residual information, and other suitable information in the bitstream. When encoding a block in a merged sub-mode of either the inter mode or the bi-prediction mode, the residual information may not be present.
[0082] 8 shows a diagram of an exemplary video decoder (810) according to another embodiment of the present disclosure. The video decoder (810) is configured to receive encoded pictures that are part of an encoded video sequence and decode the encoded pictures to generate reconstructed pictures. In one example, the video decoder (810) may be used in place of the video decoder (410) in the example of FIG. 4.
[0083] In the example of FIG. 8, the video decoder (810) includes an entropy decoder (871), an inter decoder (880), a residual decoder (873), a reconstruction module (874), and an intra decoder (872) coupled together as shown in the exemplary configuration of FIG. 8.
[0084] The entropy decoder (871) may be configured to reconstruct from the coded picture certain symbols that represent the syntax elements of which the coded picture is composed. Such symbols may include, for example, prediction information (e.g., intra-mode, inter-mode, bi-predictive mode, merged sub-mode, or another sub-mode) that may identify the mode in which the block is coded, certain samples or metadata used for prediction by the intra-decoder (872) or inter-decoder (880), residual information, for example in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter- or bi-predictive mode, the inter-prediction information is provided to the inter-decoder (880). If the prediction type is an intra-prediction type, the intra-prediction information is provided to the intra-decoder (872). The residual information may undergo inverse quantization and is provided to the residual decoder (873).
[0085] An inter decoder (880) may be configured to receive inter prediction information and generate inter prediction results based on the inter prediction information.
[0086] The intra decoder (872) may be configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0087] The residual decoder (873) may be configured to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (873) may also utilize certain control information (including quantizer parameters (QP)), which may be provided by the entropy decoder (871) (data path not depicted since this is only control information for low data volume).
[0088] A reconstruction module (874) may be configured to combine, in the spatial domain, the residual output by the residual decoder (873) and the prediction result (output by the intra- or inter-prediction module, as the case may be) to form reconstructed blocks that form part of the reconstructed picture as part of the reconstructed video. Note that other suitable operations, such as deblocking operations, may also be performed to improve visual quality.
[0089] It should be noted that the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using any suitable technology. In some exemplary embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more processors executing software instructions.
[0090] Turning to the partitioning of blocks for encoding and decoding, a typical partition may start from a base block and follow a predefined set of rules, a specific pattern, a partition tree, or any partition structure or scheme. The partition may be hierarchical and recursive. After dividing or partitioning the base block according to any of the exemplary partition procedures shown below or other procedures or combinations thereof, a final set of partitions or coding blocks may be obtained. Each of these partitions may be one of various partition levels in the partition hierarchy and may be of various shapes. Each of the partitions may be called a coding block (CB). For various exemplary partition implementations described further below, each resulting CB may be of any of the allowed sizes and partition levels. Such partitions are called coding blocks because they form a unit where some basic coding / decoding decisions are made and coding / decoding parameters may be optimized and determined to be signaled in a coded video bitstream. The highest or deepest level of the final partition represents the depth of the coding block partition structure of the tree. The coding block may be a luma coding block or a chroma coding block. The CB tree structure for each color may be called a coding block tree (CBT).
[0091] The coding blocks of all color channels may be collectively referred to as a coding unit (CU). The hierarchical structure for all color channels may be collectively referred to as a coding tree unit (CTU). The partition pattern or structure of various color channels within a CTU may or may not be the same.
[0092] In some implementations, the partition tree scheme or structure used for the luma channel and the chroma channel may not need to be the same. In other words, the luma channel and the chroma channel may have separate coding tree structures or patterns. Furthermore, whether the luma channel and the chroma channel use the same or different coding partition tree structures, and the actual coding partition tree structure used may depend on whether the slice being coded is a P slice, a B slice, or an I slice. For example, for an I slice, the chroma channel and the luma channel may have separate coding partition tree structures or coding partition tree structure modes, while for a P or B slice, the luma channel and the chroma channel may share the same coding partition tree structure. When separate coding partition tree structures or modes are applied, the luma channel may be partitioned into CBs by one coding partition tree structure, and the chroma channel may be partitioned into chroma CBs by another coding partition tree structure.
[0093] In some exemplary implementations, a predefined partition pattern may be applied to the base block. As shown in FIG. 9, the exemplary four-way partition tree starts from a first predefined level (e.g., 64×64 block level as the base block size or other size), and the base block may be partitioned hierarchically down to a predefined lowest level (e.g., 4×4 level). For example, the base block may be subject to four predefined partition options or patterns shown at 902, 904, 906, and 908, and the partition shown as R allows for recursive partitioning, where the same partition option shown in FIG. 9 may be repeated at a lower scale down to the lowest level (e.g., 4×4 level). In some implementations, further restrictions may be applied to the partitioning scheme of FIG. 9. In the implementation of FIG. 9, rectangular partitions (e.g., 1:2 / 2:1 rectangular partitions) may be allowed but not allowed to be recursive, while square partitions are allowed to be recursive. Partitioning by recursion according to FIG. 9 produces a final set of coding blocks as needed. A coding tree depth may be further defined to indicate the depth of the division from the root node or root block. For example, the coding tree depth of the root node or root block, e.g., a 64x64 block, may be set to 0, and after the root block is further divided once according to FIG. 9, the coding tree depth is increased by 1. The maximum or deepest level from the 64x64 base block to the 4x4 smallest partition is 4 in the above scheme (starting from level 0). Such a partition scheme may be applied to one or more of the color channels. Each color channel may be partitioned independently according to the scheme of FIG. 9 (e.g., the partition pattern or option in the predefined pattern may be determined independently for each of the color channels at each hierarchical level). Alternatively, two or more of the color channels may share the same hierarchical pattern tree of FIG. 9 (e.g., the same partition pattern or option in the predefined pattern may be selected for two or more color channels at each hierarchical level).
[0094] FIG. 10 illustrates another exemplary predefined partition pattern that allows recursive partitioning to form a partition tree. As shown in FIG. 10, for example, 10 different partition structures or patterns may be predefined. The root block may start at a predefined level (e.g., from a base block at a 128×128 level or a 64×64 level). The exemplary partition structure of FIG. 10 includes various 2:1 / 1:2 and 4:1 / 1:4 rectangular partitions. A partition type having three subpartitions, shown as 1002, 1004, 1006, and 1008 in the second row of FIG. 10, may be referred to as a "T-type" partition. The "T-type" partitions 1002, 1004, 1006, and 1008 may be referred to as a left T-type, an upper T-type, a right T-type, and a lower T-type. In some exemplary implementations, none of the rectangular partitions of FIG. 10 are allowed to be further subdivided. A coding tree depth may be further defined to indicate the depth of division from the root node or root block. For example, in the example of a 128x128 block, the coding tree depth of the root node or root block may be set to 0, and after the root block is further divided once according to FIG. 10, the coding tree depth increases by 1. In some implementations, only the full square partition in 1010 may be allowed to be recursively partitioned into the next level of the partition tree according to the pattern in FIG. 10. In other words, the square partitions in the T-type patterns 1002, 1004, 1006, and 1008 may not be allowed to be recursively partitioned. The partition procedure according to FIG. 10 by recursion generates a final set of coding blocks as needed. Such a scheme may be applied to one or more of the color channels. In some implementations, further flexibility may be added to the use of partitions below the 8x8 level. For example, 2x2 chroma inter prediction may be used in certain cases.
[0095] In some other implementations of partitions of coding blocks, a quadtree structure may be used to divide a base block or an intermediate block into quadtree partitions. Such quadtree division may be applied hierarchically and recursively to any square partitions. Whether a base block or an intermediate block or partition is further quadtree divided may be adapted to various local characteristics of the base block or intermediate block / partition. The quadtree division at picture boundaries may be further adapted. For example, an implicit quadtree division may be performed at picture boundaries such that a block remains quadtree divided until its size fits the picture boundary.
[0096] In some other example implementations, hierarchical bisection partitioning from a base block may be used. In such a scheme, a base block or a mid-level block may be partitioned into two partitions. The bisection partitioning may be either horizontal or vertical. For example, a horizontal bisection partition may divide a base block or a mid-level block into equal left and right partitions. Similarly, a vertical bisection partition may divide a base block or a mid-level block into equal top and bottom partitions. Such bisection partitioning may be hierarchical and recursive. At each base block or mid-level block, a decision may be made as to whether the bisection partitioning scheme should continue, and if so, whether a horizontal bisection partitioning scheme or a vertical bisection partitioning scheme should be used. In some implementations, further partitioning may stop at a predefined minimum partition size (in one or both dimensions). Alternatively, further partitioning may stop when a predefined partition level or depth from the base block is reached. In some implementations, the aspect ratio of the partitions may be limited. For example, the aspect ratio of the partitions may not be less than 1:4 (or greater than 4:1). Thus, a vertical strip partition having a vertical to horizontal aspect ratio of 4:1 may simply be further bisected vertically into an upper partition and a lower partition each having a vertical to horizontal aspect ratio of 2:1.
[0097] In yet some other examples, a three-way partitioning scheme may be used to partition the base block or any intermediate blocks, as shown in FIG. 13. The three-way partitioning pattern may be implemented vertically, as shown in 1302 of FIG. 13, or horizontally, as shown in 1304 of FIG. 13. The exemplary division ratio in FIG. 13 is shown as 1:2:1 vertically or horizontally, but other ratios may be predefined. In some implementations, two or more different ratios may be predefined. Such a three-way partitioning scheme may be used to complement a quadtree or binary partition structure, where such a ternary tree partition can capture objects located at the block center in one contiguous partition, whereas quadtrees and binary trees always split along the block center, thus splitting objects into separate partitions. In some implementations, the width and height of the exemplary ternary tree partitions are always powers of two to avoid further transformations.
[0098] The above partitioning schemes may be combined at different partition levels in any scheme. As an example, the above quadtree and binary partitioning schemes may be combined to partition the base block into a quadtree-binary-tree (QTBT) structure. In such a scheme, the base block or intermediate blocks / partitions may be quadtree- or binary-partitioned according to a set of predefined conditions, if specified. A concrete example is shown in FIG. 14. In the example of FIG. 14, the base block is first quadtree-partitioned into four partitions, as shown at 1402, 1404, 1406 and 1408. Then, each of the resulting partitions is either quadtree-partitioned into four further partitions (such as 1408) or binary-partitioned into two further partitions at the next level (such as 1402 or 1406, either horizontally or vertically, e.g. both symmetric), or not divided (such as 1404). Bisection or quadtree partitioning may be allowed recursively for square partitions, as shown in the overall exemplary partition pattern in 1410 and the corresponding tree structure / representation in 1420, where solid lines represent quadtree partitioning and dashed lines represent bisection. A flag may be used for each bisection node (non-leaf bisection partition) to indicate whether the bisection is horizontal or vertical. For example, as shown in 1420, according to the partition structure in 1410, flag "0" may represent horizontal bisection and flag "1" may represent vertical bisection. For quadtree partitions, there is no need to indicate the type of division, since quadtree partitioning always divides a block or partition both horizontally and vertically to generate four sub-blocks / partitions with the same size. In some implementations, flag "1" may represent horizontal bisection and flag "0" may represent vertical bisection.
[0099] In some example implementations of QTBT, the quadtree and bisection rule sets may be represented by the following predefined parameters and associated corresponding functions: -CTU size: size of the root node of the quadtree (size of the base block) -MinQTSize: The minimum allowable quadtree leaf node size. -MaxBTSize: Maximum allowable binary tree root node size -MaxBTDepth: Maximum allowed binary tree depth -MinBTSize: The minimum allowable binary tree leaf node size. In some exemplary implementations of the QTBT partitioning structure, the CTU size may be set as 128×128 luma samples in two corresponding 64×64 blocks of chroma samples (if exemplary chroma subsampling is considered and used), MinQTSize may be set as 16×16, MaxBTSize may be set as 64×64, MinBTSize (both width and height) may be set as 4×4, and MaxBTDepth may be set as 4. Quad-tree partitioning may be applied to the CTU first to generate quad-tree leaf nodes. The quad-tree leaf nodes may have a size from its minimum allowed size of 16×16 (i.e., MinQTSize) to 128×128 (i.e., the CTU size). If the node is 128×128, it is not partitioned by the binary tree first because the size exceeds MaxBTSize (i.e., 64×64). Otherwise, the node that does not exceed MaxBTSize may be partitioned by the binary tree. In the example of FIG. 14, the base block is 128×128. The base block can only be quadtree partitioned according to a predefined set of rules. The base block has a partition depth of 0. Each of the resulting four partitions is 64×64, does not exceed MaxBTSize, and may be further quadtree or binary tree partitioned at level 1. The process continues. Once the binary tree depth reaches MaxBTDepth (i.e., 4), further partitions may not be considered. If a binary tree node has a width equal to MinBTSize (i.e., 4), further horizontal partitions may not be considered. Similarly, if a binary tree node has a height equal to MinBTSize, further vertical partitions may not be considered.
[0100] In some example implementations, the above QTBT scheme may be configured to support the flexibility of luma and chroma having the same QTBT structure or separate QTBT structures. For example, for P slices and B slices, the luma and chroma CTBs in one CTU may share the same QTBT structure. However, for an I slice, the luma CTB may be divided into CBs by one QTBT structure, and the chroma CTB may be divided into chroma CBs by another QTBT structure. This means that a CU may be used to refer to different color channels in an I slice; for example, an I slice may be composed of a coding block of a luma component or a coding block of two chroma components, and a CU in a P or B slice may be composed of coding blocks of all three color components.
[0101] In some other implementations, the QTBT scheme may be supplemented with the above three-way partitioning scheme. Such implementations may be referred to as multi-type-tree (MTT) structures. For example, in addition to bisectioning the nodes, one of the three-way partition patterns in FIG. 13 may be selected. In some implementations, only square nodes may be subject to third-way partitioning. An additional flag may be used to indicate whether the three-way partition is horizontal or vertical.
[0102] Two-level or multi-level tree designs, such as the QTBT implementation and the QTBT implementation supplemented by trisection, may be primarily motivated by reduced complexity. In theory, the complexity of traversing a tree is T D where T denotes the number of split types and D is the depth of the tree. A tradeoff may be made by using multiple types (T) while reducing the depth (D).
[0103] In some implementations, the CB may be further partitioned. For example, the CB may be further partitioned into multiple prediction blocks (PBs) for the purpose of intraframe or interframe prediction during the encoding and decoding process. In other words, the CB may be further partitioned into different subpartitions, where individual prediction decisions / configurations may be made. In parallel, the CB may be further partitioned into multiple transform blocks (TBs) for the purpose of describing the level at which the transformation or inverse transformation of the video data is performed. The partitioning scheme of the CB into the PBs and TBs may be the same or different. For example, each partitioning scheme may be performed using its own procedure, for example, based on various characteristics of the video data. In some exemplary implementations, the PB and TB partitioning schemes may be independent. In some other exemplary implementations, the PB and TB partitioning schemes and the boundaries may be correlated. In some implementations, for example, the TBs may be partitioned after the partitioning of the PB, and in particular, each PB may be further partitioned into one or more TBs after being determined following the partitioning of the coding block. For example, in some implementations, the PB may be divided into 1, 2, 4, or other number of TBs.
[0104] In some implementations, luma and chroma channels may be treated differently for partitioning base blocks into coding blocks and further partitioning into predictive and / or transform blocks. For example, in some implementations, partitioning of coding blocks into predictive and / or transform blocks may be allowed in luma channels, but such partitioning of coding blocks into predictive and / or transform blocks may not be allowed in chroma channels. Thus, in such implementations, transformation and / or prediction of luma blocks may be performed only at the coding block level. In other examples, the minimum transform block size of luma and chroma channels may be different, e.g., coding blocks of luma channels may be allowed to be partitioned into smaller transform blocks and / or predictive blocks than chroma channels. In yet other examples, the maximum depth of partitioning of coding blocks into transform blocks and / or predictive blocks may be different between luma and chroma channels, e.g., coding blocks of luma channels may be allowed to be partitioned into deeper transform blocks and / or predictive blocks than chroma channels. In a specific example, a luma coding block may be partitioned into transform blocks of multiple sizes that can be expressed with up to two levels of recursive partitioning, and transform block shapes such as square, 2:1 / 1:2, and 4:1 / 1:4 and transform block sizes from 4×4 to 64×64 may be allowed. However, for chroma blocks, only the largest possible transform block designated for the luma block may be allowed.
[0105] In some example implementations for partitioning a coding block into PBs, the depth, shape, and / or other characteristics of the PB partition may depend on whether the PB is intra-coded or inter-coded.
[0106] The partitioning of the coding block (or prediction block) into transform blocks may be implemented in various exemplary manners, including but not limited to quadtree partitioning and predefined pattern partitioning, recursively or non-recursively, further taking into account the transform blocks at the boundaries of the coding block or prediction block. In general, the resulting transform blocks may be at different partitioning levels, may not be the same size, and may not need to be square in shape (e.g., they may be rectangular with some allowed size and aspect ratio). Further examples are described in more detail below in connection with Figures 15, 16 and 17.
[0107] However, in some other implementations, the CB obtained through any of the above partitioning schemes may be used as a basic or minimum coding block for prediction and / or transformation. In other words, no further division is performed for inter / intra prediction purposes and / or transformation purposes. For example, the CB obtained from the above QTBT scheme may be directly used as a unit for performing prediction. Specifically, such a QTBT structure removes the concept of multiple partition types, i.e., removes the separation of CU, PU and TU, and supports greater flexibility of CU / CB partition shapes as described above. In such a QTBT block structure, the CU / CB can have either a square or rectangular shape. The leaf nodes of such a QTBT are used as units of prediction and transformation processing without further partitions. This means that the CU, PU and TU have the same block size in such an exemplary QTBT coding block structure.
[0108] The various CB partitioning schemes described above and further partitioning of the CB into PB and / or TB (including no PB / TB partition) may be combined in any manner. The following specific implementations are provided as non-limiting examples.
[0109] A specific exemplary implementation of the partition of the coding block and the transform block is described below. In such an exemplary implementation, the base block may be divided into the coding blocks using a recursive quadtree division or the above-mentioned predetermined division patterns (such as those in FIG. 9 and FIG. 10). At each level, whether further quadtree division of a particular partition should be continued may be determined by the local video data characteristics. The resulting CB may be in different quadtree division levels and different sizes. The decision of whether to code a picture region using inter-picture (temporal) or intra-picture (spatial) prediction may be made at the CB level (or at the CU level for all three color channels). Each CB may be further divided into 1, 2, 4 or other number of PBs according to a predetermined PB division type. Inside one PB, the same prediction process may be applied and related information may be transmitted to the decoder for each PB. After obtaining the residual block by applying the prediction process based on the PB division type, the CB can be partitioned into TBs according to other quadtree structures similar to the coding tree of the CB. In this specific implementation, the CB or TB may be square, but need not be limited thereto. Furthermore, in this particular example, the PB may be square or rectangular for inter prediction, and only square for intra prediction. A coding block may be divided, for example, into four square TBs. Each TB may be further divided recursively (using quadtree partitioning) into smaller TBs called residual quadtrees (RQTs).
[0110] Other exemplary implementations for partitioning a base block into CB, PB or TB are further described below. For example, instead of using multiple partition unit types as shown in FIG. 9 or FIG. 10, a quadtree with nested multi-type trees using bisection and trisection segmentation structures (e.g., QTBT as described above or QTBT with trisection) may be used. Separation of CB, PB and TB (i.e., partitioning CB into PB and / or TB, and partitioning PB into TB) may be abandoned except when required for CBs that may have a size too large for the maximum transform length and require further partitioning. This exemplary partitioning scheme may be designed to support greater flexibility in CB partition shapes, such that both prediction and transformation can be performed at the CB level without further partitioning. In such coding tree structures, the CB may have either a square or rectangular shape. Specifically, a coding tree block (CTB) may be first partitioned by a quadtree structure. The quadtree leaf nodes may then be further partitioned by a nested multi-type tree structure. An example of a nested multi-type tree structure using bisection or trisection is shown in FIG. 11. Specifically, the exemplary multi-type tree structure of FIG. 11 includes four split types called vertical bisection (SPLIT_BT_VER) (1102), horizontal bisection (SPLIT_BT_HOR) (1104), vertical trisection (SPLIT_TT_VER) (1106), and horizontal trisection (SPLIT_TT_HOR) (1108). CB then corresponds to the leaf of the multi-type tree. In this exemplary implementation, this segmentation is used for both prediction and transformation processes without further partitioning, unless CB is too large for the maximum transformation length. This means that in most cases, CB, PB, and TB have the same block size in a quadtree with a nested multi-type tree coding block structure. An exception occurs when the maximum supported transformation length is smaller than the width or height of the color components of CB.In some implementations, in addition to bisection or trisection, the nested pattern of FIG. 11 may further include a quadtree division.
[0111] One example of a quadtree by nested multi-type tree coding block structure of block partitions (including quadtree, bisection and trisection options) for one base block is shown in FIG. 12. More specifically, FIG. 12 shows a base block 1200 being quadtree partitioned into four square partitions 1202, 1204, 1206 and 1208. A decision to further use the multi-type tree structure of FIG. 11 and the quadtree for further partitioning is made for each of the partitions in the quadtree partitioning. In the example of FIG. 12, partition 1204 is not further partitioned. Partitions 1202 and 1208 each adopt another quadtree partitioning. In partition 1202, the second level quadtree partitioned top left, top right, bottom left and bottom right partitions adopt third level partitioning of quadtree, horizontal partition 1104 of FIG. 11, no partitioning and horizontal trisection 1108 of FIG. 11, respectively. Partition 1208 employs another quadtree partitioning, with the top-left, top-right, bottom-left, and bottom-right partitions of the second level quadtree partition employing third level partitioning of vertical bisection 1106, not bisectioned, not bisectioned, and horizontal bisection 1104 of FIG. 11, respectively. Two of the subpartitions of the top-left partition of the third level of 1208 are further divided according to horizontal bisection 1104 and horizontal bisection 1108 of FIG. 11, respectively. Partition 1206 employs a second level partitioning pattern into two partitions according to vertical bisection 1102 of FIG. 11, with the two partitions further divided at the third level according to horizontal bisection 1108 and vertical bisection 1102 of FIG. 11, respectively. A fourth level partitioning is further applied to one of these according to horizontal bisection 1104 of FIG. 11.
[0112] In the above example, the maximum luma transform size may be 64×64, and the maximum supported chroma transform size may differ from the luma, e.g., 32×32. Although the above example CB in FIG. 12 is generally not further divided into smaller PBs and / or TBs, if the width or height of a luma coding block or a chroma coding block is larger than the maximum transform width or height, the luma coding block or the chroma coding block may be automatically divided in the horizontal and / or vertical direction to meet the transform size limitation in that direction.
[0113] In the specific example of partitioning the base block into the above CBs, as described above, the coding tree scheme may support the ability for luma and chroma to have separate block tree structures. For example, for P slices and B slices, the luma CTB and chroma CTB in one CTU may share the same coding tree structure. For example, for an I slice, luma and chroma may have separate coding block tree structures. When separate block tree structures are applied, the luma CTB may be partitioned into luma CBs by one coding tree structure, and the chroma CTB is partitioned into chroma CBs by the other coding tree structure. This means that a CU in an I slice may be composed of a coding block of a luma component or a coding block of two chroma components, and a CU in a P or B slice is always composed of coding blocks of all three color components, unless the video is monochrome.
[0114] When a coding block is further partitioned into multiple transform blocks, the transform blocks therein may be ordered in the bitstream according to various orders or scan schemes. Exemplary implementations for partitioning a coding block or a prediction block into transform blocks and the coding order of the transform blocks are described in further detail below. In some exemplary implementations, as described above, the transform partition may support multiple shapes of transform blocks, e.g., 1:1 (square), 1:2 / 2:1, and 1:4 / 4:1, with transform block sizes ranging from, e.g., 4×4 to 64×64. In some implementations, if the coding block is 64×64 or smaller, the transform block partition may only apply to the luma component, and for chroma blocks, the transform block size is the same as the coding block size. Otherwise, if the width or height of the coding block is greater than 64, both the luma coding block and the chroma coding block may be implicitly divided into transform blocks that are multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32), respectively.
[0115] In some example implementations of transform block partitioning, for both intra-coded and inter-coded blocks, the coding block may be further partitioned into multiple transform blocks with a partition depth up to a predetermined number of levels (e.g., two levels). The partition depth and size of the transform block may be related. In some example implementations, the mapping from the transform size of the current depth to the transform size of the next depth is shown in Table 1 below. [Table 1]
[0116] Based on the example mapping of Table 1, for a 1:1 square block, the next level transform partition may create four 1:1 square sub-transform blocks. The transform partition may stop at, for example, 4×4. Thus, a transform size of the current depth of 4×4 corresponds to the same size of 4×4 of the next depth. In the example of Table 1, for a 1:2 / 2:1 non-square block, the next level transform partition may create two 1:1 square sub-transform blocks, while for a 1:4 / 4:1 non-square block, the next level transform partition may create two 1:2 / 2:1 sub-transform blocks.
[0117] In some example implementations, for the luma components of intra-coded blocks, further restrictions may be applied on the partition of transform blocks. For example, for each level of transform partition, all sub-transform blocks may be restricted to have the same size. For example, for a 32×16 coding block, the level 1 transform partition creates two 16×16 sub-transform blocks, and the level 2 transform partition creates eight 8×8 sub-transform blocks. In other words, to keep the transform units the same size, the second level partition must be applied to all first level sub-blocks. An example of partition of transform blocks of an intra-coded square block according to Table 1 is shown in FIG. 15 with the coding order indicated by the arrows. Specifically, 1502 indicates a square coding block. The first level partition according to Table 1 into four equal-sized transform blocks is shown in 1504 with the coding order indicated by the arrows. The second level partition of all first level equal-sized blocks according to Table 1 into 16 equal-sized transform blocks is shown in 1506 with the coding order indicated by the arrows.
[0118] In some example implementations, the above restrictions for intra-coding may not apply for the luma components of an inter-coded block. For example, after the first level of transform partitioning, any one of the sub-transform blocks may be further partitioned independently at one or more levels. Thus, the resulting transform blocks may or may not be of the same size. An example partitioning of an inter-coded block into transform blocks in its coding order is shown in FIG. 16. In the example of FIG. 16, an inter-coded block 1602 is partitioned into transform blocks at two levels according to Table 1. At the first level, the inter-coded block is partitioned into four transform blocks of equal size. Then, only one (but not all) of the four transform blocks is partitioned further into four sub-transform blocks, resulting in a total of seven transform blocks having two different sizes, as shown at 1604. An example coding order of these seven transform blocks is shown by the arrows at 1604 in FIG. 16.
[0119] In some example implementations, for chroma components, some further restrictions on the transform blocks may be applied: for example, for chroma components, the transform block size may be the same as the coding block size, but cannot be smaller than a certain size, e.g., 8×8.
[0120] In some other example implementations, for coding blocks with width (W) or height (H) greater than 64, both luma coding blocks and chroma coding blocks may be implicitly divided into multiples of min(W,64)×min(H,64) and min(W,32)×min(H,32), respectively, where "min(a,b)" may return the smaller value between a and b in this disclosure.
[0121] Figure 17 further illustrates another alternative scheme for partitioning a coding block or a prediction block into transform blocks. As shown in Figure 17, instead of using recursive transform partitions, a predefined set of partition types may be applied to a coding block according to its transform type. In the particular example shown in Figure 17, one of six exemplary partition types may be applied to split the coding block into a varying number of transform blocks. Such a scheme for generating transform block partitions may be applied to either a coding block or a prediction block.
[0122] More specifically, the partition scheme of FIG. 17 provides up to six exemplary partition types for any given transform type (the transform type indicates the type of primary transform, such as ADST, etc.). In this scheme, every coding block or predictive block may be assigned a transform partition type, for example, based on a rate-distortion cost. In one example, the transform partition type assigned to a coding block or predictive block may be determined based on the transform type of the coding block or predictive block. A particular transform partition type may correspond to a partition size and pattern of the transform block, as illustrated by the six transform partition types illustrated in FIG. 17. The correspondence between various transform types and various transform partition types may be predefined. Examples are shown below with capitalized labels indicating transform partition types that may be assigned to coding blocks or predictive blocks based on rate-distortion cost.
[0123] -PARTITION_NONE: Allocate a transformation size equal to the block size.
[0124] -PARTITION_SPLIT: Allocates a transformation size of 1 / 2 the width of the block size and 1 / 2 the height of the block size.
[0125] -PARTITION_HORZ: Allocates a transformation size with the same width as the block size and half the height of the block size.
[0126] -PARTITION_VERT: Allocates a transformation size that is 1 / 2 the width of the block size and the same height as the block size.
[0127] -PARTITION_HORZ4: Allocates a transformation size of 1 / 4 of the width and height of the block size.
[0128] -PARTITION_VERT4: Allocates a transformation size that is 1 / 4 of the width of the block size and the same height as the block size.
[0129] In the above example, all transform partition types as shown in Figure 17 include uniform transform sizes for the partitioned transform blocks. This is not a limitation but merely an example. In some other implementations, mixed transform block sizes may be used for the partitioned transform blocks of a particular partition type (or pattern).
[0130] The PBs (or CBs, also referred to as PBs when not further divided into predictive blocks) obtained from any of the above partitioning schemes may become individual blocks for coding via either intra-prediction or inter-prediction. For inter-prediction of the current PB, a residual between the current block and the predictive block may be generated, coded, and included in the coded bitstream.
[0131] Inter prediction may be implemented, for example, in single reference mode or mixed reference mode. In some implementations, a skip flag may be included first in the bitstream of the current block (or at a higher level) to indicate whether the current block is inter-coded and not skipped. If the current block is inter-coded, another flag may be further included in the bitstream as a signal to indicate whether a single reference mode or a mixed reference mode is used for predicting the current block. In the case of a single reference mode, one reference block may be used to generate the prediction block of the current block. In a mixed reference mode, two or more reference blocks may be used to generate the prediction block, for example by weighted averaging. A mixed reference mode may be referred to as a multiple reference mode, a two-reference mode, or a multi-reference mode. The reference block or multiple reference blocks may be identified using a reference frame index or multiple indices and further using a corresponding motion vector or multiple motion vectors indicating a shift in position between the reference block and the current block, for example in horizontal and vertical pixels. For example, the inter-predicted block of the current block may be generated from a single reference block identified by one motion vector in a reference frame as the predictive block in a single reference mode, while in the case of a mixed reference mode, the predictive block may be generated by a weighted average of two reference blocks in two reference frames indicated by two reference frame indexes and two corresponding motion vectors. The motion vectors may be coded in various manners and included in the bitstream.
[0132] In some implementations, the encoding or decoding system may maintain a decoded picture buffer (DPB). Some images / pictures may be maintained in the DPB waiting to be displayed (in the decoding system), and some images / pictures in the DPB may be used (in the decoding system or in the encoding system) as reference frames to enable inter prediction. In some implementations, the reference frames in the DPB may be tagged as either short-term or long-term references for the current image being encoded or decoded. For example, short-term reference frames may include frames used for inter prediction of blocks in the current frame, or a predetermined number (e.g., two) of subsequent video frames that are closest to the current frame in decoding order. Long-term reference frames may include frames in the DPB that can be used to predict image blocks in frames that are more than a predetermined number of frames away from the current frame in decoding order. Information regarding such tags of short-term and long-term reference frames may be referred to as a Reference Picture Set (RPS) and may be added to the header of each frame in the encoded bitstream. Each frame in the encoded video stream may be identified by a Picture Order Counter (POC), which may be numbered in an absolute manner according to playback order or relative to a group of pictures starting, for example, with an I-frame.
[0133] In some example implementations, one or more reference picture lists including identification of short-term and long-term reference frames for inter prediction may be formed based on information in the RPS. For example, for unidirectional inter prediction, a single picture reference list may be formed, denoted as L0 reference (or reference list 0), while for bidirectional inter prediction, two picture reference lists may be formed, denoted as L0 (or reference list 0) and L1 (or reference list 1), for each of the two prediction directions. The reference frames included in the L0 and L1 lists may be ordered in various predefined manners. The lengths of the L0 and L1 lists may be signaled in the video bitstream. The unidirectional inter prediction may be a single reference mode, or may be a mixed reference mode, in which multiple references are on the same side of the block to be predicted for generation of a prediction block by weighted averaging in a mixed prediction mode. Bidirectional inter prediction may be a combined mode only in that the bidirectional inter prediction includes at least two reference blocks.
[0134] In some implementations, a merge mode (MM) for inter prediction may be implemented. In general, for merge mode, one or more of the motion vectors in single reference prediction or the motion vectors in mixed reference prediction of the current PB may be derived from other motion vectors, rather than being calculated and signaled independently. For example, in an encoding system, a current motion vector of a current PB may be represented by a difference between the current motion vector and one or more other already coded motion vectors (called reference motion vectors). Such differences in motion vectors, rather than the entire current motion vector, may be coded and included in the bitstream and linked to the reference motion vector. Correspondingly, in a decoding system, a motion vector corresponding to the current PB may be derived based on the decoded motion vector difference and the decoded reference motion vector linked thereto. As a specific form of inter prediction of merge mode (MM) in general, such inter prediction based on motion vector difference may be referred to as merge mode with motion vector difference (MMVD). Thus, MM in general, or MMVD in particular, may be implemented to exploit correlations between motion vectors associated with different PBs to improve coding efficiency. For example, adjacent PBs may have similar motion vectors, and thus the MVD may be small and can be coded efficiently. In another example, for blocks of similar position / location in space, the motion vectors may be correlated temporally (between frames).
[0135] In some example implementations, an MM flag may be included in the bitstream during the encoding process to indicate whether the PB is currently in merge mode. Additionally or alternatively, an MMVD flag may be included and signaled in the bitstream during the encoding process to indicate whether the PB is currently in MMVD mode. The MM and / or MMVD flags or indicators may be provided at the PB level, CB level, CU level, CTB level, CTU level, slice level, picture level, etc. In a particular example, both the MM flag and the MMVD flag may be included in the current CU, and the MMVD flag may be signaled immediately after the skip flag and the MM flag to specify whether the MMVD mode is used for the current CU.
[0136] In some example implementations of MMVD, a list of reference motion vector (RMV) or MV predictor candidates for motion vector prediction may be formed for a predicted block. The list of RMV candidates may include a predetermined number (e.g., two) of MV predictor candidate blocks whose motion vectors may be used to predict the current motion vector. The RMV candidate blocks may include blocks selected from adjacent blocks and / or temporal blocks in the same frame (e.g., blocks at the same location in a preceding or subsequent frame of the current frame). These choices represent blocks at a relative spatial or temporal location to the current block and are likely to have a similar or identical motion vector to the current block. The size of the list of MV predictor candidates may be predetermined. For example, the list may include two or more candidates. To be on the list of RMV candidates, for example, a candidate block must have the same reference frame (or frames) as the current block, must exist (e.g., if the current block is near an edge of a frame, a boundary check must be performed), must have been already coded during the coding process, and / or must have been already decoded during the decoding process. In some implementations, a list of merging candidates may be generated first for spatially neighboring blocks (scanned in a certain predefined order) if available and satisfy the above conditions, and then for the temporal block if space is still available in the list. For example, neighboring RMV candidate blocks may be selected from the left and top blocks of the current block. The list of RMV predictor candidates may be dynamically formed at various levels (sequence, picture, frame, slice, superblock, etc.) as a Dynamic Reference List (DRL). The DRL may be signaled in the bitstream.
[0137] In some implementations, the actual MV predictor candidate used as the reference motion vector for predicting the motion vector of the current block may be signaled. If the RMV candidate list includes two candidates, a one-bit flag called a merge candidate flag may be used to indicate the selection of the reference merge candidate. For a current block predicted in a mixed mode, each of the multiple motion vectors predicted using the MV predictor may be associated with a reference motion vector from the merge candidate list. The encoder may determine which of the RMV candidates more closely predicts the current coding block and signal the selection as an index into the DRL.
[0138] In some example implementations of MMVD, after an RMV candidate is selected and used as a base motion vector prediction for a predicted motion vector, a motion vector difference (MVD or delta MV representing the difference between the predicted motion vector and the reference candidate motion vector) may be calculated by the coding system. Such MVD may include information representing the magnitude of the MV difference and the direction of the MV difference, both of which may be signaled in the bitstream. The magnitude of the motion difference and the direction of the motion difference may be signaled in various manners.
[0139] In some exemplary implementations of MMVD, a distance index may be used to specify motion vector difference magnitude information and indicate one of a set of predefined offsets that represent a predefined motion vector difference from a starting point (reference motion vector). The MV offset according to the signaled index may then be added to either the horizontal or vertical component of the starting (reference) motion vector. Whether the horizontal or vertical component of the reference motion vector should be offset may be determined by the MVD's orientation information. An exemplary predefined relationship between the distance index and the predefined offset is specified in Table 2. [Table 2]
[0140] In some exemplary implementations of MMVD, a direction index may be further signaled and used to indicate the direction of the MVD relative to the reference motion vector. In some implementations, the direction may be limited to one of the horizontal and vertical directions. An exemplary 2-bit direction index is shown in Table 3. In the example of Table 3, the interpretation of the MVD may differ according to the information of the start / reference MV. For example, if the start / reference MV corresponds to a unidirectionally predicted block, or if both reference frame lists correspond to a bidirectionally predicted block pointing to the same side of the current picture (i.e., the POCs of the two reference pictures are both larger than the POC of the current picture, or both smaller than the POC of the current picture), the code in Table 3 may specify the sign (direction) of the MV offset added to the start / reference MV. If the start / reference MV corresponds to a bidirectionally predicted block with two reference pictures on different sides of the current picture (i.e., the POC of one reference picture is larger than that of the current picture and the POC of the other reference picture is smaller than that of the current picture) and the difference between the reference POC in picture reference list 0 and the current frame is larger than the difference between the reference POC in picture reference list 1 and the current frame, the code in Table 3 may specify the sign of the MV offset to be added to the reference MV corresponding to the reference picture in picture reference list 0, and the sign of the offset of the MV corresponding to the reference picture in picture reference list 1 may have the opposite value (opposite sign for the offset). Otherwise, if the difference between the reference POC in picture reference list 1 and the current frame is larger than the difference between the reference POC in picture reference list 0 and the current frame, the code in Table 3 may specify the sign of the MV offset to be added to the reference MV associated with picture reference list 1, and the sign of the offset to the reference MV associated with picture reference list 0 has the opposite value. [Table 3]
[0141] In some example implementations, the MVD may be scaled according to the difference in POC in each direction. If the difference in POC in both lists is the same, no scaling is necessary. Otherwise, if the difference in POC in reference list 0 is larger than that in reference list 1, the MVD of reference list 1 is scaled. If the difference in POC in reference list 1 is larger than list 0, the MVD of list 0 may be scaled as well. If the starting MV is unidirectionally predicted, the MVD is added to the available MV or reference MV.
[0142] In some example implementations of MVD coding and signaling for bidirectional mixed prediction, in addition to or instead of coding and signaling two MVDs separately, symmetric MVD coding may be implemented such that only one MVD needs to be signaled and the other MVD can be derived from the signaled MVD. In such implementations, motion information including reference picture indexes for both list 0 and list 1 is signaled. However, for example, only the MVD associated with reference list 0 is signaled, and the MVD associated with reference list 1 is derived without being signaled. Specifically, at the slice level, a flag called "mvd_l1_zero_flag" may be included in the bitstream to indicate whether reference list 1 is not signaled in the bitstream. When this flag is 1, it indicates that reference list 1 is equal to zero (and thus not signaled), and a bidirectional prediction flag called "BiDirPredFlag" may be set to 0, which means that no bidirectional prediction is present. Otherwise, if mvd_l1_zero_flag is 0, then if the closest reference picture in list 0 and the closest reference picture in list 1 form a forward and backward or backward and forward pair of reference pictures, then BiDirPredFlag may be set to 1, and both reference pictures in list 0 and list 1 are short-term reference pictures. Otherwise, BiDirPredFlag is set to 0. A BiDirPredFlag of 1 may indicate that a symmetric mode flag is further signaled in the bitstream. The decoder may extract the symmetric mode flag from the bitstream if BiDirPredFlag is 1. For example, the symmetric mode flag may be signaled at the CU level (optionally), which may indicate whether a symmetric MVD coding mode is used for the corresponding CU.When the symmetric mode flag is 1, it indicates the use of a symmetric MVD coding mode, and indicates that only the reference picture indexes of both list 0 and list 1 (called "mvp_l0_flag" and "mvp_l1_flag") are signaled in the MVD associated with list 0 (called "MVD0"), and the other motion vector difference "MVD1" is not signaled but is derived. For example, MVD1 may be derived as -MVD0. Thus, in the exemplary symmetric MVD mode, only one MVD is signaled. In some other exemplary implementations of MV prediction, a harmonic scheme may be used to implement a general merge mode, MMVD, and some other types of MV prediction for both single reference mode and mixed reference mode MV prediction. Various syntax elements may be used to signal the manner in which the MV of the current block is predicted.
[0143] For example, for a single reference mode, the following MV prediction modes may be signaled:
[0144] NEARMV-DRL (Dynamic Reference List) One of the motion vector predictors (MVPs) in the list indicated by the index is used directly without MVD.
[0145] Use one of the motion vector predictors (MVPs) in the list indicated by the NEWMV-DRL index as a reference and apply a delta to the MVP (eg, use MVD).
[0146] GLOBALMV - Use motion vectors based on frame-level global motion parameters.
[0147] Similarly, in a mixed reference inter prediction mode using two reference frames corresponding to the two MVs to be predicted, the following MV prediction modes may be signaled:
[0148] NEAR_NEARMV - For each of the two MVs to be predicted, use one of the motion vector predictors (MVPs) in the list signaled by the DRL index without using the MVD.
[0149] NEAR_NEWMV - To predict the first of two motion vectors, one of the motion vector predictors (MVP) in the list signaled by the DRL index is used as a reference MV without using the MVD, and to predict the second of two motion vectors, one of the motion vector predictors (MVP) in the list signaled by the DRL index is used as a reference MV in combination with the delta MV (MVD) that is also signaled.
[0150] NEW_NEARMV - to predict the second of two motion vectors, one of the motion vector predictors (MVP) in the list signaled by the DRL index is used as a reference MV without using the MVD, and to predict the first of two motion vectors, one of the motion vector predictors (MVP) in the list signaled by the DRL index is used as a reference MV in combination with the delta MV (MVD) that is also signaled.
[0151] One of the motion vector predictors (MVPs) in the list signaled by the NEW_NEWMV-DRL index is used as a reference MV, in combination with the delta MV further signaled, to predict each of the two MVs.
[0152] GLOBAL_GLOBALMV - Use MV from each reference based on frame-level global motion parameters.
[0153] Thus, the term "NEAR" above refers to MV prediction using a reference MV without using MVD as a general merge mode, while the term "NEW" refers to MV prediction using a reference MV and including offsetting with the signaled MVD as in MMVD mode. In mixed inter prediction, both the reference-based motion vector and the motion vector delta above may generally be different or independent between the two references, even though they may be correlated and such correlation may be exploited to reduce the amount of information required to signal the two motion vector deltas. In such a situation, joint signaling of the two MVDs may be implemented and indicated in the bitstream.
[0154] A dynamic reference list (DRL) as described above may be used to hold a set of indexed motion vectors that are dynamically maintained and considered as candidate motion vector predictors.
[0155] In some example implementations, a certain resolution of the MVD may be allowed. For example, a motion vector accuracy (or precision) of 1 / 8 pixel may be allowed. The above MVDs in different MV prediction modes may be constructed and signaled in different manners. In some implementations, different syntax elements may be used to signal the above motion vector difference in reference frame list 0 or list 1.
[0156] For example, a syntax element called "mv_joint" may specify which components of the associated motion vector difference are non-zero. In the case of MVD, this is signaled jointly for all non-zero components. For example, the value of mv_joint has the following values: A 0 may indicate that there is no non-zero MVD along either the horizontal or vertical direction. A 1 may indicate that there is non-zero MVD only along the horizontal direction. 2 may indicate that there is non-zero MVD only along the vertical direction. 3 may indicate that there is a non-zero MVD along both the horizontal and vertical directions.
[0157] If the "mv_joint" syntax element for the MVD signals that there are no nonzero MVD components, then no further MVD information may be signaled. However, if the "mv_joint" syntax signals that there are one or two nonzero components, then further syntax elements may be further signaled for each nonzero MVD component, as described below.
[0158] For example, a syntax element called "mv_sign" may be used to further specify whether a corresponding component of the motion vector difference is positive or negative.
[0159] In another example, a syntax element called "mv_class" may be used to specify a class of motion vector difference among a set of predefined classes for a corresponding non-zero MVD component. The predefined classes for motion vector difference may be used, for example, to partition a space of continuous magnitudes of motion vector difference into non-overlapping ranges with each range corresponding to an MVD class. Thus, the signaled MVD class indicates a range of magnitudes of the corresponding MVD component. In the example implementation shown in Table 4 below, higher classes correspond to motion vector differences having a larger magnitude range. In Table 4, the symbol (n,m] is used to represent a range of motion vector differences that are greater than n pixels and less than or equal to m pixels. [Table 4]
[0160] In some other examples, a syntax element called "mv_bit" may further be used to specify the integer portion of the offset between the non-zero motion vector difference component and the starting magnitude of the magnitude range of the correspondingly signaled MV class. Thus, mv_bit may indicate the magnitude or amplitude of the MVD. The number of bits required in "my_bit" to signal the full range of each MVD class may vary as a function of the MV class. For example, MV_CLASS0 and MV_CLASS1 in the implementation of Table 4 may require only one bit to indicate an offset of 1 or 2 integer pixels from a starting MVD of 0, and each higher MV_CLASS in the example implementation of Table 4 may require progressively one more bit for "mv_bit" than the previous MV_CLASS.
[0161] In some other examples, a syntax element called "mv_fr" may be further used to specify the first two fractional bits of the motion vector difference of the corresponding non-zero MVD component, while a syntax element called "mv_hp" may be used to specify the third fractional bit (high resolution bit) of the motion vector difference of the corresponding non-zero MVD component. The two bits of "mv_fr" may essentially provide a 1 / 4 pixel MVD resolution, and the "mv_hp" bits may further provide a 1 / 8 pixel resolution. In some example implementations, more than one "mv_hp" bit may be used to provide an MVD pixel resolution finer than 1 / 8 pixel. In some example implementations, further flags may be signaled at one or more of various levels to indicate whether an MVD resolution of 1 / 8 pixel or finer is supported. If an MVD resolution does not apply to a particular coding unit, the above syntax elements may not be signaled for the corresponding unsupported MVD resolution.
[0162] In some example implementations above, the fractional resolution may be independent of the different MVD classes. In other words, the same options of motion vector resolution may be provided using a predefined number of "mv_fr" and "mv_hp" bits to signal fractional MVD of non-zero MVD components regardless of the magnitude of the motion vector difference.
[0163] However, in some other example implementations, the resolution of the motion vector difference may be differentiated in various MVD size classes. Specifically, a high-resolution MVD with a large MVD size for a higher MVD class may not provide a statistically significant improvement in compression efficiency. Therefore, the MVD may be coded with a reduced resolution (integer pixel resolution or fractional pixel resolution) for a larger MVD size range corresponding to a higher MVD size class. Similarly, the MVD may be coded with a reduced resolution (integer pixel resolution or fractional pixel resolution) for larger MVD values in general. Such MVD class-dependent or MVD size-dependent MVD resolution may be generally referred to as adaptive MVD resolution, size-dependent MVD resolution, or size-dependent adaptive MVD resolution. The term "resolution" may further be referred to as "pixel resolution". The adaptive MVD resolution may be implemented in various ways, as described in the following example implementations, to achieve better compression efficiency overall. In particular, the reduction in the number of signaling bits by targeting a low-precision MVD may be greater than the additional bits required to code the inter-prediction residual as a result of such a low-precision MVD. This is due to the statistical observation that treating the MVD resolution of a large magnitude or high class MVD as the same level as that of a small magnitude or low class MVD in a non-adaptive manner may not significantly increase the coding efficiency of the inter-prediction residual of blocks with a large magnitude or high class MVD. In other words, using a higher MVD resolution for a large magnitude or high class MVD may not result in a larger coding gain than using a lower MVD resolution.
[0164] In some general exemplary implementations, the pixel resolution or precision of the MVD may or may not decrease with increasing MVD class. Decreasing the pixel resolution of the MVD corresponds to a coarser MVD (or a larger step from one MVD level to the next). In some implementations, the correspondence between MVD pixel resolution and MVD class may be specified, predefined, or preset, and thus may not need to be signaled in the encoded bitstream.
[0165] In some example implementations, the MV classes in Table 3 may each be associated with a different MVD pixel resolution.
[0166] In some example implementations, each MVD class may be associated with a single allowed resolution. In some other implementations, one or more MVD classes may be associated with two or more optional MVD pixel resolutions. Thus, a signal in the bitstream for the current MVD component at such an MVD class may be followed by further signaling to indicate the optional pixel resolution selected for the current MVD component.
[0167] In some implementations, the adaptively allowed MVD pixel resolutions may include, but are not limited to, 1 / 64 pel (pixel), 1 / 32, 1 / 16 pel, 1 / 8 pel, 1 / 4 pel, 1 / 2 pel, 1 pel, 2 pel, 4 pel... (in descending order of resolution). Thus, each of the ascending MVD classes may be associated with one of these MVD pixel resolutions in a non-ascending manner. In some implementations, an MVD class may be associated with two or more of the above resolutions, with the higher resolution being equal to or less than the lower resolution of the preceding MVD class. For example, if MV_CLASS_3 in Table 4 is associated with optional 1-pel and 2-pel resolutions, then the highest resolution to which MV_CLASS_4 in Table 4 may be associated may be 2-pel. In some other implementations, the highest allowed resolution of an MV class may be higher than the lowest allowed resolution of the preceding (lower) MV class. However, the average of the allowed resolutions of the ascending MV classes may only be in non-ascending order.
[0168] In some implementations, if fractional pixel resolution higher than 1 / 8 pel is allowed, then the "mv_fr" and "mv_hp" signaling may be correspondingly extended to a total of more than three fractional bits.
[0169] In some example implementations, fractional pixel resolution may be allowed only for MVD classes equal to or less than a threshold MVD class. For example, fractional pixel resolution may be allowed only for MVD-CLASS0 and not allowed for all other MV classes in Table 4. Similarly, fractional pixel resolution may be allowed only for MVD classes equal to or less than any one of the other MV classes in Table 4. For other MVD classes above the threshold MVD class, only integer pixel resolution of the MVD is allowed. In such a scheme, signaling of fractional resolution, such as one or more of the "mv-fr" and / or "mv-hp" bits, may not be required for MVDs signaled in MVD classes equal to or greater than the threshold MVD class. For MVD classes having a resolution less than one pixel, the number of bits in the signaling of "mv-bit" may be further reduced. For example, for MV_CLASS_5 in Table 4, the range of MVD pixel offsets is (32,64], and therefore 5 bits are required to signal the entire range at 1 pel resolution. However, if MV_CLASS_5 is associated with a 2-pel MVD resolution (a lower resolution than 1 pixel resolution), then 4 bits may be required for "mv-bit" instead of 5 bits, and neither "mv-fr" nor "mv-hp" need to be signaled following signaling of "mv_class" as MV-CLASS_5.
[0170] In some example implementations, fractional pixel resolution may be allowed only for MVDs with integer values below a threshold integer pixel value. For example, fractional pixel resolution may be allowed only for MVDs smaller than 5 pixels. Corresponding to this example, fractional resolution may be allowed for MV_CLASS_0 and MV_CLASS_1 in Table 4, and not allowed for all other MV classes. In another example, fractional pixel resolution may be allowed only for MVDs smaller than 7 pixels. Corresponding to this example, fractional resolution may be allowed for MV_CLASS_0 and MV_CLASS_1 in Table 4 (having a range below 5 pixels), and not allowed for MV_CLASS_3 and above (having a range above 5 pixels). For MVDs belonging to MV_CLASS_2, whose pixel range includes 5 pixels, fractional pixel resolution of the MVD may or may not be allowed depending on the "mv-bit" value. If the 'm-bit' value is signaled as 1 or 2 (the integer part of the signaled MVD is 5 or 6 calculated as the start of the pixel range of MV_CLASS_2 at offset 1 or 2 indicated by 'm-bit'), then fractional pixel resolution may be allowed. Otherwise, if the 'mv-bit' value is signaled as 3 or 4 (the integer part of the signaled MVD is 7 or 8), then fractional pixel resolution may not be allowed.
[0171] In some other implementations, only one MVD value may be allowed for MV classes equal to or greater than the threshold MV class. For example, such a threshold MV class may be MV_CLASS2. Thus, MV_CLASS_2 and above may be allowed to have only a single MVD value, without fractional pixel resolution. The single allowed MVD value for these MV classes may be predefined. In some examples, the single allowed value may be the upper limit of the range for each of these MV classes in Table 4. For example, MV_CLASS_2 through MV_CLASS_10 may be equal to or greater than the threshold class of MV_CLASS2, and the single allowed MVD values for these classes may be predefined as 8, 16, 32, 64, 128, 256, 512, 1024, and 2048, respectively. In some other examples, the single allowed value may be the median of the range for each of these MV classes in Table 4. For example, MV_CLASS_2 through MV_CLASS_10 may exceed the class thresholds, and the single allowed MVD values for these classes may be predefined as, respectively, 3, 6, 12, 24, 48, 96, 192, 384, 768, and 1536. Other values within the range may also be defined as the single allowed resolution for the respective MVD class.
[0172] In the above implementation, if the signaled 'mv_class' is greater than or equal to a predefined MVD class threshold, then the signaling of 'mv_class' is sufficient to determine the MVD value. In that case, the magnitude and direction of the MVD are determined using 'mv_class' and 'mv_sign'.
[0173] Therefore, when an MVD is signaled for only one reference frame (either from reference frame list 0 or list 1, but not both), or when it is signaled for two reference frames jointly, the accuracy (or resolution) of the MVD may depend on the class of the associated motion vector difference in Table 3 and / or the magnitude of the MVD.
[0174] In some other implementations, the pixel resolution or precision of the MVD may decrease or not increase with increasing MVD magnitude. For example, the pixel resolution may depend on the integer part of the MVD magnitude. In some implementations, fractional pixel resolution may be allowed only for MVD magnitudes below an amplitude threshold. For a decoder, the integer part of the MVD magnitude may first be extracted from the bitstream. Then, the pixel resolution may be determined and a determination may be made whether any fractional MVD is present in the bitstream and needs to be analyzed (e.g., if fractional pixel resolution is not allowed for a particular extracted MVD integer magnitude, the fractional MVD bits that require extraction may not be included in the bitstream). The above exemplary implementations related to MVD class-dependent adaptive MVD pixel resolution are applied to MVD magnitude-dependent adaptive MVD pixel resolution. In a particular example, MVD classes that exceed or include a magnitude threshold may be allowed to have only one predefined value.
[0175] As described in detail above, for mixed reference inter prediction mode, the current coding block may be predicted by two or more reference blocks. Each reference block may be associated with a reference frame (unidirectional or bidirectional with respect to the current frame associated with the current coding block). Each of the reference blocks may be associated with a motion vector with respect to the current coding block. The motion vectors of the reference blocks for the current coding block may generally be different (but may be the same in some circumstances). As described above, each of these motion vectors may be predicted by a reference motion vector selected from motion vector candidates in the DRL, for example, together with a corresponding MVD.
[0176] In some implementations, a single MVD (not two or more MVDs) may be jointly signaled for prediction of any two or more motion vectors associated with two or more corresponding reference blocks for a current coding block, and the actual two or more MVDs associated with the two or more predicted motion vectors may be derived from the signaled MVD. In other words, for an encoder, two or more reference blocks corresponding to two or more reference frames may be first identified for prediction of a current coding block in a current frame. The corresponding two or more motion vectors of the two or more reference blocks may be determined by the encoder. A predictor / reference motion vector for predicting the two or more motion vectors may be selected from the DRL (e.g., the predictor / reference motion vector may be identified as a motion vector that is most similar to at least two motion vectors to be predicted). In some other implementations, two or more predictor / reference motion vectors may be identified (in other words, different motion vectors may be associated with different candidate predictor / reference motion vectors in the DRL). The encoder may then obtain two or more MVDs corresponding to two or more motion vectors (a common predictor / reference motion vector or separate predictor / reference motion vectors) by taking the difference between the two or more predicted motion vectors and the corresponding predictor / reference motion vectors. In some example implementations, the two or more MVDs may be jointly coded as one MVD, with information items that may be used to decode the jointly coded MVD, such that individual MVDs of the two or more MVDs may be derived at the decoder in various manners. In some implementations, given one reference frame, another reference frame may be derived based on the given reference frame and the current frame.
[0177] Correspondingly, the decoder may first extract the jointly coded MVD and other information items from the bitstream. The decoder may then derive individual MVDSs of two or more MVDs based on the jointly coded / signaled MVD and other information items. The decoder may then derive two or more motion vectors based on either a single predictor / reference motion vector from the DRL or separate predictor / reference motion vectors signaled in the bitstream and the derived individual MVDs.
[0178] 18 shows a flowchart 1800 of an example method according to the principles underlying the above implementation for a joint MVD solution. The flow of the example decoding method starts at 1801 and may include some or all of the following steps: receiving a coded video bitstream at S1810; determining a flag for a current video block from the coded video bitstream at S1820, the flag indicating whether joint motion vector difference (MVD) coding is applied to the current video block, and / or obtaining, by a device, a joint MVD for the current video block from the coded video bitstream at S1830, in response to the flag indicating that joint MVD coding is applied to the current video block, deriving, by the device, an MVD for the current video block based on the joint MVD, and decoding, by the device, the current video block based on the joint MVD and the derived MVD. The example method ends at S1899.
[0179] In some implementations, two reference frames may be used in a mixed reference mode. If the POC of both reference frames for a motion vector pair is greater or smaller than the POC of the current frame, the orientations of the two reference frames may be considered to be the same. Otherwise, if the POC of one reference frame is greater than the POC of the current frame and the POC of the other reference frame is smaller than the POC of the current frame, the orientations of the two reference frames may be considered to be different.
[0180] In some implementations, the method in FIG. 18 may further include a step of obtaining a first reference frame and a second reference frame for the current video block in a mixed reference mode, applying a joint MVD to the first reference frame to the current video block and applying the derived MVD to the second reference frame to the current video block in response to the flag indicating that joint MVD coding is applied to the current video block and the mixed reference mode including NEW_NEARMV, and / or applying a joint MVD to the second reference frame to the current video block and applying the derived MVD to the first reference frame to the current video block in response to the flag indicating that joint MVD coding is applied to the current video block and the mixed reference mode including NEAR_NEWMV.
[0181] In some implementations, in a mixed reference mode, when only one MVD is signaled for multiple reference frames, one flag (or syntax), e.g., named advanced_mvd_flag (or joint_mvd_flag), may be sent to the decoder to indicate whether the MVDs for reference list 0 and reference list 1 are jointly signaled or not. When the value of advanced_mvd_flag indicates that the MVDs for reference list 0 and reference list 1 are jointly signaled, only one joint MVD, e.g., named joint_delta_mv, is signaled and sent to the decoder, and the MVDs for reference list 0 and reference list 1 are derived from joint_delta_mv. In some implementations, this flag (or syntax) advanced_mvd_flag may be signaled when the coded inter prediction mode is NEAR_NEWMV or NEW_NEARMV.
[0182] In some implementations, in response to the flag indicating that joint MVD coding applies to the current video block, determining that an adaptive MVD pixel resolution is to be applied to code the MVD. In some implementations, obtaining the joint MVD for the current video block may include extracting an MVD class of the joint MVD, determining a current MVD pixel resolution for the joint MVD based on the MVD class, and / or extracting the joint MVD from the video bitstream based on the current MVD pixel resolution.
[0183] In some implementations, if a flag (or syntax) advanced_mvd_flag is sent to indicate that MVD for reference list 0 and reference list 1 are jointly signaled, the method of adaptive resolution of motion vector difference is also applied.
[0184] In some implementations, the flag includes one of a first value indicating that one MVD is signaled for one reference frame, a second value indicating that one MVD is signaled for one reference frame and an adaptive MVD pixel resolution is applied to code the MVD, and / or a third value indicating that one MVD is jointly signaled for two reference frames. In a non-limiting example, the first value may be 0, the second value may be 1, and the third value may be 2.
[0185] In some implementations, the value of advanced_mvd_flag may be one of 0, 1, or 2. When advanced_mvd_flag is equal to 0, one MVD is signaled for either list 0 or list 1. When advanced_mvd_flag is equal to 1, one MVD is signaled for either list 0 or list 1, and the motion vector difference adaptive resolution method is applied. When advanced_mvd_flag is equal to 2, MVDs for reference list 0 and reference list 1 are jointly signaled.
[0186] In some implementations, the flag includes one of a first value indicating that one MVD is signaled for one reference frame, a second value indicating that one MVD is signaled for one reference frame and an adaptive MVD pixel resolution is applied to code the MVD, and / or a third value indicating that one MVD is signaled jointly for two reference frames and an adaptive MVD pixel resolution is applied to code the MVD.
[0187] In some implementations, the value of advanced_mvd_flag can be one of 0, 1, or 2. When advanced_mvd_flag is equal to 0, one MVD is signaled for either list 0 or list 1. When advanced_mvd_flag is equal to 1, one MVD is signaled for either list 0 or list 1, and the method of adaptive resolution of motion vector difference is applied. When advanced_mvd_flag is equal to 2, MVDs for reference list 0 and reference list 1 are jointly signaled, and the method of adaptive resolution of motion vector difference is also applied.
[0188] In some implementations, the flag includes one of a first value indicating that one MVD is signaled for one reference frame, a second value indicating that one MVD is signaled for one reference frame and an adaptive MVD pixel resolution is applied to code the MVD, a third value indicating that one MVD is signaled jointly for two reference frames, and / or a fourth value indicating that one MVD is signaled jointly for two reference frames and an adaptive MVD pixel resolution is applied to code the MVD. In a non-limiting example, the first value may be 0, the second value may be 1, the third value may be 2, and / or the fourth value may be 3.
[0189] In some implementations, the second flag is obtained from a high level syntax including at least one of a video parameter set (VPS), a picture parameter set (PPS), a sequence parameter set (SPS), a picture header, a frame header, a slice header, a tile header, or a coding tree unit (CTU) header, and the second flag indicates whether the flag is signaled at the coding block level.
[0190] In some implementations, other flags are signaled in higher level syntax, including but not limited to SPS, VPS, PPS, picture header, tile header, slice header, frame header, CTU (or superblock) header, to indicate whether the advanced_mvd_flag syntax can be signaled at the coding block level.
[0191] In some implementations, the flag indicates whether to apply joint MVD and derive a reference frame for the current video block in a single reference mode. The method in FIG. 18 may further include, in response to the flag indicating applying joint MVD and deriving a reference frame for the current video block, obtaining a first reference frame for the current video block, deriving a second reference frame based on the first reference frame, applying the joint MVD to the first reference frame for the current video block, and / or applying the derived MVD to the derived second reference frame for the current video block.
[0192] In a non-limiting example, in single reference mode, a flag / syntax, for example named advanced_mvd_flag (or joint_mvd_flag), may be sent to the decoder to indicate whether the signaled MVD for the current signaled reference picture may be used to derive other MVDs to be applied to other derived reference frames for motion compensation. If the value of advanced_mvd_flag indicates that the signaled MVD for the current reference picture may be used to derive other MVDs for motion compensation, then only one joint MVD, named joint_delta_mv, is signaled and sent to the decoder. The other reference frames may be derived based on the signaled reference frame and / or the current frame. The MVDs for the signaled reference frame and the other derived reference frames are derived from joint_delta_mv.
[0193] In some implementations, the flag indicates whether to derive a MV to derive a reference frame to a current video block in single reference mode. In a non-limiting example, one flag / syntax, for example named advanced_mv_flag (or joint_mv_flag), may be sent to the decoder to indicate whether, in single reference mode, a motion vector predictor (MVP) for the current signaled reference frame / picture may be used to derive other MVs to be applied to other derived reference frames for motion compensation. The MV may be derived based on the MVP and MVD, for example, MV=MVP+MVD.
[0194] In the embodiments and implementations of the present disclosure, any steps and / or operations may be combined or arranged in any amount or order as needed. Two or more of the steps and / or operations may be performed in parallel. The embodiments and implementations of the present disclosure may be used separately or combined in any order. Furthermore, each of the method (or embodiment), the encoder and the decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored in a non-transitory computer-readable medium. The embodiments of the present disclosure may be applied to a luma block or a chroma block. The term block may be interpreted as a prediction block, a coding block, or a coding unit, i.e., a CU. The term block here may also be used to indicate a transform block. In the following items, when referring to a block size, this may indicate either the width or height of the block, or the maximum value of the width and height, or the minimum value of the width and height, or the region size (width*height), or the aspect ratio ratio of the block (width:height or height:width).
[0195] The techniques described above can be implemented as computer software using computer readable instructions and can be physically stored on one or more computer readable media. For example, Figure 19 illustrates a computer system (1900) suitable for implementing certain embodiments of the disclosed subject matter.
[0196] Computer software can be coded using any suitable machine code or computer language and can be subject to assembly, compilation, linking, or similar mechanisms to produce code containing instructions that can be executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., either directly, or through interpretation, microcode execution, etc.
[0197] 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.
[0198] 19 for computer system (1900) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure. Neither should the configuration of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (1900).
[0199] The computer system (1900) may include certain human interface input devices that may be responsive to input by one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), and olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images obtained from still image cameras), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0200] The input human interface devices may include one or more (only one of each is shown) of a keyboard (1901), a mouse (1902), a trackpad (1903), a touch screen (1910), a data glove (not shown), a joystick (1905), a microphone (1906), a scanner (1907), and a camera (1908).
[0201] The computer system (1900) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the human user's senses, for example, through haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen (1910), data gloves (not shown), or joystick (1905); although there may be haptic feedback devices that do not act as input devices), audio output devices (e.g., speakers (1909), headphones (not shown)), visual output devices (e.g., screens (1910) including CRT screens, LCD screens, plasma screens, OLED screens; each may or may not have touch screen input capability, each may or may not have haptic feedback capability, some of which may output two-dimensional visual output or higher than three-dimensional output through such means as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0202] The computer system (1900) may also include human accessible storage devices and associated media, such as optical media including CD / DVD ROM / RW (1920) along with CD / DVD or similar media (1921), thumb drives (1922), removable hard drives or solid state drives (1923), legacy magnetic media such as tapes and floppy disks (not shown), specialized ROM / ASIC / PLD based devices (not shown) such as security dongles, etc.
[0203] Those skilled in the art should also understand that the term "computer-readable medium" as used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0204] The computer system (1900) may also include an interface (1954) to one or more communication networks (1955). The networks may be, for example, wireless, wired, optical. The networks may further be local, wide area, metropolitan, in-vehicle and industrial, real-time, delay tolerant, etc. Examples of networks include Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., TV wired or wireless wide area digital networks including cable television, satellite television, terrestrial broadcast television, in-vehicle and industrial including CAN Bus, etc. Certain networks usually require an external network interface adapter that is attached to a particular general purpose data port or peripheral bus (1949) (e.g., a USB port of the computer system (1900)). Others are usually integrated into the core of the computer system (1900) by attachment to a system bus as described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (1900) can communicate with other entities. Such communications may be unidirectional, receive only (e.g., broadcast television), unidirectional transmit only (e.g., CANbus to a particular CANbus device), or bidirectional, for example, to other computer systems using local or wide area digital networks. Each of these networks and network interfaces as described above may use specific protocols and protocol stacks.
[0205] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (1940) of the computer system (1900).
[0206] The core (1940) may include one or more central processing units (CPUs) (1941), graphics processing units (GPUs) (1942), specialized programmable processing units in the form of field programmable gate arrays (FPGAs) (1943), hardware accelerators for specific tasks (1944), graphics adapters (1950), and the like. These devices may be connected through a system bus (1948), along with read only memory (ROM) (1945), random access memory (1946), internal mass storage devices (1947), such as internal non-user accessible hard drives, solid state drives (SSDs), and the like. In some computer systems, the system bus (1948) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the core's system bus (1948) or through a peripheral bus (1949). In one example, a screen (1910) may be connected to the graphics adapter (1950). Architectures for peripheral buses include PCI, USB, and the like.
[0207] The CPU (1941), GPU (1942), FPGA (1943), and accelerator (1944) can execute certain instructions that, in combination, may constitute the computer code described above. The computer code may be stored in a ROM (1945) or a RAM (1946). Temporary data may also be stored in the RAM (1946), while persistent data may be stored, for example, in an internal mass storage device (1947). Rapid storage and retrieval from any of the memory devices may be enabled through the use of a cache memory that may be closely associated with one or more of the CPU (1941), GPU (1942), mass storage device (1947), ROM (1945), RAM (1946), etc.
[0208] The computer-readable medium can have computer code thereon for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or they may be of the kind well known and available to those having skill in the computer software arts.
[0209] As a non-limiting example, a computer system having the architecture (1900), and in particular the core (1940), can provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be user-accessible mass storage as introduced above, as well as media associated with a particular memory of the core (1940) that is non-transitory in nature, such as a mass storage device (1947) internal to the core or a ROM (1945). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1940).
[0210] While this disclosure describes several exemplary embodiments, modifications, permutations, and various substitute equivalents exist and fall within the scope of this disclosure. It will thus be recognized that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of this disclosure and are therefore within its spirit and scope.
[0211] Appendix A: Abbreviations JEM: joint exploration model VVC: versatile video coding BMS: benchmark set MV: Motion Vector HEVC: High Efficiency Video Coding SEI: Supplementary Enhancement Information VUI: Video Usability Information GOP: Group of Pictures TU: Transform Unit PU: Prediction Unit CTU: Coding Tree Unit CTB: Coding Tree Block PB: Prediction Block HRD: Hypothetical Reference Decoder SNR: Signal Noise Ratio CPU: Central Processing Unit GPU: Graphics Processing Unit CRT: Cathode Ray Tube LCD: Liquid-Crystal Display OLED: Organic Light-Emitting Diode CD: Compact Disc DVD: Digital Video Disc ROM: Read-Only Memory RAM: Random Access Memory ASIC: Application-Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile communications LTE: Long-Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Area SSD: solid-state drive IC: Integrated Circuit HDR: high dynamic range SDR: standard dynamic range JVET: Joint Video Exploration Team MPM: most probable mode WAIP: Wide-Angle Intra Prediction CU: Coding Unit PU: Prediction Unit TU: Transform Unit CTU: Coding Tree Unit PDPC: Position Dependent Prediction Combination ISP: Intra Sub-Partitions SPS: Sequence Parameter Setting PPS: Picture Parameter Set APS: Adaptation Parameter Set VPS: Video Parameter Set DPS: Decoding Parameter Set ALF: Adaptive Loop Filter SAO: Sample Adaptive Offset CC-ALF: Cross-Component Adaptive Loop Filter CDEF: Constrained Directional Enhancement Filter CCSO: Cross-Component Sample Offset LSO: Local Sample Offset LR: Loop Restoration Filter AV1: AOMedia Video 1 AV2: AOMedia Video 2 MVD: Motion Vector difference CfL: Chroma from Luma SDT: Semi Decoupled Tree SDP: Semi Decoupled Partitioning SST: Semi Separate Tree SB: Super Block IBC (or IntraBC): Intra Block Copy CDF: Cumulative Density Function SCC: Screen Content Coding GBI: Generalized Bi-prediction BCW: Bi-prediction with CU-level Weights CIIP: Combined intra-inter prediction POC: Picture Order Count RPS: Reference Picture Set DPB: Decoded Picture Buffer MMVD: Merge Mode with Motion Vector Difference MV: Motion Vector MVP: Motion Vector Predictor
Claims
1. 1. A method for decoding a current video block of a video bitstream, comprising: receiving a coded video bitstream by a device including a memory storing instructions and a processor in communication with the memory; determining, by the device, a flag for a current video block from the coded video bitstream, the flag indicating whether joint motion vector difference (MVD) coding is applied to the current video block; In response to the flag indicating that the joint MVD coding is applied to the current video block, obtaining, by the device, a joint MVD for the current video block from the coded video bitstream; deriving, by the device, an MVD for the current video block based on the joint MVD; decoding, by the device, the current video block based on the joint MVD and the derived MVD. The method includes:
2. obtaining a first reference frame and a second reference frame for the current video block in a mixed reference mode; in response to the flag indicating that the joint MVD coding is applied to the current video block and the composite reference mode includes NEW_NEARMV, applying the joint MVD to the first reference frame to the current video block; applying the derived MVD to the second reference frame to the current video block; in response to the flag indicating that the joint MVD coding is applied to the current video block and the mixed reference mode includes NEAR_NEWMV, applying the joint MVD to the second reference frame to the current video block; applying the derived MVD to the first reference frame to the current video block; The method of claim 1 further comprising:
3. 2. The method of claim 1, further comprising: in response to the flag indicating that the joint MVD coding is applied to the current video block, determining that an adaptive MVD pixel resolution is to be applied to code an MVD.
4. The step of obtaining the joint MVD for the current video block includes: extracting an MVD class of the joint MVD; determining a current MVD pixel resolution for the joint MVD based on the MVD class; extracting the joint MVD from the video bitstream based on the current MVD pixel resolution; The method of claim 3 , comprising:
5. The flag is: a first value indicating that one MVD is signaled for one reference frame; a second value indicating that one MVD is signaled for one reference frame and an adaptive MVD pixel resolution is applied to code the MVD; or A third value indicates that one MVD is jointly signaled for two reference frames. The method of claim 1 , comprising one of:
6. The flag is: a first value indicating that one MVD is signaled for one reference frame; a second value indicating that one MVD is signaled for one reference frame and an adaptive MVD pixel resolution is applied to code the MVD; or A third value indicating that one MVD is jointly signaled for two reference frames and an adaptive MVD pixel resolution is applied to code the MVD. The method of claim 1 , comprising one of:
7. The flag is: a first value indicating that one MVD is signaled for one reference frame; a second value indicating that one MVD is signaled for one reference frame and that an adaptive MVD pixel resolution is applied to code the MVD; a third value indicating that one MVD is jointly signaled in two reference frames; or A fourth value indicating that one MVD is jointly signaled to two reference frames and an adaptive MVD pixel resolution is applied to code the MVD. The method of claim 1 , comprising one of:
8. the second flag is obtained from a high level syntax including at least one of a video parameter set (VPS), a picture parameter set (PPS), a sequence parameter set (SPS), a picture header, a frame header, a slice header, a tile header, or a coding tree unit (CTU) header; The method of claim 1 , wherein the second flag indicates whether the flag is signaled at a coding block level.
9. The method of claim 1 , wherein the flag indicates whether to apply joint MVD to derive a reference frame to the current video block in a single reference mode.
10. in response to the flag indicating applying joint MVD to derive a reference frame to the current video block, obtaining a first reference frame for the current video block; deriving a second reference frame based on the first reference frame; applying the joint MVD to the first reference frame to the current video block; applying the derived MVD to the derived second reference frame to the current video block; The method of claim 9 further comprising:
11. The method of claim 1 , wherein the flag indicates whether to derive a MV and a reference frame to the current video block in a single reference mode.
12. 1. An apparatus for decoding a current video block of a video bitstream, comprising: A memory for storing instructions; a processor in communication with the memory; Including, An apparatus, wherein when the processor executes the instructions, the processor is configured to cause the apparatus to perform a method according to any one of claims 1 to 11.
13. A computer program which, when executed by a processor, causes the processor to carry out a method according to any one of claims 1 to 11.
14. 1. A method for encoding a current video block of a video bitstream, comprising: determining, by a device including a memory storing instructions and a processor in communication with the memory, a flag for a current video block, the flag indicating whether joint motion vector difference (MVD) coding is applied to the current video block; In response to the flag indicating that the joint MVD coding is applied to the current video block, obtaining, by the device, a MVD for the current video block; obtaining, by the device, a joint MVD for the current video block; encoding, by the device, the joint MVD and the flag into a video bitstream; The method includes:
Citation Information
Patent Citations
Video coding using adaptive motion vector resolution
JP2014523714A
Adaptive motion vector precision for video coding.
JP2019534626A
Symmetric motion vector differential coding
JP2022531554A
Video coding using adaptive motion vector resolution
US20130003849A1
Adaptive motion vector precision for video coding
US20180098089A1
