Methods, apparatus and computer-readable storage media for decoding or encoding video data
By bypassing signaling notifications in video coding and decoding technology and directly using fixed filters for adaptive loop filtering, the problem of low signaling notification efficiency in the existing technology is solved, and the bandwidth and processing efficiency of video coding and decoding are improved.
Patent Information
- Application Number
- CN202080029524.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-04-20
- Filing Date
- 2020-04-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-04-21
AI Technical Summary
In existing video coding and decoding technology, signaling is inefficient when used to determine the use of adaptive loop filters, resulting in a waste of bandwidth and computing resources.
By determining in the video encoding and decoding structure that the number of adaptive loop filtering parameter sets referenced by the current encoding and decoding structure is equal to zero, the bypass signaling is notified and the fixed filter is directly used for adaptive loop filtering to avoid unnecessary signaling. notify.
It improves the bandwidth efficiency and processing efficiency of video codec technology, reduces operations and bandwidth consumption, and improves the performance of video encoders or decoders.
Smart Images

Figure CN113728650B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Application No. 16 / 853,232, filed on April 20, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 837,640, filed on April 23, 2019, each of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to video encoding and video decoding. Background Art
[0004] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video codec technologies, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 Part 10, Advanced Video Codec (AVC), ITU-T H.265 / High Efficiency Video Codec (HEVC), and extensions of these standards. By implementing such video codec technologies, video devices can more efficiently send, receive, encode, decode and / or store digital video information.
[0005] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or eliminate redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as codec tree units (CTUs), codec units (CUs), and / or codec nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial predictions of reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial predictions of reference samples in neighboring blocks in the same picture or temporal predictions of reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0006] In general, the present disclosure describes techniques for adaptive loop filter (ALF) set index signaling. The example techniques may be used for currently developing video standards such as the Versatile Video Codec (VVC) standard, existing video codec standards such as the High Efficiency Video Codec (HEVC) standard, or other future video codec standards. The example techniques are not necessarily limited to a particular video codec standard and may be generally applicable to video codec techniques that utilize adaptive loop filtering.
[0007] In adaptive loop filtering, a block is filtered using the filter coefficients of a filter. The filter may have two sources: an adaptive filter and a fixed (e.g., predefined) filter. The adaptive filter may be signaled in one or more parameter sets (e.g., an adaptive parameter set (APS)). In some examples, the video encoder may signal information indicating multiple parameter sets that may be referenced for accessing the adaptive filter, and may signal information indicating whether an adaptive filter or a fixed filter is to be used. This signaling technique may be inefficient. For example, if the number of parameter sets available for reference to access the adaptive filter is zero, only fixed filters can be used for adaptive loop filtering. However, some techniques may still unnecessarily signal information on whether an adaptive filter or a fixed filter is to be used.
[0008] This disclosure describes example techniques in which a video encoder may bypass signaling indicating whether an adaptive filter or a fixed filter is to be used if the number of parameter sets for a current codec structure (e.g., a current slice, picture, slice, slice group, or brick) of video data is equal to zero, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled. In such examples, a video decoder may determine that a fixed filter is to be used for adaptive loop filtering without receiving a syntax element indicating whether a fixed filter in a set of fixed filters is to be used for adaptive loop filtering.
[0009] In this manner, the example techniques described in the present disclosure provide practical applications for determining which filters to use for adaptive loop filtering that improve bandwidth efficiency. For example, the present disclosure describes example techniques that reduce the amount of signaling required by bypassing the signaling of information indicating whether to use an adaptive filter or a fixed filter when it can be inferred that a fixed filter will be used for adaptive loop filtering, while not affecting video quality. By reducing the amount of signaling, one or more example techniques can improve efficiency and performance in video codec techniques.
[0010] In one example, the present disclosure describes a method for decoding video data, the method comprising: determining that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of the video data is equal to zero, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure includes one of a current slice, a picture, a slice, a slice group, or a brick; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, determining which fixed filter from a fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; and performing adaptive loop filtering on the current block based on the fixed filters from the fixed filter set.
[0011] In one example, the present disclosure describes a device for decoding video data, the device comprising a memory configured to store parameter sets, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, and a processing circuit system. The processing circuit system is configured to: determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of the video data is equal to zero, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, determine which fixed filter from a fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering; and perform adaptive loop filtering on the current block based on the fixed filter from the fixed filter set.
[0012] In one example, the present disclosure describes a device for decoding video data, the device including a component for determining that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of the video data is equal to zero, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure includes one of a current slice, a picture, a slice, a slice group, or a brick; a component for determining which fixed filter from a fixed filter set to use for adaptive loop filtering based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, without receiving a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; and a component for performing adaptive loop filtering on the current block based on the fixed filter from the fixed filter set.
[0013] In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to: determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure includes one of a current slice, a picture, a slice, a slice group, or a brick; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, determine which fixed filter from a fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; and perform adaptive loop filtering on the current block based on the fixed filters from the fixed filter set.
[0014] In one example, the present disclosure describes a method for encoding video data, the method comprising determining that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of the video data is equal to zero, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure includes one of a current slice, a picture, a slice, a slice group, or a brick; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, determining which fixed filter from a fixed filter set to use for adaptive loop filtering; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, bypassing signaling of a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; and performing adaptive loop filtering on the current block based on the fixed filter from the fixed filter set.
[0015] In one example, the present disclosure describes a device for encoding video data, the device comprising a memory configured to store parameter sets, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, and a processing circuit system. The processing circuit system is configured to determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure of the video data is equal to zero, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, determine which fixed filter from a fixed filter set is used for adaptive loop filtering; based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, bypass the signaling of a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; and perform adaptive loop filtering on the current block based on the fixed filter from the fixed filter set.
[0016] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0018] Figure 2A and Figure 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding codec tree unit (CTU).
[0019] Figure 3is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0020] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0021] Figure 5 is a flow chart illustrating an example method of encoding video data.
[0022] Figure 6 is a flow chart illustrating an example method of decoding video data. DETAILED DESCRIPTION
[0023] The video decoder may receive information of a residual value between the current block and the predicted block. The video decoder may add the residual value to the predicted block to reconstruct the current block. However, in some cases, there may be some artifacts in the reconstructed current block, such as the mean square error between the original samples of the current block and the samples of the reconstructed current block. In order to resolve the artifacts, the video decoder performs an adaptive loop filtering (ALF) process on the reconstructed current block to filter the artifacts, thereby reducing the mean square error between the original samples of the current block and the samples of the reconstructed current block. The filtered current block may then be output for display.
[0024] In some examples, the video decoder may use the samples of the filtered current block as samples of the prediction block to inter-predict subsequent blocks. Therefore, in order to ensure that the samples of the prediction block used by the video decoder are the same as the samples of the prediction block used by the video encoder, the video encoder may similarly perform ALF as part of a reconstruction loop within the video encoder. ALF may not be enabled for all blocks, and the video encoder may signal to the video decoder information indicating whether ALF is enabled for a block, a slice including the block, or a picture including the block.
[0025] To perform ALF, the video encoder and video decoder utilize filters (e.g., filter coefficients) selected from a filter set. The filter set may have two sources. The first source of the filter set may be a filter determined by the video encoder for a picture, slice, or group of pictures including the current block based on various characteristics of the picture, slice, or group of pictures. These filters are called adaptive filters because the adaptive filters are generated based on the characteristics of a specific picture, slice, or group of pictures. The video encoder may signal the adaptive filter to the video decoder in one or more parameter sets, such as one or more adaptive parameter sets (APS).
[0026] Another source of filter sets can be predefined filters, and the video decoder is pre-configured with the filter. For example, the memory of the video decoder can store predefined filters in advance. However, there may be other ways for the video decoder to receive predefined filters, including possible signaling notifications of predefined filters. Unlike adaptive filters, predefined filters may not be generated based on specific pictures, strips or groups of pictures, but are known filters that usually provide sufficient filtering levels without specifying for specific pictures, strips or groups of pictures. Predefined filters can be referred to as fixed filters.
[0027] In some examples, the video encoder may signal to the video decoder (e.g., at a slice level or a picture level) information indicating the number of parameter sets, where each parameter set includes one or more adaptive filters, and the video decoder may refer to the parameter set to perform adaptive loop filtering on blocks within the slice or picture. The video encoder may then signal (e.g., at a block level) information (e.g., a flag) indicating whether the adaptive filter is to be used for adaptive loop filtering of a current block within the slice or picture.
[0028] As an example, the video encoder may signal information indicating that there are N parameter sets (e.g., APSs), each of which includes one or more adaptive filters, and the video decoder may refer to the parameter set to perform adaptive loop filtering. The video encoder may signal information indicating that adaptive loop filtering is enabled for the current block. Then, the video encoder may signal information indicating which APSs to refer to for the adaptive filter used to perform adaptive loop filtering.
[0029] In some cases, the number of parameter sets, each of which includes one or more adaptive filters and to which a video decoder may refer to perform adaptive loop filtering within a slice or picture, may be zero (e.g., N=0). However, some techniques still signal information indicating whether an adaptive filter is to be used for adaptive loop filtering of a current block within a slice or picture.
[0030] Some of these techniques may be inefficient in terms of bandwidth utilization. For example, if the number of parameter sets in which each parameter set includes one or more adaptive filters and to which the video decoder can refer to perform adaptive loop filtering within a slice or picture is zero (e.g., if N=0), only fixed filters can be used for adaptive loop filtering of blocks within the slice or picture because the parameter sets including the adaptive filters may not be accessible to the video decoder (e.g., because the video encoder indicates N=0). However, some of these techniques still signal an indication that the adaptive loop filter will not be used for adaptive filtering (e.g., only fixed filters are used), which wastes bandwidth and requires additional processing by the video encoder and video decoder, which wastes computing resources. In other words, when N=0, only fixed filters are used for adaptive loop filtering; therefore, there is bandwidth and computational waste when signaling a flag indicating whether the adaptive filter will be used for adaptive loop filtering.
[0031] The present disclosure describes an example technique for bypassing signaling of information indicating whether an adaptive filter is used for a current block when the number of parameter sets, each of which includes one or more adaptive filters and to which a video decoder can refer to perform adaptive loop filtering within a slice or picture, is zero. For example, when the number of parameter sets, each of which includes one or more adaptive filters and to which a video decoder can refer to perform adaptive loop filtering within a slice or picture, is zero, the video decoder can determine (e.g., infer) that only fixed filters will be used for blocks of the slice or picture. In other words, the video decoder can determine which fixed filter from a fixed filter set to use for adaptive loop filtering based on the number of parameter sets referenced for adaptive loop filtering by a current codec structure of video data (e.g., a current slice, picture, slice, slice group, or brick) being equal to zero, without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set will be used for adaptive loop filtering (e.g., without receiving a syntax element indicating whether the adaptive filter is not used).
[0032] Thus, the example techniques improve the bandwidth efficiency and processing efficiency of video encoders and video decoders. For example, as part of a practical application of determining filters used for adaptive loop filtering in video coding and decoding techniques, the example techniques result in better operation and reduction in bandwidth consumption, which improves the operation of a video encoder or decoder.
[0033] Figure 11 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to encoding and decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Therefore, video data may include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata such as signaling data.
[0034] like Figure 1 As shown, in this example, the system 100 includes a source device 102, which provides encoded video data to be decoded and displayed by a destination device 116. Specifically, the source device 102 provides video data to the destination device 116 via a computer-readable medium 110. The source device 102 and the destination device 116 can include any of a variety of devices, including a desktop computer, a notebook (i.e., laptop) computer, a tablet computer, a set-top box, a telephone handset such as a smart phone, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, a broadcast receiving device, etc. In some examples, the source device 102 and / or the destination device 116 can be a mobile device. In some cases, the source device 102 and the destination device 116 can be equipped for wireless communication and can therefore be referred to as a wireless communication device.
[0035] exist Figure 1 In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 comprises input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply adaptive loop filtering (ALF) filter set index signaling technology. Therefore, source device 102 represents an example of video encoding device, and destination device 116 represents an example of video decoding device. In other examples, source device and destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source (such as an external camera). Similarly, destination device 116 may interface with an external display device, rather than including an integrated display device.
[0036] Figure 1The system 100 shown is only an example. Generally, any digital video encoding and / or decoding device can perform the technology for signaling and receiving the ALF filter set index as described in the present disclosure. The source device 102 and the destination device 116 are only examples of such codec devices, wherein the source device 102 generates the video data of the codec to be transmitted to the destination device 116. The present disclosure refers to the "codec" device as a device for performing data coding (coding and / or decoding). Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, respectively represent video encoders and video decoders. In some examples, the devices 102 and 116 can operate in a substantially symmetrical manner so that each of the devices 102 and 116 includes a video coding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the video devices 102 and 116, for example, for video streaming, video playback, video broadcasting or video telephony.
[0037] Typically, the video source 104 represents the source of video data (i.e., the original, unencoded video data) and provides a continuous series of pictures (also referred to as "frames") of the video data to the video encoder 200, which encodes the data of the pictures. The video source 104 of the source device 102 may include a video capture device, such as a camera, a video archive containing previously captured original video, and / or a video feed interface that receives video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the images from the receiving order (sometimes referred to as the "display order") into the encoding and decoding order for encoding and decoding. The video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data to the computer-readable medium 110 via the output interface 108 for receiving or retrieving by, for example, the input interface 122 of the destination device 116.
[0038] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memories 106 and 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although shown as separate from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original, decoded and / or encoded video data.
[0039] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium so that the source device 102 can send the encoded video data directly to the destination device 116 in real time (e.g., via a radio frequency network or a computer-based network). According to a communication standard such as a wireless communication protocol, the output interface 108 can modulate a transmission signal including the encoded video data, and the input interface 122 can demodulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that can be used to facilitate communication from the source device 102 to the destination device 116.
[0040] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0041] In some examples, source device 102 may output encoded video data to file server 114 or another intermediate storage device that may store encoded video generated by source device 102. Destination device 116 may access stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to destination device 116. File server 114 may represent a network server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access encoded video data from file server 114 via any standard data connection including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.) suitable for accessing encoded video data stored on file server 114, or a combination of both. File server 114 and input interface 122 may be configured to operate according to a streaming protocol, a downloading transmission protocol, or a combination thereof.
[0042] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to a cellular communication standard (e.g., 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to other wireless standards (e.g., IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ), Bluetooth TM Standards, etc.) to transmit data such as encoded video data. In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include an SoC device to perform functions belonging to video encoder 200 and / or output interface 108, and destination device 116 may include an SoC device to perform functions belonging to video decoder 300 and / or input interface 122.
[0043] The techniques disclosed herein may be applied to video encoding and decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0044] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., the storage device 112, the file server 114, etc.). The encoded video bitstream computer-readable medium 110 may include signaling information defined by the video encoder 200 (e.g., syntax elements with values describing characteristics and / or processing of video blocks or other codec units (e.g., slices, pictures, groups of pictures, sequences, etc.) and the signaling information is also used by the video decoder 300. The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode display (OLED), or another type of display device.
[0045] although Figure 1 Not shown, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder, and may include appropriate MUX-DEMUX units, or other hardware and / or software, to process a multiplexed stream including both audio and video in a common data stream. If applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0046] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When these techniques are partially implemented in software, the device can store the instructions of the software in a suitable non-temporary computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (codec) in a corresponding device. A device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0047] The video encoder 200 and the video decoder 300 may operate in accordance with a video codec standard, such as ITU-T H.265, also known as High Efficiency Video Codec (HEVC), or an extension thereof, such as a multi-view and / or scalable video codec extension. Alternatively, the video encoder 200 and the video decoder 300 may operate in accordance with other proprietary or industry standards, such as ITU-T H.266, also known as Versatile Video Codec (VVC), currently under development. A draft of the VVC standard is described in Bross et al., “Versatile Video Codec (Draft 5)”, Joint Video Experts Team (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N1001-v2 (hereinafter referred to as “VVC Draft 5”). The latest draft of the VVC standard is described in Bross et al., "Versatile Video Codec (Draft 8)", Joint Video Experts Team (JVET) of ITU-T SG16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 17th Meeting: Brussels, Belgium, January 7-17, 2020, JVET-Q2001-vE (hereinafter referred to as "VVC Draft 8"). However, the techniques of the present disclosure are not limited to any particular codec standard.
[0048] Typically, the video encoder 200 and the video decoder 300 can perform block-based picture encoding and decoding. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, to be decoded, or otherwise used for encoding and / or decoding processes). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can encode and decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data of samples of a picture, where the chrominance components may include red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB format data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) can perform these conversions.
[0049] The present disclosure may generally refer to the encoding and decoding of a picture (e.g., encoding and decoding) to include the process of encoding or decoding the data of a picture. Similarly, the present disclosure may refer to the encoding and decoding of a block of a picture to include the process of encoding or decoding the data of the block (e.g., prediction and / or residual encoding and decoding). The encoded video bitstream generally includes a series of values of syntax elements that represent codec decisions (e.g., codec mode) and the partitioning of the picture into blocks. Therefore, references to encoding and decoding a picture or block should generally be understood as encoding and decoding the values of the syntax elements that form the picture or block.
[0050] Various blocks include codec units (CUs), prediction units (PUs), and transform units (TUs). In HEVC, a video encoder (e.g., video encoder 200) partitions a codec tree unit (CTU) into CUs according to a quadtree structure. That is, the video codec partitions the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node," and the CU of such a leaf node may include one or more PUs, and / or one or more TUs. The video codec may further partition the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the partitioning of the TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. The intra-predicted CU includes intra-frame prediction information such as an intra-frame mode indication.
[0051] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video codec (e.g., the video encoder 200) partitions a picture into multiple codec tree units (CTUs). The video encoder 200 may partition the CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure removes the concept of multiple partition types (e.g., the separation between CU, PU, and TU of HEVC). The QTBT structure includes two levels: a first level for partitioning according to quadtree partitioning, and a second level for partitioning according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to codec units (CUs).
[0052] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) partitioning. A ternary tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, the ternary tree partitioning divides the block into three sub-blocks without dividing the original block by the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0053] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for corresponding chroma components).
[0054] In some examples, a CTU includes a codec tree block (CTB) of luma samples for a picture with three sample arrays, two corresponding CTBs of chroma samples, or a CTB of samples for a monochrome picture or a picture encoded using three separate color planes and a syntax structure for the codec samples. For some value of N, the CTB can be an N×N sample block, so dividing the components into CTBs is a partitioning. A component is an array or a single sample of one of the three arrays (luminance and two chroma) that make up a picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array that makes up a picture in monochrome format. In some examples, for some values of M and N, the codec block is an M×N sample block, so that dividing the CTB into codec blocks is a partitioning.
[0055] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures in accordance with HEVC. For purposes of explanation, the description of the disclosed technology is presented with respect to QTBT segmentation. However, it should be understood that the disclosed technology may also be applied to a video codec configured to use quadtree segmentation or other types of segmentation.
[0056] The present disclosure may use "N×N" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.
[0057] The video encoder 200 encodes the video data of the CU representing the prediction and / or residual information and other information. The prediction information indicates how to predict the CU in order to form the prediction block of the CU. The residual information generally indicates the sample-by-sample difference between the CU sample before encoding and the prediction block.
[0058] In order to predict a CU, the video encoder 200 can generally form a prediction block of the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU from previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform a motion search to identify a reference block that closely matches the CU, for example, based on the difference between the CU and the reference block. The video encoder 200 can calculate a difference metric using the sum of absolute differences (SAD), the sum of square differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.
[0059] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (e.g., zooming in or out, rotation, perspective motion, or other irregular motion types).
[0060] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as a planar mode and a DC mode. Typically, the video encoder 200 selects an intra prediction mode that describes a neighboring sample of a current block (e.g., a block of a CU), where the sample of the current block is predicted from the neighboring sample. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.
[0061] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for the inter-frame prediction mode, the video encoder 200 may encode data representing which of the various available inter-frame prediction modes is used and the motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may use a similar mode to encode the motion vector of the affine motion compensation mode.
[0062] After prediction, such as intra-frame prediction or inter-frame prediction of a block, the video encoder 200 can calculate residual data for the block. Residual data such as a residual block represents the sample-by-sample difference between the block and a predicted block formed using a corresponding prediction mode for the block. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 can apply a secondary transform after the primary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.
[0063] As described above, after any transforms used to generate transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing the transform coefficients to minimize the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 can round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 can perform a bit-by-bit right shift on the value to be quantized.
[0064] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place coefficients of higher energy (and therefore lower frequency) in front of the vector and transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values of the syntax elements describing the metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0065] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. For example, the context may relate to, for example, whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0066] The video encoder 200 may also generate syntax data (in a picture header, a block header, a slice header), such as block-based syntax data, picture-based syntax data, and sequence-based syntax data or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS) to the video decoder 300. The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0067] In this way, the video encoder 200 can generate a bitstream that includes encoded video data, such as syntax elements describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information of the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0068] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements of the bitstream in a manner substantially similar to but reverse to the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of the picture into CTUs, and partitioning of each CTU according to a corresponding partitioning structure (e.g., a QTBT structure) to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., a CU) of video data.
[0069] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce (e.g., reconstruct) the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process or adaptive loop filtering to reduce visual artifacts along block boundaries.
[0070] The present disclosure may generally refer to "signaling" certain information such as syntax elements. The term "signaling" may generally refer to the communication of values of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values of syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time, or (such as may occur when the syntax elements are stored in the storage device 112 for later retrieval by the destination device 116) transmit the bitstream to the destination device 116 in non-real time.
[0071] As described above, the video decoder 300 may perform additional processing on the reconstructed blocks. For example, to further improve the quality of the decoded video, the video decoder 300 may perform one or more filtering operations on the reconstructed video blocks. Examples of these filtering operations include deblocking filtering, sample adaptive offset (SAO) filtering, and adaptive loop filtering (ALF). The parameters of these filtering operations (e.g., the filters used for the filtering operations) may be determined by the video encoder 200 and explicitly signaled in the encoded video bitstream, or may be implicitly determined by the video decoder 300 without explicitly signaling these parameters in the encoded video bitstream.
[0072] The present disclosure describes techniques related to (multiple) filtering methods referred to as "adaptive loop filters (ALF)". ALF can be used in a post-processing stage or for in-loop coding and decoding, or for a prediction process. In order to perform ALF, the video decoder 300 can determine a filter set from a set of candidate filters. The video encoder 200 can signal the video decoder 300 to determine information pointing to an index in a set of candidate filter sets. Some example techniques related to ALF and filter sets are described below: U.S. Patent Publication No. US2019 / 0373258, U.S. Patent Application Serial No. 16 / 822,990 filed on March 18, 2020, U.S. Patent Application Serial No. 16 / 811,913 filed on March 6, 2020, and U.S. Patent Application Serial No. 16 / 717,530 filed on December 17, 2019.
[0073] In VVC Test Model 5 (VTM5), "CE5: Adaptive loop filter based on codec treeblock (CE5-4)" by Hu et al., Joint Video Experts Team (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, JVET-N0415 (hereinafter referred to as "JVET-N0415") was adopted. In JVET-N0415, in each slice group, when an adaptive loop filter (ALF) is applied to a luma codec treeblock (CTB), the video encoder 200 or the video decoder 300 may determine a filter set from a set of candidate filter sets for performing ALF filtering on the luma CTB. A filter set index is signaled for the luma CTB (e.g., pointing to the set of candidate filter sets). A fixed (predefined) filter set (e.g., fixed filters) and a filter set (e.g., adaptive filters) from an adaptation parameter set (APS) can be used to form a candidate set. In the slice group / slice / picture header, information about the APS used for the current slice group is signaled. Let N represent the number of APSs being used by the current slice group or slice (APS_ID[i], where i is 0, 1, 2…N-1). N can be from 0 to MAX_APS_NUM, where MAX_APS_NUM represents the maximum number of APSs supported in the standard / format / sequence. In JVET-N0415, first, N is signaled; then, all APS IDs are signaled.
[0074] In JVET-N0415, for each luma CTB, the flag use_first_APS is first signaled to indicate whether the first signaled APS (APS_ID[0]) in the slice group / slice / picture header is used. If this flag is false, the flag use_fixed_filter is signaled. If use_fixed_filter is true, the fixed filter set index is signaled to indicate which fixed filter is used. Otherwise, the index is signaled to indicate which APS is used (APS_ID[i], where i is 1, 2...N-1). If the ALF is applied to the chroma component of the slice / slice group / slice / picture, APS_ID_chroma is signaled to indicate which APS the chroma filter is from.
[0075] The signaling used to determine which filter set to use for the ALF may be inefficient. These inefficiencies in signaling lead to technical issues of unnecessary bandwidth utilization. For example, in the above example technique for signaling information used to determine which filter set to use for the ALF, there may be some redundant information that does not need to be signaled.
[0076] In the above example, use_fixed_filter is a flag used to indicate whether a fixed filter is used for the current block, where if the use_fixed_filter flag is true, a fixed filter is used, and if the use_fixed_filter flag is false, an adaptive filter is used. However, use_fixed_filter is a name, and it should be understood that the antonym of use_fixed_filter can be used. For example, a flag labeled alf_use_aps_flag can be similar to use_fixed_filter, but with the opposite logic. In some examples, alf_use_aps_flag is true means that an adaptive filter is used for the block, while alf_use_aps_flag is false means that a fixed filter is used. For example, alf_use_aps_flag can be defined as follows:
[0077] alf_use_aps_flag equal to 0 specifies that one of the fixed filters in the fixed filter set is applied to the luma CTB. alf_use_aps_flag equal to 1 specifies that the filter set from the APS is applied to the luma CTB. When alf_use_aps_flag is not present, it is inferred to be equal to 0.
[0078] Therefore, use_fixed_filter and alf_use_aps_flag can be used to convey the same information, but one flag is the logical inverse of the other. As described above, use_fixed_filter is true means that a fixed filter is used to ALF filter the block, which is the same as alf_use_aps_flag is false, and use_fixed_filter is false means that a filter (e.g., an adaptive filter) from a parameter set (e.g., APS) is used, which is the same as alf_use_aps_flag is true. In any case, use_fixed_filter or alf_use_aps_flag can be considered as a syntax element in one or more syntax elements that indicates whether a fixed filter in a fixed filter set will be used for adaptive loop filtering.
[0079] This disclosure describes example techniques that provide technical solutions for signaling and determining which filter set to use for ALF. In this way, the example techniques provide practical applications for signaling and determining which filter set to use for ALF, which promotes efficient bandwidth usage (e.g., by reducing signaling of redundant information) during video encoding and decoding.
[0080] The following provides a list of example techniques that may be performed by the video encoder 200 and / or the video decoder 300 according to the present disclosure. The example techniques may be performed alone or together in any applicable combination.
[0081] 1. For intra slices / frames / slice groups / slices or for slices / frames / slice groups / slices in intra random access pictures (IRAPs), only the APS generated from the current slice / slice group / slice / frame can be used, and N can only be 0 or 1; therefore, only one bit is needed to signal it. For others, N can be from 0 to MAX_APS_NUM.
[0082] 2. When N is 0, only fixed filters can be used for all CTBs in the current slice / frame / slice / slice group group. Then use_first_APS is not signaled for all CTBs and is inferred to be false at the decoder side (e.g., by the video decoder 300). The flag use_fixed_filter is not signaled and is inferred to be true at the decoder side (e.g., by the video decoder 300).
[0083] 3. When N is 1, if use_first_APS is false for a CTB, only a fixed filter can be used for the current CTB. Then for the current CTB, use_fixed_filter is not signaled and is inferred to be true at the decoder side (eg, by the video decoder 300).
[0084] 4. Instead of MAX_APS_NUM, a variable may be signaled at the sequence parameter set (SPS) or picture parameter set (PPS) to indicate the maximum number of APSs that a slice / slice / slice group / frame may use.
[0085] 5. When N is equal to MAX_APS_NUM, ie all APSs are used, then not all APS_ID[i] need to be signaled (some are signaled and some are not).
[0086] a. As an example, all APS_ID[i] are not signaled and some default order is used, eg, at the decoder side (eg, by the video decoder 300), APS_ID[i]=i.
[0087] b. As an example, only APS_ID[0] is signaled, and then other APS_ID[i] are inferred (eg, by the video decoder 300), where i=1..N-1. For example, APS_ID[i]=(APS_ID[i-1]+1)%MAX_APS_NUM.
[0088] c. As an example, only some APS_ID[i] are signaled, while other APS_ID[i] can be inferred (eg, by the video decoder 300 ) based on what has been signaled.
[0089] 6. For an intra slice / frame / slice group / slice or for a slice / frame / slice group / slice in an intra random access picture (IRAP), only the APS generated from the current slice / slice group / slice / frame can be used. If N is 1 for the luma component and ALF is applied to the chroma components, the luma and chroma components have the same APS ID. APS_ID_chroma is not signaled for the chroma components and is inferred as APS_ID[0] at the decoder side (e.g., by the video decoder 300).
[0090] In the above example, N represents the number of APSs (APS_ID[i], where i is 0, 1, 2...N-1) being used by the current slice group or slice. In other words, N is referred to as a variable that indicates the number of parameter sets (e.g., APSs) that the current codec structure of video data including the current block of video data (e.g., the current slice, picture, slice, slice group, or brick) can reference for adaptive loop filtering. Each parameter set may include one or more adaptive filters for adaptive loop filtering. In some examples, N may be referred to as slice_num_alf_aps_ids_luma or ph_num_alf_aps_ids. For example, slice_num_alf_aps_ids_luma specifies the number of ALF APSs referenced by the slice. In some examples, slice_num_alf_aps_ids_luma may be signaled in the slice header, and ph_num_alf_aps_ids may be signaled in the picture header. In some examples, slice_num_alf_aps_ids_luma or ph_num_alf_aps_ids may be signaled at some other signaling level higher than the block level. That is, slice_num_alf_aps_ids_luma and ph_num_alf_aps_ids may be signaled at a level applicable to one or more blocks, such as at a slice level applicable to blocks within a slice and at a picture level applicable to blocks within a picture, respectively.
[0091] As described above, in some examples, if N is 0, only fixed filters can be used for blocks within a slice. In this case, signaling of use_fixed_filter may not be required. For example, if N is 0, this means that the video decoder 300 may not reference any parameter sets (e.g., one or more APSs), each of which includes one or more adaptive filters for adaptive loop filtering. Therefore, the source of filters for adaptive loop filtering is limited to fixed filters. In this case, signaling a syntax element (e.g., use_fixed_filter) indicating to the video decoder 300 that one of the fixed filter sets will be used for adaptive loop filtering is unnecessary, and the syntax element may be an example of one or more syntax elements. This is because when N is 0, the fixed filter may be the only filter source for adaptive loop filtering, and signaling of flags such as use_fixed_filter is redundant. Again, as mentioned above, N can be represented by slice_num_alf_aps_ids_luma or ph_num_alf_aps_ids, and instead of use_fixed_filter, alf_use_aps_flag can be used, which is the same as use_fixed_filter, but with the opposite logic.
[0092] Thus, in one or more examples, the video encoder 200 may be configured to determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure (e.g., a current slice, picture, slice, slice group, or brick) of video data is equal to zero (e.g., N=0, slice_num_alf_aps_ids=0, or ph_num_alf_aps_ids=0), wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled (e.g., a luma CTB). Examples of parameter sets include APS.
[0093] The video encoder 200 may determine which fixed filter in the fixed filter set to use for adaptive loop filtering based on the number of parameter sets referenced by the current codec structure being equal to 0. For example, because slice_num_alf_aps_ids (e.g., N) is 0, only fixed filters are available for adaptive loop filtering of the current block, and the video encoder 200 may determine which fixed filter to use.
[0094] The video encoder 200 may bypass the signaling of a syntax element indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering. For example, the video encoder 200 may not signal use_fixed_filter, which is the same as alf_use_aps_flag, but with the opposite logic, because in this case, the video decoder 300 may determine (e.g., infer) that a fixed filter is used because slice_num_alf_aps_ids is 0.
[0095] The video encoder 200 may perform adaptive loop filtering on the current block based on a fixed filter from a fixed filter set. The video encoder 200 may store the resulting filtered block in a memory for inter-frame prediction of subsequent blocks.
[0096] The video decoder 300 may be configured to determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure (e.g., a current slice, picture, slice, slice group, or brick) of video data is equal to zero, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering. The current codec structure (e.g., a current slice, picture, slice, slice group, or brick) includes a current block of video data for which adaptive loop filtering is enabled.
[0097] For example, the video decoder 300 may receive information indicating the number of parameter sets for adaptive loop filtering referenced by the current coding structure (e.g., current slice, picture, slice, slice group, or brick) (e.g., receive a value of N), and in this example, the video decoder 300 may receive information indicating that N is equal to 0 (e.g., receive information indicating that slice_num_alf_aps_ids is equal to 0). Examples of parameter sets include APS.
[0098] Based on the number of parameter sets referenced for adaptive loop filtering by the current codec structure (e.g., the current slice, picture, slice, slice group, or brick) being equal to zero, the video decoder 300 may determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering. For example, based on N being equal to 0, the video decoder 300 may not receive use_fixed_filter (or alf_use_aps_flag). As described above, used_fixed_filter is an example of one or more syntax elements indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering. In such an example, the video decoder 300 may determine which fixed filter to use without requiring one or more syntax elements to explicitly indicate to the video decoder 300 which one of the fixed filter set is to be used.
[0099] For example, the video decoder 300 may be configured to determine (e.g., infer) a flag indicating that one of the fixed filters or one of the adaptive filters from the parameter set will be used to perform adaptive loop filtering. That is, because N=0, the video decoder 300 may determine (e.g., infer) that use_fixed_filter is true, and therefore does not need to receive the use_fixed_filter flag.
[0100] In some examples, in order to determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, the video decoder 300 can be configured to receive an index into the fixed filter set that identifies which fixed filter to use for adaptive loop filtering. The video decoder 300 can determine to use the fixed filter based on the index.
[0101] The video decoder 300 may perform adaptive loop filtering on the current block based on a fixed filter from a fixed filter set. The video decoder 300 may store the resulting filtered block in a memory for inter-prediction of subsequent blocks and / or output the filtered block for display.
[0102] An example in which N=0 is described above (e.g., the number of parameter sets for adaptive loop filtering referenced by the current codec structure of video data is equal to zero, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled). However, in some cases, N is greater than 0. In such an example, the video encoder 200 may signal a syntax element to the video decoder 300 indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering (e.g., signaling use_fixed_filter).
[0103] For example, the above examples involve a current codec structure and a current block. In some examples, the current codec structure is a first codec structure, and the current block is a first block. The video decoder 300 may determine that the number of parameter sets for adaptive loop filtering referenced by a second codec structure is greater than zero, wherein the second codec structure includes a second block for which adaptive loop filtering is enabled. For example, for a second codec structure including a second block, N (e.g., slice_num_alf_aps_ids) is greater than zero.
[0104] Based on the number of parameter sets for adaptive loop filtering referenced by the second codec structure being greater than zero (e.g., based on N being greater than 0), the video decoder 300 may receive use_fixed_filter indicating that an adaptive filter is to be used, and the video decoder 300 determines which parameter set in the parameter set includes an adaptive filter to be used to perform adaptive loop filtering on the second block. In order to determine which parameter set in the parameter set includes an adaptive filter to be used to perform adaptive loop filtering on the second block, the video decoder 300 may be configured to receive information indicating which parameter set in the parameter set includes an adaptive filter to be used to perform adaptive loop filtering on the second block. The video decoder 300 may perform adaptive loop filtering on the second block based on the adaptive filter in one of the parameter sets determined in the parameter set.
[0105] Figure 2A and Figure 2Bis a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure 130 and a corresponding codec tree unit (CTU) 132. Solid lines represent quadtree partitions and dashed lines indicate binary tree partitions. At each partition (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where 0 indicates horizontal partitioning and 1 indicates vertical partitioning in this example. For quadtree partitioning, there is no need to indicate the partition type because the quadtree node divides the block horizontally and vertically into 4 sub-blocks of equal size. Therefore, the video encoder 200 can encode syntax elements (e.g., partition information) for the region tree level (i.e., solid line) of the QTBT structure 130 and syntax elements (e.g., partition information) for the prediction tree level (i.e., dashed line) of the QTBT structure 130, and the video decoder 300 can decode it. The video encoder 200 may encode video data (eg, prediction and transform data) of a CU represented by a terminal leaf node of the QTBT structure 130 , and the video decoder 300 may decode it.
[0106] generally, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes of the QTBT structure 130 at the first level and the second level. These parameters may include a CTU size (indicating the size of the CTU 132 in a sample), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).
[0107] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be segmented according to a quadtree segmentation. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such nodes as including a parent node and a child node with a solid line for branching. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), they may be further segmented by the corresponding binary tree. The binary tree partitioning of a node may be iterated until the node generated by the partitioning reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such nodes as having a dotted line for branching. The binary tree leaf node is called a codec unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As described above, a CU may also be referred to as a "video block" or "block".
[0108] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chrominance samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate quadtree leaf nodes. Quadtree leaf nodes can have sizes from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the leaf quadtree node is 128×128, it will not be further divided by the binary tree because its size exceeds MaxBTSize (i.e., 64×64 in this example). Otherwise, the leaf quadtree node will be further divided by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this case), no further splitting is allowed. When the width of the binary tree node is equal to MinBTSize (4 in this case), it means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical splitting is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.
[0109] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3The above description is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 in the context of video codec standards (e.g., the HEVC / H.265 video codec standard and the developing VCC / H.266 video codec standard). However, the techniques of this disclosure are not limited to these video codec standards and are generally applicable to video encoding and decoding.
[0110] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or in processing circuit systems. In addition, the video encoder 200 may include additional or alternative processors or processing circuit systems to perform these and other functions.
[0111] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB218 can act as a reference picture memory, which stores reference video data for use when the video encoder 200 predicts subsequent video data. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, as shown in the figure, video data memory 230 can be on the chip with other components of the video encoder 200, or off the chip relative to these components.
[0112] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200, unless specifically described as such, or to memory external to the video encoder 200, unless specifically described as such. Instead, references to the video data memory 230 should be understood as references to memory storing video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage of outputs from the various units of the video encoder 200 .
[0113] Figure 3 Various units are shown to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are preset on operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in operations that can be performed. For example, a programmable circuit can execute software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0114] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0115] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve the picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be the original video data to be encoded.
[0116] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0117] The mode selection unit 202 generally coordinates multiple encoding processes to test combinations of encoding parameters and rate-distortion values of the results of such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode of the CUs, the transform type of the residual data of the CUs, the quantization parameter of the residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.
[0118] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (e.g., the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0119] Typically, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously encoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value indicating how similar the potential reference block is to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block being considered. The motion estimation unit 222 may identify the reference block having the lowest value obtained from these calculations, which indicates the reference block that most closely matches the current block.
[0120] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, and for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values of the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data by, for example, sample-by-sample averaging or weighted averaging.
[0121] As another example, for intra prediction or intra prediction codec, the intra prediction unit 226 can generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values of the adjacent samples and pad these calculated values in a defined direction across the current block to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of the adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.
[0122] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original, uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0123] In the example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As described above, the size of the CU may refer to the size of the luma codec block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-frame prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N or the like for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.
[0124] In an example where the mode selection unit 202 does not further partition the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As described above, the size of a CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2N×2N, 2N×N, or N×2N.
[0125] For other video codec techniques, such as intra block copy mode codec, affine mode codec, and linear model (LM) mode codec, as a few examples, the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the codec technique. In some examples, such as palette mode codec, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In this mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0126] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0127] The transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 can apply various transforms to the residual block to form the transform coefficient block. For example, the transform processing unit 206 can apply a discrete cosine transform (DCT), a directional transform, a Karl-Lof transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 can perform multiple transforms on the residual block, such as a primary transform and a secondary transform, such as a rotation transform. In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0128] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients generated by the transform processing unit 206.
[0129] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although it may have a certain degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples of the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0130] Filter unit 216 may perform one or more filtering operations on the reconstructed blocks. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along CU edges, or may perform adaptive loop filtering (ALF). In some examples, the operations of filter unit 216 may be skipped.
[0131] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture from the DPB 218, which is formed by the reconstructed (and possibly filtered) blocks, to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current picture to intra-frame predict other blocks in the current picture.
[0132] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements as another example of video data to generate entropy-coded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable to variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, entropy encoding unit 220 may operate in a bypass mode, where syntax elements are not entropy encoded.
[0133] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or a picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0134] The operations described above are described with respect to blocks. Such descriptions should be understood as operations of a luma codec block and / or a chroma codec block. As described above, in some examples, the luma codec block and the chroma codec block are the luma and chroma components of a CU. In some examples, the luma codec block and the chroma codec block are the luma and chroma components of a PU.
[0135] In some examples, operations performed on the luma codec block do not need to be repeated for the chroma codec block. As an example, operations to identify the motion vector (MV) and reference picture of the luma codec block do not need to be repeated for identifying the MV and reference picture of the chroma block. Instead, the MV of the luma codec block can be scaled to determine the MV of the chroma block, and the reference picture can be the same. As another example, the intra prediction process can be the same for the luma codec block and the chroma codec block.
[0136] The video encoder 200 represents an example of a device configured to encode and decode video data, the device including a memory configured to store the video data, and one or more processing units implemented in a circuit system (e.g., at least one of a fixed function and a programmable circuit system). The video encoder 200 can be configured to determine which filter set the video decoder 300 will use to perform adaptive loop filtering on a block and signal information used by the video decoder 300 to determine the filter set used for adaptive loop filtering using one or more example techniques described in the present disclosure.
[0137] For example, the mode selection unit 202 and the filter unit 216 may together perform example techniques described in the present disclosure for performing adaptive loop filtering. As an example, the mode selection unit 202 may determine an adaptive filter for a slice, picture, or group of pictures based on the video content in the slice, picture, or group of pictures. The mode selection unit 202 may include the adaptive filter in one or more parameter sets (e.g., APS) for storage in the memory 230. For example, the memory 230 (or some other memory) may store parameter sets (e.g., APS), each of which includes one or more adaptive filters for adaptive loop filtering. The memory 230 (or some other memory) may also store fixed filters for adaptive loop filtering.
[0138] For the current codec structure (e.g., current slice, picture, slice, slice group, or tile) of the video data, the mode selection unit 202 may determine the number of parameter sets (e.g., APS) for adaptive loop filtering referenced by the current codec structure. The mode selection unit 202 may then cause the entropy encoding unit 220 to encode information on the number of parameter sets for adaptive loop filtering referenced by the current codec structure.
[0139] The current codec structure may include a current block of video data (e.g., a luma CTB) for which adaptive loop filtering is enabled (e.g., determined by mode selection unit 202). If mode selection unit 202 determines that the number of parameter sets for adaptive loop filtering referenced by the current codec structure is equal to zero, mode selection unit 202 may determine which fixed filter from a fixed filter set to use for adaptive loop filtering. In one or more examples, mode selection unit 202 may bypass signaling of a syntax element indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering. That is, relative to signaling a syntax element indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering, mode selection unit 202 may not signal such a syntax element (e.g., mode selection unit 202 may bypass signaling of used_fixed_filter, which is the same as bypassing signaling of alf_use_aps_flag).
[0140] The filter unit 216 may perform adaptive loop filtering based on the determined fixed filter. The filter unit 216 may store the resulting filtered blocks in the decoded picture buffer 218.
[0141] In the above example, the number of parameter sets referenced by the current codec structure for adaptive loop filtering is equal to zero. However, in some cases, the number of parameter sets referenced by the current codec structure for adaptive loop filtering is greater than zero. For example, in the above example, it is assumed that the current codec structure is a first codec structure and the current block is a first block. The mode selection unit 202 may determine that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero, wherein the second codec structure includes a second block for which adaptive loop filtering is enabled. In this example, the mode selection unit 202 may signal a syntax element (e.g., used_fixed_filter) indicating whether a fixed filter in a fixed filter set will be used for adaptive loop filtering. Based on the fact that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero and the syntax element indicates that a fixed filter in a fixed filter set is not used, the mode selection unit 202 may determine which parameter set in the parameter set includes an adaptive filter to be used for performing adaptive loop filtering on the second block. The filter unit 216 may perform adaptive loop filtering on the second block based on an adaptive filter of a parameter set determined in the parameter set.
[0142] For the first block, the mode selection unit 202 may signal an index into a fixed filter set that identifies which fixed filter to use for adaptive loop filtering. For the second block, the mode selection unit 202 may signal information indicating which parameter set in the parameter set includes the adaptive filter to be used for performing adaptive loop filtering on the second block.
[0143] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 It is provided for the purpose of explanation and does not limit the techniques widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 300 according to the technical description of VVC and HEVC. However, the techniques of this disclosure can be performed by video codec devices configured to other video codec standards.
[0144] exist Figure 4 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuit systems. In addition, the video decoder 300 may include additional or alternative processors or processing circuit systems to perform these and other functions.
[0145] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units to perform predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0146] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. For example, the video data stored in the CPB memory 320 may be, for example, from the computer-readable medium 110 ( Figure 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of encoded and decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, which may be output and / or used as reference video data when the video decoder 300 decodes subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or a separate memory device. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to these components.
[0147] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) retrieves the encoded and decoded video data. That is, the memory 120 may utilize the CPB memory 320 to store data as described above. Similarly, when some or all of the functions of the video decoder 300 are implemented in software to be executed by the processing circuitry of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.
[0148] Figure 4 The various units shown are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3 , fixed-function circuits refer to circuits that provide specific functions and are preset on the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware so that the programmable circuit operates in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0149] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on a programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0150] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0151] Typically, the video decoder 300 reconstructs an image on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (where the block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0152] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block, and transform information, such as a quantization parameter (QP) and / or (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and similarly, determine a degree of inverse quantization to be applied by the inverse quantization unit 306. For example, the inverse quantization unit 306 may perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0153] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karl-Lof transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform.
[0154] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which the reference block is retrieved, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in a manner substantially similar to that described with respect to motion compensation unit 224 ( Figure 3 ) describes the method to perform the inter-frame prediction process.
[0155] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Likewise, the intra-prediction unit 318 can generally generate a prediction block in a manner substantially similar to that described with respect to the intra-prediction unit 226 ( Figure 3 The intra prediction process is performed in the manner described in ). The intra prediction unit 318 can retrieve the data of the neighboring samples of the current block from the DPB 314.
[0156] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
[0157] The filter unit 312 may perform one or more filtering operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce block artifacts along the edge of the reconstructed block, and / or perform an adaptive loop filtering operation. The operations of the filter unit 312 need not be performed in all examples.
[0158] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current image for intra-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output decoded images from the DPB for subsequent display on a display device (e.g., Figure 1 The display device 118) is presented.
[0159] In this way, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data, and one or more processing units implemented in a circuit (e.g., at least one of a fixed function and a programmable circuit). The video decoder 300 may be configured to determine which filter set to use for adaptive loop filtering based on information signaled or derived using one or more example techniques described in this disclosure, and perform adaptive loop filtering on a block using the determined filter set.
[0160] For example, the prediction processing unit 304 and the filter unit 312 may together perform example techniques described in the present disclosure for performing adaptive loop filtering. As an example, a memory (e.g., CPB memory 320, DPB 314, or some other memory) of the video decoder 300 may store parameter sets (e.g., APSs), where each parameter set includes one or more adaptive filters for adaptive loop filtering. For example, the video encoder 200 may have signaled the prediction processing unit 304 the adaptive filters in the APSs stored in the memory of the video decoder 300.
[0161] The prediction processing unit 304 may receive information indicating the number of parameter sets for adaptive loop filtering referenced by a current codec structure (e.g., a current slice, picture, slice, slice group, or brick). In some examples, the prediction processing unit 304 may determine that the number of parameter sets (e.g., APSs) for adaptive loop filtering referenced by the current codec structure (e.g., a current slice, picture, slice, slice group, or brick) is equal to zero. The current codec structure may include a current block for which adaptive loop filtering is enabled. An example of a current block is a luma codec tree block (CTB).
[0162] Based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero, the prediction processing unit 304 may determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering. For example, the prediction processing unit 304 may not need to receive one or more syntax elements, such as use_fixed_filter (or alf_use_aps_flag, if the complement logic of use_fixed_filter is used) to determine that a fixed filter will be used to perform adaptive loop filtering on the current block. In other words, the prediction processing unit 304 may be configured to determine (e.g., infer) that a flag (e.g., use_fixed_filter or alf_use_aps_flag) indicates that one of the fixed filters will be used to perform adaptive loop filtering, wherein the flag indicates whether one of the fixed filters or one of the adaptive filters from the parameter set will be used to perform adaptive loop filtering.
[0163] In order to determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, the prediction processing unit 304 may receive an index into the fixed filter set that identifies which fixed filter to use for adaptive loop filtering. The prediction processing unit 304 may then determine which filter to use based on the index.
[0164] The filter unit 312 may then perform adaptive loop filtering on the current block based on a fixed filter from a fixed filter set. The filter unit 312 may output the filtered block to the DPB 314 for storage, for inter-prediction of subsequent blocks and / or final output for display.
[0165] An example in which N=0 is described above (e.g., the number of parameter sets for adaptive loop filtering referenced by a current codec structure (e.g., a current slice), which includes a current block for which adaptive loop filtering is enabled, is equal to zero). However, in some cases, N is greater than 0. In such an example, the video decoder 300 may receive a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering (e.g., the video decoder 300 may receive use_fixed_filter).
[0166] In the above example, the number of parameter sets referenced by the current codec structure (e.g., the current slice, picture, slice, slice group, or brick) for adaptive loop filtering is equal to zero. However, in some cases, the number of parameter sets referenced by the current codec structure for adaptive loop filtering is greater than zero. For example, in the above example, it is assumed that the current codec structure is the first codec structure and the current block is the first block. The prediction processing unit 304 can determine that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero, wherein the second codec structure includes a second block for which adaptive loop filtering is enabled. In this example, the prediction processing unit 304 can receive a syntax element (e.g., used_fixed_filter) indicating whether one of the fixed filters in the fixed filter set will be used for adaptive loop filtering. Based on the number of parameter sets referenced by the second codec structure for adaptive loop filtering being greater than 0 and the syntax element indicating that one of the fixed filters in the fixed filter set is not used, the prediction processing unit 304 can determine which parameter set in the parameter set includes the adaptive filter to be used to perform adaptive loop filtering on the second block. The filter unit 312 may perform adaptive loop filtering on the second block based on an adaptive filter in one of the parameter sets determined among the parameter sets.
[0167] For the first block, prediction processing unit 304 may receive an index into a fixed filter set that identifies which fixed filter to use for adaptive loop filtering. For the second block, prediction processing unit 304 may receive information indicating which of the parameter sets includes the adaptive filter to be used to perform adaptive loop filtering on the second block.
[0168] Figure 5 is a flowchart illustrating an example method for encoding a current block. Although with respect to the video encoder 200 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform similar Figure 5 For example, the method of describing the processing circuit system (e.g., fixed function and / or programmable circuit system) Figure 5 An example of a processing circuit system includes a video encoder 200. Figure 5 In an example, a memory (eg, memory 230 or some other memory) may be configured to store parameter sets (eg, APSs), where each parameter set includes one or more adaptive filters for adaptive loop filtering.
[0169] The processing circuitry of the video encoder 200 may determine that the number of parameter sets for adaptive loop filtering referenced by a current codec structure (e.g., a current slice, picture, slice, slice group, or brick) of the video data is equal to zero (e.g., N=0, slice_num_alf_aps_ids=0, or, ph_num_alf_aps_ids=0) (350). The current codec structure (e.g., the current slice, picture, slice, slice group, or brick) includes a current block of video data (e.g., a luma CTB) for which adaptive loop filtering is enabled. The processing circuitry may signal information indicating the number of parameter sets for adaptive loop filtering referenced by the current codec structure (e.g., in a slice header or some other higher-level syntax structure).
[0170] Based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero, the processing circuitry of video encoder 200 may determine which fixed filter from a set of fixed filters to use for adaptive loop filtering (352). For example, because the current codec structure does not reference any APS, an adaptive filter cannot be used to filter the current block because the adaptive filter is in the APS. Therefore, the processing circuitry may determine which fixed filter to use. The processing circuitry may signal an index into the set of fixed filters that identifies which fixed filter to use for adaptive loop filtering.
[0171] The processing circuit system may bypass the signaling of a syntax element (e.g., use_fixed_filter or alf_use_aps_flag) indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering (354). For example, because the current codec structure does not reference any APS, the fixed filter may be the only source of filters for adaptive loop filtering. Therefore, signaling use_fixed_filter may not have any effect, but may waste bandwidth and computing resources.
[0172] In some examples, the processing circuitry may signal an index into a set of fixed filters that identifies which fixed filter to use for adaptive loop filtering (356). In this way, the video decoder 300 may know which fixed filter to use.
[0173] The processing circuitry may perform adaptive loop filtering on the current block based on a fixed filter from the fixed filter set (358). The result is a filtered block that is stored for inter-prediction of subsequent blocks.
[0174] In the above example, the number of parameter sets used for adaptive loop filtering referenced by the current codec structure is equal to zero. However, in some examples, the number of parameter sets used for adaptive loop filtering referenced by the codec structure is greater than zero.
[0175] For example, in the above example, the current codec structure is the first codec structure, and the current block is the first block. In some examples, the processing circuit system of the video encoder 200 may determine that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero, wherein the second codec structure includes a second block for which adaptive loop filtering is enabled. In this example, the processing circuit system of the video encoder 200 may signal a syntax element indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering. Based on the number of parameter sets referenced by the second codec structure (e.g., a strip, a picture, a slice, a slice group, or a brick) for adaptive loop filtering is greater than zero and the syntax element indicates that a fixed filter in a fixed filter set is not used, the processing circuit system of the video encoder 200 may determine which parameter set in the parameter set includes an adaptive filter to be used to perform adaptive loop filtering on the second block. The processing circuit system of the video encoder 200 may perform adaptive loop filtering on the second block based on an adaptive filter in a parameter set determined in the parameter set. In one or more examples, processing circuitry of video encoder 200 may signal information indicating which of the parameter sets includes an adaptive filter to be used to perform adaptive loop filtering on the second block.
[0176] Figure 6 is a flowchart illustrating an example method for decoding a current block of video data. Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform similar Figure 6 For example, the method of describing the processing circuit system (e.g., fixed function and / or programmable circuit system) Figure 6 An example of a processing circuit system includes a video decoder 300. Figure 6 In an example of, a memory (e.g., memory 320, DPB 314, or some other memory) can be configured to store parameter sets (e.g., APS), wherein each parameter set includes one or more adaptive filters for adaptive loop filtering. The parameter set can be received in signaling from the video encoder 200.
[0177] The processing circuit system of the video decoder 300 can determine that the number of parameter sets referenced for adaptive loop filtering by a current codec structure (e.g., a current slice, picture, slice, slice group, or brick) of the video data is equal to zero (e.g., N=0, slice_num_alf_aps_ids=0, or, ph_num_alf_aps_ids=0) (360). The current codec structure (e.g., the current slice, picture, slice, slice group, or brick) includes a current block of video data (e.g., a luma CTB), where adaptive loop filtering is enabled for the current block. The processing circuit system of the video decoder 300 can receive information indicating the number of parameter sets referenced for adaptive loop filtering by the current codec structure from the video encoder 200 (e.g., in a slice header or some other higher-level syntax structure). The processing circuit system of the video decoder 300 can determine that the number of parameter sets referenced for adaptive loop filtering by the current codec structure is equal to zero based on the received information.
[0178] Based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero, the processing circuitry of the video decoder 300 may determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering (362). For example, because the current codec structure does not reference any APS (e.g., because N=0), the adaptive filter cannot be used to filter the current block because the adaptive filter is in the APS. Therefore, the processing circuitry may determine which fixed filter to use without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering (e.g., use_fixed_filter or alf_use_aps_flag).
[0179] In some examples, to determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, the processing circuitry of the video decoder 300 may determine (e.g., infer) a flag indicating that one of the fixed filters is to be used to perform adaptive loop filtering, where the flag indicates whether one of the fixed filters or one of the adaptive filters from the parameter set is to be used to perform adaptive loop filtering (e.g., use_fixed_filter or alf_use_aps_flag). In such an example, the processing circuitry of the video decoder 300 may receive an index into the fixed filter set that identifies which fixed filter to use for adaptive loop filtering.
[0180] The processing circuitry of video decoder 300 may perform adaptive loop filtering on the current block based on a fixed filter from a fixed filter set identified by the index (364). The result is a filtered block that is stored for inter-prediction of subsequent blocks and / or for output for display.
[0181] In the above example, the number of parameter sets used for adaptive loop filtering referenced by the current codec structure is equal to zero. However, in some examples, the number of parameter sets used for adaptive loop filtering referenced by the codec structure is greater than zero.
[0182] For example, in the above example, the current codec structure is the first codec structure, and the current block is the first block. In some examples, the processing circuit system of the video decoder 300 may determine that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero, wherein the second codec structure includes a second block for which adaptive loop filtering is enabled. In such an example, the processing circuit system of the video decoder 300 may receive a syntax element (e.g., use_fixed_filter or alf_use_aps_flag) indicating whether a fixed filter in a fixed filter set is to be used for adaptive loop filtering. Based on the fact that the number of parameter sets referenced by the second codec structure for adaptive loop filtering is greater than zero and the syntax element indicates that a fixed filter in a fixed filter set is not used, the processing circuit system of the video decoder 300 may determine which parameter set in the parameter set includes an adaptive filter to be used to perform adaptive loop filtering on the second block. The processing circuit system of the video decoder 300 may perform adaptive loop filtering on the second block based on an adaptive filter in a parameter set determined in the parameter set. In some examples, in order to determine which of the parameter sets includes the adaptive filter to be used to perform adaptive loop filtering on the second block, the processing circuit system of the video decoder 300 can receive information indicating which of the parameter sets includes the adaptive filter to be used to perform adaptive loop filtering on the second block.
[0183] It should be appreciated that, depending on the examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary for the practice of the techniques). In addition, in some examples, actions or events may be performed simultaneously, e.g., by multithreading, interrupt handling, or multiple processors, rather than being performed sequentially.
[0184] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media including any media that facilitates (e.g., according to a communication protocol) transferring a computer program from one place to another. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures to implement the techniques described in the present disclosure. A computer program product may include a computer-readable medium.
[0185] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is properly referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit instructions from a website, server or other remote source, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are directed to non-temporary tangible storage media. The disk and optical disk used herein include compact discs (CDs), laser optical discs, optical optical discs, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein the disks usually reproduce data magnetically, and the optical discs reproduce data optically with lasers. The above combination should also be included in the scope of computer-readable media.
[0186] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, these techniques may be fully implemented in one or more circuits or logic elements.
[0187] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or sets of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units including one or more processors as described above in combination with appropriate software and / or firmware.
[0188] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method include: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; determining which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
2. The method according to claim 1, in, The parameter set comprises an Adaptation Parameter Set (APS).
3. The method according to claim 1, in, In the absence of receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, determining which fixed filter from the fixed filter set to use for adaptive loop filtering comprises: determining that a flag indicates that one of the fixed filters is to be used to perform adaptive loop filtering, wherein the flag indicates whether one of the fixed filters or one of the adaptive filters from a parameter set is to be used to perform adaptive loop filtering.
4. The method according to claim 1, in, The current codec structure is a first codec structure, and the current block is a first block, and the method further includes: determining that the number of parameter sets for adaptive loop filtering referenced by the second codec structure including the second block for which adaptive loop filtering is enabled is greater than zero; receiving a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; determining, based on the number of parameter sets referenced by the second codec structure for adaptive loop filtering being greater than zero and the syntax element indicating that one of the fixed filter sets is not to be used, which one of the parameter sets includes an adaptive filter to be used for performing adaptive loop filtering on the second block; and Adaptive loop filtering is performed on the second block based on an adaptive filter in the determined one of the parameter sets.
5. The method according to claim 4, in, Determining which one of the parameter sets includes an adaptive filter to be used for performing adaptive loop filtering on the second block includes receiving information indicating which one of the parameter sets includes an adaptive filter to be used for performing adaptive loop filtering on the second block.
6. The method according to claim 1, in, The current block is a luma codec tree block (CTB).
7. The method according to claim 1, in, Without receiving a syntax element indicating whether a filter in the fixed filter set is to be used for adaptive loop filtering, determining which fixed filter from the fixed filter set to use for adaptive loop filtering includes: receiving an index into the fixed filter set, the index identifying which fixed filter to use for adaptive loop filtering. 8 . The method according to claim 1 , further comprising receiving information indicating the number of parameter sets for adaptive loop filtering referenced by the current codec structure.
9. A device for decoding video data, the device include: a memory configured to store parameter sets, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering; as well as processing circuitry, wherein the processing circuitry is configured to: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; determining which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
10. The device according to claim 9, in, The parameter set comprises an Adaptation Parameter Set (APS).
11. The device according to claim 9, in, In order to determine which fixed filter from the set of fixed filters to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the set of fixed filters is to be used for adaptive loop filtering, the processing circuit system is configured to: determine that a flag indicates that one of the fixed filters is to be used for performing adaptive loop filtering, wherein the flag indicates whether one of the fixed filters or one of the adaptive filters from a parameter set is to be used for performing adaptive loop filtering.
12. The device according to claim 9, in, The current codec structure is a first codec structure, and the current block is a first block, and the processing circuitry is configured to: determining that the number of parameter sets for adaptive loop filtering referenced by the second codec structure including the second block for which adaptive loop filtering is enabled is greater than zero; receiving a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; determining, based on the number of parameter sets referenced by the second codec structure for adaptive loop filtering being greater than zero and the syntax element indicating that one of the fixed filter sets is not to be used, which one of the parameter sets includes an adaptive filter to be used for performing adaptive loop filtering on the second block; as well as Adaptive loop filtering is performed on the second block based on an adaptive filter in the determined one of the parameter sets.
13. The device according to claim 12, in, In order to determine which of the parameter sets includes an adaptive filter to be used to perform adaptive loop filtering on the second block, the processing circuit system is configured to receive information indicating which of the parameter sets includes an adaptive filter to be used to perform adaptive loop filtering on the second block.
14. The device according to claim 9, in, The current block is a luma codec tree block (CTB).
15. The device according to claim 9, in, In order to determine which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the filters in the fixed filter set is to be used for adaptive loop filtering, the processing circuit system is configured to receive an index into the fixed filter set, the index identifying which fixed filter to use for adaptive loop filtering.
16. The device according to claim 9, in, The processing circuitry is configured to receive information indicating a number of parameter sets referenced by the current codec structure for adaptive loop filtering.
17. The device according to claim 9, in, The device includes one or more of a computer, a mobile device, a broadcast receiver device, or a set-top box.
18. A device for decoding video data, the device include: means for determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; means for determining which fixed filter from the set of fixed filters to use for adaptive loop filtering, without receiving a syntax element indicating whether one of the fixed filters in the set of fixed filters is to be used for adaptive loop filtering, based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero; as well as Means for performing adaptive loop filtering on the current block based on a fixed filter from the fixed filter set.
19. The device according to claim 18, in, The parameter set comprises an Adaptation Parameter Set (APS).
20. The device according to claim 18, in, The means for determining which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering comprises: determining that a flag indicates that one of the fixed filters is to be used for performing adaptive loop filtering, wherein the flag indicates whether one of the fixed filters or one of the adaptive filters from a parameter set is to be used for performing adaptive loop filtering.
21. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; determining which fixed filter from the fixed filter set to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering, based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
22. The computer-readable storage medium of claim 21, in, The parameter set comprises an Adaptation Parameter Set (APS).
23. The computer-readable storage medium of claim 21, in, The instructions causing the one or more processors to determine which fixed filter from the set of fixed filters to use for adaptive loop filtering without receiving a syntax element indicating whether one of the fixed filters in the set of fixed filters is to be used for adaptive loop filtering include instructions causing the one or more processors to determine a flag indicating that one of the fixed filters is to be used for performing adaptive loop filtering, wherein the flag indicates whether one of the fixed filters or one of the adaptive filters from a parameter set is to be used for performing adaptive loop filtering.
24. A method for encoding video data, the method include: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; determining which fixed filter from a fixed filter set to use for adaptive loop filtering based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero; Based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, bypassing signaling of a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
25. The method according to claim 24, in, The parameter set comprises an Adaptation Parameter Set (APS).
26. The method according to claim 24, in, The current codec structure is a first codec structure, and the current block is a first block, and the method further includes: determining that the number of parameter sets for adaptive loop filtering referenced by the second codec structure including the second block for which adaptive loop filtering is enabled is greater than zero; and The syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering is signaled.
27. The method of claim 26, further comprising signaling information indicating which one of the parameter sets includes an adaptive filter to be used to perform adaptive loop filtering on the second block.
28. The method according to claim 24, in, The current block is a luma codec tree block (CTB).
29. The method of claim 24, further comprising signaling an index into the fixed filter set, the index identifying which fixed filter to use for adaptive loop filtering.
30. The method of claim 24, further comprising signaling information indicating the number of parameter sets for adaptive loop filtering referenced by the current codec structure.
31. A device for encoding video data, the device include: a memory configured to store parameter sets, wherein each parameter set includes one or more adaptive filters for adaptive loop filtering; as well as processing circuitry, wherein the processing circuitry is configured to: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein the current codec structure includes a current block of video data for which adaptive loop filtering is enabled; determining which fixed filter from a fixed filter set to use for adaptive loop filtering based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero; Based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, bypassing signaling of a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
32. The apparatus according to claim 31, in, The parameter set comprises an Adaptation Parameter Set (APS).
33. The apparatus according to claim 31, in, The current codec structure is a first codec structure, and the current block is a first block, and wherein the processing circuitry is configured to: determining that the number of parameter sets for adaptive loop filtering referenced by the second codec structure including the second block for which adaptive loop filtering is enabled is greater than zero; as well as The syntax element indicating whether one of the fixed filters in the fixed filter set is to be used for adaptive loop filtering is signaled.
34. The apparatus according to claim 33, in, The processing circuitry is configured to signal information indicating which of the parameter sets comprises an adaptive filter to be used for performing adaptive loop filtering on the second block.
35. The apparatus according to claim 31, in, The current block is a luma codec tree block (CTB).
36. The apparatus according to claim 31, in, The processing circuitry is configured to signal an index into the set of fixed filters, the index identifying which fixed filter to use for adaptive loop filtering.
37. The apparatus according to claim 31, in, The processing circuitry is configured to signal information indicating a number of parameter sets referenced by the current codec structure for adaptive loop filtering.
38. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: determining that a number of parameter sets for adaptive loop filtering referenced by a current codec structure of video data is equal to zero, wherein each parameter set comprises one or more adaptive filters for adaptive loop filtering, wherein the current codec structure comprises a current block of video data for which adaptive loop filtering is enabled, and wherein the current codec structure comprises one of a current slice, a picture, a slice, a slice group, or a brick; determining which fixed filter from a fixed filter set to use for adaptive loop filtering based on the number of parameter sets referenced by the current codec structure for adaptive loop filtering being equal to zero; Based on the number of parameter sets for adaptive loop filtering referenced by the current codec structure being equal to zero, bypassing signaling of a syntax element indicating whether a fixed filter in the fixed filter set is to be used for adaptive loop filtering; as well as Adaptive loop filtering is performed on the current block based on fixed filters from the fixed filter set.
Citation Information
Patent Citations
Block-based adaptive loop filter (ALF) design and signaling
US20190373258A1
Adaptive loop filter (ALF) index signaling
US20200204800A1
Fixed filters with non-linear adaptive loop filter in video coding
US20200314423A1
Block-based adaptive loop filter (ALF) with adaptive parameter set (APS) in video coding
US20200314424A1
Adaptive loop filter set index signaling
US20200344494A1
