Method and device for video processing and medium
By introducing a long-tap chroma interpolation filter into video encoding and decoding, and dynamically adjusting filter parameters according to the time layer and encoding and decoding information, the problem of insufficient chroma interpolation quality in the existing technology is solved, and the efficiency and performance of video encoding and decoding are improved. .
Patent Information
- Application Number
- CN202380016431.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-05
- Filing Date
- 2023-01-04
- Publication Date
- 2024-10-11
AI Technical Summary
In existing video coding and decoding technology, chroma interpolation filters cannot effectively improve the interpolation quality of chroma components, and the complexity of interpolation calculations under different time layers and codec information is insufficiently balanced.
It is proposed to use the long-tap chroma interpolation filter (LTCIF). By adjusting the number of filter taps and filter coefficients, the parameters of the chroma interpolation filter are dynamically adjusted according to the time layer and codec information to obtain high-quality interpolation results.
Improved video encoding and decoding efficiency, enhanced encoding and decoding performance and flexibility, and achieved a better trade-off between quality and complexity.
Smart Images

Figure CN118765503A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to video coding techniques, and more particularly, to long-tap chroma interpolation filters. 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 generally expected to be further improved. Summary of the invention
[0003] Embodiments of the present disclosure provide solutions for video processing.
[0004] In a first aspect, a method for video processing is proposed. The method includes: during conversion between a video unit of a video and a bitstream of the video, determining a chroma interpolation filter for the video unit, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; and performing conversion based on the chroma prediction block. In this way, a high-quality interpolation result can be obtained. Compared with conventional schemes, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and flexibility.
[0005] In a second aspect, another method for video processing is proposed. The method includes: during conversion between a video unit of a video and a bitstream of the video unit, determining a first chroma interpolation filter and a second chroma interpolation filter for the video unit; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; and performing conversion based on the filtered video unit. In this way, a better trade-off between quality and interpolation computational complexity can be achieved. Compared with conventional schemes, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance, and flexibility.
[0006] In a third aspect, an apparatus for processing video data is provided. The apparatus for processing video data comprises a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method according to the first aspect or the second aspect.
[0007] In a fourth aspect, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium stores instructions, and the instructions enable a processor to execute the method according to the first aspect or the second aspect.
[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 a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; and generating a bitstream of the video unit based on the chroma prediction block.
[0009] In a sixth aspect, a method for storing a bitstream of a video comprises: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to a chroma component of the video unit; generating a bitstream of the video unit based on the chroma prediction block; 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: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; and generating a bitstream of the video unit based on the filtered video unit.
[0011] In an eighth aspect, a method for storing a bitstream of a video comprises: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; generating a bitstream of the video unit based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium.
[0012] This Summary is intended 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 the exemplary embodiments of the present disclosure will become more apparent through the following detailed description with reference to the accompanying drawings. In the exemplary embodiments of the present disclosure, the same reference numerals generally refer to the same components.
[0014] Figure 1 A block diagram showing an example video encoding and decoding system according to some embodiments of the present disclosure is shown;
[0015] Figure 2 A block diagram illustrating a first example video encoder according to some embodiments of the present disclosure is shown;
[0016] Figure 3 A block diagram of an example video decoder according to some embodiments of the present disclosure is shown;
[0017] Figure 4 A schematic diagram showing a group of pictures (GOP)-16 structure;
[0018] Figure 5 A schematic diagram showing the structure of GOP-32 is shown;
[0019] Figure 6 A flowchart showing a method according to some embodiments of the present disclosure is shown;
[0020] Figure 7 A flowchart showing a method according to some embodiments of the present disclosure; and
[0021] Figure 8 A block diagram of a computing device is shown in which various embodiments of the present disclosure may be implemented.
[0022] Throughout the drawings, same or similar reference numbers generally refer to same or similar elements. DETAILED DESCRIPTION
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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. Example Environment
[0028] 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.
[0029] 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.
[0030] 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 code stream. The code stream may include a bit sequence that forms a coded representation of the video data. The code stream may include coded pictures and associated data. The coded picture is a coded representation of the picture. The associated data may include a sequence parameter set, a picture parameter set, 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.
[0031] 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.
[0032] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Codec (HEVC) standard, the Versatile Video Codec (VVC) standard, and other existing and / or future standards.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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 in the following. Figure 2 are shown separately in the example.
[0038] 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.
[0039] The mode selection unit 203 may select one of a plurality of codec modes, intra-coding or inter-coding, for example, based on the error result, and provide the generated intra-coding block or inter-coding block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the coding block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra- and inter-prediction (CIIP) modes, where the prediction is based on an inter-prediction signal and an intra-prediction signal. In the case of inter-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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] The intra prediction unit 206 may perform intra prediction on the current video block. When performing 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.
[0049] 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.
[0050] 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.
[0051] Transform 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.
[0052] After transform 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.
[0053] 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.
[0054] After reconstruction unit 212 reconstructs the video block, a loop filtering operation may be performed to reduce video blocking artifacts in the video block.
[0055] The entropy coding unit 214 may receive data from other functional components of the video encoder 200. When the data is received, the entropy coding unit 214 may perform one or more entropy coding operations to generate entropy coded data and output a code stream including the entropy coded data.
[0056] 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.
[0057] Video decoder 300 may be configured to perform any or all of the techniques of this disclosure. Figure 3 In 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.
[0058] 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.
[0059] The entropy decoding unit 301 can retrieve the encoded code stream. The encoded code stream 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 neighboring 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.
[0060] 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.
[0061] 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.
[0062] 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 it may be a region of a picture.
[0063] The intra prediction unit 303 may use, for example, an intra prediction mode received in a bitstream to form a prediction block from spatially neighboring blocks. The inverse quantization unit 304 inversely 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.
[0064] 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.
[0065] 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 Overview The present disclosure relates to video coding technology. Specifically, it relates to a chroma interpolation filter in video coding. It can be applied to existing video coding standards or standards such as HEVC (universal video coding). It can also be applied to future video coding standards or video codecs. 2 Background 2.1 Interpolation in Motion Compensation Inter-frame prediction can save transmitted information by eliminating temporal redundancy. Motion compensation is an important operation in inter-frame prediction. Motion vector and reference frame index are used to indicate the displacement between the current prediction unit and the reference block. Therefore, each prediction unit can find the reference block based on the motion vector and reference frame index. Since the displacement information can be continuous and the reference pixels are spatially discrete, the displacement information can point to the fractional position between two adjacent integer pixels. Therefore, in order to obtain a prediction block with a fractional motion vector, it is necessary to interpolate the reference block by using an interpolation filter. The number of fractional positions depends on the resolution of the motion vector. If the motion vector resolution is There are then (n-1) fractional positions that need to be interpolated. Each fractional position corresponds to an N-tap interpolation filter containing N filter coefficients. 2.2 Development of interpolation filters The coefficients of the filter are pre-calculated using an interpolation filter. In H.264 / AVC, the interpolation coefficients are calculated using a Lonzo filter. In H.265 / HEVC and H.266 / VVC, the interpolation coefficients are calculated using a DCT-IF filter. In H.265 / HEVC, the resolution of the motion vector is 1 / 4, so the number of fractional positions for the luma component is 3. In H.266 / VVC, the resolution of the motion vector can be up to 1 / 16 of the luma component and 1 / 32 of the chroma component for video in 4:2:0 color format. Therefore, the number of fractional positions for the luma component is 16, and the number of fractional positions for the chroma component is 32. 3 Questions 1. When interpolating a reference block, a long tap filter can obtain more pixel information from the reference block than a short tap filter. An increase in the number of taps has been shown to obtain performance in the luma component. Therefore, in the latest generation of the test model, the number of interpolation taps for the luma component has been increased to 12. However, the interpolation filter for the chroma component is a 4-tap interpolation filter, which cannot be used to obtain high-quality interpolation results. 2. In the reference structure of random access configuration, all time layers use the same interpolation filter. Considering the different quality and interpolation computational complexity of different time layers, allowing different time layers to use interpolation filters with different numbers of taps can achieve a better trade-off. 4. Embodiments of the present disclosure The following detailed embodiments should be considered as examples to explain the general concept. These embodiments should not be interpreted in a narrow manner. In addition, these embodiments can be combined in any way. In order to solve the above problems, this paper proposes the following methods: 1. Chroma interpolation filtering by at least one filter having more than four taps (called long tap chroma interpolation filter, LTCIF) is proposed on at least one chroma component. a) In one example, by interpolating a chroma reference block using a long-tap chroma interpolation filter in motion compensation, a chroma prediction block may be obtained. b) In one example, by interpolating chroma reference samples using a long-tap chroma interpolation filter in intra prediction, a chroma prediction block may be obtained. c) The long tap chroma interpolation filter comprises a set of filter coefficients that are pre-computed and / or signaled online. 2. For one example, LTCIF can be calculated using a discrete cosine transform interpolation filter (DCT-IF). The filter coefficients are calculated using the following equation: 1≤k≤Size-1, Size=(M min +M max -1), Among them, {p l} represents the value p at integer position l that is used for interpolation at fractional position α α A set of sample values, Filter l (α) represents the filter coefficient. M min and M max Indicates the range of neighboring integer position samples involved in the interpolation process, Size is the number of reference samples used in the interpolation filter. N is the smoothing window size, which is not necessarily an integer. 3. For one example, LTCIF can be calculated using a Lanzo interpolation filter (DCT-IF). The filter coefficients are calculated using the following equation: where {p l} represents the interpolation value p at the integer position l used for the interpolation value p at the fractional position α α Size is the number of reference samples used in the interpolation filter. 4. In one example, the use of chroma interpolation filters may depend on the temporal layer. a) For example, a long tap chroma interpolation filter is used for layers with a temporal marker less than or equal to k. And layers with a temporal marker greater than k may use a 4 tap chroma interpolation filter. b) Examples of GOP-16 and GOP-32 time stamps are shown in Figure 4 and Figure 5 is shown in , where k is set to 4. c) For example, chroma interpolation filters with different numbers of taps may be used for different temporal layers. d) For example, chroma interpolation filters with different filter taps may be used for different temporal layers. 5. In one example, the use of chroma interpolation filters may depend on codec information. a) For example, the codec information may include a QP value. i. For example, chroma interpolation filters with different numbers of taps may be used for different QPs. ii. For example, chroma interpolation filters with different filter taps may be used for different QPs. b) For example, the codec information may include W and / or H, which indicates the width and height of the current block or current tile or current picture. i. For example, chroma interpolation filters with different numbers of taps can be used for different W or H or W*H or max(W,H) or min(W,H). ii. For example, chroma interpolation filters with different filter taps can be used for different W or H or W*H or max(W,H) or min(W,H). c) For example, the codec information may include the accuracy of the MV or MVD. i. For example, chroma interpolation filters with different numbers of taps may be used for different precisions of MV or MVD. ii. For example, chroma interpolation filters with different filter taps may be used for different precisions of MV or MVD. d) For example, the codec information may include a codec mode. i. For example, chroma interpolation filters with different numbers of taps may be used for different intra prediction modes. ii. For example, chroma interpolation filters with different filter taps can be used for different intra prediction modes. iii. For example, chroma interpolation filters with different numbers of taps can be used for different inter-frame modes, such as Merge / Affine / AMVP / GMVD / BCW / CIIP / etc. iv. For example, chroma interpolation filters with different filter taps can be used for different inter-frame modes, such as merge / affine / AMVP / GMVD / BCW / CIIP / etc. v. For example, chroma interpolation filters with different numbers of taps can be used for different inter-frame prediction directions, such as unidirectional prediction or bidirectional prediction. vi. For example, chroma interpolation filters with different filter taps can be used for different inter-frame prediction directions, such as unidirectional prediction or bidirectional prediction. vii. For example, depending on the resolution of the reference picture, chroma interpolation filters with different numbers of taps may be used. viii. For example, depending on the resolution of the reference picture, chroma interpolation filters with different filter taps may be used. 6. In one example, the use of chroma interpolation filters may depend on the color component (such as Cb or Cr) or the color format (such as RGB or YUV or 4:2 or 4:2 or 4:4:4). a) For example, chroma interpolation filters with different numbers of taps may be used for different color components or color formats. b) For example, chroma interpolation filters with different filter taps may be used for different color components or color formats. 7. In one example, the filtering result of LTCIF can be clipped. 8. In one example, the use of chroma interpolation filters can be signaled from the encoder to the decoder. a) For example, at least one index or flag indicating which chroma interpolation filter to use may be signaled from the encoder to the decoder. i. For example, a flag may be transmitted via a signal to indicate whether to use an LTCIF or 4-tap filter. b) At least one chroma interpolation filter coefficient is derived, for example based on information signaled from the encoder to the decoder. c) Signaling can be presented in SPS / PPS / APS / picture header / slice header / CTU / CU / PU or any other unit at sequence level / picture level / slice level / block level. 5. Embodiment The filter coefficients of LTCIF can be the following coefficients. d) When the number of taps is 8, the coefficients are as shown in Table 1. Table 1 e) When the number of taps is 12, the coefficients are shown in Table 2. Table 2 f) When the number of taps is 16, the coefficients are shown in Table 3. Table 3 Scaling the above coefficients by 256, the chrominance interpolation is calculated as follows. where {p l} represents the value p at integer position l that is used for interpolation at fractional position α α Size is the number of reference samples used in the interpolation filter. l is the filter coefficient in the above table.
[0066] Embodiments of the present disclosure relate to chroma interpolation filters.
[0067] As used herein, the terms "video unit" or "codec unit" or "block" used herein may refer to one or more of the following: a color component, a sub-picture, a slice, a tile, a codec tree unit (CTU), a CTU row, a group of CTUs, 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), a block, a sub-block of a block, a sub-region within a block, or a region including more than one sample or pixel.
[0068] Figure 6 A flow chart of a method 600 for video processing according to some embodiments of the present disclosure is shown. The method 600 may be implemented during conversion between video units and bitstreams of video units.
[0069] At block 610, during conversion between a video unit of a video and a bitstream of the video, a chroma interpolation filter for the video unit is determined. The number of taps of the chroma interpolation filter is greater than a predetermined number. For example, the predetermined number may be 4. A chroma interpolation filter having more than a predetermined number of taps may be referred to as a long tap chroma interpolation filter (LTCIF).
[0070] At block 620, a chroma prediction block is obtained by applying the chroma interpolation filter to the chroma component of the video unit. In some embodiments, the chroma prediction block may be obtained by interpolating a chroma reference block using a chroma interpolation filter in motion compensation. Alternatively, the chroma prediction block may be obtained by interpolating a chroma reference sample using a chroma interpolation filter in intra prediction. In some embodiments, the filtering result of the chroma interpolation filter may be clipped.
[0071] At block 630, the conversion is performed based on the chrominance prediction block. In this way, a high-quality interpolation result can be obtained. Compared with conventional schemes, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance and flexibility.
[0072] In some embodiments, a set of filter coefficients of the chroma interpolation filter can be predetermined. Alternatively, a set of filter coefficients of the chroma interpolation filter can be indicated online. In other words, the long tap chroma interpolation filter includes a set of filter coefficients that are pre-calculated / or transmitted online through a signal.
[0073] In some embodiments, the chroma interpolation filter can be determined using a discrete cosine transform interpolation filter (DCT-IF). For example, a set of filter coefficients for the chroma interpolation filter can be determined using the following equation: 1≤k≤Size-1, Size=(M min +M max -1), Among them, {p l} represents the value p at integer position l that is used for interpolation at fractional position α α A set of sample values, Filter l (α) represents a set of filter coefficients, M min and M max represents the range of neighboring integer position samples involved in the interpolation process, Size represents the number of reference samples used in the chroma interpolation filter, and N represents the smoothing window size.
[0074] In some other embodiments, the chroma interpolation filter may be determined using a Lonzo interpolation filter. For example, a set of filter coefficients for the chroma interpolation filter may be determined using the following equation: where {p l} represents the interpolation value p at the integer position l used for the interpolation value p at the fractional position α α A set of sample values, Filter n (x) represents a set of filter coefficients, and Size represents the number of reference samples used in the chroma interpolation filter.
[0075] According to a further 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 a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; and generating a bitstream of the video unit based on the chroma prediction block.
[0076] According to a further embodiment of the present disclosure, a method for storing a bitstream of a video is provided. The method includes: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; generating a bitstream of the video unit based on the chroma prediction block; and storing the bitstream in a non-transitory computer-readable recording medium.
[0077] Figure 7 A flow chart of a method 700 for video processing according to some embodiments of the present disclosure is shown. The method 700 may be implemented during conversion between video units and bitstreams of video units.
[0078] At block 710, during conversion between a video unit of a video and a bitstream of the video unit, a first chroma interpolation filter and a second chroma interpolation filter for the video unit are determined. In some embodiments, the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps. Alternatively, the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap.
[0079] At block 720, at least one of the first chroma interpolation filter or the second chroma interpolation filter is applied to the video unit. In some embodiments, a result of at least one of the first chroma interpolation filter or the second chroma interpolation filter is clipped.
[0080] At block 730, the conversion is performed based on the prediction block. In this way, a better trade-off between quality and interpolation computational complexity can be achieved. Compared with conventional schemes, some embodiments of the present disclosure can advantageously improve codec efficiency, codec gain, codec performance and flexibility.
[0081] In some embodiments, the use of at least one of the first chrominance interpolation or the second chrominance interpolation depends on the temporal layer. For example, if the first chrominance interpolation filter includes a first number of taps, the first number is greater than a predetermined number, and the second chrominance interpolation filter includes a second number of taps, the second number is not greater than a predetermined number, the first chrominance interpolation filter is used for a first layer having a first time identifier, the first time identifier is not greater than a predetermined value, and the second chrominance interpolation filter is used for a second layer having a second time identifier, the second time identifier is greater than a predetermined value. For example, a long tap chrominance interpolation filter is used for a layer having a time identifier, the time identifier is less than or equal to k (i.e., a predetermined value). And a layer having a time identifier greater than k can use a 4-tap chrominance interpolation filter. In some embodiments, the predetermined number is 4, and the predetermined value is 4. Examples of time identifiers for GOP-16 and GOP-32 are respectively shown in. Figure 4 and Figure 5 is shown in , where k is set to 4.
[0082] In some embodiments, chroma interpolation filters with different numbers of taps can be used for different temporal layers. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first temporal layer and the second chroma interpolation filter is used for a second temporal layer.
[0083] In some embodiments, chroma interpolation filters with different filter taps can be used for different temporal layers. For example, if a first chroma interpolation filter includes a filter tap and a second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first temporal layer and the second chroma interpolation filter is used for a second temporal layer.
[0084] In some embodiments, the use of at least one of the first chroma interpolation filter or the second chroma interpolation filter may depend on the codec information. In some embodiments, the codec information includes more quantization parameter (QP) values. In some embodiments, chroma interpolation filters with different numbers of taps can be used for different QPs. For example, if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value. In some embodiments, chroma interpolation filters with different filter taps can be used for different QPs. For example, if the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value.
[0085] In some embodiments, the codec information includes the width and height of at least one of the following: the current block, the current tile, or the current picture. In some embodiments, chroma interpolation filters with different numbers of taps can be used for different W or H or W*H or max(W, H) or min(W, H). For example, if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for one of the following: the first width, the first height, the first max(W, H) or the first min(W, H), and the second chroma interpolation filter is used for one of the following: the second width, the second height, the second max(W, H) or the second min(W, H), and wherein W represents width and H represents height. In some other embodiments, chroma interpolation filters with different filter taps can be used for different W or H or W*H or max(W, H) or min(W, H). For example, if the first chrominance interpolation filter includes a first filter tap and the second chrominance interpolation filter includes a second filter tap, the first chrominance interpolation filter is used for one of: a first width, a first height, a first max(W, H), or a first min(W, H), and the second chrominance interpolation filter is used for one of: a second width, a second height, a second max(W, H), or a second min(W, H), and wherein W represents width and H represents height.
[0086] In some embodiments, the codec information includes the precision of a motion vector (MV) or a motion vector difference (MVD). In some embodiments, chroma interpolation filters with different numbers of taps can be used for different precisions of the MV or MVD. For example, if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first MV or MVD, and the second chroma interpolation filter is used for a second MV or MVD. In some other embodiments, chroma interpolation filters with different filter taps can be used for different precisions of the MV or MVD. For example, if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first precision of the MV or MVD, and the second chroma interpolation filter is used for a second precision of the MV or MVD.
[0087] In some embodiments, the codec information includes a codec mode. In some embodiments, chroma interpolation filters with different numbers of taps can be used for different intra-frame prediction modes. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
[0088] In some embodiments, chroma interpolation filters with different filter taps can be used for different intra-frame prediction modes. For example, if a first chroma interpolation filter includes a first filter tap and a second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
[0089] In some embodiments, chroma interpolation filters with different numbers of taps may be used for different inter-frame modes, such as: merge, affine, advanced motion vector prediction (AMVP), geometric partitioning with motion vector difference (GMVD), bidirectional prediction with CU level weights (BCW), combined inter-frame and intra-frame prediction (CIIP), etc. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first inter-frame prediction mode, and the second chroma interpolation filter is used for a second inter-frame prediction mode.
[0090] In some embodiments, chroma interpolation filters with different filter taps may be used for different inter-frame modes, such as: merge, affine, AMVP, GMVD, BCW, CIIP, etc. For example, if a first chroma interpolation filter includes a first filter tap and a second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction mode and the second chroma interpolation filter is used for a second inter-frame prediction mode.
[0091] In some embodiments, chroma interpolation filters with different numbers of taps can be used for different inter-frame prediction directions, such as unidirectional prediction or bidirectional prediction. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first inter-frame prediction direction and the second chroma interpolation filter is used for a second inter-frame prediction direction.
[0092] In some embodiments, chroma interpolation filters with different filter taps can be used for different inter-frame prediction directions, such as unidirectional prediction or bidirectional prediction. For example, if a first chroma interpolation filter includes a first filter tap and a second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction direction and the second chroma interpolation filter is used for a second inter-frame prediction direction.
[0093] In some embodiments, chroma interpolation filters with different numbers of taps may be used depending on the resolution of the reference picture. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on the resolution of the reference picture.
[0094] In some embodiments, chroma interpolation filters with different filter taps may be used depending on the resolution of the reference picture. For example, if a first chroma interpolation filter includes a first filter tap and a second chroma interpolation filter includes a second filter tap, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on the resolution of the reference picture.
[0095] In some embodiments, use of at least one of the first chroma interpolation filter or the second chroma interpolation filter depends on a color component or a color format. In one example, use of the chroma interpolation filter may depend on a color component (such as Cb or Cr) or a color format (such as RGB or YUV or 4:2 or 4:2 or 4:4:4).
[0096] In some embodiments, chroma interpolation filters with different numbers of taps can be used for different color components or color formats. For example, if a first chroma interpolation filter includes a first number of taps and a second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first color component or a first color format, and the second chroma interpolation filter is used for a second color component or a second color format.
[0097] In some embodiments, chroma interpolation filters with different filter taps can be used for different color components or color formats. For example, if a first chroma interpolation filter includes a first filter tap and a second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first color component or a first color format, and the second chroma interpolation filter is used for a second color component or a second color format.
[0098] In some embodiments, the use of chroma interpolation filters can be indicated from the encoder to the decoder. For example, at least one index or flag indicating the chroma interpolation filter to be used can be indicated from the encoder to the decoder. In some embodiments, at least one index or flag indicates whether the first chroma interpolation filter or the second chroma interpolation filter can be used.
[0099] In some embodiments, at least one chroma interpolation filter coefficient may be derived based on information indicated from the encoder to the decoder. In some embodiments, the use is indicated in one of the following: sequence level, picture level, slice level, or block level. In some embodiments, the use is indicated in one of the following: picture header, sequence parameter set (SPS), picture parameter set (PPS), adaptation parameter set (APS), slice header, codec tree unit (CTU), codec unit (CU) or prediction unit (PU).
[0100] According to a further 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 a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; and generating a bitstream of the video unit based on the filtered video unit.
[0101] According to a further embodiment of the present disclosure, a method for storing a bitstream of a video is provided. The method includes: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; generating a bitstream of the video unit based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium.
[0102] Implementations of the present disclosure may be described in view of the following clauses, and features of the following clauses may be combined in any reasonable way.
[0103] Item 1. A video processing method, comprising: during conversion between a video unit of a video and a bitstream of the video, determining a chroma interpolation filter for the video unit, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; and performing the conversion based on the chroma prediction block.
[0104] Clause 2. The method of clause 1, wherein the predetermined number is 4, or wherein the chroma interpolation filter is a long tap chroma interpolation filter.
[0105] Clause 3. The method according to clause 1, wherein obtaining the chroma prediction block comprises: obtaining the chroma prediction block by interpolating a chroma reference block using the chroma interpolation filter in motion compensation.
[0106] Clause 4. The method of clause 1, wherein obtaining the chroma prediction block comprises: obtaining the chroma prediction block by interpolating chroma reference samples using the chroma interpolation filter in intra prediction.
[0107] Clause 5. The method of clause 1, wherein a set of filter coefficients of the chroma interpolation filter are predetermined, or wherein the set of filter coefficients of the chroma interpolation filter are indicated online.
[0108] Clause 6. The method of clause 1, wherein determining the chroma interpolation filter comprises determining the chroma interpolation filter using a discrete cosine transform interpolation filter (DCT-IF).
[0109] Clause 7. The method of clause 6, wherein a set of filter coefficients of the chroma interpolation filter is determined using the following equation: Among them, {p l} represents the value p at integer position l that is used for interpolation at fractional position α α A set of sample values, Filter l (α) represents the set of filter coefficients, M min and M max represents the range of neighboring integer position samples involved in the interpolation process, Size represents the number of reference samples used in the chroma interpolation filter, and N represents the smoothing window size.
[0110] Clause 8. The method of clause 1, wherein determining the chroma interpolation filter comprises determining the chroma interpolation filter using a Lonzo interpolation filter.
[0111] Clause 9. The method of clause 8, wherein a set of filter coefficients of the chroma interpolation filter is determined using the following equation: where {p l} represents the interpolation value p at the integer position l used for the interpolation value p at the fractional position α α A set of sample values, Filter n (x) represents the set of filter coefficients, and Size represents the number of reference samples used in the chroma interpolation filter.
[0112] Clause 10. The method of clause 1, wherein a filtered result of the chroma interpolation filter is clipped.
[0113] Item 11. A video processing method, comprising: during conversion between a video unit of a video and a bitstream of the video unit, determining a first chroma interpolation filter and a second chroma interpolation filter for the video unit; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; and performing the conversion based on the filtered video unit.
[0114] Clause 12. The method of clause 11, wherein use of at least one of the first chroma interpolation or the second chroma interpolation depends on a temporal layer.
[0115] Clause 13. A method according to Clause 12, wherein if the first chrominance interpolation filter includes a first number of taps, the first number is greater than a predetermined number, and the second chrominance interpolation filter includes a second number of taps, the second number is not greater than the predetermined number, the first chrominance interpolation filter is used for a first layer having a first time marker, the first time marker is not greater than a predetermined value, and the second chrominance interpolation filter is used for a second layer having a second time marker, the second time marker is greater than the predetermined value.
[0116] Clause 14. The method of clause 13, wherein the predetermined number is 4 and the predetermined value is 4.
[0117] Clause 15. A method according to Clause 12, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first temporal layer and the second chroma interpolation filter is used for a second temporal layer.
[0118] Clause 16. A method according to clause 12, wherein if the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap, then the first chroma interpolation filter is used for a first temporal layer and the second chroma interpolation filter is used for a second temporal layer.
[0119] Clause 17. The method of clause 11, wherein use of at least one of the first chroma interpolation filter or the second chroma interpolation filter depends on codec information.
[0120] Clause 18. The method of clause 17, wherein the codec information comprises more quantization parameter (QP) values.
[0121] Clause 19. A method according to Clause 18, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value.
[0122] Clause 20. A method according to Clause 18, wherein if the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value.
[0123] Clause 21. The method of clause 17, wherein the codec information comprises a width and a height of at least one of: a current block, a current tile, or a current picture.
[0124] Clause 22. A method according to Clause 21, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for one of: a first width, a first height, a first max(W, H) or a first min(W, H), and the second chrominance interpolation filter is used for one of: a second width, a second height, a second max(W, H) or a second min(W, H), and wherein W represents the width and H represents the height.
[0125] Clause 23. A method according to Clause 21, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for one of: a first width, a first height, a first max(W, H) or a first min(W, H), and the second chroma interpolation filter is used for one of: a second width, a second height, a second max(W, H) or a second min(W, H), and wherein W represents the width and H represents the height.
[0126] Clause 24. The method of clause 17, wherein the codec information comprises precision of a motion vector (MV) or a motion vector difference (MVD).
[0127] Clause 25. A method according to Clause 24, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first MV or MVD, and the second chrominance interpolation filter is used for a second MV or MVD.
[0128] Clause 26. A method according to Clause 24, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first precision of MV or MVD, and the second chroma interpolation filter is used for a second precision of MV or MVD.
[0129] Clause 27. The method of clause 17, wherein the codec information comprises a codec mode.
[0130] Clause 28. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
[0131] Clause 29. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
[0132] Clause 30. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first inter-frame prediction mode and the second chroma interpolation filter is used for a second inter-frame prediction mode.
[0133] Clause 31. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction mode and the second chroma interpolation filter is used for a second inter-frame prediction mode.
[0134] Clause 32. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first inter-frame prediction direction and the second chroma interpolation filter is used for a second inter-frame prediction direction.
[0135] Clause 33. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction direction and the second chroma interpolation filter is used for a second inter-frame prediction direction.
[0136] Clause 34. A method according to Clause 27, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on the resolution of a reference picture.
[0137] Clause 35. The method of clause 27, wherein if the first chroma interpolation filter comprises a first filter tap and the second chroma interpolation filter comprises a second filter tap, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on a resolution of a reference picture.
[0138] Clause 36. The method of clause 11, wherein use of at least one of the first chroma interpolation filter or the second chroma interpolation filter depends on a color component or a color format.
[0139] Clause 37. A method according to Clause 36, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first color component or a first color format, and the second chroma interpolation filter is used for a second color component or a second color format.
[0140] Clause 38. A method according to Clause 36, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first color component or a first color format, and the second chroma interpolation filter is used for a second color component or a second color format.
[0141] Clause 39. The method of clause 11, wherein at least one of the following results in: the first chroma interpolation filter or the second chroma interpolation filter being clipped.
[0142] Clause 40. The method of clause 11, wherein use of the chroma interpolation filter is indicated from the encoder to the decoder.
[0143] Clause 41. The method of clause 40, wherein at least one index or flag indicating a chroma interpolation filter to be used is indicated from the encoder to the decoder.
[0144] Clause 42. The method of clause 41, wherein the at least one index or flag indicates whether the first chroma interpolation filter or the second chroma interpolation filter is used.
[0145] Clause 43. The method of clause 40, wherein at least one chroma interpolation filter coefficient is derived based on information indicated from the encoder to the decoder.
[0146] Clause 44. The method of clause 40, wherein the use is indicated at one of: sequence level, picture level, slice level, or block level.
[0147] Clause 45. A method according to clause 30, wherein the use is indicated in one of the following: a picture header, a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, a codec tree unit (CTU), a codec unit (CU) or a prediction unit (PU).
[0148] Clause 46. The method of any one of clauses 1 to 45, wherein the converting comprises encoding the video unit into the bitstream.
[0149] Clause 47. The method of any one of clauses 1 to 45, wherein the converting comprises decoding the video unit from the bitstream.
[0150] Clause 48. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method of any one of clauses 1 to 47.
[0151] Clause 49. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method of any one of clauses 1 to 47.
[0152] Item 50. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method executed by a video processing device, wherein the method comprises: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; and generating a bitstream of the video unit based on the chroma prediction block.
[0153] Item 51. A method for storing a bitstream of a video, comprising: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; obtaining a chroma prediction block by applying the chroma interpolation filter to the chroma component of the video unit; generating a bitstream of the video unit based on the chroma prediction block; and storing the bitstream in a non-transitory computer-readable recording medium.
[0154] Item 52. A non-transitory computer-readable recording medium storing a bitstream of a video generated by a method executed by a video processing device, wherein the method comprises: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; and generating a bitstream of the video unit based on the filtered video unit.
[0155] Item 53. A method for storing a bitstream of a video, comprising: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; generating a bitstream of the video unit based on the filtered video unit; and storing the bitstream in a non-transitory computer-readable recording medium. Example Device
[0156] Figure 8 A block diagram of a computing device 800 is shown in which various embodiments of the present disclosure may be implemented. The computing device 800 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).
[0157] It should be understood that Figure 8 The computing device 800 shown in FIG. 8 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.
[0158] like Figure 8 As shown, computing device 800 includes a general computing device 800. Computing device 800 may include at least one or more processors or processing units 810, memory 820, storage unit 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860.
[0159] In some embodiments, the computing device 800 can be implemented as any user terminal or server terminal with computing capabilities. 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 800 can support any type of interface to the user (such as a "wearable" circuit device, etc.).
[0160] The processing unit 810 may be a physical processor or a virtual processor and may implement various processes based on a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the computing device 800. The processing unit 810 may also be referred to as a central processing unit (CPU), a microprocessor, a controller, or a microcontroller.
[0161] The computing device 800 typically includes various computer storage media. Such media can be any media accessible by the computing device 800, including but not limited to volatile media and non-volatile media, or removable media and non-removable media. The memory 820 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 830 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 800.
[0162] The computing device 800 may also include additional removable / non-removable storage media, volatile / non-volatile storage media. Figure 8 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.
[0163] The communication unit 840 communicates with another computing device via a communication medium. In addition, the functions of the components in the computing device 800 can be implemented by a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 800 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or other general network nodes.
[0164] The input device 850 may be one or more of various input devices, such as a mouse, keyboard, trackball, voice input device, etc. The output device 860 may be one or more of various output devices, such as a display, a speaker, a printer, etc. With the aid of the communication unit 840, the computing device 800 may also communicate with one or more external devices (not shown), such as storage devices and display devices, and the computing device 800 may also communicate with one or more devices that enable a user to interact with the computing device 800, or any device that enables the computing device 800 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).
[0165] In some embodiments, some or all components of the computing device 800 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 infrastructures may provide services through a shared data center, although they appear as a single access point for users. Therefore, cloud computing architectures may be used to provide 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.
[0166] In an embodiment of the present disclosure, the computing device 800 may be used to implement video encoding / decoding. The memory 820 may include one or more video encoding / decoding modules 825 having one or more program instructions. These modules can be accessed and executed by the processing unit 810 to perform the functions of the various embodiments described herein.
[0167] In an example embodiment of performing video encoding, the input device 850 may receive video data as input 870 to be encoded. The video data may be processed by, for example, the video codec module 825 to generate an encoded bitstream. The encoded bitstream may be provided as output 880 via the output device 860.
[0168] In an example embodiment of performing video decoding, the input device 850 may receive an encoded bitstream as input 870. The encoded bitstream may be processed by, for example, the video codec module 825 to generate decoded video data. The decoded video data may be provided as output 880 via the output device 860.
[0169] 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 method for video processing, include: During conversion between a video unit of a video and a bitstream of the video, determining a chroma interpolation filter for the video unit, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; Obtaining a chroma prediction block by applying the chroma interpolation filter to a chroma component of the video unit; as well as The converting is performed based on the chroma prediction block. The method according to claim 1 , wherein the predetermined number is 4.
3. The method according to claim 1, wherein the chrominance prediction block is obtained include: The chroma prediction block is obtained by interpolating the chroma reference block using the chroma interpolation filter in motion compensation.
4. The method according to claim 1, wherein the chrominance prediction block is obtained include: The chroma prediction block is obtained by interpolating chroma reference samples using the chroma interpolation filter in intra-frame prediction.
5. The method of claim 1, wherein a set of filter coefficients of the chroma interpolation filter is predetermined, or Wherein the set of filter coefficients of the chroma interpolation filter are indicated online.
6. The method according to claim 1, wherein determining the chroma interpolation filter include: The chroma interpolation filter is determined using a discrete cosine transform interpolation filter (DCT-IF).
7. The method of claim 6, wherein a set of filter coefficients of the chroma interpolation filter is determined using the following equation: 1≤k≤Size-1, Size=(M min +M max -1), in, {p l } represents the value p at integer position l that is used for interpolation at fractional position α α A set of sample values, Filter l (α) represents the set of filter coefficients, M min and M max represents the range of neighboring integer position samples involved in the interpolation process, Size represents the number of reference samples used in the chroma interpolation filter, and N represents the smoothing window size.
8. The method according to claim 1, wherein determining the chroma interpolation filter include: The chroma interpolation filter is determined using a Lonzo interpolation filter.
9. The method of claim 8, wherein a set of filter coefficients of the chroma interpolation filter is determined using the following equation: where {p l } represents the interpolation value p at the integer position l used for the interpolation value p at the fractional position α α A set of sample values, Filter n (x) represents the set of filter coefficients, and Size represents the number of reference samples used in the chroma interpolation filter.
10. The method of claim 1, wherein a filtered result of the chroma interpolation filter is clipped.
11. The method of claim 1, wherein the chroma interpolation filter is a long-tap chroma interpolation filter.
12. A method for video processing, include: During conversion between a video unit of a video and a bitstream of the video unit, determining a first chroma interpolation filter and a second chroma interpolation filter for the video unit; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; as well as The conversion is performed based on the filtered video unit.
13. The method of claim 12, wherein use of at least one of the first chroma interpolation or the second chroma interpolation depends on a temporal layer.
14. The method of claim 13, wherein if the first chroma interpolation filter includes a first number of taps, the first number being greater than a predetermined number, and the second chroma interpolation filter includes a second number of taps, the second number being not greater than the predetermined number, The first chrominance interpolation filter is applied to a first layer having a first time stamp, which is not greater than a predetermined value, and the second chrominance interpolation filter is applied to a second layer having a second time stamp, which is greater than the predetermined value. The method of claim 14 , wherein the predetermined number is 4 and the predetermined value is 4.
16. The method of claim 13, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first temporal layer and the second chrominance interpolation filter is used for a second temporal layer.
17. The method of claim 13, wherein if the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap, then the first chroma interpolation filter is used for a first temporal layer and the second chroma interpolation filter is used for a second temporal layer.
18. The method of claim 12, wherein use of at least one of the first chroma interpolation filter or the second chroma interpolation filter depends on codec information.
19. The method of claim 18, wherein the codec information includes more quantization parameter (QP) values.
20. The method of claim 19, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value.
21. The method of claim 19, wherein if the first chroma interpolation filter includes a filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first QP value and the second chroma interpolation filter is used for a second QP value.
22. The method of claim 18, wherein the codec information comprises a width and a height of at least one of: a current block, a current tile, or a current picture.
23. The method of claim 22, wherein if the first chroma interpolation filter comprises a first number of taps and the second chroma interpolation filter comprises a second number of taps, the first chroma interpolation filter is used for one of: a first width, a first height, a first max(W, H), or a first min(W, H), and The second chroma interpolation filter is used for one of: a second width, a second height, a second max(W, H), or a second min(W, H), and Wherein W represents the width, and H represents the height.
24. The method of claim 22, wherein if the first chroma interpolation filter comprises a first filter tap and the second chroma interpolation filter comprises a second filter tap, the first chroma interpolation filter is used for one of: a first width, a first height, a first max(W, H), or a first min(W, H), and The second chroma interpolation filter is used for one of: a second width, a second height, a second max(W, H), or a second min(W, H), and Wherein W represents the width, and H represents the height.
25. The method of claim 18, wherein the codec information comprises precision of a motion vector (MV) or a motion vector difference (MVD).
26. The method of claim 25, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first MV or MVD, and the second chrominance interpolation filter is used for a second MV or MVD.
27. The method of claim 25, wherein if the first chrominance interpolation filter includes a first filter tap and the second chrominance interpolation filter includes a second filter tap, the first chrominance interpolation filter is used for a first precision of MV or MVD, and the second chrominance interpolation filter is used for a second precision of MV or MVD.
28. The method of claim 18, wherein the codec information comprises a codec mode.
29. The method of claim 28, wherein if the first chroma interpolation filter includes a first number of taps and the second chroma interpolation filter includes a second number of taps, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
30. The method of claim 28, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first intra-frame prediction mode and the second chroma interpolation filter is used for a second intra-frame prediction mode.
31. The method of claim 28, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first inter-frame prediction mode and the second chrominance interpolation filter is used for a second inter-frame prediction mode.
32. The method of claim 28, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction mode and the second chroma interpolation filter is used for a second inter-frame prediction mode.
33. The method of claim 28, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first inter-frame prediction direction and the second chrominance interpolation filter is used for a second inter-frame prediction direction.
34. The method of claim 28, wherein if the first chroma interpolation filter includes a first filter tap and the second chroma interpolation filter includes a second filter tap, the first chroma interpolation filter is used for a first inter-frame prediction direction and the second chroma interpolation filter is used for a second inter-frame prediction direction.
35. The method of claim 28, wherein if the first chroma interpolation filter comprises a first number of taps and the second chroma interpolation filter comprises a second number of taps, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on a resolution of a reference picture.
36. The method of claim 28, wherein if the first chroma interpolation filter comprises a first filter tap and the second chroma interpolation filter comprises a second filter tap, whether to apply the first chroma interpolation filter or the second chroma interpolation filter is based on a resolution of a reference picture.
37. The method of claim 12, wherein use of at least one of the first chroma interpolation filter or the second chroma interpolation filter depends on a color component or a color format.
38. A method according to claim 27, wherein if the first chrominance interpolation filter includes a first number of taps and the second chrominance interpolation filter includes a second number of taps, the first chrominance interpolation filter is used for a first color component or a first color format, and the second chrominance interpolation filter is used for a second color component or a second color format.
39. A method according to claim 37, wherein if the first chrominance interpolation filter includes a first filter tap and the second chrominance interpolation filter includes a second filter tap, the first chrominance interpolation filter is used for a first color component or a first color format, and the second chrominance interpolation filter is used for a second color component or a second color format.
40. The method of claim 12, wherein at least one of the following results in: the first chroma interpolation filter or the second chroma interpolation filter being clipped.
41. The method of claim 12, wherein use of chroma interpolation filters is indicated from an encoder to a decoder.
42. The method of claim 41, wherein at least one index or flag indicating a chroma interpolation filter to be used is indicated from the encoder to the decoder.
43. The method of claim 42, wherein the at least one index or flag indicates whether the first chroma interpolation filter or the second chroma interpolation filter is used.
44. The method of claim 41, wherein at least one chroma interpolation filter coefficient is derived based on information indicated from the encoder to the decoder.
45. The method of claim 41, wherein the use is indicated in one of: Sequence level, Picture level, Stripe level, or Block level.
46. The method of claim 41, wherein the use is indicated in one of: Picture header, Sequence Parameter Set (SPS), Picture Parameter Set (PPS), Adaptive Parameter Set (APS), Strip head, Codec Tree Unit (CTU), Codec Unit (CU) or Prediction Unit (PU).
47. The method of any one of claims 1 to 46, wherein the converting comprises encoding the video unit into the bitstream.
48. The method of any one of claims 1 to 46, wherein the converting comprises decoding the video unit from the bitstream.
49. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method of any one of claims 1 to 48.
50. A non-transitory computer readable storage medium storing instructions, the instructions causing a processor to execute the method according to any one of claims 1 to 48.
51. A non-transitory computer-readable recording medium storing a bit stream of a video generated by a method executed by a video processing device, wherein the method include: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; Obtaining a chroma prediction block by applying the chroma interpolation filter to a chroma component of the video unit; as well as A bitstream for the video unit is generated based on the chroma prediction block.
52. A method for storing a bit stream of a video, include: determining a chroma interpolation filter for a video unit of the video, wherein the number of taps of the chroma interpolation filter is greater than a predetermined number; Obtaining a chroma prediction block by applying the chroma interpolation filter to a chroma component of the video unit; generating a bitstream of the video unit based on the chroma prediction block; as well as The bit stream is stored in a non-transitory computer-readable recording medium.
53. A non-transitory computer-readable recording medium storing a bit stream of a video generated by a method executed by a video processing device, wherein the method include: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; as well as A bitstream for the video unit is generated based on the filtered video unit.
54. A method for storing a bit stream of a video, include: determining a first chroma interpolation filter and a second chroma interpolation filter for a video unit of the video; applying at least one of the first chroma interpolation filter or the second chroma interpolation filter to the video unit; generating a bitstream of the video unit based on the filtered video unit; as well as The bit stream is stored in a non-transitory computer-readable recording medium.
