CN-122003860-A - Self-adaptive BIF intensity based on DBF intensity
Abstract
A method and apparatus for encoding or decoding video are provided, in which reconstructed blocks of video are obtained during encoding or decoding of video. The filtering strength of the bilateral filter is determined for the block based on at least one parameter used to encode the block. A bilateral filter is applied to the block in response to the determination of the filtering strength.
Inventors
- I. Ma Zuji
- C. Bonino
- F. Lefebvre
- S. Puri
Assignees
- 交互数字CE专利控股有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20240924
- Priority Date
- 20231011
Claims (20)
- 1. A method, comprising: a reconstructed block of the video is obtained, The filtering strength of the bilateral filter is determined based on at least one parameter used to encode the block, Responsive to the determination of the filter strength, applying the bilateral filter to the block, wherein applying the bilateral filter to the block includes determining an offset of at least one sample of the block based on the determined filter strength.
- 2. An apparatus comprising one or more processors, the processor is configured to: a reconstructed block of the video is obtained, The filtering strength of the bilateral filter is determined based on at least one parameter used to encode the block, Responsive to the determination of the filter strength, applying the bilateral filter to the block, wherein applying the bilateral filter to the block includes determining an offset of at least one sample of the block based on the determined filter strength.
- 3. The method of claim 1 or the apparatus of claim 2, wherein the at least one parameter for encoding a block comprises at least one of: the deblocking filter boundary strength determined for a block, The size or shape of the block or blocks, A value of a flag indicating whether the block has at least one non-zero transform coefficient, The quantization parameter is used to determine the quantization parameter, The absolute difference between motion vectors belonging to blocks adjacent to the block, Coding mode of the block.
- 4. A method according to claim 1 or 3 or an apparatus according to claim 2 or 3, wherein determining the filtering strength of the bilateral filter based on at least one parameter used to encode a block is performed in response to a determination that the block is encoded in a given encoding mode.
- 5. The method or apparatus of claim 4, wherein the given coding mode is an intra mode or an inter mode.
- 6. The method or apparatus of claim 4 or 5, wherein the filtering strength of the bilateral filter is set to 1 in response to determining that the block is not encoded in a given encoding mode.
- 7. The method of any of claims 1 or 3-6 or the apparatus of any of claims 2-6, wherein determining a filter strength of a bilateral filter based on at least one parameter used to encode a block is performed in response to a determination of a picture-enabling adaptive bilateral filter strength to which the block belongs.
- 8. The method or apparatus of claim 7, wherein the determination to enable adaptive bilateral filtering strength is based on an indicator signaled at a sequence parameter set level, or at a picture parameter set level, or at a slice level.
- 9. The method of any of claims 1 or 3-8 or the apparatus of any of claims 2-8, wherein determining the filter strength of the bilateral filter based on at least one parameter used to encode the block depends on a component of the block.
- 10. The method of any of claims 1 or 3-9 or the apparatus of any of claims 2-9, wherein determining the offset uses a scaling factor based on the determined filter strength.
- 11. The method of any of claims 1 or 3-10 or the apparatus of any of claims 2-10, wherein determining the offset uses a rounding offset that is based on the determined filter strength.
- 12. The method of any of claims 1 or 3-11 or the apparatus of any of claims 2-11, wherein determining the offset uses a binary shift operation based on the determined filter strength.
- 13. The method according to any of claims 1 or 3-12 or the apparatus according to any of claims 2-12, wherein the reconstructed video block is obtained by encoding a block and then decoding the encoded block.
- 14. The method according to any of claims 1 or 3-12 or the apparatus according to any of claims 2-12, wherein the reconstructed block is obtained by decoding a block.
- 15. The method of any of claims 1 or 3-14 or the apparatus of any of claims 2-14, wherein the reconstructed block is obtained as an output of an inverse transform applied when decoding the block.
- 16. The method of any of claims 1 or 3-14 or the apparatus of any of claims 2-14, wherein the reconstructed block is obtained as an output of a deblocking filter applied when decoding the block.
- 17. A signal comprising encoded data representing video, wherein the signal further comprises an indicator indicating whether adaptive bilateral filtering strength is enabled for a picture of the video.
- 18. A computer program product comprising instructions for causing one or more processors to perform the method of any one of claims 1 or 3-16.
- 19. A non-transitory computer readable medium storing executable program instructions which cause a computer executing the program instructions to perform the method of any one of claims 1 or 3-16.
- 20. An apparatus, comprising: The device according to any one of claims 2-16, and At least one of (i) an antenna configured to receive or transmit a signal, the signal comprising data representing video, (ii) a band limiter configured to limit the signal to a frequency band comprising data representing video, or (iii) a display configured to display the video.
Description
Self-adaptive BIF intensity based on DBF intensity The present application claims priority from european application number 23306765.1 filed on day 10, month 11 of 2023, which is incorporated herein by reference in its entirety. Technical Field This embodiment relates generally to video compression. The present embodiments relate to a method and apparatus for encoding or decoding an image or video. More particularly, the present embodiments relate to improving coding modes of video compression systems using template-based costs. Background To achieve high compression efficiency, image and video coding schemes typically employ prediction as well as transforms to exploit spatial and temporal redundancy in video content. In general, intra or inter prediction is used to exploit intra or inter picture correlation, and then transform, quantize, and entropy encode differences (commonly denoted as prediction errors or prediction residuals) between the original block and the predicted block. In inter prediction, a motion vector used in motion compensation is generally predicted from a motion vector predictor. To reconstruct video, the compressed data is decoded by an inverse process corresponding to entropy encoding, quantization, transformation, and prediction. Disclosure of Invention According to one aspect, a method for encoding or decoding a block of video is provided. The method includes obtaining a reconstructed block of the video, determining a filtering strength of the bilateral filter based on at least one parameter used to encode the block, and applying the bilateral filter to the block in response to the determination of the filtering strength. According to another aspect, an apparatus for encoding or decoding a block of video is provided. The apparatus includes one or more processors operable to obtain a reconstructed block of video, determine a filter strength of a bilateral filter based on at least one parameter used to encode the block, and apply the bilateral filter to the block in response to the determination of the filter strength. According to another aspect, a method for encoding video is provided. The method includes signaling an indicator that indicates whether adaptive BIF strength is enabled for a block of a picture of the video. According to another aspect, a method for decoding video is provided. The method includes decoding an indicator that indicates whether adaptive BIF strength is enabled for a block of a picture of the video. According to another aspect, an apparatus for encoding video is provided. The apparatus includes one or more processors operable to signal an indicator indicating whether adaptive BIF strength is enabled for a block of a picture of video. According to another aspect, an apparatus for decoding video is provided. The apparatus includes one or more processors operable to decode an indicator indicating whether adaptive BIF strength is enabled for a block of a picture of video. Further embodiments that may be used alone or in combination are described herein. One or more embodiments also provide a computer program comprising instructions that, when executed by one or more processors, cause the one or more processors to perform any one of the methods for encoding or decoding video according to any of the embodiments described herein. One or more of the present embodiments also provide a non-transitory computer-readable medium and/or computer-readable storage medium having stored thereon instructions for encoding or decoding video according to the methods described herein. One or more embodiments also provide a computer readable storage medium having stored thereon a bitstream generated according to the methods described herein. One or more embodiments also provide a method and apparatus for transmitting or receiving a bitstream generated according to the above method. Drawings FIG. 1 illustrates a block diagram of a system in which aspects of the present embodiments may be implemented. Fig. 2 illustrates a block diagram of an embodiment of a video encoder in which aspects of the present embodiment may be implemented. Fig. 3 illustrates a block diagram of an embodiment of a video decoder in which aspects of the present embodiment may be implemented. Fig. 4 illustrates an example of an 8 x 8 TU block of samples located at (1, 1) and a filter aperture. Fig. 5 illustrates an example of a coefficient lookup table for obtaining weights of filters. Fig. 6 illustrates adjacent samples used in a bilateral filter. Fig. 7 illustrates an example of a window covering two samples for use in weight determination of a BIF. Fig. 8 illustrates an example of samples used in weighted summation of BIF. Fig. 9 illustrates an example of applying BIF and SAO using samples from a deblocking stage as inputs. Both create offsets and these offsets are added to the input samples and clipped (clipped). Fig. 10 illustrates an example of naming convention of samples around the center sample Ic. Fig.