Search

CN-122027807-A - Method and system for using adaptive loop filter

CN122027807ACN 122027807 ACN122027807 ACN 122027807ACN-122027807-A

Abstract

The present disclosure provides a video data processing method. The method includes receiving a bitstream, decoding a first index from the bitstream, determining a maximum number of Adaptive Loop Filters (ALFs) for components of a picture based on the first index, and processing pixels in the picture using the ALFs.

Inventors

  • CHEN JIE
  • Liao Ruling
  • LI XINWEI
  • YE YAN

Assignees

  • 阿里巴巴集团控股有限公司

Dates

Publication Date
20260512
Application Date
20211129
Priority Date
20211126

Claims (6)

  1. 1. A method of encoding a video sequence into a bitstream, the method comprising: receiving a video sequence; Encoding one or more pictures of the video sequence, wherein encoding comprises: determining the region index of the sample according to the coordinate position and the region sequence index of the sample in the picture; performing filtering operation on the picture according to the region index; Wherein, according to the coordinate position and the region sequence index of the sample in the picture, determining the region index of the sample comprises: When the region sequence is the first condition, the region index is determined by adding a first vertical index offset and a first horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinates of the samples and a first vertical interval number, and the first horizontal index is obtained by calculating based on the horizontal coordinates of the samples and a horizontal interval number; When the region sequence is in a second condition, the region index is determined by adding a first vertical index offset and a second horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinate and the vertical interval number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, the horizontal interval number and the horizontal offset number of the sample; When the region sequence is in a third condition, the region index is determined by adding a second vertical index offset and a second horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is obtained by calculating based on the vertical coordinate, a vertical interval number and a vertical offset number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, a horizontal interval number and a horizontal offset number of the sample; When the region sequence is in the fourth condition, the region index is determined by adding a second vertical index offset and a first horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is calculated based on the vertical coordinates of the sample, a vertical interval number and a vertical offset number, and the first horizontal index is calculated based on the horizontal coordinates of the sample and a horizontal interval number.
  2. 2. The method of claim 1, wherein, The region indexes are allocated in raster scan order.
  3. 3. A method of decoding a bitstream to output one or more pictures of a video stream, the method comprising: receiving a bit stream, and Decoding one or more pictures using encoded information of the bitstream, Wherein the decoding comprises: determining the region index of the sample according to the coordinate position and the region sequence index of the sample in the picture; performing filtering operation on the picture according to the region index; Wherein, according to the coordinate position and the region sequence index of the sample in the picture, determining the region index of the sample comprises: When the region sequence is the first condition, the region index is determined by adding a first vertical index offset and a first horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinates of the samples and a first vertical interval number, and the first horizontal index is obtained by calculating based on the horizontal coordinates of the samples and a horizontal interval number; When the region sequence is in a second condition, the region index is determined by adding a first vertical index offset and a second horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinate and the vertical interval number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, the horizontal interval number and the horizontal offset number of the sample; When the region sequence is in a third condition, the region index is determined by adding a second vertical index offset and a second horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is obtained by calculating based on the vertical coordinate, a vertical interval number and a vertical offset number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, a horizontal interval number and a horizontal offset number of the sample; When the region sequence is in the fourth condition, the region index is determined by adding a second vertical index offset and a first horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is calculated based on the vertical coordinates of the sample, a vertical interval number and a vertical offset number, and the first horizontal index is calculated based on the horizontal coordinates of the sample and a horizontal interval number.
  4. 4. A method according to claim 3, further comprising: the region indexes are allocated in raster scan order.
  5. 5. A non-transitory computer readable storage medium storing a set of instructions and a bitstream, the set of instructions being executable by a system To cause the system to perform a method to generate the bitstream, the method comprising The method comprises the following steps: receiving a video sequence; Encoding one or more pictures of the video sequence, wherein encoding comprises: determining the region index of the sample according to the coordinate position and the region sequence index of the sample in the picture; performing filtering operation on the picture according to the region index; Wherein, according to the coordinate position and the region sequence index of the sample in the picture, determining the region index of the sample comprises: When the region sequence is the first condition, the region index is determined by adding a first vertical index offset and a first horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinates of the samples and a first vertical interval number, and the first horizontal index is obtained by calculating based on the horizontal coordinates of the samples and a horizontal interval number; When the region sequence is in a second condition, the region index is determined by adding a first vertical index offset and a second horizontal index, wherein the first vertical index offset is obtained by shifting the first vertical index left by a plurality of bits, the first vertical index is obtained by calculating based on the vertical coordinate and the vertical interval number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, the horizontal interval number and the horizontal offset number of the sample; When the region sequence is in a third condition, the region index is determined by adding a second vertical index offset and a second horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is obtained by calculating based on the vertical coordinate, a vertical interval number and a vertical offset number of the sample, and the second horizontal index is obtained by calculating based on the horizontal coordinate, a horizontal interval number and a horizontal offset number of the sample; When the region sequence is in the fourth condition, the region index is determined by adding a second vertical index offset and a first horizontal index, wherein the second vertical index offset is obtained by shifting the second vertical index left by a plurality of bits, the second vertical index is calculated based on the vertical coordinates of the sample, a vertical interval number and a vertical offset number, and the first horizontal index is calculated based on the horizontal coordinates of the sample and a horizontal interval number.
  6. 6. The non-transitory computer-readable storage medium of claim 5, wherein the operations further comprise Includes assigning region indexes in raster scan order.

Description

Method and system for using adaptive loop filter The application relates to a Chinese patent application with the application date of 2021, 11, 29 and 2021800700670, and the name of 'a method for using an adaptive loop filter and a system thereof'. Technical Field The present disclosure relates to the field of video processing, and in particular, to systems and methods for using Adaptive Loop Filters (ALFs) in video encoding and decoding. Background Video is a set of still pictures (or "frames") that capture visual information. To reduce storage memory and transmission bandwidth, video may be compressed prior to storage or transmission and decompressed prior to display. The compression process is often referred to as encoding and the decompression process is often referred to as decoding. There are various video coding formats using standardized video coding techniques, most commonly based on prediction, transformation, quantization, entropy coding and loop filtering. Video Coding standards specifying a particular Video Coding format, such as the high efficiency Video Coding (HIGH EFFICIENCY Video Coding, HEVC/h.265) standard, the general Video Coding (VERSATILE VIDEO CODING, VVC/h.266) standard, and the audio Video Coding standard (Audio Video Coding Standard, AVS) standard, were developed by a standardization organization. As more and more advanced video coding techniques are adopted by video standards, the coding efficiency of new video coding standards is also increasing. Disclosure of Invention Embodiments of the present disclosure provide a video data processing method that includes receiving a bitstream, decoding a first index from the bitstream, determining a maximum number of Adaptive Loop Filters (ALFs) for components of a picture based on the first index, and processing pixels in the picture with the ALFs. Embodiments of the present disclosure provide an apparatus for performing video data processing that includes a memory configured to store instructions and one or more processors configured to execute the instructions to cause the apparatus to perform receiving a bitstream, decoding a first index from the bitstream, determining a maximum number of Adaptive Loop Filters (ALFs) for components of a picture based on the first index, and processing pixels in the picture with the ALFs. Embodiments of the present disclosure provide a non-transitory computer readable storage medium storing a set of instructions executable by one or more processors of an apparatus to cause the apparatus to initiate a video data processing method. The method includes receiving a bitstream, decoding a first index from the bitstream, determining a maximum number of Adaptive Loop Filters (ALFs) for components of a picture based on the first index, and processing pixels in the picture using the ALFs. Embodiments of the present disclosure provide a non-transitory computer-readable medium storing a bitstream that includes a first index associated with video data, the first index encoded based on one or more of a plurality of contexts used in binary entropy encoding and indicating a maximum number of Adaptive Loop Filters (ALFs) for components of a picture. Drawings Embodiments and corresponding aspects of the disclosure are shown in the following detailed description and the drawings. The various features shown in the drawings are not drawn to scale. Fig. 1 is a schematic diagram of the structure of an example video sequence shown in embodiment 1 of the present disclosure. Fig. 2A is a schematic diagram of an exemplary encoding process of the hybrid video encoding system shown in embodiment 1 of the present disclosure. Fig. 2B is a schematic diagram of another exemplary encoding process of the hybrid video encoding system shown in embodiment 1 of the present disclosure. Fig. 3A is a schematic diagram of an exemplary decoding process of the hybrid video coding system shown in embodiment 1 of the present disclosure. Fig. 3B is a schematic diagram of another exemplary decoding process of the hybrid video coding system shown in embodiment 1 of the present disclosure. Fig. 4 is a block diagram of an exemplary apparatus for encoding or decoding video shown in embodiment 1 of the present disclosure. Fig. 5A is a schematic diagram illustrating an exemplary division of a picture into 16 Adaptive Loop Filter (ALF) regions according to embodiment 1 of the present disclosure. Fig. 5B is a schematic diagram of a region sequence and a region sequence number for each of 16 ALF regions shown in embodiment 1 of the present disclosure. Fig. 5C is a schematic diagram of an exemplary merge area shown in accordance with embodiment 1 of the present disclosure. Fig. 6A is a schematic diagram illustrating dividing a picture into more than 16 ALF regions according to embodiment 1 of the present disclosure. Fig. 6B is a schematic diagram illustrating dividing a picture into more than 16 ALF regions according to embodiment 1 of the present disclosure. F