[go: up one dir, main page]

TW202539237A - Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding - Google Patents

Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding

Info

Publication number
TW202539237A
TW202539237A TW114101816A TW114101816A TW202539237A TW 202539237 A TW202539237 A TW 202539237A TW 114101816 A TW114101816 A TW 114101816A TW 114101816 A TW114101816 A TW 114101816A TW 202539237 A TW202539237 A TW 202539237A
Authority
TW
Taiwan
Prior art keywords
filter
alf
level
current block
fixed
Prior art date
Application number
TW114101816A
Other languages
Chinese (zh)
Inventor
蕭裕霖
邱世鈞
林郁晟
徐志瑋
陳慶曄
莊子德
陳渏紋
黃毓文
Original Assignee
聯發科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 聯發科技股份有限公司 filed Critical 聯發科技股份有限公司
Publication of TW202539237A publication Critical patent/TW202539237A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A method and apparatus for in-loop filtering of reconstructed video are disclosed. According to the method, reconstructed pixels are received, wherein the reconstructed pixels comprise a current block and the current block comprises a first-colour block and a second-colour block. A target fixed filter set is selected from multiple fixed filter sets according to filter-selection indication at a CTB (Coding Tree Block) level for filtering the current block using a target filter type from a filter-type group comprising chroma ALF (Adaptive Loop Filter), CCALF (Cross-Component ALF), or both. The target fixed filter set is applied to the current block to generate a filtered current block. The filtered current block is provided.

Description

在影片編解碼中具有與跨組件色度模型和固定濾波器相關的附加模式和抽頭的適應性環路濾波器的方法與裝置Methods and apparatus for adaptive loop filters with additional modes and taps associated with cross-component chromaticity models and fixed filters in video encoding and decoding.

本發明涉及使用適應性環路濾波器(Adaptive Loop Filter,簡稱 ALF)的影片編解碼系統。特別地,本發明公開了一種通過根據在編解碼樹塊(Coding Tree Block,簡稱 CTB)層級的指示選擇固定濾波器集合,用於色度適應性環路濾波器(chroma ALF)和/或跨組件適應性環路濾波器(Cross-Component ALF,簡稱 CCALF),以改進性能的方法和裝置。This invention relates to a video encoding/decoding system using an Adaptive Loop Filter (ALF). Specifically, this invention discloses a method and apparatus for improving performance by selecting a fixed set of filters for a chroma ALF and/or a cross-component ALF (CCALF) based on instructions at the Coding Tree Block (CTB) level.

多功能影片編解碼(Versatile Video Coding,簡稱 VVC)是由 ITU-T 影片編解碼專家組(Video Coding Experts Group,簡稱 VCEG)與 ISO/IEC 動態影像專家組(Moving Picture Experts Group,簡稱 MPEG)共同組成的聯合影片專家組(Joint Video Experts Team,簡稱 JVET)開發的最新國際影片編解碼標準。該標準已作為 ISO 標準發佈:ISO/IEC 23090-3:2021,資訊技術 - 沉浸式媒體的編碼表示 - 第3部分:多功能影片編解碼,於2021年2月發佈。VVC 是基於其前身高效影片編解碼(High Efficiency Video Coding,簡稱 HEVC)開發的,通過添加更多的編解碼工具來提高編解碼效率,並處理各種類型的影片來源,包括三維(3D)影片信號。Versatile Video Coding (VVC) is the latest international video coding standard developed by the Joint Video Experts Team (JVET), which comprises the ITU-T Video Coding Experts Group (VCEG) and the ISO/IEC Moving Picture Experts Group (MPEG). This standard has been published as an ISO standard: ISO/IEC 23090-3:2021, Information technology – Coded representation of immersive media – Part 3: Versatile Video Coding, published in February 2021. VVC is based on its predecessor, High Efficiency Video Coding (HEVC), and improves encoding and decoding efficiency by adding more encoding and decoding tools, and can handle various types of video sources, including 3D video signals.

第1A圖說明了一個包含環路處理的示例性適應性幀間/幀內影片編碼系統。對於幀內預測,預測資料是基於當前圖片中先前編碼的影片資料導出的。對於幀間預測112,在編碼器端執行運動估計(Motion Estimation,簡稱 ME),並基於 ME 的結果執行運動補償(Motion Compensation,簡稱 MC),以提供從其他圖片和運動資料導出的預測資料。開關114選擇幀內預測110或幀間預測112,並將選定的預測資料提供給加法器116以形成預測誤差,也稱為殘差。預測誤差隨後經過變換(Transform,簡稱 T)118處理,然後進行量化(Quantization,簡稱 Q)120。變換和量化後的殘差隨後由熵編碼器122編碼,並包含在對應於壓縮影片資料的影片位元流中。與變換係數相關的位元流隨後與附加資訊一起打包,例如與幀內預測和幀間預測相關的運動和編解碼模式,以及與應用於基礎圖像區域的環路濾波器相關的參數。與幀內預測110、幀間預測112和環路濾波器130相關的附加資訊如第1A圖所示,提供給熵編碼器(Entropy Encoder)122。當使用幀間預測模式時,參考圖片或多個參考圖片也必須在編碼器端重建。因此,變換和量化後的殘差經過反量化(Inverse Quantization,簡稱 IQ)124和反變換(Inverse Transformation,簡稱 IT)126處理,以恢復殘差。殘差隨後在重建(Reconstruction,簡稱 REC)128處與預測資料136相加,以重建影片資料。重建的影片資料可以存儲在參考圖片緩衝區(Reference Picture Buffer,簡稱 Ref. Pic. Buffer)134中,並用於其他幀的預測。Figure 1A illustrates an exemplary adaptive inter-frame/intra-frame video encoding system that includes loop processing. For intra-frame prediction, the prediction data is derived from previously encoded video data in the current image. For inter-frame prediction 112, motion estimation (ME) is performed at the encoder, and motion compensation (MC) is performed based on the result of ME to provide prediction data derived from other images and motion data. Switch 114 selects either intra-frame prediction 110 or inter-frame prediction 112 and provides the selected prediction data to adder 116 to form the prediction error, also known as the residual. The prediction error is then processed by a transform (T) 118 and then quantized (Q) 120. The residuals after transform and quantization are then encoded by an entropy encoder 122 and included in the video bitstream corresponding to the compressed video data. The bitstream associated with the transform coefficients is then packaged with additional information, such as motion and encoding/decoding modes associated with intra-frame and inter-frame predictions, and parameters associated with the loop filter applied to the underlying image region. Additional information associated with intra-frame prediction 110, inter-frame prediction 112, and the loop filter 130, as shown in Figure 1A, is provided to the entropy encoder 122. When using inter-frame prediction mode, the reference picture or multiple reference pictures must also be reconstructed at the encoder. Therefore, the transformed and quantized residuals are processed by inverse quantization (IQ) 124 and inverse transformation (IT) 126 to recover the residuals. The residuals are then added to the prediction data 136 at reconstruction (REC) 128 to reconstruct the video data. The reconstructed video data can be stored in the Reference Picture Buffer (Ref. Pic. Buffer) 134 and used for prediction of other frames.

如第1A圖所示,輸入的影片資料在編碼系統中經過一系列處理。來自 REC 128 的重建影片資料可能因一系列處理而受到各種損害。因此,環路濾波器(in-loop filter module,簡稱 ILPF)130通常應用於重建影片資料,然後再將重建影片資料存儲在參考圖片緩衝區134中,以提高影片質量。例如,可以使用去區塊濾波器(deblocking filter,簡稱 DF)、樣本適應性偏移(Sample Adaptive Offset,簡稱 SAO)和適應性環路濾波器(Adaptive Loop Filter,簡稱 ALF)。環路濾波器資訊可能需要被納入位元流中,以便解碼器能夠正確恢復所需的資訊。因此,環路濾波器資訊也提供給熵編碼器122,以納入位元流中。在第1A圖中,環路濾波器130應用於重建影片,然後再將重建樣本存儲在參考圖片緩衝區134中。第1A圖中的系統旨在說明典型影片編碼器的示例性結構。它可能對應於高效影片編解碼(HEVC)系統、VP8、VP9、H.264 或 VVC。As shown in Figure 1A, the input video data undergoes a series of processing steps in the encoding system. The reconstructed video data from REC 128 may be subject to various forms of degradation due to these processing steps. Therefore, an in-loop filter module (ILPF) 130 is typically used to reconstruct the video data, which is then stored in the reference image buffer 134 to improve video quality. For example, a deblocking filter (DF), a sample adaptive offset (SAO), and an adaptive loop filter (ALF) can be used. Loop filter information may need to be incorporated into the bitstream so that the decoder can correctly recover the required information. Therefore, loop filter information is also provided to entropy encoder 122 for inclusion in the bit stream. In Figure 1A, loop filter 130 is applied to reconstruct the video, and then the reconstructed sample is stored in reference image buffer 134. The system in Figure 1A is intended to illustrate an exemplary structure of a typical video encoder. It may correspond to a High Efficiency Video Codec (HEVC) system, VP8, VP9, H.264, or VVC.

如第1B圖所示,解碼器可以使用與編碼器相同或部分相同的功能模塊,除了變換118和量化120,因為解碼器只需要反量化124和反變換126。解碼器使用熵解碼器(Entropy Decoder,簡稱 ED)140來將影片位元流解碼為量化的變換係數和所需的編解碼資訊(例如 ILPF 資訊、幀內預測資訊和幀間預測資訊)。解碼器端的幀內預測150不需要執行模式搜索。相反,解碼器只需要根據從熵解碼器140接收到的幀內預測資訊生成幀內預測。此外,對於幀間預測,解碼器只需要根據從熵解碼器140接收到的幀間預測資訊執行運動補償(MC 152),而不需要執行運動估計。As shown in Figure 1B, the decoder can use the same or partially the same functional modules as the encoder, except for transform 118 and quantization 120, since the decoder only needs inverse quantization 124 and inverse transform 126. The decoder uses an entropy decoder (ED) 140 to decode the video bitstream into quantized transform coefficients and the required encoding/decoding information (e.g., ILPF information, intra-frame prediction information, and inter-frame prediction information). The intra-frame prediction 150 at the decoder end does not need to perform a mode search. Instead, the decoder only needs to generate intra-frame predictions based on the intra-frame prediction information received from the entropy decoder 140. Furthermore, for inter-frame prediction, the decoder only needs to perform motion compensation (MC 152) based on the inter-frame prediction information received from the entropy decoder 140, without needing to perform motion estimation.

根據 VVC,輸入圖片被劃分為稱為編解碼樹單元(Coding Tree Units,簡稱 CTUs)的非重疊正方形區塊區域,類似於 HEVC。每個 CTU 可以被劃分為一個或多個較小尺寸的編解碼單元(Coding Units,簡稱 CUs)。生成的 CU 分區可以是正方形或矩形形狀。此外,VVC 將 CTU 劃分為預測單元(Prediction Units,簡稱 PUs),作為應用預測過程(例如幀間預測、幀內預測等)的單元。According to VVC, the input image is divided into non-overlapping square regions called Coding Tree Units (CTUs), similar to HEVC. Each CTU can be further divided into one or more smaller Coding Units (CUs). The resulting CU regions can be square or rectangular. Additionally, VVC divides CTUs into Prediction Units (PUs) as units for applying prediction processes (such as inter-frame prediction, intra-frame prediction, etc.).

在本發明中,披露了改進適應性環路濾波器(Adaptive Loop Filter,簡稱 ALF)性能的方法和裝置。This invention discloses a method and apparatus for improving the performance of an adaptive loop filter (ALF).

一種用於重建影片的環路濾波(loop filtering)的方法和裝置被揭示。根據該方法,接收重建像素,其中該重建像素包括一個當前塊,且該當前塊包括第一顏色塊和第二顏色塊。根據在編解碼樹塊(Coding Tree Block,簡稱 CTB)層級的濾波器選擇指示,從多個固定濾波器集合中選擇目標固定濾波器集合,用於使用濾波器類型組中的目標濾波器類型濾波該當前塊,該濾波器類型組包括色度適應性環路濾波器(Adaptive Loop Filter,簡稱 ALF)、跨組件 ALF(Cross-Component ALF,簡稱 CCALF)或兩者。將該目標固定濾波器集合應用於該當前塊以生成濾波後的當前塊。提供該濾波後的當前塊。A method and apparatus for loop filtering in video reconstruction are disclosed. According to the method, reconstructed pixels are received, wherein the reconstructed pixels comprise a current block, and the current block comprises a first color block and a second color block. A target set of fixed filters is selected from multiple sets of fixed filters according to a filter selection instruction at the Coding Tree Block (CTB) level, for filtering the current block using a target filter type from a filter type group, which includes an Adaptive Loop Filter (ALF), a Cross-Component ALF (CCALF), or both. Apply the target-fixed filter set to the current block to generate a filtered current block. Provide the filtered current block.

在一個實施例中,在 CTB 層級選擇從跨組件模型生成的樣本,和/或從具有固定濾波的跨組件模型生成的樣本,用於亮度 ALF、該色度 ALF、該 CCALF 或其組合。In one embodiment, at the CTB level, a sample generated from a cross-component model and/or a sample generated from a cross-component model with fixed filters is selected for the luminance ALF, the chromaticity ALF, the CCALF, or a combination thereof.

在一個實施例中,在圖片層級、圖塊層級、切片層級或其組合中選擇多個適應參數集合(Adaptation Parameter Set,簡稱 APS),且在 CTB 層級從該多個 APS 中選擇目標 APS,用於所述選擇目標固定濾波器集合的步驟。In one embodiment, multiple Adaptation Parameter Sets (APSs) are selected at the image level, tile level, slice level, or a combination thereof, and a target APS is selected from the multiple APSs at the CTB level for the step of selecting the target fixed filter set.

在一個實施例中,在圖片層級、圖塊層級、切片層級或其組合中信令或解析一個標誌,用於在該 CTB 層級控制使用固定濾波,且固定濾波的使用是針對該濾波器類型組,其進一步包括亮度 ALF。在一個實施例中,該標誌用於控制是否在 CTB 層級啟用固定濾波器集合的選擇。在另一個實施例中,該標誌用於指示僅選擇一個固定濾波器集合。在另一個實施例中,該標誌用於在 CTB 層級啟用適應參數集合(Adaptation Parameter Set,簡稱 APS)ID 和 APS 濾波器集合的選擇。在另一個實施例中,該標誌用於指示僅選擇一個 APS(適應參數集合)ID 和 APS 濾波器集合。In one embodiment, a flag is signaled or parsed at the image level, tile level, slice level, or a combination thereof to control the use of fixed filters at that CTB level, and the use of fixed filters is for that filter type group, which further includes luminance ALF. In one embodiment, the flag is used to control whether the selection of a fixed filter set is enabled at the CTB level. In another embodiment, the flag is used to indicate that only one fixed filter set is selected. In yet another embodiment, the flag is used to enable the selection of the Adaptation Parameter Set (APS) ID and the APS filter set at the CTB level. In another embodiment, the flag is used to indicate that only one APS (Adaptive Parameter Set) ID and APS filter set are selected.

在一個實施例中,跨組件模型被選擇為該目標濾波器類型。在一個實施例中,由該跨組件模型生成的樣本直接用作該濾波後的當前塊。In one embodiment, a cross-component model is selected as the target filter type. In another embodiment, the sample generated by the cross-component model is directly used as the current block after filtering.

本發明的組件,如本文中一般描述並在圖中所示,可以以多種不同的配置進行排列和設計。因此,以下對本發明系統和方法的實施例的更詳細描述,僅是對本發明選定實施例的代表性說明,而非旨在限制所請求保護的發明範圍。The components of this invention, as generally described herein and shown in the figures, can be arranged and designed in a variety of different configurations. Therefore, the following more detailed description of embodiments of the invention's system and method is merely a representative illustration of selected embodiments of the invention and is not intended to limit the scope of the claimed invention.

在本說明書中提到的“某一實施例”、“一個實施例”或類似語言,表示與該實施例相關的特定特徵、結構或特性可以包含在本發明的至少一個實施例中。因此,當“在某一實施例中”或“在一個實施例中”這些短語出現在本說明書的不同位置時,並不一定都指的是同一個實施例。The terms “an embodiment,” “an embodiment,” or similar expressions used in this specification indicate that a particular feature, structure, or characteristic associated with that embodiment may be included in at least one embodiment of the invention. Therefore, when the phrases “in an embodiment” or “in an embodiment” appear in different places in this specification, they do not necessarily refer to the same embodiment.

此外,所描述的特徵、結構或特性可以在一個或多個實施例中以任何適合的方式進行組合。然而,相關技術領域的技術人員將認識到,本發明可以在不包含一個或多個具體細節的情況下實施,或者可以使用其他方法、組件等。在某些情況下,為了避免掩蓋本發明的某些方面,未顯示或詳細描述眾所周知的結構或操作。本發明的圖示實施例將通過參考附圖來最好地理解,其中相同的部分在整個圖中以相同的數字標示。以下描述僅作為示例,僅說明與本文所請求保護的發明一致的某些選定的設備和方法實施例。Furthermore, the described features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. However, those skilled in the art will recognize that the invention can be practiced without including one or more specific details, or other methods, components, etc. In some cases, well-known structures or operations are not shown or described in detail to avoid obscuring certain aspects of the invention. The illustrated embodiments of the invention will be best understood by referring to the accompanying drawings, in which the same parts are labeled with the same numbers throughout the figures. The following description is by way of example only, illustrating only certain selected embodiments of apparatus and methods consistent with the invention claimed herein.

在 VVC 中的適應性環路濾波器 (Adaptive Loop Filter, 簡稱 ALF)Adaptive Loop Filter (ALF) in VVC

在 VVC 中,適應性環路濾波器 (ALF) 使用基於塊的濾波器自適應技術進行應用。對於亮度分量,根據局部梯度的方向和活動性,為每個 4×4 塊從 25 個濾波器中選擇一個濾波器。In VVC, the Adaptive Loop Filter (ALF) is applied using block-based filter adaptation technology. For the luminance component, a filter is selected from 25 filters for each 4×4 block based on the direction and activity of the local gradient.

1. 濾波器形狀1. Filter shape

使用了兩種菱形濾波器形狀(如第2圖所示)。7×7 菱形形狀 220 用於亮度分量,而 5×5 菱形形狀 210 用於色度分量。Two rhombus filter shapes were used (as shown in Figure 2). A 7×7 rhombus shape 220 was used for the luminance component, while a 5×5 rhombus shape 210 was used for the chrominance component.

2. 塊分類2. Block Classification

對於亮度分量,每個塊被分類為 25 類中的一類。分類索引 C 是基於其方向性和活動性的量化值派生的,如下所示:For the luminance component, each The block is classified into one of 25 categories. The classification index C is based on its directionality. And the quantitative value of activity Derivatives, as shown below:

為了計算,首先使用一維拉普拉斯算子計算水平方向、垂直方向和兩個對角方向的梯度:In order to calculate and First, the gradients in the horizontal, vertical, and two diagonal directions are calculated using a one-dimensional Laplacian operator:

其中索引指的是塊內左上樣本的座標,表示在座標處的重建樣本。Where index and It refers to The coordinates of the top left sample within the block. Indicates coordinates The reconstructed sample at the location.

為了降低塊分類的複雜性,對垂直方向(第3A圖)和水平方向(第3B圖)應用子採樣的一維拉普拉斯計算。如第3C-D圖所示,相同的子採樣位置用於所有方向的梯度計算(第3C圖中的和第3D圖中的)。To reduce the complexity of block classification, one-dimensional Laplacian calculations using subsampling are applied to the vertical direction (Figure 3A) and the horizontal direction (Figure 3B). As shown in Figures 3C-D, the same subsampling locations are used for gradient calculations in all directions (Figure 3C). And in the 3D diagram ).

然後,水平方向和垂直方向梯度的最大值和最小值設置為:then, The maximum and minimum values of the horizontal and vertical gradients are set as follows:

, ,

兩個對角方向的梯度的最大值和最小值設定為:The maximum and minimum values of the gradients in the two diagonal directions are set as follows:

, , .

為了推導方向性值,這些值彼此比較並與兩個閾值進行比較:In order to derive the directionality value These values are compared with each other and with two threshold values. and Comparison:

步驟1. 如果均為真,則設定為Step 1. If and If all are true, then Set to .

步驟2. 如果,則繼續步驟3;否則繼續步驟4。Step 2. If If yes, proceed to step 3; otherwise, proceed to step 4.

步驟3. 如果,則設定為;否則設定為Step 3. If Then Set to Otherwise Set to .

步驟4. 如果,則設定為;否則設定為Step 4. If Then Set to Otherwise Set to .

活動值計算為:Activity Value The calculation is as follows:

進一步量化到0到4的範圍(包含),量化值表示為 Further quantization to the range of 0 to 4 (inclusive), the quantized value is represented as .

對於圖片中的色度分量,不進行分類。The chromaticity components in the image are not categorized.

3. 濾波器係數和裁剪值的幾何變換3. Geometric transformations of filter coefficients and clipping values

在濾波每個4×4亮度塊之前,根據為該塊計算的梯度值,對濾波器係數和相應的濾波器裁剪值應用幾何變換,例如旋轉或對角和垂直翻轉。這等同於對濾波支撐區域中的樣本應用這些變換。其目的是通過對齊方向性,使應用ALF的不同塊更加相似。Before filtering each 4×4 luminance block, the filter coefficient is adjusted based on the gradient value calculated for that block. and the corresponding filter clipping value Apply geometric transformations, such as rotation or diagonal and vertical flipping. This is equivalent to applying these transformations to the samples in the filter support region. The aim is to make the different blocks applying ALF more similar through alignment directionality.

引入了三種幾何變換,包含對角翻轉、垂直翻轉和旋轉:Three geometric transformations are introduced, including diagonal rotation, vertical rotation, and rotation:

對角翻轉(Diagonal): Diagonal flip:

垂直翻轉(Vertical flip):,,Vertical flip: , ,

旋轉(Rotation):,,Rotation: , ,

其中是濾波器的大小,是係數座標,使得位置位於左上角,位置位於右下角。根據為該塊計算的梯度值,轉換應用於濾波器係數 f (k, l) 和裁剪值。轉換與四個方向的四個梯度之間的關係總結在以下表格中。in It's the size of the filter. These are coefficient coordinates that make the position Located in the upper left corner, position Located in the bottom right corner. Based on the gradient value calculated for this block, the transformation is applied to the filter coefficient f(k, l) and the clipping value. The relationship between the transformation and the four gradients in the four directions is summarized in the table below.

表1. 為一個塊計算的梯度(Gradient)與轉換(Transformation)的映射 Gradient values Transformation Transpose indexes gd2< gd1 and gh< gv No transformation 0 gd2< gd1 and gv< gh Diagonal 1 gd1< gd2 and gh< gv Vertical flip 2 gd1< gd2 and gv< gh Rotation 3 Table 1. Mapping of gradients and transformations calculated for a block. Gradient values Transformation Transpose indexes g d2 < g d1 and g h < g v No transformation 0 g d2 < g d1 and g v < g h Diagonal 1 g d1 < g d2 and g h < g v Vertical flip 2 g d1 < g d2 and g v < g h Rotation 3

4. 濾波過程4. Filtering process

在解碼器端,當 ALF 在 CTB 中啟用時,CU 中的每個樣本都會被濾波,結果生成樣本值,如下所示:At the decoder end, when ALF is enabled in CTB, each sample in CU All will be filtered, resulting in the generation of sample values. As shown below:

其中表示解碼的濾波器係數,是裁剪函數,表示解碼的裁剪參數。變數 k 和 l 的範圍在 -L/2 到 L/2 之間,其中 L 表示濾波器的長度。裁剪函數對應於函數。裁剪操作引入非線性,使 ALF 更高效,通過減少與當前樣本值差異過大的鄰近樣本值的影響來提高性能。in This indicates the filter coefficients for decoding. It is a clipping function. This represents the clipping parameters for decoding. The variables k and l range from -L/2 to L/2, where L represents the length of the filter. Clipping function. Corresponding to a function The pruning operation introduces nonlinearity, making ALF more efficient by reducing the influence of neighboring sample values that differ too much from the current sample value.

5. 跨組件適應性環路濾波器5. Cross-component adaptive loop filter

CC-ALF 使用亮度樣本值來細化(refine)每個色度組件,方法是對亮度通道應用適應性線性濾波器,然後使用該濾波操作的輸出進行色度細化。第4A圖提供了 CC-ALF 過程相對於 SAO、亮度 ALF 和色度 ALF 過程的系統層級圖。如第4A圖所示,每個顏色組件(即 Y、Cb 和 Cr)由其相應的 SAO(即 SAO Luma 410、SAO Cb 412 和 SAO Cr 414)處理。在 SAO 之後,ALF Luma 420 被應用於 SAO 處理的亮度,而 ALF Chroma 430 被應用於 SAO 處理的 Cb 和 Cr。然而,存在從亮度到色度組件的跨組件項(即 CC-ALF Cb 422 和 CC-ALF Cr 424)。跨組件 ALF 的輸出分別通過加法器 432 和 434 添加到 ALF Chroma 430 的輸出中。CC-ALF uses luminance sample values to refine each chromaticity component by applying an adaptive linear filter to the luminance channel and then using the output of that filter operation for chromaticity refinement. Figure 4A provides a system hierarchy diagram of the CC-ALF process relative to the SAO, luminance ALF, and chromaticity ALF processes. As shown in Figure 4A, each color component (i.e., Y, Cb, and Cr) is processed by its corresponding SAO (i.e., SAO Luma 410, SAO Cb 412, and SAO Cr 414). Following the SAO, ALF Luma 420 is applied to the luminance processed by the SAO, while ALF Chroma 430 is applied to the Cb and Cr processed by the SAO. However, there are cross-component terms from luminance to chrominance components (i.e., CC-ALF Cb 422 and CC-ALF Cr 424). The outputs of the cross-component ALF are added to the outputs of the ALF Chroma 430 via adders 432 and 434, respectively.

在 CC-ALF 中的濾波是通過對亮度通道應用線性、菱形形狀的濾波器(例如第4B圖中的濾波器 440 和 442)來完成的。在第4B圖中,空白圓圈表示亮度樣本,點填充圓圈表示色度樣本。每個色度通道使用一個濾波器,操作表達如下:In CC-ALF, filtering is accomplished by applying linear, diamond-shaped filters (such as filters 440 and 442 in Figure 4B) to the luminance channel. In Figure 4B, blank circles represent luminance samples, and dot-filled circles represent chrominance samples. One filter is used for each chrominance channel, as shown below:

其中是正在被細化的色度組件 i 的位置,是基於的亮度位置,是亮度組件中的濾波器支持區域,表示濾波器係數。in This is the position of the chroma component i being refined. It is based on The brightness position, This is the filter support area in the brightness component. This indicates the filter coefficient.

如第4B圖所示,亮度濾波器支持區域是與當前色度樣本共置的區域,考慮到亮度和色度平面之間的空間縮放因子。在第4B圖中,圓圈表示亮度樣本,而點填充圓圈表示正在被細化的色度樣本。As shown in Figure 4B, the luminance filter support region is the region co-located with the current chrominance sample, taking into account the spatial scaling factor between the luminance and chrominance planes. In Figure 4B, circles represent luminance samples, while dot-filled circles represent chrominance samples being refined.

在 VVC 參考軟體中,CC-ALF 濾波器係數是通過最小化每個色度通道相對於原始色度內容的均方誤差來計算的。為了實現這一點,VVC 測試模型(VVC Test Model,VTM)算法使用了一個與色度 ALF 類似的係數導出過程。具體來說,導出了一個相關矩陣,並使用 Cholesky 分解求解器計算係數,試圖最小化均方誤差度量。在設計濾波器時,每幅圖片最多可以設計和傳輸 8 個 CC-ALF 濾波器。然後在 CTU 基礎上為兩個色度通道指示所得濾波器。In the VVC reference software, CC-ALF filter coefficients are calculated by minimizing the mean square error of each chroma channel relative to the original chroma content. To achieve this, the VVC Test Model (VTM) algorithm uses a coefficient derivation process similar to that of chroma ALF. Specifically, a correlation matrix is derived, and the coefficients are calculated using a Cholesky decomposition solver, attempting to minimize the mean square error metric. Up to eight CC-ALF filters can be designed and transmitted per image during filter design. The resulting filters are then indicated for two chroma channels based on CTU.

CC-ALF 的額外特性包括:Additional features of CC-ALF include:

設計使用 3x4 鑽石形狀,具有 8 個點。The design uses a 3x4 diamond shape with 8 points.

在 APS 中傳輸七個濾波器係數。Seven filter factors are transmitted in APS.

每個傳輸的係數具有 6 位動態範圍,並限制為 2 的冪值。Each transmission coefficient has a 6-bit dynamic range and is limited to a power value of 2.

第八個濾波器係數在解碼器中導出,使濾波器係數之和等於 0。The eighth filter coefficient is derived in the decoder, making the sum of the filter coefficients equal to 0.

APS 可以在切片標頭中被引用。APS can be referenced in the slice header.

CC-ALF 濾波器選擇在 CTU 級別為每個色度組件控制。The CC-ALF filter selection is controlled for each chromaticity component at the CTU level.

水平虛擬邊界的邊界填充使用與亮度 ALF 相同的記憶體訪問模式。The boundary padding for horizontal virtual boundaries uses the same memory access mode as the luminance ALF.

作為額外功能,參考編碼器可以配置為通過配置文件啟用一些基本的主觀調整。啟用後,VTM 會減弱在高 QP 編碼的區域中 CC-ALF 的應用,這些區域要么接近中灰,要么包含大量亮度高頻。在算法上,這是通過在滿足以下任何條件的 CTU 中禁用 CC-ALF 的應用來實現的:As an additional feature, the reference encoder can be configured to enable some basic subjective adjustments via a configuration file. When enabled, the VTM reduces the application of CC-ALF in high-QP encoded areas, which are either close to mid-gray or contain a large number of high-luminance frequencies. Algorithmically, this is achieved by disabling the application of CC-ALF in CTUs that meet any of the following conditions:

切片 QP 值減 1 小於或等於基本 QP 值。The slice QP value minus 1 is less than or equal to the base QP value.

本地對比度大於 ( 1 << ( bitDepth – 2 ) ) – 1 的色度樣本數超過 CTU 高度,其中本地對比度是濾波器支持區域內最大和最小亮度樣本值之間的差異。The number of chromaticity samples with a local contrast greater than (1 << (bitDepth – 2)) – 1 exceeds the CTU height, where local contrast is the difference between the maximum and minimum luminance sample values within the filter's supported area.

超過四分之一的色度樣本在 ( 1 << ( bitDepth – 1 ) ) – 16 和 ( 1 << ( bitDepth – 1 ) ) + 16 之間的範圍More than a quarter of the chroma samples fall within the range of (1 << (bitDepth – 1)) – 16 and (1 << (bitDepth – 1)) + 16.

這項功能的動機是為了提供一些保證,即 CC-ALF 不會放大解碼路徑中較早引入的人工痕跡(這主要是因為 VTM 目前並未明確優化色度主觀質量)。預計替代編碼器實現可能不使用此功能或納入適合其編碼特性的替代策略。The motivation behind this feature is to provide assurance that CC-ALF will not amplify earlier-introduced artifacts in the decoding path (primarily because VTM does not currently explicitly optimize chroma subjective quality). It is anticipated that alternative encoder implementations may not use this feature or will incorporate alternative strategies suited to their encoding characteristics.

6. 濾波器參數信令6. Filter parameter signaling

ALF 濾波器參數在適應參數集合(Adaptation Parameter Set,APS)中被信令(signalled)。在一個 APS 中,最多可以信令 25 組亮度濾波器係數和剪切值索引,以及最多八組色度濾波器係數和剪切值索引。為了減少位元開銷,亮度組件的不同分類的濾波器係數可以合併。在切片標頭中,信令用於當前切片的 APS 的索引。ALF filter parameters are signaled in the Adaptation Parameter Set (APS). Within an APS, up to 25 sets of luma filter coefficients and cutoff value indices, and up to eight sets of chroma filter coefficients and cutoff value indices can be signaled. To reduce bit overhead, filter coefficients for different categories of luma components can be merged. In the slice header, the signaling is used to index the APS for the current slice.

從 APS 解碼的剪切值索引,允許使用剪切值表為亮度和色度組件確定剪切值。這些剪切值取決於內部位深。更確切地說,剪切值是通過以下公式獲得的:The clipping value index from APS decoding allows the use of a clipping value table to determine clipping values for the luma and chroma components. These clipping values depend on the depth of the internal components. More precisely, the clipping values are obtained using the following formula:

AlfClip AlfClip

其中 B 等於內部位深,(α 是一個預定義的常數值等於 2.35,N 等於 4,這是 VVC 中允許的剪切值數量。然後將 AlfClip 四捨五入到最接近的 2 的冪格式的值。Where B equals the internal depth, (α is a predefined constant value equal to 2.35, N equals 4, which is the number of clipping values allowed in VVC. Then AlfClip is rounded to the nearest millisecond value of 2.

在切片標頭中,最多可以信令 7 個 APS 索引以指定用於當前切片的亮度濾波器集。濾波過程可以在 CTB 級別進一步控制。始终信令一個標誌以指示是否對亮度 CTB 應用 ALF。亮度 CTB 可以在 16 個固定濾波器集和 APS 中的濾波器集之間選擇一個濾波器集。為亮度 CTB 信令一個濾波器集索引以指示應用哪個濾波器集。16 個固定濾波器集是預定義的並且在編碼器和解碼器中硬編碼的。In the slice header, up to 7 APS indices can be signaled to specify the luma filter set used for the current slice. The filtering process can be further controlled at the CTB level. Always signal a flag to indicate whether ALF is applied to the luma CTB. The luma CTB can select a filter set between 16 fixed filter sets and filter sets in the APS. Signal a filter set index for the luma CTB to indicate which filter set is applied. The 16 fixed filter sets are predefined and hard-coded in the encoder and decoder.

對於色度組件,在切片標頭中信令一個 APS 索引以指示用於當前切片的色度濾波器集。在 CTB 級別,如果 APS 中有多個色度濾波器集,則為每個色度 CTB 信令一個濾波器索引。For chroma components, an APS index is signaled in the slice header to indicate the set of chroma filters used for the current slice. At the CTB level, if there are multiple chroma filter sets in the APS, a filter index is signaled for each chroma CTB.

濾波器係數以 128 為標準量化。為了限制乘法複雜性,應用位元流一致性,使得非中心位置的係數值在 −27到 27− 1 的範圍內,包括。中心位置的係數在位元流中未被信令,並被視為等於 128。The filter coefficients are quantized to a standard of 128. To limit multiplication complexity, bitstream consistency is applied so that coefficient values at non-center locations are in the range of -2^ 7 to 2 ^7 - 1, inclus. The coefficients at the center location are not signaled in the bitstream and are treated as equal to 128.

適應性環路濾波器在 ECMAdaptive loop filters in ECM

在 ECM8(Muhammed Coban 等人,“增強壓縮模型 8 (ECM 8) 的算法描述”,國際電信聯盟 ITU-T SG 16 WP 3 和國際標準化組織 ISO/IEC JTC 1/SC 29 的聯合影片專家小組 (JVET),第 29 次會議,通過電話會議,2023 年 1 月 11 日至 20 日,文件:JVET-AC2025),披露了一些從 VVC ALF 的變化。以下是一個簡要概述。In ECM8 (Muhammed Coban et al., “Algorithmic description of Augmented Compression Model 8 (ECM 8)”, Joint Video Expert Group (JVET) of the International Telecommunication Union ITU-T SG 16 WP 3 and the International Organization for Standardization ISO/IEC JTC 1/SC 29, 29th Meeting, by teleconference, 11-20 January 2023, document: JVET-AC2025), some changes from VVC ALF were disclosed. A brief overview follows.

1. ALF 簡化移除1. Simplified removal of ALF

ALF 梯度子採樣和 ALF 虛擬邊界處理被移除。分類的塊大小從 4x4 減小到 2x2。信令的亮度和色度的濾波器大小增加到 9x9。ALF gradient subsampling and ALF virtual boundary processing have been removed. The classification block size has been reduced from 4x4 to 2x2. The signaling luminance and chrominance filter sizes have been increased to 9x9.

2. 固定濾波器的 ALF2. Fixed Filter ALF

為了濾波亮度樣本,使用了三種不同的分類器(C0、C1和 C2)以及三組不同的濾波器集合(F0、F1和 F2)。集合 F0和 F1包含固定濾波器,其係數是針對分類器 C0和 C1訓練的。F2中濾波器的係數是信令的。對於給定樣本,使用分類器 Ci[equationId74]分配的類別決定從集合 Fi中使用哪個濾波器。To filter the brightness samples, three different classifiers ( C0 , C1 , and C2 ) and three different filter sets ( F0 , F1 , and F2 ) were used. Sets F0 and F1 contain fixed filters whose coefficients are trained with respect to classifiers C0 and C1 . The coefficients of the filters in F2 are signaled. For a given sample, the class is assigned using classifier Ci [equationId74]. Determine which filter to use from set F i .

3. 濾波3. Filtering

首先,應用兩個 13x13 鑽石形狀的固定濾波器 F0和 F1以導出兩個中間樣本。之後,將 F2應用於和鄰近樣本以導出濾波後的樣本,如下所示:First, two 13x13 diamond-shaped fixed filters, F0 and F1, are applied to derive two intermediate samples. and Then, F2 will be applied to... , The filtered sample is derived from neighboring samples, as shown below:

其中是鄰近樣本與當前樣本之間的裁剪差值,與當前樣本之間的裁剪差值。濾波器係數是信令的。in It is the neighboring sample and the current sample The difference in cutting between them, yes The cropping difference between the current sample and the current sample. Filter coefficient. It's a signaling signal.

4. 分類4. Classification

基於方向性和活動性,為每個 2x2 區塊分配一個類別Based on directionality and activity Assign a category to each 2x2 block. :

,

其中表示方向性的總數。 如同在 VVC 中,使用一維拉普拉斯算子(1-D Laplacian)計算每個樣本的水平、垂直和兩個對角梯度值。目標 2x2 區塊所覆蓋的 4×4 窗口內樣本梯度的總和用於分類器 C0,而 12×12 窗口內樣本梯度的總和用於分類器 C1和 C2。水平、垂直和兩個對角梯度的總和分別表示為。方向性是通過比較以下內容確定的:in Indicates directionality The sum of the gradients is calculated using a 1-D Laplacian operator, similar to VVC. The sum of gradients for each sample within a 4×4 window covered by the target 2x2 block is used for classifier C0 , while the sum of gradients for samples within a 12×12 window is used for classifiers C1 and C2 . The sums of the horizontal, vertical, and diagonal gradients are expressed as follows: , , and Directionality It was determined by comparing the following:

使用一組閾值。方向性是根據 VVC 中的閾值 2 和 4.5 推導出的。對於,首先計算水平/垂直邊緣強度和對角線邊緣強度。使用閾值。如果,則邊緣強度為 0;否則,是使成立的最大整數。若,則邊緣強度為 0;否則,是使成立的最大整數。當,即水平/垂直邊緣占主導時,使用表2A推導;否則,對角線邊緣占主導,使用表2B推導Use a set of thresholds. Directionality It is derived from the thresholds 2 and 4.5 in VVC. For and First, calculate the horizontal/vertical edge strength. Diagonal edge strength Use threshold value .if Then the edge strength If it is 0; otherwise, Is to make The largest integer that holds true. If Then the edge strength If it is 0; otherwise, Is to make The largest integer that holds true. When When the horizontal/vertical edges are dominant, the derivation can be done using Table 2A. Otherwise, the diagonal edge dominates, and the derivation can be performed using Table 2B. .

表2A.的映射    0 1 2 3 4 5 6 0 0 0 0 0 0 0 0 1 1 2 0 0 0 0 0 2 3 4 5 0 0 0 0 3 6 7 8 9 0 0 0 4 10 11 12 13 14 0 0 5 15 16 17 18 19 20 0 6 21 22 23 24 25 26 27 Table 2A. and arrive mapping 0 1 2 3 4 5 6 0 0 0 0 0 0 0 0 1 1 2 0 0 0 0 0 2 3 4 5 0 0 0 0 3 6 7 8 9 0 0 0 4 10 11 12 13 14 0 0 5 15 16 17 18 19 20 0 6 twenty one twenty two twenty three twenty four 25 26 27

表2B.的映射     0 1 2 3 4 5 6 0 28 0 0 0 0 0 0 1 29 30 0 0 0 0 0 2 31 32 33 0 0 0 0 3 34 35 36 37 0 0 0 4 38 39 40 41 42 0 0 5 43 44 45 46 47 48 0 6 49 50 51 52 53 54 55 Table 2B. and arrive mapping 0 1 2 3 4 5 6 0 28 0 0 0 0 0 0 1 29 30 0 0 0 0 0 2 31 32 33 0 0 0 0 3 34 35 36 37 0 0 0 4 38 39 40 41 42 0 0 5 43 44 45 46 47 48 0 6 49 50 51 52 53 54 55

為了獲得,將垂直和水平梯度的總和映射到 0 到的範圍,其中對於為 4,對於為 15。In order to obtain The sum of the vertical and horizontal gradients Mapping to 0 The range, of which For It is 4, for and It is 15.

在 ALF_APS 中,最多可信令 4 組亮度濾波器集合,每組最多可包含 25 個濾波器。In ALF_APS, a maximum of 4 sets of luminance filter groups can be trusted, with each group containing up to 25 filters.

卷積跨組件模型(Convolutional Cross-Component Model,簡稱 CCCM)Convolutional Cross-Component Model (CCCM)

該卷積 7-抽頭濾波器由一個 5-抽頭加號形狀的空間組件、一個非線性項和一個偏置項組成。濾波器的空間 5-抽頭組件的輸入包括與要預測的色度樣本共址的中心(C)亮度樣本,以及其上方/北(N)、下方/南(S)、左側/西(W)和右側/東(E)的鄰居,如第5圖所示。The convolutional 7-tap filter consists of a 5-tap plus sign-shaped spatial component, a nonlinear term, and a bias term. The input to the filter's spatial 5-tap component includes the center (C) luminance sample co-located with the chromaticity sample to be predicted, as well as its above/north (N), below/south (S), left/west (W), and right/east (E) neighbors, as shown in Figure 5.

非線性項(表示為 P)表示為中心亮度樣本 C 的平方,並縮放到內容的樣本值範圍內:The nonlinear term (denoted as P) is represented as the square of the center brightness sample C, and is compressed into the range of sample values for the content:

P = ( C*C + midVal ) >> bitDepth.P = ( C*C + midVal ) >> bitDepth.

也就是說,對於10位元內容,其計算方式為:In other words, for 10-bit content, the calculation method is as follows:

P = ( C*C + 512 ) >> 10P = (C*C + 512) >> 10

偏置項(表示為 B)表示輸入與輸出之間的標量偏移(類似於 CCLM 中的偏移項),並設置為中間色度值(對於10位元內容為512)。The offset (denoted as B) represents the scalar offset between the input and output (similar to the offset in CCLM) and is set to the intermediate chroma value (512 for 10-bit content).

濾波器的輸出通過濾波器係數 ci與輸入值的卷積計算得出,並裁剪到有效色度樣本的範圍內:The filter output is calculated by convolving the filter coefficient ci with the input value and then cropping it to the range of the effective chromaticity samples.

predChromaVal = c0C  + c1N  + c2S  + c3E  + c4W  + c5P  + c6BpredChromaVal = c 0 C + c 1 N + c 2 S + c 3 E + c 4 W + c 5 P + c 6 B

1. 濾波器係數的計算1. Calculation of filter coefficients

濾波器係數 ci通過最小化參考區域內預測色度樣本與重建色度樣本之間的均方誤差(MSE)來計算。第6圖說明了參考區域,其由PU(預測單元)上方和左側的6行色度樣本組成。參考區域(Reference area)向右延伸一個PU寬度,向下延伸一個PU高度,超出PU邊界。該區域會調整以僅包含可用樣本。藍色顯示的區域擴展是為了支持“加號形空間濾波器”的“側樣本”,並在不可用區域中進行填充。The filter coefficient ci is calculated by minimizing the mean square error (MSE) between the predicted and reconstructed chromaticity samples within the reference area. Figure 6 illustrates the reference area, which consists of six rows of chromaticity samples above and to the left of the PU (prediction unit). The reference area extends one PU width to the right and one PU height downward, beyond the PU boundary. This area is adjusted to include only usable samples. The area expansion shown in blue is to support the "side samples" of the "plus sign spatial filter" and to fill in unusable areas.

MSE 最小化通過計算亮度輸入的自相關矩陣以及亮度輸入與色度輸出的互相關向量來執行。自相關矩陣進行 LDL 分解,最終濾波器係數通過回代計算得出。該過程大致遵循 ECM 中 ALF 濾波器係數的計算,但選擇了 LDL 分解而非 Cholesky 分解,以避免使用平方根運算。MSE minimization is performed by calculating the autocorrelation matrix of the luminance input and the cross-correlation vector between the luminance input and the chrominance output. The autocorrelation matrix is decomposed using LDL, and the final filter coefficients are calculated by back substitution. This process largely follows the calculation of ALF filter coefficients in ECM, but LDL decomposition is chosen instead of Cholesky decomposition to avoid the use of square root operations.

自相關矩陣是使用亮度和色度樣本的重建值計算的。這些樣本是全範圍的(例如,對於10位元內容,範圍在0到1023之間),導致自相關矩陣中的值相對較大。這需要在模型參數計算期間進行高位深度運算。建議在每個模型的每個PU中移除亮度和色度樣本的固定偏移。這降低了模型創建中使用值的幅度,並允許減少固定點運算所需的精度。因此,建議使用16位小數精度,而不是原始 CCCM 實現中的22位精度。The autocorrelation matrix is calculated using reconstructed values from luma and chromaticity samples. These samples are full-range (e.g., between 0 and 1023 for 10-bit content), resulting in relatively large values in the autocorrelation matrix. This necessitates high-bit depth operations during model parameter calculations. It is recommended to remove the fixed offsets of the luma and chromaticity samples from each PU in each model. This reduces the magnitude of the values used in model creation and allows for a reduction in the precision required for fixed-point operations. Therefore, 16-bit decimal precision is recommended instead of the 22-bit precision used in the original CCCM implementation.

PU 左上角外部的參考樣本值用作偏移量(offsetLuma、offsetCb 和 offsetCr),以簡化操作。在模型創建和最終預測中使用的樣本值(即,參考區域中的亮度和色度,以及當前PU中的亮度)通過以下方式減去這些固定值:Reference sample values outside the top left corner of the PU are used as offsets (offsetLuma, offsetCb, and offsetCr) to simplify operations. The sample values used in model creation and final prediction (i.e., the luminance and chromaticity in the reference region, and the luminance in the current PU) are subtracted from these fixed values by:

C' = C – offsetLumaC' = C – offsetLuma

N' = N – offsetLumaN' = N – offsetLuma

S' = S – offsetLumaS' = S – offsetLuma

E' = E – offsetLumaE' = E – offsetLuma

W' = W – offsetLumaW' = W – offsetLuma

P' = nonLinear(C')P' = nonLinear(C')

B = midValue = 1 << (bitDepth - 1)B = midValue = 1 << (bitDepth - 1)

色度值使用以下公式進行預測,其中 offsetChroma 分別等於 Cr 和 Cb 組件的 offsetCr 和 offsetCb:Chromaticity values are predicted using the following formulas, where offsetChroma is equal to offsetCr and offsetCb for the Cr and Cb components, respectively:

predChromaVal = c0C'  + c1N'  + c2S'  + c3E'  + c4W'  + c5P'  + c6B  + offsetChroma.predChromaVal = c 0 C' + c 1 N' + c 2 S' + c 3 E' + c 4 W' + c 5 P' + c 6 B + offsetChroma.

為了避免任何額外的樣本級操作,在亮度參考樣本插值期間移除亮度偏移。例如,可以通過用包含捨入項和 offsetLuma 的更新偏移替代亮度參考樣本插值中使用的捨入項來完成此操作。色度偏移可以通過直接從參考色度樣本中扣除色度偏移來移除。作為替代方法,可以從跨組件向量中移除色度偏移的影響,從而獲得相同的結果。為了將色度偏移添加回卷積預測操作的輸出,將色度偏移添加到卷積模型的偏置項中。To avoid any additional sample-level operations, the luminance offset is removed during luminance reference sample interpolation. For example, this can be done by replacing the rounding used in luminance reference sample interpolation with an updated offset that includes rounding and offsetLuma. Chroma offsets can be removed by subtracting the chroma offset directly from the reference chroma sample. Alternatively, the effect of the chroma offset can be removed from the cross-component vectors to achieve the same result. To add the chroma offset back to the output of the convolution prediction operation, the chroma offset is added to the bias term of the convolution model.

CCCM 模型參數計算過程需要進行除法運算。除法運算並不總是被認為是實現友好的。除法運算被替換為乘法(帶有比例因子)和移位運算,其中比例因子和移位次數根據分母計算,類似於 CCLM 參數計算中使用的方法。The CCCM model parameter calculation process requires division operations. Division operations are not always considered implementation-friendly. Division operations are replaced by multiplication (with scaling factors) and shift operations, where the scaling factor and the number of shifts are calculated based on the denominator, similar to the method used in CCLM parameter calculations.

建議的方法Suggested methods

與跨組件模型和固定濾波器相關的濾波器抽頭Filter taps associated with cross-component models and fixed filters

在一種實施例中,為了利用固定濾波器結果和通過將跨組件模型應用於亮度樣本生成的色度樣本,進行具有信令係數的色度 ALF 濾波過程,可以應用以下步驟(即,將跨組件模型應用於固定濾波器結果):In one embodiment, to perform a chromatic ALF filtering process with signaling coefficients using the results of a fixed filter and chromaticity samples generated by applying a cross-component model to the luminance samples, the following steps can be applied (i.e., applying a cross-component model to the results of the fixed filter):

- 使用固定濾波器分類器進行分類- Classification using a fixed filter classifier

- 通過固定濾波器係數集合進行濾波,其中固定濾波器係數集合未在位元流中信令- Filtering is performed using a fixed set of filter factors, where the fixed set of filter factors does not signal in the bit stream.

- 通過鄰近參考區域和/或當前塊的亮度固定濾波器結果和色度固定濾波器結果導出亮度到色度的跨組件模型係數- Derive the luminance-to-chrominance cross-component model coefficients using the luminance fixed filter results and chrominance fixed filter results from the nearest reference region and/or the current block.

- 通過將亮度到色度的跨組件模型應用於當前塊的亮度固定濾波器結果,導出當前塊的色度樣本- By applying a cross-component model from luminance to chrominance to the luminance-fixed filter result of the current block, the chrominance sample of the current block is derived.

- 使用信令係數,結合色度樣本和來自跨組件模型的色度樣本進行色度濾波過程。- Use signaling coefficients to perform chroma filtering by combining chroma samples and chroma samples from cross-component models.

在上述實施例中,步驟的順序可以改變(例如,將固定濾波應用於來自跨組件模型的樣本):In the above embodiments, the order of steps can be changed (e.g., applying fixed filtering to samples from cross-component models):

- 使用鄰近參考區域和/或當前塊的重建亮度和色度樣本導出亮度到色度的跨組件模型係數- Export luminance-to-chrominance cross-component model coefficients using reconstructed luminance and chrominance samples from neighboring reference regions and/or the current block.

- 通過將亮度到色度的跨組件模型應用於當前塊的亮度樣本,導出當前塊的色度樣本- Export the chromaticity sample of the current block by applying a cross-component model from luminance to chrominance to the luminance sample of the current block.

- 使用固定濾波器分類器對來自跨組件模型的色度樣本進行分類- Classify chromaticity samples from across component models using a fixed filter classifier.

- 通過固定濾波器係數集合對來自跨組件模型的色度樣本進行濾波,其中固定濾波器係數集合未在位元流中信令- Chromaticity samples from cross-component models are filtered using a fixed set of filter coefficients, where the fixed set of filter coefficients is not signaled in the bit stream.

- 使用信令係數,結合色度樣本和來自跨組件模型的固定濾波色度樣本進行色度濾波過程。- Use signaling coefficients to perform chroma filtering by combining chroma samples with fixed filtered chroma samples from cross-component models.

在上述實施例中,步驟“使用固定濾波器分類器進行分類”可以是以下之一或其組合:In the above embodiments, the step "classification using a fixed filter classifier" can be one of the following or a combination thereof:

- 對色度樣本應用基於固定濾波器分類器的分類- Classification of chromaticity samples using a fixed filter classifier

- 對亮度樣本應用基於固定濾波器分類器的分類- Classification of luminance samples based on a fixed filter classifier

固定濾波器分類器與亮度固定濾波器分類器相同The fixed filter classifier is the same as the brightness fixed filter classifier.

固定濾波器分類器是亮度固定濾波器分類器的子集,其中“亮度固定濾波器分類器的子集”指的是與亮度固定濾波器分類器相比,類別數量較少、方向性較少和/或活動性較少。Fixed filter classifiers are a subset of brightness fixed filter classifiers. A "subset of brightness fixed filter classifiers" means that, compared to brightness fixed filter classifiers, they have fewer categories, less directionality, and/or less mobility.

固定濾波器分類器與亮度固定濾波器分類器不同。Fixed filter classifiers are different from brightness fixed filter classifiers.

在上述實施例中,在“使用固定濾波器係數集合進行濾波,其中固定濾波器係數集合未在位元流中信令”的步驟中,固定濾波器係數集合可以是以下或以下的組合:In the above embodiment, in the step of "using a fixed filter coefficient set for filtering, wherein the fixed filter coefficient set is not signaled in the bit stream", the fixed filter coefficient set can be the following or a combination of the following:

固定濾波器係數集合與亮度固定濾波器係數集合相同。The set of fixed filter coefficients is the same as the set of fixed brightness filter coefficients.

固定濾波器係數集合是亮度固定濾波器係數集合的子集。The set of fixed filter coefficients is a subset of the set of fixed brightness filter coefficients.

固定濾波器係數集合與亮度固定濾波器係數集合不同。The set of fixed filter coefficients is different from the set of fixed brightness filter coefficients.

當使用固定濾波器係數集合對色度樣本進行濾波時,濾波器選擇由以下或以下的組合決定:When using a fixed set of filter coefficients to filter chromaticity samples, the filter selection is determined by one or a combination of the following:

色度固定濾波器分類結果。Classification results of chromaticity fixed filter.

相應的亮度固定濾波器分類結果。The corresponding brightness fixed filter classification results.

在上述實施例中,也可以應用色度到亮度的跨組件模型,這意味著利用亮度樣本,通過將跨組件模型應用於色度樣本,用於亮度適應性環路濾波器(Adaptive Loop Filter,簡稱 ALF)或跨組件 ALF(Cross-Component ALF,簡稱 CCALF)的濾波過程,並使用信令的係數,可以執行以下步驟:In the above embodiments, a chroma-to-luminance cross-component model can also be applied. This means that by using luminance samples and applying the cross-component model to chroma samples for the luminance adaptive loop filter (ALF) or cross-component ALF (CCALF) filtering process, and using signaling coefficients, the following steps can be performed:

使用固定濾波器分類器進行分類。Classification is performed using a fixed filter classifier.

使用固定濾波器係數集合進行濾波,其中固定濾波器係數集合未在位元流中信令。Filtering is performed using a fixed set of filter coefficients, where the fixed set of filter coefficients is not signaled in the bit stream.

通過鄰近參考區域和/或當前塊的色度固定濾波器結果和亮度固定濾波器結果,推導色度到亮度的跨組件模型的係數。The coefficients of the cross-component model from chromaticity to luminance are derived by using the results of the chromaticity fixed filter and the luminance fixed filter for the nearest reference region and/or the current block.

通過將色度固定濾波器結果應用於當前塊的色度到亮度的跨組件模型,推導當前塊的亮度樣本。The luminance sample of the current block is derived by applying the results of the chromaticity fixed filter to the cross-component model of the chromaticity to luminance of the current block.

使用信令的係數,通過亮度樣本以及來自跨組件模型的亮度樣本進行亮度 ALF 或 CCALF 濾波過程。Using signaling coefficients, a luminance ALF or CCALF filtering process is performed using luminance samples and luminance samples from cross-component models.

在上述實施例中,用於推導跨組件模型係數的鄰近參考區域的重建亮度和色度樣本可以是應用 ALF 濾波過程之前的樣本或應用 ALF 濾波過程之後的樣本。In the above embodiments, the reconstructed luminance and chromaticity samples of the nearest reference region used to derive the cross-component model coefficients can be samples before or after the application of the ALF filtering process.

在上述實施例中,用於推導跨組件模型樣本的當前塊的重建亮度或色度樣本可以是應用 ALF 濾波過程之前的樣本或應用 ALF 濾波過程之後的樣本。In the above embodiments, the reconstructed luminance or chromaticity sample of the current block used to derive the cross-component model sample can be a sample before or after the application of the ALF filtering process.

在上述實施例中,“使用鄰近參考區域和/或當前塊的亮度固定濾波器結果和色度固定濾波器結果推導亮度到色度的跨組件模型的係數”的步驟可以是以下或以下的組合:In the above embodiments, the step of "deriving the coefficients of the cross-component model from luminance to chrominance using the results of the luminance fixed filter and the chrominance fixed filter of the nearest reference region and/or the current block" can be the following or a combination of the following:

使用鄰近參考區域和/或當前塊的亮度固定濾波器結果和重建色度樣本推導亮度到色度的跨組件模型的係數。The coefficients of the cross-component model of luminance to chrominance are derived using the results of the luminance fixed filter of the nearest reference region and/or the current block and the reconstructed chrominance sample.

使用鄰近參考區域和/或當前塊的重建亮度樣本和色度固定濾波器結果推導亮度到色度的跨組件模型的係數。The coefficients of the cross-component model for luminance to chrominance are derived using reconstructed luminance samples and chrominance fixed filter results from neighboring reference regions and/or the current block.

在上述實施例中,“通過將亮度固定濾波器結果應用於當前塊的亮度到色度的跨組件模型,推導當前塊的色度樣本”的步驟可以是以下或以下的組合:In the above embodiment, the step of "deriving the chromaticity sample of the current block by applying the results of the luminance-fixed filter to the cross-component model of luminance to chromaticity of the current block" can be the following or a combination of the following:

通過將亮度到色度的跨組件模型應用於當前塊的重建亮度樣本,推導當前塊的色度樣本。The chromaticity sample of the current block is derived by applying a cross-component model from luminance to chrominance to the reconstructed luminance sample of the current block.

ALF 附加模式ALF Additional Mode

在 ECM ALF 中,切片和 CTB 層級的語法設計如下所示。在以下部分,展示了幾種新的切片和 CTB 層級語法設計:In ECM ALF, the syntactic design of slices and CTB levels is shown below. Several new slice and CTB level syntactic designs are illustrated in the following sections:

亮度 ALF:Brightness ALF:

切片層級:開/關、APS 的數量或 APS ID(最多 7 個)。Slice level: On/Off, number of APS or APS IDs (up to 7).

CTB 層級:關閉、固定濾波器集合(從 2 個中選擇 1 個)或 APS ID 和 APS 濾波器集合。CTB Levels: Off, Fixed Filter Set (choose 1 of 2), or APS ID and APS Filter Set.

色度 ALF:Chromaticity ALF:

切片層級:開/關(Cb 和 Cr 分開),1 個 APS ID(Cb 和 Cr 共用)。Slicing level: On/Off (Cb and Cr are separate), 1 APS ID (shared by Cb and Cr).

CTB 層級:關閉、APS 濾波器集合(最多 1 個)(Cb 和 Cr 分開)。CTB level: Off, APS filter set (maximum 1) (Cb and Cr separated).

CCALF:CCALF:

切片層級:開/關(Cb 和 Cr 分開),2 個 APS ID(Cb 和 Cr 分開)。Slice level: On/Off (Cb and Cr separated), 2 APS IDs (Cb and Cr separated).

CTB 層級:關閉、APS 濾波器集合(最多 1 個)(Cb 和 Cr 分開)。CTB level: Off, APS filter set (maximum 1) (Cb and Cr separated).

在一個實施例中,可以在 CTB 層級為色度 ALF 和/或 CCALF 選擇固定濾波器集合。In one embodiment, a fixed filter set can be selected for chromatic ALF and/or CCALF at the CTB level.

在一個實施例中,可以在圖片/圖塊/切片層級選擇多個 APS,並且可以在 CTB 層級從這些 APS 中選擇一個 APS 用於色度 ALF 和/或 CCALF。In one embodiment, multiple APSs can be selected at the image/tile/slice level, and one APS can be selected from these APSs at the CTB level for chroma ALF and/or CCALF.

在一個實施例中,可以在 CTB 層級為亮度 ALF、色度 ALF 和/或 CCALF 選擇來自跨組件模型的樣本,和/或來自具有固定濾波的跨組件模型的樣本。In one embodiment, samples from a cross-component model, and/or samples from a cross-component model with fixed filters, can be selected at the CTB level for luminance ALF, chromaticity ALF, and/or CCALF.

在一個實施例中,針對亮度 ALF、色度 ALF 和/或 CCALF,可以在圖片/圖塊/切片層級信令一個標誌,用於控制是否可以在 CTB 層級選擇固定濾波器集合。因此,如果該標誌指示可以在 CTB 層級選擇固定濾波器集合,則可以在 CTB 層級選擇固定濾波器集合和 APS 濾波器集合。否則,僅可以在 CTB 層級選擇 APS 濾波器集合。In one embodiment, a flag can be signaled at the image/tile/slice level for the luma ALF, chroma ALF, and/or CCALF to control whether a fixed filter set can be selected at the CTB level. Therefore, if the flag indicates that a fixed filter set can be selected at the CTB level, then both the fixed filter set and the APS filter set can be selected at the CTB level. Otherwise, only the APS filter set can be selected at the CTB level.

在一個實施例中,針對亮度 ALF、色度 ALF 和/或 CCALF,可以在圖片/圖塊/切片層級信令一個標誌,以指示僅可以在 CTB 層級選擇固定濾波器集合。因此,如果該標誌指示僅可以在 CTB 層級選擇固定濾波器集合,則僅可以在 CTB 層級選擇固定濾波器集合。否則,可以在 CTB 層級選擇固定濾波器集合和 APS 濾波器集合。In one embodiment, for the luma ALF, chroma ALF, and/or CCALF, a flag can be signaled at the image/tile/slice level to indicate that the fixed filter set can only be selected at the CTB level. Therefore, if the flag indicates that the fixed filter set can only be selected at the CTB level, then the fixed filter set can only be selected at the CTB level. Otherwise, both the fixed filter set and the APS filter set can be selected at the CTB level.

在一個實施例中,針對亮度 ALF、色度 ALF 和/或 CCALF,可以在圖片/圖塊/切片層級信令一個標誌,用於控制是否可以在 CTB 層級選擇 APS ID 和 APS 濾波器集合。因此,如果該標誌指示可以在 CTB 層級選擇 APS ID 和 APS 濾波器集合,則可以在 CTB 層級選擇固定濾波器集合和 APS 濾波器集合。否則,僅可以在 CTB 層級選擇固定濾波器集合。In one embodiment, for the luma ALF, chroma ALF, and/or CCALF, a flag can be signaled at the image/tile/slice level to control whether the APS ID and APS filter set can be selected at the CTB level. Therefore, if the flag indicates that the APS ID and APS filter set can be selected at the CTB level, then both the fixed filter set and the APS filter set can be selected at the CTB level. Otherwise, only the fixed filter set can be selected at the CTB level.

在一個實施例中,針對亮度適應性環路濾波器(luma ALF)、色度適應性環路濾波器(chroma ALF)和/或跨組件適應性環路濾波器(Cross-Component ALF,簡稱 CCALF),可以在圖片層級、圖塊層級或切片層級信令一個標誌,以便僅能在編解碼樹塊(Coding Tree Block,簡稱 CTB)層級選擇適應參數集合(Adaptation Parameter Set,簡稱 APS)ID和APS濾波器集合。因此,如果該標誌指示僅能在CTB層級選擇APS ID和APS濾波器集合,則僅能在CTB層級選擇APS ID和APS濾波器集合。否則,固定濾波器集合和APS濾波器集合均可在CTB層級選擇。In one embodiment, for a luma adaptive loop filter (luma ALF), a chroma adaptive loop filter (chroma ALF), and/or a cross-component adaptive loop filter (Cross-Component ALF, or CCALF), a flag can be signaled at the image level, tile level, or slice level to ensure that the Adaptation Parameter Set (APS) ID and APS filter set can only be selected at the Coding Tree Block (CTB) level. Therefore, if the flag indicates that the APS ID and APS filter set can only be selected at the CTB level, then the APS ID and APS filter set can only be selected at the CTB level. Otherwise, both the fixed filter set and the APS filter set can be selected at the CTB level.

在一個實施例中,針對亮度ALF、色度ALF和/或CCALF,可以在圖片層級、圖塊層級或切片層級信令來自不同APS的一組APS濾波器集合,以便僅能在CTB層級選擇這些APS濾波器集合。In one embodiment, for the luma ALF, chroma ALF, and/or CCALF, a set of APS filters can be used at the image level, tile level, or slice level for signaling from different APSs, so that these APS filter sets can only be selected at the CTB level.

範例:有兩個APS,APS0和APS1。對於APS0,有三個濾波器集合。對於APS1,有兩個濾波器集合,APS0 = {0, 1, 2},APS1 = {0, 1},以下顯示兩個切片選擇的範例:Example: There are two APSs, APS0 and APS1. For APS0, there are three filter sets. For APS1, there are two filter sets, APS0 = {0, 1, 2} and APS1 = {0, 1}. The following shows an example of two slice selections:

範例1:切片選擇僅選擇APS0中的濾波器集合0和2,以及APS1中的濾波器集合0。然後,在CTB層級,僅能使用這些濾波器集合(即,APS0’ = {0, 2},APS1’ = {0})。Example 1: Slice selection selects only filter sets 0 and 2 in APS0, and filter set 0 in APS1. Then, at the CTB level, only these filter sets can be used (i.e., APS0’ = {0, 2}, APS1’ = {0}).

範例2:切片選擇僅選擇APS0中的濾波器集合0和2,以及APS1中的濾波器集合0。一個列表包含所有濾波器集合被形成。然後,在CTB層級,僅能使用這些濾波器集合(即,APS’ = {APS0-0, APS1-0, APS0-2})。Example 2: Slice selection selects only filter sets 0 and 2 in APS0, and filter set 0 in APS1. A list containing all filter sets is formed. Then, at the CTB level, only these filter sets can be used (i.e., APS’ = {APS0-0, APS1-0, APS0-2}).

在一個實施例中,可以在CTB層級針對色度ALF和/或CCALF選擇前述部分中描述的跨組件模型。也就是說,由跨組件模型生成的樣本可以直接用作ALF的輸出。In one embodiment, the cross-component model described in the preceding sections can be selected at the CTB level for chroma ALF and/or CCALF. That is, samples generated from the cross-component model can be directly used as the output of ALF.

上述建議的方法可以在編碼器和/或解碼器中實現。例如,建議的方法可以在編碼器的環路濾波模組中實現,和/或在解碼器的環路濾波模組中實現。The proposed method can be implemented in an encoder and/or decoder. For example, the proposed method can be implemented in the loop filter module of an encoder, and/or in the loop filter module of a decoder.

上述任何方法均可在編碼器和/或解碼器中實現。此外,前述統一分類過程的任何方法也可在編碼器和/或解碼器中實現。例如,任何建議的方法可以在編碼器或解碼器的環路濾波器模組(例如,第1A圖和第1B圖中的ILPF 130)中實現。或者,任何建議的方法可以作為電路實現,該電路耦合到編解碼模組的內部模組,和/或運動補償模組,解碼器的合併候選推導模組。簡化的ALF方法也可以使用存儲在媒體(例如硬碟或快閃記憶體)上的可執行軟體或韌體代碼來實現,供中央處理器(Central Processing Unit,簡稱 CPU)或可編程設備(例如數位訊號處理器(Digital Signal Processor,簡稱 DSP)或現場可編程門陣列(Field Programmable Gate Array,簡稱 FPGA))使用。Any of the methods described above can be implemented in an encoder and/or decoder. Furthermore, any method of the aforementioned unified classification process can also be implemented in an encoder and/or decoder. For example, any proposed method can be implemented in the loop filter module of the encoder or decoder (e.g., ILPF 130 in Figures 1A and 1B). Alternatively, any proposed method can be implemented as a circuit coupled to an internal module of the encoder/decoder, and/or a motion compensation module, or a merge candidate derivation module of the decoder. The simplified ALF method can also be implemented using executable software or firmware code stored on media (such as hard drives or flash memory) for use by a central processing unit (CPU) or a programmable device (such as a digital signal processor (DSP) or a field programmable gate array (FPGA)).

第7圖展示了一個示例性影片編解碼系統的流程圖,該系統根據CTB層級的指示選擇固定濾波器集合,用於色度ALF和/或CCALF,根據本發明的一個實施例進行披露。流程圖中顯示的步驟可以作為程式碼執行於一個或多個處理器(例如,一個或多個CPU)上的編碼器端。流程圖中顯示的步驟也可以基於硬體實現,例如一個或多個電子設備或處理器被安排執行流程圖中的步驟。根據該方法,在步驟710中接收重建像素,其中該重建像素包括一個當前塊,且該當前塊包括第一顏色塊和第二顏色塊。在步驟720中,根據在CTB(編解碼樹塊)層級的濾波器選擇指示,從多個固定濾波器集合中選擇目標固定濾波器集合,用於使用濾波器類型組中的目標濾波器類型濾波該當前塊,該濾波器類型組包括色度ALF(適應性環路濾波器)、CCALF(跨組件ALF)或兩者。在步驟730中,將該目標固定濾波器集合應用於該當前塊以生成濾波後的當前塊。在步驟740中,提供該濾波後的當前塊。Figure 7 illustrates a flowchart of an exemplary video encoding/decoding system that selects a fixed set of filters for chroma ALF and/or CCALF according to instructions at the CTB level, disclosed according to an embodiment of the invention. The steps shown in the flowchart can be executed as code on the encoder side of one or more processors (e.g., one or more CPUs). The steps shown in the flowchart can also be hardware-based, such as one or more electronic devices or processors arranged to execute the steps in the flowchart. According to the method, a reconstructed pixel is received in step 710, wherein the reconstructed pixel includes a current block, and the current block includes a first color block and a second color block. In step 720, a target fixed filter set is selected from multiple fixed filter sets according to the filter selection instruction at the CTB (Code Block) level. This target fixed filter set is used to filter the current block using a target filter type from a filter type group, which includes Chromatic ALF (Adaptive Loop Filter), CCALF (Cross-Component ALF), or both. In step 730, the target fixed filter set is applied to the current block to generate the filtered current block. In step 740, the filtered current block is provided.

所示的流程圖旨在說明根據本發明的影片編解碼的一個範例。技術領域的熟練人員可以修改每個步驟、重新排列步驟、分割步驟或合併步驟來實現本發明,而不偏離本發明的精神。在本披露中,使用了特定的語法和語義來說明實現本發明實施例的範例。熟練人員可以通過用等效的語法和語義替代來實現本發明,而不偏離本發明的精神。上述描述旨在使技術領域的普通技術人員能夠根據特定應用及其需求實踐本發明。對於技術領域的熟練人員來說,對所描述的實施例的各種修改將是顯而易見的,並且本文中定義的一般原則可以應用於其他實施例。因此,本發明並不旨在局限於所示和所述的特定實施例,而是應與本文披露的原則和新穎特徵一致,賦予其最廣泛的範圍。在上述詳細描述中,為了提供對本發明的透徹理解,展示了各種具體細節。然而,技術領域的熟練人員將理解,本發明可以在不偏離其精神的情況下實踐。The flowchart shown is intended to illustrate an example of video encoding/decoding according to the present invention. Those skilled in the art can implement the present invention by modifying each step, rearranging steps, splitting steps, or merging steps without departing from the spirit of the present invention. Specific syntax and semantics are used in this disclosure to illustrate examples of implementing embodiments of the present invention. Those skilled in the art can implement the present invention by using equivalent syntax and semantic substitutions without departing from the spirit of the present invention. The above description is intended to enable those skilled in the art to practice the present invention according to specific applications and their requirements. Various modifications to the described embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments. Therefore, this invention is not intended to be limited to the specific embodiments shown and described, but should be given its broadest scope in accordance with the principles and novel features disclosed herein. Various specific details have been shown in the foregoing detailed description to provide a thorough understanding of the invention. However, those skilled in the art will understand that the invention can be practiced without departing from its spirit.

本發明的實施例如上所述,可以以各種硬體、軟體代碼或兩者的組合來實現。例如,本發明的實施例可以是一個或多個電路集成到影片壓縮晶片中,或者程式代碼集成到影片壓縮軟體中,以執行本文所述的處理。本發明的實施例也可以是程式代碼,該程式代碼在數位訊號處理器(Digital 訊號 Processor,簡稱 DSP)上執行,以執行本文所述的處理。本發明還可能涉及由電腦處理器、數位訊號處理器、微處理器或現場可編程門陣列(Field Programmable Gate Array,簡稱 FPGA)執行的多個功能。這些處理器可以通過執行機器可讀的軟體代碼或韌體代碼來配置,以定義本發明所體現的特定方法。該軟體代碼或韌體代碼可以使用不同的程式語言以及不同的格式或風格來開發。該軟體代碼也可以為不同的目標平台進行編譯。然而,根據本發明執行任務的不同代碼格式、風格和語言,以及配置代碼的其他方式,均不會偏離本發明的精神和範疇。Embodiments of the present invention, as described above, can be implemented in various hardware, software code, or a combination of both. For example, embodiments of the present invention may be one or more circuits integrated into a video compression chip, or program code integrated into video compression software, to perform the processing described herein. Embodiments of the present invention may also be program code executed on a digital signal processor (DSP) to perform the processing described herein. The present invention may also relate to multiple functions executed by a computer processor, digital signal processor, microprocessor, or field programmable gate array (FPGA). These processors can be configured by executing machine-readable software or firmware code to define the specific methods embodied in this invention. This software or firmware code can be developed using different programming languages and different formats or styles. The software code can also be compiled for different target platforms. However, different code formats, styles, and languages used to perform the tasks of this invention, as well as other ways of configuring the code, do not depart from the spirit and scope of this invention.

本發明可以以其他特定形式體現,而不偏離其精神或基本特徵。所描述的示例在所有方面僅作為說明性示例,而非限制性示例。因此,本發明的範疇由所附的請求項指示,而非由前述描述指示。所有在請求項的意義和等效範圍內的變更均包含在其範疇內。This invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The examples described are, in all respects, illustrative only and not limiting. Therefore, the scope of this invention is indicated by the appended claims, and not by the foregoing description. All changes within the meaning and equivalent scope of the claims are included within their scope.

110:幀內預測112:幀間預測114:開關116:加法器118:T120:Q122:Entropy Encoder124:IQ126:IT128:REC130:環路濾波器134:Ref. Pic. Buffer136:預測資料140:Entropy Decoder150:幀內預測152:MC210-220:菱形濾波器形狀410, 412, 414:相應的SAO420:ALF Luma422, 424:亮度到色度組件的跨組件項430:ALF Chroma432, 434:加法器440, 442:濾波器710-740:步驟110: Intra-frame prediction 112: Inter-frame prediction 114: Switch 116: Adder 118: T 120: Q 122: Entropy Encoder 124: IQ 126: IT 128: REC 130: Loop filter 134: Ref. Pic. Buffer 136: Prediction data 140: Entropy Decoder 150: Intra-frame prediction 152: MC 210-220: Diamond filter shape 410, 412, 414: Corresponding SAO 420: ALF Luma 422, 424: Cross-component item for luminance to chrominance components 430: ALF Chroma 432, 434: Adder 440, 442: Filter 710-740: Steps

第1A圖展示了一個包含環路處理的示例性適應性Inter/Intra影片編解碼系統。第1B圖展示了第1A圖中編碼器的對應解碼器。第2圖展示了色度(左)和亮度(右)組件的ALF濾波器形狀。第3A-3D圖展示了對於gv (3A)、gh (3B)、gd1 (3C)和gd2 (3D)的子採樣拉普拉斯計算。第4A圖展示了CC-ALF相對於其他環路濾波器的位置。第4B圖展示了一個用於色度樣本的菱形濾波器。第5圖展示了卷積濾波器空間部分的一個例子。第6圖展示了一個用於導出濾波器係數的參考區域,其中使用了填充。第7圖展示了一個示例性影片編解碼系統的流程圖,該系統根據在CTB層級的指示選擇固定濾波器集合,用於色度ALF和/或CCALF,根據本發明的一個實施例進行公開。Figure 1A illustrates an exemplary adaptive Inter/Intra video encoding/decoding system incorporating loop processing. Figure 1B shows the corresponding decoder for the encoder in Figure 1A. Figure 2 shows the ALF filter shapes for the chroma (left) and luma (right) components. Figures 3A-3D show the subsampling Laplacian calculations for gv (3A), gh (3B), gd1 (3C), and gd2 (3D). Figure 4A shows the position of the CC-ALF relative to the other loop filters. Figure 4B shows a diamond-shaped filter used for chroma samples. Figure 5 shows an example of the spatial portion of a convolution filter. Figure 6 shows a reference area used to derive filter coefficients, with padding employed. Figure 7 illustrates a flowchart of an exemplary video encoding/decoding system that selects a fixed set of filters for chroma ALF and/or CCALF based on instructions at the CTB level, disclosed according to an embodiment of the present invention.

710-740:步驟 710-740: Steps

Claims (12)

一種用於處理彩色圖片或影片的方法,該方法包括:接收重建像素,其中該重建像素包括當前塊,且該當前塊包括第一顏色塊和第二顏色塊;根據在編解碼樹塊(Coding Tree Block,CTB)層級的濾波器選擇指示,從多個固定濾波器集合中選擇目標固定濾波器集合,用於使用濾波器類型組中的目標濾波器類型濾波該當前塊,該濾波器類型組包括色度適應性環路濾波器(Adaptive Loop Filter,ALF)、跨組件ALF(Cross-Component ALF,CCALF)或兩者;將該目標固定濾波器集合應用於該當前塊以生成濾波後的當前塊;以及提供該濾波後的當前塊。A method for processing color images or videos, the method comprising: receiving reconstructed pixels, wherein the reconstructed pixels include a current block, and the current block includes a first color block and a second color block; selecting a target set of fixed filters from a plurality of fixed filter sets according to a filter selection instruction at a Coding Tree Block (CTB) level, for filtering the current block using a target filter type from a filter type group, the filter type group including an Adaptive Loop Filter (ALF) and a Cross-Component ALF. (ALF, CCALF) or both; apply the target fixed filter set to the current block to generate a filtered current block; and provide the filtered current block. 如請求項1所述的方法,其中在CTB層級選擇從跨組件模型生成的樣本,和/或從具有固定濾波的跨組件模型生成的樣本,用於亮度ALF、該色度ALF、該CCALF或其組合。The method as described in claim 1, wherein at the CTB level, a sample generated from a cross-component model and/or a sample generated from a cross-component model with fixed filters are selected for the luminance ALF, the chrominance ALF, the CCALF, or a combination thereof. 如請求項1所述的方法,其中在圖片層級、圖塊層級、切片層級或其組合中選擇多個APS,且其中在CTB層級從該多個APS中選擇目標APS,用於所述選擇目標固定濾波器集合的步驟。The method of claim 1, wherein multiple APSs are selected at the image level, tile level, slice level, or a combination thereof, and wherein a target APS is selected from the multiple APSs at the CTB level for the step of selecting the target fixed filter set. 如請求項1所述的方法,其中在圖片層級、圖塊層級、切片層級或其組合中信令或解析一個標誌,用於在該CTB層級控制使用固定濾波,且固定濾波的使用是針對該濾波器類型組,其進一步包括亮度ALF。The method of claim 1, wherein a flag is signaled or parsed at the image level, tile level, slice level or a combination thereof for controlling the use of a fixed filter at the CTB level, and the use of the fixed filter is for the filter type group, which further includes a luminance ALF. 如請求項4所述的方法,其中該標誌用於控制是否在CTB層級啟用固定濾波器集合的選擇。The method described in claim 4, wherein the flag is used to control whether the selection of a fixed filter set is enabled at the CTB level. 如請求項4所述的方法,其中該標誌用於指示是否僅允許在CTB層級選擇一個或多個固定濾波器集合。The method described in claim 4, wherein the flag is used to indicate whether only one or more fixed filter sets are allowed to be selected at the CTB level. 如請求項4所述的方法,其中該標誌用於在CTB層級啟用適應參數集合(Adaptation Parameter Set,APS)ID和APS濾波器集合的選擇。The method described in claim 4, wherein the flag is used to enable the selection of the Adaptation Parameter Set (APS) ID and the APS filter set at the CTB level. 如請求項4所述的方法,其中該標誌用於指示是否僅允許在CTB層級選擇一個或多個APS(適應參數集合)ID和APS濾波器集合。The method described in claim 4, wherein the flag is used to indicate whether only one or more APS (Adaptive Parameter Set) IDs and APS filter sets are allowed to be selected at the CTB level. 如請求項1所述的方法,其中在圖片層級、圖塊層級、切片層級或其組合中信令或解析一組適應參數集合(Adaptation Parameter Set,APS)濾波器集合,且該APS濾波器集合來自不同的APS,並且僅允許在CTB層級選擇APS濾波器集合。The method of claim 1, wherein a set of adaptation parameter set (APS) filters is signaled or parsed at the image level, tile level, slice level, or a combination thereof, and the APS filter set comes from different APSs, and the APS filter set is only allowed to be selected at the CTB level. 如請求項1所述的方法,其中跨組件模型被選擇為該目標濾波器類型。The method described in claim 1, wherein the cross-component model is selected as the target filter type. 如請求項1所述的方法,其中由該跨組件模型生成的樣本直接用作該濾波後的當前塊。The method described in claim 1, wherein the sample generated by the cross-component model is directly used as the current block after filtering. 一種裝置,用於彩色圖片或影片,該裝置包括一個或多個電子設備或處理器,配置為:接收重建像素,其中該重建像素包括當前塊,且該當前塊包括第一顏色塊和第二顏色塊;根據在編解碼樹塊(Coding Tree Block,CTB)層級的濾波器選擇指示,從多個固定濾波器集合中選擇目標固定濾波器集合,用於使用濾波器類型組中的目標濾波器類型濾波該當前塊,該濾波器類型組包括色度適應性環路濾波器(Adaptive Loop Filter,ALF)、跨組件ALF(Cross-Component ALF,CCALF)或兩者;將該目標固定濾波器集合應用於該當前塊以生成濾波後的當前塊;以及提供該濾波後的當前塊。An apparatus for color images or videos, the apparatus comprising one or more electronic devices or processors configured to: receive reconstructed pixels, wherein the reconstructed pixels include a current block, and the current block includes a first color block and a second color block; select a target set of fixed filters from a plurality of fixed filter sets according to filter selection instructions at a Coding Tree Block (CTB) level, for filtering the current block using a target filter type from a filter type group, the filter type group including an Adaptive Loop Filter (ALF), a Cross-Component ALF, and a Cross-Component ALF. (ALF, CCALF) or both; apply the target fixed filter set to the current block to generate a filtered current block; and provide the filtered current block.
TW114101816A 2024-01-16 2025-01-16 Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding TW202539237A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202463621199P 2024-01-16 2024-01-16
US63/621,199 2024-01-16
PCT/CN2025/072646 WO2025152997A1 (en) 2024-01-16 2025-01-16 Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding
WOPCT/CN2025/072646 2025-01-16

Publications (1)

Publication Number Publication Date
TW202539237A true TW202539237A (en) 2025-10-01

Family

ID=96470774

Family Applications (1)

Application Number Title Priority Date Filing Date
TW114101816A TW202539237A (en) 2024-01-16 2025-01-16 Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding

Country Status (2)

Country Link
TW (1) TW202539237A (en)
WO (1) WO2025152997A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES3030107T3 (en) * 2019-09-18 2025-06-26 Beijing Bytedance Network Tech Co Ltd Two-part signaling of adaptive loop filters in video coding
EP4064702A4 (en) * 2019-11-22 2023-12-27 Electronics and Telecommunications Research Institute ADAPTIVE METHOD AND DEVICE FOR FILTERING IN A CONTROL CIRCUIT
US11716468B2 (en) * 2019-12-20 2023-08-01 Qualcomm Incorporated Adaptive loop filter signaling redundancy removal field

Also Published As

Publication number Publication date
WO2025152997A1 (en) 2025-07-24

Similar Documents

Publication Publication Date Title
US20260006190A1 (en) Method and Apparatus for Adaptive Loop Filter with Chroma Classifier for Video Coding
WO2024067188A1 (en) Method and apparatus for adaptive loop filter with chroma classifiers by transpose indexes for video coding
TW202539237A (en) Method and apparatus of adaptive loop filter with additional modes and taps related to cccm and fixed filters in video coding
WO2024012168A1 (en) Method and apparatus for adaptive loop filter with virtual boundaries and multiple sources for video coding
WO2024012167A1 (en) Method and apparatus for adaptive loop filter with non-local or high degree taps for video coding
WO2024017010A1 (en) Method and apparatus for adaptive loop filter with alternative luma classifier for video coding
US20260019573A1 (en) Method and Apparatus of ALF with Model-Based Taps in Video Coding System
WO2024146624A1 (en) Method and apparatus for adaptive loop filter with cross-component taps for video coding
WO2024016983A1 (en) Method and apparatus for adaptive loop filter with geometric transform for video coding
US20260012587A1 (en) Method and Apparatus for Adaptive Loop Filter with Tap Constraints for Video Coding
WO2024212779A1 (en) Method and apparatus of alf adaptive parameters for video coding
WO2025011377A1 (en) Method and apparatus of unified classification in in-loop filtering in video coding
WO2024088003A1 (en) Method and apparatus of position-aware reconstruction in in-loop filtering
TW202527546A (en) Method and apparatus for in-loop filtering of reconstructed video
WO2024222417A1 (en) Method and apparatus of chroma alf with residual taps in video coding system
WO2025214385A1 (en) Methods and apparatus of multi-model or multi-tap local illumination compensation in video coding systems
WO2024114810A1 (en) Method and apparatus for adaptive loop filter with fixed filters for video coding
TW202602110A (en) Method and apparatus for in-loop filtering of reconstructed video
TW202549336A (en) Method and apparatus of alf classifier sub-modes and content-adaptive aps refinement in video coding
CN121420543A (en) Method and apparatus for ALF complexity reduction for cross component taps in video coding
CN121488482A (en) Method and device for unified classification in loop filtering
CN120419176A (en) Method and apparatus for adaptive loop filter sub-shape selection for video coding