Motion Compensated Boundary Filtering
By performing filtering on the boundaries of prediction blocks and reconstructed adjacent blocks during video encoding and decoding, the problem of low filtering efficiency of inter-slice prediction blocks in the prior art is solved, improving video decoding efficiency and reducing complexity. .
Patent Information
- Application Number
- CN201980086052.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-12
- Filing Date
- 2019-12-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-12-16
AI Technical Summary
Existing video coding technology has low post-filtering efficiency for prediction blocks in inter-frame slices, resulting in low decoding efficiency.
During video encoding and decoding, prediction blocks in inter slices are simplified by performing filtering on the boundaries between the prediction block of the current block and the reconstructed neighboring blocks, and encoding or decoding the current block based on the filtered boundaries. filtering process.
It improves the decoding efficiency of inter-frame slices, reduces blocking artifacts, reduces complexity and memory bandwidth requirements, and improves the performance of video encoding and decoding.
Smart Images

Figure CN113261280B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to a method and apparatus for video encoding or decoding, and more particularly, to a method and apparatus for efficiently encoding and decoding a video, wherein filtering is performed on a boundary between a prediction block of a current block and a reconstructed adjacent block. Background Art
[0002] In order to achieve high compression efficiency, image and video coding schemes usually use prediction and transformation to exploit spatial and temporal redundancy in video content. Typically, intra-frame or inter-frame prediction is used to exploit intra-frame or inter-frame picture correlation, and then the difference between the original block and the predicted block, which is usually expressed as a prediction error or prediction residual, is transformed, quantized, and entropy decoded. In order to reconstruct the video, the compressed data is decoded by the inverse process corresponding to entropy decoding, quantization, transformation, and prediction. Summary of the invention
[0003] According to an embodiment, a method for video encoding is proposed, comprising: obtaining a prediction block of a current block; obtaining a reconstructed neighboring block of the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and encoding the current block based on the filtered boundary.
[0004] According to another embodiment, a method for video decoding is proposed, comprising: obtaining a prediction block of a current block; obtaining a reconstructed neighboring block of the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and decoding the current block based on the filtered boundary.
[0005] According to another embodiment, a device for video encoding is proposed, comprising: a device for obtaining a prediction block of a current block; a device for obtaining a reconstructed neighboring block of the prediction block; a device for performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and a device for encoding the current block based on the filtered boundary.
[0006] According to another embodiment, a device for video decoding is proposed, comprising: a device for obtaining a prediction block of a current block; a device for obtaining a reconstructed neighboring block of the prediction block; a device for performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and a device for decoding the current block based on the filtered boundary.
[0007] According to another embodiment, a device for video encoding is presented, comprising one or more processors, wherein the one or more processors are configured to: obtain a prediction block for a current block; obtain a reconstructed neighboring block for the prediction block; perform filtering on a boundary between the prediction block and the reconstructed neighboring block; and encode the current block based on the filtered boundary.
[0008] According to another embodiment, a device for video decoding is presented, comprising one or more processors, wherein the one or more processors are configured to: obtain a prediction block for a current block; obtain a reconstructed neighboring block for the prediction block; perform filtering on a boundary between the prediction block and the reconstructed neighboring block; and decode the current block based on the filtered boundary.
[0009] According to another embodiment, a signal includes a coded video formed by performing the following steps: obtaining a prediction block of a current block; obtaining a reconstructed neighboring block of the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and encoding the current block based on the filtered boundary. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A block diagram of an embodiment of a video encoder is shown.
[0011] Figure 2 A block diagram of an embodiment of a video decoder is shown.
[0012] Figure 3 is a diagrammatic example showing a coding tree unit and a coding tree concept for representing a compressed HEVC image.
[0013] Figure 4 is a diagrammatic example showing division of a coding tree unit into a coding unit, a prediction unit, and a transform unit.
[0014] Figure 5 is a diagrammatic example showing an overview of the OBMC (Overlapped Block Motion Compensation) principle.
[0015] Figure 6 is a pictorial example showing a process for constructing an inter-frame prediction block.
[0016] Fig. 7A and Figure 7B are diagrammatic examples showing pictures before and after deblocking filtering is applied, respectively.
[0017] Figure 8 is a diagrammatic example showing a post-filtering stage in a decoder architecture.
[0018] Fig. 9is a pictorial example showing a block boundary with blocking artifacts.
[0019] Fig.10 A process for determining a boundary strength (BS) parameter is shown.
[0020] Fig.11 A process for determining the deblocking filter strength is shown.
[0021] Fig.12 is a diagrammatic example showing boundary filtering for a current CU and a sub-PU ad being encoded / decoded.
[0022] Fig.13 A process for determining boundary strength for predictive smoothing is shown.
[0023] Fig.14 is a diagrammatic example showing filtering of pixels near boundaries, especially strong filtering of horizontal boundaries.
[0024] Fig.15 2 is a diagram showing an example of predefined values of the TC threshold depending on the QP quantization parameter value.
[0025] Fig.16 is a diagrammatic example showing PU prediction using an affine mode.
[0026] Fig.17 is a diagrammatic example showing prediction block filtering using boundary samples.
[0027] Fig.18 A block diagram of a system is shown in which aspects of the present embodiments may be implemented. DETAILED DESCRIPTION
[0028] Figure 1 An example video encoder 100 is shown, such as a High Efficiency Video Coding (HEVC) encoder. Figure 1 Encoders in which improvements are made to the HEVC standard or encoders employing techniques similar to HEVC may also be shown, such as the VVC (Versatile Video Coding) encoder under development by the JVCT (Joint Video Discovery Team).
[0029] In this application, the terms "reconstruction" and "decoding" can be used interchangeably, the terms "encoding" or "decoding" can be used interchangeably, and the terms "image", "picture" and "frame" can be used interchangeably. Usually, but not necessarily, the term "reconstruction" is used on the encoder side, while "decoding" is used on the decoder side.
[0030] Before being encoded, the video sequence may undergo a pre-encoding process (101), for example, applying a color transform to the input color picture (e.g., conversion from RGB 4:4:4 to YCbCr 4:2:0), or performing a remapping of the input picture components in order 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 appended to the bitstream.
[0031] In HEVC, to encode a video sequence having one or more pictures, a picture is partitioned (102) into one or more slices, where each slice may include one or more slice segments. Slice segments are organized into coding units, prediction units, and transform units. The HEVC specification distinguishes between "blocks" and "units", where a "block" addresses a specific area in a sample array (e.g., luma, Y), and a "unit" contains a concatenated block of all coded color components (e.g., Y, Cb, Cr, or monochrome), syntax elements, and prediction data (e.g., motion vectors) associated with the block.
[0032] For decoding, the picture is partitioned into coding tree blocks (CTBs) of a configurable square size, and a continuous set of coding tree blocks is grouped into a slice. A coding tree unit (CTU) includes the CTB of the encoded color component. The CTB is the root of the quadtree partition into coding blocks (CBs), and the coding blocks can be partitioned into one or more prediction blocks (PBs) and form the root of the quadtree partition into transform blocks (TBs). Corresponding to the coding blocks, prediction blocks, and transform blocks, the coding unit (CU) includes a tree structure set of prediction units (PUs) and transform units (TUs), the PU includes prediction information for all color components, and the TU includes a residual coding syntax structure for each color component. The sizes of the CB, PB, and TB of the luminance component are applicable to the corresponding CU, PU, and TU. In the present application, the term "block" may be used to represent, for example, any of CTU, CU, PU, TU, CB, PB, and TB. Additionally, "block" may also be used to refer to macroblocks and partitions as specified in H.264 / AVC or other video coding standards, and more generally to data arrays of various sizes.
[0033] In an exemplary encoder 100, a picture is encoded by an encoder element as described below. The picture to be encoded is processed in units of CUs. Each CU is encoded using intra or inter mode. When a CU is encoded in intra mode, it performs intra prediction (160). In inter mode, motion estimation (175) and compensation (170) are performed. The encoder decides (105) which of intra mode or inter mode to use to encode the CU, and indicates the intra / inter decision by a prediction mode flag. The prediction residual is calculated by subtracting (110) the predicted block from the original image block.
[0034] The prediction residual is then transformed (125) and quantized (130). The quantized transform coefficients as well as motion vectors and other syntax elements are entropy decoded (145) to output a bitstream. The encoder may also skip the transform and apply quantization directly to the untransformed residual signal on a 4×4TU basis. The encoder may also bypass the transform and quantization, i.e., directly decode the residual without applying the transform or quantization process. In direct PCM decoding, prediction is not applied and the coding unit samples are decoded directly into the bitstream.
[0035] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are inverse quantized (140) and inverse transformed (150) to decode the prediction residual. The decoded prediction residual and the prediction block are combined (155) to reconstruct the image block. An in-loop filter (165) is applied to the reconstructed image, for example, to perform deblocking / SAO (sample adaptive offset) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (180).
[0036] Figure 2 A block diagram of an example video decoder 200 (e.g., a HEVC decoder) is shown. In the decoder 200, a bitstream is decoded by decoder elements as described below. The video decoder 200 generally performs the same Figure 1 The encoding pass described in is reciprocal to the decoding pass, which performs video decoding as part of encoding the video data. Figure 2 Decoders in which improvements are made to the HEVC standard or decoders that employ techniques similar to HEVC, such as VVC decoders, may also be described.
[0037] Specifically, the input of the decoder comprises a video bitstream, which may be generated by the video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, picture partition information and other coding information. The picture partition information indicates the size of the CTU and the way in which the CTU is partitioned into CUs and possibly into PUs when applicable. The decoder can therefore divide (235) the picture into CTUs and each CTU into CUs based on the decoded picture partition information. The transform coefficients are inverse quantized (240) and inverse transformed (250) to decode the prediction residual.
[0038] The decoded prediction residual is combined with the prediction block (255) to reconstruct the image block. The prediction block may be obtained (270) from an intra prediction (260) or a motion compensated prediction (i.e., inter prediction) (275). In the case of bidirectional prediction, the two motion compensated predictions may be combined by a weighted sum. An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0039] The decoded picture may further undergo post-decoding processing (285), such as an inverse color transform (e.g., conversion from YCbCr 4:2:0 to RGB 4:4:4) or performing an inverse remapping of the remapping process performed in the pre-encoding process (101). The post-decoding processing may use metadata derived in the pre-encoding process and signaled in the bitstream.
[0040] The present disclosure belongs to the field of video compression and decompression. Its purpose is to improve the decoding efficiency of inter-frame slices compared with existing video compression systems (e.g., HEVC and VTM-1, see "Algorithm description for Versatile Video Coding and Test Model 1 (VTM 1)", J. Chen, E. Alshina, document JVET-J1002, Joint Video Experts Team (JVET) 10th Meeting: San Diego, US, April 10-20, 2018). The present invention proposes to simplify the post-processing of prediction block filtering in inter-frame slices.
[0041] In the HEVC video compression standard, pictures are divided into so-called coding tree units (CTUs), which are usually 64×64, 128×128 or 256×256 pixels in size. Each CTU is represented by a coding tree in the compressed domain. This is a quadtree partitioning of the CTU, where each leaf is called a coding unit (CU), such as Figure 3 As shown. Then each CU is given some intra-frame or inter-frame prediction parameters (e.g., prediction information). To this end, it is spatially partitioned into one or more prediction units (PUs), each PU being assigned some prediction information. Figure 4 As described in , intra or inter coding modes are assigned at the CU level.
[0042] Specifically, a motion vector (MV) is assigned to an inter-coded PU in HEVC (or a pair of MVs for the bidirectional case). This motion vector is used for motion compensated temporal prediction of the considered PU. In HEVC, the motion model linking a prediction block and its reference blocks simply consists of translation.
[0043] In JEM (see J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce, “Algorithm Description of Joint Exploration Test Model 7 (JEM 7)”, JVET 7th Meeting: Torino, IT, July 13-21, 2017, JVET-G1001), in contrast to the pure translation model, a PU can contain a motion field at a sub-block level (e.g., several 4×4 square sub-blocks, each with its own motion vector) using a common parameter motion model (e.g., affine mode) or using stored temporal motion (e.g., ATMVP).
[0044] OBMC (Overlapped Block Motion Compensation)
[0045] In JEM, for all inter CUs (regardless of their coding mode (sub-block based or not), the motion compensation step is followed by a process called OBMC (Overlapped Block Motion Compensation) which aims to attenuate motion transitions between CUs and motion transitions inside a CU divided into sub-blocks (similar in some way to a deblocking filter with blocking artifacts). Depending on the CU coding mode (e.g., affine mode, ATMVP, translation mode), the applied OBMC method is different. There are two different processes, one for CUs divided into smaller parts (e.g., affine and FRUC) and one for other CUs (whole CU).
[0046] In the prior art, the first step of the OBMC process includes detecting the kind of CU to perform OBMC on a block boundary or also on a sub-block within a CU block.
[0047] exist Figure 5 In, we show the basic principle for block-based OBMC, which uses top and left blocks:
[0048] -First, motion compensation is performed on the current block C using the motion vector of the current block.
[0049] -The left band of the current block C ( Figure 5 The shaded area in (c)) uses the motion vector of the left neighboring block L for motion compensation.
[0050] -The top zone of the current block C ( Figure 5 The shaded area in (d)) uses the motion vectors of the top neighboring blocks T0 and T1 for motion compensation.
[0051] - Then, a weighted sum (at block level or pixel level) is performed in order to compute the final motion compensated block.
[0052] exist Figure 6 In FIG. 1 , an example of a pipeline for building blocks is shown. Some stages may be bypassed or other processing may be added. Regarding the decoding of inter-frame predicted blocks, the following processing may be used:
[0053] -MC (601): Motion compensation (by block or sub-block). Here, when unidirectional prediction is used, the motion compensation prediction block at position (m, n) can be expressed as Pred(m, n) = ref(m + mv x ,n+mv y ), where mv x and mv y represents a motion vector (ie, displacement), and ref is a reference picture. When the motion vector is at fractional resolution, the reference may be interpolated.
[0054] - LIC (602): Local illumination compensation. Use linear adaptation to change the predicted sample values.
[0055] - BIO (603): Bidirectionally predicted optical flow. The predicted sample values are changed using the result of the optical flow estimation between the two reference blocks used to reconstruct the block. Another variant is DMVR (Decoder-side Motion Vector Refinement, Figure 6 not shown).
[0056] -GBI (604): Generalized Bidirectional Prediction. GBI uses a weighted average of two reference blocks to reconstruct the block.
[0057] - OBMC (605): Overlapped Block Motion Compensation. A weighted average of motion compensated blocks using different motion vectors from neighboring blocks is used to predict the block.
[0058] -IQ / IT: Inverse quantization and inverse transformation. IQ / IT is used to reconstruct the residual.
[0059] - Intra prediction: used to predict a block using surrounding sample values.
[0060] -Multiple Hypothesis: Several predictions (usually inter and intra) are merged together using a position-dependent weighted average. Also extended to triangle multiple hypotheses, where several inter predictions can be merged within a block.
[0061] -CCLM: Cross-component linear model. Use another already reconstructed component to predict the current component using a linear model.
[0062] Currently, during reconstruction of a particular block, the OBMC process for that block is performed. This means that the parameters required to perform motion compensation for each neighboring zone need to be saved in each neighboring block.
[0063] It should be noted here that Figure 6 In the example shown, the motion compensated prediction results from the initial motion compensation process (601) are adjusted using other prediction processes (602, 603, 604), so that the MC result can evolve according to the prediction stage. For example, after applying LIC, the MC result is different from the result from the initial MC result (601).
[0064] Deblocking filter (DBF)
[0065] After the image has been reconstructed, the deblocking filter is applied. Its purpose is to reduce blocking artifacts by smoothing sample values near block edges, such as Fig. 7A (before deblocking filtering) and Figure 7B (after deblocking filtering).
[0066] Usually, if Figure 8 As shown, the deblocking filter (840) is one of the decoding artifact reduction post filters (820) and is applied after the block samples have been reconstructed (810). The post-filtered picture can be displayed and possibly stored in a decoded picture buffer (830) for use in creating motion compensated predictions.
[0067] Boundary Strength (BS)
[0068] Fig. 9 An example of block boundary samples with blocking artifacts is described in , where samples P = {p0, p1, p2, p3} and Q = {q0, q1, q2, q3} belong to two adjacent blocks P and Q. In general, the artifact visibility is proportional to the relative difference between the sample values of P and Q. This is why the DBF filter performs sample smoothing S on block edges. The smoothing / filtering function S parameters are:
[0069] -Border Strength (BS) = {0-weak, 1-normal or 2-strong}
[0070] - Sample values of blocks P, Q
[0071] Let {MViX,ref-iX} denote the MV value and reference index of reference picture list "i" of block X (X=P or Q). By convention, if block X is unidirectionally predicted with list-0 (resp. list-1), then {MV1X is set to zero and ref-1X is set to "-1"} (resp. {MV0X is set to zero and ref-0X is set to "-1"}).
[0072] like Fig.10 As shown, the boundary strength (BS) determination process (300) may depend (350, 360, 370) on several block parameters and occur in a continuous check, for example, as in JEM:
[0073] -(305): P or Q is intra-frame or inter-frame
[0074] -(310): P and Q have zero coefficients
[0075] -(320): P and Q have different reference indices. If P is bi-directionally predicted ({MV0 P ,ref-0 P},{MV1 P ,ref-1 P}) and Q is a unidirectional prediction {MV0 Q ,ref-0 Q}, then check whether: ref-0 P ≠ref-0 Q and ref-1 P ≠ref-0 Q (Check.1)
[0076] - (330): P and Q have different number of references (uni-directional or bi-directional prediction). In a variant, (330) is not present and in uni-dir the MV value of the missing reference is inferred to be zero.
[0077] -(340): P and Q motion vectors with the same reference have a difference greater than a threshold. In a variant, if P is bi-directionally predicted ({MV0 P ,ref-0 P},{MV1 P ,ref-1 P}) and Q is a unidirectional prediction {MV0 Q ,ref-0 Q}, then check:
[0078] Is it ref-0? P =ref-0 Q and |MV0 P -MV0 Q |>Threshold
[0079] Or whether ref-1 P =ref-0 Q and |MV1 P -MV0 Q |>threshold(check.2)
[0080] In the case of luma, only block boundaries with BS equal to 1 or 2 are filtered. In the case of chroma, only block boundaries with BS equal to 2 are filtered:
[0081] -BS=0:Unbounded filter
[0082] - BS = 1 or 2: gradient-dependent weak or strong boundary filter
[0083] Filter Strength
[0084] Fig.11 A process (400) for determining the deblocking filter strength is shown. Regardless of the manner in which the BS is determined ( Fig.10 ), if BS>0(405), then additional test ( Fig.11 415) described in , determines whether to apply filtering based on a set of conditions involving a weighted combination of absolute differences of sample values compared to a predetermined threshold β:
[0085] |p20–2p10+p00|+|p23–2p13+p03|+|q20–2q10+q00|+|q23–2q13+q03|>β (Formula 1)
[0086] If the filter is applied, then Fig.11 The filtering process (430) shown modifies the boundary ( Fig. 9 ). One or more of the P, Q samples on each side of the boundary (row or column) are determined (410). The strength of the filtering process (normal or strong) is determined (420) for each boundary (row or column) on both sides of the boundary based on a set of conditions involving a combination of absolute differences of weighted sample values compared to predetermined thresholds. Some thresholds are functions (440) of quantization parameters (QP).
[0087] Then, each row (respectively column) along the vertical (respectively horizontal) boundary of the block is processed. The number of samples modified by filtering (430) on each side of the block boundary depends on the filter strength. Stronger filter strengths affect more pixels on each side of the block boundary.
[0088] A strong filter modifies 3 pixels on each side of the border, based on the values of 4 pixels on each side. A weak filter modifies 2 pixels on each side of the border, based on the values of 3 pixels on each side.
[0089] Motion Compensated Boundary Filtering
[0090] As mentioned above, the OBMC process requires random access to reference pictures of up to 5 reference blocks from a single sub-block, thus requiring 5 different memory locations. The bandwidth requirement on the decoder side is therefore very high.
[0091] In order to reduce the blocking artifacts caused by the prediction differences between adjacent blocks, the goal of this method is to smooth the block boundaries at the prediction stage before adding the residual. The principles disclosed in this application are also applicable to PUs that are divided into sub-blocks (each sub-block has different motion, such as affine, ATMVP) or not divided into sub-blocks (constant motion in the entire PU).
[0092] In one embodiment, the OBMC process including multiple MC processes is replaced by a filtering process. Filtering is applied to intra and / or inter CUs where necessary (e.g., as described for the conventional OBMC process). The filtering may be based on a deblocking filter, for example.
[0093] One or more of the following features may be used in the proposed technique:
[0094] - Before reconstructing the current CU, adaptation is applied (ie, neighboring CUs are reconstructed, but for the current CU (or PU), only prediction is performed at this stage).
[0095] - Only the current CU or PU side of the boundary can be modified, and the neighboring CUs are not reconstructed.
[0096] - Access to neighboring CUs may be limited to one column / row of reconstructed CU pixels.
[0097] - Access to adjacent reconstructed CU pixels may be restricted or prohibited at CTU boundaries.
[0098] - The process can be simplified for sub-PU motion (eg, affine or ATMVP) to reduce complexity.
[0099] - As a heuristic from Position Dependent Intra Prediction Combining (PDPC) intra prediction, simpler filters can be used to reduce the complexity of PU boundary filtering even more.
[0100] In one embodiment, the OBMC process is replaced by filtering as described below. By using filtering at the block level motion prediction stage, we aim to obtain the effect of OBMC in terms of smooth prediction. At the encoder side, the prediction residual is obtained as the difference between the filtered prediction block and the current block. At the decoder side, the prediction residual is added to the filtered prediction block to reconstruct the current block.
[0101] Return to reference Figure 6 , the OBMC can be replaced by the proposed filtering technique. Figure 5 For example, only one MC remains (e.g., Figure 5 (b) in the figure), instead of using the MC of the neighboring PU (e.g., Figure 5 Then, based on the reconstructed neighboring pixels, filtering of the predicted pixels is used to smooth the boundaries (frontier) between PUs.
[0102] Above, we described using filtering instead of OBMC. It should be noted that the present embodiment can be applied even if OBMC is retained or a different combination of prediction methods is used. The main concept is to filter at the boundary of a prediction block and an adjacent reconstructed block to smooth the boundary, regardless of the motion prediction method used to obtain the prediction block.
[0103] Fig.12 An example of processing CUs is depicted in FIG. CU 12 is the block being coded. CU0 to CU11 have been coded and can be used as decoded reference. Only the pixels of the predicted CU 12 will be modified by filtering along the PU edges. The pixels of the reconstructed neighboring CUs will be used as references.
[0104] Deblocking-based filtering
[0105] Boundary filtering of prediction pixels on the borders of the prediction PU may result from the deblocking filter used in the HEVC standard. The deblocking filtering process may be modified to consider only predicted (not yet fully reconstructed) blocks, as explained below.
[0106] Boundary Strength (BS)
[0107] First, the boundary strength between the current block Q and the neighboring block P is evaluated. The determination of BS (1350, 1360, 1370) may depend on several block parameters and may be determined in a deblocking filter such as in JEM ( Fig.13 ) is generated from the continuous inspection of:
[0108] -(1305): P or Q is intraframe or interframe
[0109] -(1310): P has non-zero coefficients
[0110] -(1320): P and Q have different reference indices. If P is bi-directionally predicted ({MV0 P ,ref-0 P},{MV1 P ,ref-1 P}) and Q is a unidirectional prediction {MV0 Q ,ref-0 Q}, then check whether: ref-0 P ≠ref-0 Qand ref-1 P ≠ref-0 Q
[0111] - (1330): P and Q have different number of references (unidirectional or bidirectional prediction). In a variant, (1330) is not present and in unidirectional, the MV value of the missing reference is inferred to be zero.
[0112] -(1340): P and Q motion vectors with the same reference have a difference greater than a threshold. In one variant, if P is bi-directionally predicted ({MV0 P ,ref-0 P},{MV1 P ,ref-1 P}) and Q is a unidirectional prediction {MV0 Q ,ref-0 Q}, then check whether:
[0113] ref-0 P =ref-0 Q and |MV0 P -MV0 Q |>>Threshold
[0114] Or ref-1P=ref-0Q and |MV1P-MV0Q|>>threshold.
[0115] In the case of luma, only block boundaries with BS equal to 1 or 2 are filtered. In the case of chroma, only block boundaries with BS equal to 2 are filtered:
[0116] -BS=0:Unbounded filter
[0117] - BS = 1 or 2: weak or strong boundary filter, depending on the gradient.
[0118] Filter Strength
[0119] Independently of the way in which BS is determined, an additional test ( Fig.11 415 - same as the deblocking filter) as shown in FIG. 415 determines whether to apply filtering:
[0120] |p20–2p10+p00|+|p23–2p13+p03|+|q20–2q10+q00|+|q23–2q13+q03|>β (Formula 1)
[0121] If the filter is applied, then Fig.11The filtering process (430) shown modifies one or more of the Q samples on the current PU side of the boundary (410) based on the sample values. The strength of the filtering process (normal or strong) is determined (420) for each boundary (row or column) based on a set of conditions involving a combination of weighted sample value absolute differences compared to predetermined thresholds. Some thresholds are functions of the quantization parameter (QP) of the block P (440).
[0122] Then, each row (respectively column) along the vertical (respectively horizontal) boundary of the block is processed. The number of samples on the current PU side of the block boundary that are modified by (430) depends on the filter strength. Stronger filter strengths affect more pixels on each side of the block boundary.
[0123] Filter the pixels
[0124] Return to view Fig.12 , CU 12 will be filtered sub-PU by sub-PU: top boundary between a and 0, top boundary between b and 0, left boundary between a and 9, and left boundary between c and 11. In addition, if CU 12 is decoded with sub-PU motion (e.g., affine, ATMVP), the internal boundaries will also be filtered, with the prediction value as a reference: horizontal boundaries between a and c, between b and d, and vertical boundaries between a and b, between c and d.
[0125] In one embodiment, the order of processing is first all horizontal boundaries to be filtered within the CU, then the vertical boundaries. In a variation of the processing order, the processing order is performed sub-PU by sub-PU in raster scan order, first the horizontal boundaries, then the vertical boundaries.
[0126] like Fig.13 As illustrated in , the strong filter modifies 3 pixels near the boundary based on 2 pixels on the reconstruction side and 4 pixels of the current CU size. The weak filter modifies 2 pixels near the boundary based on 1 pixel on the reconstruction side and 3 pixels of the current CU size.
[0127] All pixels of the current CU along the boundary are filtered as follows (mi' represents the filtered value that replaces mi after the filtering process):
[0128] - Strong filtering:
[0129]
[0130]
[0131]
[0132] -Weak filter:
[0133]
[0134]
[0135] For both cases, the filtered values may be clipped with values at the limits of the bit depth range:
[0136] mi″=clip3(0, (1<<bit depth)-1, mi′)
[0137] In a variant, the clipping value remains close to the original mi value and depends on the quantization parameter:
[0138] mi″=clip3(mi-tc, mi+tc, mi′)
[0139] in
[0140] tc=predefinedTable[QP+offset]*(1<<(bitDepthLuma-8))
[0141] Where QP is the quantization parameter of the reference decoded neighboring CU, offset is an offset that is usually set to 0, and predefinedTable is defined as an exponential function of the quantization parameter with a linear part for high QP values in order to keep the TC value fairly low for high QP, such as Fig.15 As shown, for example: predefinedTable={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,5,5,6,6,7,8,9,10,11,13,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48}
[0142] To limit memory bandwidth requirements, access to adjacent CU pixels may be limited to one column (respectively row) for vertical (respectively horizontal) boundary filtering.
[0143] Filter Strength
[0144] Modify the condition set used to determine the filter strength to remove access to the neighboring CU pixels above the first column / row. For example, as follows:
[0145] |-p10+p00|+|-p13+p03|+|q20-2q10+q00|+|q23-2q13+q03|>β
[0146] Pixel Filtering
[0147] - Strong filtering:
[0148]
[0149]
[0150]
[0151] -Weak filter:
[0152]
[0153]
[0154] CTU Boundary
[0155] In one variation, this restriction is enforced only for CTU boundaries. CTU-internal boundaries (CU boundaries not on CTU boundaries) are handled as previously defined.
[0156] In another variation, the filtering is completely disabled for CTU boundaries.
[0157] Top - CTU row border
[0158] In one variation, filtering is disabled for top CTU row boundaries. Horizontal boundaries on CTU boundaries are not filtered. All other boundaries are filtered as previously described.
[0159] Sub-PU Embodiment
[0160] For example, for ATMVP and affine modes, a PU may be subdivided into smaller PUs for prediction processing. Fig.16 PU prediction using affine mode is shown. The prediction model is derived from 2 or 3 transmission vectors, and the PU is divided into smaller sub-PUs. In the case when the PU can be subdivided into smaller PUs for prediction processing, the filtering is modified as follows:
[0161] - As mentioned before, filtering the PU boundaries includes determining the boundary strength, determining the filter strength and the actual filtering.
[0162] -For sub-PU boundaries, a weak filter is always used. The benefits are as follows:
[0163] Typically, the motion variation between adjacent sub-PUs is very small, so only weak filtering is required.
[0164] o Determination of filter properties is not necessary, which reduces complexity,
[0165] ο The filter is simpler and therefore less complex.
[0166] Simple filtering implementation
[0167] The filtering produced by the deblocking filter involves many checks and dependencies. For complexity reasons, one may wish to simplify the filter design. An example of a block boundary smoothing filter could be an adaptation of the filter used for intra PDPC. This filter only needs to be applied to inter-predicted blocks or PUs (which already have their PDPC filtered).
[0168] In this embodiment, the result of inter-frame prediction is further modified by a filtering method. The filter involves boundary reference samples (adjacent decoded CU samples). The predicted sample pred(x, y) is modified using a linear combination of reference samples according to the following equation:
[0169] pred(x,y)=(wL×R -1,y +wT×R x,-1 –wTL×R -1,-1 +(64–wL–wT+wTL)×pred(x,y)+32)>>6
[0170] Where R x,-1 ,R -1,y denotes the reference sample located at the upper left corner of the current sample (x, y) (in the decoded adjacent CU), and R -1,-1 Represents the reference sample located at the upper left corner of the current block.
[0171] Fig.17 The reference sample (R x,-1 ,R -1,y and R -1,-1 The weights are shown in Table 1.
[0172] Table 1 - Example of boundary filter weights
[0173]
[0174] *Shift depends on the size of the block and controls the width of the affected pixel band near the border. For example: shift = ((Log2[width]-2+Log2[height]-2+2)>>2).
[0175] Filter weights per edge
[0176] For the DBF example, the filtering weights may be selected on a sub-PU basis and on a boundary-by-boundary basis. For example, the left vertical boundary may not be filtered with the same weight as the top horizontal boundary, depending on the left and top neighboring PUs.
[0177] Table 2 shows an example of calculating the boundary filter weights depending on the boundary strength value. Fig.11 The boundary strength BS is determined as shown and described above.
[0178] Table 2 - Example of boundary filter weights depending on boundary strength
[0179]
[0180] The present application describes a number of aspects, including tools, features, embodiments, models, methods, etc. Many of these aspects are described as having specificity, and at least in order to illustrate individual characteristics, are usually described in a manner that may sound limited. However, this is for the purpose of describing clearly, and does not limit the application or scope of those aspects. In fact, all different aspects can be combined and interchanged to provide other aspects. In addition, these aspects can also be combined and interchanged with the aspects described in earlier applications.
[0181] The aspects described and contemplated in this application can be implemented in many different forms. Various drawings and their associated descriptions provide some embodiments herein, but other embodiments are contemplated. The associated descriptions of the drawings do not limit the breadth of the exemplary embodiments. At least one aspect is generally related to video encoding and decoding, and at least one other aspect is generally related to transmitting the generated or encoded bitstream. These and other aspects can be implemented as methods, devices, computer-readable storage media having instructions for encoding or decoding video data according to any of the described methods stored thereon, and / or computer-readable storage media having bitstreams generated according to any of the described methods stored thereon.
[0182] The various methods and other aspects described in this application can be used to modify Figure 1 and Figure 2 Modules of the video encoder 100 and decoder 200 shown, such as motion compensation modules (170, 275). In addition, aspects of the present invention are not limited to VVC or HEVC, and can be applied to, for example, other standards and recommendations (whether pre-existing or developed in the future) and extensions of any such standards and recommendations. Unless otherwise specified or technically excluded, the aspects described in this application can be used alone or in combination.
[0183] Various values are used in this application, for example, different block sizes or indices. The specific values are for example purposes, and the described aspects are not limited to these specific values.
[0184] Fig.18A block diagram of an example of a system in which various aspects and embodiments are implemented is shown. System 1800 can be implemented as a device including various components described below, and is configured to perform one or more aspects described in this application. Examples of such devices include, but are not limited to, various electronic devices, such as personal computers, laptop computers, smart phones, tablet computers, digital multimedia set-top boxes, digital television receivers, personal video recording systems, connected household appliances and servers. The elements of system 1800 can be implemented in a single integrated circuit, multiple ICs and / or discrete components individually or in combination. For example, in at least one embodiment, the processing and encoder / decoder elements of system 1800 are distributed on multiple ICs and / or discrete components. In various embodiments, the system 1800 is communicatively coupled to other similar systems or coupled to other electronic devices via, for example, a communication bus or by dedicated input and / or output ports. In various embodiments, the system 1800 is configured to implement one or more aspects described in this application.
[0185] The system 1800 includes at least one processor 1810, which is configured to execute instructions loaded therein, for implementing various aspects described in the present application, for example. The processor 1810 may include embedded memory, input and output interfaces, and various other circuits known in the art. The system 1800 includes at least one memory 1820 (e.g., volatile memory device and / or non-volatile memory device). The system 1800 includes a storage device 1840, which may include non-volatile memory and / or volatile memory, including but not limited to EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash memory, disk drive, and / or optical disk drive. As a non-limiting example, the storage device 1840 may include an internal storage device, an attached storage device, and / or a network-accessible storage device.
[0186] The system 1800 includes an encoder / decoder module 1830, which is configured to, for example, process data to provide encoded video or decoded video, and the encoder / decoder module 1830 may include its own processor and memory. The encoder / decoder module 1830 represents a module (one or more) that may be included in a device to perform encoding and / or decoding functions. As is known, a device may include one or both of the encoding module and the decoding module. In addition, the encoder / decoder module 1830 may be implemented as a separate element of the system 1800 or may be incorporated into the processor 1810 as a combination of hardware and software as known to those skilled in the art.
[0187] Program code to be loaded onto the processor 1810 or the encoder / decoder 1830 to perform various aspects described herein may be stored in the storage device 1840 and subsequently loaded onto the memory 1820 for execution by the processor 1810. According to various embodiments, one or more of the processor 1810, the memory 1820, the storage device 1840, and the encoder / decoder module 1830 may store one or more of various items during the execution of the processes described herein. These stored items may include, but are not limited to, input video, decoded video or portions of the decoded video, bitstreams, matrices, variables, and intermediate or final results from the processing of equations, formulas, operations, and operational logic.
[0188] In several embodiments, memory within the processor 1810 and / or the encoder / decoder module 1830 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 the processor 1810 or the encoder / decoder module 1830) is used for one or more of these functions. The external memory may be a memory 1820 and / or a storage device 1840, such as a dynamic volatile memory and / or a non-volatile flash memory. In several embodiments, an external non-volatile flash memory is used to store the operating system of the television. In at least one embodiment, a fast external dynamic volatile memory such as RAM is used as working memory for video encoding and decoding operations, such as working memory for MPEG-2, HEVC, or VVC (universal video coding).
[0189] As shown in block 1805, input to the elements of system 1800 may be provided through various input devices. Such input devices include, but are not limited to: (i) an RF portion that receives an RF signal transmitted over the air, for example, by a broadcaster, (ii) a composite input terminal, (iii) a USB input terminal, and / or (iv) an HDMI input terminal.
[0190] In various embodiments, the input device of block 1805 has associated corresponding input processing elements known in the art. For example, the RF section may be associated with the following applicable elements: (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) again band-limiting the frequency band to a narrower frequency band to select (e.g.,) a signal band that may be referred to as a channel in some embodiments, (iv) demodulating the down-converted and 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 to perform these functions, such as 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 a tuner that performs various of these functions, including, for example, down-converting a received signal to a lower frequency (e.g., an intermediate frequency or a near-baseband frequency) or baseband. In a set-top box embodiment, the RF part and its relevant input processing element receive the RF signal that sends by wired (for example, cable) medium, and carry out the frequency selection to the desired frequency band by filtering, down-conversion and filtering again.Various embodiments rearrange the order of above-mentioned (and other) elements, remove some in these elements, and / or add other elements that perform similar or different functions.Adding element can include and insert element between existing element, for example insert amplifier and analog-to-digital converter.In various embodiments, the RF part comprises antenna.
[0191] In addition, the USB and / or HDMI terminals may include corresponding interface processors for connecting the system 1800 to other electronic devices via USB and / or HDMI connections. It should be understood that various aspects of input processing (e.g., Solomon error correction) may be implemented as needed, for example, in a separate input processing IC or processor 1810. Similarly, various aspects of USB or HDMI interface processing may be implemented as needed in a separate interface IC or in processor 1810. The demodulated, error-corrected, and demultiplexed streams are provided to various processing elements, including, for example, processor 1810 and encoder / decoder 1830, which operate in conjunction with memory and storage elements to process the data streams as needed for presentation on output devices.
[0192] The various components of the system 1800 may be disposed within an integrated housing, in which the various components may be interconnected and transmit data between using a suitable connection arrangement 1815 (e.g., an internal bus known in the art, including an I2C bus, wiring, and a printed circuit board).
[0193] The system 1800 includes a communication interface 1850 that enables communication with other devices via a communication channel 1890. The communication interface 1850 may include, but is not limited to, a transceiver configured to send and receive data through the communication channel 1890. The communication interface 1850 may include, but is not limited to, a modem or a network card, and the communication channel 1890 may be implemented, for example, within a wired and / or wireless medium.
[0194] In various embodiments, a Wi-Fi network (e.g., IEEE 802.11) is used to stream data to the system 1800. The Wi-Fi signals of these embodiments are received through a communication channel 1890 and a communication interface 1850 suitable for Wi-Fi communication. The communication channel 1890 of these embodiments is typically connected to an access point or router that provides access to an outside network including the Internet to allow streaming applications and other cloud communications. Other embodiments use a set-top box that transfers data through an HDMI connection of an input box 1805 to provide streaming data to the system 1800. Still other embodiments use an RF connection of an input box 1805 to provide streaming data to the system 1800.
[0195] The system 1800 can provide output signals to various output devices, including a display 1865, a speaker 1875, and other peripherals 1885. In various examples of various embodiments, the other peripherals 1885 include one or more of the following: a stand-alone DVR, a disk player, a stereo system, a lighting system, and other devices that provide functions based on the output of the system 1800. In various embodiments, control signals are transmitted between the system 1800 and the display 1865, the speaker 1875, or other peripherals 1885 using signaling (such as AV.Link, CEC, or other communication protocols that implement device-to-device control with or without user intervention). The output devices can be communicatively coupled to the system 1800 via dedicated connections through the corresponding interfaces 1860, 1870, and 1880. Alternatively, the output devices can be connected to the system 1800 via the communication interface 1850 using the communication channel 1890. The display 1865 and the speaker 1875 may be integrated into a single unit in an electronic device (eg, a television) along with other components of the system 1800. In various embodiments, the display interface 1860 includes a display driver, such as a timing controller (T Con) chip.
[0196] For example, if the RF portion of input 1805 is part of a separate set-top box, the display 1865 and speaker 1875 may alternatively be separate from one or more of the other components. In various embodiments where the display 1865 and speaker 1875 are external components, the output signals may be provided via dedicated output connections, including, for example, an HDMI port, a USB port, or a COMP output.
[0197] This embodiment may include creating and / or sending and / or receiving and / or decoding a bitstream or signal including one or more of the described syntax elements or variations thereof. Embodiments may also include a TV, set-top box, cell phone, tablet computer or other electronic device that performs bidirectional prediction according to any of the described embodiments.
[0198] Embodiments of the present invention may also include a TV, set-top box, cell phone, tablet computer, or other electronic device that performs bidirectional prediction according to any of the described embodiments and displays (e.g., using a monitor, screen, or other type of display) the resulting image. Embodiments of the present invention may also include a TV, set-top box, cell phone, tablet computer, or other electronic device that tunes (e.g., using a tuner) a channel to receive a signal including an encoded image and performs bidirectional prediction according to any of the described embodiments. Embodiments of the present invention may also include a TV, set-top box, cell phone, tablet computer, or other electronic device that receives (e.g., using an antenna) a signal including an encoded image over the air and bidirectional prediction according to any of the described embodiments.
[0199] According to an embodiment, a method for video encoding is proposed, comprising: obtaining a prediction block of a current block; obtaining a reconstructed neighboring block of the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and encoding the current block based on the filtered boundary.
[0200] According to another embodiment, a method for video decoding is proposed, comprising: obtaining a prediction block of a current block; obtaining a reconstructed neighboring block of the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and decoding the current block based on the filtered boundary.
[0201] According to another embodiment, a device for video encoding is proposed, comprising: a device for obtaining a prediction block of a current block; a device for obtaining a reconstructed neighboring block of the prediction block; a device for performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and a device for encoding the current block based on the filtered boundary.
[0202] According to another embodiment, a device for video decoding is proposed, comprising: a device for obtaining a prediction block of a current block; a device for obtaining a reconstructed neighboring block of the prediction block; a device for performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and a device for decoding the current block based on the filtered boundary.
[0203] According to another embodiment, a device for video encoding is presented, comprising one or more processors, wherein the one or more processors are configured to: obtain a prediction block for a current block; obtain a reconstructed neighboring block for the prediction block; perform filtering on a boundary between the prediction block and the reconstructed neighboring block; and encode the current block based on the filtered boundary.
[0204] According to another embodiment, a device for video decoding is presented, comprising one or more processors, wherein the one or more processors are configured to: obtain a prediction block for a current block; obtain a reconstructed neighboring block for the prediction block; perform filtering on a boundary between the prediction block and the reconstructed neighboring block; and decode the current block based on the filtered boundary.
[0205] According to another embodiment, a signal including an encoded video is formed by performing the following steps: obtaining a prediction block for a current block; obtaining a reconstructed neighboring block for the prediction block; performing filtering on a boundary between the prediction block and the reconstructed neighboring block; and encoding the current block based on the filtered boundary.
[0206] According to another embodiment, said filtering uses samples from said prediction block and samples from said reconstructed neighboring blocks.
[0207] According to an embodiment, said filtering is also performed at one or more sub-block boundaries inside said current block.
[0208] According to an embodiment, said filtering adjusts only samples from said prediction block, without modifying said samples from said reconstructed neighboring blocks.
[0209] According to an embodiment, the prediction block is a motion compensated prediction block.
[0210] According to an embodiment, when the current block uses unidirectional prediction, the motion compensated prediction block is a block from a reference picture indicated by a motion vector of the current block.
[0211] According to an embodiment, when the current block uses bidirectional prediction, the motion compensated prediction block is an average value of a block from a first reference picture indicated by a first motion vector of the current block and a block from a second reference picture indicated by a second motion vector of the current block.
[0212] According to an embodiment, if local illumination compensation is used, the motion compensated prediction may be further adjusted by illumination compensation.
[0213] According to an embodiment, the filtering is performed on multiple boundaries of the prediction block.
[0214] According to an embodiment, the prediction block is inter-predicted.
[0215] According to an embodiment, the filtering uses a linear combination of reference samples from reconstructed neighboring blocks located on top and to the left of the current sample.
[0216] According to an embodiment, filter weights are applied to the filtering on a sub-block and / or boundary-by-boundary basis.
[0217] In addition, an embodiment provides a computer program including instructions, and when the instructions are executed by one or more processors, the instructions cause the one or more processors to perform the encoding method or decoding method according to any of the above embodiments. One or more of the embodiments of the present invention also provides a computer-readable storage medium on which instructions for encoding or decoding video data according to the method described above are stored. One or more embodiments also provide a computer-readable storage medium on which a bit stream generated according to the above method is stored. One or more embodiments also provide a method and apparatus for sending or receiving a bit stream generated according to the above method.
[0218] Various implementations involve decoding. As used in this application, "decoding" may include, for example, all or part of the processing performed on a received coded sequence to produce 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. Whether the phrase "decoding process" is intended to specifically refer to a subset of operations or to generally refer to a broader decoding process, this will be clear based on the context of the specific description and is believed to be fully understood by those skilled in the art.
[0219] Various implementations involve encoding.In a manner similar to the discussion above regarding "decoding," "encoding" as used in this application may include, for example, all or part of a process performed on an input video sequence to produce an encoded bitstream.
[0220] The implementations and aspects described herein can be implemented in, for example, methods or processes, devices, software programs, data streams, or signals. Even if only discussed in the context of a single form of implementation (e.g., discussed only as a method), the implementation of the discussed features can also be implemented in other forms (e.g., devices or programs). For example, the device can be implemented with appropriate hardware, software, and firmware. The method can be implemented in, for example, a device, such as a processor, which generally refers to a processing device, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. The processor also includes communication equipment, such as a computer, a cellular phone, a portable / personal digital assistant ("PDA"), and other equipment that facilitates information communication between end users.
[0221] References to "one embodiment" or "an embodiment" or "an implementation" or "an implementation" and other variations mean that the specific features, structures, characteristics, etc. described in conjunction with the embodiment are included in at least one embodiment. Therefore, the phrases "in one embodiment" or "in an embodiment" or "in an implementation" or "in an implementation" and any other variations appearing in various places in this application document do not necessarily refer to the same embodiment.
[0222] Additionally, the present application may refer to “determining” various information. Determining the information may include, for example, one or more of: estimating the information, calculating the information, predicting the information, or retrieving the information from a memory.
[0223] In addition, the present application may refer to "accessing" various information. Accessing the information may include, for example, one or more of: receiving the information, retrieving the information (e.g., retrieving the information from a memory), storing the information, moving the information, copying the information, calculating the information, determining the information, predicting the information, or estimating the information.
[0224] Additionally, the present application may involve "receiving" various information. Like "accessing," receiving is intended to be a broad term. Receiving the information may include, for example, one or more of: accessing the information or retrieving the information (e.g., from a memory). Furthermore, during operations such as storing information, processing information, sending information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or estimating information, "receiving" is generally involved in one way or another.
[0225] It should be understood that, for example, in the case of "A / B," "A and / or B," and "at least one of A and B," the use of any of the following " / ," "and / or," and "at least one of" is intended to encompass selection of only the first listed option (A), or only the second listed option (B), or 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 wording is intended to include selection of only the first listed option (A), or only the second listed option (B), or only the third listed option (C), or only the first and second listed options (A and B), or only the first and third listed options (A and C), or only the second and third listed options (B and C), or all three options (A and B and C). This can be extended to multiple items listed, as will be apparent to one of ordinary skill in this and related arts.
[0226] As will be apparent to one of ordinary skill in the art, implementations may generate various signals formatted to carry information that may be stored or transmitted, for example. The information may include, for example, instructions for executing a method, or data generated by one of the described implementations. For example, a signal may be formatted to carry a bitstream of the described embodiments. Such a signal may be formatted as, for example, an electromagnetic wave (e.g., using a radio frequency portion of a spectrum) or a baseband signal. The formatting may include, for example, encoding a data stream and modulating a carrier wave using the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is known, the signal may be transmitted over a variety of different wired or wireless links. The signal may be stored on a processor readable medium.
Claims
1. A method for video encoding, wherein include: Obtaining a prediction block of a current block, wherein the prediction block is a motion compensated prediction block, and wherein the prediction block includes a plurality of sub-blocks, and wherein each sub-block of the prediction block has its own motion vector based on a common affine motion model; Obtaining a reconstructed adjacent block of the prediction block; performing filtering on at least samples near a boundary between the prediction block and the reconstructed neighboring block in the prediction block, the filtering being based on one or more samples near the boundary in the prediction block and one or more samples near the boundary in the reconstructed neighboring block, wherein a filter strength is selected from at least a first filter strength and a second filter strength, the first filter strength being weaker than the second filter strength; filtering at one or more sub-block boundaries, wherein filtering at the sub-block boundaries is always based on the first filter strength; Obtaining a prediction residual block based on a difference between the filtered prediction block and the current block; and The prediction residual block of the current block is encoded.
2. The method according to claim 1, in, The filtering only adjusts samples from the prediction block without modifying the samples from the reconstructed neighboring blocks.
3. The method according to claim 1, in, The filtering uses a linear combination of reference samples from reconstructed neighboring blocks that are located on top and to the left of the current sample.
4. The method according to claim 1, in, Filter weights are applied to the filtering on a sub-block basis.
5. A method for video decoding, wherein include: Obtaining a prediction block and a prediction residual block of a current block, wherein the prediction block is a motion compensated prediction block, and wherein the prediction block includes a plurality of sub-blocks, and wherein each sub-block of the prediction block has its own motion vector based on a common affine motion model; Obtaining a reconstructed adjacent block of the prediction block; performing filtering on at least samples near a boundary between the prediction block and the reconstructed neighboring block in the prediction block, the filtering being based on one or more samples near the boundary in the prediction block and one or more samples near the boundary in the reconstructed neighboring block, wherein a filter strength is selected from at least a first filter strength and a second filter strength, the first filter strength being weaker than the second filter strength; filtering at one or more sub-block boundaries, wherein filtering at the sub-block boundaries is always based on the first filter strength; The current block is decoded based on the prediction residual block and the filtered prediction block.
6. The method according to claim 5, in, The filtering only adjusts samples from the prediction block without modifying the samples from the reconstructed neighboring blocks.
7. The method according to claim 5, in, The filtering uses a linear combination of reference samples from reconstructed neighboring blocks that are located on top and to the left of the current sample.
8. The method according to claim 5, in, Filter weights are applied to the filtering on a sub-block basis.
9. An apparatus for video encoding, comprising one or more processors and at least one memory coupled to the one or more processors, wherein the one or more processors are configured to: Obtaining a prediction block of a current block, wherein the prediction block is a motion compensated prediction block, and wherein the prediction block includes a plurality of sub-blocks, and wherein each sub-block of the prediction block has its own motion vector based on a common affine motion model; Obtaining a reconstructed adjacent block of the prediction block; performing filtering on at least samples near a boundary between the prediction block and the reconstructed neighboring block in the prediction block, the filtering being based on one or more samples near the boundary in the prediction block and one or more samples near the boundary in the reconstructed neighboring block, wherein a filter strength is selected from at least a first filter strength and a second filter strength, the first filter strength being weaker than the second filter strength; filtering at one or more sub-block boundaries, wherein filtering at the sub-block boundaries is always based on the first filter strength; Obtaining a prediction residual block based on a difference between the filtered prediction block and the current block; and The prediction residual block of the current block is encoded.
10. The device according to claim 9, in, The filtering only adjusts samples from the prediction block without modifying the samples from the reconstructed neighboring blocks.
11. The device according to claim 9, in, The filtering uses a linear combination of reference samples from reconstructed neighboring blocks that are located on top and to the left of the current sample.
12. The device according to claim 9, in, Filter weights are applied to the filtering on a sub-block basis.
13. A device for video decoding, comprising one or more processors and at least one memory coupled to the one or more processors, wherein the one or more processors are configured to: Obtaining a prediction block and a prediction residual block of a current block, wherein the prediction block is a motion compensated prediction block, and wherein the prediction block includes a plurality of sub-blocks, and wherein each sub-block of the prediction block has its own motion vector based on a common affine motion model; Obtaining a reconstructed adjacent block of the prediction block; performing filtering on at least samples near a boundary between the prediction block and the reconstructed neighboring block in the prediction block, the filtering being based on one or more samples near the boundary in the prediction block and one or more samples near the boundary in the reconstructed neighboring block, wherein a filter strength is selected from at least a first filter strength and a second filter strength, the first filter strength being weaker than the second filter strength; Filtering on one or more sub-block boundaries, in, Filtering at sub-block boundaries is always based on the first filter strength; The current block is decoded based on the prediction residual block and the filtered prediction block.
14. The device according to claim 13, in, The filtering only adjusts samples from the prediction block without modifying the samples from the reconstructed neighboring blocks.
15. The device according to claim 13, in, The filtering uses a linear combination of reference samples from reconstructed neighboring blocks that are located on top and to the left of the current sample.
16. The device according to claim 13, in, Filter weights are applied to the filtering on a sub-block basis.
