METHOD AND APPARATUS FOR VIDEO ENCODING AND DECODING BY OPTICAL FLOW BASED ON BOUNDARY SMOOTHED MOTION COMPENSATION - Patent application
By employing boundary-smoothed motion compensation-based optical flow for inter-prediction, the method addresses block artifacts in video compression, enhancing efficiency and reducing complexity.
Patent Information
- Application Number
- JP2021557967
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-04-18
- Filing Date
- 2020-04-14
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2040-04-14
AI Technical Summary
Existing video compression systems suffer from block artifacts due to block-based motion compensation, necessitating improved inter-prediction tools to enhance compression efficiency and reduce complexity.
Refine inter-prediction using boundary-smoothed motion compensation-based optical flow, which utilizes motion information from neighboring blocks and weighting factors to smooth artifacts at block boundaries.
This approach effectively reduces block artifacts and enhances video compression efficiency by refining inter-prediction, thereby improving bitrate savings and reducing computational complexity.
Smart Images

Figure 0007543301000023 
Figure 0007543301000028 
Figure 0007543301000036
Abstract
Description
[Technical field]
[0001] At least one of the present embodiments relates generally to, for example, a method or apparatus for video encoding or decoding, and more specifically to a method or apparatus that includes refining inter-prediction of an image block using optical flow based on boundary smoothed motion compensation. [Background technology]
[0002] The domain technology field of one or more embodiments generally relates to video compression. At least some embodiments relate to improving compression efficiency compared to existing video compression systems such as HEVC (HEVC refers to High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2, described in "ITU's ITU-T H.265 Telecommunications Standardization Sector (10 / 2014), Series H: Coding of Infrastructure Video for Audiovisual and Multimedia Systems, Audiovisual Services, High Efficiency Video Coding, Recommendation ITU-T H.265"), or compared to developing video compression systems such as VVC (Versatile Video Coding, a new standard being developed by JVET, the Joint Video Experts Team).
[0003] To achieve high compression efficiency, image and video coding schemes usually employ image partitioning, prediction including motion vector prediction, and transformation to exploit spatial and temporal redundancy in video content. In general, intra- or inter-prediction is used to exploit intra- or inter-frame correlation, and then the difference between the original image and the predicted image, often denoted as prediction error or prediction residual, is transformed into frequency domain coefficients, the coefficients are quantized, and the entropy is coded. To reconstruct the video, the compressed data is decoded by an inverse process corresponding to entropy decoding, inverse quantization, inverse transformation, and prediction.
[0004] To improve video compression efficiency in terms of bitrate savings or complexity reduction, it is desirable to reduce block artifacts. Since some block artifacts are introduced, for example, by block-based motion compensation, it is desirable to further adapt inter coding / decoding tools to refine inter prediction. Summary of the Invention
[0005] It is an object of the present invention to overcome at least one of the disadvantages of the prior art.
[0006] To this end, according to a general aspect of at least one embodiment, a method is presented for refining inter-prediction of an image block using boundary-smoothed motion compensation-based optical flow. The term "inter-prediction" is intended to be a broad term covering any motion compensation-based prediction, including, according to a non-limiting example, the intra block copy prediction mode of VVC. Any prediction based on motion compensation complies with the present principles.
[0007] According to another general aspect of at least one embodiment, a method for coding a block in image coding is presented, the method comprising inter-prediction refinement of the image block using boundary-smoothed motion compensation based optical flow.
[0008] According to another general aspect of at least one embodiment, a method for decoding a block of an image is presented that includes inter-prediction refinement of the image block using boundary-smoothed motion compensation based optical flow.
[0009] According to another general aspect of at least one embodiment, an apparatus for video encoding is presented, the apparatus including means for performing any one of the embodiments of the encoding method.
[0010] According to another general aspect of at least one embodiment, an apparatus for video decoding is presented, the apparatus including means for performing any one of the embodiments of the decoding method.
[0011] According to another general aspect of at least one embodiment, an apparatus for video encoding comprises one or more processors and at least one memory, the one or more processors configured to implement any one of the embodiments of the encoding method.
[0012] According to another general aspect of at least one embodiment, an apparatus for video decoding includes one or more processors and at least one memory, the one or more processors configured to implement any one of the embodiments of the decoding method.
[0013] According to another general aspect of at least one embodiment, the optical flow is based on motion information of a block, motion information of an upper neighboring block, motion information of a left neighboring block, and a motion information weighting factor.
[0014] According to another general aspect of at least one embodiment, motion information for a block, motion information for an upper adjacent block, and motion information for a left adjacent block are obtained, new motion information for the block is determined from a weighted sum of the motion information for the block, the motion information for the upper adjacent block, and the motion information for the left adjacent block using a motion information weighting coefficient, and a fine inter prediction for the image block is obtained by determining an optical flow based on the new motion information for the block.
[0015] According to another general aspect of at least one embodiment, a refined inter prediction of an image block is obtained for boundary sub-blocks of a causal border of the image block.
[0016] According to another general aspect of at least one embodiment, the image block has sub-block motion and inter prediction refinement is performed on any sub-block of the image block.
[0017] According to another general aspect of at least one embodiment, the image block has a sub-block motion field, and inter-prediction refinement of the image block is based on boundary smoothed motion compensation and further uses optical flow based on the sub-block motion field.
[0018] According to another general aspect of at least one embodiment, inter-prediction refinement of an image block is enabled at the block level or sub-block level in response to the size of the block being greater than a value or in response to the inter-prediction mode of the block.
[0019] According to another general aspect of at least one embodiment, inter-prediction refinement of an image block is enabled at the block level, sub-block level, by inserting a flag into a signaling syntax element that makes it possible to identify the block or sub-block to which inter-prediction refinement is applied.
[0020] According to another general aspect of at least one embodiment, the motion information weighting factor is derived from at least one of the availability of motion information, a set of stored weighting factors, and a distance between the inter prediction to refine and the motion information of an adjacent block.
[0021] According to another general aspect of at least one embodiment, a non-transitory computer-readable medium is presented that includes data content generated according to the method or apparatus of any of the preceding descriptions.
[0022] According to another general aspect of at least one embodiment there is provided a signal or bitstream including video data generated in accordance with the method or apparatus of any of the preceding descriptions.
[0023] One or more of the present embodiments also provide a computer-readable storage medium having stored thereon instructions for refining inter-predicting, encoding, or decoding video data according to any of the methods described above. The present embodiments also provide a computer-readable storage medium having stored thereon a bitstream generated according to the methods described above. The present embodiments also provide a method and apparatus for transmitting a bitstream generated according to the methods described above. The present embodiments also provide a computer program product including instructions for performing any of the methods described. [Brief description of the drawings]
[0024] [Figure 1] FIG. 1 is a diagram of the concepts of a coding tree unit (CTU) and a coding tree (CT) for representing a compressed HEVC picture. [Diagram 2] 1 shows an example of splitting a coding tree unit into coding units, prediction units and transform units. [Diagram 3] 4 shows a flowchart of a method for obtaining an inter-predicted block according to a particular embodiment; [Figure 4] 1 illustrates an example of overlapped block motion compensation in accordance with certain embodiments. [Diagram 5] FIG. 2 illustrates an example of an extended CU region used in bidirectional optical flow in accordance with certain embodiments. [Figure 6] 4 illustrates an example of an optical flow based motion refinement flow in accordance with certain embodiments. [Figure 7] 4 illustrates a flowchart of a method for refining inter-prediction of an image block using boundary-smoothed motion compensation based optical flow according to a particular embodiment. [Figure 8] 4 shows a flowchart of a method for decoding a block of an image according to a particular embodiment; [Figure 9] 2 shows a flowchart of a method for encoding a block of an image according to a particular embodiment; [Figure 10] 4 illustrates a flowchart of a method for refining inter-prediction of an image block using boundary-smoothed motion compensation based optical flow according to another particular embodiment. [Figure 11] 4 illustrates an exemplary sub-block motion field to which a method for refining inter prediction of an image block using optical flow based on boundary smoothed motion compensation according to another particular embodiment is applied. [Figure 12] An example of sub-block B0 and its neighboring motion vectors is shown. [Figure 13] 4 illustrates a flowchart of an optical flow based boundary smoothed motion compensation method in accordance with certain embodiments. [Figure 14] 4 illustrates a flowchart of boundary-smoothed motion compensation based optical flow for a pixel at location (i,j) in accordance with a particular embodiment. [Figure 15] 1 illustrates a flowchart of neighboring motion extraction for an upper neighbor of an L0 list predictor in accordance with a particular embodiment. [Figure 16] A diagram illustrating alternative upper neighbor motion extraction for the L0 list predictor in accordance with certain embodiments. [Figure 17] 13 illustrates another example of alternative neighboring motion extraction for an above neighbor of the L0 list predictor, in accordance with certain embodiments. [Figure 18] 4 shows a flowchart of a method for calculating a weight for each motion vector according to a particular embodiment; [Figure 19] 4 illustrates a method for calculating the weight of each motion vector according to a particular embodiment. [Figure 20] 4 shows a flowchart of an optical flow based boundary smoothed motion compensation method according to another particular embodiment. [Figure 21] 1 shows a block diagram illustrating an embodiment of a video encoder in which various aspects of the embodiments may be implemented; [Figure 22] 1 shows a block diagram of an embodiment of a video decoder in which various aspects of the embodiments may be implemented. [Figure 23]1 shows a block diagram of an example device in which various aspects of the embodiments may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] It should be understood that the figures and descriptions are simplified for clarity to illustrate relevant elements for a clear understanding of the principles of the present invention, while excluding many other elements found in a typical encoding and / or decoding device. Although the present specification may use first and second terms to describe various elements, it should be understood that these elements should not be limited by these terms. These terms are used only to distinguish one element from another.
[0026] Various embodiments are described for encoding / decoding an image, which may be applied to encode / decode a portion of an image, such as a slice or tile image, a tile group image, or an entire sequence of images.
[0027] Various methods have been described above, each method including one or more steps or actions for achieving the described method. Unless a specific order of steps or actions is required for the correct operation of the method, the order and / or use of specific steps and / or actions may be varied or combined.
[0028] At least some embodiments relate to refining inter-prediction of image blocks using optical flow based on boundary smoothed motion compensation. Advantageously, the optical flow based correction is derived using motion information of boundary blocks, thus smoothing artifacts at block boundaries. Advantageously, the optical flow based correction is derived for a division of blocks (sub-blocks), thus smoothing artifacts at sub-block boundaries within blocks.
[0029] In the following, we will describe general embodiments that are useful for understanding the principles and that can implement the principles. Then, we will disclose some embodiments of optical flow based on boundary smoothed motion compensation. Finally, we will disclose additional information and general embodiments.
[0030] In HEVC, motion compensated temporal prediction is used to exploit the redundancy that exists between successive pictures of a video.
[0031] Figure 1 shows the concept of coding tree unit (CTU) and coding tree (CT) for representing a compressed HEVC picture. In the HEVC encoder, a picture is divided into large blocks (CTUs). Each CTU is represented by a coding tree based on a recursive quad-tree or binary-tree division of the CTU, and each leaf is called a coding unit (CU), as illustrated in Figure 1. Each CU is predicted with one or more prediction units (PUs), and then given some intra- or inter-prediction parameters (prediction information).
[0032] Figure 2 shows an example of splitting the coding tree units into coding units, prediction units and transform units. Intra or inter coding mode is assigned at the CU level as shown in Figure 2. Exactly one motion vector is assigned to each PU in HEVC. This motion vector is used for the motion compensated temporal prediction of the considered PU. Thus, in HEVC the motion model linking a predicted block with its reference block consists simply of a translation.
[0033] In the latest development of VVC, a PU can contain sub-block motion (e.g., 4x4 rectangular sub-blocks) using a common parametric motion model (e.g., affine mode) or using stored temporal motion (e.g., sub-block temporal motion vector predictor SbTMVP, also known as ATMVP).
[0034] Fig. 3 shows a flow chart of a method for obtaining an inter-prediction block according to a particular embodiment. A non-limiting example of a pipeline used to build a block of an image is shown. According to a variant embodiment, some of the stages are bypassed. For example, the stages LIC and OBMC are bypassed. According to another variant embodiment, additional stages that are not shown in Fig. 3 are added. For example, PROF is added. Regarding the decoding of an inter-prediction block, the following process is considered for the development of VVC. - MC: Motion compensation (either block or sub-block), - LIC: Local illumination compensation, which uses linear adaptation to modify the predicted sample values. - BIO or BDOF: Bidirectional predictive optical flow, which uses the results of the optical flow estimation between the two reference blocks used to reconstruct the block to modify the predicted sample values. More details about this tool are provided below. - DMVR: Decoder-side motion vector refinement (not shown in Fig. 3): refines motion vectors in PUs on the decoder side for bidirectional prediction. - GBI Generalized Bi-prediction, also called CU-level Weighted BCW Bi-prediction: weighted average of two reference blocks used to reconstruct a block. - OBMC: Overlapped Block Motion Compensation. Weighted averaging of motion compensated blocks using different motion vectors from neighboring blocks. More details about this tool are given below. - IQ / IT: Inverse quantization and transformation used to reconstruct the residual. - Intra prediction: Used to predict a block using surrounding sample values. - Multi-Hypothesis or CIIP Combined Inter / Intra Prediction: combines several predictions (usually inter and intra) using a weighted average depending on the position, also extended to triangular multi-hypothesis where several inter predictions can be merged within a block. - CCLM: Cross-Component Linear Model. Predicts the current component using a linear model using another already reconstructed component.
[0035] FIG. 4 is a diagram illustrating an example of overlapped block motion compensation according to a particular embodiment. Although overlapped block motion compensation was not applied in VVC, OMBC was considered in the test model. According to the test model, all inter-CU coding modes were subjected to a motion compensation step by a process called overlapped block motion compensation OBMC (like a deblocking filter with block artifacts) that aims to attenuate the motion transition between CUs. However, this method requires some motion compensation by PU or sub-block, which increases the memory bandwidth requirements of the decoder. The present principle accounts for the refinement of inter prediction, and thus advantageously avoids the multiple motion compensation of OBMC. However, as OBMC, the present principle is advantageously applied to both sub-block PUs or non-sub-block PUs.
[0036] The basic principle of OBMC for block-based OBMC using the top and left blocks is shown in Figure 4. - the current block C is first motion compensated with the motion vector of the current block, - the left band of the current block C is compensated with the motion vector of the left block neighbor L; - the upper band of the current block C is compensated using the neighboring T0 and T1 motion vectors of the upper block; - A weighted sum is then performed (either at block level or pixel level) to compute the final motion compensated block.
[0037] The OBMC process for the current block is performed during the reconstruction of this current block, which means that the parameters required to perform the motion compensation for each band of the current block must be stored in each neighboring block.
[0038] The VVC specification provides two tools for prediction refinement of inter prediction, which refines pixel-level motion compensation based on the principles of optical flow. The concept of optical flow relies on two assumptions: first, that object motion is smooth, and second, to refine prediction samples by adding motion refinement derived by the optical flow equation. The first tool is bidirectional optical flow BDOF, which performs temporal optical flow to obtain a refined inter prediction. The second tool is prediction refinement with optical flow PROF, which performs spatial optical flow to obtain a refined inter prediction.
[0039] BDOF is used to refine the bi-prediction of a block or CU at the 4x4 subblock level by minimizing the difference between the L0 and L1 predicted samples. BDOF was simplified during the development of VVC, so that simpler versions of BDOF require much less computation, especially in terms of the number of multiplications and the size of the multipliers. BDOF is applied to a CU if it meets the following conditions: 1) The height of the CU is not 4, and the size of the CU is not 4x8. 2) the CU is not coded using affine mode or sbTMVP merge mode, 3) The CU is coded using a “true” bi-prediction mode, i.e., one of the two reference pictures is before the current picture in display order, and the other is after the current picture in display order.
[0040] BDOF only applies to the luminance component.
[0041] As the name suggests, the BDOF mode is based on the concept of optical flow, which assumes that the motion of objects is smooth and their luminance is constant along the considered time interval. For each 4 × 4 sub-block, motion refinement (v x ,v y) is calculated. Then, motion refinement is used to adjust the bi-predictive sample values in the 4x4 sub-block. In the BDOF process, the following steps are applied:
[0042] First, the horizontal and vertical gradients
number
number
number
[0043] Then, calculate the autocorrelation and cross-correlation of the gradients of S1, S2, S3, S5, and S6 as follows:
number
number
[0044] The cross-correlation and auto-correlation terms are then used to refine the motion (v x , v y ) is derived.
number
number
number
[0045] Based on the motion refinement and gradients, the following adjustments are calculated for each sample of the 4x4 sub-block:
number
number
number
[0046] To derive the gradient value, we select some predicted samples I in list k (k=0,1) outside the current CU boundary. (k)(i,j) needs to be generated. A simpler version of BDOF uses one extended row / column around the boundary of the CU, as shown in Figure 5. To control the computational complexity of generating out-of-bounds predicted samples, a bilinear filter is used to generate predicted samples within the extended region (white positions) and a regular 8-tap motion compensation interpolation filter is used to generate predicted samples within the CU (gray positions). These extended sample values are only used in the gradient calculation. In the remaining steps of the BDOF process, when sample and gradient values outside the CU boundary are needed, they are filled (i.e. repeated) from their nearest neighbors. Bidirectional Optical Flow (BDOF) is a sample-wise motion refinement performed on top of bi-predictive block-wise motion compensation. No signaling is used in the sample-level motion refinement. In the bi-predictive case, the goal of BDOF is to assume a linear displacement between the two reference pictures and refine the motion of each sample based on Hermitian interpolation of the optical flow.
[0047] The second tool employed in VVC is optical flow-based motion refinement, which modifies block-based affine motion compensation, called prediction refinement by optical flow or PROF. Figure 6 shows an example of an optical flow-based motion refinement flow according to a particular embodiment. To achieve finer motion compensation granularity, this tool proposes a method to refine sub-block-based affine motion compensation prediction with spatial optical flow. After performing sub-block-based affine motion compensation, the luma prediction samples are refined by adding the difference derived by the optical flow equation. PROF is described as four steps: Step 1) Perform sub-block based affine motion compensation to generate the sub-block prediction I(i,j). Step 2) Spatial gradients of subblock predictions g x (i,j) and g y (i,j) is computed at each sample location using a 3-tap filter [-1,0,1]. g x(i,j) = I(i+1,j) - I(i-1,j) g y (i,j)=I(i,j+1)-I(i,j-1) The subblock prediction is extended by one pixel on each side for gradient computation. To reduce memory bandwidth and complexity, the pixels on the extended border are copied from the nearest integer pixel location in the reference picture. Thus, additional interpolation for the embedded regions is avoided. Step 3) The brightness prediction refinement is calculated using the optical flow equation. ΔI(i,j)=g x (i,j)*Δv x (i,j)+g y (i,j)*Δv y (i,j) Here, Δv(i,j) is the sum of the pixel MV calculated for the sample position (i,j) indicated by v(i,j) and the sub-block MV V SB Since the parameters of the affine model and the pixel location relative to the subblock center do not change from subblock to subblock, Δv(i,j) can be calculated for the first subblock and reused for other subblocks in the same CU. If x and y are the horizontal and vertical offsets from the pixel location to the center of the subblock, Δv(x,y) can be derived as follows:
number
number
number
[0048] FIG. 7 shows a flow chart of a method for refining inter prediction of an image block using optical flow based on boundary smoothed motion compensation according to a particular embodiment. As explained above, if the OBMC process aims to dampen the motion transition between CUs, it requires some motion compensation that is applied on the fly when reconstructing a certain block, which causes memory bandwidth requirement problems at the decoder. It is desirable to find a method for smoothing artifacts at block boundaries such as OBMC with lower implementation complexity. To that end, the present principles disclose refining inter prediction of an image block using optical flow based boundary smoothed motion compensation. According to a variant wording, a motion compensation prediction refinement method using optical flow based OBMC is disclosed here. Unlike known optical flow based methods, e.g. BDOF and PROF used to refine a given prediction (temporal or affine), the present principles disclose an alternative optical flow method for smoothing artifacts at block boundaries. In the following, the terms optical flow based boundary smoothed motion compensation and optical flow based overlapped block motion compensation may be used interchangeably.
[0049] Thus, as shown in Figure 7, the method for refining inter prediction S100 of an image block includes a step S110 of OMBC based optical flow. Advantageously, at least one general embodiment of the method for refining inter prediction S100 comprises: - derive optical flow prediction refinement on boundary blocks by using only motion information; - conditionally apply this refinement or signal the application of the refinement based on some fixed conditions, - Apply refinement at the CU, sub-block (4x4), or larger block (16x16) level.
[0050] Advantageously, at least one general embodiment of the method for refining inter prediction S100 uses a single motion compensation to remove block artifacts from the motion compensation. In fact, the refinement of each boundary sub-block is performed using a process derived from the concept of optical flow.
[0051] According to another general aspect of at least one embodiment, a method for decoding a block of an image is presented, comprising an inter-prediction refinement of the block of the image using boundary smoothed motion compensation based optical flow. Figure 8 shows a flow chart of a method for decoding a block of an image according to a particular embodiment. Thus, the inter-prediction refinement S100 according to any of its variants is implemented in a decoding method S200.
[0052] According to another general aspect of at least one embodiment, a method for coding a block in image coding is presented. The method includes an inter-prediction refinement of an image block using an optical flow based on boundary smoothed motion compensation. Figure 9 shows a flow chart of a method for coding a block of an image according to a particular embodiment. Similarly, the inter-prediction refinement S100 according to any of the variants is implemented in a coding method S300.
[0053] According to a first variant, at least one embodiment of the optical flow based on boundary smoothed motion compensation is applied only to the luminance component. According to a second variant, at least one embodiment of the optical flow based on boundary smoothed motion compensation is applied to the chroma component.
[0054] Figure 10 shows a flowchart of a method for refining inter prediction of an image block using optical flow based on boundary smoothed motion compensation according to another particular embodiment. As shown in Figure 4, for each block C, in a first step S111, motion information for the block, motion information for the upper neighboring block, and motion information for the left neighboring block are obtained from memory. That is, at least the motion vector of the current block mvC, the motion vector of the upper block mvT, and the motion vector of the left block mvL are retrieved. Then, in step S112, a new pixel-wise motion vector mv(i,j) is calculated as a weighted sum of three motion vectors mvC, mvT, and mvL with mv(i,j)=a(i,j)*mvC(i,j)+b(i,j)*mvT(i,j)+c(i,j)*mvL(i,j), where the relative weights a(i,j), b(i,j), and c(i,j) are responsive to pixel distances from the neighboring blocks. Then, in step S113, for each pixel of the block, an optical flow based refinement is obtained based on the difference Δmv(i,j) between the new motion vector and the motion vector of the current block, the difference being calculated for pixel (i,j) as Δmv(i,j)=mv(i,j)-mvC(i,j). According to a particular embodiment, the different steps S11, S112 and S113 of the method for refining the inter prediction are performed on sub-blocks, because in the particular example where a motion field is defined, the motion information changes for each sub-block in the block. Advantageously, boundary artifacts within the block are therefore smoothed. In the following, different features and embodiments are described.
[0055] FIG. 11 shows an exemplary sub-block motion field to which a method for refining an inter prediction of an image block using an optical flow based on boundary smoothed motion compensation according to another particular embodiment is applied. According to this embodiment, for boundary sub-blocks of a causal border of an image block, a refined inter prediction of the image block is obtained. FIG. 13 shows an exemplary flowchart of an optical flow based on boundary smoothed motion compensation method according to this particular embodiment. For each sub-block (4×4) of a causal border in a CU C, for example, sub-blocks B0-B6 in FIG. 11, the overall process shown in FIG. 13 is performed. The process is performed for all predictions (either L0 or L1 in case of unidirectional prediction, or both in case of bi-prediction). For each sub-block B0 to B6, in step S111, the current mvC, top mvT and left mvL motion vectors of the current sub-block are extracted. In the following, various embodiments for the mv extraction or search are disclosed. - In step S112, as illustrated in Fig. 12 for example with subblock B0, for each pixel in the current subblock B a new motion vector mv(i,j) is calculated as a weighted sum of three motion vectors mvC, mvT and mvL: mv(i,j) = a(i,j) * mvC(i,j) + b(i,j) * mvT(i,j) + c(i,J) * mvL(i,j). In the following, different embodiments are disclosed for obtaining the weighting coefficients. - In step S113, an optical flow based refinement is then performed for each pixel of the sub-block. Figure 14 illustrates a flowchart of the boundary smoothed motion compensation based optical flow of a pixel at position (i,j) according to a particular embodiment. o The spatial gradients gx(I,j) and gy(I,j) for the sub-blocks are calculated. The gradients are calculated by extending the motion compensation by one pixel for each sub-block of the causal border within the CU. According to some variants for calculating the gradients: ■ For pixels outside the block, nearest pixel motion compensation is performed to advantageously avoid complex interpolation filters. ■ If the current subblock does not have a subblock motion vector (i.e., it is not SbTMVP affine), the outer right and bottom borders of the subblock are copied from adjacent subblocks in the CU. o The motion vector difference is calculated as Δmv(i,j)=mv(i,j)-mvC(i,j). o The refinement is calculated from ΔI(i,j)=Δmv(i,j)_x*gx(i,j)+Δmv(i,j)_y*gy(i,j), where I is the current predicted image and Δmv(i,j)_x and Δmv(i,j)_y are the x and y components of the motion vector difference Δmv(i,j). o The refined forecast is obtained by adding the clipped refinement to the forecast: I(i,j) ← I(i,j) + clip(ΔI(i,j)). ■ A clipping function can be used to limit the refinement correction in cases of large gradients or movements. Typically the clip function looks like this: · Clip(x):if x<-T then return T else if x>T return T lese return x. The threshold T is fixed. A typical value is 8 for a 10-bit signal. Therefore, a refined inter prediction I is obtained using optical flow based OMBC.
[0056] FIG. 15 shows a flow chart of neighbor motion extraction for the top neighbor of the L0 list predictor according to a particular embodiment. Those skilled in the art will easily derive the corresponding extraction for other neighbor blocks, for example for the left neighbor block. In the first step, a motion vector is extracted from the list L0 if it exists. If it does not exist, the motion vector mvT is set to a zero value. If it does exist, the reference picture is tested. If the reference picture of the L0 top block and the reference picture of the L0 current block are the same, the top block motion vector mvT extracted from the list L0 of the top block is stored for further use in the optical flow-based OBMC of the current block. If they are different, the motion vector mvT is set to a zero value. Moreover, the motion vectors of the top and left neighbors for list L1 are similar to the ones of list L0. According to a variant embodiment, when mvT is not present, the motion vector mvT is not set to zero, but the weight b(i,j) associated with the missing motion vector mvT is set to zero, thus resulting in a zero weight contribution in the weighted sum of the corresponding top motion vectors.
[0057] According to a variant embodiment of the neighboring motion vector extraction, if the reference picture of the neighboring block does not point to the reference picture of the current block, the motion vector is rescaled. Figure 16 shows an example of an alternative neighboring motion extraction of the upper neighbor of the L0 list predictor according to a particular embodiment. As mentioned before, in the first step, if a motion vector exists, it is extracted from the list L0. If it exists, the reference picture is tested. If the reference picture of the L0 upper block and the reference picture of the L0 current block are the same, the upper block motion vector mvT extracted from the list L0 of the upper block is stored for further use in the optical flow based OBMC of the current block. If they are different, the motion vector mvT from L0 is rescaled to point to the current reference picture based on the picture distance. In fact, the rescaling process is the same as that used for rescaling the motion vector predictor in the standard adaptive motion vector prediction AMVP process. If no motion vector mvT is extracted from the list L0, the motion vector mvT is set to a zero value.
[0058] According to yet another variant embodiment of the neighboring motion vector extraction, if the motion vector is not present in the current list (L0 in this example), it is additionally extracted from another list (L1 in this example). Figure 17 shows an example of the alternative neighboring motion extraction of the upper neighbor of the L0 list predictor according to a particular embodiment. As mentioned above, the rescaling process is the same as that used to rescale the motion vector predictor in the standard AMVP process. In the first step, the motion vector is extracted from the list L0 if it exists. If it exists, the reference picture is tested. If the reference picture of the L0 upper block and the reference picture of the L0 current block are the same, the upper block motion vector mvT extracted from the list L0 of the upper block is stored for further use in the optical flow based OBMC of the current block. If they are different, the motion vector mvT from L0 is rescaled to point to the current reference picture based on the picture distance. In fact, the rescaling process is the same as that used to rescale the motion vector predictor in the standard adaptive motion vector prediction AMVP process. If no motion vector mvT is extracted from list L0, then if a motion vector mvT exists, it is extracted from list L1. If a motion vector mvT extracted from list L1 exists, the reference pictures are tested. Similarly, if the reference picture of the L1 top block and the reference picture of the L1 current block are the same, the top block motion vector mvT extracted from list L1 for the top block is stored for further use in the optical flow based OBMC of the current block. If the reference pictures are different, the motion vector mvT from L1 is rescaled to point to the current reference picture. If no motion vector mvT is extracted from list L1, then the motion vector mvT is set to a zero value.
[0059] FIG. 18 shows a flowchart of a method for calculating the weight of each motion vector according to a particular embodiment. For each motion vector, if the motion vector does not exist (as described in the previous embodiment for motion information extraction), or if it does exist, the given weight (as described below) is set to 0. For example, if there is no top motion vector, the weight b'(i,j) is set to zero. Similarly, if there is no left motion vector, the weight c'(i,j) is set to zero. Otherwise, the given weights a'(i,j), b'(i,j), and c'(i,j) are obtained, for example, from a LUT or calculated based on the pixel's distance to the top or left neighboring block. In the last step, the three weights are normalized before being applied. Alternatively, the normalization is applied after the weighted sum of the motion vectors is calculated.
[0060] Figure 19 shows a method for calculating the weight of each motion vector according to a particular embodiment. For example, in a 4x4 sub-block, Figure 19 shows an example of default weights (left adjacent motion vector, top adjacent motion vector, and current block motion vector, respectively) applied to each motion vector (left adjacent motion vector, top adjacent motion vector'(i,j), current adjacent motion vector'(i,j)) according to pixel location. As an example, the weights are as follows: - Dark Ray, weight 0.5 - Light grey, weight 0.25 - White, weight 0
[0061] According to a variant embodiment, the weights LUT is derived from the distance of the pixel to the block of the considered motion vector. Thus, the weights are pre-computed and stored in a default weights LUT as in the exemplary embodiment of FIG. 19, or are calculated online as described below, and the weighting function or parameters W and K are adaptive. For example, for an up motion vector, the weight of pixel p(i,j) is given by: w(i,j)=W|1-1 / K(i-i0)|if i <i0+K w(i,j)=0 otherwise where i0 is the top row coordinate, W is the scale factor, and K is the smoothing length within the subblock. For example, take W=1, K=2, and we get: w(i0,j)=1 w(i0+1,j)=1 / 2 w(i0+2,j)=0 w(i0+3,j)=0 Any other decreasing weighting function from the border to the center can be used.
[0062] According to an additional variant, in the case of sub-block motion vectors (e.g. occurring in the affine or sbTMVP cases), the present principles are applied to the sub-block motion vectors as described below: Figure 20 illustrates a flowchart of the optical flow based on the boundary smoothed motion compensation method according to this particular embodiment.
[0063] According to a first variant, the present principle is used for each subblock of a CU when the considered block has a subblock motion field (i.e., the motion vector of each subblock is potentially different). It is particularly useful for sbTMVP CUs where the motion field can introduce discontinuities. As illustrated in FIG. 20, for any subblock of block C (e.g., 16 subblocks in FIG. 11), the motion vector of the current subblock, the motion vector of the current subblock's upper neighboring subblock, and the motion vector of the current subblock's left neighboring subblock are retrieved from memory. Then, for each pixel of the current subblock, a new motion vector is obtained from a weighted sum of the retrieved motion vectors, and optical flow is applied to obtain refined inter-predicted pixels within the subblock. Any of the variant embodiments described with respect to the causal border subblocks B0-B6 can be easily derived with respect to this embodiment. Advantageously, this embodiment achieves intra-block motion smoothing.
[0064] According to a second variant, when non-causal motion vectors are available (e.g. in full block processing as described above in FIG. 20), the present principle is applied by taking not only the above and left adjacent motion vectors, but also the below and right adjacent motion vectors. The process is the same as before, except that each pixel can potentially be represented as a weighted sum of five motion vectors coming from above, left, below, right and the current sub-block. As before, the associated weights are estimated from the distance of the pixel to the considered border.
[0065] According to a third variant, the principles of the invention are adapted to a PROF process that uses affine generated motion vectors to refine the prediction. To use the PROF process and motion smoothing simultaneously as described here, the two processes can be combined with the same spatial gradient. To combine the processes, only the motion vector difference is changed, which can be a weighted sum of the motion vector difference with the PROF as described here. The weight between the two processes is assumed to be fixed (typically 0.5).
[0066] According to another embodiment, the principles of the invention are implemented in the reconstruction pipeline of Fig. 3. The described new tools are implemented, for example, in: - immediately after prediction motion compensation (i.e. during MC and LIC), - After the forecast has been changed by a correction tool such as LIC (i.e. after LIC, BDOF, BCW or OBMC).
[0067] According to a variant embodiment, the present principles are applied to all CUs, or automatically to CUs, with some constraints such as: - The CU size (either surface or length) is greater than a threshold, - A flag is coded in the CU to indicate if the process is active or not. The flag can be set at other levels (CTU, slice). - In some modes (such as merge mode), the flags are inferred using the flag values from the motion estimator.
[0068] Thus, according to a variant embodiment, the inter-prediction refinement of an image block is enabled at block or sub-block level in response to the size of the block being greater than a value or in response to the inter-prediction mode of the block. Advantageously, the enablement is derived implicitly at the decoder from other parameters rather than a signal. Although the previous embodiment is described for a block or sub-block of size 4×4, the present embodiment is not limited to sub-blocks of 4×4, and any sub-block size is compatible with the present principles.
[0069] According to a variant embodiment, inter-prediction refinement of an image block is enabled at block level, sub-block level by inserting a flag into a signaling syntax element that makes it possible to identify the block or sub-block to which inter-prediction refinement is applied.
[0070] According to a variant embodiment, inter-prediction refinement of an image block is enabled at the CTU, slice or sequence level by inserting a flag in a signaling syntax element that allows identifying the part of the image to which inter-prediction refinement is applied. For example, the flag is signaled in an SPS header. More generally, at least one high-level syntax element that enables inter-prediction refinement of at least one region of the image is signaled in a sequence parameter set (SPS).
[0071] This application describes various aspects, including tools, features, embodiments, models, approaches, and the like. Many of these aspects have been described specifically and in an often restrictive manner to at least illustrate their individual characteristics. However, this is for clarity of description and does not limit the application or scope of these aspects. In fact, all of the different aspects can be combined and interchanged to provide further aspects. Additionally, these aspects can also be combined and interchanged with aspects described in previous applications.
[0072] The aspects described and contemplated in this application can be implemented in many different forms. Figures 21, 22, and 23 below provide some embodiments, but other embodiments are contemplated, and discussion of Figures 21, 22, and 23 is not intended to limit the breadth of implementations. At least one of these aspects generally relates to video encoding and decoding, and at least one other aspect generally relates to transmitting a generated or encoded bitstream. These and other aspects can be implemented as a method, an apparatus, a computer-readable storage medium having stored thereon instructions for coding or decoding video data according to any of the described methods, and / or a computer-readable storage medium having stored thereon a bitstream generated according to any of the described methods.
[0073] In this application, the terms "reconstructed" and "decoded" may be used interchangeably, the terms "pixel" and "sample" may be used interchangeably, and the terms "image", "picture", and "frame" may be used interchangeably. Usually, but not necessarily, the term "reconstructed" is used on the encoder side, while "decoded" is used on the decoder side.
[0074] Various methods are described herein, each of which includes one or more steps or acts for achieving the described method. Unless a specific order of steps or acts is required for the correct operation of the method, the order and / or use of specific steps and / or acts may be varied or combined.
[0075] Various methods and other aspects described in the present application may be used to modify modules such as, for example, the motion estimation and / or motion compensation modules (170, 175, 275) of the video encoder 100 and decoder 200 as shown in Figures 21 and 22. Moreover, the aspects are not limited to VVC or HEVC, but may be applied to, for example, other standards and recommendations, whether existing or developed in the future, and extensions of any such standards and recommendations (including VVC and HEVC). Unless otherwise indicated or technically excluded, the aspects described in the present application may be used individually or in combination.
[0076] In this application, various numerical values are used, such as weights of motion vectors or block sizes, etc. The specific values are for illustrative purposes, and the described aspects are not limited to these specific values.
[0077] 21 shows an encoder 100. Variations of this encoder 100 are envisioned, but encoder 100 is described below for clarity without describing all possible variations.
[0078] Before being coded, a video sequence may undergo a pre-coding process (101), such as applying a color transformation to the input color picture (e.g., from RGB 4:4:4 to YCbCr 4:2:0) or performing a remapping of the input picture components to obtain a signal distribution that is more resilient to compression (e.g., using histogram equalization of one of the color components). Metadata may be associated with the pre-processing and may be attached to the bitstream.
[0079] In the encoder 100, a picture is encoded by the encoder elements as described below. The picture to be encoded is divided (102) and processed, for example, in units of CUs. Each unit is encoded, for example, using either intra mode or inter mode. When a unit is encoded in intra mode, intra prediction is performed (160). In inter mode, motion estimation (175) and motion compensation (170) are performed. The encoder decides (105) whether intra mode or inter mode is used to code the unit, and indicates the intra / inter decision, for example, by a prediction mode flag. A prediction residual is calculated, for example, by subtracting (110) the predicted block from the original image block.
[0080] The prediction residual is then transformed (125) and quantized (130). The quantized transform coefficients, as well as the motion vectors and other syntax elements, are entropy coded (145) to output a bitstream. The encoder may skip the transform and apply quantization directly to the untransformed residual signal. The encoder may also bypass both the transform and quantization, i.e., the residual is coded directly without applying a transform or quantization process.
[0081] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (140) and inverse transformed (150) to decode the prediction residual. The decoded prediction residual is combined (155) with the predicted block to reconstruct an image block. An in-loop filter (165) is applied to the reconstructed picture, for example to perform deblocking / sample adaptive offset (SAO) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (180).
[0082] Figure 22 shows a block diagram of a video decoder 200. In the decoder 200, the bitstream is decoded by elements of the decoder as described below. The video decoder 200 generally performs a decoding pass that is compatible to the encoding pass, as described in Figure 21. The encoder 100 also generally performs video decoding as part of the encoding of the video data.
[0083] In particular, the decoder input includes a video bitstream that may be generated by the video encoder 100. First, the bitstream is entropy decoded (230) to obtain transform coefficients, motion vectors, and other coded information. Picture partition information indicates how the picture is partitioned. Thus, the decoder may partition the picture according to the decoded picture partition information (235). The transform coefficients are dequantized (240) and inverse transformed (250) to decode the prediction residual. The decoded prediction residual is combined with a predicted block (255) to reconstruct an image block. The predicted block may be obtained from intra prediction (260) or motion compensated prediction (i.e., inter prediction) (275) (270). An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0084] The decoded picture may further undergo post-decoding processing (285), such as an inverse color conversion (e.g., from YCbCr 4:2:0 to RGB 4:4:4) or inverse remapping that performs the inverse of the remapping process performed in the pre-coding process (101). The post-decoding process may use metadata derived in the pre-coding process and signaled in the bitstream.
[0085] FIG. 23 illustrates a block diagram of an example of a system in which various aspects and embodiments are implemented. System 1000 may be embodied as a device including various components described below and configured to perform one or more of the aspects described herein. Examples of such devices include various electronic devices, such as, but not limited to, personal computers, laptop computers, smartphones, tablet computers, digital multimedia set-top boxes, digital television sets, personal video recording systems, connected appliances, and servers. The elements of system 1000, either alone or in combination, may be embodied in a single integrated circuit, multiple ICs, and / or separate components. For example, in at least one embodiment, the processing and encoder / decoder elements of system 1000 are distributed across multiple ICs and / or separate components. In various embodiments, system 1000 is communicatively coupled to one or more other systems or to other electronic devices, for example, via a communication bus or through dedicated input and / or output ports. In various embodiments, system 1000 is configured to implement one or more of the aspects described herein.
[0086] The system 1000 includes at least one processor 1010 configured to execute loaded instructions, for example, to implement various aspects described herein. The processor 1010 may include embedded memory, input / output interfaces, and various other circuits, as known in the art. The system 1000 includes at least one memory 1020 (e.g., a volatile memory device and / or a non-volatile memory device). The system 1000 includes a storage device 1040, which may include non-volatile memory and / or volatile memory, including, but not limited to, electrically erasable programmable read-only memory (EEPROM), read-only memory (ROM), programmable read-only memory (PROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash, magnetic disk drive, and / or optical disk drive. The storage device 1040 may include, as non-limiting examples, an internal storage device, an attached storage device (including removable and non-removable storage devices), and / or a network-accessible storage device.
[0087] The system 1000 includes an encoder / decoder module 1030 configured to process data to provide, for example, encoded or decoded video, which may include its own processor and memory. The encoder / decoder module 1030 represents a module that may be included in a device that performs encoding and / or decoding functions. As is known, a device may include one or both of an encoding and decoding module. Furthermore, the encoder / decoder module 1030 may be implemented as a separate element of the system 1000 or may be incorporated within the processor 1010 as a combination of hardware and software, as is known to those skilled in the art.
[0088] Program code loaded into the processor 1010 or the encoder / decoder 1030 to perform various aspects described herein may be stored in the storage device 1040 and subsequently loaded into the memory 1020 for execution by the processor 1010. According to various embodiments, one or more of the processor 1010, the memory 1020, the storage device 1040, and the encoder / decoder module 1030 may store one or more of various items during execution of the processes described herein. Such stored items may include, but are not limited to, input video, decoded video or portions of decoded video, bitstreams, matrices, variables, and intermediate or final results from the processing of equations, expressions, operations, and computational logic.
[0089] In some embodiments, memory internal to the processor 1010 and / or the encoder / decoder module 1030 is used to store instructions and provide working memory for processing required during encoding or decoding. However, in other embodiments, memory external to the processing device (e.g., the processing device may be either the processor 1010 or the encoder / decoder module 1030) is used for one or more of these functions. The external memory may be the memory 1020 and / or the storage device 1040, e.g., dynamic volatile memory and / or non-volatile flash memory. In some embodiments, an external non-volatile flash memory is used to store, for example, the television's operating system. In at least one embodiment, a high-speed external dynamic volatile memory such as a RAM is used as working memory for video coding and decoding operations such as MPEG-2 (MPEG stands for Moving Picture Experts Group, MPEG-2 is also referred to as ISO / IEC 13818, 13818-1 is also known as H.222, and 13818-2 is also known as H.262), HEVC (HEVC stands for High Efficiency Video Coding, also known as H.265 and MPEG-H Part 2), or VVC (Versatile Video Coding, a new standard developed by JVET, i.e. the Joint Video Experts Team).
[0090] Inputs to the elements of system 1000 may be provided through various input devices as shown in block 1130. Such input devices include, but are not limited to, (i) a radio frequency (RF) section that receives, for example, an RF signal transmitted over the air by a broadcast station, (ii) a component (COMP) input terminal (or set of COMP input terminals), (iii) a universal serial bus (USB) input terminal, and / or (iv) a high definition multimedia interface (HDMI) input terminal. Other examples not shown in FIG. 23 include composite video.
[0091] In various embodiments, the input devices of block 1130 have associated respective input processing elements as known in the art. For example, the RF section may be associated with elements suitable for (i) selecting a desired frequency (also referred to as selecting a signal or band-limiting a signal to a frequency band), (ii) down-converting the selected signal, (iii) band-limiting again to a narrower frequency band to select a signal frequency band, which in certain embodiments may be referred to as a channel (for example), (iv) demodulating the down-converted, band-limited signal, (v) performing error correction, and (vi) demultiplexing to select a desired data packet stream. The RF section of various embodiments includes one or more elements that perform these functions, e.g., a frequency selector, a signal selector, a band limiter, a channel selector, a filter, a down-converter, a demodulator, an error corrector, and a demultiplexer. The RF section may include, for example, a tuner that performs various of these functions, including down-converting a received signal to a lower frequency (e.g., an intermediate frequency or a frequency close to baseband) or to baseband. In one set-top box embodiment, the RF section and its associated input processing elements perform frequency selection by receiving, filtering, downconverting, and filtering again to a desired frequency band an RF signal transmitted over a wired (e.g., cable) medium. In various embodiments, the order of the above (and other) elements is rearranged, some of these elements are removed, and / or other elements that perform similar or different functions are added. Adding elements can include inserting elements between existing elements, such as inserting amplifiers and analog-to-digital converters. In various embodiments, the RF section includes an antenna.
[0092] Additionally, the USB and / or HDMI terminals may include respective interface processors for connecting the system 1000 to other electronic devices via USB and / or HDMI connections. It should be understood that various aspects of the input processing, e.g., Reed-Solomon error correction, may be implemented, for example, in a separate input processing IC or within the processor 1010, as desired. Similarly, aspects of the USB or HDMI interface processing may be implemented in a separate interface IC or within the processor 1010, as desired. The demodulated, error corrected, and demultiplexed stream is provided to various processing elements including, for example, the processor 1010 and an encoder / decoder 1030 operating in combination with memory and storage elements to process the data stream as desired for display on an output device.
[0093] The various elements of the system 1000 may be provided within an integrated housing in which the various elements can be interconnected and transmit data therebetween using suitable connection arrangements 1140 as are known in the art including, for example, an Inter-IC (I2C) bus, wiring, and printed circuit boards.
[0094] The system 1000 includes a communication interface 1050 that enables communication with other devices over a communication channel 1060. The communication interface 1050 may include, but is not limited to, a transceiver configured to transmit and receive data over the communication channel 1060. The communication interface 1050 may include, but is not limited to, a modem or a network card, and the communication channel 1060 may be implemented in a wired and / or wireless medium, for example.
[0095] Data is streamed or otherwise provided to the system 1000 in various embodiments using a wireless network such as a Wi-Fi network, e.g., IEEE 802.11 (IEEE refers to the Institute of Electrical and Electronics Engineers). The Wi-Fi signal in these embodiments is received via a communication channel 1060 and a communication interface 1050 adapted for Wi-Fi communication. The communication channel 1060 in these embodiments is typically connected to an access point or router that provides access to external networks, including the Internet, enabling streaming applications and other over-the-top communications. Other embodiments provide streamed data to the system 1000 using a set-top box that delivers data via an HDMI connection in the input block 1130. Still other embodiments provide streamed data to the system 1000 using an RF connection in the input block 1130. As noted above, various embodiments provide data in a non-streaming manner. Additionally, various embodiments use wireless networks other than Wi-Fi, e.g., a cellular network or a Bluetooth network.
[0096] The system 1000 can provide output signals to various output devices, including a display 1100, speakers 1110, and other peripheral devices 1120. The display 1100 of various embodiments includes, for example, one or more of a touch screen display, an organic light emitting diode (OLED) display, a curved display, and / or a foldable display. The display 1100 can be for a television, a tablet, a laptop, a mobile phone, or other device. The display 1100 can also be integrated with other components (e.g., as in a smartphone) or can be separate (e.g., an external monitor for a laptop). The other peripheral devices 1120 include, in various example embodiments, one or more of a stand-alone digital video disc (or digital versatile disc) (both terms DVR), a disc player, a stereo system, and / or a lighting system. Various embodiments use one or more peripheral devices 1120 that provide functionality based on the output of the system 1000. For example, a disc player performs the function of playing the output of the system 1000.
[0097] In various embodiments, control signals are communicated between the system 1000 and the display 1100, speaker 1110, or other peripheral devices 1120 using signaling such as AV.Link, Consumer Electronics Control (CEC), or other communication protocols that allow inter-device control with or without user intervention. The output devices may be communicatively coupled to the system 1000 via dedicated connections through respective interfaces 1070, 1080, and 1090. Alternatively, the output devices may be connected to the system 1000 using a communication channel 1060 via the communication interface 1050. The display 1100 and speaker 1110 may be integrated into a single unit with other components of the system 1000 in an electronic device such as, for example, a television. In various embodiments, the display interface 1070 includes a display driver, such as, for example, a timing controller (T Con) chip.
[0098] The display 1100 and speakers 1110 may alternatively be separate from one or more of the other components, for example, if the RF section of the input 1130 is part of a separate set-top box. In various embodiments in which the display 1100 and speakers 1110 are external components, the output signal may be provided via a dedicated output connection including, for example, an HDMI port, a USB port, or a COMP output.
[0099] The embodiments may be executed by the processor 1010 or by computer software implemented by hardware or by a combination of hardware and software. As a non-limiting example, the embodiments may be implemented by one or more integrated circuits. The memory 1020 may be of any type suitable for the technical environment and may be implemented using any suitable data storage technology, such as, as non-limiting examples, optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memories, and removable memories. The processor 1010 may be of any type suitable for the technical environment and may include, as non-limiting examples, one or more of a microprocessor, a general-purpose computer, a special-purpose computer, and a processor based on a multi-core architecture.
[0100] Various implementations involve decoding. "Decoding" as used herein may, for example, encompass all or part of the processes performed on a received encoded sequence to generate a final output suitable for display. In various embodiments, such processes include one or more of the processes typically performed by a decoder, such as entropy decoding, inverse quantization, inverse transform, and differential decoding. In various embodiments, such processes may also or alternatively include processes performed by the decoder of various implementations described herein, such as using motion information of boundary blocks to derive optical flow prediction refinement.
[0101] As a further example, in one embodiment, "decoding" refers to only entropy decoding, in another embodiment, "decoding" refers to only differential decoding, and in another embodiment, "decoding" refers to a combination of entropy and differential decoding. Whether the phrase "decoding process" is intended to refer specifically to a subset of operations or to the broader decoding process in general will be clear based on the context of a particular description and will be well understood by one of ordinary skill in the art.
[0102] Various implementations involve encoding. Similar to the above discussion regarding "decoding," "encoding" as used herein can encompass all or part of the processes performed on an input video sequence to generate, for example, an encoded bitstream. In various embodiments, such processes include one or more processes typically performed by an encoder, such as partitioning, differential encoding, transforming, quantizing, and entropy encoding. In various embodiments, such processes also or alternatively include processes performed by the encoder of various implementations described herein, such as, for example, using motion information of boundary blocks to derive optical flow prediction refinements.
[0103] As a further example, in one embodiment, "encoding" refers to only entropy encoding, in another embodiment, "encoding" refers to only differential encoding, and in another embodiment, "encoding" refers to a combination of differential and entropy encoding. Whether the phrase "encoding process" is intended to refer specifically to a subset of operations or to the broader encoding process in general will be clear based on the context of the particular description and will be well understood by one of ordinary skill in the art.
[0104] It should be noted that the syntax elements used herein, e.g., flags used to signal to enable or disable optical flow based on overlapped block motion refinement at CU and / or CTU and / or slice level, are descriptive terms, and therefore, they do not preclude the use of other syntax element names.
[0105] Where a diagram is presented as a flow diagram, it should be understood that it also provides a block diagram of the corresponding apparatus. Similarly, where a diagram is presented as a block diagram, it should be understood that it also provides a flow diagram of the corresponding method / process.
[0106] The embodiments and aspects described herein may be implemented, for example, in a method or process, an apparatus, a software program, a data stream, or a signal. Even if discussed in the context of only a single embodiment (e.g., discussed only as a method), the discussed feature implementations may also be implemented in other forms (e.g., an apparatus or a program). The apparatus may be implemented, for example, in appropriate hardware, software, and firmware. The methods may be implemented, for example, in a processor, which generally refers to a processing device including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as computers, mobile phones, portable / personal digital assistants ("PDAs"), and other devices that facilitate communication of information between end users.
[0107] References to "one embodiment" or "one embodiment," or "one implementation," as well as other variations thereof, mean that a particular feature, structure, characteristic, etc. described in connection with an embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in one embodiment," or "in one embodiment," or "in one embodiment," as well as any other variations thereof in various places throughout this application are not necessarily all referring to the same embodiment.
[0108] Additionally, the application may refer to "determining" various portions of information. Determining the information may include, for example, one or more of evaluating the information, calculating the information, predicting the information, or retrieving the information from a memory.
[0109] Additionally, the application may refer to "accessing" various portions of information. Accessing information may include, for example, one or more of receiving information, retrieving information (e.g., from a memory), storing information, moving information, copying information, calculating information, determining information, predicting information, or evaluating information.
[0110] Additionally, the application may refer to "receiving" various portions of information. Receiving, like "accessing," is intended to be a broad term. Receiving information may include, for example, one or more of accessing information or retrieving information (e.g., from a memory). Additionally, "receiving" typically involves in some manner, for example, an operation such as storing information, processing information, transmitting information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or evaluating information.
[0111] For example, in the case of "A / B," "A and / or B," and "at least one of A and B," it should be understood that the use of any of the following " / ," "and / or," and "at least one of" is intended to cover the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of both options (A and B). As a further example, in the case of "A, B, and / or C" and "at least one of A, B, and C," such language is intended to cover the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of only the third listed option (C), or the selection of only the first and second listed options (A and B), or the selection of only the first and third listed options (A and C), or the selection of only the second and third listed options (B and C), or the selection of all three options (A and B and C). This can be expanded to as many items as are listed, as would be apparent to one skilled in the art.
[0112] Also, as used herein, the word "signal" refers to, among other things, instructing a corresponding decoder to do something. For example, in a particular embodiment, the encoder signals a particular one of a plurality of parameters for deriving weighting coefficients or for deriving and / or inferring a flag that enables optical flow based on overlapped block motion refinement. In this way, in an embodiment, the same parameters are used at both the encoder and decoder sides. Thus, for example, the encoder can transmit a particular parameter to the decoder (explicit signaling), so that the decoder can use the same particular parameter. Conversely, if the decoder already has a particular parameter as well as other parameters, signaling can be used without transmission (implicit signaling) to allow the decoder to easily recognize and select the particular parameter. By avoiding the transmission of any actual function, bit savings are realized in various embodiments. It should be appreciated that signaling can be achieved in various ways. For example, one or more syntax elements, flags, etc. are used in various embodiments to signal information to the corresponding decoder. Although the above is directed to the verb form of the word "signal", the word "signal" can also be used herein as a noun.
[0113] As will be apparent to one of ordinary skill in the art, the implementations can generate a variety of signals formatted to carry information that can be, for example, stored or transmitted. The information can include, for example, instructions for performing a method or data generated by one of the described implementations. For example, the signal can be formatted to carry a bit stream of the described embodiments. Such a signal can be formatted, for example, as an electromagnetic wave (e.g., using a radio frequency portion of the spectrum) or as a baseband signal. Formatting can include, for example, encoding a data stream and modulating a carrier wave with the encoded data stream. The information that the signal carries can be, for example, analog or digital information. The signal can be transmitted over a variety of different wired or wireless links, as is known. The signal can be stored on a processor-readable medium.
[0114] Several embodiments are described. The features of these embodiments may be provided alone or in any combination across various claim categories and types. In addition, the embodiments may include one or more of the following features, devices, or aspects, alone or in any combination across various claim categories and types. Modifying the inter prediction process applied in the decoder and / or encoder. Using motion information of boundary blocks in the decoder and / or encoder to derive optical flow prediction refinement. Determining a refined motion vector to be used in optical flow based overlapped block motion refinement from the motion vector of the current block, the motion vector of the upper neighboring block, the motion vector of the left neighboring block, and motion vector weighting factors in the decoder and / or encoder. Deriving motion vector weighting factors in the decoder and / or encoder for use in optical flow based overlapped block motion refinement. Enabling optical flow based overlapped block operation refinement in the decoder and / or encoder. Inserting signaling syntax elements that allow the decoder to identify and use in inter prediction optical flow based refinement of overlapped block motion. Enabling overlapped block motion based optical flow refinement at the CU, sub-block (4x4), or larger block (e.g. 16x16) level in the decoder and / or encoder. Inserting signaling syntax elements that allow the decoder to identify the CU, sub-block, or block to which the optical flow based on overlapped block motion refinement is applied. Based on these syntax elements, select an optical flow based overlapped block motion refinement to apply at the decoder. A bitstream or signal containing one or more of the listed syntax elements or variants thereof. A bitstream or signal including syntax conveying information generated according to any of the described embodiments. Creating and / or transmitting and / or receiving and / or decoding a bitstream or signal that includes one or more of the described syntax elements, or variations thereof. Creating and / or transmitting and / or receiving and / or decoding according to any of the embodiments described. A method, process, apparatus, instruction storage medium, data storage medium, or signal according to any of the described embodiments. A television, set-top box, mobile phone, tablet, or other electronic device that performs optical flow based overlap block operation refinement according to any of the described embodiments. A television, set-top box, mobile phone, tablet, or other electronic device that performs optical flow based on overlapped block motion refinement in accordance with any of the described embodiments and displays the resulting images (e.g., using a monitor, screen, or other type of display). A television, set-top box, mobile phone, tablet, or other electronic device that selects a channel (e.g., using a tuner) to receive a signal including encoded images and performs optical flow based overlapped block motion refinement according to any of the described embodiments. A television, set-top box, mobile phone, tablet, or other electronic device that receives (e.g., using an antenna) a signal containing the encoded images and the optical flow based on overlapped block motion refinement according to any of the described embodiments.
Claims
1. A method for decoding an image block by inter prediction refinement (S100), comprising: Obtaining motion information for the block, motion information for an upper adjacent block, and motion information for a left adjacent block (S111); Obtaining new motion information for the block from a weighted sum of the motion information for the block, the motion information for the upper adjacent block, and the motion information for the left adjacent block using a motion information weighting factor (S112); using the new motion information for the block to refine the inter prediction of the image block by applying optical flow (S113); A method comprising:
2. A method for encoding an image block by inter prediction refinement (S100), comprising: Obtaining motion information for the block, motion information for an upper adjacent block, and motion information for a left adjacent block (S111); Obtaining new motion information for the block from a weighted sum of the motion information for the block, the motion information for the upper adjacent block, and the motion information for the left adjacent block using a motion information weighting factor (S112); using the new motion information for the block to refine the inter prediction of the image block by applying optical flow (S113); A method comprising:
3. An apparatus for decoding an image block by inter prediction refinement (S100), comprising: means for obtaining motion information for the block, motion information for an upper adjacent block, and motion information for a left adjacent block; means for obtaining new motion information for the block from a weighted sum of the motion information for the block, the motion information for the upper adjacent block, and the motion information for the left adjacent block using a motion information weighting factor; means for refining (S113) an inter prediction of the image block by applying optical flow using the new motion information for the block; An apparatus comprising:
4. An apparatus for encoding an image block by inter prediction refinement (S100), comprising: means for obtaining motion information for the block, motion information for an upper adjacent block, and motion information for a left adjacent block; means for obtaining new motion information for the block from a weighted sum of the motion information for the block, the motion information for the upper adjacent block, and the motion information for the left adjacent block using a motion information weighting factor; means for refining (S113) an inter prediction of the image block by applying optical flow using the new motion information for the block; An apparatus comprising:
5. A method according to any one of claims 1 and 2, wherein the inter prediction refinement is performed on boundary sub-blocks of a causal border of the image block.
6. The method according to claim 1 or 2, wherein the image block has a sub-block motion field and the inter prediction refinement is performed for any sub-block of the image block.
7. The obtaining includes obtaining at least one of motion information for a lower adjacent block and motion information for a right adjacent block; 7. The method of claim 1, wherein the obtaining comprises obtaining the new motion information for the block from a weighted sum of motion information for at least one of the motion information for the lower adjacent block and the motion information for the right adjacent block.
8. the image block having a sub-block motion field; The method of claim 1 , 2 , 5 , 6 or 7 , wherein the refining comprises refining inter prediction of the image block by applying optical flow further using the sub-block motion fields.
9. 9. The method of claim 1, 2, 5, 6, 7, or 8, wherein the inter-prediction refinement of the image block is enabled at a block level or a sub-block level in response to a size of the block being greater than a certain value or in response to an inter-prediction mode of the block.
10. 9. The method of claim 1, 2, 5, 6, 7, or 8, wherein the inter-prediction refinement of the image block is enabled at block level, sub-block level by inserting a flag into a signaling syntax element that enables identifying the block or sub-block to which the inter-prediction refinement is applied.
11. A method according to any one of claims 1 and 2, wherein the motion information weighting coefficients are derived based on the distances between pixels of the block on which the inter-prediction refinement is performed and the upper and left adjacent blocks.
12. A computer program comprising computing instructions for carrying out the method according to any one of claims 1, 2 and 5 to 11 when executed by one or more processors.
Citation Information
Patent Citations
Inter prediction refinement based on bi-directional optical flow (BIO)
US20180262773A1
Method and apparatus of BI-directional optical flow for overlapped block motion compensation in video coding
WO2018171796A1
