Method, apparatus and program for grouping-based adaptive reordering of merge candidates - Patents.com
By generating and reordering candidate merges based on TM costs within the video decoder, the method addresses the inefficiencies in managing intra-prediction directions, resulting in improved decoding efficiency and compression performance.
Patent Information
- Application Number
- JP2023555128
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-09-14
- Filing Date
- 2022-09-16
- Publication Date
- 2025-04-21
- Estimated Expiration
- 2042-09-16
AI Technical Summary
Current video encoding techniques face challenges in efficiently managing the increasing complexity of intra-prediction directions, leading to suboptimal compression efficiency and increased computational requirements.
The proposed method involves generating a list of candidate merges for a current block in a video decoder, dividing these candidates into subgroups based on their template matching (TM) costs, and reordering them to prioritize the reconstruction of the current block using the most efficient merge candidates.
This approach enhances video decoding efficiency by optimizing the selection of merge candidates, reducing computational complexity, and improving compression performance by aligning with the most likely prediction directions.
Smart Images

Figure 0007665772000001 
Figure 0007665772000002 
Figure 0007665772000003
Abstract
Description
[Technical field]
[0001] Incorporation by Reference This application claims the benefit of priority to U.S. Patent Application No. 17 / 945,006, entitled "Grouping-Based Adaptive Reordering of Merge Candidates," filed on September 14, 2022, which claims the benefit of priority to U.S. Provisional Application No. 63 / 252,602, entitled "Grouping-Based Adaptive Reordering of Merge Candidates," filed on October 5, 2021. The disclosures of the prior applications are hereby incorporated by reference in their entireties herein.
[0002] Technical Field This disclosure describes embodiments generally relating to video coding. [Background technology]
[0003] The 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 filing, are not admitted, either explicitly or implicitly, as prior art to the present disclosure.
[0004] Uncompressed digital images and / or videos may include a sequence of pictures, each having spatial dimensions of, for example, 1920x1080 luminance samples and associated chrominance samples. The sequence of pictures may have a fixed or variable picture rate (also informally known as frame rate), for example, 60 pictures per second or 60 Hz. Uncompressed images and / or videos have specific bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luminance sample resolution at a frame rate of 60 Hz) with 8 bits per sample requires a bandwidth approaching 1.5 Gbit / s. One hour of such video requires more than 600 Gbytes of storage space.
[0005] One objective of image and / or video encoding and decoding may be the reduction of redundancy in the input image and / or video signal through compression. Compression may help reduce the aforementioned bandwidth and / or storage space requirements, in some cases by more than one order of magnitude. Although the description in this paper uses video encoding / decoding as an illustrative example, the same techniques may be applied to image encoding / decoding in a similar manner without departing from the spirit of this disclosure. Both lossless and lossy compression, as well as combinations thereof, may be used. Lossless compression refers to a technique whereby an exact copy of an original signal can be reconstructed from a compressed original signal. When lossy compression is used, the reconstructed signal may not be identical to the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. For video, lossy compression is widely used. The amount of acceptable distortion depends on the application, for example, users of certain consumer streaming applications may tolerate higher distortion than users of television distribution applications. The achievable compression ratio may reflect that a higher tolerable / acceptable distortion may result in a higher compression ratio.
[0006] Video encoders and decoders may utilize techniques from several broad categories, including motion compensation, transform processing, 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 a previously reconstructed reference picture. 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 may be an intra picture. Intra pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and thus can be used as the first picture in a coded video bitstream and video session or as a still image. Samples of an intra block can be subjected to a transform, and the transform coefficients can be quantized before entropy coding. Intra prediction can be 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 used in the MPEG-2 generation of coding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that attempt to perform predictions based on surrounding sample data and / or metadata obtained during the encoding and / or decoding of a block of data. Such techniques are referred to below as "intra-prediction" techniques. Note that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed, and not from reference pictures.
[0009] There may be various forms of intra prediction. If more than one such technique is available for a given video coding technique, the particular technique used may be coded as a particular intra prediction mode that uses that particular technique. In some cases, an intra prediction mode may have sub-modes and / or parameters that may be coded separately or may be included in a mode codeword that defines the prediction mode used. Which codeword is used 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). A predictor block can be formed using neighboring sample values of already available samples. The sample values of the neighboring samples are copied to the predictor block according to a certain direction. The reference to the direction used can be coded in the bitstream or may itself be predicted.
[0011] Referring to FIG. 1A, at the bottom right, a subset of 9 known predictor directions from the 33 possible predictor directions defined in H.265 (corresponding to the 33 angle modes out of the 35 intra modes) is depicted. The point (101) where the arrows converge represents the sample to be predicted. The arrows represent the direction in which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted from the sample(s) to the top right and at an angle of 45 degrees from the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from the sample(s) to the bottom left of sample (101), at an angle of 22.5 degrees from the horizontal.
[0012] Continuing to refer to FIG. 1A, at the top left, a square block (104) of 4×4 samples is depicted (indicated by a thick dashed line). 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. Additionally, reference samples are shown that follow a similar numbering scheme. The reference samples are labeled with R and their Y position (e.g., row index) and X position (column index) relative to the block (104). In both H.264 and H.265, the predicted samples are neighbors of the block being reconstructed, so there is no need to use negative values.
[0013] Intra-picture prediction can work by copying reference sample values from neighboring samples as indicated by the signaled prediction direction. For example, assume that the coded video bitstream includes signaling for this block indicating a prediction direction that is aligned with the arrow (102). That is, the sample is predicted from the top right sample at an angle of 45 degrees from the horizontal. Then 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 some cases, particularly when the orientation 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 develops, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. This increased to 33 in H.265 (2013). Currently, JEM / VVC / BMS can support up to 65 directions. Experiments are performed to identify the most likely directions, and certain techniques in entropy coding are used to represent those likely directions with a small number of bits while accepting some penalty for the less likely directions. Furthermore, the direction itself can be predicted from nearby directions used in nearby already decoded blocks.
[0016] FIG. 1B shows a schematic diagram (110) depicting 65 intra prediction directions with JEM to illustrate the increasing number of prediction directions over time.
[0017] The mapping of intra-prediction direction bits to represent directions in the coded video bitstream can vary from one video coding technique to another. Such mappings can range, for example, from simple direct mappings to complex adaptive schemes involving codewords, most probable modes, and similar techniques. However, in most cases, there will be certain directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-performing video coding technique, these less likely ways are represented by more bits than the more probable directions.
[0018] Image and / or video encoding and decoding can be performed using inter-picture prediction with motion compensation. Motion compensation can be a lossy compression technique and can refer to a technique in which blocks of sample data from a previously reconstructed picture or part thereof (reference picture) are spatially shifted in a direction indicated by a motion vector (hereinafter MV) and then used for the prediction of a newly reconstructed picture or part of a picture. In some cases, the reference picture can be the same as the picture currently being reconstructed. The MV can have two dimensions, X and Y, or three dimensions, with the third dimension being an indication of the reference picture used (which can indirectly be the temporal dimension).
[0019] In some video compression techniques, the MV applicable to a region of sample data can be predicted from other MVs, for example from an MV associated with another region of sample data that is spatially adjacent to the region being reconstructed and precedes it in decoding order. By doing so, the amount of data required to encode the MV can be significantly reduced, thereby removing redundancy and increasing compression. MV prediction can work in a directed manner 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 move in a similar direction and can therefore, in some cases, be predicted using similar motion vectors derived from the MVs of nearby regions. As a result, the MV found for a given region will be similar or identical to the MV predicted from the surrounding MVs, which, after entropy encoding, can be represented with fewer bits than would be used to directly encode the MVs. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., an MV) derived from the original signal (i.e., a sample stream). In other cases, the MV prediction itself may be irreversible, for example due to rounding errors in computing the predictor from several surrounding MVs.
[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms provided by H.265, a technique hereafter called "spatial merge" is described with reference to FIG. 2.
[0021] Referring to Figure 2, a current block (201) contains samples that the encoder found during the motion search process to be predictable from a spatially shifted previous block of the same size. Instead of directly encoding its MV, the MV can be derived from metadata associated with one or more reference pictures, for example 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 to 206, respectively). In H.265, MV prediction can use predictors from the same reference picture that neighboring blocks use. Summary of the Invention [Problem to be solved by the invention]
[0022] Aspects of the present disclosure provide a method and apparatus for video encoding / decoding. In some examples, an apparatus for video decoding includes a processing circuit. [Means for solving the problem]
[0023] According to one aspect of the present disclosure, a method of video decoding performed in a video decoder is provided. In the method, coded information of a current block and neighboring blocks of the current block in a current picture may be received from a coded video bitstream. A list of merging candidates for the current block may be generated based on the neighboring blocks of the current block. The list of merging candidates for the current block may be divided into a plurality of subgroups. Each of the plurality of subgroups may include one or more merging candidates. The one or more merging candidates may be ordered within each subgroup by a respective template matching (TM) cost associated with each of the one or more merging candidates. The current block may be reconstructed based on a merging candidate selected from the list of merging candidates for the current block.
[0024] In this method, the multiple subgroups in the list of merge candidates may be further reordered based on the respective TM cost values associated with each of the multiple subgroups.
[0025] To reorder the subgroups in the list of merge candidates, first a TM cost value associated with each of the subgroups may be determined. The subgroups in the list of merge candidates may be further reordered in ascending order of the TM cost values associated with the subgroups. Thus, a first subgroup of the subgroups in the reordered list of merge candidates may be associated with a minimum TM cost value of the TM cost values.
[0026] To determine a respective TM cost value associated with each of a plurality of subgroups, a plurality of TM cost values of the one or more merging candidates in a first subgroup of a plurality of subgroups may be determined. Each of the TM cost values may be associated with a difference between adjacent neighboring samples of a current block and adjacent neighboring samples of each merging candidate in the first subgroup. The one or more merging candidates in the first subgroup of a plurality of subgroups may be reordered based on an ascending order of the plurality of TM cost values of the one or more merging candidates in the first subgroup such that a first merging candidate in the reordered first subgroup has a smallest TM cost value.
[0027] In an embodiment, a TM cost value associated with a first subgroup of the plurality of subgroups may be determined as the minimum TM cost value among the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0028] In one embodiment, a TM cost value associated with a first subgroup of the plurality of subgroups may be determined as a median TM cost value of the TM cost values of the one or more merging candidates in the first subgroup.
[0029] In one embodiment, a TM cost value associated with a first subgroup of the plurality of subgroups may be determined as a median TM cost value of a plurality of minimum TM cost values of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0030] In one embodiment, a TM cost value associated with a first subgroup of the plurality of subgroups may be determined as an average of the first two smallest TM cost values of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0031] In this method, the list of merge candidates for the current block can be generated based on at least one of a spatial motion vector (MV) predictor from spatial neighboring blocks of the current block's neighboring blocks, a temporal MV predictor from a co-located block of the current block, a history-based MV predictor from a first-in-first-out (FIFO) table, a pairwise average MV predictor, a zero MV, a non-adjacent MV predictor from a non-adjacent spatial neighboring block of the current block's neighboring blocks, or a non-adjacent temporal MV predictor of the current block.
[0032] Based on the list of merge candidates including non-adjacent MV predictors and non-adjacent temporal MV predictors, the list of merge candidates can be divided into a first subgroup including a first group of non-adjacent MV predictors positioned along angles π / 4, π / 2, 3π / 4, π, and 5π / 4 with respect to the horizontal axis. The list of merge candidates can also be divided into a second subgroup including a second group of non-adjacent MV predictors positioned along angles π / 4, 3π / 8, π / 2, 5π / 8, 3π / 4, 7π / 8, π, 9π / 8, and 5π / 4 with respect to the horizontal axis.
[0033] The list of merging candidates can be further divided into a third subgroup that includes non-adjacent temporal MV predictors.
[0034] In some embodiments, the list of merge candidates may be divided into multiple subgroups such that each of the multiple subgroups may contain one of the same number of merge candidates, a predefined number of merge candidates, or the same type of merge candidates.
[0035] According to another aspect of the present disclosure, there is provided an apparatus, the apparatus including a processing circuit, the processing circuit being configured to perform any of the above methods for video encoding / decoding.
[0036] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer for video decoding, cause the computer to perform any of the above methods for video encoding / decoding. [Brief description of the drawings]
[0037] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings.
[0038] [Figure 1A] FIG. 2 is a schematic diagram of an example subset of intra-prediction modes.
[0039] [Figure 1B] FIG. 2 is an illustration of an exemplary intra-prediction direction.
[0040] [Diagram 2] FIG. 2 is a schematic diagram of a current block and its surrounding spatial merging candidates in one example.
[0041] [Diagram 3] FIG. 1 is a schematic diagram of a simplified block diagram of a communication system according to an embodiment.
[0042] [Figure 4] FIG. 4 is a schematic diagram of a simplified block diagram of a communication system (400) according to an embodiment.
[0043] [Diagram 5] FIG. 2 is a schematic diagram of a simplified block diagram of a decoder according to an embodiment.
[0044] [Figure 6] FIG. 2 is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.
[0045] [Figure 7]4 shows a block diagram of an encoder according to another embodiment;
[0046] [Figure 8] 4 shows a block diagram of a decoder according to another embodiment;
[0047] [Figure 9] 13 illustrates exemplary locations of spatial merging candidates in another embodiment.
[0048] [Figure 10] 1 illustrates an exemplary redundancy check of spatial merge candidates.
[0049] [Figure 11] 1 shows a schematic diagram of motion vector scaling for temporal merging candidates according to an embodiment.
[0050] [Figure 12] 1 illustrates exemplary candidate positions for temporal merge candidates, according to an embodiment.
[0051] [Figure 13] 1 illustrates an exemplary template matching procedure according to an embodiment.
[0052] [Figure 14] 1 illustrates an example pattern of non-adjacent spatial merging candidates according to an embodiment.
[0053] [Figure 15] 1 illustrates an exemplary derivation of sub-block based merging candidates according to an embodiment.
[0054] [Figure 16] 1 illustrates an example pattern of non-adjacent spatial merging candidates according to an embodiment.
[0055] [Figure 17]1 shows a flowchart outlining an exemplary decoding process according to some embodiments of the present disclosure.
[0056] [Figure 18] 1 shows a flowchart outlining an exemplary encoding process according to some embodiments of the present disclosure.
[0057] [Figure 19] 1 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0058] FIG. 3 illustrates an exemplary block diagram of a communication system (300). 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) perform a 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. One-way data transmission may be common, such as in media service applications.
[0059] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) performing bidirectional transmission of encoded video data, for example during a video conference. 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 recover the video pictures, and display the video pictures on an accessible display device in accordance with the recovered video data.
[0060] In the example of FIG. 3, terminal devices (310), (320), (330), and (340) may be depicted as a server, a personal computer, and a smartphone, respectively, although the principles of the present disclosure may not be so limited. Embodiments of the present disclosure find application in laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. Network (350) represents any number of networks that convey encoded video data between terminal devices (310), (320), (330), and (340), including, for example, wired and / or wireless communication networks. Communication network (350) may exchange data in circuit-switched and / or packet-switched channels. Representative networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of the present discussion, the architecture and topology of network (350) may not be important to the operation of the present disclosure, unless otherwise described below.
[0061] 4 shows a video encoder and video decoder in a streaming environment as an example of an application for the disclosed subject matter. The disclosed subject matter may be equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, streaming services, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0062] The streaming system may include a video source (401), e.g., a digital camera, and may include a capture subsystem (413) that generates, e.g., a stream of uncompressed video pictures (402). In one example, the stream of video pictures (402) includes samples captured by a digital camera. The stream of video pictures (402), depicted as a thick line to emphasize its higher data volume when 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 achieve aspects of the disclosed subject matter, as described in more detail below. The encoded video data (404) (or encoded video bitstream), depicted as a thin line to emphasize its lower data volume when compared to the stream of video pictures (402), may be stored in a streaming server (405) for future use. 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 an electronic device (430). The video decoder (410) decodes the incoming copy of the encoded video data (407) and generates an outgoing stream of video pictures (411) that can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (404), (407), and (409) (e.g., a video bitstream) can be encoded according to some video encoding / compression standard.Examples of these standards include ITU-T Recommendation H.265. In one example, a video coding standard under development is informally known as VVC. The disclosed subject matter may be used in the context of Versatile Video Coding (VVC).
[0063] 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).
[0064] 5 shows an example block diagram of a video decoder (510). 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.
[0065] The receiver (531) may receive one or more coded video sequences to be decoded by the video decoder (510). In one embodiment, one coded video sequence is received at a time, and the decoding of each coded video sequence is independent of the decoding of the other coded video sequences. The coded video sequences may be received from a channel (501), which may be a hardware / software link to a storage device that stores the encoded video data. The receiver (531) may receive the encoded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded to respective usage entities (not shown). The receiver (531) may separate the coded video sequences from the other data. To combat network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter the "parser"). In some applications, the buffer memory (515) is part of the video decoder (510). In other applications, it can 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 another buffer memory (515) internal to the video decoder (510), e.g., to handle playback timing. If the receiver (531) is receiving data from a storage / forwarding 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 in best-effort packet networks such as the Internet, the buffer memory (515) may be required and may be relatively large, advantageously of adaptive size, and may be implemented, at least in part, in an operating system or similar element (not shown) external to the video decoder (510).
[0066] 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 render device (512) (e.g., a display screen). The render device may not be an integral part of the electronic device (530) as shown in FIG. 5, but may be coupled to the electronic device (530). The control information for the rendering device(s) may be in the form of a Supplementary Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not shown). The parser (520) may parse / entropy decode the received coded video sequence. The 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) can 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 group. The subgroups can 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) can also extract information from the coded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, etc.
[0067] The parser (520) performs an entropy decoding / parsing operation on the video sequence received from the buffer memory (515), thereby generating symbols (521).
[0068] The reconstruction of symbols (521) can involve several different units, depending on the type of coded video picture or its parts (e.g., inter and intra pictures, inter and intra blocks) and other factors. Which units are involved and how can 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 the following units is not depicted for clarity.
[0069] In addition to the functional blocks already mentioned, the video decoder (510) may be conceptually divided into a number of functional units, as described below. In a practical implementation working within commercial constraints, many of these units may interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, the following conceptual subdivision into functional units is appropriate.
[0070] The first unit is a scaler / inverse transform unit (551). The scaler / inverse transform unit (551) receives quantized transform coefficients and control information as symbol(s) (521) from the parser (520). The control information includes which transform to use, block size, quantization factor, quantization scaling matrix, etc. The scaler / inverse transform unit (551) can output a block containing sample values that can be input to an aggregator (555).
[0071] In some cases, the output samples of the scaler / inverse transform unit (551) may relate to intra-coded blocks, which are blocks that do not use prediction information from a previously reconstructed picture, but can use prediction information from a previously reconstructed part 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) generates a block of the same size and shape as the block being reconstructed using surrounding already reconstructed information taken from 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. The aggregator (555) may add, sample by sample, the prediction information generated by the intra prediction unit (552) to the output sample information provided by the scaler / inverse transform unit (551).
[0072] In other cases, the output samples of the scaler / inverse transform unit (551) may relate to an inter-coded, potentially motion-compensated block. In such cases, the motion compensation prediction unit (553) may access a reference picture memory (557) to fetch samples used for prediction. After motion compensating the fetched samples according to the symbols (521) for the block, these samples may be added by an aggregator (555) to the output of the scaler / inverse transform unit (in this case referred to as residual samples or residual signals) to generate output sample information. The addresses in the reference picture memory (557) from which the motion compensation unit (553) fetches 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, X, Y, and reference picture components. Motion compensation may include interpolation of sample values fetched from the reference picture memory (557) when subsample accurate motion vectors are used, motion vector prediction mechanisms, etc.
[0073] The output samples of the aggregator (555) can be subjected to various loop filtering techniques in a loop filter unit (556). The video compression techniques can include in-loop filter techniques 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). The video compression can also be responsive to meta-information obtained during decoding of a previous portion (in decoding order) of the coded picture or coded video sequence, as well as to previously reconstructed loop filtered sample values.
[0074] The output of the loop filter unit (556) can be a sample stream, which can be output to a render device (512) or can be stored in a reference picture memory (557) for use in future inter-picture prediction.
[0075] Once an encoded picture is fully reconstructed, it can be used as a reference picture for future predictions. For example, once an encoded picture corresponding to a current picture is fully reconstructed and the encoded picture is identified (e.g., by the parser (520)) as a reference picture, the current picture buffer (558) can become part of the reference picture memory (557) and a fresh current picture buffer can be reallocated before starting the reconstruction of a subsequent encoded picture.
[0076] The video decoder (510) may perform decoding operations according to a given video compression technique or standard, such as ITU-T Recommendation H.265. The coded video sequence may conform to the syntax prescribed by the video compression technique or standard being used, in the sense that the coded video sequence conforms to the syntax of the video compression technique or standard and to a profile documented in the video compression technique or standard. Specifically, the profile may select certain tools from all tools available in the video compression technique or standard as the only tools available for use under that profile. Compliance may also require that the complexity of the coded video sequence be within a range defined by the 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 coded video sequence.
[0077] In some 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) improvement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0078] 6 shows an example block diagram of a video encoder (603). The video encoder (603) is included in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used in place of the video encoder (403) in the example of FIG. 4.
[0079] 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) is part of the electronic device (620).
[0080] 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, ...) 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 that stores 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 that impart motion when viewed in sequence. The pictures themselves 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.
[0081] According to an embodiment, 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 required time constraint. Enforcing an appropriate encoding rate is one function of the controller (650). In some embodiments, the controller (650) controls and is operatively coupled to other functional units, such as those described below. Such couplings are not depicted for clarity. Parameters set by the controller (650) can 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 with other suitable functions for the video encoder (603) optimized for a certain system design.
[0082] In some embodiments, the video encoder (603) is configured to operate in an encoding loop. As a simplistic description, in one example, the encoding loop can 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). The decoder (633) reconstructs the symbols to generate sample data in a similar manner that a (remote) decoder would also generate. The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream results in 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 decoder "sees" when using prediction during decoding as reference picture samples. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, for example due to channel errors) is also used in several related techniques.
[0083] 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, since 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 the parser (420), may not be fully implemented in the local decoder (633).
[0084] In some embodiments, any decoder technique, except for parsing / entropy decoding, present in a decoder is present in substantially the same functional form in a corresponding encoder. Thus, the disclosed subject matter focuses on the decoder operation. The description of the encoder techniques can be abbreviated since they are the inverse of the decoder techniques described generically. In certain areas, more detailed descriptions are provided below.
[0085] During operation, in some examples, 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 between pixel blocks of the input picture and pixel blocks of the reference picture(s) that may be selected as predictive references for the input picture.
[0086] The local video decoder (633) can decode the coded video data of a picture that may be designated as a reference picture based on the symbols generated by the source encoder (630). The operation of the coding engine (632) can advantageously be a lossy process. When the coded video data can be decoded by 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 picture by the video decoder and store the reconstructed reference picture in the reference picture memory (634). In this way, the video encoder (603) can locally store a copy of the reconstructed reference picture that has common content (in the absence of transmission errors) as the reconstructed reference picture that would be obtained by the far-end video decoder.
[0087] 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 certain 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 derived from multiple reference pictures stored in the reference picture memory (634).
[0088] 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.
[0089] The output of all the above functional units can be subjected to entropy coding in an entropy coder (645), which converts the symbols produced by the various functional units into a coded video sequence by applying a lossless compression to the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0090] The transmitter (640) can buffer the coded video sequence produced by the entropy coder (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 coded video data from the video encoder (603) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).
[0091] A controller (650) may manage the operation of the video encoder (603). During encoding, the controller (650) may assign a 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:
[0092] 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, as well as their respective uses and characteristics.
[0093] 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.
[0094] A bidirectionally predictive picture (B picture) may be one that can be encoded and decoded using intra- or inter-prediction that uses up to two motion vectors and reference indices to predict the sample values of each block. Similarly, a multi-predictive picture may use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0095] A source picture is usually spatially divided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and may be 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.
[0096] 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.
[0097] In some embodiments, the sender (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 forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0098] Video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits correlations (temporal or otherwise) between pictures. In one example, a particular picture to be encoded / decoded, called the current picture, is divided into blocks. If a block in the current picture is similar to a reference block in a previously coded and still buffered reference picture in the video, that block in the current picture can be coded by a vector called a motion vector. The motion vector points to a reference block in the reference picture, and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0099] In some embodiments, bi-prediction techniques can be used in inter-picture prediction. According to bi-prediction techniques, two reference pictures are used, such as a first reference picture and a second reference picture, both of which precede the current picture in decode order (but may be past and future, respectively, in display order) in the video. A block in the current picture can be coded with 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 predicted by a combination of the first and second reference blocks.
[0100] Furthermore, to improve coding efficiency, merge mode techniques can be used in inter-picture prediction.
[0101] According to some 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, according to the HEVC standard, pictures in a sequence of video pictures are divided into coding tree units (CTUs) for compression, and the CTUs in a picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU can be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels can be partitioned into one CU of 64×64 pixels, or four CUs of 32×32 pixels, or 16 CUs of 16×16 pixels. In one example, each CU is analyzed to determine a prediction type for that CU, such as an inter prediction type or an intra prediction type. A CU is divided into one or more prediction units (PUs) depending on temporal and / or spatial predictability. Generally, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding / decoding is performed in units of a prediction block. Taking a luma prediction block as an example of a prediction block, the prediction block includes a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0102] 7 shows an example diagram of a video encoder (703). The video encoder (703) is configured to receive a processed block of sample values (e.g., a predictive block) in a current video picture in a sequence of video pictures and to encode the processed block into a coded picture that is part of a coded video sequence. In one example, the video encoder (703) is used in place of the video encoder (403) in the example of FIG. 4.
[0103] In an HEVC 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) determines whether the processing block is best coded using intra mode, inter mode, or bi-predictive mode, e.g., using rate-distortion optimization. If the processing block is coded in intra mode, the video encoder (703) may use intra prediction techniques to encode the processing block into a coded picture; if the processing block is coded in inter mode or bi-predictive mode, the video encoder (703) may use inter prediction techniques or bi-predictive techniques, respectively, to encode the processing block into a coded picture. In certain video coding techniques, a merge mode may be an inter-picture prediction submode 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 certain other video coding techniques, there may be motion vector components applicable to the current block. In one example, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining a mode of a processing block.
[0104] 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 FIG.
[0105] 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), generate inter prediction information (e.g., a description of redundant information due to inter encoding 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 encoded video information.
[0106] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), optionally compare the block to blocks already encoded in the same picture, generate transformed and quantized coefficients, and optionally generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). In one example, the intra encoder (722) also calculates an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.
[0107] The general controller (721) is configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, if the mode is intra mode, the general controller (721) controls the switch (726) to select the 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 mode is inter mode, the general controller (721) controls the switch (726) to select the 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.
[0108] The residual calculator (723) is configured to calculate a difference (residual data) between the received block and a prediction result selected from the intra-encoder (722) or the inter-encoder (730). The residual encoder (724) is configured to encode the residual data to generate transform coefficients based on the residual data. In one example, the residual encoder (724) is configured to transform the residual data from a spatial domain to a frequency domain to generate transform coefficients. The transform coefficients are then subjected to a quantization process to obtain quantized transform coefficients. In various 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) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (722) may 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 may be buffered in a memory circuit (not shown) and, in some examples, used as reference pictures.
[0109] The entropy encoder (725) is configured to format a bitstream to include the encoded block. The entropy encoder (725) is configured to include various information in the bitstream according to a suitable standard, such as the HEVC standard. In one example, the entropy encoder (725) is 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. It is noted that, in accordance with the disclosed subject matter, when encoding a block in a merged sub-mode of either the inter mode or the bi-prediction mode, the residual information is not present.
[0110] 8 shows an example diagram of a video decoder (810). The video decoder (810) is configured to receive coded pictures that are part of a coded video sequence and decode the coded pictures to generate reconstructed pictures. In one example, the video decoder (810) is used in place of the video decoder (410) in the example of FIG. 4.
[0111] 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 FIG. 8.
[0112] The entropy decoder (871) may be configured to reconstruct from the coded picture certain symbols representing the syntax elements of which the coded picture is composed. Such symbols may include, for example, the mode in which the block is coded (e.g., intra mode, inter mode, bi-predictive mode, merged submode or the latter two in another submode) and prediction information (e.g., intra prediction information or inter prediction information, etc.) that may identify certain samples or metadata used for prediction by the intra decoder (872) or the inter decoder (880), respectively. The symbols may also include 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).
[0113] The inter decoder (880) is configured to receive inter prediction information and generate inter prediction results based on the inter prediction information.
[0114] The intra decoder (872) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.
[0115] The residual decoder (873) is configured to perform inverse quantization to extract dequantized transform coefficients, and to process the dequantized transform coefficients to transform the residual information from the frequency domain to the spatial domain. The residual decoder (873) may also require certain control information (including quantizer parameters (QP)), which may be provided by the entropy decoder (871) (data path not depicted since this is only low volume control information).
[0116] The reconstruction module (874) is configured to combine, in the spatial domain, the residual information 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 a reconstructed block, which may be part of a reconstructed picture, which may be part of a reconstructed video. It is noted that other suitable operations, such as deblocking operations, may be performed to improve visual quality.
[0117] It should be noted that the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using any suitable techniques. In one embodiment, the video encoders (403), (603), (703) and the video decoders (410), (510), (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoders (403), (603), (603) and the video decoders (410), (510), (810) may be implemented using one or more processors executing software instructions.
[0118] The present disclosure includes embodiments related to splitting merge candidate types or merge candidate groups into multiple subgroups. The merge candidate types can be split based on characteristics of the merge candidates. Furthermore, the merge candidates within each subgroup may be reordered. The reordering may also be applied to multiple merge candidate types, for example, according to relative template matching costs. For example, each merge candidate type can be split into two or more subgroups according to characteristics of the merge candidates within each subgroup, and the merge candidates within each subgroup can be adaptively reordered. The adaptive reordering can also be applied to the merge candidate types according to the relative template matching costs of each merge candidate type.
[0119] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC29 / WG11) published the H.265 / HEVC (High Efficiency Video Coding) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). In 2015, the two standards organizations jointly formed the Joint Video Exploration Team (JVET) to explore the possibility of developing the next video coding standard beyond HEVC. In October 2017, the two standards organizations announced a Joint Call for Proposals on Video Compression with Capability beyond HEVC (CfP). By February 15, 2018, 22 CfP responses for standard dynamic range (SDR), 12 CfP responses for high dynamic range (HDR), and 12 CfP responses for 360 video categories had been submitted. In April 2018, all received CfP responses were evaluated at the 122 MPEG / 10th JVET meeting. As a result of this meeting, JVET formally launched the standardization process for next-generation video coding beyond HEVC, and this new standard was named Versatile Video Coding (VVC), and JVET was renamed the Joint Video Experts Team. In 2020, ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC1 / SC29 / WG11) published the VVC video coding standard (version 1).
[0120] In inter prediction, for each inter predicted coding unit (CU), motion parameters are required, e.g., due to the coding features of VVC used for inter predicted sample generation. The motion parameters may include motion vectors, reference picture indices, reference picture list usage indices, and / or additional information. The motion parameters may be signaled explicitly or implicitly. If a CU is coded in skip mode, the CU may be associated with one PU, and significant residual coefficients, coded motion vector deltas, and / or reference picture indices may not be required. If a CU is coded in merge mode, the motion parameters for the CU may be obtained from neighboring CUs. The neighboring CUs may include spatial and temporal candidates, and additional schedules (or additional candidates) as introduced in VVC. The merge mode can be applied to any inter predicted CU, not just skip mode. An alternative to the merge mode is explicit transmission of motion parameters, where the motion vector, the corresponding reference picture index for each reference picture list, the reference picture list usage flag, and / or other required information may be explicitly signaled for each CU.
[0121] For VVC, the VVC Test model (VTM) reference software can include several new sophisticated inter-prediction coding tools, which can include one or more of the following: (1) Enhanced Merge Prediction (2) Merge motion vector difference (MMVD) (3) AMVP mode with symmetric MVD signaling (4) Affine motion compensation prediction (5) Subblock-based temporal motion vector prediction (SbTMVP) (6) Adaptive motion vector resolution (AMVR) (7) Motion Field Storage: 1 / 16 luma sample MV storage and 8x8 motion field compression (8) Bi-prediction with CU-level weights (BCW) (9) Bi-directional optical flow (BDOF) (10) Decoder side motion vector refinement (DMVR) (11) Combined inter and intra prediction (CIIP) (12) Geometric partitioning mode (GPM)
[0122] A merge candidate list can be constructed by including five types of candidates as in VTM4. A merge candidate list can be constructed in the following order: (1) Spatial MVP from spatially neighboring CUs, (2) Temporal MVP from co-located CUs; (3) History-based MVP from a FIFO table, (4) Pairwise average MVP, (5) Zero MV.
[0123] The size of the merge list can be signaled in the slice header. The maximum allowed size of the merge list can be 6, as in VTM4. For each CU coded in merge mode, the index of the best merge candidate can be encoded, for example using truncated unary binarization. The first bin of the merge index can be coded using the context, and for the other bins bypass coding can be used.
[0124] In spatial candidate derivation, for example in VVC, the derivation of spatial merge candidates may be the same or similar to the derivation of spatial merge candidates in HEVC. The maximum number of merge candidates (e.g., four merge candidates) may be selected from among candidates located at the positions shown in FIG. 9, for example. As shown in FIG. 9, a current block (901) may include neighboring blocks (902)-(906) located at positions A0, A1, B0, B1, and B2, respectively. The order of derivation of spatial merge candidates may be B1, A1, B0, A0, and B2. Position B2 may be considered only if any CU (or block) at positions A0, B0, B1, or A1 is not available (e.g., because the CU belongs to another slice or tile) or is intra-coded. After the candidate (or block) at position A1 is added, the addition of the remaining candidates (or blocks) may be subject to a redundancy check. The redundancy check can ensure that candidates with the same motion information are removed from the merge list so that the coding efficiency is improved. To reduce the computational complexity, the redundancy check may not consider all possible candidate pairs. Instead, only the candidate pairs connected by the arrows in FIG. 10 may be considered. For example, the redundancy check can be applied to five candidate pairs, such as the candidate pair A1 and B1 and the candidate pair A1 and A0. A candidate can be added to the merge list only if the corresponding candidate used for the redundancy check does not contain the same motion information. For example, the candidate B0 can be added to the merge list only if the corresponding candidate B1 does not contain the same motion information.
[0125] In the derivation of a temporal candidate, only one candidate may be added to the merge list. For example, as shown in FIG. 11, in the derivation of a temporal merge candidate for a current CU (1114), a scaled motion vector may be derived based on a co-located CU (1104) belonging to a co-located reference picture (1112). The reference picture list used for the derivation of the co-located CU (1104) may be explicitly signaled in the slice header. The scaled motion vector for the temporal merge candidate may be obtained as shown by the dotted line (1102) in FIG. 11, which is scaled from the motion vector of the co-located CU (1104) using picture order count (POC) distances tb and td. tb may be defined as the POC difference between the reference picture (e.g., Curr_ref) (1106) of the current picture and the current picture (e.g., Curr_pic) (1108). td can be defined as the POC difference between a co-located picture (e.g., Col_ref) (1110) and a co-located picture (e.g., Col_pic) (1112). The reference picture index of a temporal merge candidate can be set to zero.
[0126] The position for the temporal candidate can be selected between candidates C0 and C1, as shown in Figure 12. For example, if the CU at position C0 is unavailable, intra-coded, or outside the current CTU row, then position C1 can be used. Otherwise, position C0 can be used in deriving the temporal merge candidate.
[0127] To further improve compression efficiency, improved compression tools beyond the capabilities of VVC are needed.
[0128] In one example, template matching (TM) can be provided for motion refinement at the decoder side. In TM mode, motion can be refined by building a template from reconstructed samples in the left and top neighborhood and finding the closest match between the template in the current picture and the reference picture.
[0129] As shown in FIG. 13, a current block (or CU) (1304) may be included in a current frame (1306). Neighborhood samples located adjacent to the top edge and / or left edge of the current CU (1304) may form a current template (1308) of the current CU (1304). A better (or refined) MV may be obtained by searching around the initial motion (1302) of the current CU (1304) within a [-8, +8] pixel search range in a reference frame (1310). The better MV may be determined based on a reference block indicated by the better MV in the reference frame (1310). Here, the difference (or TM cost) between the reference template (1312) of the reference block and the current template (1308) of the current block (1304) is minimized in the search range. For example, the search step size may be determined by an adaptive motion vector range (AMVR) mode, and the TM may be cascaded with a bilateral matching process.
[0130] In one example, non-adjacent spatial merge candidates may be provided. The non-adjacent spatial merge candidates may be inserted after a temporal MV predictor (TMVP) in a regular merge candidate list. An example pattern (1400) of spatial merge candidates may be shown in FIG. 14. As shown in FIG. 14, the pattern (1400) may include adjacent spatial merge candidates 1-5 and non-adjacent spatial merge candidates 6-23 for a current coding block (1402). The distance between the non-adjacent spatial merge candidates and the current coding block (1402) may be based on the width and / or height of the current coding block (1402).
[0131] Adaptive reordering of merge candidates with template matching (ARMC) can be provided. ARMC can be applied to normal merge mode, template matching (TM) merge mode, and affine merge mode (except SbTMVP candidates). For TM merge mode, merge candidates can be reordered before the refinement process. After the merge candidate list is constructed, the merge candidates can be divided into several subgroups. The subgroup size for each subgroup can be set to any number, such as 5. The merge candidates in each subgroup can be reordered in ascending order according to the cost value based on template matching. For simplicity, the merge candidates in the last but not the first subgroup may not be reordered. For subblock-based merge candidates with a subblock size equal to Wsub×Hsub, the top template can include several subtemplates with a size of Wsub×1, and the left template can include several subtemplates with a size of 1×Hsub. Wsub may be the width of the subblock, and Hsub may be the height of the subblock.
[0132] An exemplary derivation of sub-block-based merging candidates may be shown in FIG. 15. As shown in FIG. 15, a current block (1502) may be included in a current picture (1504). The current block (1502) may include sub-blocks A-G in a first row and a first column. The current block (1502) may include a template (1506) adjacent to a top edge and a left edge of the current block (1502). The current block (1502) may include a co-located block (1508) in a reference picture (1510). The co-located block (1508) may include sub-blocks A-G in a first row and a first column that correspond to the sub-blocks A-G in the current block (1502). Motion information (e.g., affine motion vectors) of the sub-blocks A-G in the first row and the first column of the current block (1502) may be used to derive reference samples of a sub-template (or sub-reference template) of the co-located block (1508). For example, motion information of sub-blocks A, E, F, and G of the current block (1502) can be applied to derive reference samples of sub-templates located adjacent to the left sides of sub-blocks A, E, F, and G of the co-located block (1508). The sub-templates adjacent to the left sides of sub-blocks A, E, F, and G of the co-located block (1508) can form a left reference template of the co-located block (1508). Motion information of sub-blocks A, B, C, and D of the current block (1502) can be applied to derive reference samples of sub-templates located adjacent to the top sides of sub-blocks A, B, C, and D of the co-located block (1508). The sub-templates adjacent to the top sides of sub-blocks A, B, C, and D of the co-located block (1508) can further form a top reference template of the co-located block (1508).
[0133] Non-adjacent candidates and HMVP candidates can be put into the merge candidate list after adjacent candidates and TMVP candidates based on a predefined traversal order as in ECM and EE2. Template matching based merge candidate list construction (TM-MCLC) can be provided to put non-adjacent candidates and HMVP candidates into the merge candidate list after adjacent candidates and TMVP candidates but in ascending order of template matching cost. All available non-adjacent motion vector predictors (MVPs) and history-based motion vector predictors (HMVPs) can be collected into groups. The TM cost associated with each candidate in the group can be derived in a similar manner as ARMC. Furthermore, all candidates in the group can be sorted in ascending order based on the corresponding TM cost. Finally, non-adjacent candidates and HMVP candidates can be put into the merge candidate list based on ascending order of template matching cost. Adjacent MVP in ECM software as in TM-MCLC can be further extended with more spatial and non-adjacent temporal locations. An example pattern (1600) of MVP locations for a current block (1608) may be shown in Figure 16. As shown in Figure 16, the pattern (1600) may include 18 locations (1602) for non-adjacent spatial MVPs in ECM-2.0, an additional (or newly added) 32 non-adjacent spatial locations (or MVPs) (1604), and 12 non-adjacent temporal locations (or MVPs) (1606), where the non-adjacent temporal MVP locations may be located within the same reference frame as adjacent TMVPs.
[0134] MV candidate type-based ARMC can be used to reorder merge candidates in candidate types such as TMVP, NA-MVP, etc. based on the TM cost value. Then, when the merge candidate list is constructed, M candidates can be selected from the reordered candidates based on the candidate type. M can vary depending on the candidate type. For example, M=1 for TMVP type and M=9 for NA-MVP type. Some candidate types can add more merge candidates to perform the reordering and selection. For example, TMVP candidates derived from different co-located positions including bottom-right position and center position can be reordered together, and one candidate can be selected from the reordered TMVP candidates.
[0135] Still referring to FIG. 16, a total of 62 merge candidates can be applied for non-adjacent spatial merge candidate list construction. The 62 merge candidates can be put into groups by sorting the corresponding TM costs in ascending order. Thus, a complex sorting operation is required to sort the 62 merge candidates. Furthermore, to further improve the compression efficiency, extended merge candidates may be proposed in the merge candidate list on top of the ECM software. After adding the extended merge candidates, the size of the merge candidate list will grow rapidly, and the entropy coding of the large merge candidate index may not be very efficient.
[0136] In the present disclosure, a merge candidate list for a current block may be generated based on available merge candidates. For example, non-adjacent spatial merge candidates and / or other merge candidates of the current block may be included to generate a merge candidate list. The non-adjacent spatial merge candidates and / or other merge candidates may be divided into multiple subgroups.
[0137] For each subgroup, the merge candidates within the respective subgroup may be sorted in a certain order (e.g., ascending order) based on a parameter (e.g., cost value). For example, the merge candidates within each subgroup may be sorted in ascending order based on the corresponding TM cost of the merge candidates. The subgroups may be further reordered within the merge candidate list to generate a reordered merge candidate list. In one example, the subgroups may be reordered within the merge candidate list based on a characteristic parameter (e.g., characteristic cost value) in ascending order. The characteristic cost value of the subgroup may be a minimum TM cost of the subgroup, a median TM cost of the subgroup, an average TM cost of the subgroup, etc.
[0138] In an embodiment, the non-adjacent spatial merge candidates can be the non-adjacent spatial merge candidates shown in FIG. 16. The non-adjacent spatial merge candidates can be classified (or divided) into multiple subgroups, such as three subgroups. The first subgroup can include non-adjacent spatial MVPs (or candidates) at positions (1602). As shown in FIG. 16, the non-adjacent spatial MVPs can be located along angles of π / 4, π / 2, 3π / 4, π, and 5π / 4 with respect to a horizontal axis (e.g., X-axis). The second subgroup can include newly added non-touching spatial MVPs at positions (1604). As shown in FIG. 16, the newly added non-adjacent MVPs can be located along angles of π / 4, 3π / 8, π / 2, 5π / 8, 3π / 4, 7π / 8, π, 9π / 8, and 5π / 4 with respect to the horizontal axis. A third subgroup may, for example, include non-adjacent temporal MVPs at positions (1606).
[0139] All merge candidates for each subgroup may be sorted in an order, such as ascending order, based on the TM cost of the merge candidates in the respective subgroup. The respective TM cost value of each merge candidate may be determined based on the difference between the current template (or adjacent neighboring samples) of the current block and the reference template (or adjacent neighboring samples) of the corresponding merge candidate. Exemplary current and reference templates may be shown in FIG. 13. The TM cost may be calculated based on any of the mean square error (MSE), mean absolute difference (MAD), sum of absolute difference (SAD), sum of absolute transformed difference (SATD), partial SAD, etc.
[0140] In an embodiment, the subgroups of candidates in the merge candidate list can be arranged in the merge candidate list in a predefined order, which can be signaled in the bitstream, such as in an SPS, PPS, picture header, and / or slice header.
[0141] In one embodiment, subgroups of candidates in the merge candidate list can be reordered in the merge candidate list. The subgroups can be reordered according to the corresponding TM cost (or characteristic TM cost) of each subgroup.
[0142] In one example, the minimum TM cost for each subgroup can be used to determine the order of non-adjacent spatial merge candidate list construction. Thus, the respective minimum TM cost for each subgroup can be determined first. The subgroups can be sorted in ascending order based on their minimum TM cost. For example, as shown in FIG. 16, the non-adjacent spatial merge candidate list can include three subgroups. If the minimum TM cost of the third subgroup is less than the minimum TM cost of the second subgroup, and the minimum TM cost of the second subgroup is less than the minimum TM cost of the first subgroup, the three subgroups can be arranged in order as subgroup #3<subgroup #2<subgroup #1. This means that the third subgroup can be arranged first in the non-adjacent spatial merge candidate list. The second subgroup can be arranged after the third subgroup, and the first subgroup can be arranged after the second subgroup in the non-adjacent spatial merge candidate list.
[0143] In one example, the median TM cost for each subgroup can be used to determine the order of non-adjacent spatial merge candidate list construction. The subgroups can be reordered in an order, such as ascending order, based on the median TM cost of each subgroup.
[0144] In one example, if the size of the subgroups is greater than 1, an average value of TM costs, such as the first two smallest TM costs for each subgroup, can be applied to determine the order of non-adjacent spatial merge candidate list construction. The subgroups can be sorted in order, such as ascending order, based on the average value of the first two smallest TM costs for each subgroup.
[0145] In one example, for each subgroup, a median TM cost of a subset of TM costs, such as the first n smallest TM costs, can be applied to determine the order of non-adjacent spatial merge candidate list construction. In one example, if the size of the subgroup is greater than 2, the median TM cost of the subset of TM costs is utilized, where n can be a positive integer greater than or equal to 2. The subgroups can be sorted in order, such as ascending order, based on the median TM cost of the first n smallest TM costs of each subgroup.
[0146] In this disclosure, the merge candidate list for the current block may be further constructed based on at least one of: (1) a spatial motion vector (MV) predictor from spatial neighboring blocks of the current block's neighboring blocks; (2) a temporal MV predictor from co-located blocks of the current block; (3) a history-based MV predictor from a first-in-first-out (FIFO) table; (4) a pairwise average MV predictor; or (5) a zero MV.
[0147] The merge candidates in the merge candidate list can be further divided into multiple groups (or subgroups). For example, the merge candidates in the merge candidate list can be divided into multiple groups based on the same number of merge candidates, a predefined number of merge candidates, or the same type of merge candidates. For example, a first group can be formed based on a first type of merge candidates, such as spatial MV predictors from spatial neighboring blocks of the neighboring blocks of the current block. A second group can be formed based on a second type of merge candidates, such as temporal MV predictors from co-located blocks of the current block.
[0148] Before the merge candidate list construction, for the merge candidates in the merge candidate list, e.g., all the merge candidates, a TM procedure may be performed to obtain the TM costs of the merge candidates. The order of the merge candidate list construction for each group may be determined according to the corresponding TM costs of the respective groups. For example, the TM costs of the merge candidates in each group may be determined first. The merge candidates in each group may be reordered based on the TM costs of the merge candidates. The groups may further be reordered in the merge candidate list by an order (e.g., ascending order) based on the corresponding TM cost (or characteristic TM cost) of each group.
[0149] In an embodiment, the minimum TM cost for each group can be applied to determine the order of merge candidate list construction. Thus, the respective minimum TM cost for each group can be determined first. The groups can be sorted in ascending order based on the minimum TM cost. For example, the merge candidates in the merge candidate list can be divided into three groups. If the minimum TM cost of the third group is less than the minimum TM cost of the second group, and the minimum TM cost of the second group is less than the minimum TM cost of the first group, the third group can be placed first in the merge candidate list. The second group can be placed after the third group, and the first group can be placed after the second group in the merge candidate list.
[0150] In one embodiment, the median TM cost for each group can be applied to determine the order of merge candidate list construction. The groups can be sorted in order, such as ascending order, based on the median TM cost of each group.
[0151] In one embodiment, if the size of the groups is greater than 1, an average value of TM costs, such as the first two smallest TM costs, for each group can be applied to determine the order of merge candidate list construction. The groups can be sorted in order, such as ascending order, based on the average value of the first two smallest TM costs of each group.
[0152] In an embodiment, for each group, a median TM cost of a subset of the TM costs, such as the first n smallest TM costs, can be applied to determine the order of merge candidate list construction. For example, if the size of the group is greater than 2, the median TM cost of the subset of TM costs can be applied, where n can be a positive integer greater than or equal to 2. The groups can be sorted in order, such as ascending order, based on the median TM cost of the first n smallest TM costs of each group.
[0153] FIG. 17 shows a flow chart outlining an exemplary decoding process (1700) according to some embodiments of the present disclosure. FIG. 18 shows a flow chart outlining an exemplary encoding process (1800) according to some embodiments of the present disclosure. The proposed processes may be used separately or in combination in any order. Furthermore, each of the processes (or embodiments), 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 on a non-transitory computer-readable medium.
[0154] The operations of the processes (e.g., 1700 and 1800) may be combined or arranged in any quantity or order as desired. In embodiments, two or more of the operations of the processes (e.g., 1700 and 1800) may be performed in parallel.
[0155] The processes (e.g., (1700) and (1800)) can be used in the reconstruction and / or encoding of blocks to generate a prediction block for a block being reconstructed. In various embodiments, the processes (e.g., (1700) and (1800)) are performed by processing circuitry, such as processing circuitry in terminal devices (310), (320), (330) and (340), processing circuitry performing the functions of a video encoder (403), processing circuitry performing the functions of a video decoder (410), processing circuitry performing the functions of a video decoder (510), processing circuitry performing the functions of a video encoder (603), etc. In some embodiments, the processes (e.g., (1700) and (1800)) are implemented with software instructions, such that the processing circuitry performs the processes (e.g., (1700) and (1800)) when the processing circuitry executes the software instructions.
[0156] As shown in Figure 17, the process (1700) may start at (S1701) and proceed to (S1710), where coded information of a current block and neighboring blocks of the current block in a current picture may be received from a coded video bitstream.
[0157] At (S1720), a list of merging candidates for the current block may be generated based on the neighboring blocks of the current block.
[0158] At (S1730), the list of merging candidates for the current block may be divided into a plurality of subgroups, each of which may include one or more merging candidates, and the one or more merging candidates may be ordered within each subgroup by a respective TM cost associated with each of the one or more merging candidates.
[0159] At (S1740), the current block may be reconstructed based on a merging candidate selected from the list of merging candidates for the current block.
[0160] In the process (1700), the subgroups in the list of merge candidates may be further reordered based on respective TM cost values associated with each of the subgroups.
[0161] To reorder the subgroups in the list of merge candidates, a TM cost value associated with each of the subgroups may first be determined. The subgroups in the list of merge candidates may be further reordered based on an ascending order of the TM cost values associated with the subgroups. Thus, a first subgroup of the subgroups in the reordered list of merge candidates may be associated with a minimum TM cost value of the TM cost values.
[0162] To determine a respective TM cost value associated with each of the plurality of subgroups, a plurality of TM cost values of the one or more merging candidates in a first subgroup of the plurality of subgroups may be determined. Each of the TM cost values may be associated with a difference between adjacent neighboring samples of a current block and adjacent neighboring samples of a respective merging candidate in the first subgroup. The one or more merging candidates in the first subgroup of the plurality of subgroups may be reordered based on an ascending order of the plurality of TM cost values of the one or more merging candidates in the first subgroup such that a first merging candidate in the reordered first subgroup has a smallest TM cost value.
[0163] In one embodiment, a TM cost value associated with the first of the plurality of subgroups may be determined as the smallest TM cost value of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0164] In one embodiment, a TM cost value associated with the first subgroup of the plurality of subgroups may be determined as a median TM cost value of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0165] In one embodiment, a TM cost value associated with the first of the plurality of subgroups may be determined as a median TM cost value of a plurality of minimum TM cost values of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0166] In one embodiment, the TM cost value associated with the first of the plurality of subgroups may be determined as the average of the first two smallest TM cost values of the plurality of TM cost values of the one or more merging candidates in the first subgroup.
[0167] In the process (1700), the list of merge candidates for the current block can be generated based on at least one of a spatial motion vector (MV) predictor from spatial neighboring blocks of the current block's neighboring blocks, a temporal MV predictor from a co-located block of the current block, a history-based MV predictor from a first-in-first-out (FIFO) table, a pairwise average MV predictor, a zero MV, a non-adjacent MV predictor from a non-adjacent spatial neighboring block of the current block's neighboring blocks, or a non-adjacent temporal MV predictor of the current block.
[0168] Based on the list of merge candidates including non-adjacent MV predictors and non-adjacent temporal MV predictors, the list of merge candidates can be divided into a first subgroup including a first group of non-adjacent MV predictors positioned along angles π / 4, π / 2, 3π / 4, π, and 5π / 4 with respect to the horizontal axis. The list of merge candidates can also be divided into a second subgroup including a second group of non-adjacent MV predictors positioned along angles π / 4, 3π / 8, π / 2, 5π / 8, 3π / 4, 7π / 8, π, 9π / 8, and 5π / 4 with respect to the horizontal axis.
[0169] The list of merging candidates can be further divided into a third subgroup that includes non-adjacent temporal MV predictors.
[0170] In some embodiments, the list of merge candidates may be divided into multiple subgroups such that each of the multiple subgroups may contain one of the same number of merge candidates, a predefined number of merge candidates, or the same type of merge candidates.
[0171] After (S1740), the process proceeds to (S1799) and ends.
[0172] The process 1700 may be adapted as desired. Steps in the process 1700 may be modified and / or omitted. Additional steps may be added. Any suitable order of performance may be used.
[0173] As shown in Figure 18, the process (1800) may start at (S1801) and proceed to (S1810), where a list of merging candidates for the current block may be generated based on neighboring blocks of the current block in the current picture.
[0174] In (S1820), the list of merging candidates for the current block may be divided into a plurality of subgroups, each of which may include one or more merging candidates.
[0175] At (S1830), the subgroups in the list of merge candidates may be reordered based on respective TM cost values associated with each of the subgroups.
[0176] In (S1840), prediction information for the current block may be generated based on a merging candidate selected from the reordered list of merging candidates for the current block.
[0177] Thereafter, the process proceeds to (S1899) and ends.
[0178] The process 1800 may be adapted as desired. Steps in the process 1800 may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0179] 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.
[0180] Computer software may be coded using any suitable machine code or computer language and may be subject to assembly, compilation, linking, or similar mechanisms to produce code containing instructions that are executable by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., either directly, or through interpretation, microcode execution, etc.
[0181] The instructions may be executed on various types of computers or components thereof including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0182] 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 the configuration of components should be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (1900).
[0183] 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), or 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).
[0184] 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).
[0185] The computer system (1900) may also include some type of human interface output device. Such human interface output devices may stimulate one or more of the human user's senses, for example, through tactile 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 means such as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0186] The computer system (1900) may also include human accessible storage 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.
[0187] 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.
[0188] 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, WLAN, 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 CANBus, etc. Some networks typically require an external network interface adapter that is attached to some kind of general purpose data port or peripheral bus (1949) (e.g., a USB port on the computer system (1900)). Others are typically 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 certain CANbus devices), or bidirectional, for example, to other computer systems using local or wide area digital networks. With each of these networks and network interfaces as described above, certain protocols and protocol stacks may be used.
[0189] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (1940) of the computer system (1900).
[0190] 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 certain 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), and 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 a graphics adapter 1950. Architectures for peripheral buses include PCI, USB, and the like.
[0191] 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.
[0192] 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.
[0193] By way of example and not limitation, a computer system having the architecture (1900), and in particular the core (1940), can provide functionality as a result of the processor (including 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 some type of storage of the core (1940) of a non-transitory nature such as mass storage (1947) or ROM (1945) internal to the core. Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1940). The computer readable media can include one or more memory devices or chips depending on the particular needs. The software can cause the core (1940) and in particular the processors therein (including CPU, GPU, FPGA, etc.) to execute certain processes or certain specific portions thereof described herein, including defining data structures stored in RAM (1946) and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., an accelerator (1944)), which may operate in place of or together with software to perform particular processes or portions of particular processes described herein. Reference to software includes logic, and vice versa, as appropriate. Reference to a computer-readable medium may include circuitry (e.g., an integrated circuit (IC)) that stores software for execution, circuitry that embodies logic for execution, or both, as appropriate. The present disclosure encompasses any suitable combination of hardware and software.
[0194] Appendix A: Acronyms 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 Areas SSD: solid-state drive IC: Integrated Circuit CU: Coding Unit
[0195] While this disclosure has described several exemplary embodiments, there are alterations, substitutions, and various substitute equivalents, which fall within the scope of this disclosure. Thus, it will be appreciated that those skilled in the art will be able to devise many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are thus within the spirit and scope of the present disclosure.
Claims
1. 1. A method of video decoding performed by a video decoder, comprising: receiving coded information of a current block and neighboring blocks of the current block in a current picture from a coded video bitstream; generating a list of merging candidates for a current block based on the neighboring blocks of the current block; dividing the list of merging candidates for the current block into a plurality of subgroups, each of the plurality of subgroups including one or more merging candidates, the one or more merging candidates being ordered within each subgroup by a respective template matching (TM) cost associated with each of the one or more merging candidates; determining a respective TM cost value associated with each of the plurality of subgroups; reordering the subgroups in the list of merge candidates based on an ascending order of the TM cost values associated with the subgroups; reconstructing the current block based on a merging candidate selected from the list of merging candidates for the current block; Determining the respective TM cost values further comprises: determining a plurality of template matching (TM) cost values of the one or more merging candidates in a first subgroup of the plurality of subgroups, each of the TM cost values being related to a difference between an adjacent neighborhood sample of a current block and an adjacent neighborhood sample of a respective merging candidate in the first subgroup; reordering the one or more merge candidates in the first subgroup of the plurality of subgroups based on an ascending order of the plurality of TM cost values of the one or more merge candidates in the first subgroup, such that a first merge candidate in the reordered first subgroup has a smallest TM cost value. method.
2. Determining the respective TM cost values further comprises: determining the TM cost value associated with the first subgroup of the plurality of subgroups as a minimum TM cost value of the plurality of TM cost values of the one or more merge candidates in the first subgroup. The method of claim 1.
3. Determining the respective TM cost values further comprises: determining the TM cost value associated with the first subgroup of the plurality of subgroups as a median TM cost value of the plurality of TM cost values of the one or more merging candidates in the first subgroup. The method of claim 1.
4. Determining the respective TM cost values further comprises: determining the TM cost value associated with the first subgroup of the plurality of subgroups as a median TM cost value of a plurality of minimum TM cost values of the plurality of TM cost values of the one or more merging candidates in the first subgroup. The method of claim 1.
5. Determining the respective TM cost values further comprises: determining the TM cost value associated with the first subgroup of the plurality of subgroups as an average of first two smallest TM cost values of the plurality of TM cost values of the one or more merge candidates in the first subgroup. The method of claim 1.
6. Generating the list of merge candidates includes: a spatial motion vector (MV) predictor from spatial neighboring blocks of the neighboring blocks of the current block; A temporal MV predictor from the current block's co-located block; History-based MV predictor from a first-in-first-out (FIFO) table; Pairwise average MV predictor; Zero MV; non-adjacent MV predictors from non-adjacent spatial neighbors of the neighboring blocks of the current block; or Non-adjacent temporal MV predictor of the current block generating the list of merging candidates for the current block based on at least one of The method of claim 1.
7. The dividing step further comprises: based on the list of merging candidates including the non-adjacent MV predictors and the non-adjacent temporal MV predictors, divide the list of merging candidates into first subgroups including first groups of the non-adjacent MV predictors positioned along angles of π / 4, π / 2, 3π / 4, π, and 5π / 4 with respect to a horizontal axis; dividing the list of merging candidates into second subgroups including a second group of the non-adjacent MV predictors located along angles of π / 4, 3π / 8, π / 2, 5π / 8, 3π / 4, 7π / 8, π, 9π / 8, and 5π / 4 with respect to a horizontal axis; The method according to claim 6.
8. The dividing step further comprises: dividing the list of merging candidates into a third subgroup including the non-adjacent temporal MV predictors. The method according to claim 7.
9. The dividing step further comprises: dividing the list of merge candidates into a plurality of subgroups such that each of the plurality of subgroups includes one of the same number of merge candidates, a predefined number of merge candidates, or the same type of merge candidates. The method of claim 1.
10. 10. Apparatus comprising a processing circuit, the processing circuit being configured to perform a method according to any one of claims 1 to 9.
11. A computer program product for causing a processor to carry out a method according to any one of claims 1 to 9.
12. 1. A method of video encoding performed in a video encoder, the method comprising: generating encoded information comprising a predictive encoding of input data utilizing reference data; The reference data is generated by a local decoder operation with a block earlier than the input data as a current block, the local decoder operation comprising: receiving encoded information of a current block and neighboring blocks of the current block in a current picture; generating a list of merging candidates for a current block based on the neighboring blocks of the current block; dividing the list of merging candidates for the current block into a plurality of subgroups, each of the plurality of subgroups including one or more merging candidates, the one or more merging candidates being ordered within each subgroup by a respective template matching (TM) cost associated with each of the one or more merging candidates; determining a respective TM cost value associated with each of the plurality of subgroups; reordering the subgroups in the list of merge candidates based on an ascending order of the TM cost values associated with the subgroups; reconstructing the current block based on a merging candidate selected from the list of merging candidates for the current block; Determining the respective TM cost values further comprises: determining a plurality of template matching (TM) cost values of the one or more merging candidates in a first subgroup of the plurality of subgroups, each of the TM cost values being related to a difference between an adjacent neighborhood sample of a current block and an adjacent neighborhood sample of a respective merging candidate in the first subgroup; reordering the one or more merge candidates in the first subgroup of the plurality of subgroups based on an ascending order of the plurality of TM cost values of the one or more merge candidates in the first subgroup, such that a first merge candidate in the reordered first subgroup has a smallest TM cost value. method.
13. 13. An apparatus having a processing circuit, the processing circuit configured to perform the method of claim 12.
14. A computer program product causing a processor to carry out the method of claim 12.
Citation Information
Patent Citations
Sub-prediction unit-based advanced temporal motion vector prediction
JP2018506908A
Template-based inter-prediction technique based on encoding and decoding latency reduction
JP2021518059A
Method and Apparatus of Reordering Motion Vector Prediction Candidate Set for Video Coding
US20200068218A1
Template-based inter prediction techniques based on encoding and decoding latency reduction
US20200374513A1