METHOD AND APPARATUS FOR VIDEO CODING - Patent application

The video encoding/decoding apparatus addresses local changes in video coding by using filter operations to enhance intra-prediction and motion compensation, improving compression efficiency and quality.

JP7776204B2Active Publication Date: 2025-11-26TENCENT AMERICA LLC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024113536
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-09-22
Filing Date
2024-07-16
Publication Date
2025-11-26
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

Existing video coding technologies struggle to effectively handle local changes such as illumination changes and motion blur, which can degrade the efficiency of intra-prediction and motion compensation, leading to suboptimal compression ratios and quality.

Method used

A video encoding/decoding apparatus and method that uses filter operations based on neighboring reconstructed samples to compensate for local changes like illumination and motion blur, generating filter coefficients to determine a predictive block for the current block, thereby improving the accuracy of intra-prediction and motion compensation.

Benefits of technology

Enhances video coding efficiency by reducing redundancy and improving compression ratios while maintaining video quality, especially in the presence of local changes like illumination and motion blur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007776204000027
    Figure 0007776204000027
  • Figure 0007776204000028
    Figure 0007776204000028
  • Figure 0007776204000029
    Figure 0007776204000029
Patent Text Reader

Abstract

To provide a method for a video encoding / decoding, an apparatus, and a non-transitory computer readable storage medium.SOLUTION: An apparatus includes processing circuitry that decodes prediction information of a current block that is a part of a current picture in a video bitstream. The prediction information indicates a reference block for the current block. The processing circuitry generates filter coefficients of a filter operation based on neighboring reconstructed samples of the current block and neighboring reconstructed samples of the reference block that are co-located with the neighboring reconstructed samples of the current block. The filter operation compensates local changes to the current picture, such as illumination change or motion blur. The processing circuitry determines a prediction block for the current block based on the filter operation being performed on the reference block of the current block. The processing circuitry reconstructs the current block based on the prediction block of the current block.SELECTED DRAWING: Figure 13
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 / 164,620, entitled "LOCAL BLUR AND ILLUMINATION COMPENSATION," filed March 23, 2021, which claims the benefit of priority to U.S. Patent Application No. 17 / 482,102, entitled "METHOD AND APPARATUS FOR VIDEO CODING," filed September 22, 2021. The disclosures of the prior applications are incorporated by reference in their entirety into this application.

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

[0003] The discussion of the background art provided herein is intended to provide a general context for the present disclosure. The work of the inventors named herein, to the extent that their work is described in this background art section, and aspects of the description that may not otherwise qualify as prior art at the time of filing, are not admitted, expressly or impliedly, as prior art to the present disclosure.

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

[0005] One goal of video coding and decoding can be to reduce redundancy in an input video signal through compression. Compression can help reduce the aforementioned bandwidth or storage space requirements by more than two orders of magnitude, in some cases. Both lossless and lossy compression, as well as combinations of these, can be used. Lossless compression refers to techniques in which an exact copy of the original signal can be reconstructed from a compressed version of the original signal. With lossy compression, the restored signal may not be identical to the original signal, but the distortion between the original and restored signal is small enough to make the restored signal useful for the intended application. For video, lossy compression is widely adopted. The amount of acceptable distortion depends on the application; for example, users of certain consumer streaming applications may tolerate higher distortion than users of television distribution applications. The achievable compression ratio may reflect that higher acceptable / tolerable distortion can result in a higher compression ratio.

[0006] Video encoders and decoders can utilize techniques from several broad categories, including, for example, motion compensation, transform, quantization, and entropy coding.

[0007] Video codec technology can include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, pictures are spatially subdivided into blocks of samples. When all blocks of samples are coded in intra mode, the picture may be an intra-picture. Intra-pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and therefore can be used as the first picture in a coded video bitstream and video session or as a still image. Samples of intra-blocks may be subjected to a transform, and the transform coefficients may be quantized before entropy coding. Intra-prediction can be a technique that minimizes sample values ​​in the pre-transform domain. In some cases, the smaller the DC value and the smaller the AC coefficients after the transform, the fewer bits are required at a given quantization step size to represent the block after entropy coding.

[0008] For example, conventional intra-coding, such as that known from MPEG-2 generation coding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that rely on surrounding sample data and / or metadata obtained during the encoding and / or decoding of spatially adjacent and preceding data blocks in decoding order. Such techniques are hereinafter referred to as "intra-prediction" techniques. Note that, at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed, and not reference data from reference pictures.

[0009] Intra-prediction can take many different forms. When two or more of such techniques can be used in a given video coding technique, the techniques in use can be coded as intra-prediction modes. In certain cases, a mode can have sub-modes and / or parameters, which can be coded separately or included in the mode's codeword. The codeword used for a given mode, sub-mode, and / or parameter combination can affect coding efficiency via intra-prediction, and therefore can also affect the entropy coding technique used to convert the codeword into a bitstream.

[0010] Certain modes of intra prediction were introduced in H.264, improved in H.265, and further refined in newer coding techniques such as Joint Search Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). Predictor blocks can be formed using neighboring sample values ​​belonging to already available samples. The sample values ​​of the neighboring samples are copied into the predictor block according to the direction. The reference to the direction in use can be coded in the bitstream or can be predicted itself.

[0011] Referring to FIG. 1A, depicted at the bottom right is a subset of nine known predictor directions from the 33 possible predictor directions (corresponding to the 33 angular modes of the 35 intra modes) in H.265. The point where the arrows converge (101) represents the sample being predicted. The arrows represent the direction from which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted from one or more samples to the upper right and at an angle of 45 degrees from horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from one or more samples to the lower left of sample (101) at an angle of 22.5 degrees from horizontal.

[0012] 1A, a square block (104) of 4x4 samples (indicated by a thick dashed line) is depicted in the upper left. The square block (104) contains 16 samples, each labeled with "S," its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample (from the top) in the Y dimension and the first sample (from the left) in the X dimension. Similarly, sample S44 is the fourth sample in both the Y and X dimensions within the block (104). Because the block is 4x4 samples in size, S44 is located in the lower right. Reference samples, which follow a similar numbering scheme, are also shown. The reference samples are labeled R, their Y position (e.g., row index), and their X position (column index) relative to the block (104). In both H.264 and H.265, since the predicted samples are adjacent to the block being reconstructed, negative values ​​need not be used.

[0013] Intra-picture prediction can work by copying reference sample values ​​from adjacent samples as assigned by the signaled prediction direction. For example, assume that the coded video bitstream includes signaling indicating a prediction direction consistent with the arrow (102) for this block, i.e., the sample is predicted from one or more prediction samples located to the upper right at a 45-degree angle from the horizontal. In this case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Then, sample S44 is predicted from reference sample R08.

[0014] In certain cases, the values ​​of multiple reference samples may be combined, for example by interpolation, to calculate a reference sample, especially when the direction is not evenly divisible by 45 degrees.

[0015] The number of possible directions has increased as video coding technology has evolved. In H.264 (2003), nine different directions could be represented. This increased to 33 in H.265 (2013), and as of the time of this disclosure, JEM / VVC / BMS can support up to 65 directions. Experiments have been conducted to identify the most likely directions, and specific entropy coding techniques are used to represent those likely directions with a small number of bits, accepting a certain penalty for less likely directions. Furthermore, the direction itself can sometimes be predicted from neighboring directions used in adjacent, already decoded blocks.

[0016] Figure 1B shows a schematic diagram (105) showing 65 intra-prediction directions with JEM to illustrate the increasing number of prediction directions over time.

[0017] The mapping of intra-prediction direction bits in a coded video bitstream to represent directions may vary from one video coding technique to another, ranging, for example, from a simple direct mapping of prediction directions to intra-prediction modes to complex adaptation schemes involving codewords, most likely modes, and similar techniques. However, in all cases, there may be certain directions that are statistically less likely to occur in the video content than certain other directions. Because the goal of video compression is to reduce redundancy, these less likely directions are represented by more bits than more likely directions in well-performing video coding techniques.

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

[0019] In some video compression techniques, the MV applicable to a particular region of sample data can be predicted from other MVs, e.g., from an MV associated with another region of sample data that is spatially adjacent to the region being reconstructed and precedes that MV in decoding order. Doing so can significantly reduce the amount of data required to code the MV, thereby eliminating redundancy and increasing compression. For example, when coding an input video signal derived from a camera (known as natural video), MV prediction can work effectively because regions larger than the region to which a single MV is applicable move in similar directions and therefore, in some cases, there is a statistical likelihood that the MV can be predicted using a similar MV derived from the MVs of neighboring regions. This results in the MV found for a given region being similar or identical to the MV predicted from surrounding MVs, and as a result, after entropy coding, it 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., an MV) derived from the original signal (i.e., a sample stream). In other cases, the MV prediction itself can be lossy, for example, due to rounding errors when calculating a predictor from several surrounding MVs.

[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms provided by H.265, a technique hereafter referred to as "spatial merging" is described herein.

[0021] Referring to Figure 1C, the current block (111) may contain samples found by the encoder during a motion search process that are predictable from a spatially shifted previous block of the same size. Instead of coding its MV directly, the MV may be derived from metadata associated with one or more reference pictures, e.g., the most recent reference picture (in decoding order), using MVs associated with any one of five surrounding samples represented by A0, A1, and B0, B1, B2 (112 to 116, respectively). In H.265, MV prediction may use predictors from the same reference picture as neighboring blocks. Summary of the Invention [Means for solving the problem]

[0022] An aspect of the present disclosure provides an apparatus for video encoding / decoding. The apparatus includes a processing circuit that decodes prediction information for a current block that is part of a current picture in a video bitstream. The prediction information indicates a reference block for the current block. The processing circuit generates filter coefficients for a filter operation based on neighboring reconstructed samples of the current block and neighboring reconstructed samples of a reference block that are co-located with the neighboring reconstructed samples of the current block. The filter operation compensates for one or more local changes to the current picture. The one or more local changes include one of illumination changes and motion blur. The processing circuit determines a predictive block for the current block based on the filter operation performed on the reference block of the current block. The processing circuit reconstructs the current block based on the predictive block of the current block.

[0023] In one embodiment, the filter operation includes one of a one-dimensional finite impulse response (FIR) filter and a two-dimensional FIR filter.

[0024] In one embodiment, the processing circuit generates the first plurality of filter coefficients based on one or more rows of adjacent reconstructed samples above the current block and one or more rows of adjacent reconstructed samples above the reference block.

[0025] In one embodiment, the processing circuit generates the first plurality of filter coefficients based on (i) one or more rows of adjacent reconstructed samples above the current block being available, and (ii) the width of the current block being greater than a threshold.

[0026] In one embodiment, the processing circuit generates a second plurality of filter coefficients based on one or more columns of left-adjacent reconstructed samples of the current block and one or more columns of left-adjacent reconstructed samples of the reference block.

[0027] In one embodiment, the processing circuit generates the second plurality of filter coefficients based on (i) the availability of one or more adjacent columns of reconstructed samples to the left of the current block, and (ii) the height of the current block being greater than a threshold.

[0028] In one embodiment, the processing circuit determines a predicted sample for a sample of the current block based on a co-located reference sample in a reference block of the current block and adjacent samples of the co-located reference sample.

[0029] In one embodiment, the processing circuit determines a plurality of filtered reference samples by multiplying each of the co-located reference sample and adjacent samples of the co-located reference sample by a respective filter coefficient of a filter operation, the processing circuit determines a sum of the plurality of filtered reference samples as a result of the filter operation, and the processing circuit determines a predicted sample of the sample of the current block based on the sum of the result of the filter operation and the offset.

[0030] In one embodiment, each of the filter coefficients and offsets is expressed as a ratio of two integers.

[0031] In one embodiment, the denominator of each ratio is a power of two.

[0032] An aspect of the present disclosure provides a method for video encoding / decoding. The method may perform any one or combination of processes performed by an apparatus for video encoding / decoding. In the method, prediction information for a current block that is part of a current picture in a video bitstream is decoded. The prediction information indicates a reference block for the current block. Filter coefficients for a filter operation are generated based on neighboring reconstructed samples of the current block and neighboring reconstructed samples of a reference block co-located with the neighboring reconstructed samples of the current block. The filter operation compensates for one or more local changes to the current picture. The one or more local changes include one of illumination changes and motion blur. A predictive block is determined for the current block based on a filter operation being performed on the reference block of the current block. The current block is reconstructed based on the predictive block of the current block.

[0033] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform any one or combination of methods for video encoding / decoding.

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

[0035] [Figure 1A] FIG. 2 is a schematic diagram of an example subset of intra-prediction modes. [Figure 1B] FIG. 1 is a diagram of an exemplary intra-prediction direction. [Figure 1C] FIG. 1 is a schematic diagram of a current block and its surrounding spatial merge candidates in one example. [Figure 2] FIG. 1 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment. [Figure 3] FIG. 1 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment. [Figure 4] FIG. 2 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment. [Figure 5] FIG. 2 is a schematic diagram of a simplified block diagram of an encoder according to one 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 exemplary temporal prediction including a current block and its reference block indicated by the current block's motion vector, according to one embodiment of the present disclosure. [Figure 9] FIG. 2 illustrates a current block with its template and a reference block with its template, according to one embodiment of the present disclosure. [Figure 10]1A and 1B are diagrams illustrating an exemplary template of a current block and an exemplary template of a reference block of the current block, according to one embodiment of the present disclosure. [Figure 11] 1A and 1B are diagrams illustrating an exemplary enlargement template of a current block and an exemplary enlargement template of a reference block according to one embodiment of the present disclosure. [Figure 12] FIG. 10 illustrates another exemplary enlargement template for a current block and another exemplary enlargement template for a reference block according to an embodiment of the present disclosure. [Figure 13] FIG. 1 illustrates an exemplary flowchart according to one embodiment. [Figure 14] FIG. 1 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0036] I. Video Decoder and Encoder Systems Figure 2 shows a simplified block diagram of a communication system (200) according to one embodiment of the present disclosure. The communication system (200) includes multiple 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 Figure 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 in media serving applications, etc.

[0037] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of coded video data, such as may occur 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.

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

[0039] 3 illustrates the 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, and memory sticks.

[0040] The streaming system may include a video source (301), such as a capture subsystem (313), which may include a digital camera, that creates 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 its high data volume 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 coded video bitstream (304)), shown as a thin line to emphasize its lower data volume compared to the stream of video pictures (302), may be stored on a streaming server (305) for future use. One or more streaming client subsystems, such as the client subsystems (306) and (308) of Figure 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 can be rendered on a display (312) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (304), (307), and (309) (e.g., a video bitstream) may be encoded according to a particular video coding / compression standard. Examples of such standards include ITU-T Recommendation H.265.In one example, a video coding standard under development is informally known as Versatile Video Coding (VVC), and the disclosure may be used in the context of VVC.

[0041] 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).

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

[0043] The receiver (431) may receive one or more coded video sequences to be decoded by the video decoder (410), and in the same or another embodiment, may receive one coded video sequence at a time, where decoding of each coded video sequence is independent of 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 along with other data, such as a coded audio data stream and / or ancillary data stream, which may be forwarded to a respective using entity (not shown). The receiver (431) may separate the coded video sequences from 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), for example, to combat network jitter, plus another buffer memory (415) internal to the video decoder (410), for example, 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).

[0044] The video decoder (410) may include a parser (420) for reconstructing symbols (421) from the coded video sequence. These symbol categories 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 groups 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, quantizer parameter values, and MVs.

[0045] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415) to create symbols (421).

[0046] The reconstruction of the symbols (421) can involve several different units depending on the type of video picture or portion thereof being coded (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.

[0047] 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 disclosure, the conceptual subdivision into the following functional units is appropriate:

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

[0049] In some cases, the output samples of the scaler / inverse transform unit (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 portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) generates blocks of the same size and shape as the block being reconstructed using surrounding already reconstructed information fetched from a current picture buffer (458). The current picture buffer (458), for example, buffers a partially reconstructed and / or fully reconstructed current picture. The aggregator (455) optionally adds, 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).

[0050] In other cases, the output samples of the scalar / 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 a reference picture memory (457) to fetch samples used for prediction. After motion-compensating the fetched samples according to the symbols (421) related to the block, these samples (in this case referred to as residual samples or residual signals) may be added to the output of the scalar / inverse transform unit (451) by an aggregator (455) 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 MVs available to the motion-compensated prediction unit (453), for example, in the form of symbols (421) that may have X, Y, and reference picture components. Motion compensation may also include interpolation of sample values ​​fetched from the reference picture memory (457) when sub-sample accurate MVs are used, MV prediction mechanisms, etc.

[0051] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (456). Video compression techniques may include in-loop filter techniques controlled by parameters contained in the coded video sequence (also called the coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420), but may also be responsive to meta-information obtained during decoding of a coded picture or previous portion (in decoding order) of the coded video sequence, as well as to previously reconstructed and loop-filtered sample values.

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

[0053] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) can become part of the reference picture memory (457), and a new current picture buffer can be reallocated before beginning reconstruction of a subsequent coded picture.

[0054] The video decoder (410) can perform decoding operations according to a predetermined video compression technique in a standard, such as ITU-T Rec. H.265. The coded video sequence can conform to the syntax specified by the video compression technique or standard being used, in the sense that the coded video sequence adheres to both the syntax of the video compression technique or standard and the profile documented in the video compression technique. Specifically, the profile can select some tools from all tools available in the video compression technique or standard as the only tools available for use under that profile. Compliance can also be required for the complexity of the coded video sequence to be within a range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. The limits set by the level can, in some cases, be further limited by the specification of a hypothetical reference decoder (HRD) and metadata for HRD buffer management signaled within the coded video sequence.

[0055] 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-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0056] 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 video encoder (303) of the example of FIG. 3.

[0057] The video encoder (503) may receive video samples from a video source (501) (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).

[0058] 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. Video data may be provided as multiple individual pictures that convey motion when viewed in sequence. The pictures themselves may be organized as a spatial array of pixels, each of which may contain one or more samples depending on the sampling structure, color space, etc., in use. Those skilled in the art will readily understand the relationship between pixels and samples. The following description will focus on samples.

[0059] 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 needed by the application. Enforcing the 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 described below. For clarity, coupling is not shown. Parameters set by the controller (550) may include rate control-related parameters (picture skip, quantizer, lambda value for rate-distortion optimization techniques, ...), picture size, group of pictures (GOP) layout, and maximum MV allowed reference region. The controller (550) may be configured with other appropriate functions associated with the video encoder (503) optimized for a particular system design.

[0060] In some embodiments, the video encoder (503) is configured to operate in a coding loop. As an overly simplified 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 reference pictures) 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 created by a (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). Because decoding of the symbol stream produces bit-exact results regardless of the location (local or remote) of the decoder, the contents of the reference picture memory (534) are also bit-exact between the local encoder and the remote encoder. In other words, the prediction part of the encoder "sees" the exact same sample values ​​as the reference picture samples that the decoder "sees" when using prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is also used in several related technologies.

[0061] 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 / from 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 implemented entirely in the local decoder (533).

[0062] An observation that can be made at this point is that any decoder technology, with the exception of parsing / entropy decoding, that is present in the decoder must also be present in substantially identical functional form in the corresponding encoder. For this reason, the disclosed subject matter focuses on the operation of the decoder. A description of the encoder technology can be omitted, as it is the reverse of the decoder technology described generically. Only in certain areas is more detailed description required, which is provided below.

[0063] In operation, in some examples, the source coder (530) may perform motion-compensated predictive coding, which predictively codes an input picture with reference to one or more previously coded pictures from a video sequence designated as “reference pictures.” In this manner, the coding engine (532) codes differences between pixel blocks of the input picture and pixel blocks of reference pictures that may be selected as predictive references for the input picture.

[0064] The local video decoder (533) may decode the coded video data of pictures that may be designated as reference pictures based on symbols created by the source coder (530). The operation of the coding engine (532) may preferably be a lossy process. When the coded video data is decoded by a video decoder (not shown in FIG. 5), the reconstructed video sequence may typically 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 content in common with reconstructed reference pictures obtained by the far-end video decoder (barring transmission errors).

[0065] 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 MV and block shape, that can serve as an appropriate prediction reference 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 a prediction reference drawn from among multiple reference pictures stored in the reference picture memory (534).

[0066] 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.

[0067] The outputs 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.

[0068] 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).

[0069] 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 technique that may be applied to the respective picture. For example, pictures are often assigned as one of the following picture types:

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

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

[0072] A bidirectionally predicted picture (B-picture) may be coded and decoded using intra- or inter-prediction, which uses up to two MVs and reference indices to predict the sample values ​​of each block. Similarly, multiple predicted pictures may use more than two reference pictures and associated metadata for the reconstruction of a single block.

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

[0074] The video encoder (503) may perform coding operations in accordance with a predetermined video coding technique or standard, such as ITU-T Rec. H.265. In doing so, 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.

[0075] 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, VUI parameter set fragments, etc.

[0076] 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 within a given picture, while 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 previously coded and still buffered reference picture in the video, the block in the current picture may be coded by a vector called a vector vector (MV). The MV refers to a reference block in the reference picture and may have a third dimension that identifies the reference picture if multiple reference pictures are used.

[0077] In some embodiments, inter-picture prediction may use bi-prediction techniques. According to 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 past and future, respectively, in display order). A block in the current picture may be coded by a first MV that points to a first reference block in the first reference picture and a second MV that points to a second reference block in the second reference picture. A block may be predicted by a combination of the first and second reference blocks.

[0078] Furthermore, merge mode techniques can be used in inter-picture prediction to improve coding efficiency.

[0079] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed on a block-by-block basis. For example, according to the HEVC standard, pictures in a sequence of video pictures are divided into coding tree units (CTUs) for compression, and the CTUs within a picture have the same size, such as 64x64 pixels, 32x32 pixels, or 16x16 pixels. Generally, a CTU includes three coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU may be recursively quadtree-decomposed into one or more coding units (CUs). For example, a 64x64 pixel CTU may be divided into one CU of 64x64 pixels, four CUs of 32x32 pixels, or 16 CUs of 16x16 pixels. In one example, each CU is analyzed to determine the CU's prediction type, such as an inter-prediction type or an intra-prediction type. A CU is divided into one or more prediction units (PUs) according to temporal and / or spatial predictability. Generally, each PU includes one luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. Taking a luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values ​​(e.g., luma values) of 8x8 pixels, 16x16 pixels, 8x16 pixels, 16x8 pixels, etc.

[0080] 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 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.

[0081] 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 8x8 samples. The video encoder (603) determines whether the processing block is best coded using intra-mode, inter-mode, or bi-predictive mode, e.g., using rate-distortion optimization. If the processing block is to be coded in intra-mode, the video encoder (603) may use intra-prediction techniques to encode the processing block into a coded picture. If the processing block is to be coded in inter-mode or bi-predictive mode, the video encoder (603) may use inter-prediction techniques or bi-prediction techniques, respectively, to 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 MVs are derived from one or more MV predictors without the benefit of coded MV components outside the predictors. In certain other video coding techniques, there may be MV components applicable to the current block. In one example, the video encoder (603) includes other components, such as a mode decision module (not shown), to determine the mode of the processing block.

[0082] In the example of Figure 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 to each other as shown in Figure 6.

[0083] The inter-encoder (630) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-prediction information (e.g., description of redundant information by inter-encoding technique, MV, 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.

[0084] 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 reference blocks in the same picture.

[0085] The general-purpose controller (621) is configured to determine general-purpose control data and control other components of the video encoder (603) based on the general-purpose control data. In one example, the general-purpose controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, if the mode is intra-mode, the general-purpose controller (621) controls the switch (626) to select intra-mode results for use by the residual calculator (623) and controls the entropy encoder (625) to select intra-prediction information and include the intra-prediction information in the bitstream. If the mode is inter-mode, the general-purpose controller (621) controls the switch (626) to select inter-prediction results for use by the residual calculator (623) and controls the entropy encoder (625) to select inter-prediction information and include the inter-prediction information in the bitstream.

[0086] 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 then undergo 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) can generate decoded blocks based on the decoded residual data and inter-prediction information, and the intra-encoder (622) can generate decoded blocks based on the decoded residual data and intra-prediction information. The decoded blocks are processed appropriately to generate decoded pictures, which can be buffered in a memory circuit (not shown) and used as reference pictures in some examples.

[0087] 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 HEVC. 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. Note that, according to the disclosed subject matter, no residual information is present when coding a block in a merged sub-mode of either an inter mode or a bi-prediction mode.

[0088] 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 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.

[0089] In the example of Figure 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 Figure 7.

[0090] The entropy decoder (771) may be configured to reconstruct, from a coded picture, certain symbols representing 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-prediction mode, etc., the latter two being merged or other submodes), prediction information (e.g., intra-prediction information or inter-prediction information), which may identify certain samples or metadata used for prediction by the intra decoder (772) or 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 bi-prediction 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).

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

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

[0093] The residual decoder (773) is configured to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to transform the residual from the frequency domain to the spatial domain. The residual decoder (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 low volume control information only).

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

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

[0096] II. Local illumination compensation This disclosure includes embodiments related to prediction models applicable to multiple coding processes. For example, embodiments may include inter-prediction models that compensate for multiple coding processes, such as local motion blur and local illumination changes.

[0097] This disclosure includes embodiments related to inter prediction in advanced video codecs. The inter prediction model can compensate for both local motion blur and local illumination changes. The local illumination compensation (LIC) model is an inter prediction technique for unipredictive inter CUs. The LIC model can model the local illumination variation between a current block and its reference block as a function of the local illumination variation between the current block's template and the reference block's template.

[0098] Figure 8 illustrates a current block (801) and its reference block (802) indicated by a motion vector (803) of the current block (801) according to one embodiment of the present disclosure. In Figure 8, the reference block (802) is a temporal prediction of the current block (801) and is indicated by the motion vector (803) between the current block (801) and the reference block (802). Each of the reference block (802) and the current block (801) may have a respective template associated with the block, as shown in Figure 9, where sample areas (811) and (812) are the templates of the current block (801) and the reference block (802), respectively. The reference block template (812) is a temporal prediction of the current block template (811) indicated by the motion vector (803) between the current block (801) and the reference block (802), as shown in Figure 10.

[0099] According to an aspect of the present disclosure, the template of a block can include an upper template and a left template. For example, as shown in FIG. 9, the upper current block template (811-1) can include pixels adjacent to the upper side of the current block (801), and the left current block template (811-2) can include pixels adjacent to the left side of the current block (801). Similarly, the upper reference block template (812-1) can include pixels adjacent to the upper side of the reference block (802), and the left reference block template (812-2) can include pixels adjacent to the left side of the reference block (802).

[0100] In one example, as shown in FIG. 9, the upper template of a block can include one row of pixels immediately above the block, and the left template of the block can include one column of pixels immediately to the left of the block.

[0101] According to an aspect of the present disclosure, in the LIC model, for a current block having a width w and a height h, the prediction of the pixel y[i, j] in the current block

Equation

Equation

[0102] In Equation (1), 0 ≤ i < w, 0 ≤ j < h, α is a scaling coefficient, and β is an offset. Equation (1) can be used to compensate for changes in illumination in some related examples.

[0103] In some embodiments, the scaling factor α and offset β can be derived based on a current block template, such as the current block template (811) in Figure 9, and a reference block template, such as the reference block template (812), so that no signaling overhead is required for these parameters. In some cases, a LIC flag for advanced motion vector prediction (AMVP) mode can be signaled to indicate the use of the LIC model.

[0104] As described above, the LIC model can be used to model the local illumination variation between a current block and its reference block as a function of the local illumination variation between the current block template and the reference block template. However, the LIC model used in some related examples is limited to compensating for local illumination changes. In some cases, it is desirable to compensate for some other changes, such as local motion blur, in addition to local illumination changes. Therefore, a more general prediction model that can compensate for multiple processes, such as both local illumination changes and other changes, such as local motion blur, is desirable.

[0105] III. Improved local illumination compensation The present disclosure includes a method for improving the LIC model. For example, a more generalized prediction model is provided to compensate for both local motion blur and local illumination changes. To generate a prediction of a current block, at least one filter operation can be applied to a neighborhood of reference samples in a reference block of the current block, resulting in an improved LIC model that is not limited to compensating for local illumination changes.

[0106] According to some embodiments of the present disclosure, a prediction of pixel y[i,j] in the current block

number

number

[0107] In (Equation 2),

number

[0108] To derive the 2D FIR filter h, the templates can be expanded. As shown in Figure 11, for a 3x3 FIR filter, the upper current block template (1111) can be expanded to include the top four rows of the current block (1101), and the left current block template (1112) can be expanded to include the left four columns of the current block (1101). Similarly, the upper reference block template (1113) can be expanded to include the top four rows of the reference block (1102), and the left reference block template (1114) can be expanded to include the left four columns of the current block (1102). The filter coefficients of the FIR filter can be derived by minimizing the sum of the squared prediction errors of the pixels in the upper and left templates, excluding the pixels on the template boundaries.

[0109] Note that templates can be expanded to include different numbers of rows and columns. For example, for a 3x3 FIR filter, the upper current block template can be expanded to include the five rows above the current block, and the left current block template can be expanded to include the five columns to the left of the current block. The reference block template can be expanded similarly.

[0110] Additionally, templates can be expanded based on the filter size. For example, for a 5x5 FIR filter, the upper current block template can be expanded to include the top 6 rows of the current block, and the left current block template can be expanded to include the left 6 columns of the current block. The reference block template can be expanded similarly.

[0111] In one embodiment, an online training method such as a support vector machine (SVM) can be used to derive the filter coefficients of the FIR filter. The filter coefficients can be determined by minimizing the sum of squared prediction errors (referred to as the online training error) in the online training method as follows:

number

[0112] In (Equation 5), T o contains pixel locations inside the top and left templates of the current block, as shown by the gray sample areas (1121) and (1122) in Figure 11. The gray sample area (1121) is inside the top current block template (1111), and the gray sample area (1122) is inside the left current block template (1112).

[0113] In one embodiment, the filter coefficients h[i,j] and the offset β may be determined by solving a set of linear equations, for example, in a manner similar to solving ordinary least squares.

[0114] In one embodiment, the filter coefficients may be quantized, and the quantized filter coefficients may be obtained by using an algorithm such as Cramer's rule for solving linear equations as divisions of two integers, using fixed-point arithmetic with a scaling factor of 2^b and a lookup table that replaces divisions with multiplications.

[0115] In one embodiment, the quantized filter coefficients can be clipped to a predetermined range, and the quantized and clipped filter coefficients can then be used to determine a quantized value for the offset β that minimizes the online training error.

[0116] In one embodiment, filter h may be symmetric, i.e., filter h does not introduce phase distortion during the filtering process of (Equation 2).

[0117] According to some embodiments of the present disclosure, to reduce the generalization error of the LIC model, the locations of samples used in the online training method can be closer to the current block. For example, pixels at or adjacent to one or more boundaries of a template shared with the current block can be used to determine the filter coefficients of the FIR filter.

[0118] In some embodiments, a prediction of pixel y[i,j] in the current block

number

number

[0119] In (Equation 6),

number

[0120] In one embodiment, the filter coefficients may be determined by least squares minimization that minimizes the online training error as follows:

number

[0121] In (Equation 9), T' includes pixel locations as shown by the gray sample regions (1221) and (1222) in Figure 12. As shown in Figure 12, for a 3x3 FIR filter, the upper current block template (1211) can be expanded to include the top four rows of the current block (1201), and the left current block template (1212) can be expanded to include the left four columns of the current block (1201). Similarly, the upper reference block template (1213) can be expanded to include the top four rows of the reference block (1202), and the left reference block template (1214) can be expanded to include the left four columns of the current block (1202). The gray sample regions (1221) and (1222) are used in (Equation 9) to calculate the filter coefficients h[u,v]. Note that gray sample region (1221) includes the row immediately above the current block (1201), and gray sample region (1222) includes the column immediately to the left of the current block (1201). Therefore, when calculating the filter coefficients, the least-squares minimization can refer to pixels outside the template. For example, the prediction of sample (1231)

number

[0122] Note that templates can be expanded to include different numbers of rows and columns. For example, for a 3x3 FIR filter, the upper current block template can be expanded to include the five rows above the current block. The five rows could include the row immediately above the current block. The left current block template can be expanded to include the five columns to the left of the current block. The five columns could include the column immediately to the left of the current block. The reference block template can be expanded similarly.

[0123] Additionally, templates can be expanded based on the filter size. For example, for a 5x5 FIR filter, the upper current block template can be expanded to include the six rows above the current block, and the left current block template can be expanded to include the six columns to the left of the current block. The six rows can include the row immediately above the current block, and the six columns can include the column immediately to the left of the current block. The reference block template can be expanded similarly.

[0124] In one embodiment, filter h is symmetric, i.e., filter h does not introduce phase distortion during the filtering process of (Equation 6).

[0125] According to some embodiments of the present disclosure, multiple processes such as motion blur and lighting changes can be compensated for using just one row above the current block and / or just one column to the left of the current block.

[0126] In some embodiments, the prediction of pixels in the current block may be a combination of upward and leftward prediction of pixels in the current block. In both upward and leftward prediction of pixels, a row of pixels is predicted from an upper template T, as shown in FIG. A and one column of pixels is in the left template T L You can use the same template that is in

[0127] In one embodiment, the upward prediction of pixels in the current block can be expressed as:

number

[0128] In (Equation 10), 2M+1 filter coefficients h A [u] can be determined by a least squares minimization that minimizes the online training error in the upper template of the current block as follows:

number

[0129] In one embodiment, if the least-squares minimization refers to a pixel outside the upper template, a padding value based on, for example, the nearest pixel in the upper template can be used instead, which is used in some embodiments.

[0130] In one embodiment, M=1.

[0131] In one embodiment, the left prediction of a pixel can be expressed as:

number

[0132] In (Equation 12), 2N+1 filter coefficients h L [v] can be determined by least squares minimization that minimizes the online training error in the left template of the current block as follows:

number

[0133] In one embodiment, if the least-squares minimization refers to a pixel outside the left template, a padding value based on, for example, the nearest pixel in the left template can be used instead, which is used in some embodiments.

[0134] In one embodiment, N=1.

[0135] According to some embodiments of the present disclosure, a prediction of pixel y[i,j] in the current block

number

number

number

[0136] In one embodiment, a prediction of pixel y[i,j] in the current block is

number

number

[0137] (Condition 1) The upper template of the current block is available and the width of the upper template is greater than a predetermined width.

[0138] (Condition 2) The left template of the current block is available and the height of the upper template is greater than a predetermined height.

[0139] In one embodiment, a prediction of pixel y[i,j] in the current block is

number

number

[0140] (Condition 1) The upper template of the current block is available and the width of the upper template is greater than a predetermined width.

[0141] (Condition 2) The left template of the current block is not available, or the height of the left template is not greater than a predetermined height.

[0142] In one embodiment, a prediction of pixel y[i,j] in the current block is

number

number

[0143] (Condition 1) The upper template of the current block is not available, or the width of the upper template is not greater than a predetermined width.

[0144] (Condition 2) The left template of the current block is available and the height of the left template is greater than a predetermined height.

[0145] In one embodiment, a prediction of pixel y[i,j] in the current block is

number

number

[0146] (Condition 1) The upper template of the current block is not available, or the width of the upper template is not greater than a predetermined width.

[0147] (Condition 2) The left template of the current block is not available, or the height of the left template is not greater than a predetermined height.

[0148] In one embodiment, the predetermined width and / or the predetermined height is seven.

[0149] In one embodiment, the filter h A and h L Each of the filters h can be symmetric. A does not introduce phase distortion during the filtering process of (Eq. 10), and the filter h L does not introduce phase distortion during the filtering process of (Eq. 12).

[0150] The present disclosure includes a more general predictive model to compensate for more local variations such as lighting changes and / or motion blur by using at least one filter, such as an FIR filter, and an offset.

[0151] In some embodiments, an online training method can be used to obtain model parameters for a predictive model based on pixels in the template immediately above the current block and pixels in the template immediately above the reference block for the current block when both upper templates are available. In one embodiment, when the online training method references pixels outside the upper template of the reference block, a padding value can be used instead. For example, the nearest pixel in the upper template of the reference block can be used instead.

[0152] In some embodiments, an online training method can be used to obtain model parameters for a predictive model based on pixels in the template immediately to the left of the current block and pixels in the template immediately to the left of the reference block for the current block when both left templates are available. In one embodiment, when online training refers to pixels outside the left template of the reference block, a padding value can be used instead. For example, the nearest pixel in the left template of the reference block can be used instead.

[0153] In one embodiment, each of the at least one filter in the predictive model may be symmetric, i.e., each of the at least one filter does not introduce phase distortion during the filtering process. Therefore, due to the linear phase of the filter, all frequencies input to the filter can be delayed in the same way.

[0154] In some embodiments, each filter coefficient of at least one filter in the predictive model can be expressed as a ratio of two integers. In one embodiment, each filter coefficient of at least one filter can be expressed as a ratio of two integers, with the denominator of each ratio being a predetermined number that is a power of two. In one embodiment, each filter coefficient of at least one filter can be expressed as a ratio of two integers, with the denominator of all ratios being the same predetermined number that is a power of two.

[0155] In some embodiments, the offset in the predictive model can be expressed as a ratio of two integers. In one embodiment, the offset can be expressed as a ratio of two integers, where the denominator of the ratio is a predetermined number that is a power of two.

[0156] In some embodiments, the prediction model may be a combination of an up-down prediction model and a left-down prediction model.

[0157] The upper prediction model is based on an upper template of the current block and an upper template of the reference block. When an upper template is selected for the prediction model, parameters of the upper prediction model are derived from the upper template. An upper template is selected for the prediction model only if an upper template is available and the width of each upper template is greater than a predetermined width. In one embodiment, the predetermined width is 7. In another embodiment, the predetermined width may be a different number, such as 3.

[0158] The left prediction model is based on the left template of the current block and the left template of the reference block. When a left template is selected for the prediction model, parameters of the left prediction model are derived from the left template. A left template is selected for the prediction model only if a left template is available and the height of each left template is greater than a predetermined height. In one embodiment, the predetermined height is 7. In another embodiment, the predetermined height may be a different number, such as 3.

[0159] In one embodiment, if both an upper template and a left template are selected for a predictive model, the output of the predictive model may be the average of the prediction from the upper prediction model and the prediction from the left prediction model.

[0160] In one embodiment, if an upper template is selected and a left template is not selected for a predictive model, the output of the predictive model may be a prediction from the upper predictive model.

[0161] In one embodiment, if for a predictive model, no upper template is selected and a left template is selected, the output of the predictive model may be the prediction from the left predictive model.

[0162] In one embodiment, if no top template is selected and no left template is selected for a predictive model, the output of the predictive model may be a reference block.

[0163] IV. Flowchart 13 shows a flowchart outlining an exemplary process (1300) according to one embodiment of the present disclosure. In various embodiments, the process (1300) is performed by processing circuitry, such as processing circuitry within the terminal devices (210), (220), (230), and (240), processing circuitry performing the functions of the video encoder (303), processing circuitry performing the functions of the video decoder (310), processing circuitry performing the functions of the video encoder (503), etc. In some embodiments, the process (1300) is implemented with software instructions, and thus, the processing circuitry performs the process (1300) when it executes the software instructions.

[0164] The process (1300) may generally begin at step (S1310), where the process (1300) decodes prediction information for a current block that is part of a current picture in a video bitstream. The prediction information indicates reference blocks for the current block. The process (1300) then proceeds to step (S1320).

[0165] In step (S1320), the process (1300) generates filter coefficients for a filter operation based on neighboring reconstructed samples of the current block and neighboring reconstructed samples of a reference block co-located with the neighboring reconstructed samples of the current block. The filter operation compensates for one or more local changes to the current picture. The one or more local changes include one of lighting changes and motion blur. The process (1300) then proceeds to step (S1330).

[0166] In step S1330, the process 1300 determines a prediction block for the current block based on the filter operation performed on the reference block of the current block. The process 1300 then proceeds to step S1340.

[0167] In step (S1340), the process (1300) reconstructs the current block based on the predicted block of the current block.

[0168] The process (1300) then ends.

[0169] In one embodiment, the filter operation includes one of a one-dimensional FIR filter and a two-dimensional FIR filter.

[0170] In one embodiment, the process (1300) generates a first plurality of filter coefficients based on one or more rows of adjacent reconstructed samples above the current block and one or more rows of adjacent reconstructed samples above the reference block.

[0171] In one embodiment, the process (1300) generates the first plurality of filter coefficients based on (i) the availability of one or more adjacent rows of reconstructed samples above the current block, and (ii) the width of the current block being greater than a threshold.

[0172] In one embodiment, the process (1300) generates a second plurality of filter coefficients based on one or more columns of left-adjacent reconstructed samples of the current block and one or more columns of left-adjacent reconstructed samples of the reference block.

[0173] In one embodiment, the process (1300) generates the second plurality of filter coefficients based on (i) the availability of one or more adjacent columns of reconstructed samples to the left of the current block, and (ii) the height of the current block being greater than a threshold.

[0174] In one embodiment, the process (1300) determines a predicted sample for a sample of the current block based on a co-located reference sample in a reference block of the current block and adjacent samples of the co-located reference sample.

[0175] In one embodiment, the process (1300) determines a plurality of filtered reference samples by multiplying each of the co-located reference sample and neighboring samples of the co-located reference sample by a respective filter coefficient of a filter operation. The process (1300) determines a sum of the plurality of filtered reference samples as a result of the filter operation. The process (1300) determines a predicted sample of a sample of the current block based on the sum of the result of the filter operation and an offset.

[0176] In one embodiment, each of the filter coefficients and offsets is expressed as a ratio of two integers.

[0177] In one embodiment, the denominator of each ratio is a power of two.

[0178] V. Computer Systems 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 14 illustrates a computer system (1400) suitable for implementing certain embodiments of the disclosed subject matter.

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

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

[0181] 14 for computer system (1400) 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 embodiments of the present disclosure, nor should the arrangement of components be interpreted as having a dependency or requirement related to any one or combination of components illustrated in the exemplary embodiment of computer system (1400).

[0182] The computer system (1400) may include certain human interface input devices. Such human interface input devices may respond 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), or olfactory input (not shown). The human interface devices may also be used to capture certain media not necessarily directly associated with conscious human input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, photographic images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video, including stereoscopic video).

[0183] The input human interface devices may include one or more (only one of each is shown) of a keyboard (1401), a mouse (1402), a trackpad (1403), a touchscreen (1410), a data glove (not shown), a joystick (1405), a microphone (1406), a scanner (1407), and a camera (1408).

[0184] The computer system (1400) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the human user's senses, for example, through tactile output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touchscreen (1410), data gloves (not shown), or joystick (1405), although some haptic feedback devices may not function as input devices), audio output devices (e.g., speakers (1409), headphones (not shown)), visual output devices (e.g., screens (1410), including CRT screens, LCD screens, plasma screens, and OLED screens, each with or without touchscreen input capabilities and each with or without haptic feedback capabilities, some of which may output two-dimensional visual output or three or more dimensions through means such as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown). These visual output devices (such as the screen 1410) can be connected to the system bus 1448 through a graphics adapter 1450.

[0185] The computer system (1400) may also include human-accessible storage devices and associated media such as optical media including CD / DVD ROM / RW (1420) with CD / DVD or similar media (1421), thumb drives (1422), removable hard drives or solid state drives (1423), legacy magnetic media such as tape and floppy disks (not shown), and dedicated ROM / ASIC / PLD-based devices (not shown) such as security dongles.

[0186] 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.

[0187] The computer system (1400) may also include a network interface (1454) with one or more communications networks (1455). The one or more communications networks (1455) may be, for example, wireless, wired, or optical. The one or more communications networks (1455) may further be local, wide area, metropolitan, vehicular and industrial, real-time, delay-tolerant, etc. Examples of the one or more communications networks (1455) include local area networks such as Ethernet, wireless LAN, etc.; cellular networks including GSM, 3G, 4G, 5G, LTE, etc.; TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial TV; vehicular and industrial networks including CANBus; etc. Certain networks generally require an external network interface adapter connected to a particular general-purpose data port or peripheral bus (1449) (e.g., a USB port on the computer system (1400)), while others are generally integrated into the core of the computer system (1400) by connection 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 (1400) can communicate with other entities. Such communications may be unidirectional receive only (e.g., TV broadcast), unidirectional transmit only (e.g., CANbus to certain CANbus devices), or bidirectional, for example, with 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.

[0188] The aforementioned human interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1440) of the computer system (1400).

[0189] A core (1440) may include one or more central processing units (CPUs) (1441), graphics processing units (GPUs) (1442), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1443), task-specific hardware accelerators (1444), graphics adapters (1450), etc. These devices may be connected through a system bus (1448), along with read-only memory (ROM) (1445), random access memory (1446), and internal mass storage devices (1447) such as non-user-accessible internal hard drives or SSDs. In some computer systems, the system bus (1448) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be connected directly to the core's system bus (1448) or through a peripheral bus (1449). In one example, a screen (1410) may be connected to the graphics adapter (1450). Peripheral bus architectures include PCI, USB, and the like.

[0190] The CPU (1441), GPU (1442), FPGA (1443), and accelerator (1444) can execute specific instructions that, in combination, can constitute the aforementioned computer code. That computer code can be stored in ROM (1445) or RAM (1446). Persistent data can be stored, for example, in internal mass storage (1447), while transient data can also be stored in RAM (1446). Rapid storage and retrieval from any memory device is enabled through the use of cache memory, which can be closely associated with one or more of the CPU (1441), GPU (1442), mass storage (1447), ROM (1445), RAM (1446), etc.

[0191] 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 kind well known and available to those skilled in the computer software arts.

[0192] By way of example and not limitation, a computer system (1400) having an architecture, and specifically a core (1440), can provide functionality as a result of processor(s) (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be user-accessible mass storage devices, as introduced above, as well as media associated with specific storage of the core (1440) that is non-transitory in nature, such as the core's internal mass storage device (1447) or ROM (1445). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (1440). The computer-readable media can include one or more memory devices or chips, depending on particular needs. The software can cause the core (1440), and specifically the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes, or specific portions of specific processes, described herein, including defining data structures stored in RAM (1446) and modifying such data structures according to software-defined processes. Additionally, or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1444)) that can operate in place of or together with software to perform particular processes, or particular portions of particular processes, described herein. References to software can encompass logic, and vice versa, where appropriate. Where appropriate, references to computer-readable media can 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.

[0193] While this disclosure has described several exemplary embodiments, there are modifications, substitutions, and various substitute equivalents that fall within the scope of this disclosure. It will thus be appreciated that those skilled in the art can devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within its spirit and scope.

[0194] Appendix A: Acronyms ALF Adaptive Loop Filter AMVP Advanced Motion Vector Prediction APS adaptive parameter set ASIC Application Specific Integrated Circuit ATMVP Alternative / Advanced Temporal Motion Vector Prediction AV1 AOMedia Video 1 AV2 AOMedia Video 2 BMS benchmark set BV Block Vector CANBus Controller Area Network Bus CB coding block CC-ALF Cross-Component Adaptive Loop Filter CD Compact Disc CDEF Constrained Directional Enhancement Filter CPR Current Picture Reference CPU Central Processing Unit CRT (Cathode Ray Tube) CTB coding tree block CTU Coding Tree Unit CU Coding Unit DPB Decoder Picture Buffer DPCM Differential Pulse Code Modulation DPS Decoding Parameter Set DVD Digital Video Disc FPGA Field Programmable Gate Area JCCR Joint CbCr Residual Coding JVET Joint Video Exploration Team GOP Group of Pictures GPU Graphics Processing Unit GSM Global System for Mobile Communications HDR High Dynamic Range HEVC High Efficiency Video Coding HRD Hypothetical Reference Decoder IBC Intra Block Copy IC Integrated Circuit ISP Intra Subpartition JEM Collaborative Exploration Model LAN Local Area Network LCD liquid crystal display LR Loop Recovery Filter LRU Loop Recovery Unit LTE Long Term Evolution MPM Most Probable Mode MV Motion Vector OLED Organic Light Emitting Diode PBs predicted blocks PCI Peripheral Component Interconnect PDPC Position-dependent Prediction Combination PLD Programmable Logic Device PPS Picture Parameter Set PU Prediction Unit RAM Random Access Memory ROM Read-Only Memory SAO pixel adaptive offset SCC Screen Content Coding SDR Standard Dynamic Range SEI Supplemental Extension Information SNR Signal-to-Noise Ratio SPS Sequence Parameter Set SSD Solid State Drive TU Conversion Unit USB Universal Serial Bus VPS Video Parameter Set VUI Video Usability Information VVC Versatile Video Coding WAIP Wide-angle Intra Prediction [Explanation of symbols]

[0195] 101 Samples 102 Arrow 103 Arrow 104 blocks 111 Current Block 200 Communication Systems 210 Terminal Devices 220 Terminal Devices 230 Terminal Devices 240 terminal devices 250 Network 301 Video Sources 302 Video Picture Stream 303 Video Encoder 304 Video Data 305 Streaming Server 306 Client Subsystem 307 Video Data 308 Client Subsystem 309 Video Data 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 Symbol 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 Picture Buffer 501 Video Sources 503 Video Encoder 520 Electronic Devices 530 Source Coder 532 Coding Engine 533 Local Decoder 534 Reference Picture Memory 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 Interdecoder 801 Current Block 802 Reference Block 803 motion vectors 811 Block Templates / Sample Area 812 Reference Block Template 1101 Current Block 1102 Reference Block 1111 Block Template 1112 Block Template 1113 Upper Reference Block Template 1114 Left Reference Block Template 1121 Sample Area 1122 Sample Area Block 1201 1202 Reference Block 1211 Block Template 1212 Block Template 1213 Reference Block Template 1214 Reference Block Template 1221 Gray Sample Area 1222 Gray Sample Area 1231 samples 1232 samples 1233 samples 1400 Computer Systems 1401 keyboard 1402 Mouse 1403 Trackpad 1405 Joystick 1406 Mike 1407 Scanner 1408 Camera 1409 Speaker 1410 screen 1421 Medium 1422 thumb drive 1423 Solid State Drive 1440 cores 1441 CPU 1442 GPU 1443 FPGA 1444 Accelerator 1445 ROM 1446 Random Access Memory 1447 Mass Storage 1448 System Bus 1449 Peripheral Bus 1450 graphics adapter 1454 network interface 1455 Communication Network

Claims

1. 1. A method of video encoding in an encoder, comprising: determining a reference block for a current block that is part of the current picture; generating prediction information indicating the reference block for the current block; encoding the current picture and the prediction information into a video bitstream; The following steps, namely calculating filter coefficients of a filter operation based on reconstructed samples in the neighborhood of the current block and reconstructed samples in the neighborhood of the reference block, wherein the positions of the reconstructed samples in the neighborhood of the current block relative to the current block are the same as the positions of the reconstructed samples in the neighborhood of the reference block relative to the reference block; applying a filter operation using the filter coefficients to a plurality of reference samples in the reference block to generate a plurality of filtered reference samples; applying the filter operation to a reference sample in the reference block to generate a corresponding filtered reference sample, multiplying the one reference sample and neighboring samples of the one reference sample by the filter coefficients and generating a corresponding filtered reference sample by summing the multiplied one reference sample and the neighboring samples; determining a prediction block for the current block based on the plurality of filtered reference samples; the reference block is determined such that the current block is reconstructed based on the predicted block of the current block determined by method.

2. The method of claim 1 , wherein the filter operation comprises one of a one-dimensional finite impulse response (FIR) filter and a two-dimensional FIR filter.

3. The step of calculating calculating a first plurality of filter coefficients based on one or more rows of reconstructed samples in a neighborhood of information of the current block and one or more rows of reconstructed samples in a neighborhood of information of the reference block; or 3. The method of claim 1, further comprising: calculating a second plurality of filter coefficients based on one or more columns of reconstructed samples in a left neighborhood of the current block and one or more columns of reconstructed samples in a left neighborhood of the reference block.

4. the calculating step includes calculating the first plurality of filter coefficients; calculating the first plurality of filter coefficients includes calculating the first plurality of filter coefficients based on (i) the availability of the one or more rows of reconstructed samples in an upper neighborhood of the current block, and (ii) a width of the current block being greater than a threshold. The method of claim 3.

5. the calculating step includes calculating the second plurality of filter coefficients; calculating the second plurality of filter coefficients includes calculating the second plurality of filter coefficients based on (i) the availability of the one or more columns of reconstructed samples in a left neighbor of the current block, and (ii) a height of the current block being greater than a threshold. The method of claim 3.

6. The step of determining a prediction block comprises:

6. The method according to claim 1, further comprising a step of determining a predicted sample of a sample of the current block based on a reference sample in the reference block and a sample in the vicinity of the reference sample, wherein the positional relationship of the sample to the current block is the same as the positional relationship of the reference sample to the reference block.

7. The step of determining a prediction sample comprises: The method of claim 6 , further comprising determining the predicted sample of the sample of the current block based on the sum of the corresponding filtered reference sample and an offset.

8. The method of claim 7 , wherein each of the filter coefficients and offsets is expressed as a ratio of two integers.

9. 9. The method of claim 8, wherein the denominator of each ratio is a power of two.

10. 3. An apparatus comprising a processing circuit configured to perform the method of claim 1 or 2.

11. The processing circuitry 11. The apparatus of claim 10, configured to calculate a first plurality of filter coefficients based on one or more rows of reconstructed samples in an upper neighborhood of the current block and one or more rows of reconstructed samples in an upper neighborhood of the reference block.

12. The processing circuitry 12. The apparatus of claim 11, configured to calculate the first plurality of filter coefficients based on (i) the availability of the one or more rows of reconstructed samples in an upper neighborhood of the current block, and (ii) a width of the current block being greater than a threshold.

13. The processing circuitry 11. The apparatus of claim 10, configured to calculate a second plurality of filter coefficients based on one or more columns of reconstructed samples in a left neighborhood of the current block and one or more columns of reconstructed samples in a left neighborhood of the reference block.

14. The processing circuitry 14. The apparatus of claim 13, configured to calculate the second plurality of filter coefficients based on (i) the availability of the one or more columns of reconstructed samples in a left neighbor of the current block, and (ii) a height of the current block being greater than a threshold.

15. The processing circuitry 15. The device according to claim 10, configured to determine a predicted sample of a sample of the current block based on a reference sample in the reference block and a sample in the vicinity of the reference sample, wherein a positional relationship of the sample to the current block is the same as a positional relationship of the reference sample to the reference block.

16. The processing circuitry The apparatus of claim 15 , configured to determine the predicted sample of the sample of the current block based on the sum of the corresponding filtered reference sample and an offset.

17. The apparatus of claim 10 , wherein each of the filter coefficients and offsets is expressed as a ratio of two integers.

18. 18. The apparatus of claim 17, wherein the denominator of each ratio is a power of two.

19. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video compression method

    JP2010239640A

  • Method and apparatus for local adaptive filtering for motion compensation interpolation filtering and filtering of reference images

    JP2011523326A

  • Video encoding system and method using adaptive loop filters

    JP2012502591A

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

    JP2019531029A

  • Method and apparatus for encoding and decoding image using adaptive interpolation filter

    US20080175322A1