Method, computer program and apparatus for video coding

Bi-predictive motion compensation with context-adaptive weights addresses inefficiencies in video coding by optimizing motion vector prediction, leading to improved compression efficiency and reduced data requirements.

JP7570753B2Active Publication Date: 2024-10-22TENCENT AMERICA LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022559711
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-09-29
Filing Date
2021-10-04
Publication Date
2024-10-22
Estimated Expiration
2041-10-04

AI Technical Summary

Technical Problem

Existing video coding technologies face challenges in efficiently reducing redundancy in video signals through motion vector prediction, particularly in bi-predictive motion compensation modes, leading to suboptimal compression ratios and increased data requirements.

Method used

The implementation of bi-predictive motion compensation with context-adaptive weights, where weights are determined based on neighboring reconstructed samples of predictive blocks, allowing for a weighted average of samples in the current block, enhancing compression efficiency.

Benefits of technology

This approach improves compression efficiency by optimizing the use of motion vectors, reducing data requirements, and enhancing the overall coding performance in video encoding and decoding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007570753000013
    Figure 0007570753000013
  • Figure 0007570753000014
    Figure 0007570753000014
  • Figure 0007570753000015
    Figure 0007570753000015
Patent Text Reader

Abstract

Aspects of the present disclosure provide methods and apparatuses for video encoding and / or decoding. The apparatuses include an apparatus for video decoding. A processing circuit of the apparatus for video decoding can decode coded information for a current block from a coded video bitstream. The coded information indicates a bi-predictive motion compensation mode for the current block. The processing circuit determines weights to be used in the bi-predictive motion compensation mode based on current neighboring reconstructed samples of the current block, first neighboring reconstructed samples of a first predictive block, and second neighboring reconstructed samples of a second predictive block. The processing circuit uses the determined weights to reconstruct samples in the current block based on weighted averages of corresponding samples in the first predictive block and the second predictive block.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] INCORPORATION BY REFERENCE This application claims the benefit of priority to U.S. Provisional Application No. 63 / 138,201, entitled "Bi-Prediction with Context Adaptive Weights," filed on January 15, 2021, which claims the benefit of priority to U.S. Provisional Application No. 17 / 489,258, entitled "Method and Apparatus for Video Coding," filed on September 29, 2021. The entire disclosures of the prior applications are hereby incorporated by reference in their entireties.

[0002] This disclosure describes embodiments generally related to video coding. [Background technology]

[0003] The background discussion provided herein is intended to generally present the context of the present disclosure. The inventors' work, to the extent that this work is described in this Background section, and aspects of the description that may not be considered prior art at the time of filing, are not admitted explicitly or implicitly as prior art to the present disclosure.

[0004] Video coding and decoding may be performed using inter-picture prediction with motion compensation. Uncompressed digital video may include a sequence of pictures, each having spatial dimensions of, for example, 1920x1080 luminance samples and associated chrominance samples. The sequence of pictures may have a predefined or variable picture rate (also informally known as frame rate), for example, 60 pictures per second or 60 Hz. Uncompressed video has significant bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luminance sample resolution at a frame rate of 60 Hz) with 8 bits per sample requires a bandwidth approaching 1.5 Gbit / s. One hour of such video requires more than 600 GByte of storage space.

[0005] One goal of video coding and decoding can be the reduction of redundancy in the input video signal through compression. Compression can help reduce the aforementioned bandwidth or storage space requirements, in some cases by more than two orders of magnitude. Both lossless and lossy compression, as well as combinations of these, 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 lossy 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, lossy compression is widely used. The amount of acceptable distortion depends on the application, for example, users of a particular consumer streaming application may tolerate higher distortion than users of a television distribution application. The achievable compression ratio may reflect that a higher acceptable / tolerable distortion may result in a higher compression ratio.

[0006] Motion compensation can be a lossy compression technique and can refer to a technique used for prediction of a newly reconstructed picture or picture portion after blocks of sample data from an already reconstructed picture or part thereof (reference picture) are spatially shifted in a direction indicated by a motion vector (hereinafter MV). In some cases, the reference picture can be the same as the picture currently being reconstructed. The MV can have two dimensions X and Y or three dimensions, the third dimension being a representation of the reference picture in use (the latter can indirectly be a temporal dimension).

[0007] In some video compression techniques, the MV applicable to a particular region of sample data can be predicted from other MVs, for example from MVs associated with other regions of sample data that are spatially adjacent to the region being reconstructed and precede that MV in decoding order. Doing so can substantially reduce the amount of data required to code the MV, thereby eliminating redundancy and increasing compression. For example, when coding an input video signal (known as natural video) obtained from a camera, MV prediction can work effectively because there is a statistical likelihood that regions larger than the region to which a single MV is applicable move in a similar direction and therefore, in some cases, can be predicted using similar motion vectors obtained from the MVs of neighboring regions. It makes the MV found for a given region similar or the same as the MV predicted from the surrounding MVs, and thus, after entropy coding, can be represented with fewer bits than would be used to code the MV directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, the MV prediction itself may be lossy, for example due to rounding errors when computing a predictor from several surrounding MVs.

[0008] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Here, we describe one of the many MV prediction mechanisms provided by H.265, hereafter referred to as "spatial merging".

[0009] Referring to Figure 1, a current block (101) contains samples found by the encoder during a motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of coding its MV directly, the MV can be derived from metadata associated with one or more reference pictures, e.g., from the most recent reference picture (in decoding order), using the MV associated with any one of five surrounding samples, denoted A0, A1, and B0, B1, B2 (102-106, respectively). In H.265, MV prediction can use predictors from the same reference picture that neighboring blocks use. Summary of the Invention [Means for solving the problem]

[0010] Aspects of the present disclosure provide methods and apparatus for video encoding and / or decoding. In some examples, the apparatus for video decoding includes a processing circuit. The processing circuit can decode coded information for a current block from a coded video bitstream. The coded information can indicate a bi-predictive motion compensation mode in the current block. The processing circuit can determine weights to be used in the bi-predictive motion compensation mode based on current neighboring reconstructed samples of the current block, a first neighboring reconstructed sample of a first predictive block, and a second neighboring reconstructed sample of a second predictive block. The processing circuit can use the determined weights to reconstruct samples in the current block based on weighted averages of corresponding samples in the first predictive block and the second predictive block.

[0011] In one embodiment, the weight is one of the predefined weights stored in the decoder.

[0012] In one example, the processing circuit decodes an index value in the coding information. The processing circuit can rank the predefined weights based on a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predicted block, and a second adjacent reconstructed sample of the second predicted block. Each of the ranked predefined weights can be associated with a unique ranking index. The decoded index value corresponds to one of the ranking indexes. The processing circuit can determine the weight to be one of the ranked predefined weights associated with one of the ranking indexes.

[0013] In one example, the processing circuit selects one of the predetermined weights to be a weight based on a predetermined cost measure performed using a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predicted block, and a second adjacent reconstructed sample of the second predicted block.

[0014] In one example, the processing circuit calculates weights based on a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0015] In one embodiment, the current adjacent reconstructed sample of the current block, the first adjacent reconstructed sample of the first predictive block, and the second adjacent reconstructed sample of the second predictive block are spatially adjacent reconstructed samples of the current block, the first predictive block, and the second predictive block, respectively.

[0016] In one example, the first predictive block is in a first reference picture and the second predictive block is in a second reference picture that is different from the first reference picture.

[0017] In some examples, an apparatus for video decoding includes a processing circuit. The processing circuit for encoding determines a bi-predictive motion compensation mode for coding a current block. Furthermore, the processing circuit for encoding determines weights to be used in the bi-predictive motion compensation mode based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of the first predictive block, and a second neighboring reconstructed sample of the second predictive block. The processing circuit further encodes information about the current block in a video bitstream. The encoded information indicates the bi-predictive motion compensation mode for the current block.

[0018] In one embodiment, the weight is one of the predefined weights stored in the encoder.

[0019] In one example, the processing circuit for encoding ranks the predefined weights based on a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predicted block, and a second adjacent reconstructed sample of the second predicted block. Each of the ranked predefined weights is associated with a unique ranking index. The processing circuit for coding determines the weight to be one of the ranked predefined weights and encodes the index value in the coding information. The index value is one of the ranking undecies associated with the weight.

[0020] In one example, the processing circuit for encoding selects one of the predetermined weights to be a weight based on a predetermined cost measure performed using a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0021] In one example, the processing circuit for encoding calculates weights based on a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0022] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform a method for video decoding and / or encoding.

[0023] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Brief description of the drawings]

[0024] [Figure 1] FIG. 2 is a schematic diagram of a current block and its surrounding spatial merging candidates in one example. [Diagram 2] 1 is a schematic illustration of a simplified block diagram of a communication system (200) according to one embodiment. [Diagram 3] 1 is a schematic illustration of a simplified block diagram of a communication system (300) according to one embodiment. [Figure 4] 1 is a schematic illustration of a simplified block diagram of a decoder according to an embodiment; [Diagram 5] FIG. 1 is a schematic illustration of a simplified block diagram of an encoder according to an embodiment; [Figure 6] 4 shows a block diagram of an encoder according to another embodiment; [Figure 7] 4 shows a block diagram of a decoder according to another embodiment; [Figure 8] 1 illustrates an example of a segmentation technique used in video coding according to an embodiment of the present disclosure. [Figure 9] 1 illustrates an example of a segmentation technique used in video coding according to an embodiment of the present disclosure. [Figure 10A] 1 illustrates an example of a quadtree plus binary tree (QTBT) block partitioning technique in accordance with an embodiment of the present disclosure. [Figure 10B] 1 illustrates an example of a quadtree plus binary tree (QTBT) block partitioning technique in accordance with an embodiment of the present disclosure. [Figure 11A] 1 illustrates an example of a vertical center side ternary tree division according to an embodiment of the present disclosure. [Figure 11B] 1 illustrates an example of a horizontal center side ternary tree division according to an embodiment of the present disclosure. [Figure 12] 1 illustrates a diagram of adjacent samples of a current CU and of a reference block for the current CU according to one embodiment of the present disclosure. [Figure 13] 1 illustrates an example of templates for a current block and a predicted block according to an embodiment of the present disclosure. [Figure 14] 1 is a flow chart outlining a process according to one embodiment of the present disclosure. [Figure 15] 1 is a flow chart outlining a process according to one embodiment of the present disclosure. [Figure 16] FIG. 1 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] 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 may 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 unidirectional transmission of data. For example, the terminal device (210) may code video data (e.g., a stream of video pictures captured by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data may be transmitted in the form of one or more coded video bitstreams. The terminal device (220) may receive the coded video data from the network (250), decode the coded video data to reconstruct the video pictures, and display the video pictures according to the reconstructed video data. Unidirectional data transmission may be common, such as in media serving applications.

[0026] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) performing bidirectional transmission of coded video data, which may occur, for example, during a video conference. For the bidirectional transmission of data, in one 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), decode the coded video data to reconstruct the video pictures, and display the video pictures on an accessible display device according to the reconstructed video data.

[0027] In the example of FIG. 2, the terminal devices 210, 220, 230, and 240 may be depicted as a server, a personal computer, and a smartphone, although the principles of the present disclosure may not be so limited. The embodiments of the present disclosure find application with laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. The network 250 represents any number of networks that convey coded video data between the terminal devices 210, 220, 230, and 240, including, for example, 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 this discussion, the architecture and topology of the network 250 may not be important to the operation of the present disclosure unless otherwise described herein below.

[0028] 3 shows an arrangement of a video encoder and a video decoder in a streaming environment as an example of an application of the disclosed subject matter, which may be equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, and storage of compressed video on digital media including CDs, DVDs, memory sticks, and the like.

[0029] The streaming system may include a video source (301) and a capture subsystem (313) that may include, for example, a digital camera that creates, for example, a stream of uncompressed video pictures (302). In one example, the stream of video pictures (302) includes samples taken by the digital camera. The stream of video pictures (302), shown as a thick line to emphasize the high amount of data 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)), shown as a thin line to emphasize the lower amount of data compared to the stream of video pictures (302), may be stored in a streaming server (305) for future use. One or more streaming client subsystems, such as the client subsystems (306) and (308) of FIG. 3, may access the streaming server (305) to retrieve copies (307) and (309) of the encoded video data (304). The client subsystem (306) may include a video decoder (310), for example within an electronic device (330). The video decoder (310) decodes an input copy (307) of the encoded video data and creates an output stream (311) of video pictures that may 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 such standards include ITU-T Recommendation H.265.In one example, the developing video coding standard is informally known as Versatile Video Coding (VVC), and the disclosed subject matter may be used in conjunction with VVC.

[0030] 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 also include a video encoder (not shown).

[0031] 4 shows a block diagram of a video decoder (410) according to one 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., a receiving circuit). The video decoder (410) may be used in place of the video decoder (310) of the example of FIG. 3.

[0032] The receiver (431) may receive one or more coded video sequences to be decoded by the video decoder (410), where in the same or other embodiments, one coded video sequence at a time is decoded, 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 encoded video data. The receiver (431) may receive the encoded video data together with other data, such as a coded audio data stream and / or an auxiliary data stream, which may be forwarded to a respective using entity (not shown). The receiver (431) may separate the coded video sequences from the other data. To combat network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter "parser (420)"). In certain applications, the buffer memory (415) is part of the video decoder (410). In other applications, the buffer memory may be external to the video decoder (410) (not shown). In still other applications, there may be a buffer memory (not shown) external to the video decoder (410), e.g., to combat network jitter, plus another buffer memory (415) internal to the video decoder (410), e.g., to handle playout timing. If the receiver (431) is receiving data from a storage / forwarding device with sufficient bandwidth and controllability or from an isosynchronous network, the buffer memory (415) may not be needed or may be small. For use with best-effort packet networks such as the Internet, the buffer memory (415) may be needed and may be relatively large, preferably adaptively sized, and may be implemented at least in part in an operating system or similar element (not shown) external to the video decoder (410).

[0033] The video decoder (410) may include a parser (420) for reconstructing symbols (421) from the coded video sequence. These categories of symbols include information used to manage the operation of the video decoder (410) and, in some cases, information for controlling a rendering device (e.g., a display screen), such as a render device (412) 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 a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not shown). The parser (420) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may conform to a video coding technique or standard and may follow various principles including variable length coding, Huffman coding, and arithmetic coding with or without context sensitivity. The parser (420) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the group. The subgroups may include Group of Pictures (GOPs), pictures, tiles, slices, macroblocks, Coding Units (CUs), blocks, Transform Units (TUs), Prediction Units (PUs), etc. The parser (420) may also extract from the coded video sequence information, such as transform coefficients, quantization parameter values, motion vectors, etc.

[0034] The parser (420) may perform an entropy decoding / parsing operation on the video sequence received from the buffer memory (415) to produce symbols (421).

[0035] The reconstruction of the symbols (421) can involve several different units depending on the type of coded video picture or portion thereof (inter-picture and intra-picture, inter-block and intra-block, etc.) as well as other factors. Which units are involved and how may be controlled by subgroup control information parsed from the coded video sequence by the parser (420). The flow of such subgroup control information between the parser (420) and the following units is not shown for clarity.

[0036] In addition to the functional blocks already mentioned, the video decoder (410) may be conceptually subdivided into several functional units, as described below. In an actual implementation operating under 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, a conceptual division into the following functional units is appropriate:

[0037] The first unit is a scalar / inverse transform unit (451), which receives quantized transform coefficients as well as control information from the parser (420) including which transform to use, block size, quantization factor, quantization scaling matrix, etc. as symbols (421). The scalar / inverse transform unit (451) may output a block containing sample values ​​that may be input to an aggregator (455).

[0038] In some cases, the output samples of the scaler / inverse transform (451) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from an already reconstructed picture, but may use prediction information from an already 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 a block of the same size and shape as the block being reconstructed using surrounding already reconstructed information fetched 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 provided by the scaler / inverse transform unit (451).

[0039] In other cases, the output samples of the scaler / inverse transform unit (451) may relate to an inter-coded, possibly motion-compensated, block. In such cases, the motion compensated prediction unit (453) may access the reference picture memory (457) to fetch samples used for prediction. After motion compensating the fetched samples according to the symbols (421) associated with the block, these samples may be added by the aggregator (455) to the output of the scaler / inverse transform unit (451) (referred to as residual samples or residual signals in this example) to generate output sample information. The addresses in the reference picture memory (457) from which the motion compensated prediction unit (453) fetches prediction samples may be controlled by a motion vector, which is available to the motion compensated prediction unit (453) in the form of a symbol (421) that may have, for example, X, Y, and reference picture components. Motion compensation may also include interpolation of sample values ​​fetched from the reference picture memory (457), motion vector prediction mechanisms, etc., when sub-sample accurate motion vectors are used.

[0040] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in the loop filter unit (456). Video compression techniques may include in-loop filter techniques controlled by parameters included 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 also be responsive to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence, as well as responsive to already reconstructed and loop filtered sample values.

[0041] The output of the loop filter unit (456) may be a sample stream that may be output to a render device (412) and may also be stored in a reference picture memory (457) for use in future inter-picture prediction.

[0042] A particular coded picture, once fully reconstructed, may 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) may become part of the reference picture memory (457), and a new current picture buffer may be reallocated before beginning reconstruction of a subsequent coded picture.

[0043] 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. The coded video sequence may comply with the syntax defined by the video compression technique or standard being 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. In particular, the profile may select a particular tool as the only tool available for use under the profile, among all tools available in the video compression technique or standard. Also, what is required for compliance may be that the complexity of the coded video sequence is 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 / second), maximum reference picture size, etc. The limits set by the level may be further limited in some cases by a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management signaled in the coded video sequence.

[0044] In one 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 noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, and the like.

[0045] 5 shows a block diagram of a video encoder (503) according to one 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) may be used in place of the example video encoder (303) of FIG.

[0046] The video encoder (503) may receive video samples from a video source (501) (which is not part of the electronic device (520) in the example of FIG. 5) that may capture video images to be coded by the video encoder (503). In other examples, the video source (501) is part of the electronic device (520).

[0047] 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, which may be of any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media serving system, the video source (501) may be a storage device that stores already 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 sequentially. The pictures themselves may be organized as a spatial array of pixels, where each pixel may contain one or more samples, depending on the sampling structure, color space, etc. in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.

[0048] According to one embodiment, the video encoder (503) may code and compress pictures of a source video sequence into a coded video sequence (543) in real-time or under any other time constraint as required by the 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. For clarity, coupling is not depicted. Parameters set by the controller (550) may include rate control related parameters (picture skip, quantizer, lambda value for rate distortion optimization techniques, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (550) may be configured with other appropriate functions associated with the video encoder (503) optimized for a particular system design.

[0049] In some embodiments, the video encoder (503) is configured to operate in a coding loop. As an oversimplified explanation, in one example, the coding loop may include a source coder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be coded and a reference picture) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a manner similar to that of the (remote) decoder (when any compression between the symbols and the coded video bitstream is lossless in the video compression techniques considered in 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 regardless of the location of the decoder (local or remote), the contents of the reference picture memory (534) are also bit-exact between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values ​​as the reference picture samples that the decoder "sees" when using prediction during decoding. This basic principle of reference picture synchronicity (and the resulting drift if synchronicity cannot be maintained, e.g., due to channel errors) is used in some related techniques as well.

[0050] The operation of the "local" decoder (533) may be the same as the operation of a "remote" decoder, such as the video decoder (410), already described in detail above in connection with Figure 4. However, with brief reference also to Figure 4, because symbols are available and the encoding / decoding of 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 parser (420), may not be fully implemented in the local decoder (533).

[0051] An observation that can be made at this point is that any decoder technique, except for parsing / entropy decoding, that is present in the decoder must necessarily be present in the corresponding encoder in approximately the same functional form. For this reason, the disclosed subject matter focuses on the decoder operation. A description of the encoder techniques may be omitted, since they are the inverse of the decoder techniques that are described generically. Only in certain areas are more detailed descriptions required and are provided below.

[0052] In operation, in some examples, the source coder (530) may perform motion-compensated predictive coding, which predictively codes an input picture relative to one or more already-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 prediction references for the input picture.

[0053] The local video decoder (533) may decode the coded video data of pictures that may be designated as reference pictures based on the symbols created by the source coder (530). The operation of the coding engine (532) may preferably be a lossy process. If the coded video data may be decoded in a video decoder (not shown in FIG. 5), the reconstructed video sequence may generally be a replica of the source video sequence with some error. The local video decoder (533) may replicate the decoding process that may be performed by the video decoder on the reference pictures and store the reconstructed reference pictures in a reference picture cache (534). In this way, the video encoder (503) may locally store copies of reconstructed reference pictures that have common content with the reconstructed reference pictures obtained by the far-end video decoder (in the absence of transmission errors).

[0054] The predictor (535) may perform a prediction search for the coding engine (532). That is, for a new picture to be coded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or specific metadata such as reference picture motion vectors, block shapes, etc. that may serve as suitable prediction references for the new picture. The predictor (535) may operate on a sample block-by-pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references drawn from among multiple reference pictures stored in the reference picture memory (534).

[0055] The controller (550) may manage the coding operations of the source coder (530), including, for example, setting the parameters and subgroup parameters used to encode the video data.

[0056] The output of all the aforementioned functional units may be subjected to entropy coding in an entropy coder (545), which converts the symbols produced by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, and arithmetic coding.

[0057] The transmitter (540) may buffer the coded video sequence created by the entropy coder (545) to prepare it for transmission over a communication channel (560), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (540) may merge the coded video data from the video coder (503) with other data to be transmitted, such as a coded audio data stream and / or an auxiliary data stream (source not shown).

[0058] The controller (550) may manage the operation of the video encoder (503). During coding, the controller (550) may assign a particular coded picture type to each coded picture, which may affect the coding techniques that may be applied to the respective picture. For example, pictures may often be assigned as one of the following picture types:

[0059] An intra picture (I-picture) may be one that can be coded and decoded without using any other picture in a sequence as a source of prediction. Some video codecs allow for various types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of these I-picture variations and their respective uses and characteristics.

[0060] A predictive picture (P picture) may be one that can be coded and decoded by using intra- or inter-prediction, which uses at most one motion vector and reference index to predict the sample values ​​of each block.

[0061] Bidirectionally predicted pictures (B-pictures) may be coded and decoded using intra- or inter-prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multi-predicted pictures can use more than two reference pictures and associated metadata to reconstruct a block.

[0062] A source picture may generally be spatially divided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and coded block by block. A block may be predictively coded with respect to other (already coded) blocks as determined by the coding assignment applied to the block's respective picture. For example, a block of an I-picture may be non-predictively coded or predictively coded with respect to already coded blocks of the same picture (spatial or intra prediction). A pixel block of a P-picture may be predictively coded by spatial prediction with respect to one already coded reference picture or by temporal prediction. A block of a B-picture may be predictively coded by spatial prediction with respect to one or two already coded reference pictures or by temporal prediction.

[0063] The video encoder (503) may perform coding operations in accordance with a given video coding technique or standard, such as ITU-T Rec. H.265. In its operations, the video encoder (503) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the coded video data may conform to a syntax specified by the video coding technique or standard being used.

[0064] In one 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 such as redundant pictures and slices, SEI messages, and VUI parameter set fragments.

[0065] A video may 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 being encoded / decoded, called the current picture, is divided into blocks. If a block in the current picture is similar to a reference block in a reference picture already coded and still buffered in the video, 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 the reference picture and can have a third dimension that identifies the reference picture, and in some cases, multiple reference pictures are in use.

[0066] In some embodiments, bi-prediction techniques can be used for inter-picture prediction. According to the bi-prediction techniques, two reference pictures, such as a first reference picture and a second reference picture, are used, both of which precede the current picture in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current picture can be coded by a first motion vector pointing toward a first reference block in the first reference picture and a second motion vector pointing toward a second reference block in the second reference picture. A block can be predicted by a combination of the first reference block and the second reference block.

[0067] Also, to improve coding efficiency, merge mode techniques can be used for inter-picture prediction.

[0068] According to some embodiments of the present disclosure, prediction, such as inter-picture prediction and intra-picture prediction, is performed in units of blocks. For example, according to the HEVC standard, a picture in a sequence of video pictures is divided into coding tree units (CTUs) for compression, and the CTUs in a picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three CTBs, which are one luma coding tree block (CTB) and two chroma CTBs. Each CTU may be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels may be partitioned into one CU of 64×64 pixels, four CUs of 32×32 pixels, or sixteen 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. The CU is partitioned into one or more prediction units (PUs) according to temporal and / or spatial predictability. Generally, each PU includes a luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. Using luma prediction block as an example of a prediction block, the prediction block includes a matrix of values ​​(e.g., luma values) for pixels of 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0069] 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 (e.g., a predictive block) of sample values ​​in a current video picture in a sequence of video pictures and to encode the processed block into 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.

[0070] In an HEVC example, the video encoder (603) receives a matrix of sample values ​​for a processing block, such as a predictive block, such as 8×8 samples. The video encoder (603) determines whether the processing block is best coded using intra-mode, inter-mode, or bi-predictive mode, for example 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 encode the processing block into a coded picture, and 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 encode the processing block into a coded picture. In certain video coding techniques, the merge mode may be an inter-picture prediction sub-mode in which motion vectors are derived from one or more motion vector predictors without the benefit of coded motion vector components outside the predictors. In certain other video coding techniques, there may be motion vector components applicable to the block of interest. 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.

[0071] 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 general controller (621), and an entropy encoder (625), which are coupled together as shown in FIG. 6.

[0072] The inter-encoder (630) is configured to receive a sample of a current block (e.g., a processing block), compare the block to one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-prediction information (e.g., a description of redundant information according to an inter-coding technique, motion vectors, merge mode information), and calculate an inter-prediction result (e.g., a predicted block) based on the inter-prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture that is decoded based on the encoded video information.

[0073] The intra encoder (622) is configured to receive samples of a current block (e.g., a processing block), possibly compare the block with previously coded blocks in the same picture, generate quantized coefficients after transformation, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). In one example, the intra encoder (622) also calculates intra prediction results (e.g., predicted blocks) based on the intra prediction information and a reference block in the same picture.

[0074] The generic controller (621) is configured to determine generic control data and control other components of the video encoder (603) based on the generic control data. In one example, the generic 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 an intra mode, the generic controller (621) controls the switch (626) to select an intra mode result 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, and if the mode is an inter mode, the generic controller (621) controls the switch (626) to select an inter prediction result 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.

[0075] The residual calculator (623) calculates the 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 to generate transform coefficients. In one example, the residual encoder (624) is configured to transform the residual data from the spatial domain to the frequency domain to generate transform coefficients. The transform coefficients are then subjected to a quantization process to obtain quantized transform coefficients. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is configured to perform an inverse transform to generate decoded residual data. The decoded residual data may be used by the intra-encoder (622) and the inter-encoder (630) as appropriate. For example, the inter-encoder (630) may generate a decoded block based on the decoded residual data and the inter-prediction information, and the intra-encoder (622) may generate a decoded block based on the decoded residual data and the intra-prediction information. In some examples, the decoded block may be appropriately processed to generate a decoded picture, and the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.

[0076] The entropy encoder (625) is configured to format a bitstream to include the encoded block. 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, in accordance with the disclosed subject matter, when coding a block in a merged sub-mode of either an inter mode or a bi-prediction mode, the residual information is not present.

[0077] 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) of the example of FIG. 3.

[0078] 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), which are coupled together as shown in FIG.

[0079] The entropy decoder (771) may be configured to reconstruct from the coded picture certain symbols that represent syntax elements that make up the coded picture. Such symbols may include, for example, the mode in which the block is coded (e.g., intra mode, inter mode, bi-predictive mode, etc., the latter two being merged or other submodes), prediction information (e.g., intra prediction information or inter prediction information, etc.) that may identify certain samples or metadata used for prediction by the intra decoder (772) or the inter decoder (780), respectively, and residual information, for example in the form of quantized transform coefficients. In one example, if the prediction mode is an inter mode or a bi-predictive mode, the inter prediction information is provided to the inter decoder (780), and if the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may be subjected to inverse quantization and provided to the residual decoder (773).

[0080] The inter decoder (780) is configured to receive the inter prediction information and to generate inter prediction results based on the inter prediction information.

[0081] The intra decoder (772) is configured to receive intra prediction information and to generate a prediction result based on the intra prediction information.

[0082] The residual decoder (773) is configured to perform inverse quantization to extract inverse quantized transform coefficients, and process the inverse quantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (to include Quantizer Parameters (QP)), which may be provided by the entropy decoder (771) (the data path not shown may be only low volume control information).

[0083] The reconstruction module (774) is configured to combine, in the spatial domain, the residual output by the residual decoder (773) and the prediction result (possibly output by the inter-prediction module or the intra-prediction module) to form a reconstructed block that may be part of a reconstructed picture, which may in turn be part of the reconstructed video. It should be noted that other suitable operations, such as a deblocking operation, may be performed to improve visual quality.

[0084] 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 one embodiment, 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 another embodiment, the video encoders (303), (503), and (503) and the video decoders (310), (410), and (710) may be implemented using one or more processors executing software instructions.

[0085] Aspects of the present disclosure disclose image and video coding techniques such as bi-prediction with context adaptive weights. For example, bi-prediction methods with context adaptive weights can be used for inter-coding.

[0086] The video coding format may include any suitable video coding format, for example, an open video coding format designed for video transmission over the Internet, such as the video coding format Alliance for Open Media (AOMedia) Video 1 (AV 1) or a next-generation AOMedia Video format beyond AV 1. The video coding standard may include the High Efficiency Video Coding (HEVC) standard, next-generation video coding beyond HEVC (e.g., Versatile Video Coding (VVC)), and the like.

[0087] In general, a picture is divided into blocks, and a block can be a unit for various processes such as coding, prediction, transformation, etc. Various block division techniques can be used.

[0088] FIG. 8 shows an example of a partitioning technique used in the video coding format VP 9 by AOMedia. For example, a picture (810) is partitioned into multiple blocks (820) of size 64×64 (e.g., 64 samples×64 samples). Furthermore, a four-way partitioning tree can start from the 64×64 level down to smaller blocks, and the lowest level can be a 4×4 level (e.g., block size of 4 samples×4 samples). In some examples, further restrictions can be applied for blocks 8×8 and below. In the example of FIG. 8, the 64×64 block (820) can be partitioned into smaller blocks using one of the first way (821), the second way (822), the third way (823), and the fourth way (824). The partitioning denoted as R (shown in the fourth way (824)) is referred to as a recursive partitioning in that the same partitioning tree can be repeated at a lower scale down to the lowest 4×4 level.

[0089] FIG. 9 shows an example of a partitioning technique used in AV1, designed for video transmission over the Internet. AV1 was developed as a successor to VP9. For example, a picture (910) is partitioned into multiple blocks (920) of size 128×128 (e.g., 128 samples×128 samples). Furthermore, a 10-way partitioning structure can be used starting from 128×128 to smaller blocks. In the example of FIG. 9, the 128×128 block can be partitioned into smaller blocks using one of the 10 ways (921)-(930). AV1 not only expands the partitioning tree to a 10-way structure, but also increases the maximum size (called a superblock in VP9 / AV1 terminology) to start from 128×128. The partitioning denoted as R (shown in way (929)) is referred to as a recursive partitioning in that the same partitioning tree can be repeated at a lower scale. The 10-way structure can include 4:1 and 1:4 rectangular partitions, as shown by (921) and (928). In one example, neither of the rectangular partitions can be further divided. Additionally, AV1 adds more flexibility to the use of partitions below 8x8 levels. For example, 2x2 chroma inter prediction is possible in certain cases.

[0090] In some examples, the block partition structure is called a coding tree. In one example (e.g., HEVC), the coding tree may have a quadtree structure, where each partition divides a larger square block into four smaller square blocks. In some examples, a picture is partitioned into coding tree units (CTUs), and then the CTUs are partitioned into smaller blocks using a quadtree structure. According to the quadtree structure, the coding tree units (CTUs) are partitioned into coding units (CUs) to adapt to different local characteristics. The decision of whether to code a picture region using inter-picture prediction (or inter-prediction) (temporal) or intra-picture prediction (or intra-prediction) (spatial) can be made at the CU level. Each CU can be further partitioned into one, two, or four prediction units (PUs) according to the PU partition type. Within one PU, the same prediction process is applied, and related information (e.g., prediction information) is transmitted to the decoder on a PU basis.

[0091] After obtaining the residual block by applying a prediction process based on the PU partition type, the CU may be partitioned into transform units (TUs) according to another quadtree structure. In the example of HEVC, there are several partition concepts, including CU, PU and TU. In some embodiments, a CU or TU can only have a square shape, while a PU may have a square or rectangular shape. In some embodiments, one coding block may be further partitioned into four square sub-blocks, and a transform is performed on each sub-block, i.e., TU. Each TU may be further partitioned recursively into smaller TUs using a quadtree structure called residual quadtree (RQT).

[0092] At picture boundaries, in some instances (eg, HEVC), implicit quadtree partitioning can be employed such that blocks maintain their quadtree partitioning until their size fits the picture boundary.

[0093] In some cases (e.g., VVC), the block partition structure may use a quadtree plus binary tree (QTBT) block partition structure. The QTBT structure can eliminate the concept of multiple partition types (CU, PU, ​​and TU concepts) and supports CU partition shapes more flexibly. In the QTBT block partition structure, a CU may have either a square or rectangular shape.

[0094] FIG. 10A shows a CTU (1010) that is divided by using the QTBT block partition structure (1020) shown in FIG. 10B. The CTU (1010) is first divided by a quadtree structure. The quadtree leaf nodes are further divided by a binary tree structure or a quadtree structure. In binary tree partitioning, there may be two partition types: symmetric horizontal partitioning (e.g., indicated as "0" in the QTBT block partition structure (1020)) and symmetric vertical partitioning (e.g., indicated as "1" in the QTBT block partition structure (1020)). A leaf node without further partitioning is called a CU, and the CU may be used for prediction and transform processing without further partitioning. Therefore, in the QTBT block partitioning structure, CUs, PUs, and TUs have the same block size.

[0095] In some examples (e.g., JEM), a CU may include coding blocks (CBs) of different color components. For example, in the case of P slices and B slices with 4:2:0 chroma format, one CU includes one luma CB and two chroma CBs. A CU may include a CB of a single color component. For example, in the case of an I slice, one CU includes only one luma CB or only two chroma CBs.

[0096] In some embodiments, the following parameters are defined for the QTBT block partitioning scheme: -CTU size: Root node size of the quadtree, e.g., the same concept as HEVC -MinQTSize: The minimum allowable quadtree leaf node size. -MaxBTSize: Maximum allowable binary tree root node size -MaxBTDepth: Maximum allowed binary tree depth -MinBTSize: The minimum allowable binary tree leaf node size.

[0097] In one example of a QTBT block partitioning structure, the CTU size is set as 128×128 luma samples with two corresponding 64×64 blocks of chroma samples, MinQTSize is set as 16×16, MaxBTSize is set as 64×64, MinBTSize (for both width and height) is set as 4×4, and MaxBTDepth is set as 4. Quad-tree partitioning is first applied to the CTU to generate quad-tree leaf nodes. The quad-tree leaf nodes may have sizes from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the leaf quad-tree node is 128×128, it is not further split by the binary tree because the size exceeds MaxBTSize (i.e., 64×64). Otherwise, the quad-tree node can be further split by the binary tree. Thus, a quadtree leaf node is also the root node of the binary tree and has the depth of the binary tree as zero.

[0098] When the binary tree depth reaches MaxBTDepth (i.e., 4), no further splits are considered. If the width of a binary tree node is equal to MinBTSize (i.e., 4), no further horizontal splits are considered. Similarly, if the height of a binary tree node is equal to MinBTSize, no further vertical splits are considered. Leaf nodes of the binary tree are further processed by the prediction and transformation process without further splitting. In one embodiment, the maximum CTU size is 256x256 luma samples.

[0099] In Figures 10A and 10B, solid lines indicate quadtree partitioning and dotted lines indicate binary tree partitioning. At each partition (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used. For example, 0 indicates horizontal partitioning and 1 indicates vertical partitioning. In the case of quadtree partitioning, there is no need to indicate the partition type because the quadtree partitioning can partition a block both horizontally and vertically to generate four sub-blocks with equal size.

[0100] In some embodiments, the QTBT block partitioning scheme supports the flexibility of luma and chroma having separate QTBT block partitioning structures. For example, for P slices and B slices, the luma blocks and chroma blocks in one CTU share the same QTBT block partitioning structure. However, for I slices, the luma CTB is partitioned into CUs by the QTBT block partitioning structure, and the chroma blocks are partitioned into chroma CUs by another QTBT block partitioning structure. Thus, a CU in an I slice consists of a coding block of a luma component or coding blocks of two chroma components, and a CU in a P slice or B slice consists of coding blocks of all three color components.

[0101] In some cases (e.g., HEVC), inter prediction is restricted for small blocks to reduce memory accesses for motion compensation, e.g., bi-prediction is not supported for 4x8 and 8x4 blocks, and inter prediction is not supported for 4x4 blocks.

[0102] Furthermore, in some instances (e.g., VCC), a multi-type tree (MTT) block partition structure is used. The MTT block partition structure is a more flexible tree structure than the QTBT block partition structure. In addition to quadtree and binary tree partitions, MTT can use ternary tree (TT) partitions. TT can include horizontal center side ternary tree partitions and vertical center side ternary tree partitions.

[0103] 11A shows an example of a vertical center-side ternary tree division, and FIG. 11B shows an example of a horizontal center-side ternary tree division. TT division can complement quadtree and binary tree division. For example, ternary tree division can capture objects located at the block center, while quadtree and binary tree divide across the block center. In one example, the width and height of the division by ternary tree are powers of two, so no further transform division is necessary.

[0104] The design of block partitions such as two-level trees is primarily motivated by reducing complexity. In theory, the complexity of traversing a tree is T D where T represents the number of split types and D is the depth of the tree.

[0105] Bi-prediction with CU level weighting (BCW) can be used in inter prediction. In one embodiment, such as HEVC, bi-prediction mode refers to an inter prediction mode in which a bi-prediction signal is generated by averaging two prediction signals obtained from two different reference pictures and / or using two different motion vectors. In one embodiment, such as VVC, bi-prediction mode is extended beyond averaging (with equal weights for the two prediction signals) to allow weighted averaging of two prediction signals, for example as shown in Equation 1 below. P bi-pred =((8-w)P0+w*P1+4)≫3 (1)

[0106] Referring to Equation 1, the bi-predictive signal P bi-pred For example, P0 and P1 are generated by averaging two prediction signals P0 and P1 from two different reference pictures. The weight w can be used to indicate the weights (8-w) and w in the two prediction signals P0 and P1, respectively.

[0107] A set of predefined weights can be used for the weight w. In one example, five weights are allowed in weighted average bi-prediction, and the weight w can be one of the values ​​−2, 3, 4, 5, and 10 (e.g., w∈{−2, 3, 4, 5, 10}). Specifically, when the weight w is 4, equal weighting is used in Equation 1, and when the weight is one of −2, 3, 5, and 10, unequal weighting is used in Equation 1.

[0108] For each bi-predictive CU, the weight w can be signaled in two ways: 1) for a non-merged CU, a weight index (e.g., a BCW weight index) can be signaled after the motion vector difference (MVD); 2) for a merged CU, a weight index can be inferred (e.g., inherited) from one or more neighboring blocks based on the merge candidate index.

[0109] In one example, the BCW mode is applied only to CUs with 256 or more luma samples (e.g., CU width multiplied by CU height is 256 or more). In one example, for low latency pictures, all five weights (e.g., −2, 3, 4, 5, and 10) are used. In one example, for non-low latency pictures, only a subset of five weights are used, such as three weights (e.g., 3, 4, 5, or w∈{3,4,5}).

[0110] In the encoder, a fast search algorithm may be applied to determine the weight index without significantly increasing the encoder complexity. An embodiment of the fast search algorithm may be described as follows.

[0111] When combined with an adaptive motion vector resolution (AMVR) mode, unequal weights (e.g., w is one of −2, 3, 5, and 10 in Equation 1) are conditionally checked only for 1-pixel and 4-pixel motion vector precisions if the current picture is a low-latency picture. For example, when the AMVR mode is used and the current picture is a low-latency picture, unequal weights are only applicable to 1-pixel and 4-pixel motion vector precisions, and thus 1-pixel and 4-pixel motion vector precisions can be checked. If another motion vector precision (e.g., ½, ¼, or ⅛) is used, equal weights (e.g., w=4) are used and unequal weights are not checked by the encoder.

[0112] In one example, when a BCW mode is combined with an affine mode, affine motion estimation (ME) can be performed for unequal weights only if the affine mode is selected as the current best mode.

[0113] In one example, unequal weights are only conditionally checked if the two reference pictures in bi-prediction are the same (P0 and P1 are from the same reference picture).

[0114] In one example, depending on the Picture Order Count (POC) distance between the current picture and the corresponding reference picture, the coding quantization parameter (QP), and the temporal level (e.g., the temporal domain layer of the current picture and the corresponding reference picture), unequal weights are not searched for if certain conditions are met.

[0115] The weight index may be coded using one context-coded bin (also referred to as the first context-coded bin) followed by further bins (also referred to as bypass-coded bins). The first context-coded bin may indicate whether equal weights (e.g., w=4) are used. If unequal weights are used, the further bins may be signaled using bypass coding to indicate which unequal weights are used.

[0116] In some examples, such as AVC, HEVC, and VVC, weighted prediction (WP) is used as a coding tool. WP can be used to efficiently code video content with fading. For each reference picture in the reference picture list L0, L1, weight parameters including weights and offsets used in WP can be signaled. During motion compensation, the weights and offsets of the corresponding reference pictures can be applied.

[0117] In some examples, according to WP, the inter-predicted signal P is replaced by a linear weighted predicted signal P′ (with weights w′ and offset o), eg according to Equation 2 below for uni-prediction: Uniform prediction: P'=w'×P+o Equation 2

[0118] In one example, in the case of bi-prediction, the inter-prediction signal P0 is for reference L0, the weight w0 and offset o0 are for reference L0, the inter-prediction signal P1 is for reference L1, the weight w1 and offset o1 are for reference L0, and the linear weighted prediction signal P' can be calculated according to Equation 3. Bi-prediction: P' = (w0 × P0 + o0 + w1 × P1 + o1) / 2 Equation 3

[0119] In some examples, the WP and BCW are designed for different types of video content. To avoid interactions between the WP and BCW that may complicate certain decoder designs, such as VVC decoder designs, when a CU uses a WP, the weight index used in the BCW is not signaled and the weight w can be inferred to be 4 (i.e., equal weights are applied). In one example, if one of the WP and BCW is applied to a block, the other of the WP and BCW is not applied to the block.

[0120] For example, for a merged CU predicted using normal merge mode or inherited affine merge mode, the BCW weight index can be inferred from neighboring blocks based on merge candidate indexes. For a CU predicted using constructed affine merge mode, the affine motion information can be constructed based on the motion information of up to three blocks. The BCW weight index in a CU using constructed affine merge mode can be set equal to the BCW weight index of the first control point MV.

[0121] In examples such as VVC, the combined intra-prediction (CIIP) mode and the BCW mode cannot be applied together for a CU. If the CU is coded in the CIIP mode, the BCW weight index of the current CU can be set to a value indicating equal weights (e.g., 2).

[0122] In some embodiments, a technique called Local Illumination Compensation (LIC) can be used for video coding. LIC is based on a linear model of illumination changes, using parameters such as a scaling factor denoted by "a" and an offset denoted by "b". It can be adaptively enabled or disabled for each inter-mode coded coding unit (CU).

[0123] In one embodiment, when LIC is applied to a CU, the scaling factor 'a' and offset 'b' may be derived using a least squares error method based on neighboring samples of the current CU and the corresponding reference samples.

[0124] Figure 12 shows a diagram of neighboring samples of a current CU (1200) and a reference block (1210) for the current CU (1200). In the example of Figure 12, the neighboring samples of the current CU (1200) and the reference block (1210) are subsampled, for example, using 2:1 subsampling. In one example, subsampled (e.g., 2:1 subsampling) neighboring samples of the current CU (1200) and corresponding samples in the reference picture identified by motion information of the current CU (1200) or a sub-CU are used.

[0125] Illumination compensation (IC) parameters (eg, scaling factor "a" and offset "b") can be derived and applied separately for each prediction direction.

[0126] In one example, when the current CU is coded in merge mode, the LIC flag is copied from the neighboring block in a manner similar to copying motion information in merge mode. In another example, the LIC flag is signaled to the CU to indicate whether LIC is applied or not.

[0127] In some embodiments, when LIC is enabled for a picture, a further CU level rate-distortion (RD) check is performed to determine whether to apply LIC to a CU. When LIC is enabled for a CU, the mean removed sum of absolute differences (MR-SAD) and the mean removed sum of absolute Hadamard transformed differences (MR-SATD) can be used instead of the sum of absolute differences (SAD) and the sum of absolute Hadamard transformed differences (SATD) for integer pixel based motion search and fractional pixel based motion search, respectively.

[0128] To reduce coding complexity, the following coding scheme is applied in examples such as JEM: If there is no obvious illumination change between the current picture and the corresponding reference picture, LIC can be disabled for the entire picture. To identify the above situation, the histograms of the current picture and each reference picture of the current picture can be calculated in the encoder. If the respective histogram differences between the current picture and all reference pictures of the current picture are smaller than a threshold (e.g., a predetermined threshold), LIC is disabled for the current picture. Otherwise, LIC is enabled for the current picture.

[0129] In some examples, such as the BCW mode, the weights (also called weight values) applied to the two predictive blocks (e.g., w and / or (8-w) in Equation 1) are explicitly signaled or inherited from neighboring blocks (e.g., spatially neighboring blocks and / or temporally neighboring blocks). On the other hand, since the weights (e.g., w and / or (8-w) in Equation 1) reflect a linear relationship between the current block and the predictive block (e.g., forward predicted block and backward predicted block), neighboring reconstructed samples (also called reconstructed samples) of the current block and the predictive block can be correlated with similar weights. Thus, neighboring reconstructed samples of the current block and the predictive block can be used to determine (e.g., estimate) the weights, e.g., to save signaling overhead.

[0130] In this disclosure, a predictive block is also referred to as a reference block, and a predictive block (or reference block) in a current block being reconstructed may include a first predictive block (or a first reference block) in a first reference picture and a second predictive block (or a second reference block) in a second reference picture. The current block is in a current picture. The current picture is different from the first reference picture, and the current picture is different from the second reference picture. The first reference picture may be different or the same as the second reference picture. In some examples, one of the first predictive block and the second predictive block is a forward predictive block, and the other of the first predictive block and the second predictive block is a backward predictive block. In some examples, the first predictive block and the second predictive block are forward predictive blocks. In some examples, the first predictive block and the second predictive block are backward predictive blocks.

[0131] The adjacent reconstructed samples of the current block, the first predictive block (e.g., a forward or backward predictive block) of the current block, and the second predictive block (e.g., a forward or backward predictive block) of the current block may each be referred to as a template (or the current template of the current block, the template (or the first template) of the first predictive block, and the template (or the second template) of the second predictive block).

[0132] 13 illustrates an example of templates for a current block (1300) and predicted blocks (or reference blocks) (1301)-(1302) according to an embodiment of the present disclosure. The template (1323) of the current block (1300) includes adjacent reconstructed samples of the current block (1300), such as adjacent reconstructed samples in the top row (1313) and left column (1314) of the current block (1300), which are above and to the left of the current block (1300), respectively. The template (1321) of the first reference block (1301) and the template (1325) of the second reference block (1302) correspond to the template (1323) of the current block (1300). Specifically, in the example shown in FIG. 13, the template (1321) includes adjacent reconstructed samples of the first reference block (1301), such as adjacent reconstructed samples in the top row (1311) and left column (1312) of the first reference block (1301) that are above and to the left of the first reference block (1301), respectively. The template (1325) includes adjacent reconstructed samples of the second reference block (1302), such as adjacent reconstructed samples in the top row (1315) and left column (1316) of the second reference block (1302) that are above and to the left of the second reference block (1302), respectively. A first motion vector (MV) (MV0) points to the first reference block (1301) in the first reference picture, and a second MV (MV1) points to the second reference block (1302) in the second reference picture. MV0 may be referred to as a forward MV if the first reference picture is a forward reference picture and the first reference block (1301) is a forward predicted block. MV0 may be referred to as a backward MV if the first reference picture is a backward reference picture and the first reference block (1301) is a backward predicted block. MV1 may be a forward MV or a backward MV depending on the second predicted block (1302) or the second reference picture, similar to the description in relation to MV0.

[0133] FIG. 13 illustrates a template including a top row and a left column of a current block and a predictive block. A template of a block, such as the current block or one of the predictive blocks, may include any suitable neighboring reconstructed samples of the block. According to aspects of the present disclosure, a template of a block may include any suitable spatially neighboring reconstructed samples of the block. A template of a block may include a top left sample above and to the left of the block, a top row above the block, a left column to the left of the block, and / or neighboring samples in other suitable locations relative to the block. A template of a block may include reconstructed samples that are neighboring the block and / or reconstructed samples that are not neighboring the block.

[0134] According to aspects of the present disclosure, the shapes of the templates (1323), (1321), and (1325) of the current block (1300), the first reference block (1301), and the second reference block (1302), respectively, may be identical. The relative positions of the templates (1323), (1321), and (1325) with respect to the corresponding current block (1300), the first reference block (1301), and the second reference block (1302) may be identical. The number of adjacent reconstructed samples in each of the templates (1321), (1323), and (1325) may be identical. For example, template (1323) includes a top row (1313) and a left column (1314) adjacent to the current block (1300), template (1321) includes a top row (1311) and a left column (1312) adjacent to the first reference block (1301), and template (1325) includes a top row (1315) and a left column (1316) adjacent to the second reference block (1302).

[0135] As described in Equation 1, when a bi-predictive motion compensation mode is applied to predict the current block, the samples in the current block (e.g., the sample values ​​are the bi-predictive signal P bi-pred(e.g., the sample values ​​represented by prediction signal P0) and the second prediction block (e.g., the sample values ​​represented by prediction signal P1) may be predicted based on a weighted average of corresponding samples in the first prediction block (e.g., the sample values ​​represented by prediction signal P0) and the second prediction block (e.g., the sample values ​​represented by prediction signal P1). According to aspects of the present disclosure, the weights (e.g., the weights w in Equation 1) used in the bi-predictive motion compensation mode may be determined based on a current neighboring reconstructed sample (or current template) of the current block, a first neighboring reconstructed sample (or first template) of the first prediction block, and / or a second neighboring reconstructed sample (or second template) of the second prediction block. Referring to Figure 13, the weights used in the bi-predictive motion compensation mode may be determined based on a current neighboring reconstructed sample of the current block (e.g., template (1323)), a first neighboring reconstructed sample of the first predictive block (e.g., template (1321) of the first reference block (1301)), and / or a second neighboring reconstructed sample of the second predictive block (e.g., template (1325) of the second reference block (1302)).

[0136] In one example, the entire current template of the current block, the entire first template of the first predictive block, and / or the entire second template of the second predictive block are used in determining the weights. In one example, a subset of samples in the current template of the current block, a subset of samples in the first template of the first predictive block, and / or a subset of samples in the second template of the second predictive block are used in determining the weights.

[0137] According to an aspect of the present disclosure, a first weight (e.g., (8-w) in Equation 1) in a first prediction block and a second weight (e.g., w in Equation 1) in a second prediction block are used to predict a current block (e.g., using Equation 1) in a bi-predictive motion compensation mode. In general, when a weight used in a bi-predictive motion compensation mode is determined, the first weight and the second weight can be determined based on a relationship between the weight and the first weight and / or a relationship between the weight and the second weight. The first weight and the second weight can be mutually dependent, for example, the sum of the first weight and the second weight is a constant. Thus, when the first weight or the second weight is determined, the other weight is also determined based on the relationship between the first weight and the second weight. In one example, the weight used in the bi-predictive motion compensation mode is the first weight. Thus, when the weight is determined, the second weight is also determined. In one example, the weight used in the bi-predictive motion compensation mode is the second weight. Thus, when the weight is determined, the first weight is also determined.

[0138] According to an aspect of the present disclosure, a weight used in a bi-predictive motion compensation mode (e.g., weight w in Equation 1) may be determined based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of the first predictive block, and a second neighboring reconstructed sample of the second predictive block.

[0139] Furthermore, the samples in the current block may be reconstructed based on a weighted average of corresponding samples in the first prediction block and the second prediction block using the determined weights.

[0140] In a bi-predictive motion compensation mode, the weight (or weight value) applied to a predictive block (e.g., a forward and / or backward predicted block) may depend on neighboring reconstructed samples, including but not limited to the current block, the first predictive block, and / or the second predictive block.

[0141] In one embodiment, neighboring reconstructed samples of a current block (or a current template) and neighboring reconstructed samples of a predictive block (e.g., a forward and / or backward predicted block) (or a first template and / or a second template) are used to derive index values ​​associated with each of the predefined weights (or weight values), e.g., stored in the encoder and / or decoder.

[0142] In one embodiment, a group of weights (or weight values) may be predefined in the encoder and decoder, and the group is referred to as the predefined weights. The group of weights may be ranked based on a current template of the current block, a first template of the first predictive block, and / or a second template of the second predictive block. In one example, the group of weights is ranked based on a current template of the current block, a first template of the first predictive block, and a second template of the second predictive block. An encoder-side ranking index (e.g., index value) may be associated with each weight based on the ranking, and thus an encoder-side ranking index may be associated with each of the ranked predefined weights. The weights to be used in the bi-predictive motion compensation mode may be selected based on the ranking. Then, in the encoder, the corresponding ranking index (e.g., index value) associated with the selected weight may be signaled in the video bitstream. For example, the predefined weights include five different weights a0, b0, c0, d0, and e0. Based on the template of the current block, the first template, and the second template, the predefined weights may be ranked into ranked predefined weights d0, a0, b0, e0, and c0 associated with ranking indexes 0, 1, 2, 3, and 4. The encoder may determine, for example, based on the rankings that weight d0 associated with ranking index 0 should be used in a bi-predictive motion compensation mode. Then, in the encoder, ranking index 0 is signaled in the video bitstream.

[0143] In the decoder, the same ranking process as the encoder can be performed for the predefined weights. Specifically, the predefined weights stored in the decoder can be ranked based on the current template of the current block, the first template of the first predicted block, and / or the second template of the second predicted block. A decoder-side ranking index (e.g., index value) can be associated with each weight based on the ranking, and thus a decoder-side ranking index can be associated with each of the ranked predefined weights. The coded index values ​​in the video bitstream can be decoded. The weights associated with the decoded index values ​​can be determined or derived based on the decoder-side ranking index and the associated ranked predefined weights. The determined weights can then be used in a bi-predictive motion compensation mode. For example, the predefined weights include five different weights a0, b0, c0, d0, and e0. Based on the template of the current block, the first template, and the second template, the predefined weights can be ranked into ranked predefined weights d0, a0, b0, e0, and c0 associated with ranking indexes 0, 1, 2, 3, and 4. The decoded index value 0 is associated with a weight d0. The decoder may determine that the weight d0 associated with the ranking index 0 should be used in a bi-predictive motion compensation mode. Then, in the decoder, the determined weight d0 is used in the bi-predictive motion compensation mode. In one example, the first weight and / or the second weight are determined based on the determined weight d0 and are further used to predict the current block.

[0144] In general, the sets of weights in the first and second predictive blocks are interdependent, such as the first weight (8-w) in the first predictive block and the second weight w in the second predictive block used in Equation 1. Thus, the set of weights can be determined based on the first weight or the second weight. In one embodiment, in both the encoder and the decoder, the first weight and / or the second weight can be selected from a group of predefined weights based on a predefined cost measure. The predefined cost measure can be performed (e.g., calculated) using a current template of the current block, a first template of the first predictive block, and / or a second template of the second predictive block. In one embodiment, the selected weights (e.g., the first weight and / or the second weight) are not signaled in the video bitstream. The selected weights can be used in a bi-predictive motion compensation mode. Referring to Equation 1, once the first weight or the second weight is determined or selected based on a predefined cost measure, the other weight is also determined based on a relationship between the first weight and the second weight. Thus, a set of weights for the first and second predictive blocks may be determined, such as weight (8-w) for the first predictive block and weight w for the second predictive block.

[0145] In one embodiment, in both the encoder and the decoder, the first weight and / or the second weight can be directly calculated using a current template of the current block, a first template of the first predicted block, and / or a second template of the second predicted block. In one example, the first weight and / or the second weight are directly calculated using a current template of the current block, a first template of the first predicted block, and a second template of the second predicted block.

[0146] In one example, the first weight and / or the second weight are derived using a minimum mean square error (MSE) based on a current template of the current block, a first template of the first predicted block, and / or a second template of the second predicted block. Specifically, vectors x, y, and z are used to represent adjacent reconstructed samples in the first template, the second template, and the current template, respectively.

number

number

number

number

number

[0147] In one example, the first weight and / or the second weight are derived using a minimum mean square error based on a current template for the current block, a first template for the first predicted block, and / or a second template for the second predicted block.

number

number

number

number

number

number

number

[0148] In one embodiment, if the MV in one of the reference blocks points to a fractional position in the reference picture, the neighboring reconstructed samples of the reference block can be generated using another MV (called a template that generates the MV) with a different MV resolution (or precision), such as integer MV resolution. With reference to FIG. 13, if the first MV (MV0) in the first reference block (1301) points to a fractional position in the first reference picture, the neighboring reconstructed samples in the template (1321) are generated using a first template that generates a MV with a different MV resolution than the MV resolution of the first MV. If the second MV (MV1) in the second reference block (1302) points to a fractional position in the second reference picture, the neighboring reconstructed samples in the template (1325) are generated using a second template that generates a MV with a different MV resolution than the MV resolution of the second MV.

[0149] In one embodiment, a template that generates a MV that specifies a corresponding template for deriving weights used in a bi-predictive motion compensation mode can have an MV resolution equal to or less than the MV resolution of a MV that points from a current block to a corresponding reference block. For example, a first template that generates a MV that specifies a first template can have an MV resolution equal to or less than the MV resolution of a first MV that points from a current block to a first predicted block. A second template that generates a MV that specifies a second template can have an MV resolution equal to or less than the MV resolution of a second MV that points from a current block to a second predicted block. In one example, the MV resolution of the first MV (or the second MV) is 1 / 8 pixel precision or 1 / 16 pixel precision, and the MV resolution of the first template that generates a MV related to the first template (or the second template that generates a MV related to the second template) is 1 / 4 pixel precision, 1 / 2 pixel precision, or integer pixel (1-pixel) precision.

[0150] In one embodiment, the MVs specifying adjacent samples for deriving weights used in a bi-predictive motion compensation mode, such as a first template for generating an MV associated with the first template and / or a second template for generating an MV associated with the second template, have integer pixel resolution.

[0151] In one embodiment, MVs specifying adjacent samples for deriving weights used in a bi-predictive motion compensation mode, such as a first template for generating an MV associated with a first template and / or a second template for generating an MV associated with a second template, may have either integer pixel (1 pixel) resolution or half pixel (1 / 2) resolution.

[0152] In one embodiment, the MVs specifying adjacent samples for deriving weights used in a bi-predictive motion compensation mode, such as a first template for generating an MV associated with a first template and / or a second template for generating an MV associated with a second template, may be of either integer, half pixel, or quarter pixel resolution.

[0153] In one embodiment, the MVs specifying adjacent samples for deriving weights used in a bi-predictive motion compensation mode, such as a first template generating an MV related to the first template and / or a second template generating an MV related to the second template, may be derived by rounding the first MV and / or the second MV to a predetermined MV resolution. Examples of the predetermined MV resolution may include, but are not limited to, 4-pixel MV resolution, 2-pixel MV resolution, integer pixel MV resolution, half pixel MV resolution, ¼ pixel MV resolution, and ⅛ pixel MV resolution.

[0154] According to aspects of the present disclosure, for a current block predicted using a bi-predictive motion compensation mode, the set of weights used in the bi-predictive motion compensation mode can be (i) derived using neighboring reconstructed samples of the current block, the first reference block, and / or the second reference block, (ii) explicitly signaled, e.g., for blocks not coded by merge mode, e.g., for use in BCW mode, or (iii) inherited from neighboring blocks of the current block, e.g., for use in BCW mode, e.g., for blocks coded by merge mode, as described in this disclosure. A selection among the above three methods (i)-(iii) can be signaled for the current block.

[0155] In one example, the choice between method (i) and method (ii) is signaled with respect to the current block.

[0156] In one example, the choice between method (i) and method (ii) is signaled for a current block that is not coded by the merge mode.

[0157] In one example, the choice between method (i) and method (iii) is signaled with respect to the current block.

[0158] In one example, the choice between method (i) and method (iii) is signaled with respect to a current block coded by merge mode.

[0159] FIG. 14 shows a flow chart outlining a process (1400) according to an embodiment of the present disclosure. The process (1400) may be used in the reconstruction of a block to generate a prediction block for the block being reconstructed. The block may be any suitable block, such as a CB, CU, PB, TB, TU, luma block, chroma block, etc. In various embodiments, the process (1400) is performed by a processing circuit in the terminal devices (210), (220), (230), and (240), a processing circuit performing the function of a video encoder (303), a processing circuit performing the function of a video decoder (310), a processing circuit performing the function of a video decoder (410), a processing circuit performing the function of a video encoder (503), etc. In some embodiments, the process (1400) is implemented in software instructions, and thus the processing circuit performs the process (1400) when the processing circuit executes the software instructions. The process starts at (S1401) and proceeds to (S1410).

[0160] At (S1410), coded information for a current block may be decoded from the coded video bitstream. The coded information may indicate a bi-predictive motion compensation mode for the current block. Based on the bi-predictive motion compensation mode, samples in the current block may be predicted based on a weighted average of samples in two predictive blocks of the current block. The two predictive blocks may include a first predictive block having a first weight and a second predictive block having a second weight.

[0161] In one example, the current adjacent reconstructed sample of the current block, the first adjacent reconstructed sample of the first predictive block, and the second adjacent reconstructed sample of the second predictive block are spatially adjacent reconstructed samples of the current block, the first predictive block, and the second predictive block, respectively.

[0162] The first predictive block may be in a first reference picture and the second predictive block may be in a second reference picture. In one example, the second reference picture is different from the first reference picture. In one example, the first reference picture is the same as the second reference picture.

[0163] In one example, an index value in the coding information is decoded.

[0164] In (S1420), weights (e.g., a first weight, a second weight, or a parameter that can indicate the first weight and the second weight) to be used in the bi-predictive motion compensation mode can be determined based on the current adjacent reconstructed sample (or current template) of the current block, the first adjacent reconstructed sample (or first template) of the first predictive block, and the second adjacent reconstructed sample (or second template) of the second predictive block.

[0165] In one embodiment, the weight is one of the predefined weights stored in the decoder.

[0166] In one example, the predetermined weights may be ranked based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of the first predicted block, and a second neighboring reconstructed sample of the second predicted block. Each of the ranked predetermined weights may be associated with a unique ranking index. The decoded index value may correspond to one of the ranking indexes. Furthermore, the weight may be determined to be one of the ranked predetermined weights associated with one of the ranking indexes.

[0167] In one example, one of the predetermined weights can be selected to be a weight based on a predetermined cost measure performed using a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0168] In one example, the weights are calculated based on the current adjacent reconstructed sample of the current block, the first adjacent reconstructed sample of the first predictive block, and the second adjacent reconstructed sample of the second predictive block, as described using Equations 4-7.

[0169] At (S1430), the samples in the current block may be reconstructed based on a weighted average of corresponding samples in the first and second predicted blocks using the determined weights. The process (1400) then proceeds to (S1499) and ends.

[0170] FIG. 15 shows a flow chart outlining a process (1500) according to an embodiment of the present disclosure. The process (1500) can be used in coding a block. The block can be any suitable block, such as a CB, CU, PB, TB, TU, luma block, chroma block, etc. In various embodiments, the process (1500) is performed by a processing circuit, such as a processing circuit of the terminal devices (210), (220), (230), and (240), a processing circuit performing the function of the video decoder (303), a processing circuit performing the function of the video decoder (503), etc. In some embodiments, the process (1500) is implemented by software instructions, and thus the processing circuit performs the process (1500) when the processing circuit executes the software instructions. The process starts at (S1501) and proceeds to (S1510).

[0171] At (S1510), a bi-predictive motion compensation mode for coding the current block may be determined by the encoder.

[0172] In (S1520), the weights used in the bi-predictive motion compensation mode can be determined based on a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0173] In one example, the current adjacent reconstructed sample of the current block, the first adjacent reconstructed sample of the first predictive block, and the second adjacent reconstructed sample of the second predictive block are spatially adjacent reconstructed samples of the current block, the first predictive block, and the second predictive block, respectively.

[0174] The first predictive block may be in a first reference picture and the second predictive block may be in a second reference picture. In one example, the second reference picture is different from the first reference picture. In one example, the first reference picture is the same as the second reference picture.

[0175] In one example, the weights are calculated based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of the first predictive block, and a second neighboring reconstructed sample of the second predictive block.

[0176] In one embodiment, the weight is one of the predefined weights stored in the encoder.

[0177] In one example, the predefined weights are ranked based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of the first predicted block, and a second neighboring reconstructed sample of the second predicted block. Each of the ranked predefined weights may be associated with a unique ranking index. The weight may be determined to be one of the ranked predefined weights.

[0178] In one example, one of the predetermined weights can be selected to be a weight based on a predetermined cost measure performed using a current adjacent reconstructed sample of the current block, a first adjacent reconstructed sample of the first predictive block, and a second adjacent reconstructed sample of the second predictive block.

[0179] At (S1530), information about the current block may be coded in the video bitstream. The coded information may indicate a bi-predictive motion compensation mode of the current block.

[0180] In one example, the index value is encoded in the coding information, in which case the index value may be one of the ranking indexes associated with the weight. The process (1500) proceeds to (S1599) and ends.

[0181] Process (1400) and / or process (1500) may be adapted as appropriate. Steps in process (1400) and / or process (1500) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used. In one example, the embodiment is extended to weighted prediction including more than two prediction blocks. For example, a sample in a current block may be predicted based on a weighted average of samples in M ​​prediction blocks of the current block, where M is an integer greater than 2. Each of the M prediction blocks may have a weight. The weights of the M prediction blocks may be determined using any suitable method described in this disclosure.

[0182] The embodiments of the present disclosure may be used separately or combined in any order. Furthermore, each of the methods (or embodiments), the encoder, and the decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium. The embodiments of the present disclosure may be applied to a luma block or a chroma block.

[0183] The techniques described above may be implemented as computer software using computer-readable instructions physically stored on one or more computer-readable media. For example, Figure 16 illustrates a computer system (1600) suitable for implementing certain embodiments of the disclosed subject matter.

[0184] The computer software may be coded using any suitable machine code or computer language that may undergo assembly, compilation, linking, or similar mechanisms to produce code containing instructions that may be executed, such as by one or more computer central processing units (CPUs) and graphics processing units (GPUs), either directly, or through interpretation and execution of microcode.

[0185] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, and Internet of Things devices.

[0186] 16 with respect to computer system (1600) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, 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 (1600).

[0187] The computer system (1600) may include certain human interface input devices. Such human interface input devices may be responsive to input by one or more human users, for example, via tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not shown). Human interface devices may also be used to capture certain media not necessarily directly associated with conscious human input, such as audio (speech, music, ambient sounds, etc.), images (scanned images, photographic images obtained from still image cameras, etc.), and video (two-dimensional video, three-dimensional video including stereoscopic video, etc.).

[0188] The input human interface devices may include one or more of a keyboard (1601) (only one of each is depicted), a mouse (1602), a trackpad (1603), a touch screen (1610), a data glove (not shown), a joystick (1605), a microphone (1606), a scanner (1607), and a camera (1608).

[0189] The computer system (1600) 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 touchscreen (1610), data gloves (not shown), or joystick (1605), although there may also be haptic feedback devices that do not function as input devices), audio output devices (such as speakers (1609), headphones (not depicted)), visual output devices (such as screens (1610), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touchscreen input capability, each with or without haptic feedback capability, some capable of outputting two-dimensional visual output, or output in more than three dimensions through means such as stereoscopic output, i.e., virtual reality glasses (not depicted), holographic displays, and smoke tanks (not depicted)), and printers (not depicted).

[0190] The computer system (1600) may also include human-accessible storage devices and their associated media, such as optical media (1621), including CD / DVD ROM / RW (1620) with CD / DVD or similar media, thumb drives (1622), removable hard drives or solid state drives (1623), legacy magnetic media such as tapes and floppy disks (not shown), and dedicated ROM / ASIC / PLD based devices such as security dongles (not shown).

[0191] Additionally, those skilled in the art should understand that the term "computer-readable medium" as used in connection with the subject matter of this disclosure does not encompass transmission media, carrier waves, or other transitory signals.

[0192] The computer system (1600) may also include an interface (1654) to one or more communications networks (1655). The networks may be, for example, wireless, wired, optical. The networks may further be local, wide area, metropolitan, vehicular and industrial, real-time, delay tolerant, etc. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicular and industrial networks including CANBus, and many others. Certain networks typically require an external network interface adapter attached to a particular general-purpose data port or peripheral bus (1649) (e.g., a USB port on the computer system (1600)), while others are typically integrated into the core of the computer system (1600) by attachment to a system bus as described below (e.g., an Ethernet interface to a PC computer system, or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (1600) may communicate with other entities. Such communications may be unidirectional and receive only (e.g., broadcast TV), unidirectional and transmit only (e.g., CANbus to certain CANbus devices), or bidirectional, for example, to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks may be used with each of these networks and network interfaces, as described above.

[0193] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (1640) of the computer system (1600).

[0194] The cores (1640) may include one or more central processing units (CPUs) (1641), graphics processing units (GPUs) (1642), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1643), hardware accelerators for specific tasks (1644), and graphics adapters (1650). These devices may be connected via a system bus (1648), along with read-only memory (ROM) (1645), random access memory (1646), and internal mass storage (1647) such as an internal hard drive or SSD that is not user accessible. In some computer systems, the system bus (1648) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, and the like. Peripheral devices may be attached directly to the core's system bus (1648) or through a peripheral bus (1649). In one example, a screen (1610) may be connected to the graphics adapter (1650). Peripheral bus architectures include PCI and USB.

[0195] The CPU (1641), GPU (1642), FPGA (1643), and accelerator (1644) may combine to execute certain instructions that may constitute the aforementioned computer code. The computer code may be stored in ROM (1645) or RAM (1646). Transient data may also be stored in RAM (1646), while permanent data may be stored, for example, in internal mass storage device (1647). Rapid storage and retrieval to any of the memory devices may be enabled through the use of cache memory, which may be closely associated with one or more of the CPU (1641), GPU (1642), mass storage (1647), ROM (1645), RAM (1646), etc.

[0196] The computer-readable medium may bear computer code for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or they may be of the type well known and available to those skilled in the computer software arts.

[0197] By way of example and not of limitation, the computer system (1600) having the architecture, and specifically the core (1640), may provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be user-accessible mass storage devices as described above, as well as media associated with the core's (1640) specific storage device of a persistent nature, such as the core's internal mass storage device (1647) or ROM (1645). Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the core (1640). The computer-readable media may include one or more memory devices or chips, depending on the particular needs. The software may cause the core (1640), and specifically the processor (including a CPU, GPU, FPGA, etc.) therein, to perform a particular process or a particular portion of a particular process as described herein. The process may include defining data structures stored in RAM (1646) and modifying such data structures according to the process defined by the software. Additionally, or alternatively, the computer system may provide functionality as a result of logic circuitry, hardwired or otherwise embodied in circuitry (e.g., accelerator (1644)), which may operate in place of or in conjunction with software to perform particular processes or portions of particular processes described herein. References to software may encompass logic circuitry, and vice versa, where appropriate. Where appropriate, references to computer-readable media may encompass circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry that embodies logic for execution, or both. The present disclosure encompasses any suitable combination of hardware and software. Appendix A: Acronyms JEM: Joint Exploration Model VVC: Versatile Video Coding BMS: Benchmark Set MV: Motion Vector HEVC: High Efficiency Video Coding SEI: Supplemental Enhancement Information VUI: Video Usability Information GOP: Group of Pictures TU: conversion unit PU: Prediction Unit CTU: Coding Tree Unit CTB: coding tree block PB: Predicted block HRD: Hypothetical Reference Decoder SNR: Signal to Noise Ratio CPU: Central Processing Unit GPU: Graphics Processing Unit CRT: cathode ray tube LCD: Liquid crystal display OLED: Organic Light Emitting Diode CD:Compact Disc DVD: Digital Video Disc ROM: Read-only memory RAM: Random Access Memory ASIC: Application Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile Communications LTE: Long Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Area SSD: Solid State Drive IC: Integrated Circuit CU: coding unit

[0198] While this disclosure has described several exemplary embodiments, there are modifications, substitutions, and various substitute equivalents which are 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 which, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within its spirit and scope. [Explanation of symbols]

[0199] 101 Current Block 200 Communication Systems 210 Terminal Devices 220 Terminal Devices 230 Terminal Devices 240 Terminal Devices 250 Communication Network 300 Communication Systems 301 Video Source 302 Stream 303 Video Encoder 304 Video Data 305 Streaming Server 306 Client Subsystem 307 Video data, input copy 310 Video Decoder 311 Output Stream 312 Display 313 Capture Subsystem 320 Electronic Devices 330 Electronic Devices 401 Channel 410 Video Decoder 412 Render Device 415 Buffer Memory 420 Parser 421 Symbols 430 Electronic Devices 431 Receiver 451 Reverse conversion unit 452 Intra-picture Prediction Unit 453 Motion Compensation Prediction Unit 455 Aggregator 456 Loop Filter Unit 457 Reference Picture Memory 458 Current Picture Buffer 501 Video Sources 503 Video Encoder 520 Electronic Devices 530 Source Coder 532 Coding Engine 533 Local Video Decoder, Local Decoder 534 Reference Picture Memory, Reference Picture Cache 535 Predictors 540 Transmitter 543 Video Sequences 545 Entropy Coder 550 Controller 560 Communication Channels 603 Video Encoder 621 General-purpose controller 622 Intra Encoder 623 Residual Calculator 624 Residual Encoder 625 Entropy Encoder 626 Switch 628 Residual Decoder 630 InterEncoder 710 Video Decoder 771 Entropy Decoder 772 Intra Decoder 773 Residual Decoder 774 Reconstruction Module 780 Inter Decoder 810 Pictures 820 Block 821 First Way 822 Second Way 823 The Third Way 824 The Fourth Way 910 Pictures 920 Block 921 Way 922 Way 923 Way 924 Way 925 Way 926 Way 927 Way 928 Way 929 Split Way 930 Way 1010 CTU 1020 QTBT block division structure 1210 Reference Block 1300 current block 1301 First Reference Block 1302 Second Reference Block 1311 Top row 1312 Left row 1313 Top row 1314 Left row 1315 Top row 1316 Left row 1321 Templates 1323 Templates 1325 Templates 1400 Processes 1500 processes 1600 Computer Systems 1601 Keyboard 1602 Mouse 1603 Trackpad 1605 Joystick 1606 Mike 1607 Scanner 1608 Camera 1609 Audio Output Device Speaker 1610 Touch Screen 1621 Optical Media 1622 Thumb Drive 1623 Solid State Drive 1640 cores 1643 Field Programmable Gate Area, FPGA 1644 Hardware Accelerator 1645 Read-only memory, ROM 1646 Random Access Memory, RAM 1647 Core Internal Mass Storage 1647 Internal Mass Storage 1648 System Bus 1649 Peripheral bus, peripheral bus 1650 Graphics Adapter 1654 Interface 1655 Communication Network

Claims

1. 1. A method for video decoding performed by a decoder, comprising: decoding coded information for a current block from a coded video bitstream, the coded information indicating a bi-predictive motion compensation mode for the current block; ranking a plurality of predefined weights used in the bi-predictive motion compensation mode based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of a first predictive block, and a second neighboring reconstructed sample of a second predictive block; selecting one of the plurality of ranked predefined weights based on an index included in the coded information for specifying one weight among the plurality of ranked predefined weights to be used in the bi-predictive motion compensation mode; reconstructing samples in the current block based on a weighted average of corresponding samples in the first prediction block and the second prediction block using the selected weights; The method includes:

2. The method of claim 1 , wherein the plurality of predetermined weights are stored in the decoder.

3. The step of decoding further comprises the step of decoding the index included in the coded information; each of the ranked plurality of predetermined weights is associated with a unique ranking index, and the decoded index corresponds to one of the ranking indexes; The method of claim 1 , wherein the selected weight is one of the ranked pre-determined weights associated with the one of the ranking indexes.

4. 4. The method according to claim 1, wherein the current neighboring reconstructed sample of the current block, the first neighboring reconstructed sample of the first predictive block, and the second neighboring reconstructed sample of the second predictive block are spatially neighboring reconstructed samples of the current block, the first predictive block, and the second predictive block, respectively.

5. 5. The method of claim 1, wherein the first predictive block is in a first reference picture and the second predictive block is in a second reference picture different from the first reference picture.

6. A computer program product for causing at least one processor to carry out the method according to any one of claims 1 to 5.

7. 6. Apparatus comprising processing circuitry configured to perform the method of any one of claims 1 to 5.

8. 1. A method for video encoding performed by an encoder, comprising: determining a bi-predictive motion compensation mode for encoding a current block in a video bitstream; determining, based on a current neighboring reconstructed sample of the current block, a first neighboring reconstructed sample of a first predictive block, and a second neighboring reconstructed sample of a second predictive block, that one weight of a plurality of ranked predefined weights is a weight to be used in the bi-predictive motion compensation mode; encoding an index associated with the one weight into a video bitstream, the index being used to specify one weight among the ranked predetermined weights to be used in the bi-predictive motion compensation mode; The method includes:

9. A computer program product for causing at least one processor to carry out the method of claim 8.

10. 9. An apparatus comprising processing circuitry configured to perform the method of claim 8.

Citation Information

Patent Citations

  • Encoder, encoding method, decoder and decoding method

    JP2018056699A

  • Method and Apparatus for Adaptive Inter Prediction in Video Coding

    JP2018530221A

  • Systems and methods for generalized multi-hypothesis prediction for video coding

    JP2019519148A

  • System and method for adaptively determining template size for illumination compensation

    JP2019531029A