Video coding method and apparatus
Patent Information
- Application Number
- JP2025003194
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-10-05
- Filing Date
- 2025-01-09
- Publication Date
- 2025-12-15
- Estimated Expiration
- 2040-10-07
AI Technical Summary
Existing video encoding and decoding technologies face challenges in efficiently compressing and decompressing video data, particularly in reducing redundancy and managing bandwidth and storage requirements effectively.
The implementation of a method for video decoding that utilizes geometric partitioning mode (GPM) to partition blocks into two partitions, each with its own predictor, and calculates weighting factors based on a formula that converts weighting indices into factors, allowing for efficient reconstruction of samples.
This approach enhances coding efficiency by allowing for precise control of weighting factors, leading to improved compression ratios and reduced computational complexity in video decoding processes.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Background technology]
[0001] Incorporation by Reference This application claims priority to U.S. Patent Application No. 17 / 063,149, entitled "Video Coding Method and Apparatus," filed October 5, 2020, which in turn claims priority to U.S. Provisional Application No. 62 / 953,457, entitled "GEO Inter-Block Simplification," filed December 24, 2019, and U.S. Provisional Application No. 62 / 955,825, entitled "Lookup Table Free Method of Weighting Index for Weight Conversion for GEO Inter-Block," filed December 31, 2019. The entire disclosures of the prior applications are incorporated herein by reference.
[0002] Technical Field This disclosure describes embodiments generally relating to video coding.
[0003] background The background discussion provided in this application is intended to generally present the context of the present disclosure. Work originating from the current inventors is not admitted, expressly or impliedly, as prior art to the present disclosure to the extent that such work is described in this background section and in any manner of description that may not have been given the status of prior art at the time of filing.
[0004] Video encoding and decoding can be performed using inter-picture prediction together with motion compensation. Uncompressed digital video can include a sequence of pictures, each having spatial dimensions of, say, 1920x1080 luminance samples and associated chrominance samples. The sequence of pictures can be, say, 60 times per second. It is possible for a video to have a fixed or variable picture rate (informally known as the frame rate) of 1000x1080 pictures, i.e. 60Hz. Uncompressed video has significant bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luma sample resolution at a 60Hz frame rate) with 8 bits per sample requires a bandwidth approaching 1.5Gbit / s. One hour of such video requires more than 600GB of storage space.
[0005] One of the goals of video encoding and decoding is to be able to reduce redundancy in the input video signal through compression. Compression can help reduce the bandwidth or storage space requirements, in some cases by more than one order of magnitude. Both lossless and non-lossless compression, as well as a combination of both, can be used. Lossless compression refers to techniques where an exact copy of the original signal can be reconstructed from the compressed original signal. When using non-lossless compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signals is small enough to make the reconstructed signal useful for the intended application. For video, non-lossless compression is widely used. The amount of distortion that is tolerated depends on the application; for example, a user of a consumer streaming application may tolerate higher distortion than a user of a television distribution application. The achievable compression ratio can reflect that: the higher the acceptable / tolerable distortion, the higher the compression ratio can be.
[0006] Video encoders and decoders may utilize techniques from a number of broad categories, including, for example, motion compensation, transform, quantization, and entropy coding.
[0007] Video codec technologies may include a technique known as inter prediction. For each inter predicted coding unit (CU), the motion parameters include a motion vector, a reference picture index and a reference picture list usage index, as well as additional information used for inter predicted sample generation. The motion parameters may be signaled in an explicit or implicit manner. If a CU is coded in skip mode, it is associated with one prediction unit (PU) and does not have any significant residual coefficients, any coded motion vector deltas or reference picture indexes. A merge mode is specified, whereby the motion parameters for the current CU are obtained from neighboring CUs, including spatial and temporal candidates, and additional schedules introduced, for example, in VVC. The merge mode may be applied to any inter predicted CU, not just for skip mode. An alternative to the merge mode is explicit transmission of the motion parameters. The motion vectors, the corresponding reference picture indexes in each reference picture list, the reference picture list usage flag, and other necessary information are explicitly signaled for each CU.
[0008] Some of the inter-prediction coding tools include: Enhanced merge prediction, Merge mode with motion vector difference (MMVD), Advanced Motion Vector Prediction Mode (AMVP) with Symmetric Motion Vector Difference (MVD) signaling, Affine Motion Compensation prediction, Sub-block based Temporal Motion Vector Prediction (SbTMVP), Adaptive Motion Vector Resolution (AMVR), Motion Field Storage (1 / 16 luma sample MV storage, 8x8 motion field compression), Bidirectional Prediction with Weighted Averaging (BWA), Bidirectional Optical Flow (BDOF), Decoder-side Motion Vector Refinement (DMVR), Triangular Partitioning Mode (TPM), Combined Inter and Intra Prediction (CIIP).
[0009] In some cases, the merge candidate list is constructed by including five types of candidates in this order: (1) spatial MVP from spatially adjacent CUs; (2) temporal MVP from co-located CUs; (3) history-based MVP from a FIFO table; (4) pairwise average MVP; and (5) zero MV.
[0010] The size of the merge list is signaled in the slice header, and the maximum allowed size of the merge list is possibly e.g. 6. For each CU code in merge mode, the index of the best merge candidate is coded using Truncated Unary Binarization (TU). The first bin of the merge index is coded using the context, while bypass coding is used for the other bins.
[0011] FIG. 1A shows exemplary positions of spatial merge candidates. In some cases, up to four merge candidates can be selected from among the candidates located at the positions shown in FIG. 1A. The order of selection is B1, A1, B0, A0, and B2. The candidate at position B2 is considered only if none of the CUs at positions A0, B0, B1, or A1 are available (e.g., the CU at position A0 belongs to another slice or tile) or is not inter-coded. After the candidate at position A1 is added to the merge candidate list, the addition of the remaining candidates is subject to a redundancy check that ensures that candidates with the same motion information are excluded from the merge candidate list, thereby improving coding efficiency.
[0012] FIG. 1B shows candidate pairs considered for redundancy check of spatial merge candidates. In order to reduce computational complexity, not all possible candidate pairs are considered in the redundancy check. Instead, only pairs linked by arrows in FIG. 1B are considered, and a candidate is only added to the merge candidate list if the corresponding candidate used for redundancy check does not have the same motion information.
[0013] FIG. 1C illustrates motion vector scaling for a temporal merge candidate. In some cases, only one temporal merge candidate can be added to the merge candidate list. In particular, in the derivation of this temporal merge candidate, a scaled motion vector is derived based on the co-located CU belonging to the co-located reference picture. The reference picture list used for the derivation of the co-located CU is explicitly signaled in the slice header. The scaled motion vector for the temporal merge candidate is obtained as shown by the dotted line in FIG. 1C. The scaled motion vector is derived from the motion vector of the co-located CU using picture order count (POC) distances tb and td, where tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate can be set equal to zero.
[0014] FIG. 1D shows an example location of temporal merge candidates. A temporal merge candidate is selected between the CUs in positions C0 and C1. If the CU in position C0 is not available, is not inter-coded, or is outside the current row of the CTU, the CU in position C1 is used. Otherwise, the CU in position C0 is used in the derivation of the temporal merge candidate. Summary of the Invention
[0015] Aspects of the disclosure provide a method and apparatus for video encoding / decoding. In some embodiments, a video encoding device includes a processing circuit.
[0016] According to an aspect of the disclosure, a video decoding method in a decoder is provided. In the method, prediction information of a current block of a current picture in a coded bitstream is decoded. The prediction information specifies a geometric partitioning mode (GPM) for the current block. The current block is partitioned into two partitions in the GPM mode. Each partition is associated with a respective predictor. A weighting index for a sample of the current block is determined based on a position of the sample. A weighting factor is calculated based on the weighting index of the sample according to a mathematical formula that converts the weighting index into a weighting factor. The sample is reconstructed based on the predictor and the weighting factor corresponding to the sample.
[0017] In an embodiment, a right shift operation is performed on the sum of the weighting index and the offset value, and the result of the right shift operation is clipped to be within a predetermined range.
[0018] In an embodiment, the offset value is based on a number of bits shifted by the right shift operation, and the number of bits shifted by the right shift operation is based on at least one of a weighting index and a size of a cosine table used to calculate the weighting index.
[0019] In an embodiment, an angle index and a distance index that define a division boundary between partitions of the current block are determined based on the GPM. A weighting index for the sample is determined based on the position of the sample, the angle index, and the distance index.
[0020] In an embodiment, a partition index is determined based on the angle index. A weighting factor is calculated based on the partition index.
[0021] In an embodiment, the formula is:
number
[0022] In an embodiment, the mathematical formula is a piecewise constant function that includes an initial value and a plurality of unit step functions, where the initial value is one of a minimum weighting factor value and a maximum weighting factor value, and the number of the plurality of unit step functions is equal to the total number of differential weighting factor values minus one.
[0023] Aspects of the present disclosure provide an apparatus configured to perform any one or combination of video decoding methods. In an embodiment, the apparatus includes a processing circuit that decodes prediction information for a current block of a current picture in a coded bitstream. The prediction information specifies a geometric partitioning mode (GPM) for the current block. The current block is partitioned into two partitions in the GPM mode. Each partition has a respective predictor associated therewith. The processing circuit determines weighting indexes for samples of the current block based on positions of the samples. The processing circuit calculates weighting factors based on the weighting indexes of the samples according to a formula that converts the weighting indexes to weighting factors. The processing circuit reconstructs the samples based on the predictors and weighting factors corresponding to the samples.
[0024] 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 one or combination of video decoding methods. [Brief description of the drawings]
[0025] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings.
[0026] [Figure 1A] 1 illustrates exemplary locations of spatial merge candidates.
[0027] [Figure 1B] 1 illustrates an example candidate pair considered in a redundancy check of spatial merge candidates.
[0028] [Figure 1C] 13 shows an example of motion vector scaling for temporal merge candidates.
[0029] [Figure 1D] 1 illustrates exemplary locations of temporal merge candidates.
[0030] [Diagram 2] 1 shows a schematic diagram of a simplified block diagram of a communication system according to an embodiment;
[0031] [Diagram 3] 1 shows a schematic diagram of a simplified block diagram of a communication system according to an embodiment;
[0032] [Figure 4] 2 shows a simplified block diagram schematic of a decoder according to an embodiment;
[0033] [Diagram 5] 1 shows a schematic diagram of a simplified block diagram of an encoder according to an embodiment;
[0034] [Figure 6] 4 shows a block diagram of an encoder according to another embodiment;
[0035] [Figure 7] 4 shows a block diagram of a decoder according to another embodiment;
[0036] [Figure 8A] 1 illustrates two exemplary triangular partitions according to an embodiment. [Figure 8B] 1 illustrates two exemplary triangular partitions according to an embodiment.
[0037] [Figure 9] 1 illustrates single-predictor motion vector selection for triangular partition mode according to some embodiments.
[0038] [Figure 10A] 1 illustrates an example weight map for luma and chroma according to some embodiments. [Figure 10B] 1 illustrates an example weight map for luma and chroma according to some embodiments.
[0039] [Figure 11] 1 illustrates an example geometric partitioning mode according to some embodiments of the present disclosure.
[0040] [Figure 12] 1 shows a flowchart outlining an exemplary process according to an embodiment.
[0041] [Figure 13] 1 shows a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0042] The present disclosure includes embodiments related to a geometric merge mode (GEO), which may also be referred to as a geometric partitioning mode (GPM). Embodiments include methods, apparatus, and non-transitory computer-readable storage media for improving GEO. Additionally, a block may refer to a prediction block, a coding block, or a coding unit.
[0043] I. Video Encoders and Decoders
[0044] FIG. 2 illustrates a simplified block diagram of a communication system (200) according to an embodiment of the present disclosure. The communication system (200) includes a plurality of terminal devices that can communicate with each other, for example, via a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). In the example of FIG. 2, the first pair of terminal devices (210) and (220) perform a unidirectional transmission of data. For example, the terminal device (210) can code video data (e.g., a stream of video pictures captured by the terminal device (210)) for transmission to the other terminal device (220) via the network (250). The encoded video data can be transmitted in the form of one or more coded video bitstreams. The terminal device (220) can receive the coded video data from the network (250), decode the coded video data to reconstruct the video picture, and display the video picture according to the reconstructed video data. One-way data transmission may be common in media serving applications, etc.
[0045] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) for bidirectional transmission of coded video data, which may occur, for example, during a video conference. With respect to the bidirectional transmission of data, for example, each of the terminal devices (230) and (240) may code video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (230) and (240) over the network (250). Each of the terminal devices (230) and (240) may also receive coded video data transmitted by the other of the terminal devices (230) and (240), may decode the coded video data to reconstruct the video pictures, and may display the video pictures on an accessible display device according to the reconstructed video data.
[0046] In the example of FIG. 2, the terminal devices (210), (220), (230), and (240) are shown as servers, personal computers, and smartphones, 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. The network (250) represents any number of networks that carry coded video data between the terminal devices (210), (220), (230), and (240), including, for example, wired (wired) and / or wireless communication networks. The communication network (250) may exchange data over circuit-switched and / or packet-switched channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of the present disclosure, the architecture and topology of the network (250) may not be important to the operation of the present disclosure, unless otherwise described below.
[0047] Figure 3 illustrates the placement of a video encoder and video decoder in a streaming environment as an example application of the disclosed subject matter, which is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, storage of compressed video on digital media (including CDs, DVDs, memory sticks, etc.), etc.
[0048] The streaming system may include a video source (301), e.g., a digital camera, and may include a capture subsystem (313) capable of generating a stream of, e.g., uncompressed video pictures (302). In one example, the stream of video pictures (302) includes samples captured by a digital camera. The stream of video pictures (302), depicted as a thick line to emphasize the larger amount of data when compared to the encoded video data (304) (or coded video bitstream), may be processed by an electronic device (320) that includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter as described in more detail below. The encoded video data (304) (or encoded video bitstream (304)), depicted as thin lines to emphasize the smaller amount of data when compared to the stream of video pictures (302), can be stored in the streaming server (305) for future use. One or more streaming client subsystems, such as the client subsystems (306) and (308) of FIG. 3, can access the streaming server (305) to retrieve copies (307) and (309) of the encoded video data (304). The client subsystem (306) can include a video decoder (310), for example within the electronic device (330). The video decoder (310) can decode the incoming copy of the encoded video data (307) and generate an output stream of video pictures (311) that can be rendered on a display (312) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (304), (307), and (309) (e.g., a video bitstream) may be encoded according to a particular video coding / compression standard.Examples of these standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0049] It should be noted that the electronic devices (320) and (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown) and the electronic device (330) may include a video encoder (not shown).
[0050] 4 shows a block diagram of a video decoder (410) according to an embodiment of the present disclosure. The video decoder (410) may be included in an electronic device (430). The electronic device (430) may include a receiver (431) (e.g., receiving circuitry). The video decoder (410) may be used in place of the video decoder (310) in the example of FIG. 3.
[0051] The receiver (431) may receive one or more coded video sequences to be decoded by the video decoder (410); in the same or another embodiment, it may receive one coded video sequence at a time, where the decoding of each coded video sequence is independent of the other coded video sequences. The coded video sequences may be received from a channel (401), which may be a hardware / software link to a storage device that stores the coded video data. The receiver (431) may receive the coded video data together with other data, such as coded audio data and / or auxiliary data streams, which may be transferred using respective entities (not shown). The receiver (431) may separate the coded video sequences from the other data. To address network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420), hereafter referred to as the "parser (420)". In certain applications, the buffer memory (415) is part of the video decoder (410). In other cases, it may be outside the video decoder (410) (not shown). In yet another example, there may be a buffer memory (not shown) outside the video decoder (410), e.g. to deal with network jitter, and even another buffer memory (415) inside the video decoder (410), e.g. to handle playback timing. If the receiver (431) is receiving data from a store-and-forward device with sufficient bandwidth and controllability, or from a synchronous network, the buffer memory (415) may not be needed or may be small.For use in a best effort packet network such as the Internet, a buffer memory (415) may be required, which may be relatively large and may advantageously be adaptively sized and may be implemented at least in part in an operating system or similar element (not shown) outside the video decoder (410).
[0052] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (410) and potentially information for controlling a rendering device such as a rendering device (412) (e.g., a display screen) that is not an integral part of the electronic device (430) but may be coupled to the electronic device (430) as shown in FIG. 4. The control information for the rendering device may be in the form of supplemental enhancement information (SEI message) or video usability information (VUI) parameter set fragments (not shown). The parser (420) 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 effects, etc. The parser (420) 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 the 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 (420) can also extract from the coded video sequence information such as transform coefficients, quantization parameter values, motion vectors, etc.
[0053] The parser (420) is capable of performing an entropy decoding / parsing process on the video sequence received from the buffer memory (415) to generate symbols (421).
[0054] The reconstruction of the symbols (421) may include different units depending on the type of coded video picture or part thereof (e.g.: inter and intra pictures, inter and intra blocks) and other factors. Which units are included and how can be controlled by subgroup control information parsed by the parser (420) from the coded video sequence. The flow of such subgroup control information between the parser (420) and subsequent units is not depicted for clarity.
[0055] Beyond the functional blocks already mentioned, the video decoder (410) may be further conceptually subdivided into a number of functional units as described below. In a practical implementation operating 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 adequate.
[0056] The first unit is a scalar / inverse transform unit (451), which receives the quantized transform coefficients as well as control information (including the transform to use, block size, quantization factor, quantization scaling matrix, etc.) from the parser (420) as symbols (421). The scalar / inverse transform unit (451) can output blocks containing sample values that can be input to an aggregator (455).
[0057] In some cases, the output samples of the scalar / inverse transform (451) may relate to intra-coded blocks: i.e., blocks that do not use prediction information from a previously reconstructed picture, but are able to use prediction information from a previously reconstructed part of the current picture. Such prediction information may be provided by an intra picture prediction unit (452). In some cases, the intra picture prediction unit (452) generates blocks of the same size and shape of the block being reconstructed using already reconstructed surrounding information retrieved from a current picture buffer (458). The current picture buffer (458) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. The aggregator (455) adds, possibly on a sample-by-sample basis, the prediction information generated by the intra prediction unit (452) to the output sample information as provided by the scalar / inverse transform unit (451).
[0058] In other cases, the output samples of the scalar / inverse transform unit (451) may relate to a block that may be inter-coded and motion compensated. In such a case, the motion compensated prediction unit (453) may access the reference picture memory (457) to retrieve samples used for prediction. After motion compensating the retrieved samples according to the symbols (421) related to the block, these samples are added by the aggregator (455) to the output of the scalar / inverse transform unit (451) (in this case called residual samples or residual signals) to generate output sample information. The addresses in the reference picture memory (457) from which the motion compensated prediction unit (453) retrieves the prediction samples may be controlled by the motion vectors available to the motion compensated prediction unit (453), for example in the form of symbols (421) that may have X, Y, and reference picture components. Motion compensation may also include interpolation of sample values taken from a reference picture memory (457), motion vector prediction mechanisms, etc., where sub-sample accurate motion vectors are used.
[0059] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (456). Video compression techniques are controlled by parameters contained in the coded video sequence (also called coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420), but may include in-loop filter techniques that may be responsive to meta-information obtained during decoding of previous parts of the coded picture or coded video sequence (in decoding order) as well as to previously reconstructed loop filtered sample values.
[0060] The output of the loop filter unit (456) may be a sample stream that can be output to a rendering device (412) or stored in a reference picture memory (457) for use in future inter-picture prediction.
[0061] Once a given coded picture has been fully reconstructed, it can be used as a reference picture for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) can become part of the reference picture memory (457) and a new current picture buffer can be reallocated before starting the reconstruction of a future coded picture.
[0062] The video decoder (410) may perform decoding operations according to a given video compression technique in a standard such as ITU-T Rec. H.265. A coded video sequence may comply with the syntax specified by the video compression technique or standard used in the sense that the coded video sequence conforms to both the syntax of the video compression technique or standard and the profile as documented in the video compression technique or standard. Specifically, a profile may select a particular tool from all tools available in the video compression technique or standard as the only tool that may be used under that profile. Also required for compliance is that the complexity of the coded video sequence falls within a range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. The limits set by the level may be further limited by a hypothetical reference decoder (HRD) specification and metadata for HRD buffer management that may be signaled in the coded video sequence.
[0063] In an embodiment, the receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the coded video sequence. The additional data may be used by the video decoder (410) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0064] 5 shows a block diagram of a video encoder (503) according to an embodiment of the present disclosure. The video encoder (503) is included in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used in place of the video encoder (303) in the example of FIG. 3.
[0065] The video encoder (503) may receive video samples from a video source (501) (which in the example of FIG. 5 is not part of the electronic device (520)) capable of capturing video images to be coded by the video encoder (503). In another example, the video source (501) is part of the electronic device (520).
[0066] The video source (501) may provide a source video sequence to be coded by the video encoder (503) 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 serving system, the video source (501) may be a storage device that stores pre-prepared video. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a number of individual pictures that convey motion when viewed in sequence. The picture itself may be organized as a spatial array of pixels, each of which may contain one or more samples depending on the sampling structure, color space, etc. in use. Those skilled in the art will readily appreciate the relationship between pixels and samples. The following discussion focuses on examples.
[0067] According to an embodiment, the video encoder (503) is capable of coding and compressing pictures of a source video sequence into a coded video sequence (543) in real-time or under some other time constraint required by an application. Enforcing an appropriate coding rate is one function of the controller (550). In some embodiments, the controller (550) controls and is operatively coupled to other functional units as described below, the couplings of which are not depicted for clarity. Parameters set by the controller (550) may include rate control related parameters (picture skip, quantizer, lambda value for rate distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, maximum motion vector allowable reference area, etc. The controller (550) may be configured with other suitable functions associated with the video encoder (503) optimized for a particular system design.
[0068] In some embodiments, the video encoder (503) is configured to operate in a coding loop. As a simplified explanation, in one example, the coding loop can include a source coder (530) (e.g., responsible for generating symbols such as a symbol stream based on an input picture to be coded and reference pictures) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to generate sample data in a similar manner to that generated by the (remote) decoder (since any compression between the symbols and the coded video bitstream is lossless in the video compression techniques contemplated by the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-exact results independent of the location of the decoder (local or remote), the contents in the reference picture memory (534) are also bit-exact between the local and remote encoders. In other words, the predictor of the encoder "sees" exactly the same sample values as the reference picture samples that the decoder would "see" if it were to use prediction during decoding. This basic principle of reference picture synchronization (and the resulting drift if synchrony cannot be maintained, e.g. due to channel errors) is used in several related technologies as well.
[0069] The operation of the "local" decoder (533) may be the same as that of a "remote" decoder, such as the video decoder (410) already described in detail above in connection with Figure 4. However, with brief reference to Figure 4 as well, since symbols are available and the encoding / decoding of the symbols into a coded video sequence by the entropy coder (545) 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 (533).
[0070] An observation that can be made at this point is that any decoder technique other than analysis / entropy decoding that is present in the decoder must necessarily be present in the corresponding encoder, in substantially the same functional form. For this reason, the disclosed subject matter focuses on the operation of the decoder. A description of the encoder techniques can be omitted, since they are the inverse of the decoder techniques that have been described generically. Only in certain areas is a more detailed description required, which is given below.
[0071] During operation, the source coder (530), in some examples, may perform motion-compensated predictive coding, which predictively codes an input picture with reference to one or more previously coded pictures from a video sequence designated as “reference pictures.” In this manner, the coding engine (532) codes differences between pixel blocks of the input picture and pixel blocks of the reference pictures that may be selected as predictive references for the input picture.
[0072] The local video decoder (533) can decode the coded video data of pictures that can be designated as reference pictures based on the symbols generated by the source coder (530). The operation of the coding engine (532) can advantageously be a non-lossless process. If the coded video data can be decoded by a video decoder (not shown in FIG. 5), the reconstructed video sequence can typically be a replica of the source video sequence with some errors. The local video decoder (533) can repeat the decoding process that can be performed by the video decoder on the reference pictures and cause the reconstructed reference pictures to be stored in the reference picture cache (534). In this way, the video encoder (503) can locally store copies of reconstructed reference pictures that have common content as reconstructed reference pictures obtained by the far-end video decoder (assuming there are no transmission errors).
[0073] The predictor (535) can perform a prediction search for the coding engine (532). That is, for a new picture to be coded, the predictor (535) can search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or predefined metadata (reference picture motion vectors, block shapes, etc.), which may serve as suitable prediction references for the new picture. The predictor (535) can operate on a sample block-pixel block basis to find suitable prediction references. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (534).
[0074] The controller (550) may manage the coding operations of the source coder (530), including, for example, setting parameters and subgroup parameters used to encode the video data.
[0075] All outputs of the aforementioned functional units may be subjected to entropy coding in an entropy coder (545), which converts the symbols as produced by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.
[0076] The transmitter (540) can buffer the coded video sequence as produced by the entropy coder (545) and prepare it for transmission over a communication channel (560), which may be a hardware / software link to a storage device that stores the coded video data. The transmitter (540) can merge the coded video data from the video coder (503) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).
[0077] The controller (550) can manage the operation of the video encoder (503). During coding, the controller (550) can assign a particular coded picture type to each coded picture, which can affect the coding technique that can be applied to each picture. For example, a picture may be frequently assigned as one of the following picture types:
[0078] An intra picture (I-picture) is one that can be coded and decoded without using any other picture 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 are aware of these variations of I-pictures, as well as their respective uses and characteristics.
[0079] A predictive picture (P-picture) is one that can be coded 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.
[0080] Bidirectionally predicted pictures (B-pictures) are those that can be coded and decoded using intra- or inter-prediction, which uses at most two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predicted pictures can use more than two reference pictures and associated metadata for the reconstruction of a block.
[0081] A source picture is usually spatially subdivided into several sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples) and can be coded block by block. Blocks can be predictively coded with reference to other (already coded) blocks as determined by the coding assignment applied to the respective picture. For example, blocks of I pictures can be non-predictively coded or they can be predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of P pictures can be predictively coded with spatial or temporal prediction with reference to one previously coded reference picture. Blocks of B pictures can be predictively coded with spatial or temporal prediction with reference to one or two previously coded reference pictures.
[0082] The video encoder (503) may perform a coding operation according to a given video coding technique or standard, such as ITU-T Rec. H.265, in which the video encoder (503) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancies in the input video sequence. The coded video data may thus conform to a syntax specified by the video coding technique or standard being used.
[0083] In an embodiment, the transmitter (540) may transmit additional data along with the encoded video. The source coder (530) may include such data as part of the coded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data (redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.).
[0084] A video can be captured as multiple source pictures (video pictures) in a time sequence. Intra-picture prediction (often abbreviated as intra prediction) exploits spatial correlation in a given picture, and inter-picture prediction exploits correlation (temporal or other) between pictures. In one example, a particular picture under encoding / decoding, called the current picture, is partitioned into blocks. If a block in the current picture is similar to a reference block previously coded in the video and still buffered, the block in the current picture can be coded by a vector called a motion vector. A motion vector points to a reference block in a reference picture and can have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0085] In some embodiments, bi-prediction techniques can be used for inter-picture prediction. With bi-prediction techniques, two reference pictures are used, such as a first reference picture and a second reference picture, both preceding in decoding order (but potentially past and future, respectively, in display order) a current picture. 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.
[0086] Furthermore, to improve coding efficiency, it is possible to use merge mode techniques for inter-picture prediction.
[0087] 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 partitioned 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 CUs. For example, a CTU of 64×64 pixels can be partitioned into one CU of 64×64 pixels, 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 of the 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. In general, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. 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.
[0088] 6 shows a diagram of a video encoder (603) according to another embodiment of the present disclosure. The video encoder (603) 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 (603) is used in place of the video encoder (303) of the example of FIG. 3.
[0089] In an HEVC example, the video encoder (603) receives a matrix of sample values for a processing block, such as a predicted block of 8 by 8 samples. The video encoder (603) 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 to be coded in intra-mode, the video encoder (603) may use intra-prediction techniques to code the processing block into a coded picture; if the processing block is to be coded in inter-mode or bi-predictive mode, the video encoder (603) may use inter-prediction techniques or bi-prediction techniques, respectively, to code the processing block into a coded picture. In certain video coding techniques, the merge mode may be an inter-predictive picture sub-mode, in which case the motion vector is derived from one or more motion vector predictors without benefit of a coded motion vector component outside the predictor. In certain other video coding techniques, there may be motion vector components applicable to the current block. In one example, the video encoder (603) includes other components, such as a mode decision module (not shown) to determine the mode of the processing block.
[0090] In the example of FIG. 6, the video encoder (603) includes an inter-encoder (630), an intra-encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a generalized controller (621), and an entropy encoder (625) coupled together as shown in FIG. 6.
[0091] The inter encoder (630) 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., a block of a previous picture and a block in a subsequent picture), generate inter prediction information (e.g., a description of redundant information due to an inter coding technique, motion vectors, merge mode information), and calculate an inter prediction result (e.g., a prediction block) based on the inter prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that has been decoded based on the coded video information.
[0092] The intra encoder (622) is configured to receive samples of a current block (e.g., a processing block), possibly compare the block to previously coded blocks in the same picture, generate transformed and quantized coefficients, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). In one example, the intra encoder (622) also calculates an intra prediction result (e.g., a prediction block) based on the intra prediction information and a reference block in the same picture.
[0093] The general controller (621) is configured to determine general control data and control other components of the video encoder (603) based on the general control data. In one example, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, if the mode is intra mode, the general controller (621) controls the switch (626) to select intra mode results for use by the residual calculator (623) and controls the entropy encoder (625) to select intra prediction information and include the intra prediction information in the bitstream; if the mode is inter mode, the general controller (621) controls the switch (626) to select inter prediction results for use by the residual calculator (623) and controls the entropy encoder (625) to select inter prediction information and include the inter prediction information in the bitstream.
[0094] The residual calculator (623) is configured to calculate a difference (residual data) between the received block and a prediction result selected from the intra-encoder (622) or the inter-encoder (630). The residual encoder (624) is configured to operate on the residual data to encode the residual data and generate transform coefficients. In one example, the residual encoder (624) 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 (603) also includes a residual decoder (628). The residual decoder (628) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used by the intra-encoder (622) and the inter-encoder (630) as appropriate. For example, the inter-encoder (630) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (622) 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.
[0095] The entropy encoder (625) is configured to format a bitstream to include the encoded blocks. The entropy encoder (625) is configured to include various information in accordance with an appropriate standard, such as the HEVC standard. In one example, the entropy encoder (625) is configured to include general control data, selected prediction information (e.g., intra-prediction information or inter-prediction information), residual information, and other appropriate information in the bitstream. It should be noted that when coding blocks in a merged sub-mode of either the inter mode or the bi-prediction mode in accordance with the disclosed subject matter, the residual information is not present.
[0096] 7 shows a diagram of a video decoder (710) according to another embodiment of the present disclosure. The video decoder (710) is configured to receive coded pictures that are part of a coded video sequence and to decode the coded pictures to generate reconstructed pictures. In one example, the video decoder (710) is used in place of the video decoder (310) in the example of FIG. 3.
[0097] In the example of FIG. 7, the video decoder (710) includes an entropy decoder (771), an inter decoder (780), a residual decoder (773), a reconstruction module (774), and an intra decoder (772), coupled together as shown in FIG. 7.
[0098] The entropy decoder (771) can be configured to reconstruct from the coded picture certain symbols that represent syntax elements that make up the coded picture. Such symbols can 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), prediction information (e.g., intra prediction information or inter prediction information), which can identify certain samples or metadata used for prediction by the intra decoder (772) or the inter decoder (780), respectively, residual information (e.g., 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 (780); if the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information can be inverse quantized and provided to the residual decoder (773).
[0099] The inter decoder (780) is configured to receive the inter prediction information and to generate inter prediction results based on the inter prediction information.
[0100] The intra decoder (772) is configured to receive intra prediction information and to generate a prediction result based on the intra prediction information.
[0101] The residual decoder (773) is configured to perform inverse quantization to extract the unquantized transform coefficients and to process the unquantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (including a quantization parameter (QP)), which may be provided by the entropy decoder (771) (this may only be a small amount of control information, so a data path is not depicted).
[0102] The reconstruction module (774) is configured to combine, in the spatial domain, the residual as output by the residual decoder (773) and the prediction result (possibly output by an inter- or intra-prediction module) to form a reconstructed block, the reconstructed block being part of a reconstructed picture, which may be part of a reconstructed video. It should be noted that other suitable processes, such as deblocking processes, may be performed to improve visual quality.
[0103] It should be noted that the video encoders (303), (503), and (603) and the video decoders (310), (410), and (710) may be implemented using any suitable technology. In some embodiments, the video encoders (303), (503), and (603) and the video decoders (310), (410), and (710) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (303), (503), and (603) and the video decoders (310), (410), and (710) may be implemented using one or more processors executing software instructions.
[0104] II. Triangular Partition Mode (TPM) for Inter Prediction
[0105] In some cases, TPM can be supported for inter prediction. TPM can be applied only to CUs of 8x8 or larger. TPM can be signaled using a CU level flag as a type of merge mode along with other merge modes such as regular merge mode, MMVD mode, CIIP mode, CIIP mode, and sub-block merge mode.
[0106] When TPM is used, a CU can be evenly divided into two triangular partitions using either diagonal or anti-diagonal partitioning, for example as shown in Figures 8A and 8B. Each triangular partition within a CU can be inter-predicted using its own motion parameters. Only uni-prediction is allowed for each partition; that is, each partition has one motion vector and one reference index. A uni-prediction motion constraint is applied to ensure that the triangular partitions are the same as conventional bi-prediction; that is, only two motion-compensated predictions are required for each CU. The uni-prediction motion for each partition can be derived using the process described in Figures 1A-1D.
[0107] If TPM is used for the current CU, a flag indicating the TPM direction (diagonal or anti-diagonal) and two merge indices (one for each partition) can be further signaled. The maximum TPM candidate size can be explicitly signaled at the slice level and a syntactic binarization for the TPM merge indices can be specified. After predicting each triangular partition, the sample values along the diagonal or anti-diagonal edges can be adjusted by a blending process with adaptive weighting values. After deriving the prediction signal for the entire CU, the transformation and quantization process can be further applied to the entire CU, as in the case of other prediction modes. Finally, the motion field of the CU predicted using TPM can be stored.
[0108] In some cases, the TPM cannot be used in combination with sub-block transform (SBT), i.e., if the signaled triangular mode is equal to 1, then cu_sbt_flag is inferred to be 0 regardless of signaling.
[0109] The uni-prediction candidate list can be derived directly from the merge candidate list constructed according to the extended merge prediction process. Let N be the index of the uni-prediction motion in the uni-prediction candidate list. If X is equal to the parity of N, then the LX motion vector of the Nth extended merge candidate is used as the Nth uni-prediction motion vector for the TPM. These motion vectors are marked with “X” in FIG. 9. If there is no corresponding LX motion vector of the Nth extended merge candidate, the L(1−X) motion vector of the same candidate is used as the uni-prediction motion vector of the TPM instead.
[0110] After predicting each triangular partition with its own motion parameters, a blending process can be applied to the two prediction signals to derive samples around the diagonal or anti-diagonal edges. The following weighting values are used in the blending process: {7 / 8, 6 / 8, 5 / 8, 4 / 8, 3 / 8, 2 / 8, 1 / 8} for luma and {6 / 8, 4 / 8, 2 / 8} for chroma, as shown in Figures 10A and 10B.
[0111] In some cases, the motion vector for a TPM coded CU can be generated by the following process: If Mv1 and Mv2 are from different reference picture lists (e.g., one is from L0 and the other is from L1), then Mv1 and Mv2 are simply combined to form a bi-predictive motion vector. Otherwise, if Mv1 and Mv2 are from the same list, only the uni-predictive motion vector Mv2 is stored.
[0112] III. Geometric Merge Mode (GEO)
[0113] The Geometric Merge Mode (GEO), also referred to as the Geometric Partitioning Mode (GPM), can support several different partitioning schemes. The partitioning schemes can be defined by angles and edges. For example, 140 different partitioning schemes can be distinguished by 32 angles (quantized at 11.25° between 0° and 360°) and 5 edges relative to the center of the CU.
[0114] FIG. 11 shows an exemplary GEO. In FIG. 11, the angle φ i represents a quantized angle between 0 and 360 degrees, and the distance offset ρ i is the maximum distance ρ max ρ represents the quantized offset of maxThe value of can be derived geometrically by equation (1) for either w or h, scaled with the short side length equal to 8 in log2 scale. The variables h and w represent the height and width of the current block. If φ is equal to 0°, then ρ max is equal to w / 2. If φ is equal to 90°, then ρ max is equal to h / 2. In equation (1), ρ margin =1.0 is to ensure that the split boundaries do not get too close to the corners of the current block.
number
[0115] For each partition mode in GEO (i.e., pair of angle index and edge index), a pixel-adaptive weight table is specified to mix samples within the two partitioned parts. The weight value of a sample can range, for example, from 0 to 8, and can be determined by the L2 distance from the pixel center position to the edge. When weight values are assigned, they can obey a unit gain constraint. For example, if a small weight value is assigned to one GEO partition, the other partition is assigned a complementary large value, totaling at most 8.
[0116] IV. Weighted Sample Prediction Process for GEO
[0117] In GEO, the final sample predictor P is calculated using two 3-bit blending masks (i.e., weighting values or weighting factors) W0 and W1 and two predictors P0 and P1 according to equation (2). B can be derived. PB=(W0P0+ W1P1+ 4) >> 3 (Eq.2)
[0118] The blending masks W0 and W1 can be derived from a look-up table based on their weighting index, which can be derived based on the distance between the sample position (x,y) and the splitting boundary, as shown in equation (3).
number
[0119] In equation (4), n represents the total number of distance quantization steps, i represents the distance step index for the GEO of angle φ, and i <nである。
[0120] Finally, as shown in equation (5), the sample blend masks W0 and W1 (or weighting values) can be set using Table 3, denoted as GeoFilter.
number
[0121] An exemplary weighted sample prediction process is described as follows: The inputs to this process include two variables nCbW and nCbH that specify the width and height of the current coding block, two (nCbW) x (nCbH) arrays preSamplesLA and preSamplesLB, a variable angleIdx that specifies the angle index of the geometric partition, a variable distanceIdx that specifies the distance idx of the geometric partition, and a variable cIdx that specifies the color component index. The outputs of this process are a (nCbW) x (nCbH) array pbSamples and a (nCbW >> 2) x (nCbH >> 2) array of predicted sample values, motionIdx.
[0122] The variable bitDepth can be derived as follows: If cIdx=0, then bitDepth=BitDepthY; otherwise, bitDepth=BitDepthC.
[0123] The variable shift1=Max(5,17-bitDepth) and offset1=1<<(shift1-1).
[0124] Weight array sampleWeightL[x][y] for luma and sampleWeightC[x][y] for chroma, for x=0..nCbW-1 and y=0..nCbH-1 can be derived as follows:
[0125] The variables wIdx = log2(nCbW) and hIdx = log2(nCbH).
[0126] variable whRatio=(wIdx>= hIdx)?wIdx−hIdx:hIdx−wIdx, scaleIdx=(wIdx >= hIdx)?hIdx−3:wIdx−3.
[0127] The variables displacementX = angleIdx and displacementY = (displacementX + 8)%32.
[0128] Variable angleN=(wIdx>=hIdx)?(angleIdx>>3&1)?angleIdx%8:8―angleIdx%8:(angleIdx>>3&1)?8―angleIdx%8:angleIdx%8.
[0129] The variable rho can be set to the following values using the lookup tables denoted as stepDis and Dis specified in Table 1 and Table 2: rho=distanceIdx*(stepDis[whRatio][angleN]< <scaleIdx)+(Dis[displacementX]<<wIdx)+(Dis[displacementY]<<hIdx)。
[0130] The variables weightIdx and weightIdxAbs can be calculated using lookup table 2, where x=0..nCbW-1 and y=0..nCbH-1. weightIdx=((x<<1)+1)*Dis[displacementX]+ ((y<<1)+1))*Dis[displacementY]−rho. weightIdxAbs=Clip3(0, 26, (abs(weightIdx)+4) >>3).
[0131] The variable partIdx can be set to weightIdx>0 if x=0 and y=nCbH-1.
[0132] For x=0..nCbW-1 and y=0..nCbH-1, the values of sampleWeightL[x][y] can be set according to Table 3 as a GeoFilter. sampleWeightL[x][y]=weightIdx<=0?GeoFilter[weightIdxAbs]:8―GeoFilter[weightIdxAbs].
[0133] For x=0..nCbW-1 and y=0..nCbH-1, the value sampleWeightC[x][y] can be set as follows: sampleWeightC[x][y]=sampleWeightL[(x<<(SubWidthC-1))][ (y<<(SubHeightC-1))]. Table 1 [Table 1] Table 2 [Table 2] Table 3 [Table 3]
[0134] To reduce the storage requirements of the pre-computed blend masks, the minimum blend mask storage method can achieve an 84-91% reduction in memory requirements for blend weight storage.
[0135] g_sampleWeight L Let [] denote the pre-determined masks for the mixed weights. N denotes the number of pre-determined masks in each set, and N is assumed to be set as NA>>1, where NA is the number of angles supported by GEO. M×M denotes the size of the pre-determined masks for the mixed weights, and M is set as 128+((ND-1)×(128>>S))<<1, where ND is the number of steps supported by GEO, and S is set as ND-1. For a 32 angle, 5 step setting, N is set as 16 and M is set as 192. For a 24 angle, 4 step setting, N is set as 12 and M is set as 224.
[0136] For a block of size W × H with geometric partitioning index K, the blending weights of the luma samples are derived as follows: The variables angle φ and distance ρ are obtained from a lookup table with the geometric partitioning index K. The offsetX and offsetY can be calculated as follows:
number
[0137] A typical weighted sample prediction process with minimum mixture weight mask storage for GEO is described as follows: The inputs to this process include two variables nCbW and nCbH that specify the width and height of the current coding block, two (nCbW) x (nCbH) arrays predSamplesLA and predSamplesLB, a variable angleIdx that specifies the angle index of the geometric partition, a variable distanceIdx that specifies the distance idx of the geometric partition, and a variable cIdx that specifies the color component index. The outputs of this process include a (nCbW) x (nCbH) array of predicted sample values pbSamples, and a variable partIdx.
[0138] The variable bitDepth can be derived as follows: If cIdx=0, then bitDepth=BitDepthY; otherwise, bitDepth=BitDepthC.
[0139] Variable shift1 = Max(5, 17-bitDepth) and offset1 = 1 <<(shift1-1).
[0140] For x=0..nCbW-1 and y=0..nCbH-1, the weight array samples for luma and chroma, sampleWeightL[x][y] and sampleWeightC[x][y], are:
[0141] The variable hwRatio=nCbH / nCbW.
[0142] The variables displacementX = angleIdx and displacementY = (displacementX + 8)%32.
[0143] Variable partIdx = (angleIdx >= 13 && angleIdx<=27) ? 1:0.
[0144] The variable rho can be set to the following values using lookup table 2: rho=(Dis[displacementX]<< 8)+(Dis[displacementY]<<8).
[0145] The variable shiftHor=0 if one of the following conditions is true: (1) angleIdx%16=8; and (2) angleIdx%16 != 0 and hwRatio ≥ 1; otherwise, shiftHor=1.
[0146] If shiftHor=0, offsetX=(256-nCbW)>>1, offsetY=(256−nCbH)>>1+angleIdx<16?(distanceIdx*nCbH)>>3:−((distanceIdx*nCbH)>>3).
[0147] Otherwise, if shiftHor=1, then offsetX=(256―nCbW)>>1+angleIdx<16?(distanceIdx*nCbW)>>3:―((distanceIdx*nCbW)>>3), offsetY=(256-nCbH)>>1.
[0148] The variables weightIdx and weightIdxAbs can be calculated using lookup table 2 at x=0..nCbW―1 and y=0..nCbH―1 as follows: weightIdx=(((x+offsetX)<<1)+1)*Dis[displacementX]+(((y+offsetY)<<1)+1))*Dis[displacementY]―rho, weightIdxAbs=Clip3(0, 26, abs(weightIdx)).
[0149] sampleWeightL[ x The values of [ ][ y ] can be set according to Table 3 shown as GeoFilter. sampleWeightL[x][y]=weightIdx<=0?GeoFilter[weightIdxAbs]:8―GeoFilter[weightIdxAbs].
[0150] The values sampleWeightC[x][y] at x=0..nCbW―1 and y=0..nCbH―1 can be set as follows: sampleWeightC[x][y]=sampleWeightL[(x<<(SubWidthC−1))][(y<<(SubHeightC−1))].
[0151] Motion Vector Storage Process for V.GEO. In some cases, it is possible to sum the luma sample weights at the four corners of a 4x4 motion storage unit. The sum can be compared to two thresholds to determine whether one of the two uni-predictive and bi-predictive motion information is stored. The bi-predictive motion information can be derived using the same process as the TPM.
[0152] An exemplary motion vector storage process for GEO is described as follows.
[0153] xSbIdx=0.. The array motionIdx[xSbIdx][ySbIdx] in (nCbW>>2)-1 and ySbIdx=0..(nCbH>>2)-1 can be derived as follows:
[0154] Variable threshScaler = (wIdx + hIdx) >> 1) - 1, threshLower =32>>threshScaler, threshUpper=32―threshLower, Cnt=sampleWeightL[(xSbIdx<<2)][(ySbIdx<<2)]+sampleWeightL[(xSbIdx<<2)+3][(ySbIdx<<2)]+ sampleWeightL[(xSbIdx<<2)][(ySbIdx<<2)+3]+sampleWeightL[(xSbIdx<<2)+3][(ySbIdx<<2)+3], Cnt=partIdx?32—Cnt:Cnt, motionIdx[xSbIdx][ySbIdx]=Cnt<=threshLower?0:Cnt>=threshUpper?1:2.
[0155] If merge_geo_flag[xCb][yCb]=1 then sType=motionIdx[xSbIdx][ySbIdx] for xSbIdx=0..numSbX-1, and ySbIdx=0..numSbY-1.
[0156] In some cases, the motion vector storage process is further simplified. The distance between the center position of the 4x4 motion storage unit and the division boundary can be calculated and compared with a fixed threshold to determine whether single- or bi-prediction motion information is stored for the 4x4 motion storage unit. The sign of the distance indicates which single-prediction motion information should be stored in the single-prediction storage case. The dependency of the blend mask and the motion storage can be eliminated.
[0157] If merge_geo_flag[xCb][yCb]=1, then wIdx=log2(cbWidth), hIdx=log2(cbHeight), whRatio=(wIdx >= hIdx)?wIdx―hIdx:hIdx―wIdx, scaleIdx=(wIdx>=hIdx)?hIdx―3:wIdx―3, displacementX=angleIdx, displacementY=(displacementX+8)%32, angleN=(wIdx>=hIdx)?(angleIdx>>3&1)?angleIdx% 8:8―angleIdx%8:(angleIdx>>3&1)?8―angleIdx%8:angleIdx%8.
[0158] The variable rho is set to the following values using lookup tables denoted as stepDis and Dis specified in Table 1 and Table 2: rho=distanceIdx*(stepDis[whRatio][angleN]< <scaleIdx)+(Dis[displacementX]<<wIdx)+(Dis[displacementY]<<hIdx)。
[0159] The variable motionOffset is set to the following value using a lookup table denoted as Dis specified in Table 1 and Table 2: motionOffset=3*Dis[displacementX]+3*Dis[displacementY].
[0160] The variable motionIdx is calculated using lookup table 2 as follows: motionIdx=((xSbIdx <<3)+1)*Dis[displacementX]+((xSbIdx<<3)+1))*Dis[displacementY] ―rho+motionOffset.
[0161] The variable sType is derived as follows: if partIdx=1 then sType=abs(motionIdx)<256?2:motionIdx<=0?1:0; otherwise sType=abs(motionIdx)<256?2:motionIdx <= 0?0:1.
[0162] To reduce the memory required to store the mask for the motion field storage, a process can derive all information from a predefined mask for the motion field storage mask. This process is invoked when decoding a coding unit with MergeWedgeFlag[xCb][yCb]=1. Inputs to this process include the luma position (xCb, yCb) that specifies the top-left sample of the current coding block relative to the top-left luma sample of the current picture, the variable cbWidth that specifies the width of the current coding block of luma samples, the variable cbHeight that specifies the height of the current coding block of luma samples, the luma motion vectors mvA and mvB at 1 / 16 fractional sample precision, the reference indices refIdxA and refIdxB, and the prediction list flags predListFlagA and predListFlagB.
[0163] The variables numSbX and numSbY, which specify the number of 4x4 blocks in the current coding block in the horizontal and vertical directions, are set equal to numSbX=cbWidth>>2 and numSbY=cbHeight>>2.
[0164] Variable displacementX=angleIdx, displacementY=(displacementX+8)%32, hwRatio=nCbH / nCbW.
[0165] The variable shiftHor=0 if one of the following conditions is true: (1) angleIdx%16=8; and (2) angleIdx%16!=0; JPEG2025061132000010.jpg929, otherwise shiftHor=1.
[0166] The variable partIdx = (angleIdx > = 13 & & angleIdx < = 27) ? 1:0.
[0167] If shiftHor=0, then offsetX=(64-numSbX)>>1, offsetY=(64―numSbY)>>1+angleIdx<16?(distanceIdx*nCbH)>> 5:―((distanceIdx*nCbH)>>5). Otherwise, if shiftHor=1, offsetX=(64―numSbX)>>1+angleIdx<16?(distanceIdx*nCbW)>>5:―((distanceIdx*nCbW)>> 5), offsetY=(64― numSbY)>>1.
[0168] The value of the variable rho is derived according to the following formula and the look-up table for Dis specified in Table 2: rho=(Dis[displacementX]<<8)+(Dis[displacementY]<<8).
[0169] The variable motionOffset is set to the following value using a lookup table denoted as Dis specified in Table 1 and Table 2: motionOffset=3*Dis[displacementX]+3*Dis[displacementY].
[0170] Subblock index (xSbIdx, ySbIdx) for xSbIdx=0..numSbX-1 and ySbIdx=0..numSbY-1 For each 4x4 sub-block in the vector (ySbIdx), the variable motionIdx is calculated using lookup table 2 as follows: motionIdx=(((xSbIdx+offsetX)<<3)+1)*Dis[displacementX]+(((xSbIdx+offsetY<<3)+1))*Dis[displacementY]―rho+motionOffset.
[0171] VI. On-the-fly calculation of weighting index into weighting value
[0172] In the above weighted sample process for GEO, the conversion of the weight index wIdx(x, y) to the weight value (or weight factor) weight(x, y) can be derived based on a linear function as shown in Equations (9)-(11).
number
[0173] In one example, maxValue=8, bias=4, quantization step size s=1 / 7.2. The fl2intOp operation is used to convert floating-point values to integers and can be a combination of round, floor, or ceil. A lookup table such as Table 3 is an example implementation of the above formula.
[0174] However, because different samples may have different input values in the lookup table, multiple copies of the lookup table may be required to perform parallel processing on these samples when the above formula is used. Thus, the above weighting sample process for GEO is not friendly to hardware and software implementations. To address this issue, the present disclosure includes embodiments of a computation-based transformation such that weighting values for different samples can be derived in parallel.
[0175] According to aspects of the present disclosure, the conversion of a weight index wIdx(x,y) to a weight value weight(x,y) may be derived based on an on-the-fly calculation using a right-shift operation.
[0176] In some embodiments, the on-the-fly calculation is the sum of the offset value and the weighting index wIdx(x,y), where the offset value is a function of a right shift operation. Additionally, the offset value may be rounded.
[0177] In an embodiment, the conversion of a weight index (x, y) to a weight value weight(x, y) may be derived according to equation (12).
number
[0178] In equation (12), the offset value 2 idx2wShiftBit+2 is the exponential (base 2) function of the right shift operand idx2wShiftBit. In one example, the right shift operand idx2wShiftBit=m+3 and the weight value weight(x, y)=(2 m+5 --wIdx(x, y))>>(m+3), where m can represent the number of bits of precision (e.g., 3 or 6) of the cosine table (e.g., table 2) used to calculate the weighting index.
[0179] In an embodiment, the weighting index wIdx(x, Weighting value weight(x, y) y) can be derived according to equation (13) or equation (14).
number
[0180] In equations (13) and (14), the clip function Clip3() defines a weighting value weight(x, In one example, the offset value idx2wOffset is a linear function of the right shift operand idx2wShiftBit, as shown in equation (15).
number
[0181] The right shift operand idx2wShiftBit may be the number of bits of precision (e.g., 3, 6, 9) of the cosine table (e.g., table 2) used to compute the weighting index and / or the calculated distance value (e.g., weighting index).
[0182] In an embodiment, the weighting index may have a sign change according to the partition index partIdx, as shown in equation (16).
number
[0183] Therefore, the weighting values can be derived according to equation (17) or equation (18).
number
[0184] In one example, the partition index partIdx can be set according to the weighted index of the bottom-left corner sample of the current block. In another example, the partition index partIdx can be set according to the angle index angleIdx of equation (19), where T1 and T2 are two thresholds. In one embodiment, T1=0 and T2=20.
number
[0185] In an embodiment, the partition index partIdx can be used as a definition of partitions of different angles. The weighting values can be derived according to Equations (20) and (21).
number
[0186] In an embodiment, the weighting values may be derived according to equations (22) and (23).
number
[0187] Then, the final blending mask of the samples of the current block can be inverted according to the condition of the angle index angleIdx described in equation (19).
[0188] According to an aspect of the disclosure, the weighting index wIdx(x, Weighting value weight(x, y) The transformation to y) may be derived based on a piecewise constant function. The piecewise constant function may include an initial value and a plurality of unit step functions. Within a range of weighting factor values, the initial value may be one of a minimum weighting factor value and a maximum weighting factor value. Furthermore, the number of the plurality of unit step functions may be equal to the total number of weighting factor values minus one.
[0189] In the embodiment, the weighting value weight(x, y) can be derived from a predetermined initial value, smallestWeight, and four unit step functions, as shown in equation (24).
number
number
[0190] Table 4 shows an exemplary look-up table for mapping weighting indices to weighting values. Table 4 [Table 4]
[0191] When expressing Table 4 using equations (24) and (25), the initial value smallestWeight=4, and the threshold weighting indexes C0-C3 can be 4, 11, 18, and 25, respectively.
[0192] When expressing Table 4 using equations (24) and (26), the initial value smallestWeight=4, and the threshold weighting indexes P0-P3 can be 3, 10, 17, and 24, respectively.
[0193] Table 5 shows another exemplary look-up table for mapping weighting indices to weighting values. Table 5 [Table 5]
[0194] When expressing Table 5 using equations (24) and (25), the initial value smallestWeight=4, and the threshold weighting indexes C0-C3 can be 3, 10, 17, and 26, respectively.
[0195] When expressing Table 5 using equations (24) and (26), the initial value smallestWeight=4, and the threshold weighting indexes P0-P3 can be 2, 9, 16, and 25, respectively.
[0196] In the embodiment, the weighting value weight(x, y) can be derived from a given initial value, largestWeight, and four unit step functions, as shown in equation (27).
number
number
[0197] When expressing Table 4 using equations (27) and (28), the initial value largestWeight=8, and the threshold weighting indexes C0-C3 can be 3, 10, 17, and 24, respectively.
[0198] When expressing Table 4 using equations (27) and (29), the initial value largestWeight=8, and the threshold weighting indexes P0-P3 can be 4, 11, 18, and 25, respectively.
[0199] When expressing Table 5 using equations (27) and (28), the initial value largestWeight=8, and the threshold weighting indexes C0-C3 can be 2, 9, 16, and 25, respectively.
[0200] When expressing Table 5 using equations (27) and (29), the initial value largestWeight=8, and the threshold weighting indexes P0-P3 can be 3, 10, 17, and 26, respectively.
[0201] Note that the relational operators (≧) and (>), as defined in, for example, C and C++, produce a 1 if the corresponding relation is true and a 0 if the corresponding relation is false.
[0202] VII. Flowchart
[0203] FIG. 12 illustrates a flow chart summarizing an exemplary process (1200) according to an embodiment of the present disclosure. In various embodiments, the process (1200) is performed by a processing circuit such as the processing circuitry of the terminal devices (210), (220), (230), and (240), a processing circuitry performing the functionality of the video encoder (303), a processing circuitry performing the functionality of the video decoder (310), a processing circuitry performing the functionality of the video decoder (410), a processing circuitry performing the functionality of the intra prediction module (452), a processing circuitry performing the functionality of the video encoder (503), a processing circuitry performing the functionality of the predictor (535), a processing circuitry performing the functionality of the intra encoder (622), a processing circuitry performing the functionality of the intra decoder (772), or the like. In some embodiments, the process (1200) is implemented with software instructions, such that the processing circuitry performs the process (1200) when the processing circuitry executes the software instructions.
[0204] The process (1200) may generally begin at step (S1210), where the process (1200) decodes prediction information for a current block of a current picture in a coded bitstream. The prediction information specifies a geometric partitioning mode (GPM) for the current block. The current block is partitioned into two partitions in the GPM mode. Each of the partitions has a respective predictor associated with it. The process (1200) then proceeds to step (S1220).
[0205] In step S1220, the process 1200 determines weighting indexes for the samples of the current block based on the position of the samples. The process 1200 then proceeds to step S1230.
[0206] In step S1230, the process 1200 calculates a weighting factor based on the weighting index of the sample according to a formula for converting the weighting index into a weighting factor.Then, the process 1200 proceeds to step S1240.
[0207] In step S1240, the process 1200 reconstructs the samples based on the predictors and weighting factors corresponding to the samples. After reconstructing the samples, the process 1200 ends.
[0208] In an embodiment, a right shift operation is performed on the sum of the weighting index and the offset value. The result of the right shift operation is clipped to be within a predetermined range.
[0209] In an embodiment, the offset value is based on a number of bits shifted by the right shift operation, and the number of bits shifted by the right shift operation is based on at least one of a weighting index and a size of a cosine table used to calculate the weighting index.
[0210] In an embodiment, an angle index and a distance index that define a division boundary between partitions of the current block are determined based on the GPM. A weighting index for the sample is determined based on the position of the sample, the angle index, and the distance index.
[0211] In an embodiment, a partition index is determined based on the angle index. A weighting factor is calculated based on the partition index.
[0212] In an embodiment, the formula is:
number
[0213] In an embodiment, the mathematical formula is a piecewise constant function that includes an initial value and a plurality of unit step functions, where the initial value is one of a minimum weighting factor value and a maximum weighting factor value, and the number of the plurality of unit step functions is equal to the total number of differential weighting factor values minus one.
[0214] VIII. Computer Systems
[0215] The techniques described above may be implemented as computer software using computer readable instructions and may be physically stored on one or more computer readable media. For example, Figure 13 illustrates a computer system (1300) suitable for implementing certain embodiments of the disclosed subject matter.
[0216] Computer software may be coded using any suitable machine code or computer language that may be subject to assembly, compilation, linking, or similar mechanisms to produce code that contains instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or instructions that may be executed via interpretation, microcode execution, etc.
[0217] 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.
[0218] 13 with respect to computer system (1300) are exemplary in nature and are not intended to suggest any limitations on the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system (1300).
[0219] The computer system (1300) may include certain human interface input devices that may be responsive to input by one or more human users via, for example, tactile input (e.g., keystrokes, swipes, data glove movements), auditory input (e.g., voice, clapping), visual input (e.g., gestures), and olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sounds), images (e.g., scanned images, photographic images obtained from still image cameras), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic pictures).
[0220] The input human interface devices may include one or more of (although only one of each is depicted) a keyboard (1301), a mouse (1302), a trackpad (1303), a touch screen (1310), a data glove (not shown), a joystick (1305), a microphone (1306), a scanner (1307), and a camera (1308).
[0221] The computer system (1300) may also include certain human interface output devices that may stimulate one or more of the senses of a human user, 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 (1310), data gloves (not shown), joystick (1305), although there may be haptic feedback devices that do not serve as input devices), auditory output devices (e.g., speakers (1309), headphones (not shown)), visual output devices (e.g., screens (1310), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting two-dimensional visual output, three-dimensional or higher output by means such as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown). These visual output devices (e.g., screens (1310)) may be connected to the system bus (1348) via a graphics adapter (1350).
[0222] The computer system (1300) may also include human accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1320) using media such as CD / DVD (1321), thumb drives (1322), removable hard drives or solid state drives (1323), legacy magnetic media (not shown) such as tapes and floppy disks (not shown), and specialized ROM / ASIC / PLD based devices such as security dongles (not shown).
[0223] Those skilled in the art will also understand that the term "computer-readable medium" as used in connection with the subject matter disclosed herein does not encompass transmission media, carrier waves, or other transitional signals.
[0224] The computer system (1300) may also include an interface to one or more communication networks (1355). The one or more communication networks may be, for example, wireless, wired, or optical. The one or more communication networks may further be local, wide area, metropolitan, vehicle industrial, real-time, delay tolerant, etc. Examples of the one or more communication networks (1355) include local area networks such as Ethernet, wireless LANs, cellular networks (including GSM, 3G, 4G, 5G, LTE, etc.), TV wired or wireless wide area digital networks (including cable TV, satellite TV, and terrestrial TV), vehicle industrial including CANBus, etc. Certain networks typically require an external network interface adapter attached to a specific general-purpose data port or peripheral bus (1349) (e.g., a USB port on the computer system (1300)); others are typically integrated into the core of the computer system (1300) by attaching to a system bus as described below (e.g., an Ethernet interface is integrated in a PC computer system, a cellular network interface is integrated in a smartphone computer system). Using any of these networks, the computer system (1300) can communicate with other entities. Such communications can be one-way receive only (e.g., broadcast television), one-way transmit only (e.g., CANbus to certain CANbus devices), or bi-directional, such as to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks can be used with each of these networks and network interfaces, as described above.
[0225] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (1340) of the computer system (1300).
[0226] The core (1340) may include one or more central processing units (CPUs) (1341), graphics processing units (GPUs) (1342), specialized programmable processing devices in the form of field programmable gate areas (FPGAs) (1343), task specific hardware accelerators (1344), etc. These devices may be connected via a system bus (1348) along with read only memory (ROM) (1345), random access memory (1346), and internal mass storage devices (e.g., internal non-user accessible hard drives, SSDs, etc.) (1347). In some computer systems, the system bus (1348) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (1348) or via a peripheral bus (1349). Peripheral bus architectures include PCI, USB, and the like.
[0227] The CPU (1341), GPU (1342), FPGA (1343), and accelerator (1344) may combine to execute certain instructions that may constitute the aforementioned computer code. The computer code may be stored in a ROM (1345) or a RAM (1346). Temporary data may be stored in the RAM (1346), while persistent data may be stored, for example, in an internal mass storage (1347). Rapid storage and retrieval from any memory device may be made possible by utilizing a cache memory, which may be closely associated with one or more of the CPU (1341), GPU (1342), mass storage (1347), ROM (1345), RAM (1346), etc.
[0228] The computer-readable medium can have computer code thereon for performing various computer-implemented operations. The medium and computer code can be specially designed and constructed for the purposes of the present disclosure, or they can be of the kind well known and available to those having skill in the computer software arts.
[0229] By way of example, and not by way of limitation, a computer system having the architecture (1300), and in particular the core (1340), as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.), can provide the functionality of executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as described above, as well as specific storage of the core (1340) of a non-transitory nature, such as mass storage (1347) within the core or ROM (1345). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1340). The computer-readable media can include one or more memory devices or chips, depending on the particular needs. The software can cause the core (1340) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform certain processes or certain portions of certain processes described herein, including defining data structures stored in RAM (1346) 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 embedded in circuitry (e.g., accelerator (1344)) that may execute in place of or in conjunction with software to perform particular processes or portions of particular processes described herein. References to software include logic, and vice versa, where appropriate. References to computer-readable media may include circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry embodying logic for execution, or both, as appropriate. The present disclosure encompasses any appropriate combination of hardware and software.
[0230] While this disclosure has described several exemplary embodiments, there are modifications, permutations, and various substitute equivalents that fall within the scope of this disclosure. It will thus be appreciated that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within its spirit and scope.
[0231] [Note] (Appendix 1) 1. A video coding method in a decoder, comprising: decoding prediction information for a current block of a current picture in a coded bitstream, the prediction information specifying a geometric partitioning mode (GPM) for the current block, the current block being partitioned into two partitions in the GPM mode, each of the partitions having a respective predictor associated therewith; determining weighting indices for samples of the current block based on positions of the samples; calculating a weighting factor based on the weighting index of the samples according to a formula for converting the weighting index into a weighting factor; and reconstructing the samples based on the predictors and the weighting factors corresponding to the samples; The method includes: (Appendix 2) The calculating step includes: performing a right shift operation on the sum of the weighting index and an offset value; and clipping the result of the right shift operation to be within a predetermined range; The method of claim 1, comprising: (Appendix 3) 3. The method of claim 2, wherein the offset value is based on a number of bits shifted by the right shift operation, and the number of bits shifted by the right shift operation is based on at least one of the weighting index and a size of a cosine table used to calculate the weighting index. (Appendix 4) The step of determining the weighting index comprises: determining, based on the GPM, angle and distance indices that define division boundaries between the partitions of the current block; and determining the weighting index for the sample based on the position of the sample, the angle index, and the distance index; The method of claim 1, comprising: (Appendix 5) The calculating step includes: determining a partition index based on the angle index; and calculating the weighting factor based on the partition index; The method of claim 1, comprising: (Appendix 6) The formula is:
number
number
[0232] Appendix A: Acronyms AMT: Adaptive Multiple Transform AMVP: Advanced Motion Vector Prediction ASIC: Application-Specific Integrated Circuit ATMVP: Alternative / Advanced Temporal Motion Vector Prediction BDOF: Bi-directional Optical Flow BDPCM (or RDPCM): Residual Difference Pulse Coded Modulation BIO: Bi-directional Optical Flow BMS: Benchmark Set BT: Binary Tree BV: Block Vector CANBus: Controller Area Network Bus CB: Coding Block CBF: Coded Block Flag CCLM: Cross-Component Linear Mode / Model CD: Compact Disc CPR: Current Picture Referencing CPU: Central Processing Unit CRT: Cathode Ray Tube CTB: Coding Tree Block CTU: Coding Tree Unit CU: Coding Unit DM: Derived Mode DPB: Decoder Picture Buffer DVD: Digital Video Disc EMT: Enhanced Multiple Transform FPGA: Field Programmable Gate Areas GOP: Group of Picture GPU: Graphics Processing Unit GSM: Global System for Mobile communications HDR: High Dynamic Range HEVC: High Efficiency Video Coding HRD: Hypothetical Reference Decoder IBC: Intra Block Copy IC: Integrated Circuit IDT: Identify Transform ISP: Intra Sub-Partitions JEM: Joint Exploration Model JVET: Joint Video Exploration Team LAN: Local Area Network LCD: Liquid-Crystal Display LFNST: Low Frequency Non-Separable Transform, or Low Frequency Non-Separable Secondary Transform (Low Frequency Non-separable Transform, or Low Frequency Non-separable Secondary Transform) LTE: Long-Term Evolution L_CCLM: Left-Cross-Component Linear Mode / Model LT_CCLM: Left and Top Cross - Component Linear Mode / Model MIP: Matrix based Intra Prediction MPM: Most Probable Mode MRLP (or MRL): Multiple Reference Line Prediction MTS: Multiple Transform Selection MV: Motion Vector NSST: Non-Separable Secondary Transform OLED: Organic Light-Emitting Diode PBs: Prediction Blocks PCI: Peripheral Component Interconnect PDPC: Position Dependent Prediction Combination PLD: Programmable Logic Device PPR: Parallel―Processable Region PPS: Picture Parameter Set PU: Prediction Unit QT: Quad-Tree RAM: Random Access Memory ROM: Read-Only Memory RST: Reduced - Size Transform SBT: Sub-block Transform SCC: Screen Content Coding SCIPU: Small Chroma Intra Prediction Unit SDR: Standard Dynamic Range SEI: Supplementary Enhancement Information SNR: Signal Noise Ratio SPS: Sequence Parameter Set SSD: Solid-state drive SVT: Spatially Varying Transform TSM: Transform Skip Mode TT: Ternary Tree TU: Transform Unit T_CCLM: Top Cross-Component Linear Mode / Model USB: Universal Serial Bus VPDU: Visual Process Data Unit VPS: Video Parameter Set VUI: Video Usability Information VVC: Versatile Video Coding WAIP: Wide-Angle Intra Prediction
Claims
1. 1. A video coding method in a decoder, comprising: decoding prediction information for a current block of a current picture in a coded bitstream, the prediction information specifying a geometric partitioning mode (GPM) for the current block, the current block being partitioned into two partitions in the GPM mode, each of the partitions having a respective predictor associated therewith; determining weighting indices for samples of the current block based on positions of the samples; calculating a weighting factor based on the weighting index of the sample according to a mathematical formula for converting the weighting index to a weighting factor, the formula including: performing a right-shift operation based at least on a sum of the weighting index and an offset value; and clipping a result of the right-shift operation to be within a predetermined range; and reconstructing the samples based on the predictors and the weighting factors corresponding to the samples; wherein the offset value is based on a number of bits shifted by the right shift operation, and the number of bits shifted by the right shift operation may represent a number of bits of precision of a cosine table used to calculate the weighting index.
2. The method of claim 1 , wherein the right-shift operation is further based on the weighting index.
3. The step of determining the weighting index comprises: determining, based on the GPM, angle and distance indices that define division boundaries between the partitions of the current block; and determining the weighting index for the sample based on the position of the sample, the angle index, and the distance index; 3. The method of claim 1 or 2, comprising:
4. The calculating step comprises: determining a partition index based on the angle index; and calculating the weighting factor based on the partition index; 4. The method of claim 3, comprising:
5. The formula is: [Equation 22] 5. The method of claim 4, wherein idx2wShiftBit indicates the number of bits shifted by the right shift operation, weight is the weighting factor, partIdx is the partition index, wIdx is the weighting index, and Clip3() is a clipping function.
6. The method of claim 1 , wherein the mathematical formula is a piecewise constant function including an initial value and a plurality of unit step functions.
7. 7. The method of claim 6, wherein the initial value is one of a minimum weighting factor value and a maximum weighting factor value, and the number of the plurality of unit step functions is equal to a total number of different weighting factor values minus one.
8. An apparatus including a processing circuit, the processing circuit being configured to perform the method of any one of claims 1-7.
9. A computer program product causing at least one processor to carry out the method of any one of claims 1 to 7.