Method and device for video processing and medium
Patent Information
- Application Number
- CN202280087265.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-30
- Filing Date
- 2022-12-29
- Publication Date
- 2024-10-22
AI Technical Summary
然而,视频编解码技术的编解码效率通常很低,这是不期望的
Smart Images

Figure CN118830243A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to video coding techniques, and more particularly, to extended taps of an adaptive loop filter used in video coding. Background Art
[0002] Nowadays, digital video functions are being applied to all aspects of people's lives. For video encoding / decoding, various types of video compression technologies have been proposed, such as Moving Picture Experts Group (MPEG)-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4 Part 10 Advanced Video Codec (AVC), ITU-TH.265 High Efficiency Video Codec (HEVC) standard, and Versatile Video Codec (VVC) standard. However, the encoding and decoding efficiency of video encoding and decoding technologies is usually low, which is undesirable. Summary of the invention
[0003] An embodiment of the present disclosure provides a solution for video processing.
[0004] In a first aspect, a method for video processing is proposed. The method comprises: during a conversion between a video unit of a current picture of a video and a bitstream of the video unit, determining information of a previously coded picture associated with the video unit; filtering at least one sample of the video unit based on the information during a filtering process; and performing the conversion based on the at least one filtered sample. The method according to the first aspect of the present disclosure considers spatially reconstructed samples and other valuable information during the filtering process, which can advantageously improve coding efficiency and performance.
[0005] In a second aspect, another method for video processing is provided. The method includes: during conversion of a video unit to a bitstream of the video unit, determining a symmetric constraint relaxation of a parameter in a filtering process; applying the filtering process to the video unit based on the relaxation; and performing the conversion based on the filtered video unit. The method according to the second aspect of the present disclosure takes into account the symmetric constraint relaxation, which can advantageously improve codec efficiency and performance.
[0006] In a third aspect, a device for processing video data is provided. The device for processing video data includes a processor and a non-volatile memory having instructions thereon. The instructions, when executed by the processor, cause the processor to perform the method according to the first aspect or the second aspect of the present disclosure.
[0007] In a fourth aspect, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores instructions for causing a processor to execute the method according to the first aspect or the second aspect of the present disclosure.
[0008] In a fifth aspect, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method includes: determining information of a previously coded picture associated with a video unit; in a filtering process, filtering at least one sample of the video unit based on the information; and generating a bitstream based on the filtered at least one sample.
[0009] In a sixth aspect, a method for storing a video bitstream is provided. The method comprises: determining information of a previously coded picture associated with a video unit; filtering at least one sample of the video unit based on the information during filtering; generating a bitstream based on the filtered at least one sample; and storing the bitstream in a non-transitory computer-readable recording medium.
[0010] In a seventh aspect, another non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method includes: during conversion between a video unit and a bitstream of the video unit, determining a relaxation of a symmetric constraint of a parameter in a filtering process; applying the filtering process to the video unit based on the relaxation; and generating a bitstream based on the filtered video unit.
[0011] In an eighth aspect, a method for storing a bitstream of a video is provided. The method includes: determining a relaxation of a symmetric constraint of a parameter in a filtering process during conversion between a video unit and a bitstream of the video unit; applying the filtering process to the video unit based on the relaxation; generating a bitstream based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium.
[0012] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other objects, features and advantages of example embodiments of the present disclosure will become more apparent from the following detailed description with reference to the accompanying drawings, in which like reference numerals generally refer to like components throughout the example embodiments of the present disclosure.
[0014] Figure 1 A block diagram illustrating an example video encoding and decoding system according to some embodiments of the present disclosure is shown;
[0015] Figure 2 shows a block diagram illustrating a first example video encoder according to some embodiments of the present disclosure;
[0016] Figure 3 shows a block diagram illustrating an example video decoder according to some embodiments of the present disclosure;
[0017] Figure 4 The nominal vertical and horizontal positions of 4:2:2 luma and chroma samples in the picture are shown;
[0018] Figure 5 An example of an encoder block diagram is shown;
[0019] Figure 6 A picture with 18×12 luma CTU is shown, which is divided into 12 tiles and 3 raster scan strips;
[0020] Figure 7 A picture with 18×12 luma CTU is shown, which is divided into 24 tiles and 9 rectangular strips;
[0021] Figure 8 shows a picture divided into 4 tiles, 11 bricks and 4 rectangular strips;
[0022] Figures 9a to 9b An example of a CTB that crosses a picture boundary is shown, where Figure 9a shows a CTB that crosses the bottom picture boundary, Figure 9b shows a CTB that crosses the right ce picture boundary, and Fig.9c The CTB is shown crossing the right bottom picture boundary;
[0023] Fig.10 67 intra prediction modes are shown;
[0024] Fig.11 is an illustration of picture samples on an 8x8 grid and horizontal and vertical block boundaries and non-overlapping blocks of 8x8 samples that can be deblocked in parallel;
[0025] Fig.12 The pixels involved in the filter on / off decision and strong / weak filter selection are shown;
[0026] Fig.13 The filter shape used for ALF is shown;
[0027] Fig.14 Relative coordinates supported for a 5x5 diamond filter are shown;
[0028] Fig.15 An example of relative coordinates supported by a 5x5 diamond filter is shown;
[0029] Fig.16 An example of a filter having both spatial taps and extended taps is shown;
[0030] Fig.17 An example of 5x5 diamond filter support in ALF is shown;
[0031] Fig.18 An example showing support for 5x5 diamond filters in an ALF with a relaxation of the symmetry constraint;
[0032] Fig.19 An example showing support for 5x5 diamond filters in an ALF with a relaxation of the symmetry constraint;
[0033] Fig. 20 An example showing support for 5x5 diamond filters in an ALF with a relaxation of the symmetry constraint;
[0034] Fig.21 A flowchart of a method for video processing according to some embodiments of the present disclosure is shown;
[0035] Fig. 22 A flowchart showing a method for video processing according to some embodiments of the present disclosure; and
[0036] Fig.23 A block diagram of a computing device is shown in which various embodiments of the present disclosure may be implemented.
[0037] Throughout the drawings, same or similar reference numbers generally refer to same or similar elements. DETAILED DESCRIPTION
[0038] The principle of the present disclosure will now be described with reference to some embodiments. It should be understood that these embodiments are described only for the purpose of illustrating and helping those skilled in the art to understand and implement the present disclosure, without implying any limitation on the scope of the present disclosure. In addition to the methods described below, the disclosure described herein can also be implemented in various ways.
[0039] In the following description and claims, unless defined otherwise, all scientific and technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs.
[0040] References in this disclosure to "one embodiment," "an embodiment," "an example embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment must include the particular feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an example embodiment, whether or not explicitly described, it is considered to be within the knowledge of those skilled in the art to affect such feature, structure, or characteristic in relation to other embodiments.
[0041] It should be understood that although the terms "first" and "second" etc. can be used to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish one element from another element. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element without departing from the scope of the exemplary embodiments. As used herein, the term "and / or" includes any and all combinations of one or more of the listed terms.
[0042] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the exemplary embodiments. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "including", "comprising", and / or "having" when used herein indicate the presence of the features, elements, and / or components, etc., but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.
[0043] Example Environment
[0044] Figure 1 1 is a block diagram illustrating an example video codec system 100 that may utilize the techniques of the present disclosure. As shown, the video codec system 100 may include a source device 110 and a destination device 120. The source device 110 may also be referred to as a video encoding device, and the destination device 120 may also be referred to as a video decoding device. In operation, the source device 110 may be configured to generate encoded video data, and the destination device 120 may be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.
[0045] Video source 112 may include a source such as a video capture device. Examples of a video capture device include, but are not limited to, an interface that receives video data from a video content provider, a computer graphics system for generating video data, and / or combinations thereof.
[0046] The video data may include one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a bit sequence that forms a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded pictures are coded representations of pictures. The associated data may include sequence parameter sets, picture parameter sets, and other grammatical structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The coded video data may be directly transmitted to the destination device 120 via the network 130A via the I / O interface 116. The coded video data may also be stored on a storage medium / server 130B for access by the destination device 120.
[0047] The destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may obtain encoded video data from the source device 110 or the storage medium / server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to the user. The display device 122 may be integrated with the destination device 120, or may be outside the destination device 120, which is configured to be connected to an external display device interface.
[0048] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, the Versatile Video Coding (VVC) standard, and other current and / or future standards.
[0049] Figure 2 is a block diagram showing an example of a video encoder 200 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video encoder 114 in the system 100 is shown.
[0050] Video encoder 200 may be configured to implement any or all of the techniques of this disclosure. Figure 2 In the example of , video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video encoder 200. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[0051] In some embodiments, the video encoder 200 may include a partitioning unit 201, a prediction unit 202, a residual generation unit 207, a transformation unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transformation unit 211, a reconstruction unit 212, a buffer 213 and an entropy coding and decoding unit 214, and the prediction unit 202 may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-frame prediction unit 206.
[0052] In other examples, the video encoder 200 may include more, fewer, or different functional components. In one example, the prediction unit 202 may include an intra-block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, where at least one reference picture is a picture where the current video block is located.
[0053] Furthermore, although some components (such as the motion estimation unit 204 and the motion compensation unit 205) may be integrated, for the purpose of explanation, these components are described in detail below. Figure 2 are shown separately in the example.
[0054] The partitioning unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.
[0055] The mode selection unit 203 may select one of a plurality of codec modes (intra-frame coding or inter-frame coding), for example, based on the error result, and provide the generated intra-frame codec block or inter-frame codec block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the codec block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra-frame and inter-frame prediction (CIIP) modes, where the prediction is based on an inter-frame prediction signal and an intra-frame prediction signal. In the case of inter-frame prediction, the mode selection unit 203 may also select a resolution for the motion vector (e.g., sub-pixel precision or integer pixel precision) for the block.
[0056] To perform inter-frame prediction on the current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing the current video block with one or more reference frames from the buffer 213. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.
[0057] The motion estimation unit 204 and the motion compensation unit 205 may perform different operations on the current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice. As used herein, an "I slice" may refer to a portion of a picture consisting of macroblocks, all of which are based on macroblocks within the same picture. Furthermore, as used herein, in some aspects, a "P slice" and a "B slice" may refer to a portion of a picture consisting of macroblocks that are independent of macroblocks in the same picture.
[0058] In some examples, the motion estimation unit 204 may perform unidirectional prediction on the current video block, and the motion estimation unit 204 may search the reference pictures of list 0 or list 1 to find the reference video block for the current video block. The motion estimation unit 204 may then generate a reference index and a motion vector, the reference index indicating the reference picture in list 0 or list 1 containing the reference video block, and the motion vector indicating the spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.
[0059] Alternatively, in other examples, the motion estimation unit 204 may perform bidirectional prediction on the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block, and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate a plurality of reference indexes and a plurality of motion vectors, the plurality of reference indexes indicating a plurality of reference pictures in list 0 and list 1 containing a plurality of reference video blocks, and the plurality of motion vectors indicating a plurality of spatial displacements between the plurality of reference video blocks and the current video block. The motion estimation unit 204 may output the plurality of reference indexes and the plurality of motion vectors of the current video block as motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the plurality of reference video blocks indicated by the motion information of the current video block.
[0060] In some examples, motion estimation unit 204 may output a complete set of motion information for use in a decoding process by a decoder. Alternatively, in some embodiments, motion estimation unit 204 may signal motion information of a current video block with reference to motion information of another video block. For example, motion estimation unit 204 may determine that motion information of a current video block is sufficiently similar to motion information of a neighboring video block.
[0061] In one example, motion estimation unit 204 may indicate to video decoder 300 a value in a syntax structure associated with the current video block that indicates that the current video block has the same motion information as another video block.
[0062] In another example, the motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates the difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.
[0063] As discussed above, the video encoder 200 may signal motion vectors in a predictive manner.Two examples of prediction signaling techniques that may be implemented by the video encoder 200 include Advanced Motion Vector Prediction (AMVP) and merge mode signaling.
[0064] The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a prediction video block and various syntax elements.
[0065] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by a minus sign) the prediction video block(s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks corresponding to different sample portions of samples in the current video block.
[0066] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform a subtraction operation.
[0067] Transform processing unit 208 may generate one or more transform coefficient video blocks for a current video block by applying one or more transforms to the residual video block associated with the current video block.
[0068] After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.
[0069] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more prediction video blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current video block for storage in the buffer 213.
[0070] After reconstruction unit 212 reconstructs the video block, a loop filtering operation may be performed to reduce video blocking artifacts in the video block.
[0071] The entropy coding unit 214 may receive data from other functional components of the video encoder 200. When the entropy coding unit 214 receives data, the entropy coding unit 214 may perform one or more entropy coding operations to generate entropy coded data and output a bitstream including the entropy coded data.
[0072] Figure 3 is a block diagram showing an example of a video decoder 300 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video decoder 124 in the system 100 is shown.
[0073] Video decoder 300 may be configured to perform any or all of the techniques of this disclosure. Figure 3In the example of , video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video decoder 300. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.
[0074] exist Figure 3 In the example of , the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, and a reconstruction unit 306 and a buffer 307. In some examples, the video decoder 300 can perform a decoding process that is generally opposite to the encoding process described with respect to the video encoder 200.
[0075] The entropy decoding unit 301 can retrieve the encoded bitstream. The encoded bitstream may include entropy encoded video data (e.g., encoded video data blocks). The entropy decoding unit 301 can decode the entropy encoded video data, and the motion compensation unit 302 can determine motion information from the entropy decoded video data, the motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. The motion compensation unit 302 can determine the information, for example, by performing AMVP and merge mode. AMVP is used, including deriving several most likely candidates based on data and reference pictures of adjacent PBs. The motion information typically includes horizontal and vertical motion vector displacement values, one or two reference picture indexes, and in the case of prediction areas in B strips, also includes an identification of which reference picture list is associated with each index. As used herein, in some aspects, "merge mode" may refer to deriving motion information from blocks that are adjacent in space or time.
[0076] The motion compensation unit 302 may generate motion compensated blocks, possibly performing interpolation based on interpolation filters.Identifiers for the interpolation filters used with sub-pixel precision may be included in the syntax elements.
[0077] The motion compensation unit 302 may calculate interpolated values for sub-integer pixels of a reference block using interpolation filters used by the video encoder 200 during encoding of the video block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 based on received syntax information, and the motion compensation unit 302 may use the interpolation filters to generate a prediction block.
[0078] The motion compensation unit 302 may use at least part of the syntax information to determine the size of blocks used to encode (multiple) frames and / or (multiple) slices of the encoded video sequence, partition information describing how each macroblock of a picture of the encoded video sequence is partitioned, a mode indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-frame coding block, and other information for decoding the encoded video sequence. As used herein, in some aspects, a "slice" may refer to a data structure that can be decoded independently of other slices of the same picture in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice may be an entire picture, or alternatively, a region of a picture.
[0079] The intra prediction unit 303 may use, for example, an intra prediction mode received in the bitstream to form a prediction block from spatially neighboring blocks. The inverse quantization unit 304 inverse quantizes (i.e., dequantizes) the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.
[0080] The reconstruction unit 306 may obtain the decoded block, for example, by adding the residual block to the corresponding prediction block generated by the motion compensation unit 302 or the intra prediction unit 303. If necessary, a deblocking filter may also be applied to filter the decoded block to remove blocking artifacts. The decoded video block is then stored in a buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction, and the buffer 307 also generates the decoded video for presentation on a display device.
[0081] Some example embodiments of the present disclosure will be described in detail below. It should be noted that the section titles used in this document are for ease of understanding, and the embodiments disclosed in the section are not limited to that section. In addition, although some embodiments are described with reference to general video codecs or other specific video codecs, the disclosed technology is also applicable to other video coding and decoding technologies. In addition, although some embodiments describe the video encoding steps in detail, it should be understood that the corresponding decoding steps of canceling the encoding will be implemented by the decoder. In addition, the term video processing includes video coding or compression, video decoding or decompression, and video transcoding, in which video pixels are represented from one compression format to another compression format or at different compression bit rates. 1. Summary of the invention
[0083] The present disclosure relates to video coding technology. Specifically, the present disclosure relates to a coding tool for deriving intra-frame prediction modes of chrominance components using previously decoded blocks, as well as coding and decoding of intra-frame prediction modes of chrominance components and other coding and decoding tools in image / video coding. It can be applied to existing video coding standards, such as HEVC or universal video codec (VVC). It may also be applicable to future video coding standards or video codecs.
[0084] 2. Abbreviations
[0085] AVC Advanced Video Codec
[0086] CPB codec picture buffer
[0087] CRA Clean Random Access
[0088] CTU Codec Tree Unit
[0089] CVS codec video sequence
[0090] DPB Decoded Picture Buffer
[0091] DPS Decoding Parameter Set
[0092] GCI General Constraints Information
[0093] HEVC High Efficiency Video Codec
[0094] JEM Joint Exploration Model
[0095] MCTS motion constraint patch set
[0096] NAL Network Abstraction Layer
[0097] OLS output layer set
[0098] PH Picture Header
[0099] PPS Picture Parameter Set
[0100] PTL grades, levels and grades
[0101] PU Picture Unit
[0102] RRP Reference Image Resampling
[0103] RBSP Raw Byte Sequence Payload
[0104] SEI Supplemental Enhancement Information
[0105] SH Strip Head
[0106] SPS Sequence Parameter Set
[0107] VCL video codec layer
[0108] VPS Video Parameter Set
[0109] VTM VVC test model
[0110] VUI Video Availability Information
[0111] VVC Universal Video Codec
[0112] TU Transform Unit CU Codec Unit
[0113] DF Deblocking Filter
[0114] SAO Sample Adaptive Offset
[0115] ALF Adaptive Loop Filter
[0116] CBF codec block flag
[0117] QP Quantization Parameter
[0118] RDO Rate Distortion Optimization
[0119] BF Bilateral Filter
[0120] 3. Background
[0121] Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T produced H.261 and H.263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced H.264 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Codec (AVC) as well as H.264 / HEVC[1]. Since H.262, video codec standards have been based on a hybrid video codec structure that utilizes temporal prediction plus transform codecs. In order to explore future video codec technologies beyond HEVC, VCEG and MPEG jointly established the Joint Video Exploration Team (JVET) in 2015. Since then, JVET has adopted many new methods and put them into a reference software called the Joint Exploration Model (JEM)[2]. JVE meetings are held quarterly, and the goal for new codec standards is to reduce the bit rate by 50% compared to HEVC. The new video coding standard was officially named Versatile Video Coding (VVC) at the JVET meeting in April 2018, and the first version of the VVC Test Model (VTM) was released at this time. As continuous efforts contribute to VVC standardization, new coding technologies are adopted in each JVET meeting to meet the VVC standard. The VVC working draft and test model VTM are then updated after each meeting.
[0122] The latest version of the VVC draft, Versatile Video Coding (Draft 10), can be found at:
[0123] https: / / jvet-experts.org / doc_end_user / documents / 19_Teleconference / wg11 / JVET-S2001-v17.zip.
[0124] The latest reference software for VVC, called VTM, can be found at:
[0125] https: / / vcgit.hhi.fraunhofer.de / jvet-u-ee2 / VVCSoftware_VTM / - / tree / VTM-11.2.
[0126] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) are studying the potential need for standardization of future video coding technologies with compression capabilities significantly exceeding the current VVC standard. Such future standardization actions may take the form of (multiple) additional extensions to VVC or entirely new standards. In a joint collaborative effort known as the Joint Video Exploration Team (JVET), the groups work together on this exploratory activity to evaluate compression technology designs proposed by their experts in the field. The first Exploratory Experiment (EE) was built on the JVET meeting of January 6-15, 2021 and a reference software called the Enhanced Compression Model (ECM). The test model ECM will be updated after each JVET meeting.
[0127] 3.1. Color Space and Chroma Subsampling
[0128] A color space, also known as a color model (or color system), is an abstract mathematical model that simply describes the range of colors as a tuple of numbers, usually 3 or 4 values or color components (such as RGB). Basically, a color space is an explanation of coordinate systems and subspaces.
[0129] For video compression, the most frequently used color spaces are YCbCr and RGB.
[0130] YCbCr, Y'CbCr or Y Pb / Cb Pr / Cr (also written as YCBCR or Y'CBCR) is a family of color spaces used as part of the color image pipeline in video and digital photography systems. Y' is the luma component, CB and CR are the chroma components of blue difference and red difference. Y' (with a prime) is distinguished from Y, which is luminance, meaning that the light intensity is encoded non-linearly based on the gamma-corrected RGB primaries.
[0131] Chroma subsampling is the practice of encoding an image by achieving a lower resolution for chroma information than for luminance information, taking advantage of the fact that the human visual system is less sensitive to color differences than to luminance. 3.1.1. 4:4:4
[0133] Each of the three Y'CbCr components has the same sample rate, so there is no chroma subsampling. This scheme is sometimes used in high-end film scanners and film post-production. 3.1.2. 4:2:2
[0135] The two chroma components are sampled at half the luma sampling rate: the horizontal chroma resolution is halved, while the vertical chroma resolution remains unchanged. This reduces the bandwidth of the uncompressed video signal by one third with little visual difference. Examples of nominal vertical and horizontal positions for a 4:2:2 color format are shown in Figure 4 Depicted in. Figure 4 The nominal vertical and horizontal positions of 4:2:2 luma and chroma samples in the picture are shown. 3.1.3. 4:2:0
[0137] In 4:2:0, the horizontal sampling is doubled compared to 4:1:1, but the vertical resolution is halved since in this scheme the Cb and Cr channels are sampled only on every alternating line. Therefore, the data rate is the same. Cb and Cr are subsampled by a factor of 2 both horizontally and vertically. There are three variants of the 4:2:0 scheme with different horizontal and vertical positioning.
[0138] In MPEG-2, Cb and Cr are co-located in the horizontal direction. In the vertical direction, Cb and Cr are located between pixels (at intervals).
[0139] In JPEG / JFIF, H.261, and MPEG-1, Cb and Cr are positioned alternately, midway between alternating luma samples.
[0140] In 4:2:0 DV, Cb and Cr are co-located horizontally. In the vertical direction, they are co-located on alternate lines.
[0141] Table 1 SubWidthC and SubHeightC values derived from chroma_format_idc and separate_colour_plane_flag
[0142]
[0143] 3.2. Encoding and decoding process of typical video codecs
[0144] Figure 5 An example of an encoder block diagram 500 of VVC is shown, which contains three in-loop filtering blocks: deblocking filter (DF), sample adaptive offset (SAO) and ALF. Unlike DF, which uses a predefined filter, SA and ALF use the original samples of the current picture to reduce the mean square error between the original samples and the reconstructed samples by adding an offset and applying a finite impulse response (FIR) filter, respectively, where the coding side information transmits the offset and filter coefficients through the signal. ALF is located at the last processing stage of each picture and can be regarded as a tool that tries to obtain and repair artifacts produced by previous stages.
[0145] 3.3. Definition of Video / Coding Unit
[0146] A picture is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs covering a rectangular area of a picture.
[0147] A tile is divided into one or more bricks, each brick comprising multiple CTU rows within the tile.
[0148] A tile that is not divided into multiple bricks is also called a brick. However, a brick that is a proper subset of a tile is not called a tile.
[0149] A strip consists of several tiles of a picture or several bricks of tiles.
[0150] Two modes of strips are supported, namely raster scan strip mode and rectangular strip mode. In raster scan strip mode, a strip consists of a sequence of tiles in a tile raster scan of a picture. In rectangular strip mode, a strip consists of multiple bricks of a picture that together form a rectangular region of the picture. The bricks within a rectangular strip are in the order of the brick raster scan of the strip.
[0151] Figure 6 An example of raster scan striping of a picture is shown, where the picture is divided into 12 tiles and 3 raster scan strips. Figure 6 , which shows a picture with 18 by 12 luma CTUs divided into 12 tiles and 3 raster scan strips.
[0152] In the VVC specification Figure 7 An example of rectangular strip division of a picture is shown, where the picture is divided into 24 tiles (6 tile columns and 4 tile rows) and 9 rectangular strips. Figure 7 , which shows a picture with 18 by 12 luma CTUs divided into 24 tiles and 9 rectangular strips.
[0153] In the VVC specification Figure 8An example of a picture divided into tiles, bricks, and rectangular strips is shown, where the picture is divided into 4 tiles (2 tile columns and 2 tile rows), 11 bricks (the upper left tile includes 1 brick, the upper right tile includes 5 bricks, the lower left tile includes 2 bricks, and the lower right tile includes 3 bricks), and 4 rectangular strips. Figure 8 As shown, it shows a picture divided into 4 tiles, 11 bricks and 4 rectangular strips.
[0154] 3.3.1.CTU / CTB size
[0155] In VVC, the CTU size signaled in the SPS by the syntax element log2_ctu_size_minus2 can be as small as 4x4.
[0156] 7.3.2.3 Sequence parameter set RBSP syntax
[0157]
[0158]
[0159]
[0160] log2_ctu_size_minus2 plus 2 specifies the luma codec tree block size for each CTU.
[0161] log2_min_luma_coding_block_size_minus2 plus 2 specifies the minimum luma coding block size.
[0162] Variables CtbLog2SizeY, CtbSizeY, MinCbLog2SizeY, MinCbSizeY, MinTbLog2SizeY, MaxTbLog2SizeY, MinTbSizeY, MaxTbSizeY, PicWidth InCtbsY, PicHeightInCtbsY, PicSizeInCtbsY, PicWidthInMinCbsY, PicHeightInMinCbsY, PicSizeInMinCbsY, PicSizeInSamples Y, PicWidthInSamplesC and PicHeightInSamplesC are exported as follows:
[0163] CtbLog2SizeY=log2_ctu_size_minus2+2 (7-9)
[0164] CtbSizeY=1< <CtbLog2SizeY (7-10)
[0165] MinCbLog2SizeY=log2_min_luma_coding_block_size_minus2+2 (7-11)
[0166] MinCbSizeY=1<<MinCbLog2SizeY (7-12)
[0167] MinTbLog2SizeY=2 (7-13)
[0168] MaxTbLog2SizeY=6 (7-14)
[0169] MinTbSizeY=1<<MinTbLog2SizeY (7-15)
[0170] MaxTbSizeY=1<<MaxTbLog2SizeY (7-16)
[0171] PicWidthInCtbsY=Ceil(pic_width_in_luma_samples÷CtbSizeY) (7-17)
[0172] PicHeightInCtbsY=Ceil(pic_height_in_luma_samples÷CtbSizeY) (7-18)
[0173] PicSizeInCtbsY=PicWidthInCtbsY*PicHeightInCtbsY (7-19)
[0174] PicWidthInMinCbsY=pic_width_in_luma_samples / MinCbSizeY (7-20)
[0175] PicHeightInMinCbsY=pic_height_in_luma_samples / MinCbSizeY (7-21)
[0176] PicSizeInMinCbsY=PicWidthInMinCbsY*PicHeightInMinCbsY (7-22)
[0177] PicSizeInSamples Y=pic_width_in_luma_samples*pic_height_in_luma_samples (7-23)
[0178] PicWidthInSamples C = pic_width_in_luma_samples / SubWidthC (7 - 24)
[0179] PicHeightInSamples C = pic_height_in_luma_samples / SubHeightC (7 - 25).
[0180] 3.3.2. CTUs in a picture
[0181] Assume the CTB / LCU size indicated by M×N (usually M equals N as defined in HEVC / VVC), and for a CTB located at the boundary of a picture (or tile or stripe or other type, taking the picture boundary as an example), K×L samples are within the picture boundary, where K < M or L < N. For those CTBs as Figures 9a to 9c depicted in, the CTB size is still equal to MxN. However, the bottom boundary / right boundary of the CTB is outside the picture. Figures 9a to 9b Examples of CTBs spanning the picture boundary are shown. Figure 9a A CTB spanning the bottom picture boundary is shown, Figure 9b a CTB spanning the right picture boundary is shown, and Fig.9c a CTB spanning the bottom - right picture boundary is shown.
[0182] 3.4. Intra - prediction
[0183] To capture any edge direction presented in natural videos, the number of directional intra - modes is extended from 33 used in HEVC to 65, as Figure 6 shown. The planar mode and the DC mode remain unchanged. These dense directional intra - prediction modes apply to all block sizes and apply to both luma intra - prediction and chroma intra - prediction.
[0184] Fig.10 67 intra - prediction modes are shown. The traditional angular intra - prediction directions are defined as from 45 degrees to - 135 degrees in the clockwise direction, as Fig.10 shown. In VTM, several traditional angular intra - prediction modes are adaptively replaced with wide - angle intra - prediction modes for non - square blocks. The original method is used to notify the replaced modes, and the original method is remapped to the index of the wide - angle mode after parsing. The total number of intra - prediction modes remains unchanged, i.e., 67, and the intra - mode encoding and decoding method remains unchanged.
[0185] In HEVC, each intra-coded block has a square shape, and the length of each of its sides is a power of 2. Therefore, no division operation is required to generate the intra predictor using the DC mode. In VVC, blocks can have a rectangular shape, which in general requires the use of a division operation for each block. To avoid division operations for DC prediction, only the longer sides are used to calculate the average value for non-square blocks.
[0186] 3.5. Inter-frame prediction
[0187] For each inter-frame prediction CU, the motion parameters include motion vectors, reference picture indices, and reference picture list usage indices, as well as additional information required for the new coding features of VVC that will be used for inter-frame prediction sample generation. Motion parameters can be signaled in an explicit or implicit manner. When a CU is encoded and decoded in skip mode, the CU is associated with one PU and has no significant residual coefficients, no coded motion vector differences (delta) or reference picture indices. A merge mode is specified in which the motion parameters of the current CU are obtained from neighboring CUs, including spatial candidates and temporal candidates, as well as additional scheduling introduced in VVC. Merge mode can be applied to any inter-frame prediction CU, not just skip mode. An alternative to merge mode is explicit transmission of motion parameters, where motion vectors, corresponding reference picture indices for each reference picture list, and reference picture list usage flags, as well as other required information, are explicitly signaled per CU.
[0188] 3.6. Deblocking Filter
[0189] Deblocking filtering is typically a loop filter in a video codec. In VVC, the deblocking filtering process is applied to CU boundaries, transform sub-block boundaries, and predicted sub-block boundaries. The predicted sub-block boundaries include prediction unit boundaries introduced by SbTMVP (sub-block based temporal motion vector prediction) and affine mode, and the transform sub-block boundaries include transform unit boundaries introduced by SBT (sub-block transform) and ISP (intra-frame sub-partitioning) modes and transforms caused by implicit partitioning of large CUs. As done in HEVC, the processing order of the deblocking filter is defined as first filtering the vertical edges of the entire picture horizontally, followed by filtering the horizontal edges vertically. This particular order enables the application of multiple horizontal filtering or vertical filtering processes in parallel threads, or can still be implemented on a CTB-by-CTB basis with only a small processing delay.
[0190] Fig.11 is an illustration of image samples on an 8x8 grid along with horizontal and vertical block boundaries and non-overlapping blocks of 8x8 samples that can be deblocked in parallel.
[0191] First, the vertical edges in the picture are filtered. Then, the horizontal edges in the picture are filtered using the samples modified by the vertical edge filtering process as input. The vertical edges and horizontal edges in the CTB of each CTU are processed separately based on the codec unit. The vertical edges of the codec blocks in the codec unit are filtered, starting with the edge on the left hand side of the codec block and proceeding through the edges in their geometric order towards the right hand side of the codec block. The horizontal edges of the codec blocks in the codec unit are filtered, starting with the edge at the top of the codec block and proceeding through the edges in their geometric order towards the bottom of the codec block.
[0192] 3.6.1. Boundary Decision
[0193] The filter is applied on 8x8 block boundaries. Furthermore, it must be a transform block boundary or a codec subblock boundary (e.g. due to the use of affine motion prediction, ATMVP). For those that are not such boundaries, the filter is disabled.
[0194] 3.6.2. Boundary strength calculation
[0195] For transform block boundary / codec subblock boundary, if it lies in the 8x8 grid, it can be filtered, and the bS[xD i ][yD j ] settings (where [xD i ][yD j ] represents coordinates) are defined in Table 1 and Table 2 respectively.
[0196] Table 3-2 Boundary Strength (When SPS IBC is disabled)
[0197]
[0198] Table 3-3 Boundary Strength (When SPS IBC is Enabled)
[0199]
[0200]
[0201] 3.6.3. Deblocking Decisions for Luma Components
[0202] Fig.12 The pixels involved in the filter on / off decision and strong / weak filter selection are shown.
[0203] The wider, stronger luminance filter is used only when conditions 1, 2, and 3 are all true.
[0204] Condition 1 is the "large block condition". This condition detects whether the samples on the P side and the Q side belong to large blocks, which are represented by the variables bSidePisLargeBlk and bSideQisLargeBlk, respectively. bSidePisLargeBlk and bSideQisLargeBlk are defined as follows.
[0205] bSidePisLargeBlk = ((edge type is vertical and p0 belongs to width>=32
[0206] CU)||(edge type is horizontal and p0 belongs to a CU with height >= 32)? true:false
[0207] bSideQisLargeBlk=((edge type is vertical and q0 belongs to width>=32
[0208] CU)||(edge type is horizontal and q0 belongs to a CU with height>=32)? True: False. Based on bSidePisLargeBlk and bSideQisLargeBlk, condition 1 is defined as follows.
[0209] Condition 1 = (bSidePisLargeBlk || bSidePisLargeBlk)? True: False Next, if condition 1 is true, condition 2 will be further checked. First, the following variables are exported:
[0210] – As in HEVC, dp0, dp3, dq0, dq3 are derived first.
[0211] –if (side p is greater than or equal to 32)
[0212] dp0=(dp0+Abs(p50-2*p40+p30)+1)>>1
[0213] dp3=(dp3+Abs(p53-2*p43+p33)+1)>>1
[0214] –if (q side is greater than or equal to 32)
[0215] dq0=(dq0+Abs(q50-2*q40+q30)+1)>>1
[0216] dq3=(dq3+Abs(q53-2*q43+q33)+1)>>1
[0217] Condition 2 = (d < β)? True: False
[0218] Where d=dp0+dq0+dp3+dq3.
[0219] If condition 1 and condition 2 are available, then further check if any block uses sub-blocks:
[0220]
[0221] Finally, if both conditions 1 and 2 are valid, the proposed deblocking method will check condition 3 (large block strong filter condition), which is defined as follows.
[0222] In condition 3, strong filter, export the following variables:
[0223] dpq is exported as in HEVC.
[0224] sp3 = Abs(p3 - p0), as derived in HEVC.
[0225] if (p side is greater than or equal to 32)
[0226] If (Sp == 5)
[0227] sp3=(sp3+Abs(p5-p3)+1)>>1
[0228] otherwise
[0229] sp3=(sp3+Abs(p7-p3)+1)>>1
[0230] sq3 = Abs(q0 - q3), as derived in HEVC.
[0231] if (q side is greater than or equal to 32)
[0232] If (Sq == 5)
[0233] sq3=(sq3+Abs(q5-q3)+1)>>1
[0234] otherwise
[0235] sq3=(sq3+Abs(q7^q3)+1)>>1.
[0236] For example, in HEVC, StrongFilterCondition = (dpq is less than (β>>2), sp3+sq3 is less than (3*β>>5), and Abs(p0-q0) is less than (5*t C +1)>>1)? True: False.
[0237] 3.6.4. Stronger Deblocking Filter for Luma
[0238] When samples at either side of the boundary belong to a large block, a bilinear filter is used. A sample belonging to a large block is defined as when the width of a vertical edge is >= 32, and when the height of a horizontal edge is >= 32.
[0239] The bilinear filters are listed below.
[0240] Block boundary samples p i For i = 0 to Sp-1, and q i For j=0 to Sq-1 (pi and qi are the i-th samples in the row for filtering vertical edges or the i-th samples in the column for filtering horizontal edges in the above HEVC deblocking effect), then replaced by the following linear interpolation:
[0241] —p i ′=(f i *Middle s,t +(64-f i )*P s +32)>>6), cut to p i ±tcPD i
[0242] —q j ′=(g j *Middle s,t +(64-g j )*Q s +32)>>6), cut to q j ±tcPD j
[0243] where tcPD i and tcPD j The term is position-dependent shear as described in Section 3.6.2, and g j , f i , Middle s,t , P s , Q s Given below.
[0244] 3.6.5. Deblocking Decisions for Chroma
[0245] Chroma strong filtering is used on both sides of the block boundary. Here, the chroma filter is selected when both sides of the chroma edge are greater than or equal to 8 (chroma position) and the following decision with three conditions is met: The first is the decision of boundary strength and large blocks. The proposed filter can be applied when the block width or height orthogonally across the block edge is equal to or greater than 8 in the chroma sample domain. The second and third are basically the same as the HEVC luminance deblocking effect decisions, which are on / off decisions and strong filtering decisions, respectively.
[0246] In the first decision, the boundary strength (bS) is modified for chroma filtering and the conditions are checked in order. If a condition is met, the remaining conditions with lower priority are skipped.
[0247] When bS is equal to 2, or when bS is equal to 1 when a large block boundary is detected, chroma deblocking is performed. The second and third conditions are essentially the same as the following HEVC luma strong filtering decision.
[0248] In the second condition:
[0249] d is derived as the luma deblocking effect in HEVC.
[0250] The second condition will be true when d is less than β.
[0251] In the third condition, StrongFilterCondition is derived as follows:
[0252] dpq is derived as in HEVC.
[0253] sp3=Abs(p3-p0) is derived as in HEVC.
[0254] sq3=Abs(q0-q3) is derived as in HEVC.
[0255] As in the HEVC design, StrongFilterCondition = (dpq is less than (β>>2), sp3+sq3 is less than (β>>3), and Abs(p0-q0) is less than (5*t C +1)>>1).
[0256] 3.6.6. Strong deblocking filter for chroma
[0257] The following strong deblocking filter for chroma is defined:
[0258] p2′=(3*p3+2*p2+p1+p0+q0+4)>>3
[0259] p1′=(2*p3+p2+2*p1+p0+q0+q1+4)>>3
[0260] p0′=(p3+p2+p1+2*p0+q0+q1+q2+4)>>3.
[0261] The proposed chroma filtering performs deblocking on a 4×4 chroma sample grid.
[0262] 3.6.7. Position-dependent clipping
[0263] The position-dependent clipping tcPD is applied to the output samples of the luminance filtering process involving strong and long filtering of 7, 5 and 3 samples at the modification boundaries. Assuming a quantization error distribution, it is proposed to increase the clipping value of samples that are expected to have higher quantization noise and therefore higher deviation of the reconstructed sample value from the true sample value.
[0264] For each P or Q boundary filtered with an asymmetric filter, according to the result of the decision making process in Section 2.4.2, a position-dependent threshold table is selected from two tables (i.e., Tc7 and Tc3, listed below), which are provided to the decoder as side information:
[0265] Tc7={6,5,4,3,2,1,1}; Tc3={6,4,2};
[0266] tcPD=(Sp==3)? Tc3:Tc7;
[0267] tcQD=(Sq==3)? Tc3:Tc7.
[0268] For P or Q edges filtered with a short symmetric filter, a lower magnitude position-dependent threshold is applied:
[0269] Tc3 = {3, 2, 1}.
[0270] After defining the threshold, the filtered p' i and q' i The sample values are clipped according to the tcP and tcQ clipping values:
[0271] p" i = Clip3(p' i +tcP i ,p' i -tcP i ,p' i ),
[0272] q" j = Clip3(q' j +tcQ j ,q' j -tcQ j ,q' j ),
[0273] where p' i and q' i is the filtered sample value, p" i and q” j is the output sample value after clipping, and tcP i tcP iis the clipping threshold derived from the VVC tc parameters and tcPD and tcQD. Function Clip3 is the clipping function, as specified in VVC.
[0274] 3.6.8. Sub-block deblocking adjustment
[0275] To enable parallel friendly deblocking using long filter and sub-block deblocking, the long filter is restricted to modifying a maximum of 5 samples on the side using sub-block deblocking (AFFINE or ATMVP or DMVR), as shown in the luma control of the long filter. In addition, sub-block deblocking is adjusted so that sub-block boundaries close to CU or implicit TU boundaries on the 8×8 grid are restricted to modifying a maximum of two samples on each side.
[0276] The following applies to sub-block boundaries that are not aligned with CU boundaries.
[0277]
[0278]
[0279] Where edge equals 0 corresponds to CU boundary, edge equals 2 or equals orthogonal length -2 corresponds to sub-block boundary 8 samples away from CU boundary, etc. Where implicit TU is true if implicit partitioning of TU is used.
[0280] 3.7. Sample Adaptive Offset
[0281] Sample adaptive offset (SAO) is applied to the reconstructed signal after the deblocking filter using the offset specified by the encoder for each CTB. The video encoder first decides whether to apply the SAO process to the current strip. If SAO is applied to the strip, each CTB is classified into one of five SAO types, as shown in Table 3-1. The concept of SAO is to classify pixels into categories and reduce distortion by adding offsets to pixels of each category. SAO operations include edge offset (EO) and band offset (BO), where edge offset (EO) uses edge characteristics for pixel classification in SAO types 1 to 4, and band offset (BO) uses pixel intensity for pixel classification in SAO type 5. Each applicable CTB has SAO parameters, including sao_merge_left_flag, sao_merge_up_flag, SAO type, and four offsets. If sao_merge_left_flag is equal to 1, the current CTB will reuse the SAO type and left offset of the CTB. If sao_merge_up_flag is equal to 1, the current CTB will reuse the SAO type and offset of the above CTB.
[0282] Table 3-4 SAO type specifications
[0283]
[0284] 3.8. Adaptive Loop Filter
[0285] Adaptive loop filtering for video codecs minimizes the mean square error between the original sample and the decoded sample by using a Wiener-based adaptive filter. ALF is located at the last processing stage of each picture and can be regarded as a tool to capture and fix artifacts from the previous stage. The appropriate filter coefficients are determined by the encoder and explicitly signaled to the decoder. In order to achieve better coding efficiency, especially for high-resolution video, local adaptation is used for luminance signals by applying different filters to different areas or blocks in the picture. In addition to filter adaptation, filter on / off control at the codec tree unit (CTU) level also helps to improve codec efficiency. According to the syntax, the filter coefficients are sent in a picture-level header called an adaptation parameter set, and the filter on / off flag of the CTU is interleaved at the CTU level in the strip data. This syntax design not only supports picture-level optimization, but also achieves low coding delay.
[0286] 3.8.1. Signaling of parameters
[0287] According to the ALF design in VTM, filter coefficients and shearing indices are carried in the ALF APS. The ALF APS can include up to 8 chroma filters and a luma filter set with up to 25 filters. An index for each of the 25 luma classes is also included. Classes with the same index share the same filter. By merging different classes, the number of bits required to represent the filter coefficients is reduced. The absolute value of the filter coefficient uses 0 th The ALF APS is represented by an Exp-Golomb code of order 1, followed by a sign bit for non-zero coefficients. When clipping is enabled, a two-bit fixed-length code is also used to signal the clipping index for each filter coefficient. The decoder can use up to 8 ALF APSs simultaneously.
[0288] The filter control syntax elements of ALF in VTM include two types of information. First, the ALF on / off flag is signaled at the sequence, picture, slice, and CTB levels. The chroma ALF can be enabled at the picture and slice levels only when the luma ALF is enabled at the corresponding level. Second, if ALF is enabled at the picture, slice, and CTB levels, the filter usage information is signaled at the levels. If all slices within a picture use the same APS, the referenced ALF APS ID is encoded and decoded at the slice level or picture level. The luma component can reference up to 7 ALF APSs, and the chroma component can reference 1 ALF APS. For the luma CTB, a signal is used to indicate which ALF APS is used or the index of the offline trained luma filter set. For the chroma CTB, the index indicates which filter in the reference APS is used.
[0289] The data syntax elements of the ALF associated with the luma component in the VTM are listed below:
[0290]
[0291]
[0292] alf_luma_filter_signal_flag equal to 1 specifies that the luma filter set is signaled.
[0293] alf_luma_filter_signal_flag equal to 0 specifies that the luma filter set is not signaled.
[0294] alf_luma_clip_flag equal to 0 specifies that linear adaptive loop filtering is applied to the luma component.
[0295] alf_luma_clip_flag equal to 1 specifies that nonlinear adaptive loop filtering can be applied to the luma component.
[0296] alf_luma_num_filters_signalled_minus1 plus 1 specifies the number of adaptive loop filter categories for luma coefficients that can be signaled. The value of alf_luma_num_filter_signalled_minus1 shall be in the range of 0 to NumAlfFilters-1, inclusive.
[0297] alf_luma_coeff_delta_idx[filtIdx] specifies the index of the signaled adaptive loop filter luma coefficient difference for the filter class indicated by filtIdx in the range from 0 to NumAlfFilters-1. When alf_luma_coeff_delta_idx[filtIdx] is not present, it is inferred to be equal to 0. The length of alf_luma_coeff_delta_idx[filtIdx] is Ceil(Log2(alf_luma_num_filter_signalled_minus1+1)) bits. The value of alf_luma_coeff_delta_idx[filtIdx] shall be in the range of 0 to alf_luma_num_filters_signalled_minus1, inclusive.
[0298] alf_luma_coeff_abs[sfIdx][j] specifies the absolute value of the j-th coefficient of the signaled luma filter indicated by sfIdx. When alf_luma_coeff_abs[sfIdx][j] is not present, it is inferred to be equal to 0. The value of alf_luma_coeff_abs[sfIdx][j] shall be in the range of 0 to 128, inclusive.
[0299] alf_luma_coeff_sign[sfIdx][j] specifies the sign of the j-th luma coefficient of the filter indicated by sfIdx as follows:
[0300] – If alf_luma_coeff_sign[sfIdx][j] is equal to 0, then the corresponding luma filter coefficient has a positive value.
[0301] – Otherwise (alf_luma_coeff_sign[sfIdx][j] is equal to 1), the corresponding luma filter coefficient has a negative value.
[0302] When alf_luma_coeff_sign[sfIdx][j] is not present, it is inferred to be equal to 0.
[0303] alf_luma_clip_idx[sfIdx][j] specifies the clipping index of the clipping value to be used before multiplication by the j-th coefficient of the signaled luma filter indicated by sfIdx. When alf_luma_clip_idx[sfIdx][j] is not present, it is inferred to be equal to 0.
[0304] The codec tree unit syntax elements of the ALF associated with the luma component in the VTM are listed below:
[0305]
[0306] alf_ctb_flag[cIdx][xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 1 specifies that an adaptive loop filter is applied to the codec tree block of the color component indicated by cIdx of the codec tree unit at luma position (xCtb, yCtb). alf_ctb_flag[cIdx][xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 0 specifies that an adaptive loop filter is not applied to the codec tree block of the color component indicated by cIdx of the codec tree unit at luma position (xCtb, yCtb).
[0307] When alf_ctb_flag[cIdx][xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is not present, it is inferred to be equal to 0.
[0308] alf_use_aps_flag equal to 0 specifies that one of the fixed filter sets is applied to luma CTBs. alf_use_aps_flag equal to 1 specifies that the filter set from the APS is applied to luma CTBs. When alf_use_aps_flag is not present, it is inferred to be equal to 0.
[0309] alf_luma_prev_filter_idx specifies the previous filter applied to the luma CTB. The value of alf_luma_prev_filter_idx should be in the range of 0 to sh_num_alf_aps_ids_luma_1, inclusive. When alf_luma_prev_filter_idx is not present, it is inferred to be equal to 0.
[0310] The variable AlfCtbFiltSetIdxY[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY], which specifies the filter set index of the luma CTB at position (xCtb, yCtb), is derived as follows:
[0311] – If alf_use_aps_flag is equal to 0, AlfCtbFiltSetIdxY[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is set equal to alf_luma_fixed_filter_idx.
[0312] – Otherwise, AlfCtbFiltSetIdxY[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is set equal to 16+alf_luma_prev_filter_idx.
[0313] alf_luma_fixed_filter_idx specifies the fixed filter applied to the luma CTB. The value of alf_luma_fixed_filter_idx should be in the range of 0 to 15 (inclusive).
[0314] Based on the ALF design of VTM, the ALF design of ECM further introduces the concept of alternative filter sets into the luma filter. The luma filter is trained for multiple alternatives / rounds based on the updated luma CTU ALF on / off decisions for each alternative / round. In this way, there will be multiple filter sets associated with each training alternative, and the class merging results for each filter set can be different. Each CTU can select the best filter set by the RDO, and the relevant alternative information will be signaled.
[0315] The data syntax elements of the ALF associated with the LUMA component in the ECM are listed as follows:
[0316]
[0317]
[0318] alf_luma_num_alts_minus1 plus 1 specifies the number of alternative filter sets for the luma component. The value of alf_luma_num_alts_minus1 should be in the range of 0 to 3 (inclusive).
[0319] alf_luma_clip_flag[altIdx] equal to 0 specifies that the linear adaptive loop filter is applied to the clip with index altIdx alf_luma_clip_flag[altIdx] equal to 1 specifies that non-linear adaptive loop filtering can be applied to the alternative luma filter set for the luma component with index altIdx.
[0320] alf_luma_num_filter_signalled_minus1[altIdx] plus 1 specifies the number of adaptive loop filter categories that can signal luma coefficients in the alternative luma filter set with index altIdx. The value of alf_luma_num_filters_signalled_minus1[altIdx] shall be in the range of 0 to NumAlfFilters-1, inclusive.
[0321] alf_luma_coeff_delta_idx[altIdx][filtIdx] specifies the index of the signaled adaptive loop filter luma coefficient difference for the filter class indicated by filtIdx ranging from 0 to NumAlfFilters-1 for the alternative luma filter set with index altIdx. When alf_luma_coeff_delta_idx[filtIdx][altIdx] is not present, it is inferred to be equal to 0. alf_luma_coeff_delta_idx[altIdx][filtIdx] has a length of Ceil(Log2(alf_luma_num_filter_signalled_minus1[altIdx]+1)) bits. The value of alf_luma_coeff_delta_idx[altIdx][filtIdx] shall be in the range of 0 to alf_luma_num_filter_signalled_minus1[altIdx], inclusive.
[0322] alf_luma_coeff_abs[altIdx][sfIdx][j] specifies the absolute value of the j-th coefficient of the signaled luma filter indicated by sfIdx of the alternative luma filter set with index altIdx. When alf_luma_coeff_abs[altIdx][sfIdx][j] is not present, it is inferred to be equal to 0. The value of alf_luma_coeff_abs[altIdx][sfIdx][j] should be in the range of 0 to 128, inclusive.
[0323] alf_luma_coeff_sign[altIdx][sfIdx][j] specifies the sign of the j-th luma coefficient of the filter indicated by sfIdx of the alternative luma filter set with index altIdx as follows:
[0324] – If alf_luma_coeff_sign[altIdx][sfIdx][j] is equal to 0, then the corresponding luma filter coefficient has a positive value.
[0325] – Otherwise (alf_luma_coeff_sign[altIdx][sfIdx][j] is equal to 1), the corresponding luma filter coefficient has a negative value.
[0326] When alf_luma_coeff_sign[altIdx][sfIdx][j] is not present, it is inferred to be equal to 0.
[0327] alf_luma_clip_idx[altIdx][sfIdx][j] specifies the clipping index of the clipping value used before multiplication by the j-th coefficient of the signaled luma filter indicated by sfIdx of the alternative luma filter set with index altIdx. When alf_luma_clip_idx[altIdx][sfIdx][j] is not present, it is inferred to be equal to 0.
[0328] The codec tree unit syntax elements of the ALF associated with the luma component in the ECM are listed as follows:
[0329]
[0330] alf_ctb_luma_filter_alt_idx[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] specifies the index of the alternative luma filter of the codec tree block applied to the luma component of the codec tree unit at luma position (xCtb, yCtb). When alf_ctb_luma_filter_alt_idx[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] is not present, it is inferred to be equal to zero.
[0331] Filter shape
[0332] In JEM, up to three diamond filter shapes can be selected for the luminance component (e.g. Fig.13 shown). Fig.13 The filter shape of the ALF is shown. An index is signaled at the picture level to indicate the filter shape for the luma component. Each square represents a sample, and Ci (i is 0 to 6 (left), 0 to 12 (center), 0 to 20 (right)) represents the coefficient to be applied to the sample. For the chroma components in a picture, a 5x5 diamond shape is always used. In VVC, a 7x7 diamond is always used for luma, and a 5x5 diamond is always used for chroma.
[0333] 3.8.3. Classification for ALF
[0334] Each 2x2 (or 4x4) block is classified into one of 25 categories. The classification index C is based on its directionality D and activity The quantized value of is derived as follows:
[0335]
[0336] To calculate D and First, use the 1-D Laplacian to calculate the gradient in the horizontal, vertical, and two diagonal directions:
[0337]
[0338] The indices i and j refer to the coordinates of the top left sample in the 2x2 block, and R(i,j) indicates the reconstructed sample at the (i,j) coordinates.
[0339] Then, the maximum and minimum values of the gradient D in the horizontal and vertical directions are set to:
[0340]
[0341] And the maximum and minimum values of the gradients in the two diagonal directions are set to:
[0342]
[0343] To derive the value of the directivity D, these values are compared with each other and with two thresholds t1 and t2, and:
[0344] Step 1 If and If both are true, D is set to 0.
[0345] Step 2 If Then proceed to step 3; otherwise, proceed to step 4.
[0346] Step 3 If D is set to 2; otherwise D is set to 1.
[0347] Step 4 If D is set to 4; otherwise D is set to 3.
[0348] The activity value A is calculated as:
[0349]
[0350] A is further quantized to the range of 0 to 4, inclusive, and the quantized value is expressed as For the two chroma components in a picture, no classification method is applied, ie, a single set of ALF coefficients is applied for each chroma component.
[0351] 3.8.4. Geometric transformation of filter coefficients
[0352] Before filtering each 2x2 block, geometric transformations such as rotation or diagonal and vertical flipping are applied to the filter coefficients f(k,l) associated with the coordinates (k,l), depending on the gradient values calculated for the block. This is equivalent to applying these transformations to the samples in the filter support region. The idea is to make different blocks to which the ALF is applied more similar by aligning its directionality.
[0353] Introduce three geometric transformations, including diagonal, vertical flip and rotation:
[0354] Diagonal: f D (k,l)=f(l,k)
[0355] Flip vertically: f V (k,l)=f(k,Kl-1)
[0356] Rotation: f R (k,l)=f(Kl-1,k)
[0357] Where K is the size of the filter and 0≤k,l≤K-1 are the coefficient coordinates, such that position (0,0) is in the upper left corner and position (K-1,K-1) is in the lower right corner. Depending on the gradient value calculated for the block, a transform is applied to the filter coefficients f(k,l). The relationship between the transform and the four gradients in the four directions is summarized in Tables 3-5. Fig.14 The transform coefficients for each position based on a 5x5 diamond are shown.
[0358] Table 3-5 Mapping of gradients and transformations computed for a block.
[0359] Gradient Value Transform <![CDATA[g d2 <g d1 and g h <g v ]]> No transformation <![CDATA[g d2 <g d1 and g v <g h ]]> diagonal <![CDATA[g d1 <g d2 and g h <g v ]]> Flip Vertically <![CDATA[g d1 <g d2 and g v <g h ]]> Rotation
[0360] 3.8.5. Filtering process
[0361] At the decoder side, when ALF is enabled for a block, each sample R(i,j) within the block is filtered, resulting in a sample value R′(i,j) as shown below, where L represents the filter length and f m,n denotes the filter coefficients, and f(k,l) denotes the decoded filter coefficients.
[0362]
[0363] Fig.15An example of relative coordinates for a 5x5 diamond filter support is shown assuming that the coordinates (i, j) of the current sample are (0, 0). Samples in different coordinates filled with the same color are multiplied by the same filter coefficients.
[0364] 3.8.6. Nonlinear Filtering Reconstruction
[0365] Without compromising codec efficiency, linear filtering can be reconstructed in the following expression:
[0366]
[0367] where w(i,j) are the same filter coefficients.
[0368] VVC introduces nonlinearity to make the ALF more efficient by using a simple clipping function to reduce the influence of neighboring sample values (I(x+i,y+j)) when they are too different from the current sample value being filtered (I(x,y)).
[0369] More specifically, the ALF filter is modified as follows:
[0370]
[0371] where K(d,b)=min(b,max(-b,d)) is the shearing function and k(i,j) is the shearing parameter, which depends on the (i,j) filter coefficients. The encoder performs an optimization to find the best k(i,j).
[0372] A clipping parameter k(i,j) is specified for each ALF filter, and one clipping value is signaled per filter coefficient. This means that up to 12 clipping values can be signaled in the bitstream for each luma filter, and up to 6 clipping values for chroma filters.
[0373] In order to limit the signaling cost and encoder complexity, only 4 fixed values that are the same for both INTER and INTRA slices are used.
[0374] Because the variance of local differences is usually higher for luma than for chroma, two different sets of filters are applied for luma and chroma. A maximum sample value in each set is also introduced (here 1024 for 10-bit bit depth) so that clipping can be disabled if not needed.
[0375] The 4 values have been chosen by dividing the full range of sample values for luma (encoded at 10 bits) and the range from 4 to 1024 for chroma approximately equally in the logarithmic domain.
[0376] More precisely, the brightness table of the clipped values has been obtained by the following formula:
[0377] Where M = 2 10 and N=4. Similarly, the chromaticity table of the clipping value is obtained according to the following formula:
[0378] N=4 and A=4
[0379] 3.9. Bilateral Loop Filter
[0380] 3.9.1. Bilateral Image Filter
[0381] Bilateral image filter is a nonlinear filter that smoothes noise while preserving edge structure. Bilateral filtering is a technique that makes the filter weight decrease not only with the distance between samples but also with the increase of intensity difference. In this way, the over-smoothing of edges can be improved. The weight is defined as
[0382]
[0383] where Δx is the vertical distance, Δy is the horizontal distance and ΔI is the intensity difference between the samples.
[0384] The edge-preserving denoising bilateral filter uses a low-pass Gaussian filter for both the domain filter and the range filter. The domain low-pass Gaussian filter gives higher weights to pixels that are spatially close to the center pixel. The range low-pass Gaussian filter gives higher weights to pixels that are similar to the center pixel. Combining the range filter and the domain filter, the bilateral filter at the edge pixel becomes an elongated Gaussian filter that is oriented along the edge and greatly reduced in the gradient direction. This is why the bilateral filter can smooth noise while preserving edge structure.
[0385] 3.9.2. Bilateral Filters in Video Codecs
[0386] The bilateral filter in video codec is proposed as a codec tool for VVC [1]. The filter acts as a loop filter in parallel with the sample adaptive offset (SAO) filter. Both the bilateral filter and SAO act on the same input samples, and each filter produces an offset, which is then added to the input sample to produce an output sample, which is passed to the next stage after clipping. The spatial filter strength σ d Determined by the block size, where smaller blocks are filtered more strongly, and the intensity filter strength σ r Determined by the quantization parameter, where stronger filtering is used for higher QPs. Only the four closest samples are used, so the filtered sample strength I F It can be calculated as
[0387]
[0388] Among them I CIndicates the intensity of the central sample, △I A =I A -I C The intensity difference between the center sample and the samples above. △I B , △I L and △I R Represent the intensity difference between the center sample and the samples below, to the left, and to the right, respectively.
[0389] 4. Question
[0390] The design of adaptive loop filter in existing video codecs has the following problems:
[0391] 1. In current ALF designs, only spatially reconstructed samples are used for filter training and filtering. However, there is other valuable information that can potentially be exploited, such as samples within a reconstructed reference frame or a corresponding prediction frame.
[0392] 2. In the current ALF design, only luma reconstruction samples are used for luma filter training and filtering. However, the cross-component based concept can potentially benefit the luma filter of ALF.
[0393] 3. In current ALF designs, the filter coefficients are strongly designed in a symmetric manner. However, relaxation of the symmetry constraint could potentially provide more information for the ALF.
[0394] 5. Examples
[0395] In order to solve the above problems and some other problems not mentioned, the following method is disclosed. The embodiments should be considered as examples to explain the general concept and should not be interpreted in a narrow way. In addition, these embodiments can be applied alone or combined in any way.
[0396] It should be noted that the proposed method can be used as a loop filter or as post-processing.
[0397] In this disclosure, a video unit may refer to a sequence, a picture, a sub-picture, a slice, a CTU, a block, or a region. A video unit may include one color component or it may include multiple color components.
[0398] In the present invention, an ALF processing unit may refer to a sequence, a picture, a sub-picture, a slice, a CTU, a block, a region, or a sample. An ALF processing unit may include one color component or it may include multiple color components.
[0399] 1) In at least one filtering process (eg, ALF), at least one sample in the current frame may be filtered using proposed information (eg, reconstructed samples and / or motion information) in at least one previously encoded frame.
[0400] a. For example, it is proposed to use several extension taps for ALF based on one or more previously encoded frames.
[0401] b. In one example, the previously encoded frame may be a reference frame in a reference picture list (RPL) or a reference picture set (RPS) associated with the block / current slice / frame.
[0402] a) In one example, the previously encoded frame may be a short-term reference picture for the block / current slice / frame.
[0403] b) In one example, the previously encoded frame may be a long-term reference picture for the block / current slice / frame.
[0404] c. Alternatively, the previously encoded frame may not be a reference frame, but it is stored in the decoded picture buffer (DPB).
[0405] d. In one example, at least one indicator is signaled to indicate which previously encoded frame or frames to use.
[0406] a) In one example, one indicator is signaled to indicate which reference picture list to use.
[0407] b) In one example, at least one indicator may be signaled to indicate a reference index.
[0408] c) Alternatively, the indicator may be signaled conditionally, eg depending on how many reference pictures are included in the RPL / RPS.
[0409] d) Alternatively, the indicator may be signaled conditionally, eg, depending on how many previously decoded pictures are included in the DPB.
[0410] e. In one example, which frames to utilize are determined in real time.
[0411] a) In one example, the extension taps may obtain information from one / more previously coded frames in the DPB.
[0412] b) In one example, the expansion taps may obtain information from one / more reference frames in list 0.
[0413] c) In one example, the expansion taps may obtain information from one / more reference frames in List 1.
[0414] d) In one example, the expansion taps may obtain information from reference frames in both List 0 and List 1.
[0415] e) In one example, the expansion taps may obtain information from the reference frame that is closest to the current frame (eg, has the smallest POC distance to the current slice / frame).
[0416] f) In one example, the extended tap may obtain information from a reference frame with a reference index equal to K (eg, K=0) in the reference list.
[0417] 1. In one example, K may be predefined.
[0418] 2. In one example, K can be derived in real time based on the reference picture information.
[0419] 3. In one example, K can be signaled.
[0420] g) In one example, the expansion taps may obtain information from the co-located frame.
[0421] h) In one example, the frame to be utilized may be determined by the decoded information.
[0422] 1. In one example, the frame to be utilized may be defined as the most frequently used top N (eg, N=1) reference pictures for samples within the current slice / frame.
[0423] 2. In one example, the frames to be utilized may be defined as the most frequently used top N (eg, N=1) reference pictures of each reference picture list for samples within the current slice / frame, if available.
[0424] 3. In one example, the frame to be utilized may be defined as the picture with the top N (e.g., N=1) smallest POC distances / absolute POC distances relative to the current picture. f. In one example, whether to obtain information from a previously encoded frame may depend on decoded information (e.g., encoding mode / statistics / characteristics) of at least one region of the block to be filtered.
[0425] a) Alternatively, it may be signaled from the encoder to the decoder whether to obtain information from a previously coded and decoded frame for at least one region of the block to be filtered.
[0426] b) In one example, whether to obtain information from a previously encoded frame may depend on the slice /
[0427] Image type.
[0428] 1. In one example, it is applicable only to inter-coded slices / pictures (eg, P or B slices / pictures).
[0429] 2. In one example, whether to obtain information from a previously encoded frame may depend on the availability of reference pictures.
[0430] c) In one example, whether to obtain information from a previously encoded frame may depend on reference picture information or picture information in the DPB.
[0431] 1. In one example, if the minimum POC distance (eg, the minimum POC distance between a reference picture / picture in the DPB and the current picture) is greater than a threshold, then the minimum POC distance is disabled.
[0432] d) In one example, whether to obtain information from a previously encoded frame may depend on the temporal layer index and / or QP and / or size of the picture.
[0433] 1. In one example, it may be applicable to blocks with a given temporal layer index (eg, the highest temporal layer).
[0434] e) In one example, if the block to be filtered contains a portion of samples that are coded in non-inter mode, the extended taps may not use information from previously coded frames to filter the block.
[0435] 1. In one example, non-inter mode may be defined as intra mode.
[0436] 2. In one example, non-inter-mode may be defined as including but not limited to intra / IBC /
[0437] A set of codec modes for palette modes.
[0438] f) In one example, the distortion between the current block and the matching block is calculated and used to decide whether to take information from a previously encoded frame to filter the current block.
[0439] 1. Alternatively, the distortion between the co-located block in the previously coded frame and the current block may be used to decide whether to obtain information from the previously coded frame to filter the current block.
[0440] 2. In one example, motion estimation may be used first to find a matching block from at least one previously encoded frame.
[0441] 3. In one example, when the distortion is greater than a predefined threshold, information from previously encoded frames may not be used.
[0442] g. In one example, the extended taps may construct / generate a reference block using the motion information of the current block and reconstructed samples in a previously coded frame / slice.
[0443] a. In one example, the reference block may be defined as one / multiple reference blocks of the current block and / or a reference block in a co-located block.
[0444] b. In one example, a reference block may be defined as a reference block in a region pointed to by at least one motion vector.
[0445] i. In one example, the motion vector may be different from the decoded motion vector associated with the current block.
[0446] c. In one example, a reference block may refer to a block centered at the same horizontal and vertical position in a previously encoded frame as the current block in the current frame.
[0447] d. In one example, the reference blocks are derived by motion estimation, ie, searching from previously encoded frames to find the block that is closest to the current block with a certain metric.
[0448] i. In one example, motion estimation may be performed with integer precision to avoid fractional pixel interpolation.
[0449] ii. Alternatively, motion estimation may be performed with fractional precision to improve the quality of the reference block.
[0450] e. In one example, the reference block may be derived by reusing at least one motion vector contained in the current block.
[0451] i. In one example, motion vectors may first be rounded to integer precision to avoid fractional pixel interpolation.
[0452] ii. In one example, the reference block may be located by adding an offset determined by the motion vector to the position of the current block.
[0453] iii. In one example, the motion vector may refer to a previously encoded picture including the reference block.
[0454] iv. In one example, the motion vector may be scaled to a previously encoded picture that includes the reference block.
[0455] f. In one example, the reference block and / or the co-located block may be the same size as the current block.
[0456] g. In one example, the reference block and / or the co-located block may be larger than the current block.
[0457] i. In one example, reference blocks and / or co-located blocks with the same current block size may be found first, and then extended at each boundary to include more samples from previously encoded samples.
[0458] 1) In one example, the size of the extension area may be signaled to the decoder or derived in real-time.
[0459] h. In one example, the information includes two reference blocks and / or co-located blocks of the current block, one of which is from the first reference frame in list 0 and the other is from the first reference frame in list 1.
[0460] 2) It is proposed to use several extended taps for ALF based on the concept of cross-component.
[0461] a. In one example, the extended taps may obtain information of chroma components in the current frame / slice to filter luma samples.
[0462] a) In one example, the extension tap may only obtain the information of the Cb or Cr component from the source frame / slice.
[0463] b) Alternatively, the extended taps may obtain information of the two chrominance components from the source frame / slice.
[0464] b. In one example, the extended taps may obtain information of chroma components in a previously encoded frame / slice to filter luma samples.
[0465] a) In one example, the extension tap may only obtain the information of the Cb or Cr component from the source frame / slice.
[0466] b) Alternatively, the extended taps may obtain information of the two chrominance components from the source frame / slice.
[0467] c) Alternatively, the previously coded frame / slice to be used may be determined in real-time / signaled / derived or following the manner mentioned in the previous description.
[0468] d) Alternatively, whether to use a previously coded frame / slice may be determined / signaled in real-time /
[0469] Export or follow the method mentioned in the previous description.
[0470] c. In one example, the extended taps may obtain information of the luma component in the current frame / slice to filter the chroma samples.
[0471] a) In one example, the extended taps may be applied only to filter the Cb or Cr components.
[0472] b) Alternatively, an extended tap may be applied to filter both chroma components.
[0473] d. In one example, the extended taps may obtain information of luma components in previously coded frames / slices to filter chroma samples.
[0474] a) In one example, the extended taps may be applied only to filter the Cb or Cr components.
[0475] b) Alternatively, an extended tap may be applied to filter both chroma components.
[0476] c) In one example, the previously encoded frame / slice to be used may be determined in real-time / signaled / derived or following the manner mentioned in the previous description.
[0477] d) In one example, whether to use a previously encoded frame / slice may be determined in real-time / signaled / derived or following the manner mentioned in the previous description.
[0478] e. In one example, the extended tap may obtain information of the first chroma component in the current frame / slice to filter the chroma samples of the second chroma component.
[0479] f. In one example, the extended taps may obtain information of the first chroma component in a previously encoded frame / slice to filter the chroma samples of the second chroma component.
[0480] a) In one example, the previously encoded frame / slice to be used may be determined in real-time / signaled / derived or following the manner mentioned in the previous description.
[0481] b) In one example, whether to use a previously encoded frame / slice may be determined in real-time / signaled / derived or following the manner mentioned in the previous description.
[0482] 3) It is proposed to use several extended taps for ALF to further enhance the efficiency of ALF.
[0483] a. In one example, the extended taps may be different from the spatial taps in the ALF that only utilize information of spatially neighboring samples of the filtering component (eg, only using spatially neighboring luma samples to filter the center luma sample within one filter shape).
[0484] b. In one example, the extended taps can be applied to different color components.
[0485] a) In one example, the extended taps may be applied to both the luma component and the chroma components.
[0486] b) In one example, the extended taps may be applied only to the luma component.
[0487] c) Alternatively, the extended taps may be applied to the chroma components only.
[0488] c. In one example, in is the filtered sample at (x,y), {S i,j (x,y)} is the sample set corresponding to the spatial tap, {E m,n (x, y)} is the set of samples corresponding to the extended taps, and F is the joint filter function.
[0489] a) alternatively, F is the first order filter function applied only to the spatial taps and G is the second order filter function.
[0490] b) alternatively, F is a first order filter function applied only to the extended taps, and G is a second order filter function.
[0491] c) alternatively, F is a first filter function applied only to spatial taps, G is a second filter function applied only to extended taps, and K is a joint filter function.
[0492] d. In one example, the extension taps can be used as additional taps for the filter shape in the ALF.
[0493] a) In one example, the expansion taps can be combined with the spatial taps to form a filter.
[0494] b) In one example, training data collection for extended taps and spatial taps may be performed jointly.
[0495] c) Alternatively, the coefficients of the extension taps and the spatial taps can be trained jointly.
[0496] d) Alternatively, the clipping parameters of the expansion taps and the spatial taps may be generated jointly.
[0497] e) In one example, other parameters of the extension taps and spatial taps may be derived jointly. e. Alternatively, the extension taps may be used as independent filters in the ALF.
[0498] a) In one example, the expansion taps can be implemented as independent filters.
[0499] b) In one example, the training data collection for the expanded taps may be performed separately.
[0500] 1. In one example, training data collection for extended taps may be performed based on ALF unfiltered samples.
[0501] 2. Alternatively, training data collection for extended taps can be performed based on ALF filtered samples.
[0502] c) Alternatively, the coefficients of the expansion taps can be trained individually.
[0503] d) Alternatively, the clipping parameters of the extension taps may be generated / derived separately.
[0504] e) In one example, other parameters of the extension taps can be derived independently.
[0505] f. In one example, the extension taps may use different shapes or sizes.
[0506] a) In one example, the spatial taps and expansion taps of a filter can be distributed, such as Fig.16 shown. Fig.16 An example of a filter with both spatial taps and extended taps is shown. The spatial taps may use diamonds of size 9, while the extended taps may use diamonds of size 5. The extended taps may be used in both forward and backward reference slices / frames.
[0507] b) In one example, the extension taps may use different shapes.
[0508] 1. In one example, the extension tap may use a diamond shape.
[0509] 2. In one example, the expansion tap may use a square shape.
[0510] 3. In one example, the extension tap may use a cross shape.
[0511] 4. Alternatively, the extension tap may use a symmetrical shape.
[0512] 5. Alternatively, the extension tap may use an asymmetric shape.
[0513] 6. Alternatively, the extension tap may use any other shape.
[0514] 7. In one example, the shape of the extension taps may be determined in real-time / at signaling / derived.
[0515] c) In one example, the expansion taps may use different sizes.
[0516] 1. In one example, the extended taps may use a filter length equal to N (eg, N=3).
[0517] 2. In one example, the filter length of the extended taps may be determined in real-time / signaled / derived.
[0518] d) In one example, symmetry constraints may be enforced on the extended taps.
[0519] 1. In one example, geometric symmetry constraints may be enforced on the extended taps.
[0520] 2. Alternatively, when more than 1 reference block is used, a time symmetry constraint may be enforced on the extended taps.
[0521] 3. In one example, geometric and temporal symmetry constraints may be enforced separately.
[0522] 4. Alternatively, geometric and temporal symmetry constraints can be enforced jointly.
[0523] e) In one example, the total number of extension taps can be derived jointly based on the shape, filter length, and symmetry constraints.
[0524] f) The filter shape of the extended taps may be centered at the same position of the current sample to be filtered, but in a different frame.
[0525] g) The center of the filter shape of the extended tap (at position A) may be at a different position of the current sample to be filtered (at position A) and may be in a different frame.
[0526] 1. In one example, the displacement between positions A and B can be determined by a motion vector.
[0527] a. Motion vectors may be rounded to integer samples.
[0528] b. The motion vectors can be scaled to the desired reference frame.
[0529] c. In one example, the motion vector can be derived by the MV of the block covering the current sample. The block can be PU / CU / CTU / etc.
[0530] a) In one example, if there is no MV for the block covering the current sample (eg, intra-coded), a default MV, such as (0,0), may be used.
[0531] b) In one example, if there is no MV for the block covering the current sample, a replacement MV may be used. The replacement MV may be derived from a neighboring block that has a MV.
[0532] c) In one example, if there are multiple MVs covering the block of the current sample, one of them may be used. For example, the one in the center of the block may be used.
[0533] g. In one example, classification of the expansion taps may be performed.
[0534] a) In one example, classification for extended taps may be performed based on texture information.
[0535] b) In one example, classification for the extended taps may be performed based on frequency band information.
[0536] c) Alternatively, the classification of spatial taps can be reused for the extended taps.
[0537] d) In one example, class merging of extended taps may be performed independently.
[0538] e) Alternatively, the class merging of spatial taps can be reused for extended taps.
[0539] h. In one example, a first syntax element may be signaled to indicate whether extension taps are enabled.
[0540] a) In one example, the first syntax element may be encoded by arithmetic coding.
[0541] 1. In one example, a first syntax element may be encoded with at least one context.
[0542] a. The context may depend on the coding information of the current block or neighboring blocks.
[0543] b. The context may depend on the filter shape of at least one neighboring block.
[0544] 2. In one example, the first syntax element may be encoded using bypass codec.
[0545] b) In one example, the first syntax element may be binarized by a unary code or a truncated unary code or a fixed length code or an exponential Golomb code, a truncated exponential Golomb code, or the like.
[0546] c) In one example, the first syntax element may be conditionally signaled.
[0547] 1. For example, the first syntax element may be signaled only if extension taps are available.
[0548] d) The first syntax element can be coded or decoded in a predictive manner.
[0549] 1. The first syntax element may be predicted by an on / off decision of an extended tap of at least one neighboring block.
[0550] e) The first syntax element may be signaled independently for different color components.
[0551] 1. Alternatively, the first syntax element may be signaled and shared for different color components.
[0552] 2. Alternatively, a first syntax element may be signaled for a first color component but not for a second color component.
[0553] i. Syntax element structures (eg, APS) may contain filters with extended taps.
[0554] a) In one example, the coefficients of the extended taps may be included in the APS.
[0555] b) In one example, the clipping parameters of the extended taps may be included in the APS.
[0556] c) In one example, the class merging result of the extended taps can be included in the APS.
[0557] d) Alternatively, other parameters for the extended taps may be included in the APS.
[0558] 4) It is proposed to relax the geometric symmetry constraints of coefficients / shearing parameters in ALF.
[0559] a. In the current ALF design, the coefficients and the corresponding cropping parameters are trained / generated based on two input samples, as described in Section 3.8. In the proposed method, the coefficients and the corresponding cropping parameters can be trained / generated based on one input sample.
[0560] b. In one example, the geometric symmetry constraints can be completely removed.
[0561] a) In one example, consider applying a diamond 5x5 filter shape to a filter in the ALF, such as Fig.17 shown. Fig.17 An example showing 5x5 diamond filter support in ALF.
[0562] b) In one example, when symmetry constraint relaxation is applied, the filter support can become Fig.18 The filters shown in are supported. Fig.18 An example of 5x5 diamond filter support in ALF with symmetry constraint relaxation is shown.
[0563] c) The total number of coefficients can be increased from 6 to 12.
[0564] d) Alternatively, the total number of shearing parameters may be increased from 6 to 12.
[0565] c. In one example, the geometric symmetry constraints may be partially removed.
[0566] a) In one example, consider a diamond 5x5 filter shape is applied to a filter in the ALF, such as Fig.18 shown.
[0567] b) In one example, symmetry constraint relaxation may be applied to diamond 3x3 regions within the filter shape.
[0568] 1. In one example, when applying symmetry constraint relaxation, the filter support can become Fig.19 The filters shown in are supported. Fig.19 An example of 5x5 diamond filter support in ALF with symmetry constraint relaxation is shown.
[0569] 2. In one example, the number of coefficients can be increased from 6 to 8.
[0570] 3. Alternatively, the number of shearing parameters can be increased from 6 to 8.
[0571] c) In one example, symmetry constraint relaxation may be applied to a square 3x3 region within the filter shape.
[0572] 1. In one example, when applying symmetry constraint relaxation, the filter support can become Fig. 20 The filters shown in are supported. Fig. 20 An example of 5x5 diamond filter support in ALF with symmetry constraint relaxation is shown.
[0573] 2. In one example, the number of coefficients may be increased from 6 to 10.
[0574] 3. Alternatively, the number of shearing parameters can be increased from 6 to 10.
[0575] d) In one example, symmetry constraint relaxation may be applied to any region that may be covered by the filter shape of the ALF.
[0576] d. In one example, geometric symmetry constraint relaxation can be applied to all parts.
[0577] e. Alternatively, geometric symmetry constraint relaxation can be applied to a component.
[0578] a) In one example, symmetry constraint relaxation may be applied only to the luma filter in the ALF.
[0579] b) In one example, symmetry constraint relaxation may be applied only to chroma filters in the ALF. f. In one example, geometric symmetry constraint relaxation may be applied to both spatial and extension / extra taps inside one ALF filter.
[0580] g. Alternatively, the geometric symmetry constraint relaxation may be applied only to the spatial or extended / extra taps within one ALF filter.
[0581] a) In one example, the symmetry constraint relaxation may be applied only to the spatial taps inside one ALF filter.
[0582] b) Alternatively, the relaxation of the symmetry constraint may be applied only to the extension / extra taps within one ALF filter.
[0583] h. In one example, asymmetric taps can be implemented as additional taps.
[0584] a) In one example, spatially asymmetric taps may be implemented as additional taps on top of symmetric spatial taps.
[0585] b) In one example, spatially asymmetric taps can be implemented as additional taps on top of symmetric extended taps.
[0586] c) Alternatively, the extended asymmetric taps can be performed as additional taps on top of the symmetric spatial taps.
[0587] d) Alternatively, the extended asymmetric taps may be performed as additional taps on top of the symmetric extended taps.
[0588] i. In one example, geometric symmetry constraint relaxation may have an on / off control.
[0589] a) In one example, a flag in APS can be used to turn on / off the relaxation of geometric symmetry constraints.
[0590] Off control.
[0591] b) In one example, on / off control may be signaled / inherited / derived in real-time.
[0592] 5) In one example, the above methods can be used in combination.
[0593] 6) Alternatively, the above methods can be used alone.
[0594] 7) In one example, the proposed / described filter shape selection method can be applied to any loop filtering tool, pre-processing or post-processing filtering method in video codec (including but not limited to ALF / CCALF or any other filtering method).
[0595] a. In one example, the proposed filter shape selection method can be applied to a loop filtering method.
[0596] a) In one example, the proposed filter shape selection method can be applied to ALF.
[0597] b) In one example, the proposed filter shape selection method can be applied to CCALF.
[0598] c) Alternatively, the proposed filter shape selection method can be applied to other loop filtering methods.
[0599] b. In one example, the proposed filter shape selection method can be applied to a pre-processing filtering method.
[0600] c. In one example, the proposed filter shape selection method can be applied to a post-processing filtering method.
[0601] 8) In the above examples, a video unit may refer to a sequence / picture / sub-picture / slice / tile / codec tree unit (CTU) / CTU row / CTU group / codec unit (CU) / prediction unit (PU) / transform unit (TU) / codec tree block (CTB) / codec block (CB) / prediction block (PB) / transform block (TB) / any other region containing more than one luma or chroma sample / pixel.
[0602] 9) It may be signaled in the bitstream whether and / or how the methods disclosed above are applied.
[0603] a. In one example, it can be signaled at sequence level / picture group level / picture level / slice level / tile level, such as in sequence header / picture header / SPS / VPS / DPS / DCI / PPS / APS / slice header / tile group header.
[0604] b. In one example, it may be signaled at a PB / TB / CB / PU / TU / CU / VPDU / CTU / CTU row / slice / tile / sub-picture / other kind of region containing more than one sample or pixel.
[0605] 10) Whether and / or how to apply the method disclosed above may depend on the encoded information, such as block size, color format, single / dual tree partitioning, color component, slice / picture type.
[0606] As used herein, the term "video unit" may refer to a sequence, a picture, a sub-picture, a slice, a CTU, a block, or a region. A video unit may include one color component or it may include multiple color components. The term "ALF processing unit" may refer to a sequence, a picture, a sub-picture, a slice, a CTU, a block, a region, or a sample. An ALF processing unit may include one color component or it may include multiple color components. Embodiments of the present disclosure may be applied to loop filters or post-processing. Note that embodiments of the present disclosure may be implemented separately. Alternatively, embodiments of the present disclosure may be implemented jointly. As used herein, the terms "picture" and "frame" may be interchangeable.
[0607] Fig.21 A flow chart of a method 2100 for video processing according to some embodiments of the present disclosure is shown. The method 2100 may be implemented during conversion between a video unit and a bitstream of the video unit.
[0608] At block 2110, during conversion between a video unit of a video and a bitstream of the video unit, information of a previously coded picture associated with the video unit is determined. In some embodiments, the information may include a set of reconstructed samples in the previously coded picture. Alternatively or additionally, the information may include motion information of the previously coded picture.
[0609] At block 2120, in a filtering process, at least one sample of the video unit is filtered based on the information. For example, the filtering process includes an adaptive loop filter (ALF). In some embodiments, the filtering process may include one of: a loop filtering method, a pre-processing filtering method, or a post-processing filtering method. In some embodiments, the loop filtering method includes at least one of: ALF, cross-component ALF, or other loop filtering methods.
[0610] At block 2130, a conversion is performed based on the filtered at least one sample. In some embodiments, the conversion may include encoding the video unit into a bitstream. In some embodiments, the conversion may include decoding the video unit from the bitstream. In this way, encoding and decoding efficiency and performance may be advantageously improved.
[0611] In some embodiments, multiple extended taps for ALF are used based on one or more previously coded pictures. In some embodiments, the previously coded picture is one of: a reference picture in a reference picture list (RPL), and wherein the RPL is associated with one of the following: a current block, a current slice, or a current picture; or a reference picture in a reference picture set (PRS), and wherein the PRS is associated with one of the following: a current block, a current slice, or a current picture. For example, the previously coded picture is a short-term reference picture of one of the current block, the current slice, or the current picture. Alternatively, the previously coded picture may be a long-term reference picture of one of the current block, the current slice, or the current picture.
[0612] In some embodiments, the previously coded picture is stored in a decoded picture buffer (DPB). In some embodiments, the previously coded picture is indicated by at least one indicator. For example, the reference picture list to be used is indicated by at least one indicator. Alternatively, the reference index to be used is indicated by at least one indicator. In some embodiments, at least one indicator may be conditionally signaled. For example, at least one indicator is indicated based on the number of reference pictures included in the RPL or RPS. Alternatively, at least one indicator is indicated based on the number of previously decoded pictures included in the DPB.
[0613] In some embodiments, the previously encoded pictures to be used may be determined dynamically, for example, in real time, to determine which pictures to utilize.
[0614] In some embodiments, the plurality of extension taps may obtain / retrieve information from one or more previously coded pictures in the DPB. In one example, the plurality of extension taps obtain information from one or more previously coded pictures in list 0. Alternatively, the plurality of extension taps obtain information from one or more previously coded pictures in list 1. In some other embodiments, the plurality of extension taps obtain information from one or more previously coded pictures in list 0 and list 1.
[0615] In some embodiments, the plurality of extended taps obtain information from a reference picture that is closest to the current picture. In one example, the extended taps may obtain information from a reference picture that is closest to the current picture (eg, having the smallest POC distance to the current slice / picture).
[0616] In some embodiments, the plurality of extension taps are obtained from a reference picture whose reference index is equal to a value in the reference list (e.g., equal to K). For example, the value may be 0. In some embodiments, the value may be predefined. Alternatively, the value may be derived in real time based on the reference picture information. In some embodiments, the value may be indicated / signaled. In some embodiments, the plurality of extension taps may obtain / retrieve information from a co-located picture. Note that the plurality of extension taps may include any suitable number of extension taps.
[0617] In some embodiments, the previously coded picture to be used may be determined based on the decoded information. In one example, the previously coded picture to be used is defined as the first N most frequently used reference pictures for samples within the current picture or current slice, where N is an integer. For example, N may be 1.
[0618] In some embodiments, the previously coded pictures to be used are defined as the first N most frequently used reference pictures of each reference picture list for samples within the current picture or current slice, where N is an integer. For example, N may be 1.
[0619] In some embodiments, the previously coded picture to be used is defined as the picture with the N smallest distances relative to the current picture, where N is an integer. For example, the N smallest distances include the N smallest picture order count (POC) distances. Alternatively, the N smallest distances include the N smallest absolute POC distances. For example, N can be 1.
[0620] In some embodiments, whether the information is determined from a previously coded picture depends on decoded information of at least one region of the current block to be filtered. The decoded information may include one or more of a codec mode, codec statistics, or codec characteristics. In some embodiments, whether the information is determined from a previously coded picture of at least one region of the current block may be indicated from the encoder to the decoder.
[0621] Alternatively, whether the information is determined from a previously coded picture depends on the slice type or the picture type. For example, if the slice type is an inter-coded slice or the picture type is an inter-coded picture, the information is determined from the previously coded picture. In one example, it is only applicable to inter-coded slices / pictures (e.g., P or B slices / pictures).
[0622] In some embodiments, whether to determine information from a previously coded picture may depend on the availability of a reference picture. In some embodiments, whether to determine information from a previously coded picture depends on reference picture information or picture information in the DPB. For example, if the minimum POC distance between a reference picture and the current picture is greater than a threshold, determining information from a previously coded picture is disabled. In one example, if the minimum POC distance (e.g., the minimum POC distance between a reference picture / picture in the DPB and the current picture) is greater than a threshold, the minimum POC distance is disabled.
[0623] In some embodiments, whether the information is determined from a previously coded picture depends on at least one of the following: a temporal layer index, a quantization parameter (QP), or a dimension of the picture. For example, if the temporal layer index is a given temporal layer index, the information is determined from a previously coded picture. In one example, it may be applicable to blocks with a given temporal layer index (e.g., the highest temporal layer).
[0624] In some embodiments, if the video unit includes a portion of samples encoded in a non-inter mode, the plurality of extended taps do not use information from a previously encoded picture to filter the video unit. For example, the non-inter mode is defined as an intra mode. In some embodiments, the non-inter mode is defined as a set of codec modes, the set of codec modes comprising at least one of: an intra mode, an intra block copy (IBC) mode, or a palette mode.
[0625] In some embodiments, the distortion between the current block and the matching block is determined, wherein the distortion is used to determine whether to determine information from a previously encoded picture to filter the current block. In one example, the distortion between the current block and the matching block is calculated and the distortion is used to decide whether to obtain information from a previously encoded picture to filter the current block.
[0626] In some embodiments, the distortion between the co-located block in the previously coded picture and the current block is used to determine whether to determine information from the previously coded picture to filter the current block. For example, motion estimation is used to find a matching block from the previously coded picture. In some embodiments, if the distortion is greater than a predefined threshold, the information determined from the previously coded picture is not used.
[0627] In some embodiments, the plurality of extended taps obtain / get the motion information of the current block and the reconstructed samples in the previously coded and decoded pictures to generate a reference block. In some embodiments, the reference block is at least one reference block of the current block. Alternatively, the reference block is at least one co-located block of the current block.
[0628] In some embodiments, the reference block is in a region pointed to by at least one motion vector. For example, the motion vector is different from a decoded motion vector associated with the current block. In some embodiments, the reference block is a block centered at the same horizontal and vertical position in a previously encoded picture as the current block in the current picture.
[0629] In some embodiments, the reference block is derived by motion estimation. For example, motion estimation may include searching from previously encoded pictures to find a block that is closest to the current block by some metric.
[0630] In some embodiments, motion estimation is performed with integer precision to avoid fractional pixel interpolation. Alternatively, motion estimation is performed with fractional precision to improve the quality of reference blocks.
[0631] In some embodiments, the reference block is derived by reusing a motion vector included in the current block. In an example, the motion vector is rounded to integer precision to avoid fractional pixel interpolation.
[0632] In some embodiments, the reference block can be located by adding an offset determined by a motion vector to the position of the current block. For example, the motion vector refers to a previously coded picture that includes the reference block. Alternatively, the motion vector is scaled to a previously coded picture that includes the reference block.
[0633] In some embodiments, the size of at least one of the reference block or the co-located block is the same as the size of the current block. Alternatively, the size of at least one of the reference block or the co-located block is greater than the size of the current block.
[0634] In some embodiments, at least one of the reference blocks or co-located blocks of the same size as the current block can be found first, and then at least one of the reference blocks or co-located blocks is expanded at each boundary to include more samples from previously encoded and decoded samples. For example, the size of the extended area is indicated to the decoder. Alternatively, the size of the extended area is dynamically derived. For example, the size of the extended area can be derived in real time.
[0635] In some embodiments, the information may include at least one of the following: two reference blocks or two co-located blocks of the current block. In this case, one of the two reference blocks is from the first reference picture in list 0, and the other of the two reference blocks is from the first reference picture in list 1. Alternatively, one of the two co-located blocks is from the first reference picture in list 0, and the other of the two co-located blocks is from the first reference picture in list 1.
[0636] In some embodiments, multiple extended taps for ALF are utilized based on a cross-component concept. For example, several extended taps for ALF may be used based on a cross-component concept. It should be noted that the use of several extended taps for ALF based on a cross-component concept may be implemented independently or together with filtering samples in the current picture based on information in a previously coded picture. In this way, the luminance filter of the ALF may be beneficial based on a cross-component concept. Note that the multiple extended taps may include any appropriate number of taps.
[0637] In some embodiments, multiple extended taps can obtain / get information of chrominance components in the current picture or current strip to filter luma samples. In some embodiments, multiple extended taps can obtain information of Cb or Cr components from a source picture or source strip.
[0638] In some embodiments, the plurality of extended taps may obtain information of two chroma components from a source picture or slice. In some embodiments, the plurality of extended taps may obtain information of chroma components in a previously coded picture or a previously coded slice to filter luma samples.
[0639] In some embodiments, the plurality of extension taps only obtain information of Cb or Cr components from the source picture or source slice. In some embodiments, the plurality of extension taps may obtain information of chroma components from the source picture or source slice.
[0640] In some embodiments, the previously coded picture or slice to be used is dynamically determined. Alternatively, the previously coded picture or slice to be used is indicated / signaled. Alternatively, the previously coded picture or slice to be used is derived. The previously coded picture or slice to be used may be determined in the manner mentioned in the above embodiments.
[0641] In some embodiments, whether to use the previously coded picture or slice is dynamically determined. In some embodiments, whether to use the previously coded picture or slice is indicated. In some embodiments, whether to use the previously coded picture or slice is derived. Whether to use the previously coded picture or slice can be determined in the manner mentioned in the above embodiments.
[0642] In some embodiments, multiple extended taps obtain information of chroma components in the current picture or current strip to filter luma samples. In some embodiments, multiple extended taps are applied to filter Cb or Cr components. In some embodiments, multiple extended taps can be applied to filter two chroma components.
[0643] In some embodiments, multiple extension taps may obtain information of the luma component in a previously coded picture or strip to filter the chroma samples. In some embodiments, multiple extension taps may be applied only to filter Cb or Cr components. In some embodiments, multiple extension taps may be applied to filter the chroma components.
[0644] In some embodiments, the previously coded picture or slice to be used is dynamically determined. In some embodiments, the previously coded picture or slice to be used is indicated. In some embodiments, the previously coded picture or slice to be used is derived. The previously coded picture or slice to be used may be determined in the manner mentioned in the above embodiments.
[0645] In some embodiments, whether to use a previously coded picture or slice is dynamically determined. In some embodiments, whether to use a previously coded picture or slice is indicated. In some embodiments, whether to use a previously coded picture or slice is derived. Whether to use a previously coded picture or slice can be determined in the manner mentioned in the above embodiments.
[0646] In some embodiments, multiple extension taps may obtain / retrieve information of a luma component in a current picture or current slice to filter chroma samples. In some embodiments, multiple extension taps may obtain information of a first chroma component in a previously coded picture or slice to filter chroma samples of a second chroma component. In some embodiments, a previously coded picture or slice to be used is dynamically determined. In some embodiments, a previously coded picture or slice to be used is indicated. In some embodiments, a previously coded picture or slice to be used is derived. The previously coded picture or slice to be used may be determined in the manner mentioned in the above embodiments.
[0647] In some embodiments, whether to use a previously coded picture or slice is dynamically determined. In some embodiments, whether to use a previously coded picture or slice is indicated. In some embodiments, whether to use a previously coded picture or slice can be derived. Whether to use a previously coded picture or slice can be determined in the manner mentioned in the above embodiments.
[0648] In some embodiments, multiple extension taps for ALF are used. For example, the multiple extension taps are different from the spatial taps in ALF that only utilize information of spatial neighboring samples of the filtered component. In some embodiments, only spatial neighboring luma samples are used to filter the center luma sample within a filter shape.
[0649] In some embodiments, multiple extended taps are applied to different color components. In some embodiments, multiple extended taps are applied to both luminance components and chrominance components. Alternatively, multiple extended taps are only applied to luminance components. In some embodiments, multiple extended taps are only applied to chrominance components.
[0650] In one example, in is the sample at (x,y) after filtering, {S i,j (x,y)} is a set of samples corresponding to the spatial taps, {E m,n (x, y)} is a set of samples corresponding to the extended taps, and F is the joint filter function. Alternatively, F is a first order filter function applied only to spatial taps, and G is a second order filter function. Alternatively, F represents the first-order filter function applied only to the extended taps, and G represents the second-order filter function. Alternatively, F denotes a first filter function applied only to spatial taps, and G denotes a second filter function applied only to extended taps, and K denotes a joint filter function.
[0651] In some embodiments, multiple extended taps are used as additional taps of the filter shape in the ALF. In some embodiments, multiple extended taps are combined with spatial taps to form a filter. In some embodiments, training data collection for multiple extended taps and spatial taps is performed jointly. In some embodiments, the coefficients of multiple extended taps and spatial taps are trained jointly. In some embodiments, the shearing parameters of multiple extended taps and spatial taps are generated jointly. In some embodiments, other parameters of extended taps and spatial taps are derived jointly.
[0652] In some embodiments, the multiple extended taps are used as independent filters in the ALF. In some embodiments, the multiple extended taps are performed as independent filters. In some embodiments, the training data collection for the multiple extended taps is performed separately. In some embodiments, the training data collection for the multiple extended taps is performed based on samples that have not been filtered by the ALF. In some embodiments, the training data collection for the multiple extended taps is performed based on samples filtered by the ALF. In some embodiments, the coefficients of the multiple extended taps are trained separately. In some embodiments, the shearing parameters of the multiple extended taps are generated or derived separately. In some embodiments, other parameters of the multiple extended taps are derived independently.
[0653] In some embodiments, multiple expansion taps use different shapes or sizes.
[0654] In some embodiments, the spatial taps of one filter use a diamond shape having a first size, and the extended taps use a diamond shape having a second size, and the extended taps are used in the forward and backward reference strips or the forward and backward reference pictures. The first size may be 9 and the second size may be 5. In one example, the spatial taps and extended taps of one filter may be distributed, such as Fig.16 As shown. The spatial taps may use diamonds of size 9, while the extended taps may use diamonds of size 5. The extended taps may be used in both the forward and backward reference slices / pictures.
[0655] In some embodiments, the plurality of extension taps may use one of the following: a diamond, a square, a cross, a symmetrical shape, an asymmetrical shape, another shape. In some embodiments, the shapes of the plurality of extension taps may be determined dynamically. In some embodiments, the shapes of the plurality of extension taps are indicated. In some embodiments, the shapes of the plurality of extension taps are derived. In one example, the shapes of the extension taps may be determined in real time / when signaled / derived.
[0656] In some embodiments, a plurality of extension taps use a filter length equal to a value of N. In one example, the extension taps may use a filter length equal to N (eg, N=3).
[0657] In some embodiments, the filter lengths of the plurality of extended taps are determined dynamically. In some embodiments, the filter lengths are indicated. In some embodiments, the filter lengths are derived. In one example, the filter lengths of the extended taps can be determined in real time / when signaled / derived.
[0658] In some embodiments, symmetry constraints are performed on the multiple extended taps. In some embodiments, geometric symmetry constraints are performed on the multiple extended taps. In some embodiments, if multiple reference blocks are used, time domain symmetry constraints are performed on the extended taps.
[0659] In some embodiments, the geometric and time domain symmetry constraints are performed separately. In some embodiments, the geometric and time domain symmetry constraints are performed jointly. In some embodiments, the total number of extension taps is derived jointly based on the shape, filter length, and symmetry constraints.
[0660] In some embodiments, the center of the filter shape of the extended tap is at the same position of the current sample to be filtered, but in a different picture. In some embodiments, the center of the filter shape of the extended tap is at a different position of the current sample and in a different picture. The center of the filter shape of the extended tap (at position A) can be at a different position of the current sample to be filtered (at position B) and can be in a different picture.
[0661] In some embodiments, the displacement between the center and the position of the current sample is determined by a motion vector. In some embodiments, the motion vector is rounded to an integer sample. In some embodiments, the motion vector is scaled to a desired reference picture.
[0662] In some embodiments, the motion vector is derived from a motion vector (MV) of a block covering the current sample, and the block is one of: a prediction unit (PU), a codec unit (CU), or a codec tree unit (CTU).
[0663] In some embodiments, if there is no MV for a block covering the current sample, a default MV is used. In one example, if there is no MV for a block covering the current sample (eg, intra-coded), a default MV, such as (0,0), may be used.
[0664] In some embodiments, if there is no MV of the block covering the current sample, a replacement MV is used, and the replacement MV is derived from a neighboring block with an MV. In some embodiments, if there are multiple MVs of the block covering the current sample, one of the multiple MVs is used. In some embodiments, the MV at the center of the block is used.
[0665] In some embodiments, classification for a plurality of extended taps is performed. In some embodiments, classification for a plurality of extended taps is performed based on texture information. In some embodiments, classification for extended taps is performed based on frequency band information.
[0666] In some embodiments, the classification for spatial taps is reused for multiple extended taps. In some embodiments, the class merging for multiple extended taps is performed independently. In some embodiments, the class merging for spatial taps is reused for multiple extended taps.
[0667] In some embodiments, the first syntax element is indicated to indicate whether the plurality of extended taps are enabled. In some embodiments, the first syntax element is encoded by arithmetic coding. In some embodiments, the first syntax element is encoded with at least one context. In some embodiments, the context depends on the coding information of the current block or the neighboring block. In some embodiments, the context depends on the filtering shape of at least one neighboring block.
[0668] In some embodiments, the first syntax element is encoded using bypass codec.In some embodiments, the first syntax element is binarized by one of a unary code, a truncated unary code, a fixed length code, an exponential Golomb code, or a truncated exponential Golomb code.
[0669] In some embodiments, the first syntax element is conditionally indicated. In some embodiments, the first syntax element is indicated only if multiple extension taps are available. In some embodiments, the first syntax element is encoded and decoded in a predictive manner. In some embodiments, the first syntax element is predicted by an on / off decision of an extension tap of at least one neighboring block. In some embodiments, the first syntax element is independently indicated for different color components. In some embodiments, the first syntax element is indicated and shared for different color components. In some embodiments, the first syntax element is indicated for a first color component and not for a second color component.
[0670] In some embodiments, the syntax element structure includes a filter with an extended tap. In some embodiments, coefficients of the extended tap are included in the syntax element structure. In some embodiments, shear parameters of the extended tap are included in the syntax element structure. In some embodiments, class merging results of the extended tap are included in the syntax element structure. In some embodiments, parameters of the extended tap are included in the syntax element structure. In some embodiments, the syntax element structure is an adaptation parameter set (APS).
[0671] In some embodiments, an indication of whether and / or how to filter at least one sample in the current picture based on the information is in the bitstream. For example, the indication of whether and / or how to filter at least one sample in the current picture based on the information is indicated at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.
[0672] In some embodiments, an indication of whether and / or how to filter at least one sample in the current picture based on the information is indicated in one of the following: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0673] In some embodiments, an indication of whether and / or how to filter at least one sample in the current picture based on information is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region including more than one sample or pixel.
[0674] In some embodiments, whether and / or how to filter at least one sample may be determined based on the information. The codec information may include at least one of the following: block size, color format, single tree and / or dual tree partitioning, color component, slice type, or picture type.
[0675] According to another embodiment of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method executed by a video processing device. The method includes: determining information of a previously coded picture associated with a video unit of a current picture of the video; in a filtering process, filtering at least one sample of the video unit based on the information; and generating a bitstream of a target block based on the filtered at least one sample.
[0676] According to another embodiment of the present disclosure, a method for storing a bitstream of a video is provided. The method includes: determining information of a previously coded picture associated with a video unit of a current picture of the video; filtering at least one sample of the video unit based on the information during filtering; generating a bitstream of a target block based on the filtered at least one sample; and storing the bitstream in a non-transitory computer-readable recording medium.
[0677] Fig. 22 A flow chart of a video processing method 2200 according to some embodiments of the present disclosure is shown. The method 2200 may be implemented during conversion between a video unit and a bitstream of the video unit.
[0678] At block 2210, during conversion between a video unit and a bitstream of the video unit, a symmetric constraint relaxation of a parameter in a filtering process is determined. In some embodiments, the parameter comprises at least one of a coefficient or a shearing parameter. In some embodiments, the symmetric constraint comprises a geometric symmetry constraint. In some embodiments, the parameter comprises: a coefficient and a corresponding shearing parameter, the coefficient and the corresponding shearing parameter being trained or generated based on an input sample.
[0679] At block 2220, a filtering process is applied to the video unit based on the relaxation. For example, the filtering process includes an adaptive loop filter (ALF). In some embodiments, the filtering process may include one of the following: a loop filtering method, a pre-processing filtering method, or a post-processing filtering method. In some embodiments, the loop filtering method includes at least one of the following: ALF, cross-component ALF, or other loop filtering methods.
[0680] At block 2230, a conversion is performed based on the filtered video unit. In some embodiments, the conversion may include encoding the video unit into a bitstream. In some embodiments, the conversion may include decoding the video unit from the bitstream. In this way, encoding and decoding efficiency and performance may be advantageously improved.
[0681] In some embodiments, the relaxation includes the symmetry constraint being completely removed. In some embodiments, the symmetry constraint relaxation is applied to a diamond having a first size filter shape. In some embodiments, the total number of coefficients is increased from a first value to a second value. In some embodiments, the total number of shearing parameters is increased from a first value to a second value. In one example, consider applying a diamond 5x5 filter shape to a filter in an ALF, such as Fig.17 In one example, when applying symmetry constraint relaxation, the filter support can become Fig.18 The filter support shown in . The total number of coefficients can be increased from 6 to 12. Alternatively, the total number of clipping parameters can be increased from 6 to 12.
[0682] In some embodiments, the relaxation includes the symmetry constraint being partially removed. In some embodiments, a diamond having a first size filter shape is applied to a filter in a filtering process, and wherein the relaxation of the symmetry constraint is applied to a diamond having a second size area inside the diamond having the first size filter shape. In this case, the second size is smaller than the first size. In some embodiments, the number of coefficients is increased from a third value to a fourth value. In some embodiments, the number of shearing parameters is increased from a third value to a fourth value. In one example, the geometric symmetry constraint may be partially removed. In one example, consider applying a diamond 5x5 filter shape to a filter in an ALF, such as Fig.16In one example, symmetry constraint relaxation can be applied to a diamond 3x3 region within the filter shape. In one example, when symmetry constraint relaxation is applied, the filter support can become Fig.19 The filter shown in supports . 2. In one example, the number of coefficients can be increased from 6 to 8. Alternatively, the number of clipping parameters can be increased from 6 to 8.
[0683] In some embodiments, the relaxation of the symmetry constraint is applied to a square having a third size area inside the filter shape. In some embodiments, the number of coefficients increases from the fifth value to the sixth value. In some embodiments, the number of shearing parameters increases from the fifth value to the sixth value. In one example, the relaxation of the symmetry constraint can be applied to a square 3x3 area inside the filter shape. In one example, when the relaxation of the symmetry constraint is applied, the filter support can become Fig. 20 The filter shown in supports . In one example, the number of coefficients may be increased from 6 to 10. Alternatively, the number of clipping parameters may be increased from 6 to 10.
[0684] In some embodiments, the relaxation of the symmetric constraint is applied to the area that can be covered by the filter shape of the filtering process. In some embodiments, the relaxation of the symmetric constraint is applied to all components. In some embodiments, the relaxation of the symmetric constraint is applied to one component. In some embodiments, the relaxation of the symmetric constraint is only applied to the brightness filter in the filtering process.
[0685] In certain embodiments, the relaxation of symmetric constraint is only applied to the chrominance filter in the filtering process. In certain embodiments, the relaxation of symmetric constraint is applied to both spatial tap and the expansion tap inside an ALF filter. In certain embodiments, the relaxation of symmetric constraint is only applied to spatial tap or the expansion tap inside an ALF filter. In certain embodiments, the relaxation of symmetric constraint is only applied to the spatial tap inside the ALF filter. In certain embodiments, the relaxation of symmetric constraint is only applied to the expansion tap in the ALF filter.
[0686] In some embodiments, the asymmetric taps are implemented as additional taps. In some embodiments, the spatial asymmetric taps are implemented as additional taps on top of symmetric spatial taps. In some embodiments, the spatial asymmetric taps are implemented as additional taps on top of symmetric extended taps. In some embodiments, the extended asymmetric taps are implemented as additional taps on top of symmetric spatial taps.
[0687] In some embodiments, extending the asymmetric taps is performed as additional taps on top of the symmetric extended taps.
[0688] In some embodiments, there is an on / off control for relaxation of symmetry constraints. In some embodiments, a flag in the APS is used for on / off control of symmetry constraint relaxation. In some embodiments, an on / off control is indicated. In some embodiments, the on / off control is inherited. In some embodiments, the on / off control is dynamically derived.
[0689] In some embodiments, an indication of whether and / or how the relaxation of the symmetry constraint is determined is in the bitstream. For example, an indication of whether and / or how the relaxation of the symmetry constraint is determined is indicated at one of the following: a sequence level, a group of pictures level, a picture level, a slice level, or a tile group level.
[0690] In some embodiments, an indication of whether and / or how to determine the relaxation of the symmetry constraint is indicated in one of the following: a sequence header, a picture header, a sequence parameter set (SPS), a video parameter set (VPS), a dependency parameter set (DPS), decoding capability information (DCI), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, or a tile group header.
[0691] In some embodiments, an indication of whether and / or how to determine the relaxation of the symmetry constraint is included in one of the following: a prediction block (PB), a transform block (TB), a codec block (CB), a prediction unit (PU), a transform unit (TU), a codec unit (CU), a virtual pipeline data unit (VPDU), a codec tree unit (CTU), a CTU row, a slice, a tile, a sub-picture, or a region including more than one sample or pixel.
[0692] In some embodiments, whether and / or how to determine the relaxation of the symmetry constraint may be determined based on the encoding and decoding information of the video unit. The encoding information includes at least one of the following: block size, color format, single tree and / or dual tree partitioning, color component, slice type or picture type.
[0693] During the filtering process, at least one of the following may be applied: filtering the at least one sample based on information or symmetric constraint relaxation. In some embodiments, in the video codec, the filter shape selection method applied to the filtering process is one of the following in the video codec: a loop filtering method, a pre-processing filtering method, or a post-processing filtering method.
[0694] In some embodiments, the loop filtering method includes at least one of: ALF, cross-component ALF, or another loop filtering method.
[0695] In some embodiments, the video unit includes one of the following: a sequence, a picture, a sub-picture, a slice, a tile, a codec tree unit (CTU), a CTU row, a CTU group, a codec unit (CU), a prediction unit (PU), a transform unit (TU), a codec tree block (CTB), a codec block (CB), a prediction block (PB), a transform block (TB), or a region including more than one luma or chroma sample or pixel.
[0696] According to another embodiment of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video generated by a method performed by a video processing device. The method includes: determining a relaxation of a symmetric constraint of a parameter in a filtering process; applying a filtering process to a video unit of the video based on the relaxation; and generating a bitstream of a target block based on the filtered video unit.
[0697] According to another embodiment of the present disclosure, a method for storing a bitstream of a video is provided. The method includes: determining a relaxation of a symmetric constraint of a parameter in a filtering process; applying a filtering process to a video unit of the video based on the relaxation; generating a bitstream of a target block based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium.
[0698] The embodiments of the present disclosure may be described in view of the following clauses, and features thereof may be combined in any reasonable manner.
[0699] Item 1. A video processing method, comprising: during conversion between a video unit of a current picture of a video and a bitstream of the video unit, determining information of a previously encoded and decoded picture associated with the video unit; during a filtering process, filtering at least one sample of the video unit based on the information; and performing the conversion based on the at least one filtered sample.
[0700] Clause 2. The method of clause 1, wherein the filtering process comprises an adaptive loop filter (ALF).
[0701] Clause 3. The method of clause 1, wherein the information comprises at least one of: a set of reconstructed samples in the previously coded picture, or motion information of the previously coded picture.
[0702] Clause 4. The method of clause 1, wherein a plurality of extended taps for the ALF are used based on one or more previously encoded pictures.
[0703] Clause 5. A method according to clause 1, wherein the previously encoded and decoded image is one of: a reference picture in a reference picture list RPL, and wherein the RPL is associated with one of the following: a current block, a current slice or the current picture; or a reference picture in a reference picture set PRS, and wherein the PRS is associated with one of the following: the current block, the current slice or the current picture.
[0704] Clause 6. A method according to clause 5, wherein the previously encoded picture is a short-term reference picture of one of the following: the current block, the current slice or the current picture, or wherein the previously encoded picture is a long-term reference picture of one of the following: the current block, the current slice or the current picture.
[0705] Clause 7. The method of clause 1, wherein the previously encoded and decoded picture is stored in a decoded picture buffer (DPB).
[0706] Clause 8. The method of clause 1, wherein the previously encoded picture is indicated by at least one indicator.
[0707] Clause 9. The method of clause 8, wherein a reference picture list to be used is indicated by the at least one indicator.
[0708] Clause 10. The method of clause 8, wherein the reference index to be used is indicated by the at least one indicator.
[0709] Clause 11. The method of clause 8, wherein the at least one indicator is indicated based on a number of reference pictures included in the RPL or RPS.
[0710] Clause 12. The method of clause 8, wherein the at least one indicator is indicated based on a number of previously encoded pictures included in the DPB.
[0711] Clause 13. The method of clause 1, wherein the method further comprises: dynamically determining a previously encoded picture to use.
[0712] Clause 14. The method of clause 1, wherein the plurality of extension taps obtain information from one or more previously coded pictures in the DPB.
[0713] Clause 15. The method of clause 1, wherein the plurality of extension taps obtain information from one or more previously encoded pictures in list 0, or wherein the plurality of extension taps obtain information from one or more previously encoded pictures in list 1.
[0714] Clause 16. The method of clause 1, wherein the plurality of extended taps obtain information from one or more previously coded pictures in list 0 and list 1.
[0715] Clause 17. The method of clause 1, wherein the plurality of extended taps obtain information from a reference picture that is closest to the current picture.
[0716] Clause 18. The method of clause 1, wherein the plurality of extended taps obtain information from a reference picture having a reference index equal to a value in the reference list.
[0717] Clause 19. The method of clause 18, wherein the value is 0, or wherein the value is predefined, or wherein the value is derived in real time based on reference picture information, or wherein the value is indicated.
[0718] Clause 20. The method of clause 1, wherein the plurality of extended taps obtain information from a co-located picture.
[0719] Clause 21. The method of clause 1, wherein the method further comprises: determining the previously encoded picture to use based on decoded information.
[0720] Clause 22. The method of clause 21, wherein the previously encoded pictures to be used are defined as the first N most frequently used reference pictures for samples within the current picture or current slice, where N is an integer.
[0721] Clause 23. The method of clause 21, wherein the previously coded pictures to be used are defined as the first N most frequently used reference pictures of each reference picture list for samples within the current picture or current slice, where N is an integer.
[0722] Clause 24. The method of clause 21, wherein the previously encoded picture to be used is defined as the picture having N smallest distances relative to the current picture, where N is an integer.
[0723] Clause 25. The method of clause 24, wherein the N minimum distances comprise N minimum picture order count (POC) distances, or wherein the N minimum distances comprise N minimum absolute POC distances.
[0724] Clause 26. The method of clause 1, wherein whether to determine the information from the previously encoded picture depends on decoded information of at least one region of the current block to be filtered.
[0725] Clause 27. The method of clause 1, wherein whether the information is determined from the previously encoded picture of at least one region of the current block is indicated from an encoder to a decoder.
[0726] Clause 28. The method of clause 1, wherein whether the information is determined from the previously encoded picture depends on a slice type or a picture type.
[0727] Clause 29. The method of clause 28, wherein if the slice type is an inter-coded slice or the picture type is an inter-coded picture, the information is determined from the previously-coded picture.
[0728] Clause 30. The method of clause 1, wherein whether to determine the information from the previously encoded picture depends on the availability of a reference picture.
[0729] Clause 31. The method of clause 1, wherein whether the information is determined from the previously encoded picture depends on reference picture information or picture information in the DPB.
[0730] Clause 32. The method of clause 31, wherein if a minimum POC distance between a reference picture and a current picture is greater than a threshold, determining the information from the previously encoded picture is disabled.
[0731] Clause 33. The method of clause 1, wherein whether the information is determined from the previously encoded picture depends on at least one of: a temporal layer index, a quantization parameter (QP), or a dimension of a picture.
[0732] Clause 34. The method of clause 33, wherein if the temporal layer index is a given temporal layer index, the information is determined from the previously encoded picture.
[0733] Clause 35. The method of clause 1, wherein if the video unit includes a portion of samples coded in non-inter mode, the plurality of extended taps does not use information from the previously coded picture to filter the video unit.
[0734] Clause 36. The method of clause 35, wherein the non-inter mode is defined as an intra mode.
[0735] Clause 37. The method according to clause 35, wherein the non-inter-mode is defined as a set of codec modes, the set of codec modes including at least one of the following: intra mode, intra block copy (IBC) mode or palette mode.
[0736] Clause 38. The method of clause 1, wherein distortion between a current block and a matching block is determined, and wherein the distortion is used to determine whether to determine the information from the previously encoded picture to filter the current block.
[0737] Clause 39. The method of clause 38, wherein distortion between a co-located block in the previously encoded picture and the current block is used to determine whether to determine the information from the previously encoded picture to filter the current block.
[0738] Clause 40. The method of clause 38, wherein motion estimation is used to find a matching block from the previously encoded picture.
[0739] Clause 41. The method of clause 38, wherein if the distortion is greater than a predefined threshold, the information determined from the previously encoded picture is not used.
[0740] Clause 42. The method of clause 1, wherein the plurality of extended taps obtain motion information of a current block and reconstructed samples in the previously encoded picture to generate a reference block.
[0741] Clause 43. The method of clause 42, wherein the reference block is at least one reference block of the current block, or wherein the reference block is at least one co-located block of the current block.
[0742] Clause 44. The method of clause 42, wherein the reference block is in a region pointed to by at least one motion vector.
[0743] Clause 45. The method of clause 44, wherein the motion vector is different from the decoded motion vector associated with the current block.
[0744] Clause 46. The method of clause 42, wherein the reference block is a block centered at the same horizontal and vertical position in the previously encoded picture as the current block in the current picture.
[0745] Clause 47. The method of clause 42, wherein the reference block is derived by motion estimation.
[0746] Clause 48. The method of clause 47, wherein the motion estimation comprises searching from the previously encoded picture to find a block that is closest to the current block by some metric.
[0747] Clause 49. The method of clause 47, wherein the motion estimation is performed with integer precision to avoid fractional pixel interpolation.
[0748] Clause 50. The method of clause 47, wherein the motion estimation is performed with fractional precision to improve the quality of the reference block.
[0749] Clause 51. The method of clause 42, wherein the reference block is derived by reusing a motion vector included in the current block.
[0750] Clause 52. The method of clause 51, wherein the motion vectors are rounded to integer precision to avoid fractional pixel interpolation.
[0751] Clause 53. The method of clause 51, wherein the reference block is located by adding an offset determined by the motion vector to the position of the current block.
[0752] Clause 54. The method of clause 51, wherein the motion vector refers to a previously encoded picture that includes the reference block.
[0753] Clause 55. The method of clause 51, wherein the motion vector is scaled to a previously encoded picture that includes the reference block.
[0754] Clause 56. A method according to clause 42, wherein the size of at least one of the reference block or the co-located block is the same as the size of the current block, or wherein the size of at least one of the reference block or the co-located block is greater than the size of the current block.
[0755] Clause 57. A method according to clause 56, wherein at least one of the reference blocks or the co-located blocks of the same size as the current block is first found, and then at least one of the reference block or the co-located block is extended at each boundary to include more samples from previously encoded samples.
[0756] Clause 58. The method of clause 57, wherein the size of the extension region is indicated to a decoder, or wherein the size of the extension region is dynamically derived.
[0757] Clause 59. A method according to Clause 42, wherein the information includes at least one of the following: two reference blocks or two co-located blocks of the current block, and wherein one of the two reference blocks is from the first reference picture in List 0 and the other of the two reference blocks is from the first reference picture in List 1, or wherein one of the two co-located blocks is from the first reference picture in List 0 and the other of the two co-located blocks is from the first reference picture in List 1.
[0758] Clause 60. The method of clause 1, wherein multiple extension taps for ALF are utilized based on a cross-component concept.
[0759] Clause 61. The method of clause 60, wherein the plurality of extended taps obtain information of chroma components in a current picture or a current slice to filter luma samples.
[0760] Clause 62. The method of clause 60, wherein the plurality of extended taps obtain information of Cb or Cr components from a source picture or a source slice.
[0761] Clause 63. The method of clause 60, wherein the plurality of extended taps obtain information of two chroma components from a source picture or slice.
[0762] Clause 64. The method of clause 60, wherein the plurality of extended taps obtain information of chroma components in the previously encoded picture or previously encoded slice to filter luma samples.
[0763] Clause 65. The method of clause 60, wherein the plurality of extended taps obtain information of Cb or Cr components only from a source picture or a source slice.
[0764] Clause 66. The method of clause 60, wherein the plurality of extended taps obtain information of two chroma components from a source picture or a source slice.
[0765] Clause 67. The method of clause 60, wherein the previously coded picture or slice to be used is dynamically determined, or wherein the previously coded picture or slice to be used is indicated, or wherein the previously coded picture or slice to be used is derived.
[0766] Clause 68. The method of clause 60, wherein whether to use the previously encoded picture or slice is dynamically determined, or wherein whether to use the previously encoded picture or slice is indicated, or wherein whether to use the previously encoded picture or slice is derived.
[0767] Clause 69. The method of clause 60, wherein the plurality of extended taps obtain information of a luma component in a current picture or a current slice to filter chroma samples.
[0768] Clause 70. The method of clause 69, wherein the plurality of extended taps are applied to filter a Cb or Cr component.
[0769] Clause 71. The method of clause 69, wherein the plurality of extended taps are applied to filter two chroma components.
[0770] Clause 72. The method of clause 60, wherein the plurality of extended taps retrieve information of a luma component in the previously encoded picture or slice to filter chroma samples.
[0771] Clause 73. The method of clause 72, wherein the plurality of extended taps are applied only to filter the Cb or Cr components.
[0772] Clause 74. The method of clause 72, wherein the plurality of extended taps are applied to filter two chroma components.
[0773] Clause 75. The method of clause 72, wherein the previously encoded picture or slice to be used is dynamically determined, or wherein the previously encoded picture or slice to be used is indicated, or wherein the previously encoded picture or slice to be used is derived.
[0774] Clause 76. The method of clause 72, wherein whether to use the previously encoded picture or slice is dynamically determined, or wherein whether to use the previously encoded picture or slice is indicated, or wherein whether to use the previously encoded picture or slice is derived.
[0775] Clause 77. The method of clause 60, wherein the plurality of extended taps obtain information of a first chroma component in a current picture or slice to filter chroma samples of a second chroma component.
[0776] Clause 78. The method of clause 60, wherein the plurality of extended taps retrieve information of a first chroma component in the previously encoded picture or slice to filter chroma samples of a second chroma component.
[0777] Clause 79. The method of clause 78, wherein the previously encoded picture or slice to be used is dynamically determined, or wherein the previously encoded picture or slice to be used is indicated, or wherein the previously encoded picture or slice to be used is derived.
[0778] Clause 80. The method of clause 78, wherein whether to use the previously encoded picture or slice is dynamically determined, or wherein whether to use the previously encoded picture or slice is indicated, or wherein whether to use the previously encoded picture or slice is derived.
[0779] Clause 81. The method of clause 1, wherein multiple extension taps for ALF are used.
[0780] Clause 82. The method of clause 81, wherein the plurality of extended taps are different from spatial taps in an ALF that utilize only information of spatially neighboring samples of a filtered component.
[0781] Clause 83. The method of clause 82, wherein only spatially neighboring luma samples are used to filter a center luma sample within a filter shape.
[0782] Clause 84. The method of clause 81, wherein the plurality of expansion taps are applied to different color components.
[0783] Clause 85. A method according to clause 84, wherein the plurality of extended taps are applied to both luma components and chroma components, or wherein the plurality of extended taps are applied only to luma components, or wherein the plurality of extended taps are applied only to chroma components.
[0784] Clause 86. The method according to clause 81, wherein in represents the sample at (x, y) after filtering, {S i,j (x,y)} represents a set of samples corresponding to the spatial taps, {E m,n (x, y)} represents a set of samples corresponding to the extended taps, F represents a joint filter function, or x and y represent parameters.
[0785] Clause 87. The method according to clause 86, wherein F represents a first-order filter function applied only to spatial taps, and G represents a second-order filter function.
[0786] Clause 88. The method according to clause 86, wherein F represents a first-order filter function applied only to the extended taps, and G represents a second-order filter function.
[0787] Clause 89. The method according to clause 86, wherein F denotes a first filter function applied only to spatial taps, and G denotes a second filter function applied only to extended taps, and K denotes a joint filter function.
[0788] Clause 90. The method of clause 81, wherein the plurality of extension taps are used as additional taps for filter shaping in an ALF.
[0789] Clause 91. The method of clause 90, wherein the plurality of extension taps are combined with spatial taps to form a filter.
[0790] Clause 92. The method of clause 90, wherein the training data collection for multiple expansion taps and spatial taps is performed jointly.
[0791] Clause 93. The method of clause 90, wherein coefficients of a plurality of extension taps and spatial taps are trained jointly.
[0792] Clause 94. The method of clause 90, wherein clipping parameters for a plurality of extension taps and spatial taps are jointly generated.
[0793] Clause 95. The method of clause 90, wherein other parameters of the extension taps and the spatial taps are derived jointly.
[0794] Clause 96. The method of clause 81, wherein the plurality of extension taps are used as independent filters in an ALF.
[0795] Clause 97. The method of clause 96, wherein the plurality of expansion taps are implemented as independent filters.
[0796] Clause 98. The method of clause 96, wherein the training data collection for the plurality of expansion taps is performed individually.
[0797] Clause 99. The method of clause 98, wherein the training data collection for the plurality of extended taps is performed based on samples that have not been ALF filtered.
[0798] Clause 100. The method of clause 98, wherein the training data collection for the plurality of extended taps is performed based on ALF filtered samples.
[0799] Clause 101. The method of clause 96, wherein the coefficients of the plurality of extended taps are trained individually.
[0800] Clause 102. The method of clause 96, wherein the clipping parameters for the plurality of extended taps are generated or derived individually.
[0801] Clause 103. The method of clause 96, wherein other parameters of the plurality of extension taps are derived independently.
[0802] Clause 104. The method of clause 81, wherein the plurality of extension taps utilize different shapes or sizes.
[0803] Clause 105. A method according to clause 104, wherein the spatial taps of a filter use a diamond shape having a first size and the extended taps use a diamond shape having a second size, and wherein the extended taps are used in forward and backward reference strips or forward and backward reference pictures.
[0804] Clause 106. The method of clause 105, wherein the first size is 9 and the second size is 5.
[0805] Clause 107. The method of clause 104, wherein the plurality of extended taps use one of the following: a diamond shape, a square shape, a cross shape, a symmetrical shape, an asymmetrical shape, another shape.
[0806] Clause 108. The method of clause 104, wherein the shapes of the plurality of extension taps are dynamically determined, or wherein the shapes of the plurality of extension taps are indicated, or wherein the shapes of the plurality of extension taps are derived.
[0807] Clause 109. The method of clause 104, wherein the plurality of extension taps uses a filter length equal to a value.
[0808] Clause 110. The method of clause 109, wherein the filter length of the plurality of extension taps is dynamically determined, or wherein the filter length is indicated, or wherein the filter length is derived.
[0809] Clause 111. The method of clause 104, wherein a symmetry constraint is performed on the plurality of extended taps.
[0810] Clause 112. The method of clause 111, wherein a geometric symmetry constraint is performed on the plurality of extended taps.
[0811] Clause 113. The method of clause 111, wherein if multiple reference blocks are used, a time-domain symmetry constraint is performed on the extended taps.
[0812] Clause 114. The method of clause 111, wherein geometric and time domain symmetry constraints are enforced separately.
[0813] Clause 115. The method of clause 111, wherein geometric and time domain symmetry constraints are jointly enforced.
[0814] Clause 116. The method of clause 104, wherein the total number of extension taps is derived jointly based on the shape, filter length, and symmetry constraints.
[0815] Clause 117. The method of clause 104, wherein the filter shape of the extended taps is centered at the same position of the current sample to be filtered, but in a different picture.
[0816] Clause 118. The method of clause 117, wherein the filter shape of the extended taps is centered at a different location of the current sample and in a different picture.
[0817] Clause 119. The method of clause 118, wherein the displacement between the center and the position of the current sample is determined by a motion vector.
[0818] Clause 120. The method of clause 119, wherein the motion vector is rounded to an integer sample, or wherein the motion vector is scaled to a desired reference picture.
[0819] Clause 121. The method of clause 119, wherein the motion vector is derived from a motion vector MV of a block covering the current sample, and wherein the block is one of: a prediction unit PU, a coding unit CU, or a coding tree unit CTU.
[0820] Clause 122. The method of clause 121, wherein if there is no MV covering the block of the current sample, a default MV is used.
[0821] Clause 123. The method of clause 121, wherein if there is no MV for the block covering the current sample, a replacement MV is used, and wherein the replacement MV is derived from a neighboring block having a MV.
[0822] Clause 124. The method of clause 121, wherein if there are multiple MVs covering the block of the current sample, one of the multiple MVs is used.
[0823] Clause 125. The method of clause 124, wherein the MV at the center of the block is used.
[0824] Clause 126. The method of clause 81, wherein classification is performed for the plurality of extended taps.
[0825] Clause 127. The method of clause 126, wherein the classification for the plurality of extended taps is performed based on texture information.
[0826] Clause 128. The method of clause 126, wherein the classification for extension taps is performed based on frequency band information.
[0827] Clause 129. The method of clause 126, wherein classification for spatial taps is reused for the plurality of extended taps.
[0828] Clause 130. The method of clause 126, wherein class merging for the plurality of extended taps is performed independently.
[0829] Clause 131. The method of clause 126, wherein class merging for spatial taps is reused for the plurality of extended taps.
[0830] Clause 132. The method of clause 81, wherein a first syntax element is indicated to indicate whether the plurality of extended taps are enabled.
[0831] Clause 133. The method of clause 132, wherein the first syntax element is encoded by arithmetic coding.
[0832] Clause 134. The method of clause 133, wherein the first syntax element is encoded with at least one context.
[0833] Clause 135. The method of clause 134, wherein the context depends on codec information of the current block or a neighboring block.
[0834] Clause 136. The method of clause 134, wherein the context depends on a filter shape of at least one neighboring block.
[0835] Clause 137. The method of clause 133, wherein the first syntax element is encoded using bypass encoding.
[0836] Clause 138. The method of clause 132, wherein the first syntax element is binarized by one of: a unary code, a truncated unary code, a fixed length code, an exponential Golomb code, or a truncated exponential Golomb code.
[0837] Clause 139. A method according to clause 132, wherein the first syntax element is conditionally indicated.
[0838] Clause 140. The method of clause 139, wherein the first syntax element is indicated only if the plurality of extended taps are available.
[0839] Clause 141. The method of clause 132, wherein the first syntax element is encoded in a predictive manner.
[0840] Clause 142. The method of clause 141, wherein the first syntax element is predicted by an on / off decision of an extended tap of at least one neighboring block.
[0841] Clause 143. The method of clause 132, wherein the first syntax element is indicated independently for different color components.
[0842] Clause 144. The method of clause 143, wherein the first syntax element is indicated and shared for different color components.
[0843] Clause 145. The method of clause 143, wherein the first syntax element is indicated for a first color component and not indicated for a second color component.
[0844] Clause 146. The method of clause 81, wherein the syntax element structure comprises a filter having extended taps.
[0845] Clause 147. The method of clause 146, wherein coefficients of extended taps are included in the syntax element structure.
[0846] Clause 148. The method of clause 146, wherein clipping parameters of the extended taps are included in the syntax element structure.
[0847] Clause 149. The method of clause 146, wherein a class merging result of the extended taps is included in the syntax element structure.
[0848] Clause 150. The method of clause 146, wherein further parameters of the extension taps are included in the syntax element structure.
[0849] Clause 151. A method according to any of clauses 146 to 150, wherein the syntax element structure is an adaptation parameter set (APS).
[0850] Clause 152. A method according to any one of clauses 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is in the bitstream.
[0851] Clause 153. A method according to any one of clauses 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is indicated at one of: a sequence level, a group of pictures level, a picture level, a slice level or a tile group level.
[0852] Clause 154. A method according to any one of clauses 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is indicated in one of the following: a sequence header, a picture header, a sequence parameter set SPS, a video parameter set VPS, a dependency parameter set DPS, decoding capability information DCI, a picture parameter set PPS, an adaptation parameter set APS, a slice header, or a tile group header.
[0853] Clause 155. A method according to any one of clauses 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is included in one of the following: a prediction block PB, a transform block TB, a codec block CB, a prediction unit PU, a transform unit TU, a codec unit CU, a virtual pipeline data unit VPDU, a codec tree unit CTU, a CTU row, a slice, a tile, a sub-picture, or an area including more than one sample or pixel.
[0854] Clause 156. The method according to any one of clauses 1 to 151 further includes: determining whether and / or how to filter the at least one sample in the current picture based on the codec information of the video unit, the codec information including at least one of the following: block size, color format, single tree and / or dual tree partitioning, color component, slice type, or picture type.
[0855] Item 157. A video processing method, comprising: determining a symmetric constraint relaxation of parameters in a filtering process during conversion of a video unit to a bitstream of the video unit; applying the filtering process to the video unit based on the relaxation; and performing the conversion based on the filtered video unit.
[0856] Clause 158. The method of clause 157, wherein the parameter comprises at least one of: a coefficient or a shear parameter.
[0857] Clause 159. The method of clause 157, wherein the symmetry constraint comprises a geometric symmetry constraint.
[0858] Clause 160. The method of clause 157, wherein the parameters include: coefficients and corresponding cropping parameters, and wherein the coefficients and the corresponding cropping parameters are trained or generated based on input samples.
[0859] Clause 161. The method of clause 157, wherein the relaxation comprises completely removing the symmetry constraint.
[0860] Clause 162. The method of clause 161, wherein the relaxation of the symmetry constraint is applied to a rhombus having a filter shape of a first size.
[0861] Clause 163. A method according to clause 162, wherein the total number of coefficients increases from a first value to a second value, or wherein the total number of shearing parameters increases from the first value to the second value.
[0862] Clause 164. The method of clause 157, wherein the relaxation comprises the symmetry constraints being partially removed.
[0863] Clause 165. A method according to clause 164, wherein a rhombus having a filter shape of a first size is applied to a filter in the filtering process, and wherein the relaxation of the symmetry constraint is applied to a rhombus having an area of a second size inside the rhombus having the filter shape of the first size, and wherein the second size is smaller than the first size.
[0864] Clause 166. A method according to clause 165, wherein the number of coefficients increases from a third value to a fourth value, or wherein the number of shearing parameters increases from the third value to the fourth value.
[0865] Clause 167. The method of clause 164, wherein the relaxation of the symmetry constraint is applied to a square having an area of a third size inside the filter shape.
[0866] Clause 168. A method according to clause 167, wherein the number of coefficients increases from a fifth value to a sixth value, or wherein the number of shearing parameters increases from the fifth value to the sixth value.
[0867] Clause 169. A method according to clause 164, wherein the relaxation of the symmetry constraint is applied to an area that can be covered by a filter shape of the filtering process.
[0868] Clause 170. The method of clause 157, wherein the relaxation of the symmetry constraint is applied to all components.
[0869] Clause 171. A method according to clause 157, wherein the relaxation of the symmetry constraint is applied to one component.
[0870] Clause 172. The method of clause 171, wherein the relaxation of the symmetry constraint is applied only to a luminance filter in the filtering process.
[0871] Clause 173. A method according to clause 171, wherein the relaxation of the symmetry constraint is applied only to the chroma filter in the filtering process.
[0872] Clause 174. The method of clause 157, wherein the relaxation of the symmetry constraint is applied to both spatial taps and extension taps within an ALF filter.
[0873] Clause 175. The method of clause 157, wherein the relaxation of the symmetry constraint is applied only to spatial taps or extension taps within an ALF filter.
[0874] Clause 176. The method of clause 175, wherein the relaxation of the symmetry constraint is applied only to spatial taps internal to the ALF filter.
[0875] Clause 177. The method of clause 175, wherein the relaxation of the symmetry constraint is applied only to expansion taps within the ALF filter.
[0876] Clause 178. The method of clause 157, wherein the asymmetric taps are implemented as additional taps.
[0877] Clause 179. A method according to clause 178, wherein the spatially asymmetric taps are implemented as additional taps on top of the symmetric spatial taps.
[0878] Clause 180. The method of clause 178, wherein the spatially asymmetric taps are implemented as additional taps on top of the symmetric extended taps.
[0879] Clause 181. A method according to clause 178, wherein the extended asymmetric taps are performed as additional taps above the symmetric spatial taps.
[0880] Clause 182. The method of clause 178, wherein extending the asymmetric taps is performed as additional taps on top of the symmetric extended taps.
[0881] Clause 183. The method of clause 157, wherein there is an on / off control for the relaxation of the symmetry constraint.
[0882] Clause 184. A method according to clause 183, wherein a flag in the APS is used for on / off control of symmetry constraint relaxation.
[0883] Clause 185. A method according to clause 183, wherein the on / off control is indicated, or wherein the on / off control is inherited, or wherein the on / off control is dynamically derived.
[0884] Clause 186. A method according to any one of clauses 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is in the bitstream.
[0885] Clause 187. A method according to any one of clauses 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is indicated at one of: a sequence level, a group of pictures level, a picture level, a slice level or a tile group level.
[0886] Clause 188. A method according to any one of clauses 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is indicated in one of the following: a sequence header, a picture header, a sequence parameter set SPS, a video parameter set VPS, a dependency parameter set DPS, decoding capability information DCI, a picture parameter set PPS, an adaptation parameter set APS, a slice header, or a tile group header.
[0887] Clause 189. A method according to any one of clauses 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is included in one of the following: a prediction block PB, a transform block TB, a codec block CB, a prediction unit PU, a transform unit TU, a codec unit CU, a virtual pipeline data unit VPDU, a codec tree unit CTU, a CTU row, a slice, a tile, a sub-picture, or an area including more than one sample or pixel.
[0888] Clause 190. The method according to any one of clauses 157 to 185 further includes: determining whether and / or how to determine the relaxation of the symmetry constraint based on the encoding and decoding information of the video unit, the encoding information including at least one of the following: block size, color format, single tree and / or dual tree partitioning, color component, slice type, or picture type.
[0889] Clause 191. A method according to any one of clauses 1 to 190, wherein during the filtering process, at least one of the following is applied: filtering at least one sample based on the information or the relaxation of the symmetry constraint.
[0890] Clause 192. A method according to any one of clauses 1 to 191, wherein in a video codec, the filter shape selection method is applied to the filtering process is one of the following in the video codec: a loop filtering method, a pre-processing filtering method, or a post-processing filtering method.
[0891] Clause 193. The method of clause 192, wherein the loop filtering method comprises at least one of: ALF, cross-component ALF, or another loop filtering method.
[0892] Clause 194. A method according to any one of clauses 1 to 193, wherein the converting comprises encoding the video unit into the bitstream.
[0893] Clause 195. A method according to any one of clauses 1 to 193, wherein the converting comprises decoding the video unit from the bitstream.
[0894] Clause 196. A method according to any one of clauses 1 to 151, wherein the video unit comprises one of the following: a sequence, a picture, a sub-picture, a slice, a tile, a codec tree unit CTU, a CTU row, a CTU group, a codec unit CU, a prediction unit PU, a transform unit TU, a codec tree block CTB, a codec block CB, a prediction block PB, a transform block TB, or a region including more than one luma or chroma sample or pixel.
[0895] Clause 197. A device for processing video data, comprising a processor and a non-volatile memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any one of clauses 1 to 196.
[0896] Clause 198. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method of any one of clauses 1 to 196.
[0897] Item 199. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: determining information of a previously encoded and decoded picture associated with a video unit of a current picture of the video; during a filtering process, filtering at least one sample of the video unit based on the information; and generating a bitstream of the target block based on the at least one filtered sample.
[0898] Item 200. A method for storing a bitstream of a video, comprising: determining information of a previously encoded and decoded picture associated with a video unit of a current picture of the video; filtering at least one sample of the video unit based on the information during a filtering process; generating a bitstream of a target block based on the at least one filtered sample; and storing the bitstream in a non-transitory computer-readable recording medium.
[0899] Item 201. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: determining a relaxation of a symmetry constraint of parameters in a filtering process; applying the filtering process to a video unit of the video based on the relaxation; and generating a bitstream of the target block based on the filtered video unit.
[0900] Item 202. A method for storing a bitstream of a video, comprising: determining a relaxation of a symmetry constraint of parameters in a filtering process; applying the filtering process to a video unit of the video based on the relaxation; generating a bitstream of the target block based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium.
[0901] Example Device
[0902] Fig.23A block diagram of a computing device 2300 in which various embodiments of the present disclosure may be implemented is shown. The computing device 2300 may be implemented as a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300), or may be included in a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300).
[0903] It should be understood that Fig.23 The computing device 2300 shown in the figure is for illustrative purposes only and is not intended to in any way imply any limitation on the functionality and scope of the embodiments of the present disclosure.
[0904] like Fig.23 As shown, computing device 2300 includes a general computing device 2300. Computing device 2300 may include at least one or more processors or processing units 2310, memory 2320, storage unit 2330, one or more communication units 2340, one or more input devices 2350, and one or more output devices 2360.
[0905] In some embodiments, the computing device 2300 can be implemented as any user terminal or server terminal with computing power. The server terminal can be a server provided by a service provider, a large computing device, etc. The user terminal can be, for example, any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet computer, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device, or any combination thereof, and includes the accessories and peripherals of these devices, or any combination thereof. It is conceivable that the computing device 2300 can support any type of interface to the user (such as a "wearable" circuit device, etc.).
[0906] The processing unit 2310 may be a physical processor or a virtual processor and may implement various processes based on a program stored in the memory 2320. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the computing device 2300. The processing unit 2310 may also be referred to as a central processing unit (CPU), a microprocessor, a controller, or a microcontroller.
[0907] The computing device 2300 typically includes various computer storage media. Such media can be any media accessible by the computing device 2300, including but not limited to volatile media and non-volatile media, or removable media and non-removable media. The memory 2320 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (such as a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM) or flash memory) or any combination thereof. The storage unit 2330 can be any removable or non-removable medium, and can include machine-readable media, such as a memory, a flash drive, a disk or other media that can be used to store information and / or data and can be accessed in the computing device 2300.
[0908] The computing device 2300 may also include additional removable / non-removable storage media, volatile / non-volatile storage media. Fig.23 Although not shown in the figure, a magnetic disk drive for reading from and / or writing to a removable nonvolatile magnetic disk and an optical disk drive for reading from and / or writing to a removable nonvolatile optical disk may be provided. In this case, each drive may be connected to the bus (not shown) via one or more data medium interfaces.
[0909] The communication unit 2340 communicates with another computing device via a communication medium. In addition, the functions of the components in the computing device 2300 can be implemented by a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 2300 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or other general network nodes.
[0910] Input device 2350 may be one or more of various input devices, such as a mouse, keyboard, trackball, voice input device, etc. Output device 2360 may be one or more of various output devices, such as a display, speaker, printer, etc. With the aid of communication unit 2340, computing device 2300 may also communicate with one or more external devices (not shown), such as storage devices and display devices, and computing device 2300 may also communicate with one or more devices that enable a user to interact with computing device 2300, or any device that enables computing device 2300 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.), if necessary. Such communication may be performed via an input / output (I / O) interface (not shown).
[0911] In some embodiments, some or all components of the computing device 2300 may also be arranged in a cloud computing architecture rather than being integrated in a single device. In a cloud computing architecture, components may be provided remotely and work together to implement the functions described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage services, which will not require the end user to know the physical location or configuration of the system or hardware that provides these services. In various embodiments, cloud computing provides services via a wide area network (e.g., the Internet) using a suitable protocol. For example, a cloud computing provider provides applications via a wide area network, which can be accessed through a web browser or any other computing component. The software or components of the cloud computing architecture and the corresponding data may be stored on a remote server. The computing resources in a cloud computing environment may be merged or distributed at the location of a remote data center. Cloud computing infrastructure may provide services through a shared data center, although they appear as a single access point for users. Therefore, the cloud computing architecture may be used to provide the components and functions described herein from a service provider at a remote location. Alternatively, they may be provided by a conventional server, or installed directly or otherwise on a client device.
[0912] In an embodiment of the present disclosure, the computing device 2300 may be used to implement video encoding / decoding. The memory 2320 may include one or more video encoding / decoding modules 2325 having one or more program instructions. These modules can be accessed and executed by the processing unit 2310 to perform the functions of the various embodiments described herein.
[0913] In an example embodiment performing video encoding, input device 2350 may receive video data as input to be encoded 2370. The video data may be processed, for example, by video codec module 2325 to generate an encoded bitstream. The encoded bitstream may be provided as output 2380 via output device 2360.
[0914] In an example embodiment performing video encoding, input device 2350 may receive video data as input 2370 to be encoded. The video data may be processed by, for example, video codec module 2325 to generate an encoded bitstream. The encoded bitstream may be provided as output 2380 via output device 2360.
[0915] Although the present disclosure has been specifically shown and described with reference to the preferred embodiments of the present disclosure, it will be understood by those skilled in the art that various changes can be made in form and detail without departing from the spirit and scope of the present application as defined by the appended claims. These changes are intended to be encompassed by the scope of the present application. Therefore, the foregoing description of the embodiments of the present application is not intended to be limiting.
Claims
1. A video processing method, comprising: During a transition between a video unit of a current picture of a video and a bitstream of the video unit, determining information of a previously coded picture associated with the video unit; In a filtering process, filtering at least one sample of the video unit based on the information; as well as The converting is performed based on the at least one filtered sample.
2. The method of claim 1, wherein the filtering process comprises an adaptive loop filter (ALF).
3. The method according to claim 1, wherein the information includes at least one of the following: a set of reconstructed samples in the previously coded picture, or Motion information of the previously decoded image. 4 . The method of claim 1 , wherein a plurality of extended taps for ALF are used based on one or more previously coded pictures.
5. The method of claim 1, wherein the previously encoded image is one of: a reference picture in a reference picture list RPL, and wherein the RPL is associated with one of: a current block, a current slice or the current picture; or A reference picture in a reference picture set PRS, and wherein the PRS is associated with one of: the current block, the current slice or the current picture.
6. The method of claim 5, wherein the previously coded picture is a short-term reference picture of one of: the current block, the current slice, or the current picture, or The previously encoded picture is a long-term reference picture of one of the following: the current block, the current slice, or the current picture.
7. The method of claim 1, wherein the previously encoded and decoded pictures are stored in a decoded picture buffer (DPB). The method of claim 1 , wherein the previously encoded picture is indicated by at least one indicator.
9. The method of claim 8, wherein a reference picture list to be used is indicated by the at least one indicator.
10. The method of claim 8, wherein a reference index to be used is indicated by the at least one indicator. 11 . The method according to claim 8 , wherein the at least one indicator is indicated based on the number of reference pictures included in the RPL or the RPS.
12. The method of claim 8, wherein the at least one indicator is indicated based on the number of previously encoded and decoded pictures included in the DPB.
13. The method according to claim 1, wherein the method further comprises: A previously encoded picture to be used is dynamically determined.
14. The method of claim 1, wherein the plurality of extension taps obtain information from one or more previously coded pictures in the DPB.
15. The method of claim 1, wherein the plurality of extension taps obtain information from one or more previously coded pictures in list 0, or The plurality of extended taps obtain information from one or more previously coded pictures in list 1. 16 . The method of claim 1 , wherein the plurality of extended taps obtain information from one or more previously coded pictures in list 0 and list 1.
17. The method of claim 1, wherein a plurality of extended taps obtain information from a reference picture that is closest to the current picture.
18. The method of claim 1, wherein the plurality of extended taps obtain information from a reference picture having a reference index equal to a value in a reference list.
19. The method according to claim 18, wherein the value is 0, or where the value is predefined, or wherein the value is derived in real time based on reference image information, or wherein the values are indicated.
20. The method of claim 1, wherein the plurality of expansion taps obtain information from a co-located picture.
21. The method according to claim 1, wherein the method further comprises: The previously encoded picture to be used is determined based on the decoded information.
22. The method of claim 21, wherein the previously encoded pictures to be used are defined as the top N most frequently used reference pictures for samples within the current picture or current slice, where N is an integer.
23. The method of claim 21, wherein the previously coded pictures to be used are defined as the top N most frequently used reference pictures of each reference picture list for samples within the current picture or current slice, where N is an integer.
24. The method of claim 21, wherein the previously encoded picture to be used is defined as a picture having N smallest distances relative to a current picture, where N is an integer.
25. The method of claim 24, wherein the N minimum distances comprise N minimum picture order count (POC) distances, or The N minimum distances include N minimum absolute POC distances.
26. The method of claim 1, wherein whether to determine the information from the previously encoded picture depends on decoded information of at least one region of a current block to be filtered.
27. The method of claim 1, wherein whether the information is determined from the previously encoded and decoded picture of at least one region of the current block is indicated from an encoder to a decoder.
28. The method of claim 1, wherein whether to determine the information from the previously encoded picture depends on a slice type or a picture type.
29. The method of claim 28, wherein if the slice type is an inter-coded slice or the picture type is an inter-coded picture, the information is determined from the previously coded picture.
30. The method of claim 1, wherein whether to determine the information from the previously encoded picture depends on availability of reference pictures.
31. The method of claim 1, wherein whether to determine the information from the previously encoded picture depends on reference picture information or picture information in a DPB.
32. The method of claim 31 , wherein if a minimum POC distance between a reference picture and a current picture is greater than a threshold, determining the information from the previously encoded picture is disabled.
33. The method of claim 1, wherein whether the information is determined from the previously encoded picture depends on at least one of: Temporal layer index, Quantization parameter QP, or The dimensions of the image.
34. The method of claim 33, wherein if the temporal layer index is a given temporal layer index, the information is determined from the previously encoded picture.
35. The method of claim 1, wherein if the video unit includes a portion of samples coded in non-inter mode, a plurality of extended taps do not use information from the previously coded picture to filter the video unit. The method of claim 35 , wherein the non-inter mode is defined as an intra mode.
37. The method of claim 35, wherein the non-inter mode is defined as a set of codec modes, the set of codec modes comprising at least one of: intra mode, intra block copy (IBC) mode, or palette mode.
38. The method of claim 1, wherein a distortion between a current block and a matching block is determined, and Wherein the distortion is used to determine whether to determine the information from the previously encoded picture to filter the current block.
39. The method of claim 38, wherein distortion between a co-located block in the previously encoded picture and the current block is used to determine whether to determine the information from the previously encoded picture to filter the current block.
40. The method of claim 38, wherein motion estimation is used to find a matching block from the previously encoded picture.
41. The method of claim 38, wherein if the distortion is greater than a predefined threshold, the information determined from the previously encoded picture is not used.
42. The method of claim 1, wherein the plurality of extended taps obtain motion information of a current block and reconstructed samples in the previously coded picture to generate a reference block.
43. The method according to claim 42, wherein the reference block is at least one reference block of the current block, or The reference block is at least one co-located block of the current block.
44. The method of claim 42, wherein the reference block is in a region pointed to by at least one motion vector.
45. The method of claim 44, wherein the motion vector is different from the decoded motion vector associated with the current block.
46. The method of claim 42, wherein the reference block is a block centered at the same horizontal and vertical position in the previously encoded picture as the current block in the current picture.
47. The method of claim 42, wherein the reference block is derived by motion estimation.
48. The method of claim 47, wherein the motion estimation comprises searching from the previously encoded pictures to find a block that is closest to the current block by some metric.
49. The method of claim 47, wherein the motion estimation is performed with integer precision to avoid fractional pixel interpolation.
50. The method of claim 47, wherein the motion estimation is performed with fractional precision to improve the quality of a reference block.
51. The method of claim 42, wherein the reference block is derived by reusing a motion vector included in the current block.
52. The method of claim 51, wherein the motion vectors are rounded to integer precision to avoid fractional pixel interpolation.
53. The method of claim 51, wherein the reference block is located by adding an offset determined by the motion vector to the position of the current block.
54. The method of claim 51, wherein the motion vector refers to a previously encoded picture that includes the reference block.
55. The method of claim 51, wherein the motion vector is scaled to a previously encoded picture that includes the reference block.
56. The method of claim 42, wherein at least one of the reference block or the co-located block has the same size as the current block, or The size of at least one of the reference block or the co-located block is greater than the size of the current block.
57. A method according to claim 56, wherein at least one of the reference block or the co-located block of the same size as the current block is first found, and then at least one of the reference block or the co-located block is extended at each boundary to include more samples from previously encoded samples.
58. A method according to claim 57, wherein the size of the extension area is indicated to a decoder, or The size of the extended area is derived dynamically.
59. The method according to claim 42, wherein the information comprises at least one of the following: two reference blocks or two co-located blocks of the current block, and wherein one of the two reference blocks is from a first reference picture in list 0, and the other of the two reference blocks is from the first reference picture in list 1, or One of the two co-located blocks comes from the first reference picture in list 0, and the other of the two co-located blocks comes from the first reference picture in list 1.
60. The method of claim 1, wherein a plurality of extended taps for ALF is utilized based on a cross-component concept.
61. The method of claim 60, wherein the plurality of extended taps obtain information of chroma components in a current picture or a current slice to filter luma samples.
62. The method of claim 60, wherein the plurality of extended taps obtain information of Cb or Cr components from a source picture or a source slice.
63. The method of claim 60, wherein the plurality of extended taps obtain information of two chroma components from a source picture or slice.
64. The method of claim 60, wherein the plurality of extended taps obtain information of chroma components in the previously encoded picture or previously encoded slice to filter luma samples.
65. The method of claim 60, wherein the plurality of extended taps obtain information of Cb or Cr components only from a source picture or a source slice.
66. The method of claim 60, wherein the plurality of extended taps obtain information of two chroma components from a source picture or a source slice.
67. The method of claim 60, wherein the previously coded picture or slice to be used is determined dynamically, or wherein the previously coded picture or slice to be used is indicated, or Therein the previously coded picture or slice to be used is derived.
68. The method of claim 60, wherein whether to use the previously coded picture or slice is dynamically determined, or which indicates whether to use the previously coded picture or slice, or Therein, whether to use the previously coded picture or slice is derived.
69. The method of claim 60, wherein the plurality of extended taps obtain information of a luma component in a current picture or a current slice to filter chroma samples.
70. The method of claim 69, wherein the plurality of extended taps are applied to filter a Cb or Cr component.
71. The method of claim 69, wherein the plurality of extended taps are applied to filter two chrominance components.
72. The method of claim 60, wherein the plurality of extended taps obtain information of luma components in the previously encoded picture or slice to filter chroma samples.
73. The method of claim 72, wherein the plurality of extended taps are applied to filter only the Cb or Cr components.
74. The method of claim 72, wherein the plurality of extended taps are applied to filter two chrominance components.
75. The method of claim 72, wherein the previously coded picture or slice to be used is determined dynamically, or wherein the previously coded picture or slice to be used is indicated, or The previously coded picture or slice to be used is derived.
76. The method of claim 72, wherein whether to use the previously coded picture or slice is dynamically determined, or wherein whether to use the previously coded picture or slice is indicated, or Wherein whether to use the previously coded picture or slice is derived.
77. The method of claim 60, wherein the plurality of extended taps obtain information of a first chroma component in a current picture or slice to filter chroma samples of a second chroma component.
78. The method of claim 60, wherein the plurality of extended taps obtain information of a first chroma component in the previously encoded picture or slice to filter chroma samples of a second chroma component.
79. The method of claim 78, wherein the previously coded picture or slice to be used is determined dynamically, or wherein the previously coded picture or slice to be used is indicated, or The previously coded picture or slice to be used is derived.
80. The method of claim 78, wherein whether to use the previously encoded picture or slice is dynamically determined, or wherein whether to use the previously coded picture or slice is indicated, or Wherein whether to use the previously coded picture or slice is derived.
81. The method of claim 1, wherein multiple extension taps for ALF are used.
82. The method of claim 81, wherein the plurality of extended taps are different from spatial taps in an ALF that utilize only information of spatially neighboring samples of a filtered component.
83. The method of claim 82, wherein only spatially neighboring luma samples are used to filter a center luma sample within a filter shape.
84. The method of claim 81, wherein the plurality of expansion taps are applied to different color components.
85. The method of claim 84, wherein the plurality of extended taps are applied to both the luma component and the chroma component, or wherein the plurality of extended taps are applied only to the luma component, or The plurality of extended taps are applied only to chrominance components.
86. The method of claim 81, wherein in represents the sample at (x, y) after filtering, {S i,j (x, y)} represents a set of samples corresponding to the spatial taps, {E m,n (x, y)} represents a set of samples corresponding to the extended taps, F represents a joint filter function, or x and y represent parameters.
87. The method of claim 86, wherein F represents a first-order filter function applied only to spatial taps, and G represents a second-order filter function.
88. The method of claim 86, wherein F represents a first-order filter function applied only to the extended taps, and G represents a second-order filter function.
89. The method of claim 86, wherein F denotes a first filter function applied only to spatial taps, and G denotes a second filter function applied only to extended taps, and K denotes a joint filter function.
90. The method of claim 81, wherein the plurality of extension taps are used as additional taps for filter shaping in an ALF.
91. The method of claim 90, wherein the plurality of extension taps are combined with spatial taps to form a filter.
92. The method of claim 90, wherein training data collection for a plurality of extended taps and spatial taps is performed jointly.
93. The method of claim 90, wherein coefficients of a plurality of extension taps and spatial taps are trained jointly.
94. The method of claim 90, wherein clipping parameters for a plurality of extension taps and spatial taps are jointly generated.
95. A method according to claim 90, wherein other parameters of the extension taps and the spatial taps are derived jointly.
96. The method of claim 81, wherein the plurality of extension taps are used as independent filters in an ALF.
97. The method of claim 96, wherein the plurality of expansion taps are implemented as independent filters.
98. The method of claim 96, wherein the training data collection for the plurality of expansion taps is performed individually.
99. The method of claim 98, wherein the training data collection for the plurality of extended taps is performed based on samples that have not been ALF filtered.
100. The method of claim 98, wherein the training data collection for the plurality of extended taps is performed based on ALF filtered samples.
101. The method of claim 96, wherein the coefficients of the plurality of extended taps are trained individually.
102. The method of claim 96, wherein the clipping parameters of the plurality of extended taps are generated or derived individually.
103. The method of claim 96, wherein other parameters of the plurality of extension taps are derived independently.
104. The method of claim 81, wherein the plurality of extension taps use different shapes or sizes.
105. The method of claim 104, wherein the spatial taps of a filter use a diamond shape having a first size and the extended taps use a diamond shape having a second size, and The extended taps are used in the forward and backward reference slices or the forward and backward reference pictures.
106. The method of claim 105, wherein the first size is 9 and the second size is 5.
107. The method of claim 104, wherein the plurality of extended taps uses one of: diamond, square, Cross-shaped, Symmetrical shape, Asymmetrical shape, Another shape.
108. The method of claim 104, wherein the shapes of the plurality of extension taps are dynamically determined, or wherein said shape of said plurality of extended taps is indicated, or wherein the shapes of the plurality of extended taps are derived.
109. The method of claim 104, wherein the plurality of extended taps use a filter length equal to a value.
110. The method of claim 109, wherein the filter length of the plurality of extension taps is determined dynamically, or where the filter length is indicated, or Therein the filter length is derived.
111. The method of claim 104, wherein a symmetry constraint is performed on the plurality of extended taps.
112. The method of claim 111, wherein a geometric symmetry constraint is performed on the plurality of extended taps.
113. The method of claim 111, wherein if multiple reference blocks are used, a time domain symmetry constraint is performed on the extended taps.
114. The method of claim 111, wherein geometric and time domain symmetry constraints are performed separately.
115. The method of claim 111, wherein geometric and time domain symmetry constraints are performed jointly.
116. The method of claim 104, wherein the total number of extension taps is derived jointly based on shape, filter length, and symmetry constraints.
117. The method of claim 104, wherein the center of the filter shape of the extended tap is at the same position of the current sample to be filtered, but in a different picture.
118. The method of claim 117, wherein the filter shape of the extended taps is centered at a different location of the current sample and in a different picture.
119. The method of claim 118, wherein the displacement between the center and the position of the current sample is determined by a motion vector.
120. The method of claim 119, wherein the motion vector is rounded to integer samples, or The motion vectors are scaled to the desired reference picture.
121. The method according to claim 119, wherein the motion vector is derived from the motion vector MV of the block covering the current sample, and The block is one of the following: a prediction unit PU, a coding unit CU or a coding tree unit CTU.
122. The method of claim 121, wherein if there is no MV covering the block of the current sample, a default MV is used.
123. The method of claim 121, wherein if there is no MV covering the block of the current sample, a replacement MV is used, and The replacement MV is derived from a neighboring block having a MV.
124. The method of claim 121, wherein if there are multiple MVs covering the block of the current sample, one MV among the multiple MVs is used.
125. The method of claim 124, wherein the MV at the center of the block is used.
126. The method of claim 81, wherein classification is performed for the plurality of extended taps.
127. The method of claim 126, wherein the classification of the plurality of extended taps is performed based on texture information.
128. The method of claim 126, wherein the classification for extension taps is performed based on frequency band information.
129. The method of claim 126, wherein classification for spatial taps is reused for the plurality of extended taps.
130. The method of claim 126, wherein class merging for the plurality of extended taps is performed independently.
131. A method according to claim 126, wherein the class merging for spatial taps is reused for the multiple extended taps.
132. The method of claim 81, wherein a first syntax element is indicated to indicate whether the plurality of extended taps are enabled.
133. The method of claim 132, wherein the first syntax element is encoded by arithmetic coding.
134. The method of claim 133, wherein the first syntax element is encoded with at least one context.
135. The method of claim 134, wherein the context depends on codec information of the current block or a neighboring block.
136. The method of claim 134, wherein the context depends on a filter shape of at least one neighboring block.
137. The method of claim 133, wherein the first syntax element is encoded using bypass codec.
138. The method of claim 132, wherein the first syntax element is binarized by one of: Unary code, Truncated unary code, Fixed length code, Exponential Golomb code, or Truncated Exponential Golomb Code.
139. The method of claim 132, wherein the first syntax element is conditionally indicated.
140. The method of claim 139, wherein the first syntax element is indicated only if the plurality of extended taps are available.
141. The method of claim 132, wherein the first syntax element is encoded in a predictive manner.
142. The method of claim 141, wherein the first syntax element is predicted by an on / off decision of an extended tap of at least one neighboring block.
143. The method of claim 132, wherein the first syntax element is indicated independently for different color components.
144. The method of claim 143, wherein the first syntax element is indicated and shared for different color components.
145. The method of claim 143, wherein the first syntax element is indicated for a first color component and not indicated for a second color component.
146. The method of claim 81, wherein the syntax element structure comprises a filter having extended taps.
147. The method of claim 146, wherein coefficients of extended taps are included in the syntax element structure.
148. The method of claim 146, wherein clipping parameters for extended taps are included in the syntax element structure.
149. The method of claim 146, wherein a class merging result of the extended taps is included in the syntax element structure.
150. The method of claim 146, wherein other parameters of the extension taps are included in the syntax element structure.
151. The method according to any one of claims 146 to 150, wherein the syntax element structure is an adaptation parameter set (APS).
152. The method of any one of claims 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is in the bitstream.
153. The method of any one of claims 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is indicated at one of: Sequence level, A set of picture levels, Picture level, Stripe level or Tile group level.
154. The method of any one of claims 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is indicated at one of: Sequence header, Picture header, Sequence parameter set SPS, Video parameter set VPS, Dependency parameter set DPS, Decoding capability information DCI, Picture parameter set PPS, Adaptation parameter set APS, Strip header, or Tile group header.
155. The method of any one of claims 1 to 151, wherein an indication of whether and / or how to filter the at least one sample in the current picture based on the information is included in one of: Prediction block PB, Transform block TB, Codec block CB, Prediction unit PU, Transformation unit TU, Codec unit CU, Virtual Pipeline Data Unit VPDU, Codec tree unit CTU, CTU line, Strips, Tile, sub-image, or An area that includes more than one sample or pixel.
156. The method of any one of claims 1 to 151, further comprising: Determine, according to codec information of the video unit, whether and / or how to filter the at least one sample in the current picture based on the information, the codec information comprising at least one of the following: Block size, Color format, Single-tree and / or dual-tree partitioning, Color components, Strip type, or Image type.
157. A video processing method, comprising: During conversion of the bitstream from one video unit to another, determining a symmetric constraint relaxation of parameters in a filtering process; applying the filtering process to the video unit based on the relaxation; as well as The conversion is performed based on the filtered video unit.
158. The method of claim 157, wherein the parameter comprises at least one of: a coefficient or a shearing parameter.
159. A method according to claim 157, wherein the symmetry constraint comprises a geometric symmetry constraint.
160. The method of claim 157, wherein the parameters include: coefficients and the corresponding shear parameters, and The coefficients and the corresponding cropping parameters are trained or generated based on input samples.
161. A method according to claim 157, wherein the relaxation includes completely removing the symmetry constraint.
162. A method according to claim 161, wherein the relaxation of the symmetry constraint is applied to a diamond having a filter shape of a first size.
163. The method of claim 162, wherein the total number of coefficients increases from a first value to a second value, or in, The total number of shearing parameters increases from the first value to the second value.
164. A method according to claim 157, wherein the relaxation includes the symmetry constraints being partially removed.
165. The method of claim 164, wherein a diamond having a first size filter shape is applied to a filter in the filtering process, and wherein said relaxation of a symmetry constraint is applied to a rhombus having an area of a second size inside said rhombus having a filter shape of said first size, and The second size is smaller than the first size.
166. A method according to claim 165, wherein the number of coefficients increases from a third value to a fourth value, or wherein said number of shearing parameters increases from said third value to said fourth value.
167. A method according to claim 164, wherein the relaxation of the symmetry constraint is applied to a square having an area of a third size inside the filter shape.
168. A method according to claim 167, wherein the number of coefficients increases from a fifth value to a sixth value, or wherein said number of shearing parameters increases from said fifth value to said sixth value.
169. A method according to claim 164, wherein the relaxation of the symmetry constraint is applied to an area that can be covered by a filter shape of the filtering process.
170. A method according to claim 157, wherein the relaxation of the symmetry constraint is applied to all components.
171. A method according to claim 157, wherein the relaxation of the symmetry constraint is applied to one component.
172. A method according to claim 171, wherein the relaxation of the symmetry constraint is applied only to the brightness filter in the filtering process.
173. A method according to claim 171, wherein the relaxation of the symmetry constraint is applied only to the chroma filter in the filtering process.
174. A method according to claim 157, wherein the relaxation of the symmetry constraint is applied to both spatial taps and extended taps within an ALF filter.
175. The method of claim 157, wherein the relaxation of the symmetry constraint is applied only to spatial taps or extended taps within an ALF filter.
176. A method according to claim 175, wherein the relaxation of the symmetry constraint is applied only to spatial taps inside the ALF filter.
177. The method of claim 175, wherein the relaxation of the symmetry constraint is applied only to extended taps within the ALF filter.
178. The method of claim 157, wherein the asymmetric taps are performed as additional taps.
179. A method according to claim 178, wherein the spatially asymmetric taps are performed as additional taps above the symmetric spatial taps.
180. The method of claim 178, wherein the spatially asymmetric taps are performed as additional taps above the symmetric extended taps.
181. A method according to claim 178, wherein the extended asymmetric taps are performed as additional taps above the symmetric spatial taps.
182. The method of claim 178, wherein extending the asymmetric taps is performed as additional taps above the symmetric extended taps.
183. The method of claim 157, wherein there is an on / off control for the relaxation of symmetry constraints.
184. A method according to claim 183, wherein a flag in the APS is used for on / off control of symmetry constraint relaxation.
185. The method of claim 183, wherein the on / off control is indicated, or where the on / off control is inherited, or Wherein the on / off control is derived dynamically.
186. A method according to any one of claims 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is in the bitstream.
187. The method of any one of claims 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is indicated at one of: Sequence level, A set of picture levels, Picture level, Stripe level or Tile group level.
188. The method of any one of claims 157 to 185, wherein an indication of whether and / or how to determine the relaxation of the symmetry constraint is indicated at one of: Sequence header, Picture header, Sequence parameter set SPS, Video parameter set VPS, Dependency parameter set DPS, Decoding capability information DCI, Picture parameter set PPS, Adaptation parameter set APS, Strip header, or Tile group header.
189. The method of any one of claims 157 to 185, wherein the indication of whether and / or how to determine the relaxation of the symmetry constraint is included in one of: Prediction block PB, Transform block TB, Codec block CB, Prediction unit PU, Transformation unit TU, Codec unit CU, Virtual Pipeline Data Unit VPDU, Codec Tree Unit CTU, CTU line, Strips, Tile, sub-image, or An area that includes more than one sample or pixel.
190. The method of any one of claims 157 to 185, further comprising: Determine whether and / or how to determine the relaxation of the symmetry constraint based on encoding and decoding information of the video unit, the encoding information comprising at least one of the following: Block size, Color format, Single-tree and / or dual-tree partitioning, Color components, Strip type, or Image type.
191. A method according to any one of claims 1 to 190, wherein during the filtering process, at least one of the following is applied: filtering at least one sample based on the information or the relaxation of the symmetry constraint.
192. The method according to any one of claims 1 to 191, wherein in a video codec, the filter shape selection method is applied to the filtering process is one of the following in the video codec: Loop filtering method, Preprocessing filtering methods, or Post-processing filtering method.
193. The method of claim 192, wherein the loop filtering method comprises at least one of: ALF, Cross-component ALF, or Another loop filtering approach.
194. A method according to any one of claims 1 to 193, wherein the conversion includes encoding the video unit into the bitstream.
195. The method of any one of claims 1 to 193, wherein the converting comprises decoding the video unit from the bitstream.
196. The method of any one of claims 1 to 151, wherein the video unit comprises one of: sequence, picture, Sub-picture, Strips, Tile, Codec Tree Unit CTU, CTU line, CTU group, Codec unit CU, Prediction unit PU, Transformation unit TU, Codec tree block CTB, Codec block CB, Prediction block PB, Transform block TB, or An area that includes more than one luma or chroma sample or pixel.
197. A device for processing video data, comprising a processor and a non-volatile memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform a method according to any one of claims 1 to 196.
198. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method of any one of claims 1 to 196.
199. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: determining information of a previously coded picture associated with a video unit of a current picture of the video; In a filtering process, filtering at least one sample of the video unit based on the information; as well as A bitstream of the target block is generated based on the at least one filtered sample.
200. A method for storing a bit stream of a video, comprising: determining information of a previously coded picture associated with a video unit of a current picture of the video; In a filtering process, filtering at least one sample of the video unit based on the information; generating a bitstream of a target block based on the at least one filtered sample; as well as The bit stream is stored in a non-transitory computer-readable recording medium.
201. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method performed by a video processing device, wherein the method comprises: Determine the relaxation of symmetry constraints on parameters during filtering; applying the filtering process to video units of the video based on the relaxation; as well as A bitstream for the target block is generated based on the filtered video unit.
202. A method for storing a bit stream of a video, comprising: Determine the relaxation of symmetry constraints on parameters during filtering; applying the filtering process to video units of the video based on the relaxation; generating a bitstream of the target block based on the filtered video unit; as well as The bit stream is stored in a non-transitory computer-readable recording medium.
